Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 1 | #! /bin/sh |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 2 | # From configure.ac for Bash 4.3, version 4.063. |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 3 | # Guess values for system-dependent variables and create Makefiles. |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 4 | # Generated by GNU Autoconf 2.69 for bash 4.3-release. |
Jari Aalto | 726f638 | 1996-08-26 18:22:31 +0000 | [diff] [blame] | 5 | # |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 6 | # Report bugs to <bug-bash@gnu.org>. |
| 7 | # |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 8 | # |
| 9 | # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. |
| 10 | # |
| 11 | # |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 12 | # This configure script is free software; the Free Software Foundation |
| 13 | # gives unlimited permission to copy, distribute and modify it. |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 14 | ## -------------------- ## |
| 15 | ## M4sh Initialization. ## |
| 16 | ## -------------------- ## |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 17 | |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 18 | # Be more Bourne compatible |
| 19 | DUALCASE=1; export DUALCASE # for MKS sh |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 20 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 21 | emulate sh |
| 22 | NULLCMD=: |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 23 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
Jari Aalto | 0628567 | 2006-10-10 14:15:34 +0000 | [diff] [blame] | 24 | # is contrary to our usage. Disable this feature. |
| 25 | alias -g '${1+"$@"}'='"$@"' |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 26 | setopt NO_GLOB_SUBST |
| 27 | else |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 28 | case `(set -o) 2>/dev/null` in #( |
| 29 | *posix*) : |
| 30 | set -o posix ;; #( |
| 31 | *) : |
| 32 | ;; |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 33 | esac |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 34 | fi |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 35 | |
| 36 | |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 37 | as_nl=' |
| 38 | ' |
| 39 | export as_nl |
| 40 | # Printing a long string crashes Solaris 7 /usr/bin/printf. |
| 41 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
| 42 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo |
| 43 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 44 | # Prefer a ksh shell builtin over an external printf program on Solaris, |
| 45 | # but without wasting forks for bash or zsh. |
| 46 | if test -z "$BASH_VERSION$ZSH_VERSION" \ |
| 47 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then |
| 48 | as_echo='print -r --' |
| 49 | as_echo_n='print -rn --' |
| 50 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 51 | as_echo='printf %s\n' |
| 52 | as_echo_n='printf %s' |
| 53 | else |
| 54 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then |
| 55 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' |
| 56 | as_echo_n='/usr/ucb/echo -n' |
| 57 | else |
| 58 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
| 59 | as_echo_n_body='eval |
| 60 | arg=$1; |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 61 | case $arg in #( |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 62 | *"$as_nl"*) |
| 63 | expr "X$arg" : "X\\(.*\\)$as_nl"; |
| 64 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; |
| 65 | esac; |
| 66 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" |
| 67 | ' |
| 68 | export as_echo_n_body |
| 69 | as_echo_n='sh -c $as_echo_n_body as_echo' |
| 70 | fi |
| 71 | export as_echo_body |
| 72 | as_echo='sh -c $as_echo_body as_echo' |
| 73 | fi |
| 74 | |
| 75 | # The user is always right. |
| 76 | if test "${PATH_SEPARATOR+set}" != set; then |
| 77 | PATH_SEPARATOR=: |
| 78 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { |
| 79 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || |
| 80 | PATH_SEPARATOR=';' |
| 81 | } |
| 82 | fi |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 83 | |
Jari Aalto | 0628567 | 2006-10-10 14:15:34 +0000 | [diff] [blame] | 84 | |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 85 | # IFS |
| 86 | # We need space, tab and new line, in precisely that order. Quoting is |
| 87 | # there to prevent editors from complaining about space-tab. |
| 88 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
| 89 | # splitting by setting IFS to empty value.) |
| 90 | IFS=" "" $as_nl" |
| 91 | |
| 92 | # Find who we are. Look in the path if we contain no directory separator. |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 93 | as_myself= |
| 94 | case $0 in #(( |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 95 | *[\\/]* ) as_myself=$0 ;; |
| 96 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 97 | for as_dir in $PATH |
| 98 | do |
| 99 | IFS=$as_save_IFS |
| 100 | test -z "$as_dir" && as_dir=. |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 101 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 102 | done |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 103 | IFS=$as_save_IFS |
| 104 | |
| 105 | ;; |
| 106 | esac |
| 107 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 108 | # in which case we are not to be found in the path. |
| 109 | if test "x$as_myself" = x; then |
| 110 | as_myself=$0 |
| 111 | fi |
| 112 | if test ! -f "$as_myself"; then |
| 113 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 114 | exit 1 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 115 | fi |
| 116 | |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 117 | # Unset variables that we do not need and which cause bugs (e.g. in |
| 118 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" |
| 119 | # suppresses any "Segmentation fault" message there. '((' could |
| 120 | # trigger a bug in pdksh 5.2.14. |
| 121 | for as_var in BASH_ENV ENV MAIL MAILPATH |
| 122 | do eval test x\${$as_var+set} = xset \ |
| 123 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 124 | done |
Jari Aalto | 0628567 | 2006-10-10 14:15:34 +0000 | [diff] [blame] | 125 | PS1='$ ' |
| 126 | PS2='> ' |
| 127 | PS4='+ ' |
| 128 | |
| 129 | # NLS nuisances. |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 130 | LC_ALL=C |
| 131 | export LC_ALL |
| 132 | LANGUAGE=C |
| 133 | export LANGUAGE |
Jari Aalto | 0628567 | 2006-10-10 14:15:34 +0000 | [diff] [blame] | 134 | |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 135 | # CDPATH. |
| 136 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
| 137 | |
| 138 | # Use a proper internal environment variable to ensure we don't fall |
| 139 | # into an infinite loop, continuously re-executing ourselves. |
| 140 | if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then |
| 141 | _as_can_reexec=no; export _as_can_reexec; |
| 142 | # We cannot yet assume a decent shell, so we have to provide a |
| 143 | # neutralization value for shells without unset; and this also |
| 144 | # works around shells that cannot unset nonexistent variables. |
| 145 | # Preserve -v and -x to the replacement shell. |
| 146 | BASH_ENV=/dev/null |
| 147 | ENV=/dev/null |
| 148 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV |
| 149 | case $- in # (((( |
| 150 | *v*x* | *x*v* ) as_opts=-vx ;; |
| 151 | *v* ) as_opts=-v ;; |
| 152 | *x* ) as_opts=-x ;; |
| 153 | * ) as_opts= ;; |
| 154 | esac |
| 155 | exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} |
| 156 | # Admittedly, this is quite paranoid, since all the known shells bail |
| 157 | # out after a failed `exec'. |
| 158 | $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 |
| 159 | as_fn_exit 255 |
| 160 | fi |
| 161 | # We don't want this to propagate to other subprocesses. |
| 162 | { _as_can_reexec=; unset _as_can_reexec;} |
| 163 | if test "x$CONFIG_SHELL" = x; then |
| 164 | as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : |
| 165 | emulate sh |
| 166 | NULLCMD=: |
| 167 | # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which |
| 168 | # is contrary to our usage. Disable this feature. |
| 169 | alias -g '\${1+\"\$@\"}'='\"\$@\"' |
| 170 | setopt NO_GLOB_SUBST |
| 171 | else |
| 172 | case \`(set -o) 2>/dev/null\` in #( |
| 173 | *posix*) : |
| 174 | set -o posix ;; #( |
| 175 | *) : |
| 176 | ;; |
| 177 | esac |
| 178 | fi |
| 179 | " |
| 180 | as_required="as_fn_return () { (exit \$1); } |
| 181 | as_fn_success () { as_fn_return 0; } |
| 182 | as_fn_failure () { as_fn_return 1; } |
| 183 | as_fn_ret_success () { return 0; } |
| 184 | as_fn_ret_failure () { return 1; } |
| 185 | |
| 186 | exitcode=0 |
| 187 | as_fn_success || { exitcode=1; echo as_fn_success failed.; } |
| 188 | as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } |
| 189 | as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } |
| 190 | as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } |
| 191 | if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : |
| 192 | |
| 193 | else |
| 194 | exitcode=1; echo positional parameters were not saved. |
| 195 | fi |
| 196 | test x\$exitcode = x0 || exit 1 |
| 197 | test -x / || exit 1" |
| 198 | as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO |
| 199 | as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO |
| 200 | eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && |
| 201 | test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 |
| 202 | test \$(( 1 + 1 )) = 2 || exit 1" |
| 203 | if (eval "$as_required") 2>/dev/null; then : |
| 204 | as_have_required=yes |
| 205 | else |
| 206 | as_have_required=no |
| 207 | fi |
| 208 | if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : |
| 209 | |
| 210 | else |
| 211 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 212 | as_found=false |
| 213 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
| 214 | do |
| 215 | IFS=$as_save_IFS |
| 216 | test -z "$as_dir" && as_dir=. |
| 217 | as_found=: |
| 218 | case $as_dir in #( |
| 219 | /*) |
| 220 | for as_base in sh bash ksh sh5; do |
| 221 | # Try only shells that exist, to save several forks. |
| 222 | as_shell=$as_dir/$as_base |
| 223 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && |
| 224 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : |
| 225 | CONFIG_SHELL=$as_shell as_have_required=yes |
| 226 | if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : |
| 227 | break 2 |
| 228 | fi |
| 229 | fi |
| 230 | done;; |
| 231 | esac |
| 232 | as_found=false |
| 233 | done |
| 234 | $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && |
| 235 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : |
| 236 | CONFIG_SHELL=$SHELL as_have_required=yes |
| 237 | fi; } |
| 238 | IFS=$as_save_IFS |
| 239 | |
| 240 | |
| 241 | if test "x$CONFIG_SHELL" != x; then : |
| 242 | export CONFIG_SHELL |
| 243 | # We cannot yet assume a decent shell, so we have to provide a |
| 244 | # neutralization value for shells without unset; and this also |
| 245 | # works around shells that cannot unset nonexistent variables. |
| 246 | # Preserve -v and -x to the replacement shell. |
| 247 | BASH_ENV=/dev/null |
| 248 | ENV=/dev/null |
| 249 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV |
| 250 | case $- in # (((( |
| 251 | *v*x* | *x*v* ) as_opts=-vx ;; |
| 252 | *v* ) as_opts=-v ;; |
| 253 | *x* ) as_opts=-x ;; |
| 254 | * ) as_opts= ;; |
| 255 | esac |
| 256 | exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} |
| 257 | # Admittedly, this is quite paranoid, since all the known shells bail |
| 258 | # out after a failed `exec'. |
| 259 | $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 |
| 260 | exit 255 |
| 261 | fi |
| 262 | |
| 263 | if test x$as_have_required = xno; then : |
| 264 | $as_echo "$0: This script requires a shell more modern than all" |
| 265 | $as_echo "$0: the shells that I found on your system." |
| 266 | if test x${ZSH_VERSION+set} = xset ; then |
| 267 | $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" |
| 268 | $as_echo "$0: be upgraded to zsh 4.3.4 or later." |
| 269 | else |
| 270 | $as_echo "$0: Please tell bug-autoconf@gnu.org and bug-bash@gnu.org |
| 271 | $0: about your system, including any error possibly output |
| 272 | $0: before this message. Then install a modern shell, or |
| 273 | $0: manually run the script under such a shell if you do |
| 274 | $0: have one." |
| 275 | fi |
| 276 | exit 1 |
| 277 | fi |
| 278 | fi |
| 279 | fi |
| 280 | SHELL=${CONFIG_SHELL-/bin/sh} |
| 281 | export SHELL |
| 282 | # Unset more variables known to interfere with behavior of common tools. |
| 283 | CLICOLOR_FORCE= GREP_OPTIONS= |
| 284 | unset CLICOLOR_FORCE GREP_OPTIONS |
| 285 | |
| 286 | ## --------------------- ## |
| 287 | ## M4sh Shell Functions. ## |
| 288 | ## --------------------- ## |
| 289 | # as_fn_unset VAR |
| 290 | # --------------- |
| 291 | # Portably unset VAR. |
| 292 | as_fn_unset () |
| 293 | { |
| 294 | { eval $1=; unset $1;} |
| 295 | } |
| 296 | as_unset=as_fn_unset |
| 297 | |
| 298 | # as_fn_set_status STATUS |
| 299 | # ----------------------- |
| 300 | # Set $? to STATUS, without forking. |
| 301 | as_fn_set_status () |
| 302 | { |
| 303 | return $1 |
| 304 | } # as_fn_set_status |
| 305 | |
| 306 | # as_fn_exit STATUS |
| 307 | # ----------------- |
| 308 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. |
| 309 | as_fn_exit () |
| 310 | { |
| 311 | set +e |
| 312 | as_fn_set_status $1 |
| 313 | exit $1 |
| 314 | } # as_fn_exit |
| 315 | |
| 316 | # as_fn_mkdir_p |
| 317 | # ------------- |
| 318 | # Create "$as_dir" as a directory, including parents if necessary. |
| 319 | as_fn_mkdir_p () |
| 320 | { |
| 321 | |
| 322 | case $as_dir in #( |
| 323 | -*) as_dir=./$as_dir;; |
| 324 | esac |
| 325 | test -d "$as_dir" || eval $as_mkdir_p || { |
| 326 | as_dirs= |
| 327 | while :; do |
| 328 | case $as_dir in #( |
| 329 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
| 330 | *) as_qdir=$as_dir;; |
| 331 | esac |
| 332 | as_dirs="'$as_qdir' $as_dirs" |
| 333 | as_dir=`$as_dirname -- "$as_dir" || |
| 334 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 335 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 336 | X"$as_dir" : 'X\(//\)$' \| \ |
| 337 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
| 338 | $as_echo X"$as_dir" | |
| 339 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 340 | s//\1/ |
| 341 | q |
| 342 | } |
| 343 | /^X\(\/\/\)[^/].*/{ |
| 344 | s//\1/ |
| 345 | q |
| 346 | } |
| 347 | /^X\(\/\/\)$/{ |
| 348 | s//\1/ |
| 349 | q |
| 350 | } |
| 351 | /^X\(\/\).*/{ |
| 352 | s//\1/ |
| 353 | q |
| 354 | } |
| 355 | s/.*/./; q'` |
| 356 | test -d "$as_dir" && break |
| 357 | done |
| 358 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
| 359 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
| 360 | |
| 361 | |
| 362 | } # as_fn_mkdir_p |
| 363 | |
| 364 | # as_fn_executable_p FILE |
| 365 | # ----------------------- |
| 366 | # Test if FILE is an executable regular file. |
| 367 | as_fn_executable_p () |
| 368 | { |
| 369 | test -f "$1" && test -x "$1" |
| 370 | } # as_fn_executable_p |
| 371 | # as_fn_append VAR VALUE |
| 372 | # ---------------------- |
| 373 | # Append the text in VALUE to the end of the definition contained in VAR. Take |
| 374 | # advantage of any shell optimizations that allow amortized linear growth over |
| 375 | # repeated appends, instead of the typical quadratic growth present in naive |
| 376 | # implementations. |
| 377 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : |
| 378 | eval 'as_fn_append () |
| 379 | { |
| 380 | eval $1+=\$2 |
| 381 | }' |
| 382 | else |
| 383 | as_fn_append () |
| 384 | { |
| 385 | eval $1=\$$1\$2 |
| 386 | } |
| 387 | fi # as_fn_append |
| 388 | |
| 389 | # as_fn_arith ARG... |
| 390 | # ------------------ |
| 391 | # Perform arithmetic evaluation on the ARGs, and store the result in the |
| 392 | # global $as_val. Take advantage of shells that can avoid forks. The arguments |
| 393 | # must be portable across $(()) and expr. |
| 394 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : |
| 395 | eval 'as_fn_arith () |
| 396 | { |
| 397 | as_val=$(( $* )) |
| 398 | }' |
| 399 | else |
| 400 | as_fn_arith () |
| 401 | { |
| 402 | as_val=`expr "$@" || test $? -eq 1` |
| 403 | } |
| 404 | fi # as_fn_arith |
| 405 | |
| 406 | |
| 407 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
| 408 | # ---------------------------------------- |
| 409 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
| 410 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the |
| 411 | # script with STATUS, using 1 if that was 0. |
| 412 | as_fn_error () |
| 413 | { |
| 414 | as_status=$1; test $as_status -eq 0 && as_status=1 |
| 415 | if test "$4"; then |
| 416 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 417 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 |
| 418 | fi |
| 419 | $as_echo "$as_me: error: $2" >&2 |
| 420 | as_fn_exit $as_status |
| 421 | } # as_fn_error |
| 422 | |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 423 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 424 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
Jari Aalto | 0628567 | 2006-10-10 14:15:34 +0000 | [diff] [blame] | 425 | as_expr=expr |
| 426 | else |
| 427 | as_expr=false |
| 428 | fi |
| 429 | |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 430 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
Jari Aalto | 0628567 | 2006-10-10 14:15:34 +0000 | [diff] [blame] | 431 | as_basename=basename |
| 432 | else |
| 433 | as_basename=false |
| 434 | fi |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 435 | |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 436 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
| 437 | as_dirname=dirname |
| 438 | else |
| 439 | as_dirname=false |
| 440 | fi |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 441 | |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 442 | as_me=`$as_basename -- "$0" || |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 443 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 444 | X"$0" : 'X\(//\)$' \| \ |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 445 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
| 446 | $as_echo X/"$0" | |
| 447 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
| 448 | s//\1/ |
| 449 | q |
| 450 | } |
| 451 | /^X\/\(\/\/\)$/{ |
| 452 | s//\1/ |
| 453 | q |
| 454 | } |
| 455 | /^X\/\(\/\).*/{ |
| 456 | s//\1/ |
| 457 | q |
| 458 | } |
| 459 | s/.*/./; q'` |
| 460 | |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 461 | # Avoid depending upon Character Ranges. |
| 462 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 463 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 464 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 465 | as_cr_digits='0123456789' |
| 466 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 467 | |
Jari Aalto | 0628567 | 2006-10-10 14:15:34 +0000 | [diff] [blame] | 468 | |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 469 | as_lineno_1=$LINENO as_lineno_1a=$LINENO |
| 470 | as_lineno_2=$LINENO as_lineno_2a=$LINENO |
| 471 | eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && |
| 472 | test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { |
| 473 | # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 474 | sed -n ' |
| 475 | p |
| 476 | /[$]LINENO/= |
| 477 | ' <$as_myself | |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 478 | sed ' |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 479 | s/[$]LINENO.*/&-/ |
| 480 | t lineno |
| 481 | b |
| 482 | :lineno |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 483 | N |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 484 | :loop |
| 485 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 486 | t loop |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 487 | s/-\n.*// |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 488 | ' >$as_me.lineno && |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 489 | chmod +x "$as_me.lineno" || |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 490 | { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 491 | |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 492 | # If we had to re-execute with $CONFIG_SHELL, we're ensured to have |
| 493 | # already done that, so ensure we don't try to do so again and fall |
| 494 | # in an infinite loop. This has already happened in practice. |
| 495 | _as_can_reexec=no; export _as_can_reexec |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 496 | # Don't try to exec as it changes $[0], causing all sort of problems |
| 497 | # (the dirname of $[0] is not the place where we might find the |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 498 | # original and so on. Autoconf is especially sensitive to this). |
| 499 | . "./$as_me.lineno" |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 500 | # Exit status is that of the last command. |
| 501 | exit |
| 502 | } |
| 503 | |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 504 | ECHO_C= ECHO_N= ECHO_T= |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 505 | case `echo -n x` in #((((( |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 506 | -n*) |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 507 | case `echo 'xy\c'` in |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 508 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 509 | xy) ECHO_C='\c';; |
| 510 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null |
| 511 | ECHO_T=' ';; |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 512 | esac;; |
| 513 | *) |
| 514 | ECHO_N='-n';; |
| 515 | esac |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 516 | |
| 517 | rm -f conf$$ conf$$.exe conf$$.file |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 518 | if test -d conf$$.dir; then |
| 519 | rm -f conf$$.dir/conf$$.file |
| 520 | else |
| 521 | rm -f conf$$.dir |
| 522 | mkdir conf$$.dir 2>/dev/null |
| 523 | fi |
| 524 | if (echo >conf$$.file) 2>/dev/null; then |
| 525 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 526 | as_ln_s='ln -s' |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 527 | # ... but there are two gotchas: |
| 528 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
| 529 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 530 | # In both cases, we have to default to `cp -pR'. |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 531 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 532 | as_ln_s='cp -pR' |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 533 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 534 | as_ln_s=ln |
| 535 | else |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 536 | as_ln_s='cp -pR' |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 537 | fi |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 538 | else |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 539 | as_ln_s='cp -pR' |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 540 | fi |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 541 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
| 542 | rmdir conf$$.dir 2>/dev/null |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 543 | |
Jari Aalto | 0628567 | 2006-10-10 14:15:34 +0000 | [diff] [blame] | 544 | if mkdir -p . 2>/dev/null; then |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 545 | as_mkdir_p='mkdir -p "$as_dir"' |
Jari Aalto | 0628567 | 2006-10-10 14:15:34 +0000 | [diff] [blame] | 546 | else |
| 547 | test -d ./-p && rmdir ./-p |
| 548 | as_mkdir_p=false |
| 549 | fi |
| 550 | |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 551 | as_test_x='test -x' |
| 552 | as_executable_p=as_fn_executable_p |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 553 | |
| 554 | # Sed expression to map a string onto a valid CPP name. |
Jari Aalto | 0628567 | 2006-10-10 14:15:34 +0000 | [diff] [blame] | 555 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 556 | |
| 557 | # Sed expression to map a string onto a valid variable name. |
Jari Aalto | 0628567 | 2006-10-10 14:15:34 +0000 | [diff] [blame] | 558 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 559 | |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 560 | |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 561 | test -n "$DJDIR" || exec 7<&0 </dev/null |
| 562 | exec 6>&1 |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 563 | |
| 564 | # Name of the host. |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 565 | # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 566 | # so uname gets run too. |
| 567 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` |
| 568 | |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 569 | # |
| 570 | # Initializations. |
| 571 | # |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 572 | ac_default_prefix=/usr/local |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 573 | ac_clean_files= |
Jari Aalto | 0628567 | 2006-10-10 14:15:34 +0000 | [diff] [blame] | 574 | ac_config_libobj_dir=. |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 575 | LIBOBJS= |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 576 | cross_compiling=no |
| 577 | subdirs= |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 578 | MFLAGS= |
| 579 | MAKEFLAGS= |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 580 | |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 581 | # Identity of this package. |
| 582 | PACKAGE_NAME='bash' |
| 583 | PACKAGE_TARNAME='bash' |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 584 | PACKAGE_VERSION='4.3-release' |
| 585 | PACKAGE_STRING='bash 4.3-release' |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 586 | PACKAGE_BUGREPORT='bug-bash@gnu.org' |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 587 | PACKAGE_URL='' |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 588 | |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 589 | ac_unique_file="shell.h" |
| 590 | # Factoring default headers for most tests. |
| 591 | ac_includes_default="\ |
| 592 | #include <stdio.h> |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 593 | #ifdef HAVE_SYS_TYPES_H |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 594 | # include <sys/types.h> |
| 595 | #endif |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 596 | #ifdef HAVE_SYS_STAT_H |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 597 | # include <sys/stat.h> |
| 598 | #endif |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 599 | #ifdef STDC_HEADERS |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 600 | # include <stdlib.h> |
| 601 | # include <stddef.h> |
| 602 | #else |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 603 | # ifdef HAVE_STDLIB_H |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 604 | # include <stdlib.h> |
| 605 | # endif |
| 606 | #endif |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 607 | #ifdef HAVE_STRING_H |
| 608 | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 609 | # include <memory.h> |
| 610 | # endif |
| 611 | # include <string.h> |
| 612 | #endif |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 613 | #ifdef HAVE_STRINGS_H |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 614 | # include <strings.h> |
| 615 | #endif |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 616 | #ifdef HAVE_INTTYPES_H |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 617 | # include <inttypes.h> |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 618 | #endif |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 619 | #ifdef HAVE_STDINT_H |
| 620 | # include <stdint.h> |
| 621 | #endif |
| 622 | #ifdef HAVE_UNISTD_H |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 623 | # include <unistd.h> |
| 624 | #endif" |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 625 | |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 626 | ac_header_list= |
| 627 | ac_func_list= |
| 628 | ac_subst_vars='LTLIBOBJS |
| 629 | LOCAL_DEFS |
| 630 | LOCAL_LDFLAGS |
| 631 | LOCAL_CFLAGS |
| 632 | LOCAL_LIBS |
| 633 | MALLOC_DEBUG |
| 634 | DEBUG |
| 635 | RELSTATUS |
| 636 | BASHVERS |
| 637 | ARFLAGS |
| 638 | BUILD_DIR |
| 639 | incdir |
| 640 | PROFILE_FLAGS |
| 641 | SHOBJ_STATUS |
| 642 | SHOBJ_LIBS |
| 643 | SHOBJ_XLDFLAGS |
| 644 | SHOBJ_LDFLAGS |
| 645 | SHOBJ_LD |
| 646 | SHOBJ_CFLAGS |
| 647 | SHOBJ_CC |
| 648 | JOBS_O |
| 649 | TERMCAP_DEP |
| 650 | TERMCAP_LIB |
| 651 | SIGLIST_O |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 652 | PTHREAD_H_DEFINES_STRUCT_TIMESPEC |
| 653 | SYS_TIME_H_DEFINES_STRUCT_TIMESPEC |
| 654 | TIME_H_DEFINES_STRUCT_TIMESPEC |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 655 | LIBINTL_H |
| 656 | INTL_INC |
| 657 | INTL_DEP |
| 658 | LIBOBJS |
| 659 | POSUB |
| 660 | LTLIBINTL |
| 661 | LIBINTL |
| 662 | INTLLIBS |
| 663 | INTL_LIBTOOL_SUFFIX_PREFIX |
| 664 | INTLOBJS |
| 665 | GENCAT |
| 666 | INSTOBJEXT |
| 667 | DATADIRNAME |
| 668 | CATOBJEXT |
| 669 | USE_INCLUDED_LIBINTL |
| 670 | BUILD_INCLUDED_LIBINTL |
| 671 | INTLBISON |
| 672 | LTLIBICONV |
| 673 | LIBICONV |
| 674 | GLIBC21 |
| 675 | ALLOCA |
| 676 | MSGMERGE |
| 677 | XGETTEXT |
| 678 | GMSGFMT |
| 679 | MSGFMT |
| 680 | USE_NLS |
| 681 | MKINSTALLDIRS |
| 682 | SIZE |
| 683 | MAKE_SHELL |
| 684 | SET_MAKE |
| 685 | YFLAGS |
| 686 | YACC |
| 687 | RANLIB |
| 688 | AR |
| 689 | INSTALL_DATA |
| 690 | INSTALL_SCRIPT |
| 691 | INSTALL_PROGRAM |
| 692 | TILDE_LIB |
| 693 | HIST_LIBDIR |
| 694 | HISTORY_DEP |
| 695 | HISTORY_LIB |
| 696 | RL_INCLUDE |
| 697 | RL_INCLUDEDIR |
| 698 | RL_LIBDIR |
| 699 | READLINE_DEP |
| 700 | READLINE_LIB |
| 701 | RL_MINOR |
| 702 | RL_MAJOR |
| 703 | RL_VERSION |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 704 | LIBS_FOR_BUILD |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 705 | STATIC_LD |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 706 | SIGNAMES_O |
| 707 | SIGNAMES_H |
| 708 | CROSS_COMPILE |
| 709 | EGREP |
| 710 | GREP |
| 711 | CPP |
| 712 | OBJEXT |
| 713 | EXEEXT |
| 714 | ac_ct_CC |
| 715 | CPPFLAGS |
| 716 | LDFLAGS |
| 717 | CFLAGS |
| 718 | CC |
| 719 | HELPSTRINGS |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 720 | HELPFILES_TARGET |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 721 | HELPINSTALL |
| 722 | HELPDIRDEFINE |
| 723 | HELPDIR |
| 724 | MALLOC_DEP |
| 725 | MALLOC_LDFLAGS |
| 726 | MALLOC_LIBRARY |
| 727 | MALLOC_LIB |
| 728 | MALLOC_SRC |
| 729 | MALLOC_TARGET |
| 730 | PURIFY |
| 731 | TESTSCRIPT |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 732 | CPPFLAGS_FOR_BUILD |
| 733 | LDFLAGS_FOR_BUILD |
| 734 | CFLAGS_FOR_BUILD |
| 735 | CC_FOR_BUILD |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 736 | DEBUGGER_START_FILE |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 737 | host_os |
| 738 | host_vendor |
| 739 | host_cpu |
| 740 | host |
| 741 | build_os |
| 742 | build_vendor |
| 743 | build_cpu |
| 744 | build |
| 745 | target_alias |
| 746 | host_alias |
| 747 | build_alias |
| 748 | LIBS |
| 749 | ECHO_T |
| 750 | ECHO_N |
| 751 | ECHO_C |
| 752 | DEFS |
| 753 | mandir |
| 754 | localedir |
| 755 | libdir |
| 756 | psdir |
| 757 | pdfdir |
| 758 | dvidir |
| 759 | htmldir |
| 760 | infodir |
| 761 | docdir |
| 762 | oldincludedir |
| 763 | includedir |
| 764 | localstatedir |
| 765 | sharedstatedir |
| 766 | sysconfdir |
| 767 | datadir |
| 768 | datarootdir |
| 769 | libexecdir |
| 770 | sbindir |
| 771 | bindir |
| 772 | program_transform_name |
| 773 | prefix |
| 774 | exec_prefix |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 775 | PACKAGE_URL |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 776 | PACKAGE_BUGREPORT |
| 777 | PACKAGE_STRING |
| 778 | PACKAGE_VERSION |
| 779 | PACKAGE_TARNAME |
| 780 | PACKAGE_NAME |
| 781 | PATH_SEPARATOR |
| 782 | SHELL' |
Jari Aalto | 0628567 | 2006-10-10 14:15:34 +0000 | [diff] [blame] | 783 | ac_subst_files='' |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 784 | ac_user_opts=' |
| 785 | enable_option_checking |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 786 | with_afs |
| 787 | with_bash_malloc |
| 788 | with_curses |
| 789 | with_gnu_malloc |
| 790 | with_installed_readline |
| 791 | with_purecov |
| 792 | with_purify |
| 793 | enable_minimal_config |
| 794 | enable_alias |
| 795 | enable_arith_for_command |
| 796 | enable_array_variables |
| 797 | enable_bang_history |
| 798 | enable_brace_expansion |
| 799 | enable_casemod_attributes |
| 800 | enable_casemod_expansions |
| 801 | enable_command_timing |
| 802 | enable_cond_command |
| 803 | enable_cond_regexp |
| 804 | enable_coprocesses |
| 805 | enable_debugger |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 806 | enable_direxpand_default |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 807 | enable_directory_stack |
| 808 | enable_disabled_builtins |
| 809 | enable_dparen_arithmetic |
| 810 | enable_extended_glob |
Chet Ramey | 0001803 | 2011-11-21 20:51:19 -0500 | [diff] [blame] | 811 | enable_extended_glob_default |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 812 | enable_glob_asciiranges_default |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 813 | enable_help_builtin |
| 814 | enable_history |
| 815 | enable_job_control |
| 816 | enable_multibyte |
| 817 | enable_net_redirections |
| 818 | enable_process_substitution |
| 819 | enable_progcomp |
| 820 | enable_prompt_string_decoding |
| 821 | enable_readline |
| 822 | enable_restricted |
| 823 | enable_select |
| 824 | enable_separate_helpfiles |
| 825 | enable_single_help_strings |
| 826 | enable_strict_posix_default |
| 827 | enable_usg_echo_default |
| 828 | enable_xpg_echo_default |
| 829 | enable_mem_scramble |
| 830 | enable_profiling |
| 831 | enable_static_link |
| 832 | enable_largefile |
| 833 | enable_nls |
| 834 | with_gnu_ld |
| 835 | enable_rpath |
| 836 | with_libiconv_prefix |
| 837 | with_included_gettext |
| 838 | with_libintl_prefix |
| 839 | ' |
| 840 | ac_precious_vars='build_alias |
| 841 | host_alias |
| 842 | target_alias |
| 843 | DEBUGGER_START_FILE |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 844 | CC_FOR_BUILD |
| 845 | CFLAGS_FOR_BUILD |
| 846 | LDFLAGS_FOR_BUILD |
| 847 | CPPFLAGS_FOR_BUILD |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 848 | CC |
| 849 | CFLAGS |
| 850 | LDFLAGS |
| 851 | LIBS |
| 852 | CPPFLAGS |
| 853 | CPP |
| 854 | YACC |
| 855 | YFLAGS' |
| 856 | |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 857 | |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 858 | # Initialize some variables set by options. |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 859 | ac_init_help= |
| 860 | ac_init_version=false |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 861 | ac_unrecognized_opts= |
| 862 | ac_unrecognized_sep= |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 863 | # The variables have the same names as the options, with |
| 864 | # dashes changed to underlines. |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 865 | cache_file=/dev/null |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 866 | exec_prefix=NONE |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 867 | no_create= |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 868 | no_recursion= |
| 869 | prefix=NONE |
| 870 | program_prefix=NONE |
| 871 | program_suffix=NONE |
| 872 | program_transform_name=s,x,x, |
| 873 | silent= |
| 874 | site= |
| 875 | srcdir= |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 876 | verbose= |
| 877 | x_includes=NONE |
| 878 | x_libraries=NONE |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 879 | |
| 880 | # Installation directory options. |
| 881 | # These are left unexpanded so users can "make install exec_prefix=/foo" |
| 882 | # and all the variables that are supposed to be based on exec_prefix |
| 883 | # by default will actually change. |
| 884 | # Use braces instead of parens because sh, perl, etc. also accept them. |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 885 | # (The list follows the same order as the GNU Coding Standards.) |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 886 | bindir='${exec_prefix}/bin' |
| 887 | sbindir='${exec_prefix}/sbin' |
| 888 | libexecdir='${exec_prefix}/libexec' |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 889 | datarootdir='${prefix}/share' |
| 890 | datadir='${datarootdir}' |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 891 | sysconfdir='${prefix}/etc' |
| 892 | sharedstatedir='${prefix}/com' |
| 893 | localstatedir='${prefix}/var' |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 894 | includedir='${prefix}/include' |
| 895 | oldincludedir='/usr/include' |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 896 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' |
| 897 | infodir='${datarootdir}/info' |
| 898 | htmldir='${docdir}' |
| 899 | dvidir='${docdir}' |
| 900 | pdfdir='${docdir}' |
| 901 | psdir='${docdir}' |
| 902 | libdir='${exec_prefix}/lib' |
| 903 | localedir='${datarootdir}/locale' |
| 904 | mandir='${datarootdir}/man' |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 905 | |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 906 | ac_prev= |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 907 | ac_dashdash= |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 908 | for ac_option |
| 909 | do |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 910 | # If the previous option needs an argument, assign it. |
| 911 | if test -n "$ac_prev"; then |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 912 | eval $ac_prev=\$ac_option |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 913 | ac_prev= |
| 914 | continue |
| 915 | fi |
| 916 | |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 917 | case $ac_option in |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 918 | *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
| 919 | *=) ac_optarg= ;; |
| 920 | *) ac_optarg=yes ;; |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 921 | esac |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 922 | |
| 923 | # Accept the important Cygnus configure options, so we can diagnose typos. |
| 924 | |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 925 | case $ac_dashdash$ac_option in |
| 926 | --) |
| 927 | ac_dashdash=yes ;; |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 928 | |
| 929 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
| 930 | ac_prev=bindir ;; |
| 931 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 932 | bindir=$ac_optarg ;; |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 933 | |
| 934 | -build | --build | --buil | --bui | --bu) |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 935 | ac_prev=build_alias ;; |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 936 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 937 | build_alias=$ac_optarg ;; |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 938 | |
| 939 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
| 940 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
| 941 | ac_prev=cache_file ;; |
| 942 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
| 943 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 944 | cache_file=$ac_optarg ;; |
| 945 | |
| 946 | --config-cache | -C) |
| 947 | cache_file=config.cache ;; |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 948 | |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 949 | -datadir | --datadir | --datadi | --datad) |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 950 | ac_prev=datadir ;; |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 951 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 952 | datadir=$ac_optarg ;; |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 953 | |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 954 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
| 955 | | --dataroo | --dataro | --datar) |
| 956 | ac_prev=datarootdir ;; |
| 957 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ |
| 958 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) |
| 959 | datarootdir=$ac_optarg ;; |
| 960 | |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 961 | -disable-* | --disable-*) |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 962 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 963 | # Reject names that are not valid shell variable names. |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 964 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 965 | as_fn_error $? "invalid feature name: $ac_useropt" |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 966 | ac_useropt_orig=$ac_useropt |
| 967 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 968 | case $ac_user_opts in |
| 969 | *" |
| 970 | "enable_$ac_useropt" |
| 971 | "*) ;; |
| 972 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" |
| 973 | ac_unrecognized_sep=', ';; |
| 974 | esac |
| 975 | eval enable_$ac_useropt=no ;; |
| 976 | |
| 977 | -docdir | --docdir | --docdi | --doc | --do) |
| 978 | ac_prev=docdir ;; |
| 979 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) |
| 980 | docdir=$ac_optarg ;; |
| 981 | |
| 982 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) |
| 983 | ac_prev=dvidir ;; |
| 984 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) |
| 985 | dvidir=$ac_optarg ;; |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 986 | |
| 987 | -enable-* | --enable-*) |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 988 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 989 | # Reject names that are not valid shell variable names. |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 990 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 991 | as_fn_error $? "invalid feature name: $ac_useropt" |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 992 | ac_useropt_orig=$ac_useropt |
| 993 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 994 | case $ac_user_opts in |
| 995 | *" |
| 996 | "enable_$ac_useropt" |
| 997 | "*) ;; |
| 998 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" |
| 999 | ac_unrecognized_sep=', ';; |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 1000 | esac |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 1001 | eval enable_$ac_useropt=\$ac_optarg ;; |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 1002 | |
| 1003 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
| 1004 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
| 1005 | | --exec | --exe | --ex) |
| 1006 | ac_prev=exec_prefix ;; |
| 1007 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
| 1008 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
| 1009 | | --exec=* | --exe=* | --ex=*) |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 1010 | exec_prefix=$ac_optarg ;; |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 1011 | |
| 1012 | -gas | --gas | --ga | --g) |
| 1013 | # Obsolete; use --with-gas. |
| 1014 | with_gas=yes ;; |
| 1015 | |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 1016 | -help | --help | --hel | --he | -h) |
| 1017 | ac_init_help=long ;; |
| 1018 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
| 1019 | ac_init_help=recursive ;; |
| 1020 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
| 1021 | ac_init_help=short ;; |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 1022 | |
| 1023 | -host | --host | --hos | --ho) |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 1024 | ac_prev=host_alias ;; |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 1025 | -host=* | --host=* | --hos=* | --ho=*) |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 1026 | host_alias=$ac_optarg ;; |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 1027 | |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 1028 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
| 1029 | ac_prev=htmldir ;; |
| 1030 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ |
| 1031 | | --ht=*) |
| 1032 | htmldir=$ac_optarg ;; |
| 1033 | |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 1034 | -includedir | --includedir | --includedi | --included | --include \ |
| 1035 | | --includ | --inclu | --incl | --inc) |
| 1036 | ac_prev=includedir ;; |
| 1037 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
| 1038 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 1039 | includedir=$ac_optarg ;; |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 1040 | |
| 1041 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
| 1042 | ac_prev=infodir ;; |
| 1043 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 1044 | infodir=$ac_optarg ;; |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 1045 | |
| 1046 | -libdir | --libdir | --libdi | --libd) |
| 1047 | ac_prev=libdir ;; |
| 1048 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 1049 | libdir=$ac_optarg ;; |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 1050 | |
| 1051 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
| 1052 | | --libexe | --libex | --libe) |
| 1053 | ac_prev=libexecdir ;; |
| 1054 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
| 1055 | | --libexe=* | --libex=* | --libe=*) |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 1056 | libexecdir=$ac_optarg ;; |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 1057 | |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 1058 | -localedir | --localedir | --localedi | --localed | --locale) |
| 1059 | ac_prev=localedir ;; |
| 1060 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) |
| 1061 | localedir=$ac_optarg ;; |
| 1062 | |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 1063 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 1064 | | --localstate | --localstat | --localsta | --localst | --locals) |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 1065 | ac_prev=localstatedir ;; |
| 1066 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 1067 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 1068 | localstatedir=$ac_optarg ;; |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 1069 | |
| 1070 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
| 1071 | ac_prev=mandir ;; |
| 1072 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 1073 | mandir=$ac_optarg ;; |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 1074 | |
| 1075 | -nfp | --nfp | --nf) |
| 1076 | # Obsolete; use --without-fp. |
| 1077 | with_fp=no ;; |
| 1078 | |
| 1079 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 1080 | | --no-cr | --no-c | -n) |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 1081 | no_create=yes ;; |
| 1082 | |
| 1083 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
| 1084 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
| 1085 | no_recursion=yes ;; |
| 1086 | |
| 1087 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
| 1088 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
| 1089 | | --oldin | --oldi | --old | --ol | --o) |
| 1090 | ac_prev=oldincludedir ;; |
| 1091 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
| 1092 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
| 1093 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 1094 | oldincludedir=$ac_optarg ;; |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 1095 | |
| 1096 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
| 1097 | ac_prev=prefix ;; |
| 1098 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 1099 | prefix=$ac_optarg ;; |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 1100 | |
| 1101 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
| 1102 | | --program-pre | --program-pr | --program-p) |
| 1103 | ac_prev=program_prefix ;; |
| 1104 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
| 1105 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 1106 | program_prefix=$ac_optarg ;; |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 1107 | |
| 1108 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
| 1109 | | --program-suf | --program-su | --program-s) |
| 1110 | ac_prev=program_suffix ;; |
| 1111 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
| 1112 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 1113 | program_suffix=$ac_optarg ;; |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 1114 | |
| 1115 | -program-transform-name | --program-transform-name \ |
| 1116 | | --program-transform-nam | --program-transform-na \ |
| 1117 | | --program-transform-n | --program-transform- \ |
| 1118 | | --program-transform | --program-transfor \ |
| 1119 | | --program-transfo | --program-transf \ |
| 1120 | | --program-trans | --program-tran \ |
| 1121 | | --progr-tra | --program-tr | --program-t) |
| 1122 | ac_prev=program_transform_name ;; |
| 1123 | -program-transform-name=* | --program-transform-name=* \ |
| 1124 | | --program-transform-nam=* | --program-transform-na=* \ |
| 1125 | | --program-transform-n=* | --program-transform-=* \ |
| 1126 | | --program-transform=* | --program-transfor=* \ |
| 1127 | | --program-transfo=* | --program-transf=* \ |
| 1128 | | --program-trans=* | --program-tran=* \ |
| 1129 | | --progr-tra=* | --program-tr=* | --program-t=*) |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 1130 | program_transform_name=$ac_optarg ;; |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 1131 | |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 1132 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
| 1133 | ac_prev=pdfdir ;; |
| 1134 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) |
| 1135 | pdfdir=$ac_optarg ;; |
| 1136 | |
| 1137 | -psdir | --psdir | --psdi | --psd | --ps) |
| 1138 | ac_prev=psdir ;; |
| 1139 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) |
| 1140 | psdir=$ac_optarg ;; |
| 1141 | |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 1142 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 1143 | | -silent | --silent | --silen | --sile | --sil) |
| 1144 | silent=yes ;; |
| 1145 | |
| 1146 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
| 1147 | ac_prev=sbindir ;; |
| 1148 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
| 1149 | | --sbi=* | --sb=*) |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 1150 | sbindir=$ac_optarg ;; |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 1151 | |
| 1152 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
| 1153 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
| 1154 | | --sharedst | --shareds | --shared | --share | --shar \ |
| 1155 | | --sha | --sh) |
| 1156 | ac_prev=sharedstatedir ;; |
| 1157 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
| 1158 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
| 1159 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
| 1160 | | --sha=* | --sh=*) |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 1161 | sharedstatedir=$ac_optarg ;; |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 1162 | |
| 1163 | -site | --site | --sit) |
| 1164 | ac_prev=site ;; |
| 1165 | -site=* | --site=* | --sit=*) |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 1166 | site=$ac_optarg ;; |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 1167 | |
| 1168 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
| 1169 | ac_prev=srcdir ;; |
| 1170 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 1171 | srcdir=$ac_optarg ;; |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 1172 | |
| 1173 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
| 1174 | | --syscon | --sysco | --sysc | --sys | --sy) |
| 1175 | ac_prev=sysconfdir ;; |
| 1176 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
| 1177 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 1178 | sysconfdir=$ac_optarg ;; |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 1179 | |
| 1180 | -target | --target | --targe | --targ | --tar | --ta | --t) |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 1181 | ac_prev=target_alias ;; |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 1182 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 1183 | target_alias=$ac_optarg ;; |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 1184 | |
| 1185 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
| 1186 | verbose=yes ;; |
| 1187 | |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 1188 | -version | --version | --versio | --versi | --vers | -V) |
| 1189 | ac_init_version=: ;; |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 1190 | |
| 1191 | -with-* | --with-*) |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 1192 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 1193 | # Reject names that are not valid shell variable names. |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 1194 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 1195 | as_fn_error $? "invalid package name: $ac_useropt" |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 1196 | ac_useropt_orig=$ac_useropt |
| 1197 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 1198 | case $ac_user_opts in |
| 1199 | *" |
| 1200 | "with_$ac_useropt" |
| 1201 | "*) ;; |
| 1202 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" |
| 1203 | ac_unrecognized_sep=', ';; |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 1204 | esac |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 1205 | eval with_$ac_useropt=\$ac_optarg ;; |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 1206 | |
| 1207 | -without-* | --without-*) |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 1208 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 1209 | # Reject names that are not valid shell variable names. |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 1210 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 1211 | as_fn_error $? "invalid package name: $ac_useropt" |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 1212 | ac_useropt_orig=$ac_useropt |
| 1213 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 1214 | case $ac_user_opts in |
| 1215 | *" |
| 1216 | "with_$ac_useropt" |
| 1217 | "*) ;; |
| 1218 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" |
| 1219 | ac_unrecognized_sep=', ';; |
| 1220 | esac |
| 1221 | eval with_$ac_useropt=no ;; |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 1222 | |
| 1223 | --x) |
| 1224 | # Obsolete; use --with-x. |
| 1225 | with_x=yes ;; |
| 1226 | |
| 1227 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
| 1228 | | --x-incl | --x-inc | --x-in | --x-i) |
| 1229 | ac_prev=x_includes ;; |
| 1230 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
| 1231 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 1232 | x_includes=$ac_optarg ;; |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 1233 | |
| 1234 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
| 1235 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
| 1236 | ac_prev=x_libraries ;; |
| 1237 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
| 1238 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 1239 | x_libraries=$ac_optarg ;; |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 1240 | |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 1241 | -*) as_fn_error $? "unrecognized option: \`$ac_option' |
| 1242 | Try \`$0 --help' for more information" |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 1243 | ;; |
| 1244 | |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 1245 | *=*) |
| 1246 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
| 1247 | # Reject names that are not valid shell variable names. |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 1248 | case $ac_envvar in #( |
| 1249 | '' | [0-9]* | *[!_$as_cr_alnum]* ) |
| 1250 | as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; |
| 1251 | esac |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 1252 | eval $ac_envvar=\$ac_optarg |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 1253 | export $ac_envvar ;; |
| 1254 | |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 1255 | *) |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 1256 | # FIXME: should be removed in autoconf 3.0. |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 1257 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 1258 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 1259 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 1260 | : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 1261 | ;; |
| 1262 | |
| 1263 | esac |
| 1264 | done |
| 1265 | |
| 1266 | if test -n "$ac_prev"; then |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 1267 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 1268 | as_fn_error $? "missing argument to $ac_option" |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 1269 | fi |
| 1270 | |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 1271 | if test -n "$ac_unrecognized_opts"; then |
| 1272 | case $enable_option_checking in |
| 1273 | no) ;; |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 1274 | fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 1275 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 1276 | esac |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 1277 | fi |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 1278 | |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 1279 | # Check all directory arguments for consistency. |
| 1280 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
| 1281 | datadir sysconfdir sharedstatedir localstatedir includedir \ |
| 1282 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ |
| 1283 | libdir localedir mandir |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 1284 | do |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 1285 | eval ac_val=\$$ac_var |
| 1286 | # Remove trailing slashes. |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 1287 | case $ac_val in |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 1288 | */ ) |
| 1289 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` |
| 1290 | eval $ac_var=\$ac_val;; |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 1291 | esac |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 1292 | # Be sure to have absolute directory names. |
| 1293 | case $ac_val in |
| 1294 | [\\/$]* | ?:[\\/]* ) continue;; |
| 1295 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; |
| 1296 | esac |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 1297 | as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 1298 | done |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 1299 | |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 1300 | # There might be people who depend on the old broken behavior: `$host' |
| 1301 | # used to hold the argument of --host etc. |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 1302 | # FIXME: To remove some day. |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 1303 | build=$build_alias |
| 1304 | host=$host_alias |
| 1305 | target=$target_alias |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 1306 | |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 1307 | # FIXME: To remove some day. |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 1308 | if test "x$host_alias" != x; then |
| 1309 | if test "x$build_alias" = x; then |
| 1310 | cross_compiling=maybe |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 1311 | elif test "x$build_alias" != "x$host_alias"; then |
| 1312 | cross_compiling=yes |
| 1313 | fi |
| 1314 | fi |
| 1315 | |
| 1316 | ac_tool_prefix= |
| 1317 | test -n "$host_alias" && ac_tool_prefix=$host_alias- |
| 1318 | |
| 1319 | test "$silent" = yes && exec 6>/dev/null |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 1320 | |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 1321 | |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 1322 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
| 1323 | ac_ls_di=`ls -di .` && |
| 1324 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 1325 | as_fn_error $? "working directory cannot be determined" |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 1326 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 1327 | as_fn_error $? "pwd does not report name of working directory" |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 1328 | |
| 1329 | |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 1330 | # Find the source files, if location was not specified. |
| 1331 | if test -z "$srcdir"; then |
| 1332 | ac_srcdir_defaulted=yes |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 1333 | # Try the directory containing this script, then the parent directory. |
| 1334 | ac_confdir=`$as_dirname -- "$as_myself" || |
| 1335 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 1336 | X"$as_myself" : 'X\(//\)[^/]' \| \ |
| 1337 | X"$as_myself" : 'X\(//\)$' \| \ |
| 1338 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || |
| 1339 | $as_echo X"$as_myself" | |
| 1340 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 1341 | s//\1/ |
| 1342 | q |
| 1343 | } |
| 1344 | /^X\(\/\/\)[^/].*/{ |
| 1345 | s//\1/ |
| 1346 | q |
| 1347 | } |
| 1348 | /^X\(\/\/\)$/{ |
| 1349 | s//\1/ |
| 1350 | q |
| 1351 | } |
| 1352 | /^X\(\/\).*/{ |
| 1353 | s//\1/ |
| 1354 | q |
| 1355 | } |
| 1356 | s/.*/./; q'` |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 1357 | srcdir=$ac_confdir |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 1358 | if test ! -r "$srcdir/$ac_unique_file"; then |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 1359 | srcdir=.. |
| 1360 | fi |
| 1361 | else |
| 1362 | ac_srcdir_defaulted=no |
| 1363 | fi |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 1364 | if test ! -r "$srcdir/$ac_unique_file"; then |
| 1365 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 1366 | as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 1367 | fi |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 1368 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
| 1369 | ac_abs_confdir=`( |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 1370 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 1371 | pwd)` |
| 1372 | # When building in place, set srcdir=. |
| 1373 | if test "$ac_abs_confdir" = "$ac_pwd"; then |
| 1374 | srcdir=. |
| 1375 | fi |
| 1376 | # Remove unnecessary trailing slashes from srcdir. |
| 1377 | # Double slashes in file names in object file debugging info |
| 1378 | # mess up M-x gdb in Emacs. |
| 1379 | case $srcdir in |
| 1380 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; |
| 1381 | esac |
| 1382 | for ac_var in $ac_precious_vars; do |
| 1383 | eval ac_env_${ac_var}_set=\${${ac_var}+set} |
| 1384 | eval ac_env_${ac_var}_value=\$${ac_var} |
| 1385 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} |
| 1386 | eval ac_cv_env_${ac_var}_value=\$${ac_var} |
| 1387 | done |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 1388 | |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 1389 | # |
| 1390 | # Report the --help message. |
| 1391 | # |
| 1392 | if test "$ac_init_help" = "long"; then |
| 1393 | # Omit some internal or obsolete options to make the list less imposing. |
| 1394 | # This message is too long to be a string in the A/UX 3.1 sh. |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 1395 | cat <<_ACEOF |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 1396 | \`configure' configures bash 4.3-release to adapt to many kinds of systems. |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 1397 | |
| 1398 | Usage: $0 [OPTION]... [VAR=VALUE]... |
| 1399 | |
| 1400 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
| 1401 | VAR=VALUE. See below for descriptions of some of the useful variables. |
| 1402 | |
| 1403 | Defaults for the options are specified in brackets. |
| 1404 | |
| 1405 | Configuration: |
| 1406 | -h, --help display this help and exit |
| 1407 | --help=short display options specific to this package |
| 1408 | --help=recursive display the short help of all the included packages |
| 1409 | -V, --version display version information and exit |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 1410 | -q, --quiet, --silent do not print \`checking ...' messages |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 1411 | --cache-file=FILE cache test results in FILE [disabled] |
| 1412 | -C, --config-cache alias for \`--cache-file=config.cache' |
| 1413 | -n, --no-create do not create output files |
| 1414 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] |
| 1415 | |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 1416 | Installation directories: |
| 1417 | --prefix=PREFIX install architecture-independent files in PREFIX |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 1418 | [$ac_default_prefix] |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 1419 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 1420 | [PREFIX] |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 1421 | |
| 1422 | By default, \`make install' will install all the files in |
| 1423 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
| 1424 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
| 1425 | for instance \`--prefix=\$HOME'. |
| 1426 | |
| 1427 | For better control, use the options below. |
| 1428 | |
| 1429 | Fine tuning of the installation directories: |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 1430 | --bindir=DIR user executables [EPREFIX/bin] |
| 1431 | --sbindir=DIR system admin executables [EPREFIX/sbin] |
| 1432 | --libexecdir=DIR program executables [EPREFIX/libexec] |
| 1433 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
| 1434 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
| 1435 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
| 1436 | --libdir=DIR object code libraries [EPREFIX/lib] |
| 1437 | --includedir=DIR C header files [PREFIX/include] |
| 1438 | --oldincludedir=DIR C header files for non-gcc [/usr/include] |
| 1439 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] |
| 1440 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] |
| 1441 | --infodir=DIR info documentation [DATAROOTDIR/info] |
| 1442 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] |
| 1443 | --mandir=DIR man documentation [DATAROOTDIR/man] |
| 1444 | --docdir=DIR documentation root [DATAROOTDIR/doc/bash] |
| 1445 | --htmldir=DIR html documentation [DOCDIR] |
| 1446 | --dvidir=DIR dvi documentation [DOCDIR] |
| 1447 | --pdfdir=DIR pdf documentation [DOCDIR] |
| 1448 | --psdir=DIR ps documentation [DOCDIR] |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 1449 | _ACEOF |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 1450 | |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 1451 | cat <<\_ACEOF |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 1452 | |
| 1453 | System types: |
| 1454 | --build=BUILD configure for building on BUILD [guessed] |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 1455 | --host=HOST cross-compile to build programs to run on HOST [BUILD] |
| 1456 | _ACEOF |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 1457 | fi |
| 1458 | |
| 1459 | if test -n "$ac_init_help"; then |
| 1460 | case $ac_init_help in |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 1461 | short | recursive ) echo "Configuration of bash 4.3-release:";; |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 1462 | esac |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 1463 | cat <<\_ACEOF |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 1464 | |
| 1465 | Optional Features: |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 1466 | --disable-option-checking ignore unrecognized --enable/--with options |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 1467 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
| 1468 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
Jari Aalto | 7117c2d | 2002-07-17 14:10:11 +0000 | [diff] [blame] | 1469 | --enable-minimal-config a minimal sh-like configuration |
| 1470 | --enable-alias enable shell aliases |
| 1471 | --enable-arith-for-command |
| 1472 | enable arithmetic for command |
| 1473 | --enable-array-variables |
| 1474 | include shell array variables |
| 1475 | --enable-bang-history turn on csh-style history substitution |
| 1476 | --enable-brace-expansion |
| 1477 | include brace expansion |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 1478 | --enable-casemod-attributes |
| 1479 | include case-modifying variable attributes |
| 1480 | --enable-casemod-expansions |
| 1481 | include case-modifying word expansions |
Jari Aalto | 7117c2d | 2002-07-17 14:10:11 +0000 | [diff] [blame] | 1482 | --enable-command-timing enable the time reserved word and command timing |
| 1483 | --enable-cond-command enable the conditional command |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 1484 | --enable-cond-regexp enable extended regular expression matching in |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 1485 | conditional commands |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 1486 | --enable-coprocesses enable coprocess support and the coproc reserved |
| 1487 | word |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 1488 | --enable-debugger enable support for bash debugger |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 1489 | --enable-direxpand-default |
| 1490 | enable the direxpand shell option by default |
Jari Aalto | 7117c2d | 2002-07-17 14:10:11 +0000 | [diff] [blame] | 1491 | --enable-directory-stack |
| 1492 | enable builtins pushd/popd/dirs |
| 1493 | --enable-disabled-builtins |
| 1494 | allow disabled builtins to still be invoked |
| 1495 | --enable-dparen-arithmetic |
| 1496 | include ((...)) command |
| 1497 | --enable-extended-glob include ksh-style extended pattern matching |
Chet Ramey | 0001803 | 2011-11-21 20:51:19 -0500 | [diff] [blame] | 1498 | --enable-extended-glob-default |
| 1499 | force extended pattern matching to be enabled by |
| 1500 | default |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 1501 | --enable-glob-asciiranges-default |
| 1502 | force bracket range expressions in pattern matching |
| 1503 | to use the C locale by default |
Jari Aalto | 7117c2d | 2002-07-17 14:10:11 +0000 | [diff] [blame] | 1504 | --enable-help-builtin include the help builtin |
| 1505 | --enable-history turn on command history |
| 1506 | --enable-job-control enable job control features |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 1507 | --enable-multibyte enable multibyte characters if OS supports them |
Jari Aalto | 7117c2d | 2002-07-17 14:10:11 +0000 | [diff] [blame] | 1508 | --enable-net-redirections |
| 1509 | enable /dev/tcp/host/port redirection |
| 1510 | --enable-process-substitution |
| 1511 | enable process substitution |
| 1512 | --enable-progcomp enable programmable completion and the complete |
| 1513 | builtin |
| 1514 | --enable-prompt-string-decoding |
| 1515 | turn on escape character decoding in prompts |
| 1516 | --enable-readline turn on command line editing |
| 1517 | --enable-restricted enable a restricted shell |
| 1518 | --enable-select include select command |
| 1519 | --enable-separate-helpfiles |
| 1520 | use external files for help builtin documentation |
Jari Aalto | 95732b4 | 2005-12-07 14:08:12 +0000 | [diff] [blame] | 1521 | --enable-single-help-strings |
| 1522 | store help documentation as a single string to ease |
| 1523 | translation |
| 1524 | --enable-strict-posix-default |
| 1525 | configure bash to be posix-conformant by default |
Jari Aalto | 7117c2d | 2002-07-17 14:10:11 +0000 | [diff] [blame] | 1526 | --enable-usg-echo-default |
| 1527 | a synonym for --enable-xpg-echo-default |
| 1528 | --enable-xpg-echo-default |
| 1529 | make the echo builtin expand escape sequences by |
| 1530 | default |
| 1531 | --enable-mem-scramble scramble memory on calls to malloc and free |
| 1532 | --enable-profiling allow profiling with gprof |
| 1533 | --enable-static-link link bash statically, for use as a root shell |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 1534 | --disable-largefile omit support for large files |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 1535 | --disable-nls do not use Native Language Support |
| 1536 | --disable-rpath do not hardcode runtime library paths |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 1537 | |
| 1538 | Optional Packages: |
| 1539 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
| 1540 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
Jari Aalto | 7117c2d | 2002-07-17 14:10:11 +0000 | [diff] [blame] | 1541 | --with-afs if you are running AFS |
| 1542 | --with-bash-malloc use the Bash version of malloc |
| 1543 | --with-curses use the curses library instead of the termcap |
| 1544 | library |
| 1545 | --with-gnu-malloc synonym for --with-bash-malloc |
| 1546 | --with-installed-readline |
| 1547 | use a version of the readline library that is |
| 1548 | already installed |
| 1549 | --with-purecov configure to postprocess with pure coverage |
| 1550 | --with-purify configure to postprocess with purify |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 1551 | --with-gnu-ld assume the C compiler uses GNU ld default=no |
| 1552 | --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib |
| 1553 | --without-libiconv-prefix don't search for libiconv in includedir and libdir |
| 1554 | --with-included-gettext use the GNU gettext library included here |
| 1555 | --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib |
| 1556 | --without-libintl-prefix don't search for libintl in includedir and libdir |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 1557 | |
| 1558 | Some influential environment variables: |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 1559 | DEBUGGER_START_FILE |
| 1560 | location of bash debugger initialization file |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 1561 | CC_FOR_BUILD |
| 1562 | C compiler used when compiling binaries used only at build time |
| 1563 | CFLAGS_FOR_BUILD |
| 1564 | Compliation options (CFLAGS) used when compiling binaries used |
| 1565 | only at build time |
| 1566 | LDFLAGS_FOR_BUILD |
| 1567 | Linker options (LDFLAGS) used when compiling binaries used only |
| 1568 | at build time |
| 1569 | CPPFLAGS_FOR_BUILD |
| 1570 | C preprocessor options (CPPFLAGS) used when compiling binaries |
| 1571 | used only at build time |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 1572 | CC C compiler command |
| 1573 | CFLAGS C compiler flags |
| 1574 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
| 1575 | nonstandard directory <lib dir> |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 1576 | LIBS libraries to pass to the linker, e.g. -l<library> |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 1577 | CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 1578 | you have headers in a nonstandard directory <include dir> |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 1579 | CPP C preprocessor |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 1580 | YACC The `Yet Another Compiler Compiler' implementation to use. |
| 1581 | Defaults to the first program found out of: `bison -y', `byacc', |
| 1582 | `yacc'. |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 1583 | YFLAGS The list of arguments that will be passed by default to $YACC. |
| 1584 | This script will default YFLAGS to the empty string to avoid a |
| 1585 | default value of `-d' given by some make applications. |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 1586 | |
| 1587 | Use these variables to override the choices made by `configure' or to help |
| 1588 | it to find libraries and programs with nonstandard names/locations. |
| 1589 | |
| 1590 | Report bugs to <bug-bash@gnu.org>. |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 1591 | _ACEOF |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 1592 | ac_status=$? |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 1593 | fi |
| 1594 | |
| 1595 | if test "$ac_init_help" = "recursive"; then |
| 1596 | # If there are subdirs, report their specific --help. |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 1597 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 1598 | test -d "$ac_dir" || |
| 1599 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || |
| 1600 | continue |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 1601 | ac_builddir=. |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 1602 | |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 1603 | case "$ac_dir" in |
| 1604 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 1605 | *) |
| 1606 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
| 1607 | # A ".." for each directory in $ac_dir_suffix. |
| 1608 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
| 1609 | case $ac_top_builddir_sub in |
| 1610 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 1611 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 1612 | esac ;; |
| 1613 | esac |
| 1614 | ac_abs_top_builddir=$ac_pwd |
| 1615 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 1616 | # for backward compatibility: |
| 1617 | ac_top_builddir=$ac_top_build_prefix |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 1618 | |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 1619 | case $srcdir in |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 1620 | .) # We are building in place. |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 1621 | ac_srcdir=. |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 1622 | ac_top_srcdir=$ac_top_builddir_sub |
| 1623 | ac_abs_top_srcdir=$ac_pwd ;; |
| 1624 | [\\/]* | ?:[\\/]* ) # Absolute name. |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 1625 | ac_srcdir=$srcdir$ac_dir_suffix; |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 1626 | ac_top_srcdir=$srcdir |
| 1627 | ac_abs_top_srcdir=$srcdir ;; |
| 1628 | *) # Relative name. |
| 1629 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 1630 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 1631 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 1632 | esac |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 1633 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
Jari Aalto | 0628567 | 2006-10-10 14:15:34 +0000 | [diff] [blame] | 1634 | |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 1635 | cd "$ac_dir" || { ac_status=$?; continue; } |
| 1636 | # Check for guested configure. |
| 1637 | if test -f "$ac_srcdir/configure.gnu"; then |
| 1638 | echo && |
| 1639 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive |
| 1640 | elif test -f "$ac_srcdir/configure"; then |
| 1641 | echo && |
| 1642 | $SHELL "$ac_srcdir/configure" --help=recursive |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 1643 | else |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 1644 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
| 1645 | fi || ac_status=$? |
| 1646 | cd "$ac_pwd" || { ac_status=$?; break; } |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 1647 | done |
| 1648 | fi |
| 1649 | |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 1650 | test -n "$ac_init_help" && exit $ac_status |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 1651 | if $ac_init_version; then |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 1652 | cat <<\_ACEOF |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 1653 | bash configure 4.3-release |
| 1654 | generated by GNU Autoconf 2.69 |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 1655 | |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 1656 | Copyright (C) 2012 Free Software Foundation, Inc. |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 1657 | This configure script is free software; the Free Software Foundation |
| 1658 | gives unlimited permission to copy, distribute and modify it. |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 1659 | _ACEOF |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 1660 | exit |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 1661 | fi |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 1662 | |
| 1663 | ## ------------------------ ## |
| 1664 | ## Autoconf initialization. ## |
| 1665 | ## ------------------------ ## |
| 1666 | |
| 1667 | # ac_fn_c_try_compile LINENO |
| 1668 | # -------------------------- |
| 1669 | # Try to compile conftest.$ac_ext, and return whether this succeeded. |
| 1670 | ac_fn_c_try_compile () |
| 1671 | { |
| 1672 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1673 | rm -f conftest.$ac_objext |
| 1674 | if { { ac_try="$ac_compile" |
| 1675 | case "(($ac_try" in |
| 1676 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1677 | *) ac_try_echo=$ac_try;; |
| 1678 | esac |
| 1679 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1680 | $as_echo "$ac_try_echo"; } >&5 |
| 1681 | (eval "$ac_compile") 2>conftest.err |
| 1682 | ac_status=$? |
| 1683 | if test -s conftest.err; then |
| 1684 | grep -v '^ *+' conftest.err >conftest.er1 |
| 1685 | cat conftest.er1 >&5 |
| 1686 | mv -f conftest.er1 conftest.err |
| 1687 | fi |
| 1688 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1689 | test $ac_status = 0; } && { |
| 1690 | test -z "$ac_c_werror_flag" || |
| 1691 | test ! -s conftest.err |
| 1692 | } && test -s conftest.$ac_objext; then : |
| 1693 | ac_retval=0 |
| 1694 | else |
| 1695 | $as_echo "$as_me: failed program was:" >&5 |
| 1696 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1697 | |
| 1698 | ac_retval=1 |
| 1699 | fi |
| 1700 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 1701 | as_fn_set_status $ac_retval |
| 1702 | |
| 1703 | } # ac_fn_c_try_compile |
| 1704 | |
| 1705 | # ac_fn_c_try_link LINENO |
| 1706 | # ----------------------- |
| 1707 | # Try to link conftest.$ac_ext, and return whether this succeeded. |
| 1708 | ac_fn_c_try_link () |
| 1709 | { |
| 1710 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1711 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 1712 | if { { ac_try="$ac_link" |
| 1713 | case "(($ac_try" in |
| 1714 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1715 | *) ac_try_echo=$ac_try;; |
| 1716 | esac |
| 1717 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1718 | $as_echo "$ac_try_echo"; } >&5 |
| 1719 | (eval "$ac_link") 2>conftest.err |
| 1720 | ac_status=$? |
| 1721 | if test -s conftest.err; then |
| 1722 | grep -v '^ *+' conftest.err >conftest.er1 |
| 1723 | cat conftest.er1 >&5 |
| 1724 | mv -f conftest.er1 conftest.err |
| 1725 | fi |
| 1726 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1727 | test $ac_status = 0; } && { |
| 1728 | test -z "$ac_c_werror_flag" || |
| 1729 | test ! -s conftest.err |
| 1730 | } && test -s conftest$ac_exeext && { |
| 1731 | test "$cross_compiling" = yes || |
| 1732 | test -x conftest$ac_exeext |
| 1733 | }; then : |
| 1734 | ac_retval=0 |
| 1735 | else |
| 1736 | $as_echo "$as_me: failed program was:" >&5 |
| 1737 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1738 | |
| 1739 | ac_retval=1 |
| 1740 | fi |
| 1741 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information |
| 1742 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would |
| 1743 | # interfere with the next link command; also delete a directory that is |
| 1744 | # left behind by Apple's compiler. We do this before executing the actions. |
| 1745 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
| 1746 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 1747 | as_fn_set_status $ac_retval |
| 1748 | |
| 1749 | } # ac_fn_c_try_link |
| 1750 | |
| 1751 | # ac_fn_c_try_cpp LINENO |
| 1752 | # ---------------------- |
| 1753 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. |
| 1754 | ac_fn_c_try_cpp () |
| 1755 | { |
| 1756 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1757 | if { { ac_try="$ac_cpp conftest.$ac_ext" |
| 1758 | case "(($ac_try" in |
| 1759 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1760 | *) ac_try_echo=$ac_try;; |
| 1761 | esac |
| 1762 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1763 | $as_echo "$ac_try_echo"; } >&5 |
| 1764 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err |
| 1765 | ac_status=$? |
| 1766 | if test -s conftest.err; then |
| 1767 | grep -v '^ *+' conftest.err >conftest.er1 |
| 1768 | cat conftest.er1 >&5 |
| 1769 | mv -f conftest.er1 conftest.err |
| 1770 | fi |
| 1771 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1772 | test $ac_status = 0; } > conftest.i && { |
| 1773 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 1774 | test ! -s conftest.err |
| 1775 | }; then : |
| 1776 | ac_retval=0 |
| 1777 | else |
| 1778 | $as_echo "$as_me: failed program was:" >&5 |
| 1779 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1780 | |
| 1781 | ac_retval=1 |
| 1782 | fi |
| 1783 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 1784 | as_fn_set_status $ac_retval |
| 1785 | |
| 1786 | } # ac_fn_c_try_cpp |
| 1787 | |
| 1788 | # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES |
| 1789 | # ------------------------------------------------------- |
| 1790 | # Tests whether HEADER exists, giving a warning if it cannot be compiled using |
| 1791 | # the include files in INCLUDES and setting the cache variable VAR |
| 1792 | # accordingly. |
| 1793 | ac_fn_c_check_header_mongrel () |
| 1794 | { |
| 1795 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1796 | if eval \${$3+:} false; then : |
| 1797 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 1798 | $as_echo_n "checking for $2... " >&6; } |
| 1799 | if eval \${$3+:} false; then : |
| 1800 | $as_echo_n "(cached) " >&6 |
| 1801 | fi |
| 1802 | eval ac_res=\$$3 |
| 1803 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 1804 | $as_echo "$ac_res" >&6; } |
| 1805 | else |
| 1806 | # Is the header compilable? |
| 1807 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 |
| 1808 | $as_echo_n "checking $2 usability... " >&6; } |
| 1809 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1810 | /* end confdefs.h. */ |
| 1811 | $4 |
| 1812 | #include <$2> |
| 1813 | _ACEOF |
| 1814 | if ac_fn_c_try_compile "$LINENO"; then : |
| 1815 | ac_header_compiler=yes |
| 1816 | else |
| 1817 | ac_header_compiler=no |
| 1818 | fi |
| 1819 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 1820 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 |
| 1821 | $as_echo "$ac_header_compiler" >&6; } |
| 1822 | |
| 1823 | # Is the header present? |
| 1824 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 |
| 1825 | $as_echo_n "checking $2 presence... " >&6; } |
| 1826 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1827 | /* end confdefs.h. */ |
| 1828 | #include <$2> |
| 1829 | _ACEOF |
| 1830 | if ac_fn_c_try_cpp "$LINENO"; then : |
| 1831 | ac_header_preproc=yes |
| 1832 | else |
| 1833 | ac_header_preproc=no |
| 1834 | fi |
| 1835 | rm -f conftest.err conftest.i conftest.$ac_ext |
| 1836 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 |
| 1837 | $as_echo "$ac_header_preproc" >&6; } |
| 1838 | |
| 1839 | # So? What about this header? |
| 1840 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( |
| 1841 | yes:no: ) |
| 1842 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 1843 | $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 1844 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 |
| 1845 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} |
| 1846 | ;; |
| 1847 | no:yes:* ) |
| 1848 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 |
| 1849 | $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} |
| 1850 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 |
| 1851 | $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} |
| 1852 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 |
| 1853 | $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} |
| 1854 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 |
| 1855 | $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} |
| 1856 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 |
| 1857 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} |
| 1858 | ( $as_echo "## ------------------------------- ## |
| 1859 | ## Report this to bug-bash@gnu.org ## |
| 1860 | ## ------------------------------- ##" |
| 1861 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 1862 | ;; |
| 1863 | esac |
| 1864 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 1865 | $as_echo_n "checking for $2... " >&6; } |
| 1866 | if eval \${$3+:} false; then : |
| 1867 | $as_echo_n "(cached) " >&6 |
| 1868 | else |
| 1869 | eval "$3=\$ac_header_compiler" |
| 1870 | fi |
| 1871 | eval ac_res=\$$3 |
| 1872 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 1873 | $as_echo "$ac_res" >&6; } |
| 1874 | fi |
| 1875 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 1876 | |
| 1877 | } # ac_fn_c_check_header_mongrel |
| 1878 | |
| 1879 | # ac_fn_c_try_run LINENO |
| 1880 | # ---------------------- |
| 1881 | # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes |
| 1882 | # that executables *can* be run. |
| 1883 | ac_fn_c_try_run () |
| 1884 | { |
| 1885 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1886 | if { { ac_try="$ac_link" |
| 1887 | case "(($ac_try" in |
| 1888 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1889 | *) ac_try_echo=$ac_try;; |
| 1890 | esac |
| 1891 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1892 | $as_echo "$ac_try_echo"; } >&5 |
| 1893 | (eval "$ac_link") 2>&5 |
| 1894 | ac_status=$? |
| 1895 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1896 | test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' |
| 1897 | { { case "(($ac_try" in |
| 1898 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1899 | *) ac_try_echo=$ac_try;; |
| 1900 | esac |
| 1901 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1902 | $as_echo "$ac_try_echo"; } >&5 |
| 1903 | (eval "$ac_try") 2>&5 |
| 1904 | ac_status=$? |
| 1905 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1906 | test $ac_status = 0; }; }; then : |
| 1907 | ac_retval=0 |
| 1908 | else |
| 1909 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
| 1910 | $as_echo "$as_me: failed program was:" >&5 |
| 1911 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1912 | |
| 1913 | ac_retval=$ac_status |
| 1914 | fi |
| 1915 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
| 1916 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 1917 | as_fn_set_status $ac_retval |
| 1918 | |
| 1919 | } # ac_fn_c_try_run |
| 1920 | |
| 1921 | # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES |
| 1922 | # ------------------------------------------------------- |
| 1923 | # Tests whether HEADER exists and can be compiled using the include files in |
| 1924 | # INCLUDES, setting the cache variable VAR accordingly. |
| 1925 | ac_fn_c_check_header_compile () |
| 1926 | { |
| 1927 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1928 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 1929 | $as_echo_n "checking for $2... " >&6; } |
| 1930 | if eval \${$3+:} false; then : |
| 1931 | $as_echo_n "(cached) " >&6 |
| 1932 | else |
| 1933 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1934 | /* end confdefs.h. */ |
| 1935 | $4 |
| 1936 | #include <$2> |
| 1937 | _ACEOF |
| 1938 | if ac_fn_c_try_compile "$LINENO"; then : |
| 1939 | eval "$3=yes" |
| 1940 | else |
| 1941 | eval "$3=no" |
| 1942 | fi |
| 1943 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 1944 | fi |
| 1945 | eval ac_res=\$$3 |
| 1946 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 1947 | $as_echo "$ac_res" >&6; } |
| 1948 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 1949 | |
| 1950 | } # ac_fn_c_check_header_compile |
| 1951 | |
| 1952 | # ac_fn_c_check_func LINENO FUNC VAR |
| 1953 | # ---------------------------------- |
| 1954 | # Tests whether FUNC exists, setting the cache variable VAR accordingly |
| 1955 | ac_fn_c_check_func () |
| 1956 | { |
| 1957 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1958 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 1959 | $as_echo_n "checking for $2... " >&6; } |
| 1960 | if eval \${$3+:} false; then : |
| 1961 | $as_echo_n "(cached) " >&6 |
| 1962 | else |
| 1963 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1964 | /* end confdefs.h. */ |
| 1965 | /* Define $2 to an innocuous variant, in case <limits.h> declares $2. |
| 1966 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 1967 | #define $2 innocuous_$2 |
| 1968 | |
| 1969 | /* System header to define __stub macros and hopefully few prototypes, |
| 1970 | which can conflict with char $2 (); below. |
| 1971 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 1972 | <limits.h> exists even on freestanding compilers. */ |
| 1973 | |
| 1974 | #ifdef __STDC__ |
| 1975 | # include <limits.h> |
| 1976 | #else |
| 1977 | # include <assert.h> |
| 1978 | #endif |
| 1979 | |
| 1980 | #undef $2 |
| 1981 | |
| 1982 | /* Override any GCC internal prototype to avoid an error. |
| 1983 | Use char because int might match the return type of a GCC |
| 1984 | builtin and then its argument prototype would still apply. */ |
| 1985 | #ifdef __cplusplus |
| 1986 | extern "C" |
| 1987 | #endif |
| 1988 | char $2 (); |
| 1989 | /* The GNU C library defines this for functions which it implements |
| 1990 | to always fail with ENOSYS. Some functions are actually named |
| 1991 | something starting with __ and the normal name is an alias. */ |
| 1992 | #if defined __stub_$2 || defined __stub___$2 |
| 1993 | choke me |
| 1994 | #endif |
| 1995 | |
| 1996 | int |
| 1997 | main () |
| 1998 | { |
| 1999 | return $2 (); |
| 2000 | ; |
| 2001 | return 0; |
| 2002 | } |
| 2003 | _ACEOF |
| 2004 | if ac_fn_c_try_link "$LINENO"; then : |
| 2005 | eval "$3=yes" |
| 2006 | else |
| 2007 | eval "$3=no" |
| 2008 | fi |
| 2009 | rm -f core conftest.err conftest.$ac_objext \ |
| 2010 | conftest$ac_exeext conftest.$ac_ext |
| 2011 | fi |
| 2012 | eval ac_res=\$$3 |
| 2013 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 2014 | $as_echo "$ac_res" >&6; } |
| 2015 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 2016 | |
| 2017 | } # ac_fn_c_check_func |
| 2018 | |
| 2019 | # ac_fn_c_check_type LINENO TYPE VAR INCLUDES |
| 2020 | # ------------------------------------------- |
| 2021 | # Tests whether TYPE exists after having included INCLUDES, setting cache |
| 2022 | # variable VAR accordingly. |
| 2023 | ac_fn_c_check_type () |
| 2024 | { |
| 2025 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 2026 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 2027 | $as_echo_n "checking for $2... " >&6; } |
| 2028 | if eval \${$3+:} false; then : |
| 2029 | $as_echo_n "(cached) " >&6 |
| 2030 | else |
| 2031 | eval "$3=no" |
| 2032 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2033 | /* end confdefs.h. */ |
| 2034 | $4 |
| 2035 | int |
| 2036 | main () |
| 2037 | { |
| 2038 | if (sizeof ($2)) |
| 2039 | return 0; |
| 2040 | ; |
| 2041 | return 0; |
| 2042 | } |
| 2043 | _ACEOF |
| 2044 | if ac_fn_c_try_compile "$LINENO"; then : |
| 2045 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2046 | /* end confdefs.h. */ |
| 2047 | $4 |
| 2048 | int |
| 2049 | main () |
| 2050 | { |
| 2051 | if (sizeof (($2))) |
| 2052 | return 0; |
| 2053 | ; |
| 2054 | return 0; |
| 2055 | } |
| 2056 | _ACEOF |
| 2057 | if ac_fn_c_try_compile "$LINENO"; then : |
| 2058 | |
| 2059 | else |
| 2060 | eval "$3=yes" |
| 2061 | fi |
| 2062 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2063 | fi |
| 2064 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2065 | fi |
| 2066 | eval ac_res=\$$3 |
| 2067 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 2068 | $as_echo "$ac_res" >&6; } |
| 2069 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 2070 | |
| 2071 | } # ac_fn_c_check_type |
| 2072 | |
| 2073 | # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES |
| 2074 | # --------------------------------------------- |
| 2075 | # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR |
| 2076 | # accordingly. |
| 2077 | ac_fn_c_check_decl () |
| 2078 | { |
| 2079 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 2080 | as_decl_name=`echo $2|sed 's/ *(.*//'` |
| 2081 | as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` |
| 2082 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 |
| 2083 | $as_echo_n "checking whether $as_decl_name is declared... " >&6; } |
| 2084 | if eval \${$3+:} false; then : |
| 2085 | $as_echo_n "(cached) " >&6 |
| 2086 | else |
| 2087 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2088 | /* end confdefs.h. */ |
| 2089 | $4 |
| 2090 | int |
| 2091 | main () |
| 2092 | { |
| 2093 | #ifndef $as_decl_name |
| 2094 | #ifdef __cplusplus |
| 2095 | (void) $as_decl_use; |
| 2096 | #else |
| 2097 | (void) $as_decl_name; |
| 2098 | #endif |
| 2099 | #endif |
| 2100 | |
| 2101 | ; |
| 2102 | return 0; |
| 2103 | } |
| 2104 | _ACEOF |
| 2105 | if ac_fn_c_try_compile "$LINENO"; then : |
| 2106 | eval "$3=yes" |
| 2107 | else |
| 2108 | eval "$3=no" |
| 2109 | fi |
| 2110 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2111 | fi |
| 2112 | eval ac_res=\$$3 |
| 2113 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 2114 | $as_echo "$ac_res" >&6; } |
| 2115 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 2116 | |
| 2117 | } # ac_fn_c_check_decl |
| 2118 | |
| 2119 | # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES |
| 2120 | # -------------------------------------------- |
| 2121 | # Tries to find the compile-time value of EXPR in a program that includes |
| 2122 | # INCLUDES, setting VAR accordingly. Returns whether the value could be |
| 2123 | # computed |
| 2124 | ac_fn_c_compute_int () |
| 2125 | { |
| 2126 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 2127 | if test "$cross_compiling" = yes; then |
| 2128 | # Depending upon the size, compute the lo and hi bounds. |
| 2129 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2130 | /* end confdefs.h. */ |
| 2131 | $4 |
| 2132 | int |
| 2133 | main () |
| 2134 | { |
| 2135 | static int test_array [1 - 2 * !(($2) >= 0)]; |
| 2136 | test_array [0] = 0; |
| 2137 | return test_array [0]; |
| 2138 | |
| 2139 | ; |
| 2140 | return 0; |
| 2141 | } |
| 2142 | _ACEOF |
| 2143 | if ac_fn_c_try_compile "$LINENO"; then : |
| 2144 | ac_lo=0 ac_mid=0 |
| 2145 | while :; do |
| 2146 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2147 | /* end confdefs.h. */ |
| 2148 | $4 |
| 2149 | int |
| 2150 | main () |
| 2151 | { |
| 2152 | static int test_array [1 - 2 * !(($2) <= $ac_mid)]; |
| 2153 | test_array [0] = 0; |
| 2154 | return test_array [0]; |
| 2155 | |
| 2156 | ; |
| 2157 | return 0; |
| 2158 | } |
| 2159 | _ACEOF |
| 2160 | if ac_fn_c_try_compile "$LINENO"; then : |
| 2161 | ac_hi=$ac_mid; break |
| 2162 | else |
| 2163 | as_fn_arith $ac_mid + 1 && ac_lo=$as_val |
| 2164 | if test $ac_lo -le $ac_mid; then |
| 2165 | ac_lo= ac_hi= |
| 2166 | break |
| 2167 | fi |
| 2168 | as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val |
| 2169 | fi |
| 2170 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2171 | done |
| 2172 | else |
| 2173 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2174 | /* end confdefs.h. */ |
| 2175 | $4 |
| 2176 | int |
| 2177 | main () |
| 2178 | { |
| 2179 | static int test_array [1 - 2 * !(($2) < 0)]; |
| 2180 | test_array [0] = 0; |
| 2181 | return test_array [0]; |
| 2182 | |
| 2183 | ; |
| 2184 | return 0; |
| 2185 | } |
| 2186 | _ACEOF |
| 2187 | if ac_fn_c_try_compile "$LINENO"; then : |
| 2188 | ac_hi=-1 ac_mid=-1 |
| 2189 | while :; do |
| 2190 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2191 | /* end confdefs.h. */ |
| 2192 | $4 |
| 2193 | int |
| 2194 | main () |
| 2195 | { |
| 2196 | static int test_array [1 - 2 * !(($2) >= $ac_mid)]; |
| 2197 | test_array [0] = 0; |
| 2198 | return test_array [0]; |
| 2199 | |
| 2200 | ; |
| 2201 | return 0; |
| 2202 | } |
| 2203 | _ACEOF |
| 2204 | if ac_fn_c_try_compile "$LINENO"; then : |
| 2205 | ac_lo=$ac_mid; break |
| 2206 | else |
| 2207 | as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val |
| 2208 | if test $ac_mid -le $ac_hi; then |
| 2209 | ac_lo= ac_hi= |
| 2210 | break |
| 2211 | fi |
| 2212 | as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val |
| 2213 | fi |
| 2214 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2215 | done |
| 2216 | else |
| 2217 | ac_lo= ac_hi= |
| 2218 | fi |
| 2219 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2220 | fi |
| 2221 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2222 | # Binary search between lo and hi bounds. |
| 2223 | while test "x$ac_lo" != "x$ac_hi"; do |
| 2224 | as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val |
| 2225 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2226 | /* end confdefs.h. */ |
| 2227 | $4 |
| 2228 | int |
| 2229 | main () |
| 2230 | { |
| 2231 | static int test_array [1 - 2 * !(($2) <= $ac_mid)]; |
| 2232 | test_array [0] = 0; |
| 2233 | return test_array [0]; |
| 2234 | |
| 2235 | ; |
| 2236 | return 0; |
| 2237 | } |
| 2238 | _ACEOF |
| 2239 | if ac_fn_c_try_compile "$LINENO"; then : |
| 2240 | ac_hi=$ac_mid |
| 2241 | else |
| 2242 | as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val |
| 2243 | fi |
| 2244 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2245 | done |
| 2246 | case $ac_lo in #(( |
| 2247 | ?*) eval "$3=\$ac_lo"; ac_retval=0 ;; |
| 2248 | '') ac_retval=1 ;; |
| 2249 | esac |
| 2250 | else |
| 2251 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2252 | /* end confdefs.h. */ |
| 2253 | $4 |
| 2254 | static long int longval () { return $2; } |
| 2255 | static unsigned long int ulongval () { return $2; } |
| 2256 | #include <stdio.h> |
| 2257 | #include <stdlib.h> |
| 2258 | int |
| 2259 | main () |
| 2260 | { |
| 2261 | |
| 2262 | FILE *f = fopen ("conftest.val", "w"); |
| 2263 | if (! f) |
| 2264 | return 1; |
| 2265 | if (($2) < 0) |
| 2266 | { |
| 2267 | long int i = longval (); |
| 2268 | if (i != ($2)) |
| 2269 | return 1; |
| 2270 | fprintf (f, "%ld", i); |
| 2271 | } |
| 2272 | else |
| 2273 | { |
| 2274 | unsigned long int i = ulongval (); |
| 2275 | if (i != ($2)) |
| 2276 | return 1; |
| 2277 | fprintf (f, "%lu", i); |
| 2278 | } |
| 2279 | /* Do not output a trailing newline, as this causes \r\n confusion |
| 2280 | on some platforms. */ |
| 2281 | return ferror (f) || fclose (f) != 0; |
| 2282 | |
| 2283 | ; |
| 2284 | return 0; |
| 2285 | } |
| 2286 | _ACEOF |
| 2287 | if ac_fn_c_try_run "$LINENO"; then : |
| 2288 | echo >>conftest.val; read $3 <conftest.val; ac_retval=0 |
| 2289 | else |
| 2290 | ac_retval=1 |
| 2291 | fi |
| 2292 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 2293 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 2294 | rm -f conftest.val |
| 2295 | |
| 2296 | fi |
| 2297 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 2298 | as_fn_set_status $ac_retval |
| 2299 | |
| 2300 | } # ac_fn_c_compute_int |
| 2301 | |
| 2302 | # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES |
| 2303 | # ---------------------------------------------------- |
| 2304 | # Tries to find if the field MEMBER exists in type AGGR, after including |
| 2305 | # INCLUDES, setting cache variable VAR accordingly. |
| 2306 | ac_fn_c_check_member () |
| 2307 | { |
| 2308 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 2309 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 |
| 2310 | $as_echo_n "checking for $2.$3... " >&6; } |
| 2311 | if eval \${$4+:} false; then : |
| 2312 | $as_echo_n "(cached) " >&6 |
| 2313 | else |
| 2314 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2315 | /* end confdefs.h. */ |
| 2316 | $5 |
| 2317 | int |
| 2318 | main () |
| 2319 | { |
| 2320 | static $2 ac_aggr; |
| 2321 | if (ac_aggr.$3) |
| 2322 | return 0; |
| 2323 | ; |
| 2324 | return 0; |
| 2325 | } |
| 2326 | _ACEOF |
| 2327 | if ac_fn_c_try_compile "$LINENO"; then : |
| 2328 | eval "$4=yes" |
| 2329 | else |
| 2330 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2331 | /* end confdefs.h. */ |
| 2332 | $5 |
| 2333 | int |
| 2334 | main () |
| 2335 | { |
| 2336 | static $2 ac_aggr; |
| 2337 | if (sizeof ac_aggr.$3) |
| 2338 | return 0; |
| 2339 | ; |
| 2340 | return 0; |
| 2341 | } |
| 2342 | _ACEOF |
| 2343 | if ac_fn_c_try_compile "$LINENO"; then : |
| 2344 | eval "$4=yes" |
| 2345 | else |
| 2346 | eval "$4=no" |
| 2347 | fi |
| 2348 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2349 | fi |
| 2350 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2351 | fi |
| 2352 | eval ac_res=\$$4 |
| 2353 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 2354 | $as_echo "$ac_res" >&6; } |
| 2355 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 2356 | |
| 2357 | } # ac_fn_c_check_member |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 2358 | cat >config.log <<_ACEOF |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 2359 | This file contains any messages produced by compilers while |
| 2360 | running configure, to aid debugging if configure makes a mistake. |
| 2361 | |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 2362 | It was created by bash $as_me 4.3-release, which was |
| 2363 | generated by GNU Autoconf 2.69. Invocation command line was |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 2364 | |
| 2365 | $ $0 $@ |
| 2366 | |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 2367 | _ACEOF |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 2368 | exec 5>>config.log |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 2369 | { |
| 2370 | cat <<_ASUNAME |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 2371 | ## --------- ## |
| 2372 | ## Platform. ## |
| 2373 | ## --------- ## |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 2374 | |
| 2375 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 2376 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
| 2377 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
| 2378 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
| 2379 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
| 2380 | |
| 2381 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
| 2382 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
| 2383 | |
| 2384 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
| 2385 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
| 2386 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 2387 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 2388 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
| 2389 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
| 2390 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
| 2391 | |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 2392 | _ASUNAME |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 2393 | |
| 2394 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2395 | for as_dir in $PATH |
| 2396 | do |
| 2397 | IFS=$as_save_IFS |
| 2398 | test -z "$as_dir" && as_dir=. |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 2399 | $as_echo "PATH: $as_dir" |
| 2400 | done |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 2401 | IFS=$as_save_IFS |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 2402 | |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 2403 | } >&5 |
| 2404 | |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 2405 | cat >&5 <<_ACEOF |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 2406 | |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 2407 | |
| 2408 | ## ----------- ## |
| 2409 | ## Core tests. ## |
| 2410 | ## ----------- ## |
| 2411 | |
| 2412 | _ACEOF |
| 2413 | |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 2414 | |
| 2415 | # Keep a trace of the command line. |
| 2416 | # Strip out --no-create and --no-recursion so they do not pile up. |
Jari Aalto | 0628567 | 2006-10-10 14:15:34 +0000 | [diff] [blame] | 2417 | # Strip out --silent because we don't want to record it for future runs. |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 2418 | # Also quote any args containing shell meta-characters. |
Jari Aalto | 0628567 | 2006-10-10 14:15:34 +0000 | [diff] [blame] | 2419 | # Make two passes to allow for proper duplicate-argument suppression. |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 2420 | ac_configure_args= |
Jari Aalto | 0628567 | 2006-10-10 14:15:34 +0000 | [diff] [blame] | 2421 | ac_configure_args0= |
| 2422 | ac_configure_args1= |
Jari Aalto | 0628567 | 2006-10-10 14:15:34 +0000 | [diff] [blame] | 2423 | ac_must_keep_next=false |
| 2424 | for ac_pass in 1 2 |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 2425 | do |
Jari Aalto | 0628567 | 2006-10-10 14:15:34 +0000 | [diff] [blame] | 2426 | for ac_arg |
| 2427 | do |
| 2428 | case $ac_arg in |
| 2429 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
| 2430 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 2431 | | -silent | --silent | --silen | --sile | --sil) |
| 2432 | continue ;; |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 2433 | *\'*) |
| 2434 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
Jari Aalto | 0628567 | 2006-10-10 14:15:34 +0000 | [diff] [blame] | 2435 | esac |
| 2436 | case $ac_pass in |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 2437 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; |
Jari Aalto | 0628567 | 2006-10-10 14:15:34 +0000 | [diff] [blame] | 2438 | 2) |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 2439 | as_fn_append ac_configure_args1 " '$ac_arg'" |
Jari Aalto | 0628567 | 2006-10-10 14:15:34 +0000 | [diff] [blame] | 2440 | if test $ac_must_keep_next = true; then |
| 2441 | ac_must_keep_next=false # Got value, back to normal. |
| 2442 | else |
| 2443 | case $ac_arg in |
| 2444 | *=* | --config-cache | -C | -disable-* | --disable-* \ |
| 2445 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
| 2446 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
| 2447 | | -with-* | --with-* | -without-* | --without-* | --x) |
| 2448 | case "$ac_configure_args0 " in |
| 2449 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
| 2450 | esac |
| 2451 | ;; |
| 2452 | -* ) ac_must_keep_next=true ;; |
| 2453 | esac |
| 2454 | fi |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 2455 | as_fn_append ac_configure_args " '$ac_arg'" |
Jari Aalto | 0628567 | 2006-10-10 14:15:34 +0000 | [diff] [blame] | 2456 | ;; |
| 2457 | esac |
| 2458 | done |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 2459 | done |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 2460 | { ac_configure_args0=; unset ac_configure_args0;} |
| 2461 | { ac_configure_args1=; unset ac_configure_args1;} |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 2462 | |
| 2463 | # When interrupted or exit'd, cleanup temporary files, and complete |
| 2464 | # config.log. We remove comments because anyway the quotes in there |
| 2465 | # would cause problems or look ugly. |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 2466 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
| 2467 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 2468 | trap 'exit_status=$? |
| 2469 | # Save into config.log some information that might help in debugging. |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 2470 | { |
| 2471 | echo |
Jari Aalto | 0628567 | 2006-10-10 14:15:34 +0000 | [diff] [blame] | 2472 | |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 2473 | $as_echo "## ---------------- ## |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 2474 | ## Cache variables. ## |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 2475 | ## ---------------- ##" |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 2476 | echo |
| 2477 | # The following way of writing the cache mishandles newlines in values, |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 2478 | ( |
| 2479 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do |
| 2480 | eval ac_val=\$$ac_var |
| 2481 | case $ac_val in #( |
| 2482 | *${as_nl}*) |
| 2483 | case $ac_var in #( |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 2484 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 2485 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
| 2486 | esac |
| 2487 | case $ac_var in #( |
| 2488 | _ | IFS | as_nl) ;; #( |
| 2489 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 2490 | *) { eval $ac_var=; unset $ac_var;} ;; |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 2491 | esac ;; |
| 2492 | esac |
| 2493 | done |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 2494 | (set) 2>&1 | |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 2495 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
| 2496 | *${as_nl}ac_space=\ *) |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 2497 | sed -n \ |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 2498 | "s/'\''/'\''\\\\'\'''\''/g; |
| 2499 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" |
| 2500 | ;; #( |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 2501 | *) |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 2502 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 2503 | ;; |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 2504 | esac | |
| 2505 | sort |
| 2506 | ) |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 2507 | echo |
Jari Aalto | 0628567 | 2006-10-10 14:15:34 +0000 | [diff] [blame] | 2508 | |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 2509 | $as_echo "## ----------------- ## |
Jari Aalto | 0628567 | 2006-10-10 14:15:34 +0000 | [diff] [blame] | 2510 | ## Output variables. ## |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 2511 | ## ----------------- ##" |
Jari Aalto | 0628567 | 2006-10-10 14:15:34 +0000 | [diff] [blame] | 2512 | echo |
| 2513 | for ac_var in $ac_subst_vars |
| 2514 | do |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 2515 | eval ac_val=\$$ac_var |
| 2516 | case $ac_val in |
| 2517 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
| 2518 | esac |
| 2519 | $as_echo "$ac_var='\''$ac_val'\''" |
Jari Aalto | 0628567 | 2006-10-10 14:15:34 +0000 | [diff] [blame] | 2520 | done | sort |
| 2521 | echo |
| 2522 | |
| 2523 | if test -n "$ac_subst_files"; then |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 2524 | $as_echo "## ------------------- ## |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 2525 | ## File substitutions. ## |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 2526 | ## ------------------- ##" |
Jari Aalto | 0628567 | 2006-10-10 14:15:34 +0000 | [diff] [blame] | 2527 | echo |
| 2528 | for ac_var in $ac_subst_files |
| 2529 | do |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 2530 | eval ac_val=\$$ac_var |
| 2531 | case $ac_val in |
| 2532 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
| 2533 | esac |
| 2534 | $as_echo "$ac_var='\''$ac_val'\''" |
Jari Aalto | 0628567 | 2006-10-10 14:15:34 +0000 | [diff] [blame] | 2535 | done | sort |
| 2536 | echo |
| 2537 | fi |
| 2538 | |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 2539 | if test -s confdefs.h; then |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 2540 | $as_echo "## ----------- ## |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 2541 | ## confdefs.h. ## |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 2542 | ## ----------- ##" |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 2543 | echo |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 2544 | cat confdefs.h |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 2545 | echo |
| 2546 | fi |
| 2547 | test "$ac_signal" != 0 && |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 2548 | $as_echo "$as_me: caught signal $ac_signal" |
| 2549 | $as_echo "$as_me: exit $exit_status" |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 2550 | } >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 2551 | rm -f core *.core core.conftest.* && |
| 2552 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 2553 | exit $exit_status |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 2554 | ' 0 |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 2555 | for ac_signal in 1 2 13 15; do |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 2556 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 2557 | done |
| 2558 | ac_signal=0 |
| 2559 | |
| 2560 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 2561 | rm -f -r conftest* confdefs.h |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 2562 | |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 2563 | $as_echo "/* confdefs.h */" > confdefs.h |
| 2564 | |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 2565 | # Predefined preprocessor variables. |
| 2566 | |
| 2567 | cat >>confdefs.h <<_ACEOF |
| 2568 | #define PACKAGE_NAME "$PACKAGE_NAME" |
| 2569 | _ACEOF |
| 2570 | |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 2571 | cat >>confdefs.h <<_ACEOF |
| 2572 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
| 2573 | _ACEOF |
| 2574 | |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 2575 | cat >>confdefs.h <<_ACEOF |
| 2576 | #define PACKAGE_VERSION "$PACKAGE_VERSION" |
| 2577 | _ACEOF |
| 2578 | |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 2579 | cat >>confdefs.h <<_ACEOF |
| 2580 | #define PACKAGE_STRING "$PACKAGE_STRING" |
| 2581 | _ACEOF |
| 2582 | |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 2583 | cat >>confdefs.h <<_ACEOF |
| 2584 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
| 2585 | _ACEOF |
| 2586 | |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 2587 | cat >>confdefs.h <<_ACEOF |
| 2588 | #define PACKAGE_URL "$PACKAGE_URL" |
| 2589 | _ACEOF |
| 2590 | |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 2591 | |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 2592 | # Let the site file select an alternate cache file if it wants to. |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 2593 | # Prefer an explicitly selected file to automatically selected ones. |
| 2594 | ac_site_file1=NONE |
| 2595 | ac_site_file2=NONE |
| 2596 | if test -n "$CONFIG_SITE"; then |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 2597 | # We do not want a PATH search for config.site. |
| 2598 | case $CONFIG_SITE in #(( |
| 2599 | -*) ac_site_file1=./$CONFIG_SITE;; |
| 2600 | */*) ac_site_file1=$CONFIG_SITE;; |
| 2601 | *) ac_site_file1=./$CONFIG_SITE;; |
| 2602 | esac |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 2603 | elif test "x$prefix" != xNONE; then |
| 2604 | ac_site_file1=$prefix/share/config.site |
| 2605 | ac_site_file2=$prefix/etc/config.site |
| 2606 | else |
| 2607 | ac_site_file1=$ac_default_prefix/share/config.site |
| 2608 | ac_site_file2=$ac_default_prefix/etc/config.site |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 2609 | fi |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 2610 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" |
| 2611 | do |
| 2612 | test "x$ac_site_file" = xNONE && continue |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 2613 | if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then |
| 2614 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 2615 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 2616 | sed 's/^/| /' "$ac_site_file" >&5 |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 2617 | . "$ac_site_file" \ |
| 2618 | || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 2619 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 2620 | as_fn_error $? "failed to load site script $ac_site_file |
| 2621 | See \`config.log' for more details" "$LINENO" 5; } |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 2622 | fi |
| 2623 | done |
| 2624 | |
| 2625 | if test -r "$cache_file"; then |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 2626 | # Some versions of bash will fail to source /dev/null (special files |
| 2627 | # actually), so we avoid doing that. DJGPP emulates it as a regular file. |
| 2628 | if test /dev/null != "$cache_file" && test -f "$cache_file"; then |
| 2629 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 2630 | $as_echo "$as_me: loading cache $cache_file" >&6;} |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 2631 | case $cache_file in |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 2632 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
| 2633 | *) . "./$cache_file";; |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 2634 | esac |
| 2635 | fi |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 2636 | else |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 2637 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 2638 | $as_echo "$as_me: creating cache $cache_file" >&6;} |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 2639 | >$cache_file |
| 2640 | fi |
| 2641 | |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 2642 | as_fn_append ac_header_list " stdlib.h" |
| 2643 | as_fn_append ac_header_list " unistd.h" |
| 2644 | as_fn_append ac_header_list " sys/param.h" |
| 2645 | as_fn_append ac_header_list " sys/time.h" |
| 2646 | as_fn_append ac_func_list " alarm" |
| 2647 | as_fn_append ac_func_list " fpurge" |
| 2648 | as_fn_append ac_func_list " __fpurge" |
| 2649 | as_fn_append ac_func_list " snprintf" |
| 2650 | as_fn_append ac_func_list " vsnprintf" |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 2651 | # Check that the precious variables saved in the cache have kept the same |
| 2652 | # value. |
| 2653 | ac_cache_corrupted=false |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 2654 | for ac_var in $ac_precious_vars; do |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 2655 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
| 2656 | eval ac_new_set=\$ac_env_${ac_var}_set |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 2657 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
| 2658 | eval ac_new_val=\$ac_env_${ac_var}_value |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 2659 | case $ac_old_set,$ac_new_set in |
| 2660 | set,) |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 2661 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 2662 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 2663 | ac_cache_corrupted=: ;; |
| 2664 | ,set) |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 2665 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 2666 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 2667 | ac_cache_corrupted=: ;; |
| 2668 | ,);; |
| 2669 | *) |
| 2670 | if test "x$ac_old_val" != "x$ac_new_val"; then |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 2671 | # differences in whitespace do not lead to failure. |
| 2672 | ac_old_val_w=`echo x $ac_old_val` |
| 2673 | ac_new_val_w=`echo x $ac_new_val` |
| 2674 | if test "$ac_old_val_w" != "$ac_new_val_w"; then |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 2675 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 2676 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
| 2677 | ac_cache_corrupted=: |
| 2678 | else |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 2679 | { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 2680 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} |
| 2681 | eval $ac_var=\$ac_old_val |
| 2682 | fi |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 2683 | { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 2684 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 2685 | { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 2686 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 2687 | fi;; |
| 2688 | esac |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 2689 | # Pass precious variables to config.status. |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 2690 | if test "$ac_new_set" = set; then |
| 2691 | case $ac_new_val in |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 2692 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 2693 | *) ac_arg=$ac_var=$ac_new_val ;; |
| 2694 | esac |
| 2695 | case " $ac_configure_args " in |
| 2696 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 2697 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 2698 | esac |
| 2699 | fi |
| 2700 | done |
| 2701 | if $ac_cache_corrupted; then |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 2702 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 2703 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 2704 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 2705 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 2706 | as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 2707 | fi |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 2708 | ## -------------------- ## |
| 2709 | ## Main body of script. ## |
| 2710 | ## -------------------- ## |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 2711 | |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 2712 | ac_ext=c |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 2713 | ac_cpp='$CPP $CPPFLAGS' |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 2714 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2715 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2716 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 2717 | |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 2718 | |
| 2719 | |
| 2720 | |
| 2721 | |
| 2722 | |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 2723 | ac_aux_dir= |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 2724 | for ac_dir in ./support "$srcdir"/./support; do |
| 2725 | if test -f "$ac_dir/install-sh"; then |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 2726 | ac_aux_dir=$ac_dir |
| 2727 | ac_install_sh="$ac_aux_dir/install-sh -c" |
| 2728 | break |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 2729 | elif test -f "$ac_dir/install.sh"; then |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 2730 | ac_aux_dir=$ac_dir |
| 2731 | ac_install_sh="$ac_aux_dir/install.sh -c" |
| 2732 | break |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 2733 | elif test -f "$ac_dir/shtool"; then |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 2734 | ac_aux_dir=$ac_dir |
| 2735 | ac_install_sh="$ac_aux_dir/shtool install -c" |
| 2736 | break |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 2737 | fi |
| 2738 | done |
| 2739 | if test -z "$ac_aux_dir"; then |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 2740 | as_fn_error $? "cannot find install-sh, install.sh, or shtool in ./support \"$srcdir\"/./support" "$LINENO" 5 |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 2741 | fi |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 2742 | |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 2743 | # These three variables are undocumented and unsupported, |
| 2744 | # and are intended to be withdrawn in a future Autoconf release. |
| 2745 | # They can cause serious problems if a builder's source tree is in a directory |
| 2746 | # whose full name contains unusual characters. |
| 2747 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. |
| 2748 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. |
| 2749 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 2750 | |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 2751 | |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 2752 | ac_config_headers="$ac_config_headers config.h" |
| 2753 | |
| 2754 | |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 2755 | BASHVERS=4.3 |
Jari Aalto | 17345e5 | 2009-02-19 22:21:29 +0000 | [diff] [blame] | 2756 | RELSTATUS=release |
Jari Aalto | 7117c2d | 2002-07-17 14:10:11 +0000 | [diff] [blame] | 2757 | |
| 2758 | case "$RELSTATUS" in |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 2759 | alp*|bet*|dev*|rc*|maint*) DEBUG='-DDEBUG' MALLOC_DEBUG='-DMALLOC_DEBUG' ;; |
Jari Aalto | 7117c2d | 2002-07-17 14:10:11 +0000 | [diff] [blame] | 2760 | *) DEBUG= MALLOC_DEBUG= ;; |
| 2761 | esac |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 2762 | |
| 2763 | # Make sure we can run config.sub. |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 2764 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 2765 | as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 2766 | |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 2767 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 2768 | $as_echo_n "checking build system type... " >&6; } |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 2769 | if ${ac_cv_build+:} false; then : |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 2770 | $as_echo_n "(cached) " >&6 |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 2771 | else |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 2772 | ac_build_alias=$build_alias |
| 2773 | test "x$ac_build_alias" = x && |
| 2774 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` |
| 2775 | test "x$ac_build_alias" = x && |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 2776 | as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 2777 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 2778 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 2779 | |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 2780 | fi |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 2781 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 2782 | $as_echo "$ac_cv_build" >&6; } |
| 2783 | case $ac_cv_build in |
| 2784 | *-*-*) ;; |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 2785 | *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 2786 | esac |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 2787 | build=$ac_cv_build |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 2788 | ac_save_IFS=$IFS; IFS='-' |
| 2789 | set x $ac_cv_build |
| 2790 | shift |
| 2791 | build_cpu=$1 |
| 2792 | build_vendor=$2 |
| 2793 | shift; shift |
| 2794 | # Remember, the first character of IFS is used to create $*, |
| 2795 | # except with old shells: |
| 2796 | build_os=$* |
| 2797 | IFS=$ac_save_IFS |
| 2798 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 2799 | |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 2800 | |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 2801 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 2802 | $as_echo_n "checking host system type... " >&6; } |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 2803 | if ${ac_cv_host+:} false; then : |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 2804 | $as_echo_n "(cached) " >&6 |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 2805 | else |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 2806 | if test "x$host_alias" = x; then |
| 2807 | ac_cv_host=$ac_cv_build |
| 2808 | else |
| 2809 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 2810 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 2811 | fi |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 2812 | |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 2813 | fi |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 2814 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 2815 | $as_echo "$ac_cv_host" >&6; } |
| 2816 | case $ac_cv_host in |
| 2817 | *-*-*) ;; |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 2818 | *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 2819 | esac |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 2820 | host=$ac_cv_host |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 2821 | ac_save_IFS=$IFS; IFS='-' |
| 2822 | set x $ac_cv_host |
| 2823 | shift |
| 2824 | host_cpu=$1 |
| 2825 | host_vendor=$2 |
| 2826 | shift; shift |
| 2827 | # Remember, the first character of IFS is used to create $*, |
| 2828 | # except with old shells: |
| 2829 | host_os=$* |
| 2830 | IFS=$ac_save_IFS |
| 2831 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 2832 | |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 2833 | |
| 2834 | |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 2835 | |
Jari Aalto | bb70624 | 2000-03-17 21:46:59 +0000 | [diff] [blame] | 2836 | opt_bash_malloc=yes |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 2837 | opt_purify=no |
Jari Aalto | d166f04 | 1997-06-05 14:59:13 +0000 | [diff] [blame] | 2838 | opt_purecov=no |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 2839 | opt_afs=no |
Jari Aalto | d166f04 | 1997-06-05 14:59:13 +0000 | [diff] [blame] | 2840 | opt_curses=no |
Jari Aalto | b72432f | 1999-02-19 17:11:39 +0000 | [diff] [blame] | 2841 | opt_with_installed_readline=no |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 2842 | |
Jari Aalto | bb70624 | 2000-03-17 21:46:59 +0000 | [diff] [blame] | 2843 | #htmldir= |
| 2844 | |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 2845 | case "${host_cpu}-${host_os}" in |
Jari Aalto | bb70624 | 2000-03-17 21:46:59 +0000 | [diff] [blame] | 2846 | alpha*-*) opt_bash_malloc=no ;; # alpha running osf/1 or linux |
Jari Aalto | 28ef6c3 | 2001-04-06 19:14:31 +0000 | [diff] [blame] | 2847 | *[Cc]ray*-*) opt_bash_malloc=no ;; # Crays |
Jari Aalto | bb70624 | 2000-03-17 21:46:59 +0000 | [diff] [blame] | 2848 | *-osf1*) opt_bash_malloc=no ;; # other osf/1 machines |
| 2849 | sparc-svr4*) opt_bash_malloc=no ;; # sparc SVR4, SVR4.2 |
| 2850 | sparc-netbsd*) opt_bash_malloc=no ;; # needs 8-byte alignment |
| 2851 | mips-irix6*) opt_bash_malloc=no ;; # needs 8-byte alignment |
| 2852 | m68k-sysv) opt_bash_malloc=no ;; # fixes file descriptor leak in closedir |
| 2853 | sparc-linux*) opt_bash_malloc=no ;; # sparc running linux; requires ELF |
Jari Aalto | 95732b4 | 2005-12-07 14:08:12 +0000 | [diff] [blame] | 2854 | #*-freebsd*-gnu) opt_bash_malloc=no ;; # there's some undetermined problem here |
Jari Aalto | 7117c2d | 2002-07-17 14:10:11 +0000 | [diff] [blame] | 2855 | #*-freebsd*) opt_bash_malloc=no ;; # they claim it's better; I disagree |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 2856 | *-openbsd*) opt_bash_malloc=no ;; # they claim it needs eight-bit alignment |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 2857 | *-mirbsd*) opt_bash_malloc=no ;; # they claim it needs eight-bit alignment |
Jari Aalto | bb70624 | 2000-03-17 21:46:59 +0000 | [diff] [blame] | 2858 | *-aix*) opt_bash_malloc=no ;; # AIX machines |
| 2859 | *-nextstep*) opt_bash_malloc=no ;; # NeXT machines running NeXTstep |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 2860 | *-openstep*) opt_bash_malloc=no ;; # i386/Sparc/HP machines running Openstep |
Jari Aalto | 28ef6c3 | 2001-04-06 19:14:31 +0000 | [diff] [blame] | 2861 | *-macos*) opt_bash_malloc=no ;; # Apple MacOS X |
| 2862 | *-rhapsody*) opt_bash_malloc=no ;; # Apple Rhapsody (MacOS X) |
| 2863 | *-darwin*) opt_bash_malloc=no ;; # Apple Darwin (MacOS X) |
Jari Aalto | bb70624 | 2000-03-17 21:46:59 +0000 | [diff] [blame] | 2864 | *-dgux*) opt_bash_malloc=no ;; # DG/UX machines |
Jari Aalto | 95732b4 | 2005-12-07 14:08:12 +0000 | [diff] [blame] | 2865 | *-qnx*) opt_bash_malloc=no ;; # QNX 4.2, QNX 6.x |
Jari Aalto | bb70624 | 2000-03-17 21:46:59 +0000 | [diff] [blame] | 2866 | *-machten4) opt_bash_malloc=no ;; # MachTen 4.x |
| 2867 | *-bsdi2.1|*-bsdi3.?) opt_bash_malloc=no ; : ${CC:=shlicc2} ;; # for loadable builtins |
| 2868 | *-beos*) opt_bash_malloc=no ;; # they say it's suitable |
Jari Aalto | 28ef6c3 | 2001-04-06 19:14:31 +0000 | [diff] [blame] | 2869 | *-cygwin*) opt_bash_malloc=no ;; # Cygnus's CYGWIN environment |
| 2870 | *-opennt*|*-interix*) opt_bash_malloc=no ;; # Interix, now owned by Microsoft |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 2871 | *-nsk*) opt_bash_malloc=no ;; # HP NonStop |
| 2872 | *-haiku*) opt_bash_malloc=no ;; # Haiku OS |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 2873 | esac |
| 2874 | |
Jari Aalto | 7117c2d | 2002-07-17 14:10:11 +0000 | [diff] [blame] | 2875 | # memory scrambling on free() |
| 2876 | case "${host_os}" in |
| 2877 | sco3.2v5*|sco3.2v4*) opt_memscramble=no ;; |
| 2878 | *) opt_memscramble=yes ;; |
| 2879 | esac |
| 2880 | |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 2881 | |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 2882 | |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 2883 | |
| 2884 | # Check whether --with-afs was given. |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 2885 | if test "${with_afs+set}" = set; then : |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 2886 | withval=$with_afs; opt_afs=$withval |
| 2887 | fi |
Jari Aalto | d166f04 | 1997-06-05 14:59:13 +0000 | [diff] [blame] | 2888 | |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 2889 | |
| 2890 | # Check whether --with-bash-malloc was given. |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 2891 | if test "${with_bash_malloc+set}" = set; then : |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 2892 | withval=$with_bash_malloc; opt_bash_malloc=$withval |
| 2893 | fi |
Jari Aalto | bb70624 | 2000-03-17 21:46:59 +0000 | [diff] [blame] | 2894 | |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 2895 | |
| 2896 | # Check whether --with-curses was given. |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 2897 | if test "${with_curses+set}" = set; then : |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 2898 | withval=$with_curses; opt_curses=$withval |
| 2899 | fi |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 2900 | |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 2901 | |
| 2902 | # Check whether --with-gnu-malloc was given. |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 2903 | if test "${with_gnu_malloc+set}" = set; then : |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 2904 | withval=$with_gnu_malloc; opt_bash_malloc=$withval |
| 2905 | fi |
Jari Aalto | d166f04 | 1997-06-05 14:59:13 +0000 | [diff] [blame] | 2906 | |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 2907 | |
| 2908 | # Check whether --with-installed-readline was given. |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 2909 | if test "${with_installed_readline+set}" = set; then : |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 2910 | withval=$with_installed_readline; opt_with_installed_readline=$withval |
| 2911 | fi |
Jari Aalto | b72432f | 1999-02-19 17:11:39 +0000 | [diff] [blame] | 2912 | |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 2913 | |
| 2914 | # Check whether --with-purecov was given. |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 2915 | if test "${with_purecov+set}" = set; then : |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 2916 | withval=$with_purecov; opt_purecov=$withval |
| 2917 | fi |
Jari Aalto | d166f04 | 1997-06-05 14:59:13 +0000 | [diff] [blame] | 2918 | |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 2919 | |
| 2920 | # Check whether --with-purify was given. |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 2921 | if test "${with_purify+set}" = set; then : |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 2922 | withval=$with_purify; opt_purify=$withval |
| 2923 | fi |
| 2924 | |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 2925 | |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 2926 | if test "$opt_bash_malloc" = yes; then |
Jari Aalto | d166f04 | 1997-06-05 14:59:13 +0000 | [diff] [blame] | 2927 | MALLOC_TARGET=malloc |
| 2928 | MALLOC_SRC=malloc.c |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 2929 | |
| 2930 | MALLOC_LIB='-lmalloc' |
| 2931 | MALLOC_LIBRARY='$(ALLOC_LIBDIR)/libmalloc.a' |
| 2932 | MALLOC_LDFLAGS='-L$(ALLOC_LIBDIR)' |
| 2933 | MALLOC_DEP='$(MALLOC_LIBRARY)' |
| 2934 | |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 2935 | $as_echo "#define USING_BASH_MALLOC 1" >>confdefs.h |
Jari Aalto | bb70624 | 2000-03-17 21:46:59 +0000 | [diff] [blame] | 2936 | |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 2937 | else |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 2938 | MALLOC_LIB= |
| 2939 | MALLOC_LIBRARY= |
| 2940 | MALLOC_LDFLAGS= |
| 2941 | MALLOC_DEP= |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 2942 | fi |
| 2943 | |
| 2944 | if test "$opt_purify" = yes; then |
Jari Aalto | d166f04 | 1997-06-05 14:59:13 +0000 | [diff] [blame] | 2945 | PURIFY="purify " |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 2946 | $as_echo "#define DISABLE_MALLOC_WRAPPERS 1" >>confdefs.h |
Jari Aalto | 7117c2d | 2002-07-17 14:10:11 +0000 | [diff] [blame] | 2947 | |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 2948 | else |
| 2949 | PURIFY= |
| 2950 | fi |
| 2951 | |
Jari Aalto | d166f04 | 1997-06-05 14:59:13 +0000 | [diff] [blame] | 2952 | if test "$opt_purecov" = yes; then |
| 2953 | PURIFY="${PURIFY}purecov" |
| 2954 | fi |
| 2955 | |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 2956 | if test "$opt_afs" = yes; then |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 2957 | $as_echo "#define AFS 1" >>confdefs.h |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 2958 | |
| 2959 | fi |
| 2960 | |
Jari Aalto | d166f04 | 1997-06-05 14:59:13 +0000 | [diff] [blame] | 2961 | if test "$opt_curses" = yes; then |
| 2962 | prefer_curses=yes |
| 2963 | fi |
| 2964 | |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 2965 | if test -z "${DEBUGGER_START_FILE}"; then |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 2966 | DEBUGGER_START_FILE='${datadir}/bashdb/bashdb-main.inc' |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 2967 | fi |
| 2968 | |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 2969 | opt_minimal_config=no |
| 2970 | |
| 2971 | opt_job_control=yes |
| 2972 | opt_alias=yes |
| 2973 | opt_readline=yes |
| 2974 | opt_history=yes |
| 2975 | opt_bang_history=yes |
| 2976 | opt_dirstack=yes |
| 2977 | opt_restricted=yes |
| 2978 | opt_process_subst=yes |
| 2979 | opt_prompt_decoding=yes |
| 2980 | opt_select=yes |
| 2981 | opt_help=yes |
| 2982 | opt_array_variables=yes |
| 2983 | opt_dparen_arith=yes |
Jari Aalto | cce855b | 1998-04-17 19:52:44 +0000 | [diff] [blame] | 2984 | opt_extended_glob=yes |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 2985 | opt_brace_expansion=yes |
| 2986 | opt_disabled_builtins=no |
| 2987 | opt_command_timing=yes |
Jari Aalto | bb70624 | 2000-03-17 21:46:59 +0000 | [diff] [blame] | 2988 | opt_xpg_echo=no |
Jari Aalto | 95732b4 | 2005-12-07 14:08:12 +0000 | [diff] [blame] | 2989 | opt_strict_posix=no |
Jari Aalto | cce855b | 1998-04-17 19:52:44 +0000 | [diff] [blame] | 2990 | opt_cond_command=yes |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 2991 | opt_cond_regexp=yes |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 2992 | opt_coproc=yes |
Jari Aalto | bb70624 | 2000-03-17 21:46:59 +0000 | [diff] [blame] | 2993 | opt_arith_for_command=yes |
| 2994 | opt_net_redirs=yes |
| 2995 | opt_progcomp=yes |
Jari Aalto | 7117c2d | 2002-07-17 14:10:11 +0000 | [diff] [blame] | 2996 | opt_separate_help=no |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 2997 | opt_multibyte=yes |
| 2998 | opt_debugger=yes |
Jari Aalto | 95732b4 | 2005-12-07 14:08:12 +0000 | [diff] [blame] | 2999 | opt_single_longdoc_strings=yes |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 3000 | opt_casemod_attrs=yes |
| 3001 | opt_casemod_expansions=yes |
Chet Ramey | 0001803 | 2011-11-21 20:51:19 -0500 | [diff] [blame] | 3002 | opt_extglob_default=no |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 3003 | opt_dircomplete_expand_default=no |
| 3004 | opt_globascii_default=no |
Jari Aalto | cce855b | 1998-04-17 19:52:44 +0000 | [diff] [blame] | 3005 | |
| 3006 | opt_static_link=no |
| 3007 | opt_profiling=no |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 3008 | |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 3009 | # Check whether --enable-minimal-config was given. |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 3010 | if test "${enable_minimal_config+set}" = set; then : |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 3011 | enableval=$enable_minimal_config; opt_minimal_config=$enableval |
| 3012 | fi |
| 3013 | |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 3014 | |
| 3015 | if test $opt_minimal_config = yes; then |
| 3016 | opt_job_control=no opt_alias=no opt_readline=no |
| 3017 | opt_history=no opt_bang_history=no opt_dirstack=no |
| 3018 | opt_restricted=no opt_process_subst=no opt_prompt_decoding=no |
| 3019 | opt_select=no opt_help=no opt_array_variables=no opt_dparen_arith=no |
| 3020 | opt_brace_expansion=no opt_disabled_builtins=no opt_command_timing=no |
Jari Aalto | bb70624 | 2000-03-17 21:46:59 +0000 | [diff] [blame] | 3021 | opt_extended_glob=no opt_cond_command=no opt_arith_for_command=no |
Jari Aalto | 7117c2d | 2002-07-17 14:10:11 +0000 | [diff] [blame] | 3022 | opt_net_redirs=no opt_progcomp=no opt_separate_help=no |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 3023 | opt_multibyte=yes opt_cond_regexp=no opt_coproc=no |
Chet Ramey | 0001803 | 2011-11-21 20:51:19 -0500 | [diff] [blame] | 3024 | opt_casemod_attrs=no opt_casemod_expansions=no opt_extglob_default=no |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 3025 | opt_globascii_default=no |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 3026 | fi |
| 3027 | |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 3028 | # Check whether --enable-alias was given. |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 3029 | if test "${enable_alias+set}" = set; then : |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 3030 | enableval=$enable_alias; opt_alias=$enableval |
| 3031 | fi |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 3032 | |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 3033 | # Check whether --enable-arith-for-command was given. |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 3034 | if test "${enable_arith_for_command+set}" = set; then : |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 3035 | enableval=$enable_arith_for_command; opt_arith_for_command=$enableval |
| 3036 | fi |
| 3037 | |
| 3038 | # Check whether --enable-array-variables was given. |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 3039 | if test "${enable_array_variables+set}" = set; then : |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 3040 | enableval=$enable_array_variables; opt_array_variables=$enableval |
| 3041 | fi |
| 3042 | |
| 3043 | # Check whether --enable-bang-history was given. |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 3044 | if test "${enable_bang_history+set}" = set; then : |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 3045 | enableval=$enable_bang_history; opt_bang_history=$enableval |
| 3046 | fi |
| 3047 | |
| 3048 | # Check whether --enable-brace-expansion was given. |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 3049 | if test "${enable_brace_expansion+set}" = set; then : |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 3050 | enableval=$enable_brace_expansion; opt_brace_expansion=$enableval |
| 3051 | fi |
| 3052 | |
| 3053 | # Check whether --enable-casemod-attributes was given. |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 3054 | if test "${enable_casemod_attributes+set}" = set; then : |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 3055 | enableval=$enable_casemod_attributes; opt_casemod_attrs=$enableval |
| 3056 | fi |
| 3057 | |
| 3058 | # Check whether --enable-casemod-expansions was given. |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 3059 | if test "${enable_casemod_expansions+set}" = set; then : |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 3060 | enableval=$enable_casemod_expansions; opt_casemod_expansions=$enableval |
| 3061 | fi |
| 3062 | |
| 3063 | # Check whether --enable-command-timing was given. |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 3064 | if test "${enable_command_timing+set}" = set; then : |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 3065 | enableval=$enable_command_timing; opt_command_timing=$enableval |
| 3066 | fi |
| 3067 | |
| 3068 | # Check whether --enable-cond-command was given. |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 3069 | if test "${enable_cond_command+set}" = set; then : |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 3070 | enableval=$enable_cond_command; opt_cond_command=$enableval |
| 3071 | fi |
| 3072 | |
| 3073 | # Check whether --enable-cond-regexp was given. |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 3074 | if test "${enable_cond_regexp+set}" = set; then : |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 3075 | enableval=$enable_cond_regexp; opt_cond_regexp=$enableval |
| 3076 | fi |
| 3077 | |
| 3078 | # Check whether --enable-coprocesses was given. |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 3079 | if test "${enable_coprocesses+set}" = set; then : |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 3080 | enableval=$enable_coprocesses; opt_coproc=$enableval |
| 3081 | fi |
| 3082 | |
| 3083 | # Check whether --enable-debugger was given. |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 3084 | if test "${enable_debugger+set}" = set; then : |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 3085 | enableval=$enable_debugger; opt_debugger=$enableval |
| 3086 | fi |
| 3087 | |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 3088 | # Check whether --enable-direxpand-default was given. |
| 3089 | if test "${enable_direxpand_default+set}" = set; then : |
| 3090 | enableval=$enable_direxpand_default; opt_dircomplete_expand_default=$enableval |
| 3091 | fi |
| 3092 | |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 3093 | # Check whether --enable-directory-stack was given. |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 3094 | if test "${enable_directory_stack+set}" = set; then : |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 3095 | enableval=$enable_directory_stack; opt_dirstack=$enableval |
| 3096 | fi |
| 3097 | |
| 3098 | # Check whether --enable-disabled-builtins was given. |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 3099 | if test "${enable_disabled_builtins+set}" = set; then : |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 3100 | enableval=$enable_disabled_builtins; opt_disabled_builtins=$enableval |
| 3101 | fi |
| 3102 | |
| 3103 | # Check whether --enable-dparen-arithmetic was given. |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 3104 | if test "${enable_dparen_arithmetic+set}" = set; then : |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 3105 | enableval=$enable_dparen_arithmetic; opt_dparen_arith=$enableval |
| 3106 | fi |
| 3107 | |
| 3108 | # Check whether --enable-extended-glob was given. |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 3109 | if test "${enable_extended_glob+set}" = set; then : |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 3110 | enableval=$enable_extended_glob; opt_extended_glob=$enableval |
| 3111 | fi |
| 3112 | |
Chet Ramey | 0001803 | 2011-11-21 20:51:19 -0500 | [diff] [blame] | 3113 | # Check whether --enable-extended-glob-default was given. |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 3114 | if test "${enable_extended_glob_default+set}" = set; then : |
Chet Ramey | 0001803 | 2011-11-21 20:51:19 -0500 | [diff] [blame] | 3115 | enableval=$enable_extended_glob_default; opt_extglob_default=$enableval |
| 3116 | fi |
| 3117 | |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 3118 | # Check whether --enable-glob-asciiranges-default was given. |
| 3119 | if test "${enable_glob_asciiranges_default+set}" = set; then : |
| 3120 | enableval=$enable_glob_asciiranges_default; opt_globascii_default=$enableval |
| 3121 | fi |
| 3122 | |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 3123 | # Check whether --enable-help-builtin was given. |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 3124 | if test "${enable_help_builtin+set}" = set; then : |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 3125 | enableval=$enable_help_builtin; opt_help=$enableval |
| 3126 | fi |
| 3127 | |
| 3128 | # Check whether --enable-history was given. |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 3129 | if test "${enable_history+set}" = set; then : |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 3130 | enableval=$enable_history; opt_history=$enableval |
| 3131 | fi |
| 3132 | |
| 3133 | # Check whether --enable-job-control was given. |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 3134 | if test "${enable_job_control+set}" = set; then : |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 3135 | enableval=$enable_job_control; opt_job_control=$enableval |
| 3136 | fi |
| 3137 | |
| 3138 | # Check whether --enable-multibyte was given. |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 3139 | if test "${enable_multibyte+set}" = set; then : |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 3140 | enableval=$enable_multibyte; opt_multibyte=$enableval |
| 3141 | fi |
| 3142 | |
| 3143 | # Check whether --enable-net-redirections was given. |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 3144 | if test "${enable_net_redirections+set}" = set; then : |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 3145 | enableval=$enable_net_redirections; opt_net_redirs=$enableval |
| 3146 | fi |
| 3147 | |
| 3148 | # Check whether --enable-process-substitution was given. |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 3149 | if test "${enable_process_substitution+set}" = set; then : |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 3150 | enableval=$enable_process_substitution; opt_process_subst=$enableval |
| 3151 | fi |
| 3152 | |
| 3153 | # Check whether --enable-progcomp was given. |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 3154 | if test "${enable_progcomp+set}" = set; then : |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 3155 | enableval=$enable_progcomp; opt_progcomp=$enableval |
| 3156 | fi |
| 3157 | |
| 3158 | # Check whether --enable-prompt-string-decoding was given. |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 3159 | if test "${enable_prompt_string_decoding+set}" = set; then : |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 3160 | enableval=$enable_prompt_string_decoding; opt_prompt_decoding=$enableval |
| 3161 | fi |
| 3162 | |
| 3163 | # Check whether --enable-readline was given. |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 3164 | if test "${enable_readline+set}" = set; then : |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 3165 | enableval=$enable_readline; opt_readline=$enableval |
| 3166 | fi |
| 3167 | |
| 3168 | # Check whether --enable-restricted was given. |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 3169 | if test "${enable_restricted+set}" = set; then : |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 3170 | enableval=$enable_restricted; opt_restricted=$enableval |
| 3171 | fi |
| 3172 | |
| 3173 | # Check whether --enable-select was given. |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 3174 | if test "${enable_select+set}" = set; then : |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 3175 | enableval=$enable_select; opt_select=$enableval |
| 3176 | fi |
| 3177 | |
| 3178 | # Check whether --enable-separate-helpfiles was given. |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 3179 | if test "${enable_separate_helpfiles+set}" = set; then : |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 3180 | enableval=$enable_separate_helpfiles; opt_separate_help=$enableval |
| 3181 | fi |
| 3182 | |
| 3183 | # Check whether --enable-single-help-strings was given. |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 3184 | if test "${enable_single_help_strings+set}" = set; then : |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 3185 | enableval=$enable_single_help_strings; opt_single_longdoc_strings=$enableval |
| 3186 | fi |
| 3187 | |
| 3188 | # Check whether --enable-strict-posix-default was given. |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 3189 | if test "${enable_strict_posix_default+set}" = set; then : |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 3190 | enableval=$enable_strict_posix_default; opt_strict_posix=$enableval |
| 3191 | fi |
| 3192 | |
| 3193 | # Check whether --enable-usg-echo-default was given. |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 3194 | if test "${enable_usg_echo_default+set}" = set; then : |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 3195 | enableval=$enable_usg_echo_default; opt_xpg_echo=$enableval |
| 3196 | fi |
| 3197 | |
| 3198 | # Check whether --enable-xpg-echo-default was given. |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 3199 | if test "${enable_xpg_echo_default+set}" = set; then : |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 3200 | enableval=$enable_xpg_echo_default; opt_xpg_echo=$enableval |
| 3201 | fi |
| 3202 | |
| 3203 | |
| 3204 | # Check whether --enable-mem-scramble was given. |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 3205 | if test "${enable_mem_scramble+set}" = set; then : |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 3206 | enableval=$enable_mem_scramble; opt_memscramble=$enableval |
| 3207 | fi |
| 3208 | |
| 3209 | # Check whether --enable-profiling was given. |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 3210 | if test "${enable_profiling+set}" = set; then : |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 3211 | enableval=$enable_profiling; opt_profiling=$enableval |
| 3212 | fi |
| 3213 | |
| 3214 | # Check whether --enable-static-link was given. |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 3215 | if test "${enable_static_link+set}" = set; then : |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 3216 | enableval=$enable_static_link; opt_static_link=$enableval |
| 3217 | fi |
| 3218 | |
Jari Aalto | b72432f | 1999-02-19 17:11:39 +0000 | [diff] [blame] | 3219 | |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 3220 | |
| 3221 | |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 3222 | |
| 3223 | |
| 3224 | |
| 3225 | |
| 3226 | |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 3227 | if test $opt_alias = yes; then |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 3228 | $as_echo "#define ALIAS 1" >>confdefs.h |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 3229 | |
| 3230 | fi |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 3231 | if test $opt_dirstack = yes; then |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 3232 | $as_echo "#define PUSHD_AND_POPD 1" >>confdefs.h |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 3233 | |
| 3234 | fi |
| 3235 | if test $opt_restricted = yes; then |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 3236 | $as_echo "#define RESTRICTED_SHELL 1" >>confdefs.h |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 3237 | |
| 3238 | fi |
| 3239 | if test $opt_process_subst = yes; then |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 3240 | $as_echo "#define PROCESS_SUBSTITUTION 1" >>confdefs.h |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 3241 | |
| 3242 | fi |
| 3243 | if test $opt_prompt_decoding = yes; then |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 3244 | $as_echo "#define PROMPT_STRING_DECODE 1" >>confdefs.h |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 3245 | |
| 3246 | fi |
| 3247 | if test $opt_select = yes; then |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 3248 | $as_echo "#define SELECT_COMMAND 1" >>confdefs.h |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 3249 | |
| 3250 | fi |
| 3251 | if test $opt_help = yes; then |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 3252 | $as_echo "#define HELP_BUILTIN 1" >>confdefs.h |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 3253 | |
| 3254 | fi |
| 3255 | if test $opt_array_variables = yes; then |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 3256 | $as_echo "#define ARRAY_VARS 1" >>confdefs.h |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 3257 | |
| 3258 | fi |
| 3259 | if test $opt_dparen_arith = yes; then |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 3260 | $as_echo "#define DPAREN_ARITHMETIC 1" >>confdefs.h |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 3261 | |
| 3262 | fi |
| 3263 | if test $opt_brace_expansion = yes; then |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 3264 | $as_echo "#define BRACE_EXPANSION 1" >>confdefs.h |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 3265 | |
| 3266 | fi |
| 3267 | if test $opt_disabled_builtins = yes; then |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 3268 | $as_echo "#define DISABLED_BUILTINS 1" >>confdefs.h |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 3269 | |
| 3270 | fi |
| 3271 | if test $opt_command_timing = yes; then |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 3272 | $as_echo "#define COMMAND_TIMING 1" >>confdefs.h |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 3273 | |
| 3274 | fi |
Jari Aalto | bb70624 | 2000-03-17 21:46:59 +0000 | [diff] [blame] | 3275 | if test $opt_xpg_echo = yes ; then |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 3276 | $as_echo "#define DEFAULT_ECHO_TO_XPG 1" >>confdefs.h |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 3277 | |
| 3278 | fi |
Jari Aalto | 95732b4 | 2005-12-07 14:08:12 +0000 | [diff] [blame] | 3279 | if test $opt_strict_posix = yes; then |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 3280 | $as_echo "#define STRICT_POSIX 1" >>confdefs.h |
Jari Aalto | 95732b4 | 2005-12-07 14:08:12 +0000 | [diff] [blame] | 3281 | |
| 3282 | fi |
Jari Aalto | cce855b | 1998-04-17 19:52:44 +0000 | [diff] [blame] | 3283 | if test $opt_extended_glob = yes ; then |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 3284 | $as_echo "#define EXTENDED_GLOB 1" >>confdefs.h |
Jari Aalto | cce855b | 1998-04-17 19:52:44 +0000 | [diff] [blame] | 3285 | |
| 3286 | fi |
Chet Ramey | 0001803 | 2011-11-21 20:51:19 -0500 | [diff] [blame] | 3287 | if test $opt_extglob_default = yes; then |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 3288 | $as_echo "#define EXTGLOB_DEFAULT 1" >>confdefs.h |
Chet Ramey | 0001803 | 2011-11-21 20:51:19 -0500 | [diff] [blame] | 3289 | |
| 3290 | else |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 3291 | $as_echo "#define EXTGLOB_DEFAULT 0" >>confdefs.h |
Chet Ramey | 0001803 | 2011-11-21 20:51:19 -0500 | [diff] [blame] | 3292 | |
| 3293 | fi |
Jari Aalto | cce855b | 1998-04-17 19:52:44 +0000 | [diff] [blame] | 3294 | if test $opt_cond_command = yes ; then |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 3295 | $as_echo "#define COND_COMMAND 1" >>confdefs.h |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 3296 | |
| 3297 | fi |
| 3298 | if test $opt_cond_regexp = yes ; then |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 3299 | $as_echo "#define COND_REGEXP 1" >>confdefs.h |
Jari Aalto | cce855b | 1998-04-17 19:52:44 +0000 | [diff] [blame] | 3300 | |
| 3301 | fi |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 3302 | if test $opt_coproc = yes; then |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 3303 | $as_echo "#define COPROCESS_SUPPORT 1" >>confdefs.h |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 3304 | |
| 3305 | fi |
Jari Aalto | bb70624 | 2000-03-17 21:46:59 +0000 | [diff] [blame] | 3306 | if test $opt_arith_for_command = yes; then |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 3307 | $as_echo "#define ARITH_FOR_COMMAND 1" >>confdefs.h |
Jari Aalto | bb70624 | 2000-03-17 21:46:59 +0000 | [diff] [blame] | 3308 | |
| 3309 | fi |
| 3310 | if test $opt_net_redirs = yes; then |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 3311 | $as_echo "#define NETWORK_REDIRECTIONS 1" >>confdefs.h |
Jari Aalto | bb70624 | 2000-03-17 21:46:59 +0000 | [diff] [blame] | 3312 | |
| 3313 | fi |
| 3314 | if test $opt_progcomp = yes; then |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 3315 | $as_echo "#define PROGRAMMABLE_COMPLETION 1" >>confdefs.h |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 3316 | |
| 3317 | fi |
| 3318 | if test $opt_multibyte = no; then |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 3319 | $as_echo "#define NO_MULTIBYTE_SUPPORT 1" >>confdefs.h |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 3320 | |
| 3321 | fi |
| 3322 | if test $opt_debugger = yes; then |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 3323 | $as_echo "#define DEBUGGER 1" >>confdefs.h |
Jari Aalto | bb70624 | 2000-03-17 21:46:59 +0000 | [diff] [blame] | 3324 | |
| 3325 | fi |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 3326 | if test $opt_casemod_attrs = yes; then |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 3327 | $as_echo "#define CASEMOD_ATTRS 1" >>confdefs.h |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 3328 | |
| 3329 | fi |
| 3330 | if test $opt_casemod_expansions = yes; then |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 3331 | $as_echo "#define CASEMOD_EXPANSIONS 1" >>confdefs.h |
| 3332 | |
| 3333 | fi |
| 3334 | if test $opt_dircomplete_expand_default = yes; then |
| 3335 | $as_echo "#define DIRCOMPLETE_EXPAND_DEFAULT 1" >>confdefs.h |
| 3336 | |
| 3337 | fi |
| 3338 | if test $opt_globascii_default = yes; then |
| 3339 | $as_echo "#define GLOBASCII_DEFAULT 1" >>confdefs.h |
| 3340 | |
| 3341 | else |
| 3342 | $as_echo "#define GLOBASCII_DEFAULT 0" >>confdefs.h |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 3343 | |
| 3344 | fi |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 3345 | |
Jari Aalto | 7117c2d | 2002-07-17 14:10:11 +0000 | [diff] [blame] | 3346 | if test $opt_memscramble = yes; then |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 3347 | $as_echo "#define MEMSCRAMBLE 1" >>confdefs.h |
Jari Aalto | 7117c2d | 2002-07-17 14:10:11 +0000 | [diff] [blame] | 3348 | |
| 3349 | fi |
| 3350 | |
Jari Aalto | d166f04 | 1997-06-05 14:59:13 +0000 | [diff] [blame] | 3351 | if test "$opt_minimal_config" = yes; then |
| 3352 | TESTSCRIPT=run-minimal |
| 3353 | else |
| 3354 | TESTSCRIPT=run-all |
| 3355 | fi |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 3356 | |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 3357 | HELPDIR= HELPDIRDEFINE= HELPINSTALL= HELPFILES_TARGET= |
Jari Aalto | 7117c2d | 2002-07-17 14:10:11 +0000 | [diff] [blame] | 3358 | if test "$opt_separate_help" != no; then |
| 3359 | if test "$opt_separate_help" = "yes" ; then |
| 3360 | HELPDIR='${datadir}/bash' |
| 3361 | else |
| 3362 | HELPDIR=$opt_separate_help |
| 3363 | fi |
| 3364 | HELPDIRDEFINE='-H ${HELPDIR}' |
| 3365 | HELPINSTALL='install-help' |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 3366 | HELPFILES_TARGET='helpdoc' |
Jari Aalto | 7117c2d | 2002-07-17 14:10:11 +0000 | [diff] [blame] | 3367 | fi |
Jari Aalto | 95732b4 | 2005-12-07 14:08:12 +0000 | [diff] [blame] | 3368 | HELPSTRINGS= |
| 3369 | if test "$opt_single_longdoc_strings" != "yes"; then |
| 3370 | HELPSTRINGS='-S' |
| 3371 | fi |
| 3372 | |
Jari Aalto | 7117c2d | 2002-07-17 14:10:11 +0000 | [diff] [blame] | 3373 | |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 3374 | |
| 3375 | |
| 3376 | |
| 3377 | |
| 3378 | |
| 3379 | |
| 3380 | |
| 3381 | |
| 3382 | |
| 3383 | |
| 3384 | |
| 3385 | |
| 3386 | |
| 3387 | |
| 3388 | |
| 3389 | |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 3390 | |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 3391 | echo "" |
Jari Aalto | 7117c2d | 2002-07-17 14:10:11 +0000 | [diff] [blame] | 3392 | echo "Beginning configuration for bash-$BASHVERS-$RELSTATUS for ${host_cpu}-${host_vendor}-${host_os}" |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 3393 | echo "" |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 3394 | |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 3395 | ac_ext=c |
| 3396 | ac_cpp='$CPP $CPPFLAGS' |
| 3397 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3398 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3399 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3400 | if test -n "$ac_tool_prefix"; then |
| 3401 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
| 3402 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 3403 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 3404 | $as_echo_n "checking for $ac_word... " >&6; } |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 3405 | if ${ac_cv_prog_CC+:} false; then : |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 3406 | $as_echo_n "(cached) " >&6 |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 3407 | else |
| 3408 | if test -n "$CC"; then |
| 3409 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 3410 | else |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 3411 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3412 | for as_dir in $PATH |
| 3413 | do |
| 3414 | IFS=$as_save_IFS |
| 3415 | test -z "$as_dir" && as_dir=. |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 3416 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3417 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 3418 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 3419 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 3420 | break 2 |
| 3421 | fi |
| 3422 | done |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 3423 | done |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 3424 | IFS=$as_save_IFS |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 3425 | |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 3426 | fi |
| 3427 | fi |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 3428 | CC=$ac_cv_prog_CC |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 3429 | if test -n "$CC"; then |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 3430 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 3431 | $as_echo "$CC" >&6; } |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 3432 | else |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 3433 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 3434 | $as_echo "no" >&6; } |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 3435 | fi |
| 3436 | |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 3437 | |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 3438 | fi |
| 3439 | if test -z "$ac_cv_prog_CC"; then |
| 3440 | ac_ct_CC=$CC |
| 3441 | # Extract the first word of "gcc", so it can be a program name with args. |
| 3442 | set dummy gcc; ac_word=$2 |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 3443 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 3444 | $as_echo_n "checking for $ac_word... " >&6; } |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 3445 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 3446 | $as_echo_n "(cached) " >&6 |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 3447 | else |
| 3448 | if test -n "$ac_ct_CC"; then |
| 3449 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 3450 | else |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 3451 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3452 | for as_dir in $PATH |
| 3453 | do |
| 3454 | IFS=$as_save_IFS |
| 3455 | test -z "$as_dir" && as_dir=. |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 3456 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3457 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 3458 | ac_cv_prog_ac_ct_CC="gcc" |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 3459 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 3460 | break 2 |
| 3461 | fi |
| 3462 | done |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 3463 | done |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 3464 | IFS=$as_save_IFS |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 3465 | |
| 3466 | fi |
| 3467 | fi |
| 3468 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 3469 | if test -n "$ac_ct_CC"; then |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 3470 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 3471 | $as_echo "$ac_ct_CC" >&6; } |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 3472 | else |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 3473 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 3474 | $as_echo "no" >&6; } |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 3475 | fi |
| 3476 | |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 3477 | if test "x$ac_ct_CC" = x; then |
| 3478 | CC="" |
| 3479 | else |
| 3480 | case $cross_compiling:$ac_tool_warned in |
| 3481 | yes:) |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 3482 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 3483 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 3484 | ac_tool_warned=yes ;; |
| 3485 | esac |
| 3486 | CC=$ac_ct_CC |
| 3487 | fi |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 3488 | else |
| 3489 | CC="$ac_cv_prog_CC" |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 3490 | fi |
| 3491 | |
| 3492 | if test -z "$CC"; then |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 3493 | if test -n "$ac_tool_prefix"; then |
| 3494 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 3495 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 3496 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 3497 | $as_echo_n "checking for $ac_word... " >&6; } |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 3498 | if ${ac_cv_prog_CC+:} false; then : |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 3499 | $as_echo_n "(cached) " >&6 |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 3500 | else |
| 3501 | if test -n "$CC"; then |
| 3502 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 3503 | else |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 3504 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3505 | for as_dir in $PATH |
| 3506 | do |
| 3507 | IFS=$as_save_IFS |
| 3508 | test -z "$as_dir" && as_dir=. |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 3509 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3510 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 3511 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 3512 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 3513 | break 2 |
| 3514 | fi |
| 3515 | done |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 3516 | done |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 3517 | IFS=$as_save_IFS |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 3518 | |
| 3519 | fi |
| 3520 | fi |
| 3521 | CC=$ac_cv_prog_CC |
| 3522 | if test -n "$CC"; then |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 3523 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 3524 | $as_echo "$CC" >&6; } |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 3525 | else |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 3526 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 3527 | $as_echo "no" >&6; } |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 3528 | fi |
| 3529 | |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 3530 | |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 3531 | fi |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 3532 | fi |
| 3533 | if test -z "$CC"; then |
| 3534 | # Extract the first word of "cc", so it can be a program name with args. |
| 3535 | set dummy cc; ac_word=$2 |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 3536 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 3537 | $as_echo_n "checking for $ac_word... " >&6; } |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 3538 | if ${ac_cv_prog_CC+:} false; then : |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 3539 | $as_echo_n "(cached) " >&6 |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 3540 | else |
| 3541 | if test -n "$CC"; then |
| 3542 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 3543 | else |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 3544 | ac_prog_rejected=no |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 3545 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3546 | for as_dir in $PATH |
| 3547 | do |
| 3548 | IFS=$as_save_IFS |
| 3549 | test -z "$as_dir" && as_dir=. |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 3550 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3551 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 3552 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
| 3553 | ac_prog_rejected=yes |
| 3554 | continue |
| 3555 | fi |
| 3556 | ac_cv_prog_CC="cc" |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 3557 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 3558 | break 2 |
| 3559 | fi |
| 3560 | done |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 3561 | done |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 3562 | IFS=$as_save_IFS |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 3563 | |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 3564 | if test $ac_prog_rejected = yes; then |
| 3565 | # We found a bogon in the path, so make sure we never use it. |
| 3566 | set dummy $ac_cv_prog_CC |
| 3567 | shift |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 3568 | if test $# != 0; then |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 3569 | # We chose a different compiler from the bogus one. |
| 3570 | # However, it has the same basename, so the bogon will be chosen |
| 3571 | # first if we set CC to just the basename; use the full file name. |
| 3572 | shift |
Jari Aalto | 0628567 | 2006-10-10 14:15:34 +0000 | [diff] [blame] | 3573 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 3574 | fi |
| 3575 | fi |
| 3576 | fi |
| 3577 | fi |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 3578 | CC=$ac_cv_prog_CC |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 3579 | if test -n "$CC"; then |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 3580 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 3581 | $as_echo "$CC" >&6; } |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 3582 | else |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 3583 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 3584 | $as_echo "no" >&6; } |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 3585 | fi |
| 3586 | |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 3587 | |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 3588 | fi |
| 3589 | if test -z "$CC"; then |
| 3590 | if test -n "$ac_tool_prefix"; then |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 3591 | for ac_prog in cl.exe |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 3592 | do |
| 3593 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 3594 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 3595 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 3596 | $as_echo_n "checking for $ac_word... " >&6; } |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 3597 | if ${ac_cv_prog_CC+:} false; then : |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 3598 | $as_echo_n "(cached) " >&6 |
Jari Aalto | bb70624 | 2000-03-17 21:46:59 +0000 | [diff] [blame] | 3599 | else |
| 3600 | if test -n "$CC"; then |
| 3601 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 3602 | else |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 3603 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3604 | for as_dir in $PATH |
| 3605 | do |
| 3606 | IFS=$as_save_IFS |
| 3607 | test -z "$as_dir" && as_dir=. |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 3608 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3609 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 3610 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 3611 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 3612 | break 2 |
| 3613 | fi |
| 3614 | done |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 3615 | done |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 3616 | IFS=$as_save_IFS |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 3617 | |
Jari Aalto | bb70624 | 2000-03-17 21:46:59 +0000 | [diff] [blame] | 3618 | fi |
| 3619 | fi |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 3620 | CC=$ac_cv_prog_CC |
Jari Aalto | bb70624 | 2000-03-17 21:46:59 +0000 | [diff] [blame] | 3621 | if test -n "$CC"; then |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 3622 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 3623 | $as_echo "$CC" >&6; } |
Jari Aalto | bb70624 | 2000-03-17 21:46:59 +0000 | [diff] [blame] | 3624 | else |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 3625 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 3626 | $as_echo "no" >&6; } |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 3627 | fi |
| 3628 | |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 3629 | |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 3630 | test -n "$CC" && break |
| 3631 | done |
| 3632 | fi |
| 3633 | if test -z "$CC"; then |
| 3634 | ac_ct_CC=$CC |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 3635 | for ac_prog in cl.exe |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 3636 | do |
| 3637 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 3638 | set dummy $ac_prog; ac_word=$2 |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 3639 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 3640 | $as_echo_n "checking for $ac_word... " >&6; } |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 3641 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 3642 | $as_echo_n "(cached) " >&6 |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 3643 | else |
| 3644 | if test -n "$ac_ct_CC"; then |
| 3645 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 3646 | else |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 3647 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3648 | for as_dir in $PATH |
| 3649 | do |
| 3650 | IFS=$as_save_IFS |
| 3651 | test -z "$as_dir" && as_dir=. |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 3652 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3653 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 3654 | ac_cv_prog_ac_ct_CC="$ac_prog" |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 3655 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 3656 | break 2 |
| 3657 | fi |
| 3658 | done |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 3659 | done |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 3660 | IFS=$as_save_IFS |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 3661 | |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 3662 | fi |
| 3663 | fi |
| 3664 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 3665 | if test -n "$ac_ct_CC"; then |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 3666 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 3667 | $as_echo "$ac_ct_CC" >&6; } |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 3668 | else |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 3669 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 3670 | $as_echo "no" >&6; } |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 3671 | fi |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 3672 | |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 3673 | |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 3674 | test -n "$ac_ct_CC" && break |
| 3675 | done |
Jari Aalto | bb70624 | 2000-03-17 21:46:59 +0000 | [diff] [blame] | 3676 | |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 3677 | if test "x$ac_ct_CC" = x; then |
| 3678 | CC="" |
| 3679 | else |
| 3680 | case $cross_compiling:$ac_tool_warned in |
| 3681 | yes:) |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 3682 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 3683 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 3684 | ac_tool_warned=yes ;; |
| 3685 | esac |
| 3686 | CC=$ac_ct_CC |
| 3687 | fi |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 3688 | fi |
| 3689 | |
| 3690 | fi |
| 3691 | |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 3692 | |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 3693 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 3694 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 3695 | as_fn_error $? "no acceptable C compiler found in \$PATH |
| 3696 | See \`config.log' for more details" "$LINENO" 5; } |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 3697 | |
| 3698 | # Provide some information about the compiler. |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 3699 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 3700 | set X $ac_compile |
| 3701 | ac_compiler=$2 |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 3702 | for ac_option in --version -v -V -qversion; do |
| 3703 | { { ac_try="$ac_compiler $ac_option >&5" |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 3704 | case "(($ac_try" in |
| 3705 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3706 | *) ac_try_echo=$ac_try;; |
| 3707 | esac |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 3708 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3709 | $as_echo "$ac_try_echo"; } >&5 |
| 3710 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 3711 | ac_status=$? |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 3712 | if test -s conftest.err; then |
| 3713 | sed '10a\ |
| 3714 | ... rest of stderr output deleted ... |
| 3715 | 10q' conftest.err >conftest.er1 |
| 3716 | cat conftest.er1 >&5 |
| 3717 | fi |
| 3718 | rm -f conftest.er1 conftest.err |
| 3719 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3720 | test $ac_status = 0; } |
| 3721 | done |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 3722 | |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 3723 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Jari Aalto | 0628567 | 2006-10-10 14:15:34 +0000 | [diff] [blame] | 3724 | /* end confdefs.h. */ |
Jari Aalto | bb70624 | 2000-03-17 21:46:59 +0000 | [diff] [blame] | 3725 | |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 3726 | int |
| 3727 | main () |
| 3728 | { |
| 3729 | |
| 3730 | ; |
| 3731 | return 0; |
| 3732 | } |
| 3733 | _ACEOF |
| 3734 | ac_clean_files_save=$ac_clean_files |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 3735 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 3736 | # Try to create an executable without -o first, disregard a.out. |
| 3737 | # It will help us diagnose broken compilers, and finding out an intuition |
| 3738 | # of exeext. |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 3739 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 |
| 3740 | $as_echo_n "checking whether the C compiler works... " >&6; } |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 3741 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 3742 | |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 3743 | # The possible output files: |
| 3744 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" |
| 3745 | |
| 3746 | ac_rmfiles= |
| 3747 | for ac_file in $ac_files |
| 3748 | do |
| 3749 | case $ac_file in |
| 3750 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
| 3751 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; |
| 3752 | esac |
| 3753 | done |
| 3754 | rm -f $ac_rmfiles |
| 3755 | |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 3756 | if { { ac_try="$ac_link_default" |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 3757 | case "(($ac_try" in |
| 3758 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3759 | *) ac_try_echo=$ac_try;; |
| 3760 | esac |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 3761 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3762 | $as_echo "$ac_try_echo"; } >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 3763 | (eval "$ac_link_default") 2>&5 |
| 3764 | ac_status=$? |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 3765 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3766 | test $ac_status = 0; }; then : |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 3767 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
| 3768 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' |
| 3769 | # in a Makefile. We should not override ac_cv_exeext if it was cached, |
| 3770 | # so that the user can short-circuit this test for compilers unknown to |
| 3771 | # Autoconf. |
| 3772 | for ac_file in $ac_files '' |
Jari Aalto | 0628567 | 2006-10-10 14:15:34 +0000 | [diff] [blame] | 3773 | do |
| 3774 | test -f "$ac_file" || continue |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 3775 | case $ac_file in |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 3776 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) |
Jari Aalto | 0628567 | 2006-10-10 14:15:34 +0000 | [diff] [blame] | 3777 | ;; |
| 3778 | [ab].out ) |
| 3779 | # We found the default executable, but exeext='' is most |
| 3780 | # certainly right. |
| 3781 | break;; |
| 3782 | *.* ) |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 3783 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 3784 | then :; else |
| 3785 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 3786 | fi |
| 3787 | # We set ac_cv_exeext here because the later test for it is not |
| 3788 | # safe: cross compilers may not add the suffix if given an `-o' |
| 3789 | # argument, so we may need to know it at that point already. |
| 3790 | # Even if this section looks crufty: it has the advantage of |
| 3791 | # actually working. |
Jari Aalto | 0628567 | 2006-10-10 14:15:34 +0000 | [diff] [blame] | 3792 | break;; |
| 3793 | * ) |
| 3794 | break;; |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 3795 | esac |
| 3796 | done |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 3797 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
| 3798 | |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 3799 | else |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 3800 | ac_file='' |
| 3801 | fi |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 3802 | if test -z "$ac_file"; then : |
| 3803 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3804 | $as_echo "no" >&6; } |
| 3805 | $as_echo "$as_me: failed program was:" >&5 |
Jari Aalto | 0628567 | 2006-10-10 14:15:34 +0000 | [diff] [blame] | 3806 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3807 | |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 3808 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 3809 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 3810 | as_fn_error 77 "C compiler cannot create executables |
| 3811 | See \`config.log' for more details" "$LINENO" 5; } |
| 3812 | else |
| 3813 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 3814 | $as_echo "yes" >&6; } |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 3815 | fi |
| 3816 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 |
| 3817 | $as_echo_n "checking for C compiler default output file name... " >&6; } |
| 3818 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 |
| 3819 | $as_echo "$ac_file" >&6; } |
| 3820 | ac_exeext=$ac_cv_exeext |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 3821 | |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 3822 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 3823 | ac_clean_files=$ac_clean_files_save |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 3824 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 3825 | $as_echo_n "checking for suffix of executables... " >&6; } |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 3826 | if { { ac_try="$ac_link" |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 3827 | case "(($ac_try" in |
| 3828 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3829 | *) ac_try_echo=$ac_try;; |
| 3830 | esac |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 3831 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3832 | $as_echo "$ac_try_echo"; } >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 3833 | (eval "$ac_link") 2>&5 |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 3834 | ac_status=$? |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 3835 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3836 | test $ac_status = 0; }; then : |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 3837 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
| 3838 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
| 3839 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
| 3840 | # `rm'. |
Jari Aalto | 0628567 | 2006-10-10 14:15:34 +0000 | [diff] [blame] | 3841 | for ac_file in conftest.exe conftest conftest.*; do |
| 3842 | test -f "$ac_file" || continue |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 3843 | case $ac_file in |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 3844 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 3845 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
Jari Aalto | 0628567 | 2006-10-10 14:15:34 +0000 | [diff] [blame] | 3846 | break;; |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 3847 | * ) break;; |
| 3848 | esac |
| 3849 | done |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 3850 | else |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 3851 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 3852 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 3853 | as_fn_error $? "cannot compute suffix of executables: cannot compile and link |
| 3854 | See \`config.log' for more details" "$LINENO" 5; } |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 3855 | fi |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 3856 | rm -f conftest conftest$ac_cv_exeext |
| 3857 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 3858 | $as_echo "$ac_cv_exeext" >&6; } |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 3859 | |
| 3860 | rm -f conftest.$ac_ext |
| 3861 | EXEEXT=$ac_cv_exeext |
| 3862 | ac_exeext=$EXEEXT |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 3863 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3864 | /* end confdefs.h. */ |
| 3865 | #include <stdio.h> |
| 3866 | int |
| 3867 | main () |
| 3868 | { |
| 3869 | FILE *f = fopen ("conftest.out", "w"); |
| 3870 | return ferror (f) || fclose (f) != 0; |
| 3871 | |
| 3872 | ; |
| 3873 | return 0; |
| 3874 | } |
| 3875 | _ACEOF |
| 3876 | ac_clean_files="$ac_clean_files conftest.out" |
| 3877 | # Check that the compiler produces executables we can run. If not, either |
| 3878 | # the compiler is broken, or we cross compile. |
| 3879 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 |
| 3880 | $as_echo_n "checking whether we are cross compiling... " >&6; } |
| 3881 | if test "$cross_compiling" != yes; then |
| 3882 | { { ac_try="$ac_link" |
| 3883 | case "(($ac_try" in |
| 3884 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3885 | *) ac_try_echo=$ac_try;; |
| 3886 | esac |
| 3887 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3888 | $as_echo "$ac_try_echo"; } >&5 |
| 3889 | (eval "$ac_link") 2>&5 |
| 3890 | ac_status=$? |
| 3891 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3892 | test $ac_status = 0; } |
| 3893 | if { ac_try='./conftest$ac_cv_exeext' |
| 3894 | { { case "(($ac_try" in |
| 3895 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3896 | *) ac_try_echo=$ac_try;; |
| 3897 | esac |
| 3898 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3899 | $as_echo "$ac_try_echo"; } >&5 |
| 3900 | (eval "$ac_try") 2>&5 |
| 3901 | ac_status=$? |
| 3902 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3903 | test $ac_status = 0; }; }; then |
| 3904 | cross_compiling=no |
| 3905 | else |
| 3906 | if test "$cross_compiling" = maybe; then |
| 3907 | cross_compiling=yes |
| 3908 | else |
| 3909 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 3910 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 3911 | as_fn_error $? "cannot run C compiled programs. |
| 3912 | If you meant to cross compile, use \`--host'. |
| 3913 | See \`config.log' for more details" "$LINENO" 5; } |
| 3914 | fi |
| 3915 | fi |
| 3916 | fi |
| 3917 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 |
| 3918 | $as_echo "$cross_compiling" >&6; } |
| 3919 | |
| 3920 | rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out |
| 3921 | ac_clean_files=$ac_clean_files_save |
| 3922 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 3923 | $as_echo_n "checking for suffix of object files... " >&6; } |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 3924 | if ${ac_cv_objext+:} false; then : |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 3925 | $as_echo_n "(cached) " >&6 |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 3926 | else |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 3927 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Jari Aalto | 0628567 | 2006-10-10 14:15:34 +0000 | [diff] [blame] | 3928 | /* end confdefs.h. */ |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 3929 | |
| 3930 | int |
| 3931 | main () |
| 3932 | { |
| 3933 | |
| 3934 | ; |
| 3935 | return 0; |
| 3936 | } |
| 3937 | _ACEOF |
| 3938 | rm -f conftest.o conftest.obj |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 3939 | if { { ac_try="$ac_compile" |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 3940 | case "(($ac_try" in |
| 3941 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3942 | *) ac_try_echo=$ac_try;; |
| 3943 | esac |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 3944 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3945 | $as_echo "$ac_try_echo"; } >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 3946 | (eval "$ac_compile") 2>&5 |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 3947 | ac_status=$? |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 3948 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3949 | test $ac_status = 0; }; then : |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 3950 | for ac_file in conftest.o conftest.obj conftest.*; do |
| 3951 | test -f "$ac_file" || continue; |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 3952 | case $ac_file in |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 3953 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 3954 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
| 3955 | break;; |
| 3956 | esac |
| 3957 | done |
| 3958 | else |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 3959 | $as_echo "$as_me: failed program was:" >&5 |
Jari Aalto | 0628567 | 2006-10-10 14:15:34 +0000 | [diff] [blame] | 3960 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3961 | |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 3962 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 3963 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 3964 | as_fn_error $? "cannot compute suffix of object files: cannot compile |
| 3965 | See \`config.log' for more details" "$LINENO" 5; } |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 3966 | fi |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 3967 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
| 3968 | fi |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 3969 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 3970 | $as_echo "$ac_cv_objext" >&6; } |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 3971 | OBJEXT=$ac_cv_objext |
| 3972 | ac_objext=$OBJEXT |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 3973 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 3974 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 3975 | if ${ac_cv_c_compiler_gnu+:} false; then : |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 3976 | $as_echo_n "(cached) " >&6 |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 3977 | else |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 3978 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Jari Aalto | 0628567 | 2006-10-10 14:15:34 +0000 | [diff] [blame] | 3979 | /* end confdefs.h. */ |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 3980 | |
| 3981 | int |
| 3982 | main () |
| 3983 | { |
| 3984 | #ifndef __GNUC__ |
| 3985 | choke me |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 3986 | #endif |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 3987 | |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 3988 | ; |
| 3989 | return 0; |
| 3990 | } |
| 3991 | _ACEOF |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 3992 | if ac_fn_c_try_compile "$LINENO"; then : |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 3993 | ac_compiler_gnu=yes |
Jari Aalto | bb70624 | 2000-03-17 21:46:59 +0000 | [diff] [blame] | 3994 | else |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 3995 | ac_compiler_gnu=no |
Jari Aalto | bb70624 | 2000-03-17 21:46:59 +0000 | [diff] [blame] | 3996 | fi |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 3997 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 3998 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
Jari Aalto | bb70624 | 2000-03-17 21:46:59 +0000 | [diff] [blame] | 3999 | |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 4000 | fi |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 4001 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 4002 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } |
| 4003 | if test $ac_compiler_gnu = yes; then |
| 4004 | GCC=yes |
| 4005 | else |
| 4006 | GCC= |
| 4007 | fi |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 4008 | ac_test_CFLAGS=${CFLAGS+set} |
| 4009 | ac_save_CFLAGS=$CFLAGS |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 4010 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 4011 | $as_echo_n "checking whether $CC accepts -g... " >&6; } |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 4012 | if ${ac_cv_prog_cc_g+:} false; then : |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 4013 | $as_echo_n "(cached) " >&6 |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 4014 | else |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 4015 | ac_save_c_werror_flag=$ac_c_werror_flag |
| 4016 | ac_c_werror_flag=yes |
| 4017 | ac_cv_prog_cc_g=no |
| 4018 | CFLAGS="-g" |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 4019 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Jari Aalto | 0628567 | 2006-10-10 14:15:34 +0000 | [diff] [blame] | 4020 | /* end confdefs.h. */ |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 4021 | |
| 4022 | int |
| 4023 | main () |
| 4024 | { |
| 4025 | |
| 4026 | ; |
| 4027 | return 0; |
| 4028 | } |
| 4029 | _ACEOF |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 4030 | if ac_fn_c_try_compile "$LINENO"; then : |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 4031 | ac_cv_prog_cc_g=yes |
| 4032 | else |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 4033 | CFLAGS="" |
| 4034 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 4035 | /* end confdefs.h. */ |
| 4036 | |
| 4037 | int |
| 4038 | main () |
| 4039 | { |
| 4040 | |
| 4041 | ; |
| 4042 | return 0; |
| 4043 | } |
| 4044 | _ACEOF |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 4045 | if ac_fn_c_try_compile "$LINENO"; then : |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 4046 | |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 4047 | else |
| 4048 | ac_c_werror_flag=$ac_save_c_werror_flag |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 4049 | CFLAGS="-g" |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 4050 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 4051 | /* end confdefs.h. */ |
| 4052 | |
| 4053 | int |
| 4054 | main () |
| 4055 | { |
| 4056 | |
| 4057 | ; |
| 4058 | return 0; |
| 4059 | } |
| 4060 | _ACEOF |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 4061 | if ac_fn_c_try_compile "$LINENO"; then : |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 4062 | ac_cv_prog_cc_g=yes |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 4063 | fi |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 4064 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 4065 | fi |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 4066 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4067 | fi |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 4068 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4069 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 4070 | fi |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 4071 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 4072 | $as_echo "$ac_cv_prog_cc_g" >&6; } |
Jari Aalto | bb70624 | 2000-03-17 21:46:59 +0000 | [diff] [blame] | 4073 | if test "$ac_test_CFLAGS" = set; then |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 4074 | CFLAGS=$ac_save_CFLAGS |
Jari Aalto | bb70624 | 2000-03-17 21:46:59 +0000 | [diff] [blame] | 4075 | elif test $ac_cv_prog_cc_g = yes; then |
| 4076 | if test "$GCC" = yes; then |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 4077 | CFLAGS="-g -O2" |
| 4078 | else |
Jari Aalto | bb70624 | 2000-03-17 21:46:59 +0000 | [diff] [blame] | 4079 | CFLAGS="-g" |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 4080 | fi |
| 4081 | else |
Jari Aalto | bb70624 | 2000-03-17 21:46:59 +0000 | [diff] [blame] | 4082 | if test "$GCC" = yes; then |
| 4083 | CFLAGS="-O2" |
| 4084 | else |
| 4085 | CFLAGS= |
| 4086 | fi |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 4087 | fi |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 4088 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 4089 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 4090 | if ${ac_cv_prog_cc_c89+:} false; then : |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 4091 | $as_echo_n "(cached) " >&6 |
Jari Aalto | 0628567 | 2006-10-10 14:15:34 +0000 | [diff] [blame] | 4092 | else |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 4093 | ac_cv_prog_cc_c89=no |
Jari Aalto | 0628567 | 2006-10-10 14:15:34 +0000 | [diff] [blame] | 4094 | ac_save_CC=$CC |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 4095 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Jari Aalto | 0628567 | 2006-10-10 14:15:34 +0000 | [diff] [blame] | 4096 | /* end confdefs.h. */ |
| 4097 | #include <stdarg.h> |
| 4098 | #include <stdio.h> |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 4099 | struct stat; |
Jari Aalto | 0628567 | 2006-10-10 14:15:34 +0000 | [diff] [blame] | 4100 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
| 4101 | struct buf { int x; }; |
| 4102 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
| 4103 | static char *e (p, i) |
| 4104 | char **p; |
| 4105 | int i; |
| 4106 | { |
| 4107 | return p[i]; |
| 4108 | } |
| 4109 | static char *f (char * (*g) (char **, int), char **p, ...) |
| 4110 | { |
| 4111 | char *s; |
| 4112 | va_list v; |
| 4113 | va_start (v,p); |
| 4114 | s = g (p, va_arg (v,int)); |
| 4115 | va_end (v); |
| 4116 | return s; |
| 4117 | } |
| 4118 | |
| 4119 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
| 4120 | function prototypes and stuff, but not '\xHH' hex character constants. |
| 4121 | These don't provoke an error unfortunately, instead are silently treated |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 4122 | as 'x'. The following induces an error, until -std is added to get |
Jari Aalto | 0628567 | 2006-10-10 14:15:34 +0000 | [diff] [blame] | 4123 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
| 4124 | array size at least. It's necessary to write '\x00'==0 to get something |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 4125 | that's true only with -std. */ |
Jari Aalto | 0628567 | 2006-10-10 14:15:34 +0000 | [diff] [blame] | 4126 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
| 4127 | |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 4128 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
| 4129 | inside strings and character constants. */ |
| 4130 | #define FOO(x) 'x' |
| 4131 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; |
| 4132 | |
Jari Aalto | 0628567 | 2006-10-10 14:15:34 +0000 | [diff] [blame] | 4133 | int test (int i, double x); |
| 4134 | struct s1 {int (*f) (int a);}; |
| 4135 | struct s2 {int (*f) (double a);}; |
| 4136 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
| 4137 | int argc; |
| 4138 | char **argv; |
| 4139 | int |
| 4140 | main () |
| 4141 | { |
| 4142 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
| 4143 | ; |
| 4144 | return 0; |
| 4145 | } |
| 4146 | _ACEOF |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 4147 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
| 4148 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
Jari Aalto | 0628567 | 2006-10-10 14:15:34 +0000 | [diff] [blame] | 4149 | do |
| 4150 | CC="$ac_save_CC $ac_arg" |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 4151 | if ac_fn_c_try_compile "$LINENO"; then : |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 4152 | ac_cv_prog_cc_c89=$ac_arg |
Jari Aalto | 0628567 | 2006-10-10 14:15:34 +0000 | [diff] [blame] | 4153 | fi |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 4154 | rm -f core conftest.err conftest.$ac_objext |
| 4155 | test "x$ac_cv_prog_cc_c89" != "xno" && break |
Jari Aalto | 0628567 | 2006-10-10 14:15:34 +0000 | [diff] [blame] | 4156 | done |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 4157 | rm -f conftest.$ac_ext |
Jari Aalto | 0628567 | 2006-10-10 14:15:34 +0000 | [diff] [blame] | 4158 | CC=$ac_save_CC |
| 4159 | |
| 4160 | fi |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 4161 | # AC_CACHE_VAL |
| 4162 | case "x$ac_cv_prog_cc_c89" in |
| 4163 | x) |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 4164 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 4165 | $as_echo "none needed" >&6; } ;; |
| 4166 | xno) |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 4167 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 4168 | $as_echo "unsupported" >&6; } ;; |
Jari Aalto | 0628567 | 2006-10-10 14:15:34 +0000 | [diff] [blame] | 4169 | *) |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 4170 | CC="$CC $ac_cv_prog_cc_c89" |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 4171 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 4172 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; |
Jari Aalto | 0628567 | 2006-10-10 14:15:34 +0000 | [diff] [blame] | 4173 | esac |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 4174 | if test "x$ac_cv_prog_cc_c89" != xno; then : |
Jari Aalto | 0628567 | 2006-10-10 14:15:34 +0000 | [diff] [blame] | 4175 | |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 4176 | fi |
Jari Aalto | 0628567 | 2006-10-10 14:15:34 +0000 | [diff] [blame] | 4177 | |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 4178 | ac_ext=c |
| 4179 | ac_cpp='$CPP $CPPFLAGS' |
| 4180 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 4181 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 4182 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 4183 | |
| 4184 | |
| 4185 | |
| 4186 | |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 4187 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strerror in -lcposix" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 4188 | $as_echo_n "checking for strerror in -lcposix... " >&6; } |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 4189 | if ${ac_cv_lib_cposix_strerror+:} false; then : |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 4190 | $as_echo_n "(cached) " >&6 |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 4191 | else |
| 4192 | ac_check_lib_save_LIBS=$LIBS |
| 4193 | LIBS="-lcposix $LIBS" |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 4194 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Jari Aalto | 0628567 | 2006-10-10 14:15:34 +0000 | [diff] [blame] | 4195 | /* end confdefs.h. */ |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 4196 | |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 4197 | /* Override any GCC internal prototype to avoid an error. |
| 4198 | Use char because int might match the return type of a GCC |
| 4199 | builtin and then its argument prototype would still apply. */ |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 4200 | #ifdef __cplusplus |
| 4201 | extern "C" |
| 4202 | #endif |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 4203 | char strerror (); |
| 4204 | int |
| 4205 | main () |
| 4206 | { |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 4207 | return strerror (); |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 4208 | ; |
| 4209 | return 0; |
| 4210 | } |
| 4211 | _ACEOF |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 4212 | if ac_fn_c_try_link "$LINENO"; then : |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 4213 | ac_cv_lib_cposix_strerror=yes |
| 4214 | else |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 4215 | ac_cv_lib_cposix_strerror=no |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 4216 | fi |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 4217 | rm -f core conftest.err conftest.$ac_objext \ |
| 4218 | conftest$ac_exeext conftest.$ac_ext |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 4219 | LIBS=$ac_check_lib_save_LIBS |
| 4220 | fi |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 4221 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cposix_strerror" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 4222 | $as_echo "$ac_cv_lib_cposix_strerror" >&6; } |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 4223 | if test "x$ac_cv_lib_cposix_strerror" = xyes; then : |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 4224 | LIBS="$LIBS -lcposix" |
| 4225 | fi |
| 4226 | |
| 4227 | |
| 4228 | |
| 4229 | ac_ext=c |
| 4230 | ac_cpp='$CPP $CPPFLAGS' |
| 4231 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 4232 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 4233 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 4234 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 4235 | $as_echo_n "checking how to run the C preprocessor... " >&6; } |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 4236 | # On Suns, sometimes $CPP names a directory. |
| 4237 | if test -n "$CPP" && test -d "$CPP"; then |
| 4238 | CPP= |
| 4239 | fi |
| 4240 | if test -z "$CPP"; then |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 4241 | if ${ac_cv_prog_CPP+:} false; then : |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 4242 | $as_echo_n "(cached) " >&6 |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 4243 | else |
| 4244 | # Double quotes because CPP needs to be expanded |
| 4245 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
| 4246 | do |
| 4247 | ac_preproc_ok=false |
| 4248 | for ac_c_preproc_warn_flag in '' yes |
| 4249 | do |
| 4250 | # Use a header file that comes with gcc, so configuring glibc |
| 4251 | # with a fresh cross-compiler works. |
Jari Aalto | 0628567 | 2006-10-10 14:15:34 +0000 | [diff] [blame] | 4252 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 4253 | # <limits.h> exists even on freestanding compilers. |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 4254 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 4255 | # not just through cpp. "Syntax error" is here to catch this case. |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 4256 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Jari Aalto | 0628567 | 2006-10-10 14:15:34 +0000 | [diff] [blame] | 4257 | /* end confdefs.h. */ |
| 4258 | #ifdef __STDC__ |
| 4259 | # include <limits.h> |
| 4260 | #else |
| 4261 | # include <assert.h> |
| 4262 | #endif |
| 4263 | Syntax error |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 4264 | _ACEOF |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 4265 | if ac_fn_c_try_cpp "$LINENO"; then : |
Jari Aalto | 0628567 | 2006-10-10 14:15:34 +0000 | [diff] [blame] | 4266 | |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 4267 | else |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 4268 | # Broken: fails on valid input. |
| 4269 | continue |
| 4270 | fi |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 4271 | rm -f conftest.err conftest.i conftest.$ac_ext |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 4272 | |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 4273 | # OK, works on sane cases. Now check whether nonexistent headers |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 4274 | # can be detected and how. |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 4275 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Jari Aalto | 0628567 | 2006-10-10 14:15:34 +0000 | [diff] [blame] | 4276 | /* end confdefs.h. */ |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 4277 | #include <ac_nonexistent.h> |
| 4278 | _ACEOF |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 4279 | if ac_fn_c_try_cpp "$LINENO"; then : |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 4280 | # Broken: success on invalid input. |
| 4281 | continue |
| 4282 | else |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 4283 | # Passes both tests. |
| 4284 | ac_preproc_ok=: |
| 4285 | break |
| 4286 | fi |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 4287 | rm -f conftest.err conftest.i conftest.$ac_ext |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 4288 | |
| 4289 | done |
| 4290 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 4291 | rm -f conftest.i conftest.err conftest.$ac_ext |
| 4292 | if $ac_preproc_ok; then : |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 4293 | break |
| 4294 | fi |
| 4295 | |
| 4296 | done |
| 4297 | ac_cv_prog_CPP=$CPP |
| 4298 | |
| 4299 | fi |
| 4300 | CPP=$ac_cv_prog_CPP |
| 4301 | else |
| 4302 | ac_cv_prog_CPP=$CPP |
| 4303 | fi |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 4304 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 4305 | $as_echo "$CPP" >&6; } |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 4306 | ac_preproc_ok=false |
| 4307 | for ac_c_preproc_warn_flag in '' yes |
| 4308 | do |
| 4309 | # Use a header file that comes with gcc, so configuring glibc |
| 4310 | # with a fresh cross-compiler works. |
Jari Aalto | 0628567 | 2006-10-10 14:15:34 +0000 | [diff] [blame] | 4311 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 4312 | # <limits.h> exists even on freestanding compilers. |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 4313 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 4314 | # not just through cpp. "Syntax error" is here to catch this case. |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 4315 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Jari Aalto | 0628567 | 2006-10-10 14:15:34 +0000 | [diff] [blame] | 4316 | /* end confdefs.h. */ |
| 4317 | #ifdef __STDC__ |
| 4318 | # include <limits.h> |
| 4319 | #else |
| 4320 | # include <assert.h> |
| 4321 | #endif |
| 4322 | Syntax error |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 4323 | _ACEOF |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 4324 | if ac_fn_c_try_cpp "$LINENO"; then : |
Jari Aalto | 0628567 | 2006-10-10 14:15:34 +0000 | [diff] [blame] | 4325 | |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 4326 | else |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 4327 | # Broken: fails on valid input. |
| 4328 | continue |
| 4329 | fi |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 4330 | rm -f conftest.err conftest.i conftest.$ac_ext |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 4331 | |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 4332 | # OK, works on sane cases. Now check whether nonexistent headers |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 4333 | # can be detected and how. |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 4334 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Jari Aalto | 0628567 | 2006-10-10 14:15:34 +0000 | [diff] [blame] | 4335 | /* end confdefs.h. */ |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 4336 | #include <ac_nonexistent.h> |
| 4337 | _ACEOF |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 4338 | if ac_fn_c_try_cpp "$LINENO"; then : |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 4339 | # Broken: success on invalid input. |
| 4340 | continue |
| 4341 | else |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 4342 | # Passes both tests. |
| 4343 | ac_preproc_ok=: |
| 4344 | break |
| 4345 | fi |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 4346 | rm -f conftest.err conftest.i conftest.$ac_ext |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 4347 | |
| 4348 | done |
| 4349 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 4350 | rm -f conftest.i conftest.err conftest.$ac_ext |
| 4351 | if $ac_preproc_ok; then : |
| 4352 | |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 4353 | else |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 4354 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 4355 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 4356 | as_fn_error $? "C preprocessor \"$CPP\" fails sanity check |
| 4357 | See \`config.log' for more details" "$LINENO" 5; } |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 4358 | fi |
| 4359 | |
| 4360 | ac_ext=c |
| 4361 | ac_cpp='$CPP $CPPFLAGS' |
| 4362 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 4363 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 4364 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 4365 | |
| 4366 | |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 4367 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 4368 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 4369 | if ${ac_cv_path_GREP+:} false; then : |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 4370 | $as_echo_n "(cached) " >&6 |
Jari Aalto | 0628567 | 2006-10-10 14:15:34 +0000 | [diff] [blame] | 4371 | else |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 4372 | if test -z "$GREP"; then |
| 4373 | ac_path_GREP_found=false |
| 4374 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 4375 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4376 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 4377 | do |
| 4378 | IFS=$as_save_IFS |
| 4379 | test -z "$as_dir" && as_dir=. |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 4380 | for ac_prog in grep ggrep; do |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 4381 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4382 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 4383 | as_fn_executable_p "$ac_path_GREP" || continue |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 4384 | # Check for GNU ac_path_GREP and select it if it is found. |
| 4385 | # Check for GNU $ac_path_GREP |
| 4386 | case `"$ac_path_GREP" --version 2>&1` in |
| 4387 | *GNU*) |
| 4388 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; |
| 4389 | *) |
| 4390 | ac_count=0 |
| 4391 | $as_echo_n 0123456789 >"conftest.in" |
| 4392 | while : |
| 4393 | do |
| 4394 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 4395 | mv "conftest.tmp" "conftest.in" |
| 4396 | cp "conftest.in" "conftest.nl" |
| 4397 | $as_echo 'GREP' >> "conftest.nl" |
| 4398 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 4399 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 4400 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 4401 | if test $ac_count -gt ${ac_path_GREP_max-0}; then |
| 4402 | # Best one so far, save it but keep looking for a better one |
| 4403 | ac_cv_path_GREP="$ac_path_GREP" |
| 4404 | ac_path_GREP_max=$ac_count |
Jari Aalto | 0628567 | 2006-10-10 14:15:34 +0000 | [diff] [blame] | 4405 | fi |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 4406 | # 10*(2^10) chars as input seems more than enough |
| 4407 | test $ac_count -gt 10 && break |
| 4408 | done |
| 4409 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 4410 | esac |
| 4411 | |
| 4412 | $ac_path_GREP_found && break 3 |
| 4413 | done |
| 4414 | done |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 4415 | done |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 4416 | IFS=$as_save_IFS |
| 4417 | if test -z "$ac_cv_path_GREP"; then |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 4418 | as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 4419 | fi |
| 4420 | else |
| 4421 | ac_cv_path_GREP=$GREP |
Jari Aalto | 0628567 | 2006-10-10 14:15:34 +0000 | [diff] [blame] | 4422 | fi |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 4423 | |
| 4424 | fi |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 4425 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 4426 | $as_echo "$ac_cv_path_GREP" >&6; } |
| 4427 | GREP="$ac_cv_path_GREP" |
Jari Aalto | 0628567 | 2006-10-10 14:15:34 +0000 | [diff] [blame] | 4428 | |
| 4429 | |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 4430 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 4431 | $as_echo_n "checking for egrep... " >&6; } |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 4432 | if ${ac_cv_path_EGREP+:} false; then : |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 4433 | $as_echo_n "(cached) " >&6 |
| 4434 | else |
| 4435 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
| 4436 | then ac_cv_path_EGREP="$GREP -E" |
| 4437 | else |
| 4438 | if test -z "$EGREP"; then |
| 4439 | ac_path_EGREP_found=false |
| 4440 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 4441 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4442 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 4443 | do |
| 4444 | IFS=$as_save_IFS |
| 4445 | test -z "$as_dir" && as_dir=. |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 4446 | for ac_prog in egrep; do |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 4447 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4448 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 4449 | as_fn_executable_p "$ac_path_EGREP" || continue |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 4450 | # Check for GNU ac_path_EGREP and select it if it is found. |
| 4451 | # Check for GNU $ac_path_EGREP |
| 4452 | case `"$ac_path_EGREP" --version 2>&1` in |
| 4453 | *GNU*) |
| 4454 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; |
| 4455 | *) |
| 4456 | ac_count=0 |
| 4457 | $as_echo_n 0123456789 >"conftest.in" |
| 4458 | while : |
| 4459 | do |
| 4460 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 4461 | mv "conftest.tmp" "conftest.in" |
| 4462 | cp "conftest.in" "conftest.nl" |
| 4463 | $as_echo 'EGREP' >> "conftest.nl" |
| 4464 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 4465 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 4466 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 4467 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then |
| 4468 | # Best one so far, save it but keep looking for a better one |
| 4469 | ac_cv_path_EGREP="$ac_path_EGREP" |
| 4470 | ac_path_EGREP_max=$ac_count |
| 4471 | fi |
| 4472 | # 10*(2^10) chars as input seems more than enough |
| 4473 | test $ac_count -gt 10 && break |
| 4474 | done |
| 4475 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 4476 | esac |
| 4477 | |
| 4478 | $ac_path_EGREP_found && break 3 |
| 4479 | done |
| 4480 | done |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 4481 | done |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 4482 | IFS=$as_save_IFS |
| 4483 | if test -z "$ac_cv_path_EGREP"; then |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 4484 | as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 4485 | fi |
| 4486 | else |
| 4487 | ac_cv_path_EGREP=$EGREP |
| 4488 | fi |
| 4489 | |
| 4490 | fi |
| 4491 | fi |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 4492 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 4493 | $as_echo "$ac_cv_path_EGREP" >&6; } |
| 4494 | EGREP="$ac_cv_path_EGREP" |
| 4495 | |
| 4496 | |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 4497 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 4498 | $as_echo_n "checking for ANSI C header files... " >&6; } |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 4499 | if ${ac_cv_header_stdc+:} false; then : |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 4500 | $as_echo_n "(cached) " >&6 |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 4501 | else |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 4502 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Jari Aalto | 0628567 | 2006-10-10 14:15:34 +0000 | [diff] [blame] | 4503 | /* end confdefs.h. */ |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 4504 | #include <stdlib.h> |
| 4505 | #include <stdarg.h> |
| 4506 | #include <string.h> |
| 4507 | #include <float.h> |
| 4508 | |
Jari Aalto | 0628567 | 2006-10-10 14:15:34 +0000 | [diff] [blame] | 4509 | int |
| 4510 | main () |
| 4511 | { |
| 4512 | |
| 4513 | ; |
| 4514 | return 0; |
| 4515 | } |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 4516 | _ACEOF |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 4517 | if ac_fn_c_try_compile "$LINENO"; then : |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 4518 | ac_cv_header_stdc=yes |
| 4519 | else |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 4520 | ac_cv_header_stdc=no |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 4521 | fi |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 4522 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 4523 | |
| 4524 | if test $ac_cv_header_stdc = yes; then |
| 4525 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 4526 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Jari Aalto | 0628567 | 2006-10-10 14:15:34 +0000 | [diff] [blame] | 4527 | /* end confdefs.h. */ |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 4528 | #include <string.h> |
| 4529 | |
| 4530 | _ACEOF |
| 4531 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 4532 | $EGREP "memchr" >/dev/null 2>&1; then : |
| 4533 | |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 4534 | else |
| 4535 | ac_cv_header_stdc=no |
| 4536 | fi |
| 4537 | rm -f conftest* |
| 4538 | |
| 4539 | fi |
| 4540 | |
| 4541 | if test $ac_cv_header_stdc = yes; then |
| 4542 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 4543 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Jari Aalto | 0628567 | 2006-10-10 14:15:34 +0000 | [diff] [blame] | 4544 | /* end confdefs.h. */ |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 4545 | #include <stdlib.h> |
| 4546 | |
| 4547 | _ACEOF |
| 4548 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 4549 | $EGREP "free" >/dev/null 2>&1; then : |
| 4550 | |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 4551 | else |
| 4552 | ac_cv_header_stdc=no |
| 4553 | fi |
| 4554 | rm -f conftest* |
| 4555 | |
| 4556 | fi |
| 4557 | |
| 4558 | if test $ac_cv_header_stdc = yes; then |
| 4559 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 4560 | if test "$cross_compiling" = yes; then : |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 4561 | : |
| 4562 | else |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 4563 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Jari Aalto | 0628567 | 2006-10-10 14:15:34 +0000 | [diff] [blame] | 4564 | /* end confdefs.h. */ |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 4565 | #include <ctype.h> |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 4566 | #include <stdlib.h> |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 4567 | #if ((' ' & 0x0FF) == 0x020) |
| 4568 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 4569 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 4570 | #else |
Jari Aalto | 0628567 | 2006-10-10 14:15:34 +0000 | [diff] [blame] | 4571 | # define ISLOWER(c) \ |
| 4572 | (('a' <= (c) && (c) <= 'i') \ |
| 4573 | || ('j' <= (c) && (c) <= 'r') \ |
| 4574 | || ('s' <= (c) && (c) <= 'z')) |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 4575 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 4576 | #endif |
| 4577 | |
| 4578 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 4579 | int |
| 4580 | main () |
| 4581 | { |
| 4582 | int i; |
| 4583 | for (i = 0; i < 256; i++) |
| 4584 | if (XOR (islower (i), ISLOWER (i)) |
Jari Aalto | 0628567 | 2006-10-10 14:15:34 +0000 | [diff] [blame] | 4585 | || toupper (i) != TOUPPER (i)) |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 4586 | return 2; |
| 4587 | return 0; |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 4588 | } |
| 4589 | _ACEOF |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 4590 | if ac_fn_c_try_run "$LINENO"; then : |
| 4591 | |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 4592 | else |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 4593 | ac_cv_header_stdc=no |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 4594 | fi |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 4595 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 4596 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 4597 | fi |
| 4598 | |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 4599 | fi |
| 4600 | fi |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 4601 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 4602 | $as_echo "$ac_cv_header_stdc" >&6; } |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 4603 | if test $ac_cv_header_stdc = yes; then |
| 4604 | |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 4605 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 4606 | |
| 4607 | fi |
| 4608 | |
| 4609 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 4610 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
Jari Aalto | 0628567 | 2006-10-10 14:15:34 +0000 | [diff] [blame] | 4611 | inttypes.h stdint.h unistd.h |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 4612 | do : |
| 4613 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 4614 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default |
| 4615 | " |
| 4616 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 4617 | cat >>confdefs.h <<_ACEOF |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 4618 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 4619 | _ACEOF |
| 4620 | |
| 4621 | fi |
| 4622 | |
| 4623 | done |
| 4624 | |
| 4625 | |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 4626 | |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 4627 | ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" |
| 4628 | if test "x$ac_cv_header_minix_config_h" = xyes; then : |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 4629 | MINIX=yes |
| 4630 | else |
| 4631 | MINIX= |
| 4632 | fi |
| 4633 | |
| 4634 | |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 4635 | if test "$MINIX" = yes; then |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 4636 | |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 4637 | $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 4638 | |
| 4639 | |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 4640 | $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 4641 | |
| 4642 | |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 4643 | $as_echo "#define _MINIX 1" >>confdefs.h |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 4644 | |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 4645 | fi |
| 4646 | |
| 4647 | |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 4648 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 4649 | $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 4650 | if ${ac_cv_safe_to_define___extensions__+:} false; then : |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 4651 | $as_echo_n "(cached) " >&6 |
| 4652 | else |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 4653 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 4654 | /* end confdefs.h. */ |
| 4655 | |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 4656 | # define __EXTENSIONS__ 1 |
| 4657 | $ac_includes_default |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 4658 | int |
| 4659 | main () |
| 4660 | { |
| 4661 | |
| 4662 | ; |
| 4663 | return 0; |
| 4664 | } |
| 4665 | _ACEOF |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 4666 | if ac_fn_c_try_compile "$LINENO"; then : |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 4667 | ac_cv_safe_to_define___extensions__=yes |
| 4668 | else |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 4669 | ac_cv_safe_to_define___extensions__=no |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 4670 | fi |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 4671 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4672 | fi |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 4673 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 4674 | $as_echo "$ac_cv_safe_to_define___extensions__" >&6; } |
| 4675 | test $ac_cv_safe_to_define___extensions__ = yes && |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 4676 | $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 4677 | |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 4678 | $as_echo "#define _ALL_SOURCE 1" >>confdefs.h |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 4679 | |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 4680 | $as_echo "#define _GNU_SOURCE 1" >>confdefs.h |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 4681 | |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 4682 | $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 4683 | |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 4684 | $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h |
| 4685 | |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 4686 | |
| 4687 | |
| 4688 | |
| 4689 | # Check whether --enable-largefile was given. |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 4690 | if test "${enable_largefile+set}" = set; then : |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 4691 | enableval=$enable_largefile; |
| 4692 | fi |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 4693 | |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 4694 | if test "$enable_largefile" != no; then |
| 4695 | |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 4696 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 4697 | $as_echo_n "checking for special C compiler options needed for large files... " >&6; } |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 4698 | if ${ac_cv_sys_largefile_CC+:} false; then : |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 4699 | $as_echo_n "(cached) " >&6 |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 4700 | else |
| 4701 | ac_cv_sys_largefile_CC=no |
| 4702 | if test "$GCC" != yes; then |
| 4703 | ac_save_CC=$CC |
| 4704 | while :; do |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 4705 | # IRIX 6.2 and later do not support large files by default, |
| 4706 | # so use the C compiler's -n32 option if that helps. |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 4707 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Jari Aalto | 0628567 | 2006-10-10 14:15:34 +0000 | [diff] [blame] | 4708 | /* end confdefs.h. */ |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 4709 | #include <sys/types.h> |
| 4710 | /* Check that off_t can represent 2**63 - 1 correctly. |
| 4711 | We can't simply define LARGE_OFF_T to be 9223372036854775807, |
| 4712 | since some C++ compilers masquerading as C compilers |
| 4713 | incorrectly reject 9223372036854775807. */ |
| 4714 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) |
| 4715 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 |
| 4716 | && LARGE_OFF_T % 2147483647 == 1) |
| 4717 | ? 1 : -1]; |
| 4718 | int |
| 4719 | main () |
| 4720 | { |
| 4721 | |
| 4722 | ; |
| 4723 | return 0; |
| 4724 | } |
| 4725 | _ACEOF |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 4726 | if ac_fn_c_try_compile "$LINENO"; then : |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 4727 | break |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 4728 | fi |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 4729 | rm -f core conftest.err conftest.$ac_objext |
| 4730 | CC="$CC -n32" |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 4731 | if ac_fn_c_try_compile "$LINENO"; then : |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 4732 | ac_cv_sys_largefile_CC=' -n32'; break |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 4733 | fi |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 4734 | rm -f core conftest.err conftest.$ac_objext |
Jari Aalto | 0628567 | 2006-10-10 14:15:34 +0000 | [diff] [blame] | 4735 | break |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 4736 | done |
| 4737 | CC=$ac_save_CC |
| 4738 | rm -f conftest.$ac_ext |
| 4739 | fi |
| 4740 | fi |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 4741 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 4742 | $as_echo "$ac_cv_sys_largefile_CC" >&6; } |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 4743 | if test "$ac_cv_sys_largefile_CC" != no; then |
| 4744 | CC=$CC$ac_cv_sys_largefile_CC |
| 4745 | fi |
| 4746 | |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 4747 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 4748 | $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; } |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 4749 | if ${ac_cv_sys_file_offset_bits+:} false; then : |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 4750 | $as_echo_n "(cached) " >&6 |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 4751 | else |
| 4752 | while :; do |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 4753 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Jari Aalto | 0628567 | 2006-10-10 14:15:34 +0000 | [diff] [blame] | 4754 | /* end confdefs.h. */ |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 4755 | #include <sys/types.h> |
| 4756 | /* Check that off_t can represent 2**63 - 1 correctly. |
| 4757 | We can't simply define LARGE_OFF_T to be 9223372036854775807, |
| 4758 | since some C++ compilers masquerading as C compilers |
| 4759 | incorrectly reject 9223372036854775807. */ |
| 4760 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) |
| 4761 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 |
| 4762 | && LARGE_OFF_T % 2147483647 == 1) |
| 4763 | ? 1 : -1]; |
| 4764 | int |
| 4765 | main () |
| 4766 | { |
| 4767 | |
| 4768 | ; |
| 4769 | return 0; |
| 4770 | } |
| 4771 | _ACEOF |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 4772 | if ac_fn_c_try_compile "$LINENO"; then : |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 4773 | ac_cv_sys_file_offset_bits=no; break |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 4774 | fi |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 4775 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 4776 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Jari Aalto | 0628567 | 2006-10-10 14:15:34 +0000 | [diff] [blame] | 4777 | /* end confdefs.h. */ |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 4778 | #define _FILE_OFFSET_BITS 64 |
| 4779 | #include <sys/types.h> |
| 4780 | /* Check that off_t can represent 2**63 - 1 correctly. |
| 4781 | We can't simply define LARGE_OFF_T to be 9223372036854775807, |
| 4782 | since some C++ compilers masquerading as C compilers |
| 4783 | incorrectly reject 9223372036854775807. */ |
| 4784 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) |
| 4785 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 |
| 4786 | && LARGE_OFF_T % 2147483647 == 1) |
| 4787 | ? 1 : -1]; |
| 4788 | int |
| 4789 | main () |
| 4790 | { |
| 4791 | |
| 4792 | ; |
| 4793 | return 0; |
| 4794 | } |
| 4795 | _ACEOF |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 4796 | if ac_fn_c_try_compile "$LINENO"; then : |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 4797 | ac_cv_sys_file_offset_bits=64; break |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 4798 | fi |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 4799 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4800 | ac_cv_sys_file_offset_bits=unknown |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 4801 | break |
| 4802 | done |
| 4803 | fi |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 4804 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 4805 | $as_echo "$ac_cv_sys_file_offset_bits" >&6; } |
| 4806 | case $ac_cv_sys_file_offset_bits in #( |
| 4807 | no | unknown) ;; |
| 4808 | *) |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 4809 | cat >>confdefs.h <<_ACEOF |
| 4810 | #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits |
| 4811 | _ACEOF |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 4812 | ;; |
| 4813 | esac |
| 4814 | rm -rf conftest* |
| 4815 | if test $ac_cv_sys_file_offset_bits = unknown; then |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 4816 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 4817 | $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; } |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 4818 | if ${ac_cv_sys_large_files+:} false; then : |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 4819 | $as_echo_n "(cached) " >&6 |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 4820 | else |
| 4821 | while :; do |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 4822 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Jari Aalto | 0628567 | 2006-10-10 14:15:34 +0000 | [diff] [blame] | 4823 | /* end confdefs.h. */ |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 4824 | #include <sys/types.h> |
| 4825 | /* Check that off_t can represent 2**63 - 1 correctly. |
| 4826 | We can't simply define LARGE_OFF_T to be 9223372036854775807, |
| 4827 | since some C++ compilers masquerading as C compilers |
| 4828 | incorrectly reject 9223372036854775807. */ |
| 4829 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) |
| 4830 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 |
| 4831 | && LARGE_OFF_T % 2147483647 == 1) |
| 4832 | ? 1 : -1]; |
| 4833 | int |
| 4834 | main () |
| 4835 | { |
| 4836 | |
| 4837 | ; |
| 4838 | return 0; |
| 4839 | } |
| 4840 | _ACEOF |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 4841 | if ac_fn_c_try_compile "$LINENO"; then : |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 4842 | ac_cv_sys_large_files=no; break |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 4843 | fi |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 4844 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 4845 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Jari Aalto | 0628567 | 2006-10-10 14:15:34 +0000 | [diff] [blame] | 4846 | /* end confdefs.h. */ |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 4847 | #define _LARGE_FILES 1 |
| 4848 | #include <sys/types.h> |
| 4849 | /* Check that off_t can represent 2**63 - 1 correctly. |
| 4850 | We can't simply define LARGE_OFF_T to be 9223372036854775807, |
| 4851 | since some C++ compilers masquerading as C compilers |
| 4852 | incorrectly reject 9223372036854775807. */ |
| 4853 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) |
| 4854 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 |
| 4855 | && LARGE_OFF_T % 2147483647 == 1) |
| 4856 | ? 1 : -1]; |
| 4857 | int |
| 4858 | main () |
| 4859 | { |
| 4860 | |
| 4861 | ; |
| 4862 | return 0; |
| 4863 | } |
| 4864 | _ACEOF |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 4865 | if ac_fn_c_try_compile "$LINENO"; then : |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 4866 | ac_cv_sys_large_files=1; break |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 4867 | fi |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 4868 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4869 | ac_cv_sys_large_files=unknown |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 4870 | break |
| 4871 | done |
| 4872 | fi |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 4873 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 4874 | $as_echo "$ac_cv_sys_large_files" >&6; } |
| 4875 | case $ac_cv_sys_large_files in #( |
| 4876 | no | unknown) ;; |
| 4877 | *) |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 4878 | cat >>confdefs.h <<_ACEOF |
| 4879 | #define _LARGE_FILES $ac_cv_sys_large_files |
| 4880 | _ACEOF |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 4881 | ;; |
| 4882 | esac |
| 4883 | rm -rf conftest* |
| 4884 | fi |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 4885 | |
| 4886 | |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 4887 | fi |
| 4888 | |
| 4889 | |
| 4890 | |
Jari Aalto | 0628567 | 2006-10-10 14:15:34 +0000 | [diff] [blame] | 4891 | SIGNAMES_O= |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 4892 | SIGNAMES_H=lsignames.h |
| 4893 | |
| 4894 | |
| 4895 | |
Jari Aalto | 0628567 | 2006-10-10 14:15:34 +0000 | [diff] [blame] | 4896 | CROSS_COMPILE= |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 4897 | if test "x$cross_compiling" = "xyes"; then |
| 4898 | case "${host}" in |
| 4899 | *-cygwin*) |
| 4900 | cross_cache=${srcdir}/cross-build/cygwin32.cache |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 4901 | ;; |
Jari Aalto | 95732b4 | 2005-12-07 14:08:12 +0000 | [diff] [blame] | 4902 | *-mingw*) |
| 4903 | cross_cache=${srcdir}/cross-build/cygwin32.cache |
| 4904 | ;; |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 4905 | i[3456]86-*-beos*) |
| 4906 | cross_cache=${srcdir}/cross-build/x86-beos.cache |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 4907 | ;; |
| 4908 | *) echo "configure: cross-compiling for $host is not supported" >&2 |
| 4909 | ;; |
| 4910 | esac |
| 4911 | if test -n "${cross_cache}" && test -r "${cross_cache}"; then |
| 4912 | echo "loading cross-build cache file ${cross_cache}" |
| 4913 | . ${cross_cache} |
| 4914 | fi |
| 4915 | unset cross_cache |
Jari Aalto | 0628567 | 2006-10-10 14:15:34 +0000 | [diff] [blame] | 4916 | SIGNAMES_O='signames.o' |
Jari Aalto | 95732b4 | 2005-12-07 14:08:12 +0000 | [diff] [blame] | 4917 | CROSS_COMPILE='-DCROSS_COMPILING' |
| 4918 | |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 4919 | fi |
| 4920 | |
| 4921 | |
Jari Aalto | 0628567 | 2006-10-10 14:15:34 +0000 | [diff] [blame] | 4922 | |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 4923 | |
| 4924 | if test -z "$CFLAGS"; then |
| 4925 | AUTO_CFLAGS="-g ${GCC+-O2}" |
| 4926 | AUTO_LDFLAGS="-g ${GCC+-O2}" |
| 4927 | else |
| 4928 | AUTO_CFLAGS= AUTO_LDFLAGS= |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 4929 | fi |
| 4930 | |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 4931 | CFLAGS=${CFLAGS-"$AUTO_CFLAGS"} |
| 4932 | # LDFLAGS=${LDFLAGS="$AUTO_LDFLAGS"} # XXX |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 4933 | |
| 4934 | if test "$opt_profiling" = "yes"; then |
| 4935 | PROFILE_FLAGS=-pg |
| 4936 | case "$host_os" in |
| 4937 | solaris2*) ;; |
| 4938 | *) opt_static_link=yes ;; |
| 4939 | esac |
| 4940 | DEBUG= MALLOC_DEBUG= |
| 4941 | fi |
| 4942 | |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 4943 | prefer_shared=yes |
| 4944 | prefer_static=no |
| 4945 | |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 4946 | if test "$opt_static_link" = yes; then |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 4947 | prefer_static=yes |
| 4948 | prefer_shared=no |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 4949 | # if we're using gcc, add `-static' to LDFLAGS, except on Solaris >= 2 |
| 4950 | if test -n "$GCC" || test "$ac_cv_c_compiler_gnu" = "yes"; then |
| 4951 | STATIC_LD="-static" |
| 4952 | case "$host_os" in |
| 4953 | solaris2*) ;; |
| 4954 | *) LDFLAGS="$LDFLAGS -static" ;; # XXX experimental |
| 4955 | esac |
| 4956 | fi |
| 4957 | fi |
| 4958 | |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 4959 | # set the appropriate make variables for building the "build tools" |
| 4960 | # modify defaults based on whether or not we are cross compiling, since the |
| 4961 | # options for the target host may not be appropriate for the build host |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 4962 | if test "X$cross_compiling" = "Xno"; then |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 4963 | CC_FOR_BUILD=${CC_FOR_BUILD-'$(CC)'} |
| 4964 | CPPFLAGS_FOR_BUILD=${CPPFLAGS_FOR_BUILD-"$CPPFLAGS"} # XXX - should it be '$(CPPFLAGS)' |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 4965 | LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-'$(LDFLAGS)'} |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 4966 | # CFLAGS set above to default value if not passed in environment |
| 4967 | CFLAGS_FOR_BUILD=${CFLAGS-'$(CFLAGS)'} |
| 4968 | LIBS_FOR_BUILD=${LIBS_FOR_BUILD-'$(LIBS)'} |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 4969 | else |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 4970 | CC_FOR_BUILD=${CC_FOR_BUILD-"gcc"} |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 4971 | CPPFLAGS_FOR_BUILD=${CPPFLAGS_FOR_BUILD-""} |
| 4972 | LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-""} |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 4973 | CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD="-g"} |
| 4974 | LIBS_FOR_BUILD=${LIBS_FOR_BUILD-""} |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 4975 | fi |
| 4976 | |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 4977 | |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 4978 | |
| 4979 | |
| 4980 | |
| 4981 | |
| 4982 | |
| 4983 | |
| 4984 | |
| 4985 | |
| 4986 | |
| 4987 | |
| 4988 | if test $ac_cv_c_compiler_gnu = yes; then |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 4989 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 4990 | $as_echo_n "checking whether $CC needs -traditional... " >&6; } |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 4991 | if ${ac_cv_prog_gcc_traditional+:} false; then : |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 4992 | $as_echo_n "(cached) " >&6 |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 4993 | else |
| 4994 | ac_pattern="Autoconf.*'x'" |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 4995 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Jari Aalto | 0628567 | 2006-10-10 14:15:34 +0000 | [diff] [blame] | 4996 | /* end confdefs.h. */ |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 4997 | #include <sgtty.h> |
| 4998 | Autoconf TIOCGETP |
| 4999 | _ACEOF |
| 5000 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 5001 | $EGREP "$ac_pattern" >/dev/null 2>&1; then : |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 5002 | ac_cv_prog_gcc_traditional=yes |
| 5003 | else |
| 5004 | ac_cv_prog_gcc_traditional=no |
| 5005 | fi |
| 5006 | rm -f conftest* |
| 5007 | |
| 5008 | |
| 5009 | if test $ac_cv_prog_gcc_traditional = no; then |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 5010 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Jari Aalto | 0628567 | 2006-10-10 14:15:34 +0000 | [diff] [blame] | 5011 | /* end confdefs.h. */ |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 5012 | #include <termio.h> |
| 5013 | Autoconf TCGETA |
| 5014 | _ACEOF |
| 5015 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 5016 | $EGREP "$ac_pattern" >/dev/null 2>&1; then : |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 5017 | ac_cv_prog_gcc_traditional=yes |
| 5018 | fi |
| 5019 | rm -f conftest* |
| 5020 | |
| 5021 | fi |
| 5022 | fi |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 5023 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 5024 | $as_echo "$ac_cv_prog_gcc_traditional" >&6; } |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 5025 | if test $ac_cv_prog_gcc_traditional = yes; then |
| 5026 | CC="$CC -traditional" |
| 5027 | fi |
| 5028 | fi |
| 5029 | |
| 5030 | |
| 5031 | |
| 5032 | if test "$opt_readline" = yes && test "$opt_with_installed_readline" != "no" |
| 5033 | then |
| 5034 | # If the user specified --with-installed-readline=PREFIX and PREFIX |
| 5035 | # is not `yes', set ac_cv_rl_prefix to PREFIX |
| 5036 | test $opt_with_installed_readline != "yes" && ac_cv_rl_prefix=$opt_with_installed_readline |
| 5037 | |
| 5038 | |
| 5039 | if test "X$bash_cv_termcap_lib" = "X"; then |
| 5040 | _bash_needmsg=yes |
| 5041 | else |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 5042 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking which library has the termcap functions" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 5043 | $as_echo_n "checking which library has the termcap functions... " >&6; } |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 5044 | _bash_needmsg= |
| 5045 | fi |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 5046 | if ${bash_cv_termcap_lib+:} false; then : |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 5047 | $as_echo_n "(cached) " >&6 |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 5048 | else |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 5049 | ac_fn_c_check_func "$LINENO" "tgetent" "ac_cv_func_tgetent" |
| 5050 | if test "x$ac_cv_func_tgetent" = xyes; then : |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 5051 | bash_cv_termcap_lib=libc |
| 5052 | else |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 5053 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -ltermcap" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 5054 | $as_echo_n "checking for tgetent in -ltermcap... " >&6; } |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 5055 | if ${ac_cv_lib_termcap_tgetent+:} false; then : |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 5056 | $as_echo_n "(cached) " >&6 |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 5057 | else |
| 5058 | ac_check_lib_save_LIBS=$LIBS |
| 5059 | LIBS="-ltermcap $LIBS" |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 5060 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Jari Aalto | 0628567 | 2006-10-10 14:15:34 +0000 | [diff] [blame] | 5061 | /* end confdefs.h. */ |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 5062 | |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 5063 | /* Override any GCC internal prototype to avoid an error. |
| 5064 | Use char because int might match the return type of a GCC |
| 5065 | builtin and then its argument prototype would still apply. */ |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 5066 | #ifdef __cplusplus |
| 5067 | extern "C" |
| 5068 | #endif |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 5069 | char tgetent (); |
| 5070 | int |
| 5071 | main () |
| 5072 | { |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 5073 | return tgetent (); |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 5074 | ; |
| 5075 | return 0; |
| 5076 | } |
| 5077 | _ACEOF |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 5078 | if ac_fn_c_try_link "$LINENO"; then : |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 5079 | ac_cv_lib_termcap_tgetent=yes |
| 5080 | else |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 5081 | ac_cv_lib_termcap_tgetent=no |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 5082 | fi |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 5083 | rm -f core conftest.err conftest.$ac_objext \ |
| 5084 | conftest$ac_exeext conftest.$ac_ext |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 5085 | LIBS=$ac_check_lib_save_LIBS |
| 5086 | fi |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 5087 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_termcap_tgetent" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 5088 | $as_echo "$ac_cv_lib_termcap_tgetent" >&6; } |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 5089 | if test "x$ac_cv_lib_termcap_tgetent" = xyes; then : |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 5090 | bash_cv_termcap_lib=libtermcap |
| 5091 | else |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 5092 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -ltinfo" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 5093 | $as_echo_n "checking for tgetent in -ltinfo... " >&6; } |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 5094 | if ${ac_cv_lib_tinfo_tgetent+:} false; then : |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 5095 | $as_echo_n "(cached) " >&6 |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 5096 | else |
| 5097 | ac_check_lib_save_LIBS=$LIBS |
| 5098 | LIBS="-ltinfo $LIBS" |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 5099 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Jari Aalto | 0628567 | 2006-10-10 14:15:34 +0000 | [diff] [blame] | 5100 | /* end confdefs.h. */ |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 5101 | |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 5102 | /* Override any GCC internal prototype to avoid an error. |
| 5103 | Use char because int might match the return type of a GCC |
| 5104 | builtin and then its argument prototype would still apply. */ |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 5105 | #ifdef __cplusplus |
| 5106 | extern "C" |
| 5107 | #endif |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 5108 | char tgetent (); |
| 5109 | int |
| 5110 | main () |
| 5111 | { |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 5112 | return tgetent (); |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 5113 | ; |
| 5114 | return 0; |
| 5115 | } |
| 5116 | _ACEOF |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 5117 | if ac_fn_c_try_link "$LINENO"; then : |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 5118 | ac_cv_lib_tinfo_tgetent=yes |
| 5119 | else |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 5120 | ac_cv_lib_tinfo_tgetent=no |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 5121 | fi |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 5122 | rm -f core conftest.err conftest.$ac_objext \ |
| 5123 | conftest$ac_exeext conftest.$ac_ext |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 5124 | LIBS=$ac_check_lib_save_LIBS |
| 5125 | fi |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 5126 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tinfo_tgetent" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 5127 | $as_echo "$ac_cv_lib_tinfo_tgetent" >&6; } |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 5128 | if test "x$ac_cv_lib_tinfo_tgetent" = xyes; then : |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 5129 | bash_cv_termcap_lib=libtinfo |
| 5130 | else |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 5131 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -lcurses" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 5132 | $as_echo_n "checking for tgetent in -lcurses... " >&6; } |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 5133 | if ${ac_cv_lib_curses_tgetent+:} false; then : |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 5134 | $as_echo_n "(cached) " >&6 |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 5135 | else |
| 5136 | ac_check_lib_save_LIBS=$LIBS |
| 5137 | LIBS="-lcurses $LIBS" |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 5138 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Jari Aalto | 0628567 | 2006-10-10 14:15:34 +0000 | [diff] [blame] | 5139 | /* end confdefs.h. */ |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 5140 | |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 5141 | /* Override any GCC internal prototype to avoid an error. |
| 5142 | Use char because int might match the return type of a GCC |
| 5143 | builtin and then its argument prototype would still apply. */ |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 5144 | #ifdef __cplusplus |
| 5145 | extern "C" |
| 5146 | #endif |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 5147 | char tgetent (); |
| 5148 | int |
| 5149 | main () |
| 5150 | { |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 5151 | return tgetent (); |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 5152 | ; |
| 5153 | return 0; |
| 5154 | } |
| 5155 | _ACEOF |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 5156 | if ac_fn_c_try_link "$LINENO"; then : |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 5157 | ac_cv_lib_curses_tgetent=yes |
| 5158 | else |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 5159 | ac_cv_lib_curses_tgetent=no |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 5160 | fi |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 5161 | rm -f core conftest.err conftest.$ac_objext \ |
| 5162 | conftest$ac_exeext conftest.$ac_ext |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 5163 | LIBS=$ac_check_lib_save_LIBS |
| 5164 | fi |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 5165 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curses_tgetent" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 5166 | $as_echo "$ac_cv_lib_curses_tgetent" >&6; } |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 5167 | if test "x$ac_cv_lib_curses_tgetent" = xyes; then : |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 5168 | bash_cv_termcap_lib=libcurses |
| 5169 | else |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 5170 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -lncurses" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 5171 | $as_echo_n "checking for tgetent in -lncurses... " >&6; } |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 5172 | if ${ac_cv_lib_ncurses_tgetent+:} false; then : |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 5173 | $as_echo_n "(cached) " >&6 |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 5174 | else |
| 5175 | ac_check_lib_save_LIBS=$LIBS |
| 5176 | LIBS="-lncurses $LIBS" |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 5177 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Jari Aalto | 0628567 | 2006-10-10 14:15:34 +0000 | [diff] [blame] | 5178 | /* end confdefs.h. */ |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 5179 | |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 5180 | /* Override any GCC internal prototype to avoid an error. |
| 5181 | Use char because int might match the return type of a GCC |
| 5182 | builtin and then its argument prototype would still apply. */ |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 5183 | #ifdef __cplusplus |
| 5184 | extern "C" |
| 5185 | #endif |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 5186 | char tgetent (); |
| 5187 | int |
| 5188 | main () |
| 5189 | { |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 5190 | return tgetent (); |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 5191 | ; |
| 5192 | return 0; |
| 5193 | } |
| 5194 | _ACEOF |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 5195 | if ac_fn_c_try_link "$LINENO"; then : |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 5196 | ac_cv_lib_ncurses_tgetent=yes |
| 5197 | else |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 5198 | ac_cv_lib_ncurses_tgetent=no |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 5199 | fi |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 5200 | rm -f core conftest.err conftest.$ac_objext \ |
| 5201 | conftest$ac_exeext conftest.$ac_ext |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 5202 | LIBS=$ac_check_lib_save_LIBS |
| 5203 | fi |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 5204 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncurses_tgetent" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 5205 | $as_echo "$ac_cv_lib_ncurses_tgetent" >&6; } |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 5206 | if test "x$ac_cv_lib_ncurses_tgetent" = xyes; then : |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 5207 | bash_cv_termcap_lib=libncurses |
| 5208 | else |
| 5209 | bash_cv_termcap_lib=gnutermcap |
| 5210 | fi |
| 5211 | |
| 5212 | fi |
| 5213 | |
| 5214 | fi |
| 5215 | |
| 5216 | fi |
| 5217 | |
| 5218 | fi |
| 5219 | |
| 5220 | fi |
| 5221 | |
| 5222 | if test "X$_bash_needmsg" = "Xyes"; then |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 5223 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking which library has the termcap functions" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 5224 | $as_echo_n "checking which library has the termcap functions... " >&6; } |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 5225 | fi |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 5226 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $bash_cv_termcap_lib" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 5227 | $as_echo "using $bash_cv_termcap_lib" >&6; } |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 5228 | if test $bash_cv_termcap_lib = gnutermcap && test -z "$prefer_curses"; then |
| 5229 | LDFLAGS="$LDFLAGS -L./lib/termcap" |
| 5230 | TERMCAP_LIB="./lib/termcap/libtermcap.a" |
| 5231 | TERMCAP_DEP="./lib/termcap/libtermcap.a" |
| 5232 | elif test $bash_cv_termcap_lib = libtermcap && test -z "$prefer_curses"; then |
| 5233 | TERMCAP_LIB=-ltermcap |
| 5234 | TERMCAP_DEP= |
| 5235 | elif test $bash_cv_termcap_lib = libtinfo; then |
| 5236 | TERMCAP_LIB=-ltinfo |
| 5237 | TERMCAP_DEP= |
| 5238 | elif test $bash_cv_termcap_lib = libncurses; then |
| 5239 | TERMCAP_LIB=-lncurses |
| 5240 | TERMCAP_DEP= |
| 5241 | elif test $bash_cv_termcap_lib = libc; then |
| 5242 | TERMCAP_LIB= |
| 5243 | TERMCAP_DEP= |
| 5244 | else |
| 5245 | TERMCAP_LIB=-lcurses |
| 5246 | TERMCAP_DEP= |
| 5247 | fi |
| 5248 | |
| 5249 | |
| 5250 | |
| 5251 | |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 5252 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of installed readline library" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 5253 | $as_echo_n "checking version of installed readline library... " >&6; } |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 5254 | |
| 5255 | # What a pain in the ass this is. |
| 5256 | |
| 5257 | # save cpp and ld options |
| 5258 | _save_CFLAGS="$CFLAGS" |
| 5259 | _save_LDFLAGS="$LDFLAGS" |
| 5260 | _save_LIBS="$LIBS" |
| 5261 | |
| 5262 | # Don't set ac_cv_rl_prefix if the caller has already assigned a value. This |
| 5263 | # allows the caller to do something like $_rl_prefix=$withval if the user |
| 5264 | # specifies --with-installed-readline=PREFIX as an argument to configure |
| 5265 | |
| 5266 | if test -z "$ac_cv_rl_prefix"; then |
| 5267 | test "x$prefix" = xNONE && ac_cv_rl_prefix=$ac_default_prefix || ac_cv_rl_prefix=${prefix} |
| 5268 | fi |
| 5269 | |
| 5270 | eval ac_cv_rl_includedir=${ac_cv_rl_prefix}/include |
| 5271 | eval ac_cv_rl_libdir=${ac_cv_rl_prefix}/lib |
| 5272 | |
| 5273 | LIBS="$LIBS -lreadline ${TERMCAP_LIB}" |
| 5274 | CFLAGS="$CFLAGS -I${ac_cv_rl_includedir}" |
| 5275 | LDFLAGS="$LDFLAGS -L${ac_cv_rl_libdir}" |
| 5276 | |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 5277 | if ${ac_cv_rl_version+:} false; then : |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 5278 | $as_echo_n "(cached) " >&6 |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 5279 | else |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 5280 | if test "$cross_compiling" = yes; then : |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 5281 | ac_cv_rl_version='4.2' |
| 5282 | else |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 5283 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Jari Aalto | 0628567 | 2006-10-10 14:15:34 +0000 | [diff] [blame] | 5284 | /* end confdefs.h. */ |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 5285 | |
| 5286 | #include <stdio.h> |
| 5287 | #include <readline/readline.h> |
| 5288 | |
Jari Aalto | 95732b4 | 2005-12-07 14:08:12 +0000 | [diff] [blame] | 5289 | extern int rl_gnu_readline_p; |
| 5290 | |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 5291 | main() |
| 5292 | { |
| 5293 | FILE *fp; |
| 5294 | fp = fopen("conftest.rlv", "w"); |
Jari Aalto | 95732b4 | 2005-12-07 14:08:12 +0000 | [diff] [blame] | 5295 | if (fp == 0) |
| 5296 | exit(1); |
| 5297 | if (rl_gnu_readline_p != 1) |
| 5298 | fprintf(fp, "0.0\n"); |
| 5299 | else |
| 5300 | fprintf(fp, "%s\n", rl_library_version ? rl_library_version : "0.0"); |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 5301 | fclose(fp); |
| 5302 | exit(0); |
| 5303 | } |
| 5304 | |
| 5305 | _ACEOF |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 5306 | if ac_fn_c_try_run "$LINENO"; then : |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 5307 | ac_cv_rl_version=`cat conftest.rlv` |
| 5308 | else |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 5309 | ac_cv_rl_version='0.0' |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 5310 | fi |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 5311 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 5312 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 5313 | fi |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 5314 | |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 5315 | fi |
| 5316 | |
| 5317 | |
| 5318 | CFLAGS="$_save_CFLAGS" |
| 5319 | LDFLAGS="$_save_LDFLAGS" |
| 5320 | LIBS="$_save_LIBS" |
| 5321 | |
| 5322 | RL_MAJOR=0 |
| 5323 | RL_MINOR=0 |
| 5324 | |
| 5325 | # ( |
| 5326 | case "$ac_cv_rl_version" in |
| 5327 | 2*|3*|4*|5*|6*|7*|8*|9*) |
| 5328 | RL_MAJOR=`echo $ac_cv_rl_version | sed 's:\..*$::'` |
| 5329 | RL_MINOR=`echo $ac_cv_rl_version | sed -e 's:^.*\.::' -e 's:[a-zA-Z]*$::'` |
| 5330 | ;; |
| 5331 | esac |
| 5332 | |
| 5333 | # ((( |
| 5334 | case $RL_MAJOR in |
| 5335 | [0-9][0-9]) _RL_MAJOR=$RL_MAJOR ;; |
| 5336 | [0-9]) _RL_MAJOR=0$RL_MAJOR ;; |
| 5337 | *) _RL_MAJOR=00 ;; |
| 5338 | esac |
| 5339 | |
| 5340 | # ((( |
| 5341 | case $RL_MINOR in |
| 5342 | [0-9][0-9]) _RL_MINOR=$RL_MINOR ;; |
| 5343 | [0-9]) _RL_MINOR=0$RL_MINOR ;; |
| 5344 | *) _RL_MINOR=00 ;; |
| 5345 | esac |
| 5346 | |
| 5347 | RL_VERSION="0x${_RL_MAJOR}${_RL_MINOR}" |
| 5348 | |
| 5349 | # Readline versions greater than 4.2 have these defines in readline.h |
| 5350 | |
| 5351 | if test $ac_cv_rl_version = '0.0' ; then |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 5352 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not test version of installed readline library." >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 5353 | $as_echo "$as_me: WARNING: Could not test version of installed readline library." >&2;} |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 5354 | elif test $RL_MAJOR -gt 4 || { test $RL_MAJOR = 4 && test $RL_MINOR -gt 2 ; } ; then |
| 5355 | # set these for use by the caller |
| 5356 | RL_PREFIX=$ac_cv_rl_prefix |
| 5357 | RL_LIBDIR=$ac_cv_rl_libdir |
| 5358 | RL_INCLUDEDIR=$ac_cv_rl_includedir |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 5359 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_rl_version" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 5360 | $as_echo "$ac_cv_rl_version" >&6; } |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 5361 | else |
| 5362 | |
| 5363 | |
| 5364 | cat >>confdefs.h <<_ACEOF |
| 5365 | #define RL_READLINE_VERSION $RL_VERSION |
| 5366 | _ACEOF |
| 5367 | |
| 5368 | |
| 5369 | cat >>confdefs.h <<_ACEOF |
| 5370 | #define RL_VERSION_MAJOR $RL_MAJOR |
| 5371 | _ACEOF |
| 5372 | |
| 5373 | |
| 5374 | cat >>confdefs.h <<_ACEOF |
| 5375 | #define RL_VERSION_MINOR $RL_MINOR |
| 5376 | _ACEOF |
| 5377 | |
| 5378 | |
| 5379 | |
| 5380 | |
| 5381 | |
| 5382 | |
| 5383 | # set these for use by the caller |
| 5384 | RL_PREFIX=$ac_cv_rl_prefix |
| 5385 | RL_LIBDIR=$ac_cv_rl_libdir |
| 5386 | RL_INCLUDEDIR=$ac_cv_rl_includedir |
| 5387 | |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 5388 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_rl_version" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 5389 | $as_echo "$ac_cv_rl_version" >&6; } |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 5390 | |
| 5391 | fi |
| 5392 | |
| 5393 | |
| 5394 | case "$ac_cv_rl_version" in |
| 5395 | 5*|6*|7*|8*|9*) ;; |
| 5396 | *) opt_with_installed_readline=no |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 5397 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: installed readline library is too old to be linked with bash" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 5398 | $as_echo "$as_me: WARNING: installed readline library is too old to be linked with bash" >&2;} |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 5399 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using private bash version" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 5400 | $as_echo "$as_me: WARNING: using private bash version" >&2;} |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 5401 | ;; |
| 5402 | esac |
| 5403 | fi |
| 5404 | |
Jari Aalto | 95732b4 | 2005-12-07 14:08:12 +0000 | [diff] [blame] | 5405 | TILDE_LIB=-ltilde |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 5406 | if test $opt_readline = yes; then |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 5407 | $as_echo "#define READLINE 1" >>confdefs.h |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 5408 | |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 5409 | if test "$opt_with_installed_readline" != "no" ; then |
| 5410 | case "$opt_with_installed_readline" in |
| 5411 | yes) RL_INCLUDE= ;; |
| 5412 | *) case "$RL_INCLUDEDIR" in |
| 5413 | /usr/include) ;; |
| 5414 | *) RL_INCLUDE='-I${RL_INCLUDEDIR}' ;; |
| 5415 | esac |
| 5416 | ;; |
| 5417 | esac |
| 5418 | READLINE_DEP= |
Jari Aalto | 95732b4 | 2005-12-07 14:08:12 +0000 | [diff] [blame] | 5419 | READLINE_LIB=-lreadline |
| 5420 | # section for OS versions that don't allow unresolved symbols |
| 5421 | # to be compiled into dynamic libraries. |
| 5422 | case "$host_os" in |
| 5423 | cygwin*) TILDE_LIB= ;; |
| 5424 | esac |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 5425 | else |
| 5426 | RL_LIBDIR='$(dot)/$(LIBSUBDIR)/readline' |
| 5427 | READLINE_DEP='$(READLINE_LIBRARY)' |
Jari Aalto | 95732b4 | 2005-12-07 14:08:12 +0000 | [diff] [blame] | 5428 | # section for OS versions that ship an older/broken version of |
| 5429 | # readline as a standard dynamic library and don't allow a |
| 5430 | # static version specified as -llibname to override the |
| 5431 | # dynamic version |
| 5432 | case "${host_os}" in |
Chet Ramey | 89a9286 | 2011-11-21 20:49:12 -0500 | [diff] [blame] | 5433 | darwin[89]*|darwin10*) READLINE_LIB='${READLINE_LIBRARY}' ;; |
Jari Aalto | 95732b4 | 2005-12-07 14:08:12 +0000 | [diff] [blame] | 5434 | *) READLINE_LIB=-lreadline ;; |
| 5435 | esac |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 5436 | fi |
| 5437 | else |
| 5438 | RL_LIBDIR='$(dot)/$(LIBSUBDIR)/readline' |
| 5439 | READLINE_LIB= READLINE_DEP= |
| 5440 | fi |
| 5441 | if test $opt_history = yes || test $opt_bang_history = yes; then |
| 5442 | if test $opt_history = yes; then |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 5443 | $as_echo "#define HISTORY 1" >>confdefs.h |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 5444 | |
| 5445 | fi |
| 5446 | if test $opt_bang_history = yes; then |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 5447 | $as_echo "#define BANG_HISTORY 1" >>confdefs.h |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 5448 | |
| 5449 | fi |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 5450 | if test "$opt_with_installed_readline" != "no"; then |
| 5451 | HIST_LIBDIR=$RL_LIBDIR |
| 5452 | HISTORY_DEP= |
Jari Aalto | 95732b4 | 2005-12-07 14:08:12 +0000 | [diff] [blame] | 5453 | HISTORY_LIB=-lhistory |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 5454 | case "$opt_with_installed_readline" in |
| 5455 | yes) RL_INCLUDE= ;; |
| 5456 | *) case "$RL_INCLUDEDIR" in |
| 5457 | /usr/include) ;; |
| 5458 | *) RL_INCLUDE='-I${RL_INCLUDEDIR}' ;; |
| 5459 | esac |
| 5460 | ;; |
| 5461 | esac |
| 5462 | else |
| 5463 | HIST_LIBDIR='$(dot)/$(LIBSUBDIR)/readline' |
| 5464 | HISTORY_DEP='$(HISTORY_LIBRARY)' |
Jari Aalto | 95732b4 | 2005-12-07 14:08:12 +0000 | [diff] [blame] | 5465 | # section for OS versions that ship an older version of |
| 5466 | # readline as a standard dynamic library and don't allow a |
| 5467 | # static version specified as -llibname to override the |
| 5468 | # dynamic version |
| 5469 | case "${host_os}" in |
Chet Ramey | 89a9286 | 2011-11-21 20:49:12 -0500 | [diff] [blame] | 5470 | darwin[89]*|darwin10*) HISTORY_LIB='${HISTORY_LIBRARY}' ;; |
Jari Aalto | 95732b4 | 2005-12-07 14:08:12 +0000 | [diff] [blame] | 5471 | *) HISTORY_LIB=-lhistory ;; |
| 5472 | esac |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 5473 | fi |
| 5474 | else |
| 5475 | HIST_LIBDIR='$(dot)/$(LIBSUBDIR)/readline' |
| 5476 | HISTORY_LIB= HISTORY_DEP= |
| 5477 | fi |
| 5478 | |
| 5479 | |
| 5480 | |
| 5481 | |
| 5482 | |
| 5483 | |
| 5484 | |
| 5485 | |
| 5486 | |
| 5487 | |
Jari Aalto | 95732b4 | 2005-12-07 14:08:12 +0000 | [diff] [blame] | 5488 | |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 5489 | # Find a good install program. We prefer a C program (faster), |
| 5490 | # so one script is as good as another. But avoid the broken or |
| 5491 | # incompatible versions: |
| 5492 | # SysV /etc/install, /usr/sbin/install |
| 5493 | # SunOS /usr/etc/install |
| 5494 | # IRIX /sbin/install |
| 5495 | # AIX /bin/install |
| 5496 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
| 5497 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
| 5498 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
| 5499 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
Jari Aalto | 0628567 | 2006-10-10 14:15:34 +0000 | [diff] [blame] | 5500 | # OS/2's system install, which has a completely different semantic |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 5501 | # ./install, which can be erroneously created by make from ./install.sh. |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 5502 | # Reject install programs that cannot install multiple files. |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 5503 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 5504 | $as_echo_n "checking for a BSD-compatible install... " >&6; } |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 5505 | if test -z "$INSTALL"; then |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 5506 | if ${ac_cv_path_install+:} false; then : |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 5507 | $as_echo_n "(cached) " >&6 |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 5508 | else |
| 5509 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5510 | for as_dir in $PATH |
| 5511 | do |
| 5512 | IFS=$as_save_IFS |
| 5513 | test -z "$as_dir" && as_dir=. |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 5514 | # Account for people who put trailing slashes in PATH elements. |
| 5515 | case $as_dir/ in #(( |
| 5516 | ./ | .// | /[cC]/* | \ |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 5517 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 5518 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 5519 | /usr/ucb/* ) ;; |
| 5520 | *) |
| 5521 | # OSF1 and SCO ODT 3.0 have their own names for install. |
| 5522 | # Don't use installbsd from OSF since it installs stuff as root |
| 5523 | # by default. |
| 5524 | for ac_prog in ginstall scoinst install; do |
| 5525 | for ac_exec_ext in '' $ac_executable_extensions; do |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 5526 | if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
Jari Aalto | 0628567 | 2006-10-10 14:15:34 +0000 | [diff] [blame] | 5527 | if test $ac_prog = install && |
| 5528 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 5529 | # AIX install. It has an incompatible calling convention. |
| 5530 | : |
| 5531 | elif test $ac_prog = install && |
| 5532 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 5533 | # program-specific install script used by HP pwplus--don't use. |
| 5534 | : |
| 5535 | else |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 5536 | rm -rf conftest.one conftest.two conftest.dir |
| 5537 | echo one > conftest.one |
| 5538 | echo two > conftest.two |
| 5539 | mkdir conftest.dir |
| 5540 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && |
| 5541 | test -s conftest.one && test -s conftest.two && |
| 5542 | test -s conftest.dir/conftest.one && |
| 5543 | test -s conftest.dir/conftest.two |
| 5544 | then |
| 5545 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
| 5546 | break 3 |
| 5547 | fi |
Jari Aalto | 0628567 | 2006-10-10 14:15:34 +0000 | [diff] [blame] | 5548 | fi |
| 5549 | fi |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 5550 | done |
| 5551 | done |
| 5552 | ;; |
| 5553 | esac |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 5554 | |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 5555 | done |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 5556 | IFS=$as_save_IFS |
| 5557 | |
| 5558 | rm -rf conftest.one conftest.two conftest.dir |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 5559 | |
| 5560 | fi |
| 5561 | if test "${ac_cv_path_install+set}" = set; then |
| 5562 | INSTALL=$ac_cv_path_install |
| 5563 | else |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 5564 | # As a last resort, use the slow shell script. Don't cache a |
| 5565 | # value for INSTALL within a source directory, because that will |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 5566 | # break other packages using the cache if that directory is |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 5567 | # removed, or if the value is a relative name. |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 5568 | INSTALL=$ac_install_sh |
| 5569 | fi |
| 5570 | fi |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 5571 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 5572 | $as_echo "$INSTALL" >&6; } |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 5573 | |
| 5574 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
| 5575 | # It thinks the first close brace ends the variable substitution. |
| 5576 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
| 5577 | |
| 5578 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
| 5579 | |
| 5580 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
| 5581 | |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 5582 | if test -n "$ac_tool_prefix"; then |
| 5583 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. |
| 5584 | set dummy ${ac_tool_prefix}ar; ac_word=$2 |
| 5585 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 5586 | $as_echo_n "checking for $ac_word... " >&6; } |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 5587 | if ${ac_cv_prog_AR+:} false; then : |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 5588 | $as_echo_n "(cached) " >&6 |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 5589 | else |
| 5590 | if test -n "$AR"; then |
| 5591 | ac_cv_prog_AR="$AR" # Let the user override the test. |
| 5592 | else |
| 5593 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5594 | for as_dir in $PATH |
| 5595 | do |
| 5596 | IFS=$as_save_IFS |
| 5597 | test -z "$as_dir" && as_dir=. |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 5598 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5599 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 5600 | ac_cv_prog_AR="${ac_tool_prefix}ar" |
| 5601 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 5602 | break 2 |
| 5603 | fi |
| 5604 | done |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 5605 | done |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 5606 | IFS=$as_save_IFS |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 5607 | |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 5608 | fi |
| 5609 | fi |
| 5610 | AR=$ac_cv_prog_AR |
| 5611 | if test -n "$AR"; then |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 5612 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 5613 | $as_echo "$AR" >&6; } |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 5614 | else |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 5615 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 5616 | $as_echo "no" >&6; } |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 5617 | fi |
| 5618 | |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 5619 | |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 5620 | fi |
| 5621 | if test -z "$ac_cv_prog_AR"; then |
| 5622 | ac_ct_AR=$AR |
| 5623 | # Extract the first word of "ar", so it can be a program name with args. |
| 5624 | set dummy ar; ac_word=$2 |
| 5625 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 5626 | $as_echo_n "checking for $ac_word... " >&6; } |
| 5627 | if ${ac_cv_prog_ac_ct_AR+:} false; then : |
| 5628 | $as_echo_n "(cached) " >&6 |
| 5629 | else |
| 5630 | if test -n "$ac_ct_AR"; then |
| 5631 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. |
| 5632 | else |
| 5633 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5634 | for as_dir in $PATH |
| 5635 | do |
| 5636 | IFS=$as_save_IFS |
| 5637 | test -z "$as_dir" && as_dir=. |
| 5638 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5639 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 5640 | ac_cv_prog_ac_ct_AR="ar" |
| 5641 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5642 | break 2 |
| 5643 | fi |
| 5644 | done |
| 5645 | done |
| 5646 | IFS=$as_save_IFS |
| 5647 | |
| 5648 | fi |
| 5649 | fi |
| 5650 | ac_ct_AR=$ac_cv_prog_ac_ct_AR |
| 5651 | if test -n "$ac_ct_AR"; then |
| 5652 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 |
| 5653 | $as_echo "$ac_ct_AR" >&6; } |
| 5654 | else |
| 5655 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5656 | $as_echo "no" >&6; } |
| 5657 | fi |
| 5658 | |
| 5659 | if test "x$ac_ct_AR" = x; then |
| 5660 | AR="" |
| 5661 | else |
| 5662 | case $cross_compiling:$ac_tool_warned in |
| 5663 | yes:) |
| 5664 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 5665 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 5666 | ac_tool_warned=yes ;; |
| 5667 | esac |
| 5668 | AR=$ac_ct_AR |
| 5669 | fi |
| 5670 | else |
| 5671 | AR="$ac_cv_prog_AR" |
| 5672 | fi |
| 5673 | |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 5674 | test -n "$ARFLAGS" || ARFLAGS="cr" |
| 5675 | if test -n "$ac_tool_prefix"; then |
| 5676 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
| 5677 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 5678 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 5679 | $as_echo_n "checking for $ac_word... " >&6; } |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 5680 | if ${ac_cv_prog_RANLIB+:} false; then : |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 5681 | $as_echo_n "(cached) " >&6 |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 5682 | else |
| 5683 | if test -n "$RANLIB"; then |
| 5684 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 5685 | else |
| 5686 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5687 | for as_dir in $PATH |
| 5688 | do |
| 5689 | IFS=$as_save_IFS |
| 5690 | test -z "$as_dir" && as_dir=. |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 5691 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5692 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 5693 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 5694 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 5695 | break 2 |
| 5696 | fi |
| 5697 | done |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 5698 | done |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 5699 | IFS=$as_save_IFS |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 5700 | |
| 5701 | fi |
| 5702 | fi |
| 5703 | RANLIB=$ac_cv_prog_RANLIB |
| 5704 | if test -n "$RANLIB"; then |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 5705 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 5706 | $as_echo "$RANLIB" >&6; } |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 5707 | else |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 5708 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 5709 | $as_echo "no" >&6; } |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 5710 | fi |
| 5711 | |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 5712 | |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 5713 | fi |
| 5714 | if test -z "$ac_cv_prog_RANLIB"; then |
| 5715 | ac_ct_RANLIB=$RANLIB |
| 5716 | # Extract the first word of "ranlib", so it can be a program name with args. |
| 5717 | set dummy ranlib; ac_word=$2 |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 5718 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 5719 | $as_echo_n "checking for $ac_word... " >&6; } |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 5720 | if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 5721 | $as_echo_n "(cached) " >&6 |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 5722 | else |
| 5723 | if test -n "$ac_ct_RANLIB"; then |
| 5724 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
| 5725 | else |
| 5726 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5727 | for as_dir in $PATH |
| 5728 | do |
| 5729 | IFS=$as_save_IFS |
| 5730 | test -z "$as_dir" && as_dir=. |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 5731 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5732 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 5733 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 5734 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 5735 | break 2 |
| 5736 | fi |
| 5737 | done |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 5738 | done |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 5739 | IFS=$as_save_IFS |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 5740 | |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 5741 | fi |
| 5742 | fi |
| 5743 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
| 5744 | if test -n "$ac_ct_RANLIB"; then |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 5745 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 5746 | $as_echo "$ac_ct_RANLIB" >&6; } |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 5747 | else |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 5748 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 5749 | $as_echo "no" >&6; } |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 5750 | fi |
| 5751 | |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 5752 | if test "x$ac_ct_RANLIB" = x; then |
| 5753 | RANLIB=":" |
| 5754 | else |
| 5755 | case $cross_compiling:$ac_tool_warned in |
| 5756 | yes:) |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 5757 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 5758 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 5759 | ac_tool_warned=yes ;; |
| 5760 | esac |
| 5761 | RANLIB=$ac_ct_RANLIB |
| 5762 | fi |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 5763 | else |
| 5764 | RANLIB="$ac_cv_prog_RANLIB" |
| 5765 | fi |
| 5766 | |
| 5767 | for ac_prog in 'bison -y' byacc |
| 5768 | do |
| 5769 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 5770 | set dummy $ac_prog; ac_word=$2 |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 5771 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 5772 | $as_echo_n "checking for $ac_word... " >&6; } |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 5773 | if ${ac_cv_prog_YACC+:} false; then : |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 5774 | $as_echo_n "(cached) " >&6 |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 5775 | else |
| 5776 | if test -n "$YACC"; then |
| 5777 | ac_cv_prog_YACC="$YACC" # Let the user override the test. |
| 5778 | else |
| 5779 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5780 | for as_dir in $PATH |
| 5781 | do |
| 5782 | IFS=$as_save_IFS |
| 5783 | test -z "$as_dir" && as_dir=. |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 5784 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5785 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 5786 | ac_cv_prog_YACC="$ac_prog" |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 5787 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 5788 | break 2 |
| 5789 | fi |
| 5790 | done |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 5791 | done |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 5792 | IFS=$as_save_IFS |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 5793 | |
| 5794 | fi |
| 5795 | fi |
| 5796 | YACC=$ac_cv_prog_YACC |
| 5797 | if test -n "$YACC"; then |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 5798 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 5799 | $as_echo "$YACC" >&6; } |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 5800 | else |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 5801 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 5802 | $as_echo "no" >&6; } |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 5803 | fi |
| 5804 | |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 5805 | |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 5806 | test -n "$YACC" && break |
| 5807 | done |
| 5808 | test -n "$YACC" || YACC="yacc" |
| 5809 | |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 5810 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 5811 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } |
| 5812 | set x ${MAKE-make} |
| 5813 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 5814 | if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 5815 | $as_echo_n "(cached) " >&6 |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 5816 | else |
| 5817 | cat >conftest.make <<\_ACEOF |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 5818 | SHELL = /bin/sh |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 5819 | all: |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 5820 | @echo '@@@%%%=$(MAKE)=@@@%%%' |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 5821 | _ACEOF |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 5822 | # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 5823 | case `${MAKE-make} -f conftest.make 2>/dev/null` in |
| 5824 | *@@@%%%=?*=@@@%%%*) |
| 5825 | eval ac_cv_prog_make_${ac_make}_set=yes;; |
| 5826 | *) |
| 5827 | eval ac_cv_prog_make_${ac_make}_set=no;; |
| 5828 | esac |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 5829 | rm -f conftest.make |
| 5830 | fi |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 5831 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 5832 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 5833 | $as_echo "yes" >&6; } |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 5834 | SET_MAKE= |
| 5835 | else |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 5836 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 5837 | $as_echo "no" >&6; } |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 5838 | SET_MAKE="MAKE=${MAKE-make}" |
| 5839 | fi |
| 5840 | |
| 5841 | |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 5842 | case "$ac_cv_prog_YACC" in |
| 5843 | *bison*) ;; |
| 5844 | *) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: bison not available; needed to process parse.y" >&5 |
| 5845 | $as_echo "$as_me: WARNING: bison not available; needed to process parse.y" >&2;} ;; |
| 5846 | esac |
| 5847 | |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 5848 | case "$host_os" in |
| 5849 | opennt*|interix*) MAKE_SHELL="$INTERIX_ROOT/bin/sh" ;; |
| 5850 | *) MAKE_SHELL=/bin/sh ;; |
| 5851 | esac |
| 5852 | |
| 5853 | |
Jari Aalto | 95732b4 | 2005-12-07 14:08:12 +0000 | [diff] [blame] | 5854 | if test x$SIZE = x; then |
| 5855 | if test x$ac_tool_prefix = x; then |
| 5856 | SIZE=size |
| 5857 | else |
| 5858 | SIZE=${ac_tool_prefix}size |
| 5859 | save_IFS=$IFS ; IFS=: |
| 5860 | size_found=0 |
| 5861 | for dir in $PATH; do |
| 5862 | if test -x $dir/$SIZE ; then |
| 5863 | size_found=1 |
| 5864 | break |
| 5865 | fi |
| 5866 | done |
| 5867 | if test $size_found -eq 0; then |
| 5868 | SIZE=: |
| 5869 | fi |
| 5870 | IFS=$save_IFS |
| 5871 | fi |
| 5872 | fi |
| 5873 | |
| 5874 | |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 5875 | # Checks for stat-related time functions. |
| 5876 | |
| 5877 | # Copyright (C) 1998-1999, 2001, 2003, 2005-2007, 2009-2012 Free Software |
| 5878 | # Foundation, Inc. |
| 5879 | |
| 5880 | # This file is free software; the Free Software Foundation |
| 5881 | # gives unlimited permission to copy and/or distribute it, |
| 5882 | # with or without modifications, as long as this notice is preserved. |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 5883 | |
| 5884 | |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 5885 | # st_atim.tv_nsec - Linux, Solaris, Cygwin |
| 5886 | # st_atimespec.tv_nsec - FreeBSD, NetBSD, if ! defined _POSIX_SOURCE |
| 5887 | # st_atimensec - FreeBSD, NetBSD, if defined _POSIX_SOURCE |
| 5888 | # st_atim.st__tim.tv_nsec - UnixWare (at least 2.1.2 through 7.1) |
| 5889 | |
| 5890 | # st_birthtimespec - FreeBSD, NetBSD (hidden on OpenBSD 3.9, anyway) |
| 5891 | # st_birthtim - Cygwin 1.7.0+ |
| 5892 | |
| 5893 | |
| 5894 | |
| 5895 | # Configure checks for struct timespec |
| 5896 | |
| 5897 | # Copyright (C) 2000-2001, 2003-2007, 2009-2011, 2012 Free Software Foundation, Inc. |
| 5898 | |
| 5899 | # This file is free software; the Free Software Foundation |
| 5900 | # gives unlimited permission to copy and/or distribute it, |
| 5901 | # with or without modifications, as long as this notice is preserved. |
| 5902 | |
| 5903 | # Original written by Paul Eggert and Jim Meyering. |
| 5904 | # Modified by Chet Ramey for bash |
| 5905 | |
| 5906 | |
| 5907 | |
| 5908 | |
| 5909 | |
| 5910 | $as_echo "#define _GNU_SOURCE 1" >>confdefs.h |
| 5911 | |
| 5912 | |
| 5913 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 5914 | $as_echo_n "checking for an ANSI C-conforming const... " >&6; } |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 5915 | if ${ac_cv_c_const+:} false; then : |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 5916 | $as_echo_n "(cached) " >&6 |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 5917 | else |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 5918 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Jari Aalto | 0628567 | 2006-10-10 14:15:34 +0000 | [diff] [blame] | 5919 | /* end confdefs.h. */ |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 5920 | |
| 5921 | int |
| 5922 | main () |
| 5923 | { |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 5924 | |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 5925 | #ifndef __cplusplus |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 5926 | /* Ultrix mips cc rejects this sort of thing. */ |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 5927 | typedef int charset[2]; |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 5928 | const charset cs = { 0, 0 }; |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 5929 | /* SunOS 4.1.1 cc rejects this. */ |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 5930 | char const *const *pcpcc; |
| 5931 | char **ppc; |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 5932 | /* NEC SVR4.0.2 mips cc rejects this. */ |
| 5933 | struct point {int x, y;}; |
| 5934 | static struct point const zero = {0,0}; |
| 5935 | /* AIX XL C 1.02.0.0 rejects this. |
| 5936 | It does not let you subtract one const X* pointer from another in |
| 5937 | an arm of an if-expression whose if-part is not a constant |
| 5938 | expression */ |
| 5939 | const char *g = "string"; |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 5940 | pcpcc = &g + (g ? g-g : 0); |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 5941 | /* HPUX 7.0 cc rejects these. */ |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 5942 | ++pcpcc; |
| 5943 | ppc = (char**) pcpcc; |
| 5944 | pcpcc = (char const *const *) ppc; |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 5945 | { /* SCO 3.2v4 cc rejects this sort of thing. */ |
| 5946 | char tx; |
| 5947 | char *t = &tx; |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 5948 | char const *s = 0 ? (char *) 0 : (char const *) 0; |
| 5949 | |
| 5950 | *t++ = 0; |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 5951 | if (s) return 0; |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 5952 | } |
| 5953 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ |
| 5954 | int x[] = {25, 17}; |
| 5955 | const int *foo = &x[0]; |
| 5956 | ++foo; |
| 5957 | } |
| 5958 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ |
| 5959 | typedef const int *iptr; |
| 5960 | iptr p = 0; |
| 5961 | ++p; |
| 5962 | } |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 5963 | { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 5964 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 5965 | struct s { int j; const int *ap[3]; } bx; |
| 5966 | struct s *b = &bx; b->j = 5; |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 5967 | } |
| 5968 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ |
| 5969 | const int foo = 10; |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 5970 | if (!foo) return 0; |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 5971 | } |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 5972 | return !cs[0] && !zero.x; |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 5973 | #endif |
| 5974 | |
| 5975 | ; |
| 5976 | return 0; |
| 5977 | } |
| 5978 | _ACEOF |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 5979 | if ac_fn_c_try_compile "$LINENO"; then : |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 5980 | ac_cv_c_const=yes |
| 5981 | else |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 5982 | ac_cv_c_const=no |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 5983 | fi |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 5984 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 5985 | fi |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 5986 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 5987 | $as_echo "$ac_cv_c_const" >&6; } |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 5988 | if test $ac_cv_c_const = no; then |
| 5989 | |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 5990 | $as_echo "#define const /**/" >>confdefs.h |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 5991 | |
| 5992 | fi |
| 5993 | |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 5994 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 5995 | $as_echo_n "checking for inline... " >&6; } |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 5996 | if ${ac_cv_c_inline+:} false; then : |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 5997 | $as_echo_n "(cached) " >&6 |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 5998 | else |
| 5999 | ac_cv_c_inline=no |
| 6000 | for ac_kw in inline __inline__ __inline; do |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 6001 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Jari Aalto | 0628567 | 2006-10-10 14:15:34 +0000 | [diff] [blame] | 6002 | /* end confdefs.h. */ |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 6003 | #ifndef __cplusplus |
Jari Aalto | 0628567 | 2006-10-10 14:15:34 +0000 | [diff] [blame] | 6004 | typedef int foo_t; |
| 6005 | static $ac_kw foo_t static_foo () {return 0; } |
| 6006 | $ac_kw foo_t foo () {return 0; } |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 6007 | #endif |
| 6008 | |
| 6009 | _ACEOF |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 6010 | if ac_fn_c_try_compile "$LINENO"; then : |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 6011 | ac_cv_c_inline=$ac_kw |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 6012 | fi |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 6013 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6014 | test "$ac_cv_c_inline" != no && break |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 6015 | done |
| 6016 | |
| 6017 | fi |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 6018 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 6019 | $as_echo "$ac_cv_c_inline" >&6; } |
Jari Aalto | 0628567 | 2006-10-10 14:15:34 +0000 | [diff] [blame] | 6020 | |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 6021 | case $ac_cv_c_inline in |
| 6022 | inline | yes) ;; |
Jari Aalto | 0628567 | 2006-10-10 14:15:34 +0000 | [diff] [blame] | 6023 | *) |
| 6024 | case $ac_cv_c_inline in |
| 6025 | no) ac_val=;; |
| 6026 | *) ac_val=$ac_cv_c_inline;; |
| 6027 | esac |
| 6028 | cat >>confdefs.h <<_ACEOF |
| 6029 | #ifndef __cplusplus |
| 6030 | #define inline $ac_val |
| 6031 | #endif |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 6032 | _ACEOF |
Jari Aalto | 0628567 | 2006-10-10 14:15:34 +0000 | [diff] [blame] | 6033 | ;; |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 6034 | esac |
| 6035 | |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 6036 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 6037 | $as_echo_n "checking whether byte ordering is bigendian... " >&6; } |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 6038 | if ${ac_cv_c_bigendian+:} false; then : |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 6039 | $as_echo_n "(cached) " >&6 |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 6040 | else |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 6041 | ac_cv_c_bigendian=unknown |
| 6042 | # See if we're dealing with a universal compiler. |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 6043 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 6044 | /* end confdefs.h. */ |
| 6045 | #ifndef __APPLE_CC__ |
| 6046 | not a universal capable compiler |
| 6047 | #endif |
| 6048 | typedef int dummy; |
| 6049 | |
| 6050 | _ACEOF |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 6051 | if ac_fn_c_try_compile "$LINENO"; then : |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 6052 | |
| 6053 | # Check for potential -arch flags. It is not universal unless |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 6054 | # there are at least two -arch flags with different values. |
| 6055 | ac_arch= |
| 6056 | ac_prev= |
| 6057 | for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do |
| 6058 | if test -n "$ac_prev"; then |
| 6059 | case $ac_word in |
| 6060 | i?86 | x86_64 | ppc | ppc64) |
| 6061 | if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then |
| 6062 | ac_arch=$ac_word |
| 6063 | else |
| 6064 | ac_cv_c_bigendian=universal |
| 6065 | break |
| 6066 | fi |
| 6067 | ;; |
| 6068 | esac |
| 6069 | ac_prev= |
| 6070 | elif test "x$ac_word" = "x-arch"; then |
| 6071 | ac_prev=arch |
| 6072 | fi |
| 6073 | done |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 6074 | fi |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 6075 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6076 | if test $ac_cv_c_bigendian = unknown; then |
| 6077 | # See if sys/param.h defines the BYTE_ORDER macro. |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 6078 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Jari Aalto | 0628567 | 2006-10-10 14:15:34 +0000 | [diff] [blame] | 6079 | /* end confdefs.h. */ |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 6080 | #include <sys/types.h> |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 6081 | #include <sys/param.h> |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 6082 | |
| 6083 | int |
| 6084 | main () |
| 6085 | { |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 6086 | #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ |
| 6087 | && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ |
| 6088 | && LITTLE_ENDIAN) |
| 6089 | bogus endian macros |
| 6090 | #endif |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 6091 | |
| 6092 | ; |
| 6093 | return 0; |
| 6094 | } |
| 6095 | _ACEOF |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 6096 | if ac_fn_c_try_compile "$LINENO"; then : |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 6097 | # It does; now see whether it defined to BIG_ENDIAN or not. |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 6098 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Jari Aalto | 0628567 | 2006-10-10 14:15:34 +0000 | [diff] [blame] | 6099 | /* end confdefs.h. */ |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 6100 | #include <sys/types.h> |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 6101 | #include <sys/param.h> |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 6102 | |
| 6103 | int |
| 6104 | main () |
| 6105 | { |
| 6106 | #if BYTE_ORDER != BIG_ENDIAN |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 6107 | not big endian |
| 6108 | #endif |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 6109 | |
| 6110 | ; |
| 6111 | return 0; |
| 6112 | } |
| 6113 | _ACEOF |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 6114 | if ac_fn_c_try_compile "$LINENO"; then : |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 6115 | ac_cv_c_bigendian=yes |
| 6116 | else |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 6117 | ac_cv_c_bigendian=no |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 6118 | fi |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 6119 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 6120 | fi |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 6121 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6122 | fi |
| 6123 | if test $ac_cv_c_bigendian = unknown; then |
| 6124 | # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 6125 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Jari Aalto | 0628567 | 2006-10-10 14:15:34 +0000 | [diff] [blame] | 6126 | /* end confdefs.h. */ |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 6127 | #include <limits.h> |
| 6128 | |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 6129 | int |
| 6130 | main () |
| 6131 | { |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 6132 | #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) |
| 6133 | bogus endian macros |
| 6134 | #endif |
| 6135 | |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 6136 | ; |
| 6137 | return 0; |
| 6138 | } |
| 6139 | _ACEOF |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 6140 | if ac_fn_c_try_compile "$LINENO"; then : |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 6141 | # It does; now see whether it defined to _BIG_ENDIAN or not. |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 6142 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 6143 | /* end confdefs.h. */ |
| 6144 | #include <limits.h> |
| 6145 | |
| 6146 | int |
| 6147 | main () |
| 6148 | { |
| 6149 | #ifndef _BIG_ENDIAN |
| 6150 | not big endian |
| 6151 | #endif |
| 6152 | |
| 6153 | ; |
| 6154 | return 0; |
| 6155 | } |
| 6156 | _ACEOF |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 6157 | if ac_fn_c_try_compile "$LINENO"; then : |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 6158 | ac_cv_c_bigendian=yes |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 6159 | else |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 6160 | ac_cv_c_bigendian=no |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 6161 | fi |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 6162 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 6163 | fi |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 6164 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6165 | fi |
| 6166 | if test $ac_cv_c_bigendian = unknown; then |
| 6167 | # Compile a test program. |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 6168 | if test "$cross_compiling" = yes; then : |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 6169 | # Try to guess by grepping values from an object file. |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 6170 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 6171 | /* end confdefs.h. */ |
| 6172 | short int ascii_mm[] = |
| 6173 | { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; |
| 6174 | short int ascii_ii[] = |
| 6175 | { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; |
| 6176 | int use_ascii (int i) { |
| 6177 | return ascii_mm[i] + ascii_ii[i]; |
| 6178 | } |
| 6179 | short int ebcdic_ii[] = |
| 6180 | { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; |
| 6181 | short int ebcdic_mm[] = |
| 6182 | { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; |
| 6183 | int use_ebcdic (int i) { |
| 6184 | return ebcdic_mm[i] + ebcdic_ii[i]; |
| 6185 | } |
| 6186 | extern int foo; |
| 6187 | |
| 6188 | int |
| 6189 | main () |
| 6190 | { |
| 6191 | return use_ascii (foo) == use_ebcdic (foo); |
| 6192 | ; |
| 6193 | return 0; |
| 6194 | } |
| 6195 | _ACEOF |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 6196 | if ac_fn_c_try_compile "$LINENO"; then : |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 6197 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then |
| 6198 | ac_cv_c_bigendian=yes |
| 6199 | fi |
| 6200 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then |
| 6201 | if test "$ac_cv_c_bigendian" = unknown; then |
| 6202 | ac_cv_c_bigendian=no |
| 6203 | else |
| 6204 | # finding both strings is unlikely to happen, but who knows? |
| 6205 | ac_cv_c_bigendian=unknown |
| 6206 | fi |
| 6207 | fi |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 6208 | fi |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 6209 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 6210 | else |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 6211 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Jari Aalto | 0628567 | 2006-10-10 14:15:34 +0000 | [diff] [blame] | 6212 | /* end confdefs.h. */ |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 6213 | $ac_includes_default |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 6214 | int |
| 6215 | main () |
| 6216 | { |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 6217 | |
| 6218 | /* Are we little or big endian? From Harbison&Steele. */ |
| 6219 | union |
| 6220 | { |
| 6221 | long int l; |
| 6222 | char c[sizeof (long int)]; |
| 6223 | } u; |
| 6224 | u.l = 1; |
| 6225 | return u.c[sizeof (long int) - 1] == 1; |
| 6226 | |
| 6227 | ; |
| 6228 | return 0; |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 6229 | } |
| 6230 | _ACEOF |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 6231 | if ac_fn_c_try_run "$LINENO"; then : |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 6232 | ac_cv_c_bigendian=no |
| 6233 | else |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 6234 | ac_cv_c_bigendian=yes |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 6235 | fi |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 6236 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 6237 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 6238 | fi |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 6239 | |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 6240 | fi |
| 6241 | fi |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 6242 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 6243 | $as_echo "$ac_cv_c_bigendian" >&6; } |
| 6244 | case $ac_cv_c_bigendian in #( |
| 6245 | yes) |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 6246 | $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 6247 | ;; #( |
| 6248 | no) |
| 6249 | ;; #( |
| 6250 | universal) |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 6251 | |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 6252 | $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 6253 | |
| 6254 | ;; #( |
| 6255 | *) |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 6256 | as_fn_error $? "unknown endianness |
| 6257 | presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 6258 | esac |
| 6259 | |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 6260 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for preprocessor stringizing operator" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 6261 | $as_echo_n "checking for preprocessor stringizing operator... " >&6; } |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 6262 | if ${ac_cv_c_stringize+:} false; then : |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 6263 | $as_echo_n "(cached) " >&6 |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 6264 | else |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 6265 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Jari Aalto | 0628567 | 2006-10-10 14:15:34 +0000 | [diff] [blame] | 6266 | /* end confdefs.h. */ |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 6267 | #define x(y) #y |
| 6268 | |
| 6269 | char *s = x(teststring); |
| 6270 | _ACEOF |
| 6271 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 6272 | $EGREP "#teststring" >/dev/null 2>&1; then : |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 6273 | ac_cv_c_stringize=no |
| 6274 | else |
| 6275 | ac_cv_c_stringize=yes |
| 6276 | fi |
| 6277 | rm -f conftest* |
| 6278 | |
| 6279 | fi |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 6280 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stringize" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 6281 | $as_echo "$ac_cv_c_stringize" >&6; } |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 6282 | if test $ac_cv_c_stringize = yes; then |
| 6283 | |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 6284 | $as_echo "#define HAVE_STRINGIZE 1" >>confdefs.h |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 6285 | |
| 6286 | fi |
| 6287 | |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 6288 | |
| 6289 | |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 6290 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double with more range or precision than double" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 6291 | $as_echo_n "checking for long double with more range or precision than double... " >&6; } |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 6292 | if ${ac_cv_type_long_double_wider+:} false; then : |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 6293 | $as_echo_n "(cached) " >&6 |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 6294 | else |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 6295 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Jari Aalto | 0628567 | 2006-10-10 14:15:34 +0000 | [diff] [blame] | 6296 | /* end confdefs.h. */ |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 6297 | #include <float.h> |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 6298 | long double const a[] = |
| 6299 | { |
| 6300 | 0.0L, DBL_MIN, DBL_MAX, DBL_EPSILON, |
| 6301 | LDBL_MIN, LDBL_MAX, LDBL_EPSILON |
| 6302 | }; |
| 6303 | long double |
| 6304 | f (long double x) |
| 6305 | { |
| 6306 | return ((x + (unsigned long int) 10) * (-1 / x) + a[0] |
| 6307 | + (x ? f (x) : 'c')); |
| 6308 | } |
| 6309 | |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 6310 | int |
| 6311 | main () |
| 6312 | { |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 6313 | static int test_array [1 - 2 * !((0 < ((DBL_MAX_EXP < LDBL_MAX_EXP) |
| 6314 | + (DBL_MANT_DIG < LDBL_MANT_DIG) |
| 6315 | - (LDBL_MAX_EXP < DBL_MAX_EXP) |
| 6316 | - (LDBL_MANT_DIG < DBL_MANT_DIG))) |
| 6317 | && (int) LDBL_EPSILON == 0 |
| 6318 | )]; |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 6319 | test_array [0] = 0; |
| 6320 | return test_array [0]; |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 6321 | |
| 6322 | ; |
| 6323 | return 0; |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 6324 | } |
| 6325 | _ACEOF |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 6326 | if ac_fn_c_try_compile "$LINENO"; then : |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 6327 | ac_cv_type_long_double_wider=yes |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 6328 | else |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 6329 | ac_cv_type_long_double_wider=no |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 6330 | fi |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 6331 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 6332 | fi |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 6333 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double_wider" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 6334 | $as_echo "$ac_cv_type_long_double_wider" >&6; } |
| 6335 | if test $ac_cv_type_long_double_wider = yes; then |
| 6336 | |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 6337 | $as_echo "#define HAVE_LONG_DOUBLE_WIDER 1" >>confdefs.h |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 6338 | |
| 6339 | fi |
| 6340 | |
| 6341 | ac_cv_c_long_double=$ac_cv_type_long_double_wider |
| 6342 | if test $ac_cv_c_long_double = yes; then |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 6343 | |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 6344 | $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 6345 | |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 6346 | fi |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 6347 | |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 6348 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for function prototypes" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 6349 | $as_echo_n "checking for function prototypes... " >&6; } |
| 6350 | if test "$ac_cv_prog_cc_c89" != no; then |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 6351 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 6352 | $as_echo "yes" >&6; } |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 6353 | |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 6354 | $as_echo "#define PROTOTYPES 1" >>confdefs.h |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 6355 | |
| 6356 | |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 6357 | $as_echo "#define __PROTOTYPES 1" >>confdefs.h |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 6358 | |
| 6359 | else |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 6360 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 6361 | $as_echo "no" >&6; } |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 6362 | fi |
| 6363 | |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 6364 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether char is unsigned" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 6365 | $as_echo_n "checking whether char is unsigned... " >&6; } |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 6366 | if ${ac_cv_c_char_unsigned+:} false; then : |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 6367 | $as_echo_n "(cached) " >&6 |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 6368 | else |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 6369 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Jari Aalto | 0628567 | 2006-10-10 14:15:34 +0000 | [diff] [blame] | 6370 | /* end confdefs.h. */ |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 6371 | $ac_includes_default |
| 6372 | int |
| 6373 | main () |
| 6374 | { |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 6375 | static int test_array [1 - 2 * !(((char) -1) < 0)]; |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 6376 | test_array [0] = 0; |
| 6377 | return test_array [0]; |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 6378 | |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 6379 | ; |
| 6380 | return 0; |
| 6381 | } |
| 6382 | _ACEOF |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 6383 | if ac_fn_c_try_compile "$LINENO"; then : |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 6384 | ac_cv_c_char_unsigned=no |
| 6385 | else |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 6386 | ac_cv_c_char_unsigned=yes |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 6387 | fi |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 6388 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 6389 | fi |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 6390 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_char_unsigned" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 6391 | $as_echo "$ac_cv_c_char_unsigned" >&6; } |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 6392 | if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 6393 | $as_echo "#define __CHAR_UNSIGNED__ 1" >>confdefs.h |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 6394 | |
| 6395 | fi |
| 6396 | |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 6397 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5 |
Jari Aalto | 17345e5 | 2009-02-19 22:21:29 +0000 | [diff] [blame] | 6398 | $as_echo_n "checking for working volatile... " >&6; } |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 6399 | if ${ac_cv_c_volatile+:} false; then : |
Jari Aalto | 17345e5 | 2009-02-19 22:21:29 +0000 | [diff] [blame] | 6400 | $as_echo_n "(cached) " >&6 |
| 6401 | else |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 6402 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Jari Aalto | 17345e5 | 2009-02-19 22:21:29 +0000 | [diff] [blame] | 6403 | /* end confdefs.h. */ |
| 6404 | |
| 6405 | int |
| 6406 | main () |
| 6407 | { |
| 6408 | |
| 6409 | volatile int x; |
| 6410 | int * volatile y = (int *) 0; |
| 6411 | return !x && !y; |
| 6412 | ; |
| 6413 | return 0; |
| 6414 | } |
| 6415 | _ACEOF |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 6416 | if ac_fn_c_try_compile "$LINENO"; then : |
Jari Aalto | 17345e5 | 2009-02-19 22:21:29 +0000 | [diff] [blame] | 6417 | ac_cv_c_volatile=yes |
| 6418 | else |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 6419 | ac_cv_c_volatile=no |
Jari Aalto | 17345e5 | 2009-02-19 22:21:29 +0000 | [diff] [blame] | 6420 | fi |
Jari Aalto | 17345e5 | 2009-02-19 22:21:29 +0000 | [diff] [blame] | 6421 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6422 | fi |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 6423 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5 |
Jari Aalto | 17345e5 | 2009-02-19 22:21:29 +0000 | [diff] [blame] | 6424 | $as_echo "$ac_cv_c_volatile" >&6; } |
| 6425 | if test $ac_cv_c_volatile = no; then |
| 6426 | |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 6427 | $as_echo "#define volatile /**/" >>confdefs.h |
Jari Aalto | 17345e5 | 2009-02-19 22:21:29 +0000 | [diff] [blame] | 6428 | |
| 6429 | fi |
| 6430 | |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 6431 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5 |
Jari Aalto | 17345e5 | 2009-02-19 22:21:29 +0000 | [diff] [blame] | 6432 | $as_echo_n "checking for C/C++ restrict keyword... " >&6; } |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 6433 | if ${ac_cv_c_restrict+:} false; then : |
Jari Aalto | 17345e5 | 2009-02-19 22:21:29 +0000 | [diff] [blame] | 6434 | $as_echo_n "(cached) " >&6 |
| 6435 | else |
| 6436 | ac_cv_c_restrict=no |
| 6437 | # The order here caters to the fact that C++ does not require restrict. |
| 6438 | for ac_kw in __restrict __restrict__ _Restrict restrict; do |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 6439 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Jari Aalto | 17345e5 | 2009-02-19 22:21:29 +0000 | [diff] [blame] | 6440 | /* end confdefs.h. */ |
| 6441 | typedef int * int_ptr; |
| 6442 | int foo (int_ptr $ac_kw ip) { |
| 6443 | return ip[0]; |
| 6444 | } |
| 6445 | int |
| 6446 | main () |
| 6447 | { |
| 6448 | int s[1]; |
| 6449 | int * $ac_kw t = s; |
| 6450 | t[0] = 0; |
| 6451 | return foo(t) |
| 6452 | ; |
| 6453 | return 0; |
| 6454 | } |
| 6455 | _ACEOF |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 6456 | if ac_fn_c_try_compile "$LINENO"; then : |
Jari Aalto | 17345e5 | 2009-02-19 22:21:29 +0000 | [diff] [blame] | 6457 | ac_cv_c_restrict=$ac_kw |
Jari Aalto | 17345e5 | 2009-02-19 22:21:29 +0000 | [diff] [blame] | 6458 | fi |
Jari Aalto | 17345e5 | 2009-02-19 22:21:29 +0000 | [diff] [blame] | 6459 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6460 | test "$ac_cv_c_restrict" != no && break |
| 6461 | done |
| 6462 | |
| 6463 | fi |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 6464 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5 |
Jari Aalto | 17345e5 | 2009-02-19 22:21:29 +0000 | [diff] [blame] | 6465 | $as_echo "$ac_cv_c_restrict" >&6; } |
| 6466 | |
Jari Aalto | 17345e5 | 2009-02-19 22:21:29 +0000 | [diff] [blame] | 6467 | case $ac_cv_c_restrict in |
| 6468 | restrict) ;; |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 6469 | no) $as_echo "#define restrict /**/" >>confdefs.h |
Jari Aalto | 17345e5 | 2009-02-19 22:21:29 +0000 | [diff] [blame] | 6470 | ;; |
| 6471 | *) cat >>confdefs.h <<_ACEOF |
| 6472 | #define restrict $ac_cv_c_restrict |
| 6473 | _ACEOF |
| 6474 | ;; |
| 6475 | esac |
| 6476 | |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 6477 | |
| 6478 | |
| 6479 | MKINSTALLDIRS= |
| 6480 | if test -n "$ac_aux_dir"; then |
| 6481 | case "$ac_aux_dir" in |
| 6482 | /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;; |
| 6483 | *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;; |
| 6484 | esac |
| 6485 | fi |
| 6486 | if test -z "$MKINSTALLDIRS"; then |
| 6487 | MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs" |
| 6488 | fi |
| 6489 | |
| 6490 | |
| 6491 | |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 6492 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 6493 | $as_echo_n "checking whether NLS is requested... " >&6; } |
| 6494 | # Check whether --enable-nls was given. |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 6495 | if test "${enable_nls+set}" = set; then : |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 6496 | enableval=$enable_nls; USE_NLS=$enableval |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 6497 | else |
| 6498 | USE_NLS=yes |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 6499 | fi |
| 6500 | |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 6501 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 6502 | $as_echo "$USE_NLS" >&6; } |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 6503 | |
| 6504 | |
| 6505 | |
| 6506 | |
| 6507 | |
| 6508 | |
| 6509 | # Prepare PATH_SEPARATOR. |
| 6510 | # The user is always right. |
| 6511 | if test "${PATH_SEPARATOR+set}" != set; then |
| 6512 | echo "#! /bin/sh" >conf$$.sh |
| 6513 | echo "exit 0" >>conf$$.sh |
| 6514 | chmod +x conf$$.sh |
| 6515 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
| 6516 | PATH_SEPARATOR=';' |
| 6517 | else |
| 6518 | PATH_SEPARATOR=: |
| 6519 | fi |
| 6520 | rm -f conf$$.sh |
| 6521 | fi |
| 6522 | |
| 6523 | # Find out how to test for executable files. Don't use a zero-byte file, |
| 6524 | # as systems may use methods other than mode bits to determine executability. |
| 6525 | cat >conf$$.file <<_ASEOF |
| 6526 | #! /bin/sh |
| 6527 | exit 0 |
| 6528 | _ASEOF |
| 6529 | chmod +x conf$$.file |
| 6530 | if test -x conf$$.file >/dev/null 2>&1; then |
| 6531 | ac_executable_p="test -x" |
| 6532 | else |
| 6533 | ac_executable_p="test -f" |
| 6534 | fi |
| 6535 | rm -f conf$$.file |
| 6536 | |
| 6537 | # Extract the first word of "msgfmt", so it can be a program name with args. |
| 6538 | set dummy msgfmt; ac_word=$2 |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 6539 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 6540 | $as_echo_n "checking for $ac_word... " >&6; } |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 6541 | if ${ac_cv_path_MSGFMT+:} false; then : |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 6542 | $as_echo_n "(cached) " >&6 |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 6543 | else |
| 6544 | case "$MSGFMT" in |
| 6545 | [\\/]* | ?:[\\/]*) |
| 6546 | ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. |
| 6547 | ;; |
| 6548 | *) |
| 6549 | ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR |
| 6550 | for ac_dir in $PATH; do |
| 6551 | IFS="$ac_save_IFS" |
| 6552 | test -z "$ac_dir" && ac_dir=. |
| 6553 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6554 | if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then |
| 6555 | if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 && |
| 6556 | (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then |
| 6557 | ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext" |
| 6558 | break 2 |
| 6559 | fi |
| 6560 | fi |
| 6561 | done |
| 6562 | done |
| 6563 | IFS="$ac_save_IFS" |
| 6564 | test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":" |
| 6565 | ;; |
| 6566 | esac |
| 6567 | fi |
| 6568 | MSGFMT="$ac_cv_path_MSGFMT" |
| 6569 | if test "$MSGFMT" != ":"; then |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 6570 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 6571 | $as_echo "$MSGFMT" >&6; } |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 6572 | else |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 6573 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 6574 | $as_echo "no" >&6; } |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 6575 | fi |
| 6576 | |
| 6577 | # Extract the first word of "gmsgfmt", so it can be a program name with args. |
| 6578 | set dummy gmsgfmt; ac_word=$2 |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 6579 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 6580 | $as_echo_n "checking for $ac_word... " >&6; } |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 6581 | if ${ac_cv_path_GMSGFMT+:} false; then : |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 6582 | $as_echo_n "(cached) " >&6 |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 6583 | else |
| 6584 | case $GMSGFMT in |
| 6585 | [\\/]* | ?:[\\/]*) |
| 6586 | ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. |
| 6587 | ;; |
| 6588 | *) |
| 6589 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6590 | for as_dir in $PATH |
| 6591 | do |
| 6592 | IFS=$as_save_IFS |
| 6593 | test -z "$as_dir" && as_dir=. |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 6594 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6595 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 6596 | ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext" |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 6597 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 6598 | break 2 |
| 6599 | fi |
| 6600 | done |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 6601 | done |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 6602 | IFS=$as_save_IFS |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 6603 | |
| 6604 | test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT" |
| 6605 | ;; |
| 6606 | esac |
| 6607 | fi |
| 6608 | GMSGFMT=$ac_cv_path_GMSGFMT |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 6609 | if test -n "$GMSGFMT"; then |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 6610 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 6611 | $as_echo "$GMSGFMT" >&6; } |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 6612 | else |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 6613 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 6614 | $as_echo "no" >&6; } |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 6615 | fi |
| 6616 | |
| 6617 | |
| 6618 | |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 6619 | |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 6620 | # Prepare PATH_SEPARATOR. |
| 6621 | # The user is always right. |
| 6622 | if test "${PATH_SEPARATOR+set}" != set; then |
| 6623 | echo "#! /bin/sh" >conf$$.sh |
| 6624 | echo "exit 0" >>conf$$.sh |
| 6625 | chmod +x conf$$.sh |
| 6626 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
| 6627 | PATH_SEPARATOR=';' |
| 6628 | else |
| 6629 | PATH_SEPARATOR=: |
| 6630 | fi |
| 6631 | rm -f conf$$.sh |
| 6632 | fi |
| 6633 | |
| 6634 | # Find out how to test for executable files. Don't use a zero-byte file, |
| 6635 | # as systems may use methods other than mode bits to determine executability. |
| 6636 | cat >conf$$.file <<_ASEOF |
| 6637 | #! /bin/sh |
| 6638 | exit 0 |
| 6639 | _ASEOF |
| 6640 | chmod +x conf$$.file |
| 6641 | if test -x conf$$.file >/dev/null 2>&1; then |
| 6642 | ac_executable_p="test -x" |
| 6643 | else |
| 6644 | ac_executable_p="test -f" |
| 6645 | fi |
| 6646 | rm -f conf$$.file |
| 6647 | |
| 6648 | # Extract the first word of "xgettext", so it can be a program name with args. |
| 6649 | set dummy xgettext; ac_word=$2 |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 6650 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 6651 | $as_echo_n "checking for $ac_word... " >&6; } |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 6652 | if ${ac_cv_path_XGETTEXT+:} false; then : |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 6653 | $as_echo_n "(cached) " >&6 |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 6654 | else |
| 6655 | case "$XGETTEXT" in |
| 6656 | [\\/]* | ?:[\\/]*) |
| 6657 | ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. |
| 6658 | ;; |
| 6659 | *) |
| 6660 | ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR |
| 6661 | for ac_dir in $PATH; do |
| 6662 | IFS="$ac_save_IFS" |
| 6663 | test -z "$ac_dir" && ac_dir=. |
| 6664 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6665 | if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then |
| 6666 | if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 && |
| 6667 | (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then |
| 6668 | ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext" |
| 6669 | break 2 |
| 6670 | fi |
| 6671 | fi |
| 6672 | done |
| 6673 | done |
| 6674 | IFS="$ac_save_IFS" |
| 6675 | test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" |
| 6676 | ;; |
| 6677 | esac |
| 6678 | fi |
| 6679 | XGETTEXT="$ac_cv_path_XGETTEXT" |
| 6680 | if test "$XGETTEXT" != ":"; then |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 6681 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 6682 | $as_echo "$XGETTEXT" >&6; } |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 6683 | else |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 6684 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 6685 | $as_echo "no" >&6; } |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 6686 | fi |
| 6687 | |
| 6688 | rm -f messages.po |
| 6689 | |
| 6690 | |
| 6691 | # Prepare PATH_SEPARATOR. |
| 6692 | # The user is always right. |
| 6693 | if test "${PATH_SEPARATOR+set}" != set; then |
| 6694 | echo "#! /bin/sh" >conf$$.sh |
| 6695 | echo "exit 0" >>conf$$.sh |
| 6696 | chmod +x conf$$.sh |
| 6697 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
| 6698 | PATH_SEPARATOR=';' |
| 6699 | else |
| 6700 | PATH_SEPARATOR=: |
| 6701 | fi |
| 6702 | rm -f conf$$.sh |
| 6703 | fi |
| 6704 | |
| 6705 | # Find out how to test for executable files. Don't use a zero-byte file, |
| 6706 | # as systems may use methods other than mode bits to determine executability. |
| 6707 | cat >conf$$.file <<_ASEOF |
| 6708 | #! /bin/sh |
| 6709 | exit 0 |
| 6710 | _ASEOF |
| 6711 | chmod +x conf$$.file |
| 6712 | if test -x conf$$.file >/dev/null 2>&1; then |
| 6713 | ac_executable_p="test -x" |
| 6714 | else |
| 6715 | ac_executable_p="test -f" |
| 6716 | fi |
| 6717 | rm -f conf$$.file |
| 6718 | |
| 6719 | # Extract the first word of "msgmerge", so it can be a program name with args. |
| 6720 | set dummy msgmerge; ac_word=$2 |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 6721 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 6722 | $as_echo_n "checking for $ac_word... " >&6; } |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 6723 | if ${ac_cv_path_MSGMERGE+:} false; then : |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 6724 | $as_echo_n "(cached) " >&6 |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 6725 | else |
| 6726 | case "$MSGMERGE" in |
| 6727 | [\\/]* | ?:[\\/]*) |
| 6728 | ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path. |
| 6729 | ;; |
| 6730 | *) |
| 6731 | ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR |
| 6732 | for ac_dir in $PATH; do |
| 6733 | IFS="$ac_save_IFS" |
| 6734 | test -z "$ac_dir" && ac_dir=. |
| 6735 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6736 | if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then |
| 6737 | if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then |
| 6738 | ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext" |
| 6739 | break 2 |
| 6740 | fi |
| 6741 | fi |
| 6742 | done |
| 6743 | done |
| 6744 | IFS="$ac_save_IFS" |
| 6745 | test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":" |
| 6746 | ;; |
| 6747 | esac |
| 6748 | fi |
| 6749 | MSGMERGE="$ac_cv_path_MSGMERGE" |
| 6750 | if test "$MSGMERGE" != ":"; then |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 6751 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 6752 | $as_echo "$MSGMERGE" >&6; } |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 6753 | else |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 6754 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 6755 | $as_echo "no" >&6; } |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 6756 | fi |
| 6757 | |
| 6758 | |
| 6759 | if test "$GMSGFMT" != ":"; then |
| 6760 | if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 && |
| 6761 | (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then |
| 6762 | : ; |
| 6763 | else |
| 6764 | GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'` |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 6765 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 6766 | $as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; } |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 6767 | GMSGFMT=":" |
| 6768 | fi |
| 6769 | fi |
| 6770 | |
| 6771 | if test "$XGETTEXT" != ":"; then |
| 6772 | if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 && |
| 6773 | (if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then |
| 6774 | : ; |
| 6775 | else |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 6776 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 6777 | $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; } |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 6778 | XGETTEXT=":" |
| 6779 | fi |
| 6780 | rm -f messages.po |
| 6781 | fi |
| 6782 | |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 6783 | ac_config_commands="$ac_config_commands default-1" |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 6784 | |
| 6785 | |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 6786 | ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default" |
| 6787 | if test "x$ac_cv_type_off_t" = xyes; then : |
Jari Aalto | 0628567 | 2006-10-10 14:15:34 +0000 | [diff] [blame] | 6788 | |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 6789 | else |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 6790 | |
| 6791 | cat >>confdefs.h <<_ACEOF |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 6792 | #define off_t long int |
| 6793 | _ACEOF |
| 6794 | |
| 6795 | fi |
| 6796 | |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 6797 | ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" |
| 6798 | if test "x$ac_cv_type_size_t" = xyes; then : |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 6799 | |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 6800 | else |
| 6801 | |
| 6802 | cat >>confdefs.h <<_ACEOF |
| 6803 | #define size_t unsigned int |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 6804 | _ACEOF |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 6805 | |
| 6806 | fi |
Jari Aalto | b72432f | 1999-02-19 17:11:39 +0000 | [diff] [blame] | 6807 | |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 6808 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works |
| 6809 | # for constant arguments. Useless! |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 6810 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 6811 | $as_echo_n "checking for working alloca.h... " >&6; } |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 6812 | if ${ac_cv_working_alloca_h+:} false; then : |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 6813 | $as_echo_n "(cached) " >&6 |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 6814 | else |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 6815 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Jari Aalto | 0628567 | 2006-10-10 14:15:34 +0000 | [diff] [blame] | 6816 | /* end confdefs.h. */ |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 6817 | #include <alloca.h> |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 6818 | int |
| 6819 | main () |
| 6820 | { |
| 6821 | char *p = (char *) alloca (2 * sizeof (int)); |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 6822 | if (p) return 0; |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 6823 | ; |
| 6824 | return 0; |
| 6825 | } |
| 6826 | _ACEOF |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 6827 | if ac_fn_c_try_link "$LINENO"; then : |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 6828 | ac_cv_working_alloca_h=yes |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 6829 | else |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 6830 | ac_cv_working_alloca_h=no |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 6831 | fi |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 6832 | rm -f core conftest.err conftest.$ac_objext \ |
| 6833 | conftest$ac_exeext conftest.$ac_ext |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 6834 | fi |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 6835 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 6836 | $as_echo "$ac_cv_working_alloca_h" >&6; } |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 6837 | if test $ac_cv_working_alloca_h = yes; then |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 6838 | |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 6839 | $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 6840 | |
| 6841 | fi |
| 6842 | |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 6843 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 6844 | $as_echo_n "checking for alloca... " >&6; } |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 6845 | if ${ac_cv_func_alloca_works+:} false; then : |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 6846 | $as_echo_n "(cached) " >&6 |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 6847 | else |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 6848 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Jari Aalto | 0628567 | 2006-10-10 14:15:34 +0000 | [diff] [blame] | 6849 | /* end confdefs.h. */ |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 6850 | #ifdef __GNUC__ |
| 6851 | # define alloca __builtin_alloca |
| 6852 | #else |
Jari Aalto | bb70624 | 2000-03-17 21:46:59 +0000 | [diff] [blame] | 6853 | # ifdef _MSC_VER |
| 6854 | # include <malloc.h> |
| 6855 | # define alloca _alloca |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 6856 | # else |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 6857 | # ifdef HAVE_ALLOCA_H |
Jari Aalto | bb70624 | 2000-03-17 21:46:59 +0000 | [diff] [blame] | 6858 | # include <alloca.h> |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 6859 | # else |
Jari Aalto | bb70624 | 2000-03-17 21:46:59 +0000 | [diff] [blame] | 6860 | # ifdef _AIX |
| 6861 | #pragma alloca |
| 6862 | # else |
| 6863 | # ifndef alloca /* predefined by HP cc +Olibcalls */ |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 6864 | void *alloca (size_t); |
Jari Aalto | bb70624 | 2000-03-17 21:46:59 +0000 | [diff] [blame] | 6865 | # endif |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 6866 | # endif |
| 6867 | # endif |
| 6868 | # endif |
| 6869 | #endif |
| 6870 | |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 6871 | int |
| 6872 | main () |
| 6873 | { |
| 6874 | char *p = (char *) alloca (1); |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 6875 | if (p) return 0; |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 6876 | ; |
| 6877 | return 0; |
| 6878 | } |
| 6879 | _ACEOF |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 6880 | if ac_fn_c_try_link "$LINENO"; then : |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 6881 | ac_cv_func_alloca_works=yes |
| 6882 | else |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 6883 | ac_cv_func_alloca_works=no |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 6884 | fi |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 6885 | rm -f core conftest.err conftest.$ac_objext \ |
| 6886 | conftest$ac_exeext conftest.$ac_ext |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 6887 | fi |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 6888 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 6889 | $as_echo "$ac_cv_func_alloca_works" >&6; } |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 6890 | |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 6891 | if test $ac_cv_func_alloca_works = yes; then |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 6892 | |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 6893 | $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 6894 | |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 6895 | else |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 6896 | # The SVR3 libPW and SVR4 libucb both contain incompatible functions |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 6897 | # that cause trouble. Some versions do not even contain alloca or |
| 6898 | # contain a buggy version. If you still want to use their alloca, |
| 6899 | # use ar to extract alloca.o from them instead of compiling alloca.c. |
| 6900 | |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 6901 | ALLOCA=\${LIBOBJDIR}alloca.$ac_objext |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 6902 | |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 6903 | $as_echo "#define C_ALLOCA 1" >>confdefs.h |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 6904 | |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 6905 | |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 6906 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 6907 | $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; } |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 6908 | if ${ac_cv_os_cray+:} false; then : |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 6909 | $as_echo_n "(cached) " >&6 |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 6910 | else |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 6911 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Jari Aalto | 0628567 | 2006-10-10 14:15:34 +0000 | [diff] [blame] | 6912 | /* end confdefs.h. */ |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 6913 | #if defined CRAY && ! defined CRAY2 |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 6914 | webecray |
| 6915 | #else |
| 6916 | wenotbecray |
| 6917 | #endif |
| 6918 | |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 6919 | _ACEOF |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 6920 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 6921 | $EGREP "webecray" >/dev/null 2>&1; then : |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 6922 | ac_cv_os_cray=yes |
| 6923 | else |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 6924 | ac_cv_os_cray=no |
| 6925 | fi |
| 6926 | rm -f conftest* |
| 6927 | |
| 6928 | fi |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 6929 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 6930 | $as_echo "$ac_cv_os_cray" >&6; } |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 6931 | if test $ac_cv_os_cray = yes; then |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 6932 | for ac_func in _getb67 GETB67 getb67; do |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 6933 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 6934 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
| 6935 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 6936 | |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 6937 | cat >>confdefs.h <<_ACEOF |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 6938 | #define CRAY_STACKSEG_END $ac_func |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 6939 | _ACEOF |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 6940 | |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 6941 | break |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 6942 | fi |
| 6943 | |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 6944 | done |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 6945 | fi |
| 6946 | |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 6947 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 6948 | $as_echo_n "checking stack direction for C alloca... " >&6; } |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 6949 | if ${ac_cv_c_stack_direction+:} false; then : |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 6950 | $as_echo_n "(cached) " >&6 |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 6951 | else |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 6952 | if test "$cross_compiling" = yes; then : |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 6953 | ac_cv_c_stack_direction=0 |
| 6954 | else |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 6955 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Jari Aalto | 0628567 | 2006-10-10 14:15:34 +0000 | [diff] [blame] | 6956 | /* end confdefs.h. */ |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 6957 | $ac_includes_default |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 6958 | int |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 6959 | find_stack_direction (int *addr, int depth) |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 6960 | { |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 6961 | int dir, dummy = 0; |
| 6962 | if (! addr) |
| 6963 | addr = &dummy; |
| 6964 | *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1; |
| 6965 | dir = depth ? find_stack_direction (addr, depth - 1) : 0; |
| 6966 | return dir + dummy; |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 6967 | } |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 6968 | |
| 6969 | int |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 6970 | main (int argc, char **argv) |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 6971 | { |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 6972 | return find_stack_direction (0, argc + !argv + 20) < 0; |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 6973 | } |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 6974 | _ACEOF |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 6975 | if ac_fn_c_try_run "$LINENO"; then : |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 6976 | ac_cv_c_stack_direction=1 |
| 6977 | else |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 6978 | ac_cv_c_stack_direction=-1 |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 6979 | fi |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 6980 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 6981 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 6982 | fi |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 6983 | |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 6984 | fi |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 6985 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 6986 | $as_echo "$ac_cv_c_stack_direction" >&6; } |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 6987 | cat >>confdefs.h <<_ACEOF |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 6988 | #define STACK_DIRECTION $ac_cv_c_stack_direction |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 6989 | _ACEOF |
| 6990 | |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 6991 | |
| 6992 | fi |
| 6993 | |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 6994 | |
| 6995 | |
Jari Aalto | 0628567 | 2006-10-10 14:15:34 +0000 | [diff] [blame] | 6996 | |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 6997 | for ac_header in $ac_header_list |
| 6998 | do : |
| 6999 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 7000 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default |
| 7001 | " |
| 7002 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 7003 | cat >>confdefs.h <<_ACEOF |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 7004 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 7005 | _ACEOF |
| 7006 | |
| 7007 | fi |
| 7008 | |
| 7009 | done |
| 7010 | |
| 7011 | |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 7012 | |
| 7013 | |
| 7014 | |
| 7015 | |
| 7016 | |
| 7017 | |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 7018 | for ac_func in getpagesize |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 7019 | do : |
| 7020 | ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize" |
| 7021 | if test "x$ac_cv_func_getpagesize" = xyes; then : |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 7022 | cat >>confdefs.h <<_ACEOF |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 7023 | #define HAVE_GETPAGESIZE 1 |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 7024 | _ACEOF |
| 7025 | |
| 7026 | fi |
| 7027 | done |
| 7028 | |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 7029 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 7030 | $as_echo_n "checking for working mmap... " >&6; } |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 7031 | if ${ac_cv_func_mmap_fixed_mapped+:} false; then : |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 7032 | $as_echo_n "(cached) " >&6 |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 7033 | else |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 7034 | if test "$cross_compiling" = yes; then : |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 7035 | ac_cv_func_mmap_fixed_mapped=no |
| 7036 | else |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 7037 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Jari Aalto | 0628567 | 2006-10-10 14:15:34 +0000 | [diff] [blame] | 7038 | /* end confdefs.h. */ |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 7039 | $ac_includes_default |
| 7040 | /* malloc might have been renamed as rpl_malloc. */ |
| 7041 | #undef malloc |
| 7042 | |
| 7043 | /* Thanks to Mike Haertel and Jim Avera for this test. |
| 7044 | Here is a matrix of mmap possibilities: |
| 7045 | mmap private not fixed |
| 7046 | mmap private fixed at somewhere currently unmapped |
| 7047 | mmap private fixed at somewhere already mapped |
| 7048 | mmap shared not fixed |
| 7049 | mmap shared fixed at somewhere currently unmapped |
| 7050 | mmap shared fixed at somewhere already mapped |
| 7051 | For private mappings, we should verify that changes cannot be read() |
| 7052 | back from the file, nor mmap's back from the file at a different |
| 7053 | address. (There have been systems where private was not correctly |
| 7054 | implemented like the infamous i386 svr4.0, and systems where the |
| 7055 | VM page cache was not coherent with the file system buffer cache |
| 7056 | like early versions of FreeBSD and possibly contemporary NetBSD.) |
| 7057 | For shared mappings, we should conversely verify that changes get |
| 7058 | propagated back to all the places they're supposed to be. |
| 7059 | |
| 7060 | Grep wants private fixed already mapped. |
| 7061 | The main things grep needs to know about mmap are: |
| 7062 | * does it exist and is it safe to write into the mmap'd area |
| 7063 | * how to use it (BSD variants) */ |
| 7064 | |
| 7065 | #include <fcntl.h> |
| 7066 | #include <sys/mman.h> |
| 7067 | |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 7068 | #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 7069 | char *malloc (); |
| 7070 | #endif |
| 7071 | |
| 7072 | /* This mess was copied from the GNU getpagesize.h. */ |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 7073 | #ifndef HAVE_GETPAGESIZE |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 7074 | # ifdef _SC_PAGESIZE |
| 7075 | # define getpagesize() sysconf(_SC_PAGESIZE) |
| 7076 | # else /* no _SC_PAGESIZE */ |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 7077 | # ifdef HAVE_SYS_PARAM_H |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 7078 | # include <sys/param.h> |
| 7079 | # ifdef EXEC_PAGESIZE |
| 7080 | # define getpagesize() EXEC_PAGESIZE |
| 7081 | # else /* no EXEC_PAGESIZE */ |
| 7082 | # ifdef NBPG |
| 7083 | # define getpagesize() NBPG * CLSIZE |
| 7084 | # ifndef CLSIZE |
| 7085 | # define CLSIZE 1 |
| 7086 | # endif /* no CLSIZE */ |
| 7087 | # else /* no NBPG */ |
| 7088 | # ifdef NBPC |
| 7089 | # define getpagesize() NBPC |
| 7090 | # else /* no NBPC */ |
| 7091 | # ifdef PAGESIZE |
| 7092 | # define getpagesize() PAGESIZE |
| 7093 | # endif /* PAGESIZE */ |
| 7094 | # endif /* no NBPC */ |
| 7095 | # endif /* no NBPG */ |
| 7096 | # endif /* no EXEC_PAGESIZE */ |
| 7097 | # else /* no HAVE_SYS_PARAM_H */ |
| 7098 | # define getpagesize() 8192 /* punt totally */ |
| 7099 | # endif /* no HAVE_SYS_PARAM_H */ |
| 7100 | # endif /* no _SC_PAGESIZE */ |
| 7101 | |
| 7102 | #endif /* no HAVE_GETPAGESIZE */ |
| 7103 | |
| 7104 | int |
| 7105 | main () |
| 7106 | { |
| 7107 | char *data, *data2, *data3; |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 7108 | const char *cdata2; |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 7109 | int i, pagesize; |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 7110 | int fd, fd2; |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 7111 | |
| 7112 | pagesize = getpagesize (); |
| 7113 | |
| 7114 | /* First, make a file with some known garbage in it. */ |
| 7115 | data = (char *) malloc (pagesize); |
| 7116 | if (!data) |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 7117 | return 1; |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 7118 | for (i = 0; i < pagesize; ++i) |
| 7119 | *(data + i) = rand (); |
| 7120 | umask (0); |
| 7121 | fd = creat ("conftest.mmap", 0600); |
| 7122 | if (fd < 0) |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 7123 | return 2; |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 7124 | if (write (fd, data, pagesize) != pagesize) |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 7125 | return 3; |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 7126 | close (fd); |
| 7127 | |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 7128 | /* Next, check that the tail of a page is zero-filled. File must have |
| 7129 | non-zero length, otherwise we risk SIGBUS for entire page. */ |
| 7130 | fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600); |
| 7131 | if (fd2 < 0) |
| 7132 | return 4; |
| 7133 | cdata2 = ""; |
| 7134 | if (write (fd2, cdata2, 1) != 1) |
| 7135 | return 5; |
| 7136 | data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L); |
| 7137 | if (data2 == MAP_FAILED) |
| 7138 | return 6; |
| 7139 | for (i = 0; i < pagesize; ++i) |
| 7140 | if (*(data2 + i)) |
| 7141 | return 7; |
| 7142 | close (fd2); |
| 7143 | if (munmap (data2, pagesize)) |
| 7144 | return 8; |
| 7145 | |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 7146 | /* Next, try to mmap the file at a fixed address which already has |
| 7147 | something else allocated at it. If we can, also make sure that |
| 7148 | we see the same garbage. */ |
| 7149 | fd = open ("conftest.mmap", O_RDWR); |
| 7150 | if (fd < 0) |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 7151 | return 9; |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 7152 | if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, |
Jari Aalto | 0628567 | 2006-10-10 14:15:34 +0000 | [diff] [blame] | 7153 | MAP_PRIVATE | MAP_FIXED, fd, 0L)) |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 7154 | return 10; |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 7155 | for (i = 0; i < pagesize; ++i) |
| 7156 | if (*(data + i) != *(data2 + i)) |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 7157 | return 11; |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 7158 | |
| 7159 | /* Finally, make sure that changes to the mapped area do not |
| 7160 | percolate back to the file as seen by read(). (This is a bug on |
| 7161 | some variants of i386 svr4.0.) */ |
| 7162 | for (i = 0; i < pagesize; ++i) |
| 7163 | *(data2 + i) = *(data2 + i) + 1; |
| 7164 | data3 = (char *) malloc (pagesize); |
| 7165 | if (!data3) |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 7166 | return 12; |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 7167 | if (read (fd, data3, pagesize) != pagesize) |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 7168 | return 13; |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 7169 | for (i = 0; i < pagesize; ++i) |
| 7170 | if (*(data + i) != *(data3 + i)) |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 7171 | return 14; |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 7172 | close (fd); |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 7173 | return 0; |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 7174 | } |
| 7175 | _ACEOF |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 7176 | if ac_fn_c_try_run "$LINENO"; then : |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 7177 | ac_cv_func_mmap_fixed_mapped=yes |
| 7178 | else |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 7179 | ac_cv_func_mmap_fixed_mapped=no |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 7180 | fi |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 7181 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 7182 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 7183 | fi |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 7184 | |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 7185 | fi |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 7186 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 7187 | $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; } |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 7188 | if test $ac_cv_func_mmap_fixed_mapped = yes; then |
| 7189 | |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 7190 | $as_echo "#define HAVE_MMAP 1" >>confdefs.h |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 7191 | |
| 7192 | fi |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 7193 | rm -f conftest.mmap conftest.txt |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 7194 | |
| 7195 | |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 7196 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2.1 or newer" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 7197 | $as_echo_n "checking whether we are using the GNU C Library 2.1 or newer... " >&6; } |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 7198 | if ${ac_cv_gnu_library_2_1+:} false; then : |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 7199 | $as_echo_n "(cached) " >&6 |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 7200 | else |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 7201 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Jari Aalto | 0628567 | 2006-10-10 14:15:34 +0000 | [diff] [blame] | 7202 | /* end confdefs.h. */ |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 7203 | |
| 7204 | #include <features.h> |
| 7205 | #ifdef __GNU_LIBRARY__ |
| 7206 | #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2) |
| 7207 | Lucky GNU user |
| 7208 | #endif |
| 7209 | #endif |
| 7210 | |
| 7211 | _ACEOF |
| 7212 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 7213 | $EGREP "Lucky GNU user" >/dev/null 2>&1; then : |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 7214 | ac_cv_gnu_library_2_1=yes |
| 7215 | else |
| 7216 | ac_cv_gnu_library_2_1=no |
| 7217 | fi |
| 7218 | rm -f conftest* |
| 7219 | |
| 7220 | |
| 7221 | |
| 7222 | fi |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 7223 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 7224 | $as_echo "$ac_cv_gnu_library_2_1" >&6; } |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 7225 | |
| 7226 | GLIBC21="$ac_cv_gnu_library_2_1" |
| 7227 | |
| 7228 | |
| 7229 | |
| 7230 | |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 7231 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether integer division by zero raises SIGFPE" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 7232 | $as_echo_n "checking whether integer division by zero raises SIGFPE... " >&6; } |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 7233 | if ${gt_cv_int_divbyzero_sigfpe+:} false; then : |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 7234 | $as_echo_n "(cached) " >&6 |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 7235 | else |
| 7236 | |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 7237 | if test "$cross_compiling" = yes; then : |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 7238 | |
| 7239 | # Guess based on the CPU. |
| 7240 | case "$host_cpu" in |
| 7241 | alpha* | i3456786 | m68k | s390*) |
| 7242 | gt_cv_int_divbyzero_sigfpe="guessing yes";; |
| 7243 | *) |
| 7244 | gt_cv_int_divbyzero_sigfpe="guessing no";; |
| 7245 | esac |
| 7246 | |
| 7247 | else |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 7248 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Jari Aalto | 0628567 | 2006-10-10 14:15:34 +0000 | [diff] [blame] | 7249 | /* end confdefs.h. */ |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 7250 | |
| 7251 | #include <stdlib.h> |
| 7252 | #include <signal.h> |
| 7253 | |
| 7254 | static void |
| 7255 | #ifdef __cplusplus |
| 7256 | sigfpe_handler (int sig) |
| 7257 | #else |
| 7258 | sigfpe_handler (sig) int sig; |
| 7259 | #endif |
| 7260 | { |
| 7261 | /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */ |
| 7262 | exit (sig != SIGFPE); |
| 7263 | } |
| 7264 | |
| 7265 | int x = 1; |
| 7266 | int y = 0; |
| 7267 | int z; |
| 7268 | int nan; |
| 7269 | |
| 7270 | int main () |
| 7271 | { |
| 7272 | signal (SIGFPE, sigfpe_handler); |
| 7273 | /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */ |
| 7274 | #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP) |
| 7275 | signal (SIGTRAP, sigfpe_handler); |
| 7276 | #endif |
| 7277 | /* Linux/SPARC yields signal SIGILL. */ |
| 7278 | #if defined (__sparc__) && defined (__linux__) |
| 7279 | signal (SIGILL, sigfpe_handler); |
| 7280 | #endif |
| 7281 | |
| 7282 | z = x / y; |
| 7283 | nan = y / y; |
| 7284 | exit (1); |
| 7285 | } |
| 7286 | |
| 7287 | _ACEOF |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 7288 | if ac_fn_c_try_run "$LINENO"; then : |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 7289 | gt_cv_int_divbyzero_sigfpe=yes |
| 7290 | else |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 7291 | gt_cv_int_divbyzero_sigfpe=no |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 7292 | fi |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 7293 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 7294 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 7295 | fi |
| 7296 | |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 7297 | |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 7298 | fi |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 7299 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_int_divbyzero_sigfpe" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 7300 | $as_echo "$gt_cv_int_divbyzero_sigfpe" >&6; } |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 7301 | case "$gt_cv_int_divbyzero_sigfpe" in |
| 7302 | *yes) value=1;; |
| 7303 | *) value=0;; |
| 7304 | esac |
| 7305 | |
| 7306 | cat >>confdefs.h <<_ACEOF |
| 7307 | #define INTDIV0_RAISES_SIGFPE $value |
| 7308 | _ACEOF |
| 7309 | |
| 7310 | |
| 7311 | |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 7312 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 7313 | $as_echo_n "checking for inttypes.h... " >&6; } |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 7314 | if ${jm_ac_cv_header_inttypes_h+:} false; then : |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 7315 | $as_echo_n "(cached) " >&6 |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 7316 | else |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 7317 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Jari Aalto | 0628567 | 2006-10-10 14:15:34 +0000 | [diff] [blame] | 7318 | /* end confdefs.h. */ |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 7319 | #include <sys/types.h> |
| 7320 | #include <inttypes.h> |
| 7321 | int |
| 7322 | main () |
| 7323 | { |
| 7324 | uintmax_t i = (uintmax_t) -1; |
| 7325 | ; |
| 7326 | return 0; |
| 7327 | } |
| 7328 | _ACEOF |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 7329 | if ac_fn_c_try_compile "$LINENO"; then : |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 7330 | jm_ac_cv_header_inttypes_h=yes |
| 7331 | else |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 7332 | jm_ac_cv_header_inttypes_h=no |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 7333 | fi |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 7334 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 7335 | fi |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 7336 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jm_ac_cv_header_inttypes_h" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 7337 | $as_echo "$jm_ac_cv_header_inttypes_h" >&6; } |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 7338 | if test $jm_ac_cv_header_inttypes_h = yes; then |
| 7339 | |
| 7340 | cat >>confdefs.h <<_ACEOF |
| 7341 | #define HAVE_INTTYPES_H_WITH_UINTMAX 1 |
| 7342 | _ACEOF |
| 7343 | |
| 7344 | fi |
| 7345 | |
| 7346 | |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 7347 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 7348 | $as_echo_n "checking for stdint.h... " >&6; } |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 7349 | if ${jm_ac_cv_header_stdint_h+:} false; then : |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 7350 | $as_echo_n "(cached) " >&6 |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 7351 | else |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 7352 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Jari Aalto | 0628567 | 2006-10-10 14:15:34 +0000 | [diff] [blame] | 7353 | /* end confdefs.h. */ |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 7354 | #include <sys/types.h> |
| 7355 | #include <stdint.h> |
| 7356 | int |
| 7357 | main () |
| 7358 | { |
| 7359 | uintmax_t i = (uintmax_t) -1; |
| 7360 | ; |
| 7361 | return 0; |
| 7362 | } |
| 7363 | _ACEOF |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 7364 | if ac_fn_c_try_compile "$LINENO"; then : |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 7365 | jm_ac_cv_header_stdint_h=yes |
| 7366 | else |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 7367 | jm_ac_cv_header_stdint_h=no |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 7368 | fi |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 7369 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 7370 | fi |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 7371 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jm_ac_cv_header_stdint_h" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 7372 | $as_echo "$jm_ac_cv_header_stdint_h" >&6; } |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 7373 | if test $jm_ac_cv_header_stdint_h = yes; then |
| 7374 | |
| 7375 | cat >>confdefs.h <<_ACEOF |
| 7376 | #define HAVE_STDINT_H_WITH_UINTMAX 1 |
| 7377 | _ACEOF |
| 7378 | |
| 7379 | fi |
| 7380 | |
| 7381 | |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 7382 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 7383 | $as_echo_n "checking for unsigned long long... " >&6; } |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 7384 | if ${ac_cv_type_unsigned_long_long+:} false; then : |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 7385 | $as_echo_n "(cached) " >&6 |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 7386 | else |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 7387 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Jari Aalto | 0628567 | 2006-10-10 14:15:34 +0000 | [diff] [blame] | 7388 | /* end confdefs.h. */ |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 7389 | unsigned long long ull = 1; int i = 63; |
| 7390 | int |
| 7391 | main () |
| 7392 | { |
| 7393 | unsigned long long ullmax = (unsigned long long) -1; |
| 7394 | return ull << i | ull >> i | ullmax / ull | ullmax % ull; |
| 7395 | ; |
| 7396 | return 0; |
| 7397 | } |
| 7398 | _ACEOF |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 7399 | if ac_fn_c_try_link "$LINENO"; then : |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 7400 | ac_cv_type_unsigned_long_long=yes |
| 7401 | else |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 7402 | ac_cv_type_unsigned_long_long=no |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 7403 | fi |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 7404 | rm -f core conftest.err conftest.$ac_objext \ |
| 7405 | conftest$ac_exeext conftest.$ac_ext |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 7406 | fi |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 7407 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 7408 | $as_echo "$ac_cv_type_unsigned_long_long" >&6; } |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 7409 | if test $ac_cv_type_unsigned_long_long = yes; then |
| 7410 | |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 7411 | $as_echo "#define HAVE_UNSIGNED_LONG_LONG 1" >>confdefs.h |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 7412 | |
| 7413 | fi |
| 7414 | |
| 7415 | |
| 7416 | |
| 7417 | |
| 7418 | if test $jm_ac_cv_header_inttypes_h = no && test $jm_ac_cv_header_stdint_h = no; then |
| 7419 | |
| 7420 | test $ac_cv_type_unsigned_long_long = yes \ |
| 7421 | && ac_type='unsigned long long' \ |
| 7422 | || ac_type='unsigned long' |
| 7423 | |
| 7424 | cat >>confdefs.h <<_ACEOF |
| 7425 | #define uintmax_t $ac_type |
| 7426 | _ACEOF |
| 7427 | |
| 7428 | else |
| 7429 | |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 7430 | $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 7431 | |
| 7432 | fi |
| 7433 | |
| 7434 | |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 7435 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 7436 | $as_echo_n "checking for inttypes.h... " >&6; } |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 7437 | if ${gt_cv_header_inttypes_h+:} false; then : |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 7438 | $as_echo_n "(cached) " >&6 |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 7439 | else |
| 7440 | |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 7441 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Jari Aalto | 0628567 | 2006-10-10 14:15:34 +0000 | [diff] [blame] | 7442 | /* end confdefs.h. */ |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 7443 | #include <sys/types.h> |
| 7444 | #include <inttypes.h> |
| 7445 | int |
| 7446 | main () |
| 7447 | { |
| 7448 | |
| 7449 | ; |
| 7450 | return 0; |
| 7451 | } |
| 7452 | _ACEOF |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 7453 | if ac_fn_c_try_compile "$LINENO"; then : |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 7454 | gt_cv_header_inttypes_h=yes |
| 7455 | else |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 7456 | gt_cv_header_inttypes_h=no |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 7457 | fi |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 7458 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 7459 | |
| 7460 | fi |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 7461 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_header_inttypes_h" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 7462 | $as_echo "$gt_cv_header_inttypes_h" >&6; } |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 7463 | if test $gt_cv_header_inttypes_h = yes; then |
| 7464 | |
| 7465 | cat >>confdefs.h <<_ACEOF |
| 7466 | #define HAVE_INTTYPES_H 1 |
| 7467 | _ACEOF |
| 7468 | |
| 7469 | fi |
| 7470 | |
| 7471 | |
| 7472 | |
| 7473 | if test $gt_cv_header_inttypes_h = yes; then |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 7474 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the inttypes.h PRIxNN macros are broken" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 7475 | $as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; } |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 7476 | if ${gt_cv_inttypes_pri_broken+:} false; then : |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 7477 | $as_echo_n "(cached) " >&6 |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 7478 | else |
| 7479 | |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 7480 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Jari Aalto | 0628567 | 2006-10-10 14:15:34 +0000 | [diff] [blame] | 7481 | /* end confdefs.h. */ |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 7482 | #include <inttypes.h> |
| 7483 | #ifdef PRId32 |
| 7484 | char *p = PRId32; |
| 7485 | #endif |
| 7486 | |
| 7487 | int |
| 7488 | main () |
| 7489 | { |
| 7490 | |
| 7491 | ; |
| 7492 | return 0; |
| 7493 | } |
| 7494 | _ACEOF |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 7495 | if ac_fn_c_try_compile "$LINENO"; then : |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 7496 | gt_cv_inttypes_pri_broken=no |
| 7497 | else |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 7498 | gt_cv_inttypes_pri_broken=yes |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 7499 | fi |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 7500 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 7501 | |
| 7502 | fi |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 7503 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 7504 | $as_echo "$gt_cv_inttypes_pri_broken" >&6; } |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 7505 | fi |
| 7506 | if test "$gt_cv_inttypes_pri_broken" = yes; then |
| 7507 | |
| 7508 | cat >>confdefs.h <<_ACEOF |
| 7509 | #define PRI_MACROS_BROKEN 1 |
| 7510 | _ACEOF |
| 7511 | |
| 7512 | fi |
| 7513 | |
| 7514 | |
| 7515 | if test "X$prefix" = "XNONE"; then |
| 7516 | acl_final_prefix="$ac_default_prefix" |
| 7517 | else |
| 7518 | acl_final_prefix="$prefix" |
| 7519 | fi |
| 7520 | if test "X$exec_prefix" = "XNONE"; then |
| 7521 | acl_final_exec_prefix='${prefix}' |
| 7522 | else |
| 7523 | acl_final_exec_prefix="$exec_prefix" |
| 7524 | fi |
| 7525 | acl_save_prefix="$prefix" |
| 7526 | prefix="$acl_final_prefix" |
| 7527 | eval acl_final_exec_prefix=\"$acl_final_exec_prefix\" |
| 7528 | prefix="$acl_save_prefix" |
| 7529 | |
| 7530 | |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 7531 | # Check whether --with-gnu-ld was given. |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 7532 | if test "${with_gnu_ld+set}" = set; then : |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 7533 | withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 7534 | else |
| 7535 | with_gnu_ld=no |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 7536 | fi |
| 7537 | |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 7538 | # Prepare PATH_SEPARATOR. |
| 7539 | # The user is always right. |
| 7540 | if test "${PATH_SEPARATOR+set}" != set; then |
| 7541 | echo "#! /bin/sh" >conf$$.sh |
| 7542 | echo "exit 0" >>conf$$.sh |
| 7543 | chmod +x conf$$.sh |
| 7544 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
| 7545 | PATH_SEPARATOR=';' |
| 7546 | else |
| 7547 | PATH_SEPARATOR=: |
| 7548 | fi |
| 7549 | rm -f conf$$.sh |
| 7550 | fi |
| 7551 | ac_prog=ld |
| 7552 | if test "$GCC" = yes; then |
| 7553 | # Check if gcc -print-prog-name=ld gives a path. |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 7554 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 7555 | $as_echo_n "checking for ld used by GCC... " >&6; } |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 7556 | case $host in |
| 7557 | *-*-mingw*) |
| 7558 | # gcc leaves a trailing carriage return which upsets mingw |
| 7559 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; |
| 7560 | *) |
| 7561 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; |
| 7562 | esac |
| 7563 | case $ac_prog in |
| 7564 | # Accept absolute paths. |
| 7565 | [\\/]* | [A-Za-z]:[\\/]*) |
| 7566 | re_direlt='/[^/][^/]*/\.\./' |
| 7567 | # Canonicalize the path of ld |
| 7568 | ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'` |
| 7569 | while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do |
| 7570 | ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` |
| 7571 | done |
| 7572 | test -z "$LD" && LD="$ac_prog" |
| 7573 | ;; |
| 7574 | "") |
| 7575 | # If it fails, then pretend we aren't using GCC. |
| 7576 | ac_prog=ld |
| 7577 | ;; |
| 7578 | *) |
| 7579 | # If it is relative, then search for the first ld in PATH. |
| 7580 | with_gnu_ld=unknown |
| 7581 | ;; |
| 7582 | esac |
| 7583 | elif test "$with_gnu_ld" = yes; then |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 7584 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 7585 | $as_echo_n "checking for GNU ld... " >&6; } |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 7586 | else |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 7587 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 7588 | $as_echo_n "checking for non-GNU ld... " >&6; } |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 7589 | fi |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 7590 | if ${acl_cv_path_LD+:} false; then : |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 7591 | $as_echo_n "(cached) " >&6 |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 7592 | else |
| 7593 | if test -z "$LD"; then |
| 7594 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" |
| 7595 | for ac_dir in $PATH; do |
| 7596 | test -z "$ac_dir" && ac_dir=. |
| 7597 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then |
| 7598 | acl_cv_path_LD="$ac_dir/$ac_prog" |
| 7599 | # Check to see if the program is GNU ld. I'd rather use --version, |
| 7600 | # but apparently some GNU ld's only accept -v. |
| 7601 | # Break only if it was the GNU/non-GNU ld that we prefer. |
| 7602 | if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then |
| 7603 | test "$with_gnu_ld" != no && break |
| 7604 | else |
| 7605 | test "$with_gnu_ld" != yes && break |
| 7606 | fi |
| 7607 | fi |
| 7608 | done |
| 7609 | IFS="$ac_save_ifs" |
| 7610 | else |
| 7611 | acl_cv_path_LD="$LD" # Let the user override the test with a path. |
| 7612 | fi |
| 7613 | fi |
| 7614 | |
| 7615 | LD="$acl_cv_path_LD" |
| 7616 | if test -n "$LD"; then |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 7617 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 7618 | $as_echo "$LD" >&6; } |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 7619 | else |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 7620 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 7621 | $as_echo "no" >&6; } |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 7622 | fi |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 7623 | test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 |
| 7624 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 7625 | $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 7626 | if ${acl_cv_prog_gnu_ld+:} false; then : |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 7627 | $as_echo_n "(cached) " >&6 |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 7628 | else |
| 7629 | # I'd rather use --version here, but apparently some GNU ld's only accept -v. |
| 7630 | if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then |
| 7631 | acl_cv_prog_gnu_ld=yes |
| 7632 | else |
| 7633 | acl_cv_prog_gnu_ld=no |
| 7634 | fi |
| 7635 | fi |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 7636 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 7637 | $as_echo "$acl_cv_prog_gnu_ld" >&6; } |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 7638 | with_gnu_ld=$acl_cv_prog_gnu_ld |
| 7639 | |
| 7640 | |
| 7641 | |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 7642 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 7643 | $as_echo_n "checking for shared library run path origin... " >&6; } |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 7644 | if ${acl_cv_rpath+:} false; then : |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 7645 | $as_echo_n "(cached) " >&6 |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 7646 | else |
| 7647 | |
| 7648 | CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \ |
| 7649 | ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh |
| 7650 | . ./conftest.sh |
| 7651 | rm -f ./conftest.sh |
| 7652 | acl_cv_rpath=done |
| 7653 | |
| 7654 | fi |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 7655 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 7656 | $as_echo "$acl_cv_rpath" >&6; } |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 7657 | wl="$acl_cv_wl" |
| 7658 | libext="$acl_cv_libext" |
| 7659 | shlibext="$acl_cv_shlibext" |
| 7660 | hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec" |
| 7661 | hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator" |
| 7662 | hardcode_direct="$acl_cv_hardcode_direct" |
| 7663 | hardcode_minus_L="$acl_cv_hardcode_minus_L" |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 7664 | # Check whether --enable-rpath was given. |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 7665 | if test "${enable_rpath+set}" = set; then : |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 7666 | enableval=$enable_rpath; : |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 7667 | else |
| 7668 | enable_rpath=yes |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 7669 | fi |
| 7670 | |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 7671 | |
| 7672 | |
| 7673 | |
| 7674 | |
| 7675 | |
| 7676 | |
| 7677 | |
| 7678 | use_additional=yes |
| 7679 | |
| 7680 | acl_save_prefix="$prefix" |
| 7681 | prefix="$acl_final_prefix" |
| 7682 | acl_save_exec_prefix="$exec_prefix" |
| 7683 | exec_prefix="$acl_final_exec_prefix" |
| 7684 | |
| 7685 | eval additional_includedir=\"$includedir\" |
| 7686 | eval additional_libdir=\"$libdir\" |
| 7687 | |
| 7688 | exec_prefix="$acl_save_exec_prefix" |
| 7689 | prefix="$acl_save_prefix" |
| 7690 | |
| 7691 | |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 7692 | # Check whether --with-libiconv-prefix was given. |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 7693 | if test "${with_libiconv_prefix+set}" = set; then : |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 7694 | withval=$with_libiconv_prefix; |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 7695 | if test "X$withval" = "Xno"; then |
| 7696 | use_additional=no |
| 7697 | else |
| 7698 | if test "X$withval" = "X"; then |
| 7699 | |
| 7700 | acl_save_prefix="$prefix" |
| 7701 | prefix="$acl_final_prefix" |
| 7702 | acl_save_exec_prefix="$exec_prefix" |
| 7703 | exec_prefix="$acl_final_exec_prefix" |
| 7704 | |
| 7705 | eval additional_includedir=\"$includedir\" |
| 7706 | eval additional_libdir=\"$libdir\" |
| 7707 | |
| 7708 | exec_prefix="$acl_save_exec_prefix" |
| 7709 | prefix="$acl_save_prefix" |
| 7710 | |
| 7711 | else |
| 7712 | additional_includedir="$withval/include" |
| 7713 | additional_libdir="$withval/lib" |
| 7714 | fi |
| 7715 | fi |
| 7716 | |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 7717 | fi |
| 7718 | |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 7719 | LIBICONV= |
| 7720 | LTLIBICONV= |
| 7721 | INCICONV= |
| 7722 | rpathdirs= |
| 7723 | ltrpathdirs= |
| 7724 | names_already_handled= |
| 7725 | names_next_round='iconv ' |
| 7726 | while test -n "$names_next_round"; do |
| 7727 | names_this_round="$names_next_round" |
| 7728 | names_next_round= |
| 7729 | for name in $names_this_round; do |
| 7730 | already_handled= |
| 7731 | for n in $names_already_handled; do |
| 7732 | if test "$n" = "$name"; then |
| 7733 | already_handled=yes |
| 7734 | break |
| 7735 | fi |
| 7736 | done |
| 7737 | if test -z "$already_handled"; then |
| 7738 | names_already_handled="$names_already_handled $name" |
| 7739 | uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'` |
| 7740 | eval value=\"\$HAVE_LIB$uppername\" |
| 7741 | if test -n "$value"; then |
| 7742 | if test "$value" = yes; then |
| 7743 | eval value=\"\$LIB$uppername\" |
| 7744 | test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value" |
| 7745 | eval value=\"\$LTLIB$uppername\" |
| 7746 | test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value" |
| 7747 | else |
| 7748 | : |
| 7749 | fi |
| 7750 | else |
| 7751 | found_dir= |
| 7752 | found_la= |
| 7753 | found_so= |
| 7754 | found_a= |
| 7755 | if test $use_additional = yes; then |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 7756 | if test "X$prefer_shared" = "Xyes" && test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 7757 | found_dir="$additional_libdir" |
| 7758 | found_so="$additional_libdir/lib$name.$shlibext" |
| 7759 | if test -f "$additional_libdir/lib$name.la"; then |
| 7760 | found_la="$additional_libdir/lib$name.la" |
| 7761 | fi |
| 7762 | else |
| 7763 | if test -f "$additional_libdir/lib$name.$libext"; then |
| 7764 | found_dir="$additional_libdir" |
| 7765 | found_a="$additional_libdir/lib$name.$libext" |
| 7766 | if test -f "$additional_libdir/lib$name.la"; then |
| 7767 | found_la="$additional_libdir/lib$name.la" |
| 7768 | fi |
| 7769 | fi |
| 7770 | fi |
| 7771 | fi |
| 7772 | if test "X$found_dir" = "X"; then |
| 7773 | for x in $LDFLAGS $LTLIBICONV; do |
| 7774 | |
| 7775 | acl_save_prefix="$prefix" |
| 7776 | prefix="$acl_final_prefix" |
| 7777 | acl_save_exec_prefix="$exec_prefix" |
| 7778 | exec_prefix="$acl_final_exec_prefix" |
| 7779 | eval x=\"$x\" |
| 7780 | exec_prefix="$acl_save_exec_prefix" |
| 7781 | prefix="$acl_save_prefix" |
| 7782 | |
| 7783 | case "$x" in |
| 7784 | -L*) |
| 7785 | dir=`echo "X$x" | sed -e 's/^X-L//'` |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 7786 | if test "X$prefer_shared" = "Xyes" && test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 7787 | found_dir="$dir" |
| 7788 | found_so="$dir/lib$name.$shlibext" |
| 7789 | if test -f "$dir/lib$name.la"; then |
| 7790 | found_la="$dir/lib$name.la" |
| 7791 | fi |
| 7792 | else |
| 7793 | if test -f "$dir/lib$name.$libext"; then |
| 7794 | found_dir="$dir" |
| 7795 | found_a="$dir/lib$name.$libext" |
| 7796 | if test -f "$dir/lib$name.la"; then |
| 7797 | found_la="$dir/lib$name.la" |
| 7798 | fi |
| 7799 | fi |
| 7800 | fi |
| 7801 | ;; |
| 7802 | esac |
| 7803 | if test "X$found_dir" != "X"; then |
| 7804 | break |
| 7805 | fi |
| 7806 | done |
| 7807 | fi |
| 7808 | if test "X$found_dir" != "X"; then |
| 7809 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name" |
| 7810 | if test "X$found_so" != "X"; then |
| 7811 | if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then |
| 7812 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" |
| 7813 | else |
| 7814 | haveit= |
| 7815 | for x in $ltrpathdirs; do |
| 7816 | if test "X$x" = "X$found_dir"; then |
| 7817 | haveit=yes |
| 7818 | break |
| 7819 | fi |
| 7820 | done |
| 7821 | if test -z "$haveit"; then |
| 7822 | ltrpathdirs="$ltrpathdirs $found_dir" |
| 7823 | fi |
| 7824 | if test "$hardcode_direct" = yes; then |
| 7825 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" |
| 7826 | else |
| 7827 | if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then |
| 7828 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" |
| 7829 | haveit= |
| 7830 | for x in $rpathdirs; do |
| 7831 | if test "X$x" = "X$found_dir"; then |
| 7832 | haveit=yes |
| 7833 | break |
| 7834 | fi |
| 7835 | done |
| 7836 | if test -z "$haveit"; then |
| 7837 | rpathdirs="$rpathdirs $found_dir" |
| 7838 | fi |
| 7839 | else |
| 7840 | haveit= |
| 7841 | for x in $LDFLAGS $LIBICONV; do |
| 7842 | |
| 7843 | acl_save_prefix="$prefix" |
| 7844 | prefix="$acl_final_prefix" |
| 7845 | acl_save_exec_prefix="$exec_prefix" |
| 7846 | exec_prefix="$acl_final_exec_prefix" |
| 7847 | eval x=\"$x\" |
| 7848 | exec_prefix="$acl_save_exec_prefix" |
| 7849 | prefix="$acl_save_prefix" |
| 7850 | |
| 7851 | if test "X$x" = "X-L$found_dir"; then |
| 7852 | haveit=yes |
| 7853 | break |
| 7854 | fi |
| 7855 | done |
| 7856 | if test -z "$haveit"; then |
| 7857 | LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir" |
| 7858 | fi |
| 7859 | if test "$hardcode_minus_L" != no; then |
| 7860 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" |
| 7861 | else |
| 7862 | LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" |
| 7863 | fi |
| 7864 | fi |
| 7865 | fi |
| 7866 | fi |
| 7867 | else |
| 7868 | if test "X$found_a" != "X"; then |
| 7869 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a" |
| 7870 | else |
| 7871 | LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name" |
| 7872 | fi |
| 7873 | fi |
| 7874 | additional_includedir= |
| 7875 | case "$found_dir" in |
| 7876 | */lib | */lib/) |
| 7877 | basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'` |
| 7878 | additional_includedir="$basedir/include" |
| 7879 | ;; |
| 7880 | esac |
| 7881 | if test "X$additional_includedir" != "X"; then |
| 7882 | if test "X$additional_includedir" != "X/usr/include"; then |
| 7883 | haveit= |
| 7884 | if test "X$additional_includedir" = "X/usr/local/include"; then |
| 7885 | if test -n "$GCC"; then |
| 7886 | case $host_os in |
| 7887 | linux*) haveit=yes;; |
| 7888 | esac |
| 7889 | fi |
| 7890 | fi |
| 7891 | if test -z "$haveit"; then |
| 7892 | for x in $CPPFLAGS $INCICONV; do |
| 7893 | |
| 7894 | acl_save_prefix="$prefix" |
| 7895 | prefix="$acl_final_prefix" |
| 7896 | acl_save_exec_prefix="$exec_prefix" |
| 7897 | exec_prefix="$acl_final_exec_prefix" |
| 7898 | eval x=\"$x\" |
| 7899 | exec_prefix="$acl_save_exec_prefix" |
| 7900 | prefix="$acl_save_prefix" |
| 7901 | |
| 7902 | if test "X$x" = "X-I$additional_includedir"; then |
| 7903 | haveit=yes |
| 7904 | break |
| 7905 | fi |
| 7906 | done |
| 7907 | if test -z "$haveit"; then |
| 7908 | if test -d "$additional_includedir"; then |
| 7909 | INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir" |
| 7910 | fi |
| 7911 | fi |
| 7912 | fi |
| 7913 | fi |
| 7914 | fi |
| 7915 | if test -n "$found_la"; then |
| 7916 | save_libdir="$libdir" |
| 7917 | case "$found_la" in |
| 7918 | */* | *\\*) . "$found_la" ;; |
| 7919 | *) . "./$found_la" ;; |
| 7920 | esac |
| 7921 | libdir="$save_libdir" |
| 7922 | for dep in $dependency_libs; do |
| 7923 | case "$dep" in |
| 7924 | -L*) |
| 7925 | additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` |
| 7926 | if test "X$additional_libdir" != "X/usr/lib"; then |
| 7927 | haveit= |
| 7928 | if test "X$additional_libdir" = "X/usr/local/lib"; then |
| 7929 | if test -n "$GCC"; then |
| 7930 | case $host_os in |
| 7931 | linux*) haveit=yes;; |
| 7932 | esac |
| 7933 | fi |
| 7934 | fi |
| 7935 | if test -z "$haveit"; then |
| 7936 | haveit= |
| 7937 | for x in $LDFLAGS $LIBICONV; do |
| 7938 | |
| 7939 | acl_save_prefix="$prefix" |
| 7940 | prefix="$acl_final_prefix" |
| 7941 | acl_save_exec_prefix="$exec_prefix" |
| 7942 | exec_prefix="$acl_final_exec_prefix" |
| 7943 | eval x=\"$x\" |
| 7944 | exec_prefix="$acl_save_exec_prefix" |
| 7945 | prefix="$acl_save_prefix" |
| 7946 | |
| 7947 | if test "X$x" = "X-L$additional_libdir"; then |
| 7948 | haveit=yes |
| 7949 | break |
| 7950 | fi |
| 7951 | done |
| 7952 | if test -z "$haveit"; then |
| 7953 | if test -d "$additional_libdir"; then |
| 7954 | LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir" |
| 7955 | fi |
| 7956 | fi |
| 7957 | haveit= |
| 7958 | for x in $LDFLAGS $LTLIBICONV; do |
| 7959 | |
| 7960 | acl_save_prefix="$prefix" |
| 7961 | prefix="$acl_final_prefix" |
| 7962 | acl_save_exec_prefix="$exec_prefix" |
| 7963 | exec_prefix="$acl_final_exec_prefix" |
| 7964 | eval x=\"$x\" |
| 7965 | exec_prefix="$acl_save_exec_prefix" |
| 7966 | prefix="$acl_save_prefix" |
| 7967 | |
| 7968 | if test "X$x" = "X-L$additional_libdir"; then |
| 7969 | haveit=yes |
| 7970 | break |
| 7971 | fi |
| 7972 | done |
| 7973 | if test -z "$haveit"; then |
| 7974 | if test -d "$additional_libdir"; then |
| 7975 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir" |
| 7976 | fi |
| 7977 | fi |
| 7978 | fi |
| 7979 | fi |
| 7980 | ;; |
| 7981 | -R*) |
| 7982 | dir=`echo "X$dep" | sed -e 's/^X-R//'` |
| 7983 | if test "$enable_rpath" != no; then |
| 7984 | haveit= |
| 7985 | for x in $rpathdirs; do |
| 7986 | if test "X$x" = "X$dir"; then |
| 7987 | haveit=yes |
| 7988 | break |
| 7989 | fi |
| 7990 | done |
| 7991 | if test -z "$haveit"; then |
| 7992 | rpathdirs="$rpathdirs $dir" |
| 7993 | fi |
| 7994 | haveit= |
| 7995 | for x in $ltrpathdirs; do |
| 7996 | if test "X$x" = "X$dir"; then |
| 7997 | haveit=yes |
| 7998 | break |
| 7999 | fi |
| 8000 | done |
| 8001 | if test -z "$haveit"; then |
| 8002 | ltrpathdirs="$ltrpathdirs $dir" |
| 8003 | fi |
| 8004 | fi |
| 8005 | ;; |
| 8006 | -l*) |
| 8007 | names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` |
| 8008 | ;; |
| 8009 | *.la) |
| 8010 | names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` |
| 8011 | ;; |
| 8012 | *) |
| 8013 | LIBICONV="${LIBICONV}${LIBICONV:+ }$dep" |
| 8014 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep" |
| 8015 | ;; |
| 8016 | esac |
| 8017 | done |
| 8018 | fi |
| 8019 | else |
| 8020 | LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" |
| 8021 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name" |
| 8022 | fi |
| 8023 | fi |
| 8024 | fi |
| 8025 | done |
| 8026 | done |
| 8027 | if test "X$rpathdirs" != "X"; then |
| 8028 | if test -n "$hardcode_libdir_separator"; then |
| 8029 | alldirs= |
| 8030 | for found_dir in $rpathdirs; do |
| 8031 | alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir" |
| 8032 | done |
| 8033 | acl_save_libdir="$libdir" |
| 8034 | libdir="$alldirs" |
| 8035 | eval flag=\"$hardcode_libdir_flag_spec\" |
| 8036 | libdir="$acl_save_libdir" |
| 8037 | LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" |
| 8038 | else |
| 8039 | for found_dir in $rpathdirs; do |
| 8040 | acl_save_libdir="$libdir" |
| 8041 | libdir="$found_dir" |
| 8042 | eval flag=\"$hardcode_libdir_flag_spec\" |
| 8043 | libdir="$acl_save_libdir" |
| 8044 | LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" |
| 8045 | done |
| 8046 | fi |
| 8047 | fi |
| 8048 | if test "X$ltrpathdirs" != "X"; then |
| 8049 | for found_dir in $ltrpathdirs; do |
| 8050 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir" |
| 8051 | done |
| 8052 | fi |
| 8053 | |
| 8054 | |
| 8055 | |
| 8056 | |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 8057 | for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \ |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 8058 | stdlib.h string.h unistd.h sys/param.h |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 8059 | do : |
| 8060 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 8061 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" |
| 8062 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 8063 | cat >>confdefs.h <<_ACEOF |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 8064 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 8065 | _ACEOF |
| 8066 | |
| 8067 | fi |
| 8068 | |
| 8069 | done |
| 8070 | |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 8071 | for ac_func in feof_unlocked fgets_unlocked getc_unlocked getcwd getegid \ |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 8072 | geteuid getgid getuid mempcpy munmap putenv setenv setlocale localeconv stpcpy \ |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 8073 | strcasecmp strdup strtoul tsearch __argz_count __argz_stringify __argz_next \ |
| 8074 | __fsetlocking |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 8075 | do : |
| 8076 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 8077 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
| 8078 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 8079 | cat >>confdefs.h <<_ACEOF |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 8080 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 8081 | _ACEOF |
| 8082 | |
| 8083 | fi |
| 8084 | done |
| 8085 | |
| 8086 | |
| 8087 | |
| 8088 | |
| 8089 | |
| 8090 | |
| 8091 | |
| 8092 | am_save_CPPFLAGS="$CPPFLAGS" |
| 8093 | |
| 8094 | for element in $INCICONV; do |
| 8095 | haveit= |
| 8096 | for x in $CPPFLAGS; do |
| 8097 | |
| 8098 | acl_save_prefix="$prefix" |
| 8099 | prefix="$acl_final_prefix" |
| 8100 | acl_save_exec_prefix="$exec_prefix" |
| 8101 | exec_prefix="$acl_final_exec_prefix" |
| 8102 | eval x=\"$x\" |
| 8103 | exec_prefix="$acl_save_exec_prefix" |
| 8104 | prefix="$acl_save_prefix" |
| 8105 | |
| 8106 | if test "X$x" = "X$element"; then |
| 8107 | haveit=yes |
| 8108 | break |
| 8109 | fi |
| 8110 | done |
| 8111 | if test -z "$haveit"; then |
| 8112 | CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" |
| 8113 | fi |
| 8114 | done |
| 8115 | |
| 8116 | |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 8117 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 8118 | $as_echo_n "checking for iconv... " >&6; } |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 8119 | if ${am_cv_func_iconv+:} false; then : |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 8120 | $as_echo_n "(cached) " >&6 |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 8121 | else |
| 8122 | |
| 8123 | am_cv_func_iconv="no, consider installing GNU libiconv" |
| 8124 | am_cv_lib_iconv=no |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 8125 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Jari Aalto | 0628567 | 2006-10-10 14:15:34 +0000 | [diff] [blame] | 8126 | /* end confdefs.h. */ |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 8127 | #include <stdlib.h> |
| 8128 | #include <iconv.h> |
| 8129 | int |
| 8130 | main () |
| 8131 | { |
| 8132 | iconv_t cd = iconv_open("",""); |
| 8133 | iconv(cd,NULL,NULL,NULL,NULL); |
| 8134 | iconv_close(cd); |
| 8135 | ; |
| 8136 | return 0; |
| 8137 | } |
| 8138 | _ACEOF |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 8139 | if ac_fn_c_try_link "$LINENO"; then : |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 8140 | am_cv_func_iconv=yes |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 8141 | fi |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 8142 | rm -f core conftest.err conftest.$ac_objext \ |
| 8143 | conftest$ac_exeext conftest.$ac_ext |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 8144 | if test "$am_cv_func_iconv" != yes; then |
| 8145 | am_save_LIBS="$LIBS" |
| 8146 | LIBS="$LIBS $LIBICONV" |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 8147 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Jari Aalto | 0628567 | 2006-10-10 14:15:34 +0000 | [diff] [blame] | 8148 | /* end confdefs.h. */ |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 8149 | #include <stdlib.h> |
| 8150 | #include <iconv.h> |
| 8151 | int |
| 8152 | main () |
| 8153 | { |
| 8154 | iconv_t cd = iconv_open("",""); |
| 8155 | iconv(cd,NULL,NULL,NULL,NULL); |
| 8156 | iconv_close(cd); |
| 8157 | ; |
| 8158 | return 0; |
| 8159 | } |
| 8160 | _ACEOF |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 8161 | if ac_fn_c_try_link "$LINENO"; then : |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 8162 | am_cv_lib_iconv=yes |
| 8163 | am_cv_func_iconv=yes |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 8164 | fi |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 8165 | rm -f core conftest.err conftest.$ac_objext \ |
| 8166 | conftest$ac_exeext conftest.$ac_ext |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 8167 | LIBS="$am_save_LIBS" |
| 8168 | fi |
| 8169 | |
| 8170 | fi |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 8171 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 8172 | $as_echo "$am_cv_func_iconv" >&6; } |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 8173 | if test "$am_cv_func_iconv" = yes; then |
| 8174 | |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 8175 | $as_echo "#define HAVE_ICONV 1" >>confdefs.h |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 8176 | |
| 8177 | fi |
| 8178 | if test "$am_cv_lib_iconv" = yes; then |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 8179 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 8180 | $as_echo_n "checking how to link with libiconv... " >&6; } |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 8181 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 8182 | $as_echo "$LIBICONV" >&6; } |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 8183 | else |
| 8184 | CPPFLAGS="$am_save_CPPFLAGS" |
| 8185 | LIBICONV= |
| 8186 | LTLIBICONV= |
| 8187 | fi |
| 8188 | |
| 8189 | |
| 8190 | |
| 8191 | if test "$am_cv_func_iconv" = yes; then |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 8192 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 8193 | $as_echo_n "checking for iconv declaration... " >&6; } |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 8194 | if ${am_cv_proto_iconv+:} false; then : |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 8195 | $as_echo_n "(cached) " >&6 |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 8196 | else |
| 8197 | |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 8198 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Jari Aalto | 0628567 | 2006-10-10 14:15:34 +0000 | [diff] [blame] | 8199 | /* end confdefs.h. */ |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 8200 | |
| 8201 | #include <stdlib.h> |
| 8202 | #include <iconv.h> |
| 8203 | extern |
| 8204 | #ifdef __cplusplus |
| 8205 | "C" |
| 8206 | #endif |
| 8207 | #if defined(__STDC__) || defined(__cplusplus) |
| 8208 | size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft); |
| 8209 | #else |
| 8210 | size_t iconv(); |
| 8211 | #endif |
| 8212 | |
| 8213 | int |
| 8214 | main () |
| 8215 | { |
| 8216 | |
| 8217 | ; |
| 8218 | return 0; |
| 8219 | } |
| 8220 | _ACEOF |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 8221 | if ac_fn_c_try_compile "$LINENO"; then : |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 8222 | am_cv_proto_iconv_arg1="" |
| 8223 | else |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 8224 | am_cv_proto_iconv_arg1="const" |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 8225 | fi |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 8226 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 8227 | am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);" |
| 8228 | fi |
| 8229 | |
| 8230 | am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'` |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 8231 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:- |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 8232 | }$am_cv_proto_iconv" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 8233 | $as_echo "${ac_t:- |
| 8234 | }$am_cv_proto_iconv" >&6; } |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 8235 | |
| 8236 | cat >>confdefs.h <<_ACEOF |
| 8237 | #define ICONV_CONST $am_cv_proto_iconv_arg1 |
| 8238 | _ACEOF |
| 8239 | |
| 8240 | fi |
| 8241 | |
| 8242 | |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 8243 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 8244 | $as_echo_n "checking for nl_langinfo and CODESET... " >&6; } |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 8245 | if ${am_cv_langinfo_codeset+:} false; then : |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 8246 | $as_echo_n "(cached) " >&6 |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 8247 | else |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 8248 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Jari Aalto | 0628567 | 2006-10-10 14:15:34 +0000 | [diff] [blame] | 8249 | /* end confdefs.h. */ |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 8250 | #include <langinfo.h> |
| 8251 | int |
| 8252 | main () |
| 8253 | { |
| 8254 | char* cs = nl_langinfo(CODESET); |
| 8255 | ; |
| 8256 | return 0; |
| 8257 | } |
| 8258 | _ACEOF |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 8259 | if ac_fn_c_try_link "$LINENO"; then : |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 8260 | am_cv_langinfo_codeset=yes |
| 8261 | else |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 8262 | am_cv_langinfo_codeset=no |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 8263 | fi |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 8264 | rm -f core conftest.err conftest.$ac_objext \ |
| 8265 | conftest$ac_exeext conftest.$ac_ext |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 8266 | |
| 8267 | fi |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 8268 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 8269 | $as_echo "$am_cv_langinfo_codeset" >&6; } |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 8270 | if test $am_cv_langinfo_codeset = yes; then |
| 8271 | |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 8272 | $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 8273 | |
| 8274 | fi |
| 8275 | |
| 8276 | if test $ac_cv_header_locale_h = yes; then |
| 8277 | |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 8278 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 8279 | $as_echo_n "checking for LC_MESSAGES... " >&6; } |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 8280 | if ${am_cv_val_LC_MESSAGES+:} false; then : |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 8281 | $as_echo_n "(cached) " >&6 |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 8282 | else |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 8283 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Jari Aalto | 0628567 | 2006-10-10 14:15:34 +0000 | [diff] [blame] | 8284 | /* end confdefs.h. */ |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 8285 | #include <locale.h> |
| 8286 | int |
| 8287 | main () |
| 8288 | { |
| 8289 | return LC_MESSAGES |
| 8290 | ; |
| 8291 | return 0; |
| 8292 | } |
| 8293 | _ACEOF |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 8294 | if ac_fn_c_try_link "$LINENO"; then : |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 8295 | am_cv_val_LC_MESSAGES=yes |
| 8296 | else |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 8297 | am_cv_val_LC_MESSAGES=no |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 8298 | fi |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 8299 | rm -f core conftest.err conftest.$ac_objext \ |
| 8300 | conftest$ac_exeext conftest.$ac_ext |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 8301 | fi |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 8302 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 8303 | $as_echo "$am_cv_val_LC_MESSAGES" >&6; } |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 8304 | if test $am_cv_val_LC_MESSAGES = yes; then |
| 8305 | |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 8306 | $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 8307 | |
| 8308 | fi |
| 8309 | |
| 8310 | fi |
| 8311 | |
| 8312 | for ac_prog in bison |
| 8313 | do |
| 8314 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 8315 | set dummy $ac_prog; ac_word=$2 |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 8316 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 8317 | $as_echo_n "checking for $ac_word... " >&6; } |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 8318 | if ${ac_cv_prog_INTLBISON+:} false; then : |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 8319 | $as_echo_n "(cached) " >&6 |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 8320 | else |
| 8321 | if test -n "$INTLBISON"; then |
| 8322 | ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test. |
| 8323 | else |
| 8324 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8325 | for as_dir in $PATH |
| 8326 | do |
| 8327 | IFS=$as_save_IFS |
| 8328 | test -z "$as_dir" && as_dir=. |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 8329 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 8330 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 8331 | ac_cv_prog_INTLBISON="$ac_prog" |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 8332 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 8333 | break 2 |
| 8334 | fi |
| 8335 | done |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 8336 | done |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 8337 | IFS=$as_save_IFS |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 8338 | |
| 8339 | fi |
| 8340 | fi |
| 8341 | INTLBISON=$ac_cv_prog_INTLBISON |
| 8342 | if test -n "$INTLBISON"; then |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 8343 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLBISON" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 8344 | $as_echo "$INTLBISON" >&6; } |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 8345 | else |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 8346 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 8347 | $as_echo "no" >&6; } |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 8348 | fi |
| 8349 | |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 8350 | |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 8351 | test -n "$INTLBISON" && break |
| 8352 | done |
| 8353 | |
| 8354 | if test -z "$INTLBISON"; then |
| 8355 | ac_verc_fail=yes |
| 8356 | else |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 8357 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of bison" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 8358 | $as_echo_n "checking version of bison... " >&6; } |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 8359 | ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'` |
| 8360 | case $ac_prog_version in |
| 8361 | '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;; |
| 8362 | 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*) |
| 8363 | ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;; |
| 8364 | *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;; |
| 8365 | esac |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 8366 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 8367 | $as_echo "$ac_prog_version" >&6; } |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 8368 | fi |
| 8369 | if test $ac_verc_fail = yes; then |
| 8370 | INTLBISON=: |
| 8371 | fi |
| 8372 | |
| 8373 | |
| 8374 | |
| 8375 | |
| 8376 | |
| 8377 | |
| 8378 | |
| 8379 | |
| 8380 | |
| 8381 | |
| 8382 | |
| 8383 | |
| 8384 | |
| 8385 | |
| 8386 | |
| 8387 | |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 8388 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 8389 | $as_echo_n "checking whether NLS is requested... " >&6; } |
| 8390 | # Check whether --enable-nls was given. |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 8391 | if test "${enable_nls+set}" = set; then : |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 8392 | enableval=$enable_nls; USE_NLS=$enableval |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 8393 | else |
| 8394 | USE_NLS=yes |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 8395 | fi |
| 8396 | |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 8397 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 8398 | $as_echo "$USE_NLS" >&6; } |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 8399 | |
| 8400 | |
| 8401 | |
| 8402 | |
| 8403 | BUILD_INCLUDED_LIBINTL=no |
| 8404 | USE_INCLUDED_LIBINTL=no |
| 8405 | |
| 8406 | LIBINTL= |
| 8407 | LTLIBINTL= |
| 8408 | POSUB= |
| 8409 | |
| 8410 | if test "$USE_NLS" = "yes"; then |
| 8411 | gt_use_preinstalled_gnugettext=no |
| 8412 | |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 8413 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether included gettext is requested" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 8414 | $as_echo_n "checking whether included gettext is requested... " >&6; } |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 8415 | |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 8416 | # Check whether --with-included-gettext was given. |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 8417 | if test "${with_included_gettext+set}" = set; then : |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 8418 | withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 8419 | else |
| 8420 | nls_cv_force_use_gnu_gettext=no |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 8421 | fi |
| 8422 | |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 8423 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nls_cv_force_use_gnu_gettext" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 8424 | $as_echo "$nls_cv_force_use_gnu_gettext" >&6; } |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 8425 | |
| 8426 | nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext" |
| 8427 | if test "$nls_cv_force_use_gnu_gettext" != "yes"; then |
| 8428 | |
| 8429 | |
| 8430 | |
| 8431 | |
| 8432 | |
| 8433 | |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 8434 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 8435 | $as_echo_n "checking for GNU gettext in libc... " >&6; } |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 8436 | if ${gt_cv_func_gnugettext2_libc+:} false; then : |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 8437 | $as_echo_n "(cached) " >&6 |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 8438 | else |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 8439 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Jari Aalto | 0628567 | 2006-10-10 14:15:34 +0000 | [diff] [blame] | 8440 | /* end confdefs.h. */ |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 8441 | #include <libintl.h> |
| 8442 | extern int _nl_msg_cat_cntr; |
| 8443 | extern int *_nl_domain_bindings; |
| 8444 | int |
| 8445 | main () |
| 8446 | { |
| 8447 | bindtextdomain ("", ""); |
| 8448 | return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_domain_bindings |
| 8449 | ; |
| 8450 | return 0; |
| 8451 | } |
| 8452 | _ACEOF |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 8453 | if ac_fn_c_try_link "$LINENO"; then : |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 8454 | gt_cv_func_gnugettext2_libc=yes |
| 8455 | else |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 8456 | gt_cv_func_gnugettext2_libc=no |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 8457 | fi |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 8458 | rm -f core conftest.err conftest.$ac_objext \ |
| 8459 | conftest$ac_exeext conftest.$ac_ext |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 8460 | fi |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 8461 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext2_libc" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 8462 | $as_echo "$gt_cv_func_gnugettext2_libc" >&6; } |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 8463 | |
| 8464 | if test "$gt_cv_func_gnugettext2_libc" != "yes"; then |
| 8465 | |
| 8466 | |
| 8467 | |
| 8468 | use_additional=yes |
| 8469 | |
| 8470 | acl_save_prefix="$prefix" |
| 8471 | prefix="$acl_final_prefix" |
| 8472 | acl_save_exec_prefix="$exec_prefix" |
| 8473 | exec_prefix="$acl_final_exec_prefix" |
| 8474 | |
| 8475 | eval additional_includedir=\"$includedir\" |
| 8476 | eval additional_libdir=\"$libdir\" |
| 8477 | |
| 8478 | exec_prefix="$acl_save_exec_prefix" |
| 8479 | prefix="$acl_save_prefix" |
| 8480 | |
| 8481 | |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 8482 | # Check whether --with-libintl-prefix was given. |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 8483 | if test "${with_libintl_prefix+set}" = set; then : |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 8484 | withval=$with_libintl_prefix; |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 8485 | if test "X$withval" = "Xno"; then |
| 8486 | use_additional=no |
| 8487 | else |
| 8488 | if test "X$withval" = "X"; then |
| 8489 | |
| 8490 | acl_save_prefix="$prefix" |
| 8491 | prefix="$acl_final_prefix" |
| 8492 | acl_save_exec_prefix="$exec_prefix" |
| 8493 | exec_prefix="$acl_final_exec_prefix" |
| 8494 | |
| 8495 | eval additional_includedir=\"$includedir\" |
| 8496 | eval additional_libdir=\"$libdir\" |
| 8497 | |
| 8498 | exec_prefix="$acl_save_exec_prefix" |
| 8499 | prefix="$acl_save_prefix" |
| 8500 | |
| 8501 | else |
| 8502 | additional_includedir="$withval/include" |
| 8503 | additional_libdir="$withval/lib" |
| 8504 | fi |
| 8505 | fi |
| 8506 | |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 8507 | fi |
| 8508 | |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 8509 | LIBINTL= |
| 8510 | LTLIBINTL= |
| 8511 | INCINTL= |
| 8512 | rpathdirs= |
| 8513 | ltrpathdirs= |
| 8514 | names_already_handled= |
| 8515 | names_next_round='intl ' |
| 8516 | while test -n "$names_next_round"; do |
| 8517 | names_this_round="$names_next_round" |
| 8518 | names_next_round= |
| 8519 | for name in $names_this_round; do |
| 8520 | already_handled= |
| 8521 | for n in $names_already_handled; do |
| 8522 | if test "$n" = "$name"; then |
| 8523 | already_handled=yes |
| 8524 | break |
| 8525 | fi |
| 8526 | done |
| 8527 | if test -z "$already_handled"; then |
| 8528 | names_already_handled="$names_already_handled $name" |
| 8529 | uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'` |
| 8530 | eval value=\"\$HAVE_LIB$uppername\" |
| 8531 | if test -n "$value"; then |
| 8532 | if test "$value" = yes; then |
| 8533 | eval value=\"\$LIB$uppername\" |
| 8534 | test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value" |
| 8535 | eval value=\"\$LTLIB$uppername\" |
| 8536 | test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value" |
| 8537 | else |
| 8538 | : |
| 8539 | fi |
| 8540 | else |
| 8541 | found_dir= |
| 8542 | found_la= |
| 8543 | found_so= |
| 8544 | found_a= |
| 8545 | if test $use_additional = yes; then |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 8546 | if test "X$prefer_shared" = "Xyes" && test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 8547 | found_dir="$additional_libdir" |
| 8548 | found_so="$additional_libdir/lib$name.$shlibext" |
| 8549 | if test -f "$additional_libdir/lib$name.la"; then |
| 8550 | found_la="$additional_libdir/lib$name.la" |
| 8551 | fi |
| 8552 | else |
| 8553 | if test -f "$additional_libdir/lib$name.$libext"; then |
| 8554 | found_dir="$additional_libdir" |
| 8555 | found_a="$additional_libdir/lib$name.$libext" |
| 8556 | if test -f "$additional_libdir/lib$name.la"; then |
| 8557 | found_la="$additional_libdir/lib$name.la" |
| 8558 | fi |
| 8559 | fi |
| 8560 | fi |
| 8561 | fi |
| 8562 | if test "X$found_dir" = "X"; then |
| 8563 | for x in $LDFLAGS $LTLIBINTL; do |
| 8564 | |
| 8565 | acl_save_prefix="$prefix" |
| 8566 | prefix="$acl_final_prefix" |
| 8567 | acl_save_exec_prefix="$exec_prefix" |
| 8568 | exec_prefix="$acl_final_exec_prefix" |
| 8569 | eval x=\"$x\" |
| 8570 | exec_prefix="$acl_save_exec_prefix" |
| 8571 | prefix="$acl_save_prefix" |
| 8572 | |
| 8573 | case "$x" in |
| 8574 | -L*) |
| 8575 | dir=`echo "X$x" | sed -e 's/^X-L//'` |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 8576 | if test "X$prefer_shared" = "Xyes" && test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 8577 | found_dir="$dir" |
| 8578 | found_so="$dir/lib$name.$shlibext" |
| 8579 | if test -f "$dir/lib$name.la"; then |
| 8580 | found_la="$dir/lib$name.la" |
| 8581 | fi |
| 8582 | else |
| 8583 | if test -f "$dir/lib$name.$libext"; then |
| 8584 | found_dir="$dir" |
| 8585 | found_a="$dir/lib$name.$libext" |
| 8586 | if test -f "$dir/lib$name.la"; then |
| 8587 | found_la="$dir/lib$name.la" |
| 8588 | fi |
| 8589 | fi |
| 8590 | fi |
| 8591 | ;; |
| 8592 | esac |
| 8593 | if test "X$found_dir" != "X"; then |
| 8594 | break |
| 8595 | fi |
| 8596 | done |
| 8597 | fi |
| 8598 | if test "X$found_dir" != "X"; then |
| 8599 | LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name" |
| 8600 | if test "X$found_so" != "X"; then |
| 8601 | if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then |
| 8602 | LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" |
| 8603 | else |
| 8604 | haveit= |
| 8605 | for x in $ltrpathdirs; do |
| 8606 | if test "X$x" = "X$found_dir"; then |
| 8607 | haveit=yes |
| 8608 | break |
| 8609 | fi |
| 8610 | done |
| 8611 | if test -z "$haveit"; then |
| 8612 | ltrpathdirs="$ltrpathdirs $found_dir" |
| 8613 | fi |
| 8614 | if test "$hardcode_direct" = yes; then |
| 8615 | LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" |
| 8616 | else |
| 8617 | if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then |
| 8618 | LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" |
| 8619 | haveit= |
| 8620 | for x in $rpathdirs; do |
| 8621 | if test "X$x" = "X$found_dir"; then |
| 8622 | haveit=yes |
| 8623 | break |
| 8624 | fi |
| 8625 | done |
| 8626 | if test -z "$haveit"; then |
| 8627 | rpathdirs="$rpathdirs $found_dir" |
| 8628 | fi |
| 8629 | else |
| 8630 | haveit= |
| 8631 | for x in $LDFLAGS $LIBINTL; do |
| 8632 | |
| 8633 | acl_save_prefix="$prefix" |
| 8634 | prefix="$acl_final_prefix" |
| 8635 | acl_save_exec_prefix="$exec_prefix" |
| 8636 | exec_prefix="$acl_final_exec_prefix" |
| 8637 | eval x=\"$x\" |
| 8638 | exec_prefix="$acl_save_exec_prefix" |
| 8639 | prefix="$acl_save_prefix" |
| 8640 | |
| 8641 | if test "X$x" = "X-L$found_dir"; then |
| 8642 | haveit=yes |
| 8643 | break |
| 8644 | fi |
| 8645 | done |
| 8646 | if test -z "$haveit"; then |
| 8647 | LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir" |
| 8648 | fi |
| 8649 | if test "$hardcode_minus_L" != no; then |
| 8650 | LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" |
| 8651 | else |
| 8652 | LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name" |
| 8653 | fi |
| 8654 | fi |
| 8655 | fi |
| 8656 | fi |
| 8657 | else |
| 8658 | if test "X$found_a" != "X"; then |
| 8659 | LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a" |
| 8660 | else |
| 8661 | LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name" |
| 8662 | fi |
| 8663 | fi |
| 8664 | additional_includedir= |
| 8665 | case "$found_dir" in |
| 8666 | */lib | */lib/) |
| 8667 | basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'` |
| 8668 | additional_includedir="$basedir/include" |
| 8669 | ;; |
| 8670 | esac |
| 8671 | if test "X$additional_includedir" != "X"; then |
| 8672 | if test "X$additional_includedir" != "X/usr/include"; then |
| 8673 | haveit= |
| 8674 | if test "X$additional_includedir" = "X/usr/local/include"; then |
| 8675 | if test -n "$GCC"; then |
| 8676 | case $host_os in |
| 8677 | linux*) haveit=yes;; |
| 8678 | esac |
| 8679 | fi |
| 8680 | fi |
| 8681 | if test -z "$haveit"; then |
| 8682 | for x in $CPPFLAGS $INCINTL; do |
| 8683 | |
| 8684 | acl_save_prefix="$prefix" |
| 8685 | prefix="$acl_final_prefix" |
| 8686 | acl_save_exec_prefix="$exec_prefix" |
| 8687 | exec_prefix="$acl_final_exec_prefix" |
| 8688 | eval x=\"$x\" |
| 8689 | exec_prefix="$acl_save_exec_prefix" |
| 8690 | prefix="$acl_save_prefix" |
| 8691 | |
| 8692 | if test "X$x" = "X-I$additional_includedir"; then |
| 8693 | haveit=yes |
| 8694 | break |
| 8695 | fi |
| 8696 | done |
| 8697 | if test -z "$haveit"; then |
| 8698 | if test -d "$additional_includedir"; then |
| 8699 | INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir" |
| 8700 | fi |
| 8701 | fi |
| 8702 | fi |
| 8703 | fi |
| 8704 | fi |
| 8705 | if test -n "$found_la"; then |
| 8706 | save_libdir="$libdir" |
| 8707 | case "$found_la" in |
| 8708 | */* | *\\*) . "$found_la" ;; |
| 8709 | *) . "./$found_la" ;; |
| 8710 | esac |
| 8711 | libdir="$save_libdir" |
| 8712 | for dep in $dependency_libs; do |
| 8713 | case "$dep" in |
| 8714 | -L*) |
| 8715 | additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` |
| 8716 | if test "X$additional_libdir" != "X/usr/lib"; then |
| 8717 | haveit= |
| 8718 | if test "X$additional_libdir" = "X/usr/local/lib"; then |
| 8719 | if test -n "$GCC"; then |
| 8720 | case $host_os in |
| 8721 | linux*) haveit=yes;; |
| 8722 | esac |
| 8723 | fi |
| 8724 | fi |
| 8725 | if test -z "$haveit"; then |
| 8726 | haveit= |
| 8727 | for x in $LDFLAGS $LIBINTL; do |
| 8728 | |
| 8729 | acl_save_prefix="$prefix" |
| 8730 | prefix="$acl_final_prefix" |
| 8731 | acl_save_exec_prefix="$exec_prefix" |
| 8732 | exec_prefix="$acl_final_exec_prefix" |
| 8733 | eval x=\"$x\" |
| 8734 | exec_prefix="$acl_save_exec_prefix" |
| 8735 | prefix="$acl_save_prefix" |
| 8736 | |
| 8737 | if test "X$x" = "X-L$additional_libdir"; then |
| 8738 | haveit=yes |
| 8739 | break |
| 8740 | fi |
| 8741 | done |
| 8742 | if test -z "$haveit"; then |
| 8743 | if test -d "$additional_libdir"; then |
| 8744 | LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir" |
| 8745 | fi |
| 8746 | fi |
| 8747 | haveit= |
| 8748 | for x in $LDFLAGS $LTLIBINTL; do |
| 8749 | |
| 8750 | acl_save_prefix="$prefix" |
| 8751 | prefix="$acl_final_prefix" |
| 8752 | acl_save_exec_prefix="$exec_prefix" |
| 8753 | exec_prefix="$acl_final_exec_prefix" |
| 8754 | eval x=\"$x\" |
| 8755 | exec_prefix="$acl_save_exec_prefix" |
| 8756 | prefix="$acl_save_prefix" |
| 8757 | |
| 8758 | if test "X$x" = "X-L$additional_libdir"; then |
| 8759 | haveit=yes |
| 8760 | break |
| 8761 | fi |
| 8762 | done |
| 8763 | if test -z "$haveit"; then |
| 8764 | if test -d "$additional_libdir"; then |
| 8765 | LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir" |
| 8766 | fi |
| 8767 | fi |
| 8768 | fi |
| 8769 | fi |
| 8770 | ;; |
| 8771 | -R*) |
| 8772 | dir=`echo "X$dep" | sed -e 's/^X-R//'` |
| 8773 | if test "$enable_rpath" != no; then |
| 8774 | haveit= |
| 8775 | for x in $rpathdirs; do |
| 8776 | if test "X$x" = "X$dir"; then |
| 8777 | haveit=yes |
| 8778 | break |
| 8779 | fi |
| 8780 | done |
| 8781 | if test -z "$haveit"; then |
| 8782 | rpathdirs="$rpathdirs $dir" |
| 8783 | fi |
| 8784 | haveit= |
| 8785 | for x in $ltrpathdirs; do |
| 8786 | if test "X$x" = "X$dir"; then |
| 8787 | haveit=yes |
| 8788 | break |
| 8789 | fi |
| 8790 | done |
| 8791 | if test -z "$haveit"; then |
| 8792 | ltrpathdirs="$ltrpathdirs $dir" |
| 8793 | fi |
| 8794 | fi |
| 8795 | ;; |
| 8796 | -l*) |
| 8797 | names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` |
| 8798 | ;; |
| 8799 | *.la) |
| 8800 | names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` |
| 8801 | ;; |
| 8802 | *) |
| 8803 | LIBINTL="${LIBINTL}${LIBINTL:+ }$dep" |
| 8804 | LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep" |
| 8805 | ;; |
| 8806 | esac |
| 8807 | done |
| 8808 | fi |
| 8809 | else |
| 8810 | LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name" |
| 8811 | LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name" |
| 8812 | fi |
| 8813 | fi |
| 8814 | fi |
| 8815 | done |
| 8816 | done |
| 8817 | if test "X$rpathdirs" != "X"; then |
| 8818 | if test -n "$hardcode_libdir_separator"; then |
| 8819 | alldirs= |
| 8820 | for found_dir in $rpathdirs; do |
| 8821 | alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir" |
| 8822 | done |
| 8823 | acl_save_libdir="$libdir" |
| 8824 | libdir="$alldirs" |
| 8825 | eval flag=\"$hardcode_libdir_flag_spec\" |
| 8826 | libdir="$acl_save_libdir" |
| 8827 | LIBINTL="${LIBINTL}${LIBINTL:+ }$flag" |
| 8828 | else |
| 8829 | for found_dir in $rpathdirs; do |
| 8830 | acl_save_libdir="$libdir" |
| 8831 | libdir="$found_dir" |
| 8832 | eval flag=\"$hardcode_libdir_flag_spec\" |
| 8833 | libdir="$acl_save_libdir" |
| 8834 | LIBINTL="${LIBINTL}${LIBINTL:+ }$flag" |
| 8835 | done |
| 8836 | fi |
| 8837 | fi |
| 8838 | if test "X$ltrpathdirs" != "X"; then |
| 8839 | for found_dir in $ltrpathdirs; do |
| 8840 | LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir" |
| 8841 | done |
| 8842 | fi |
| 8843 | |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 8844 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 8845 | $as_echo_n "checking for GNU gettext in libintl... " >&6; } |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 8846 | if ${gt_cv_func_gnugettext2_libintl+:} false; then : |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 8847 | $as_echo_n "(cached) " >&6 |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 8848 | else |
| 8849 | gt_save_CPPFLAGS="$CPPFLAGS" |
| 8850 | CPPFLAGS="$CPPFLAGS $INCINTL" |
| 8851 | gt_save_LIBS="$LIBS" |
| 8852 | LIBS="$LIBS $LIBINTL" |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 8853 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Jari Aalto | 0628567 | 2006-10-10 14:15:34 +0000 | [diff] [blame] | 8854 | /* end confdefs.h. */ |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 8855 | #include <libintl.h> |
| 8856 | extern int _nl_msg_cat_cntr; |
| 8857 | extern |
| 8858 | #ifdef __cplusplus |
| 8859 | "C" |
| 8860 | #endif |
| 8861 | const char *_nl_expand_alias (); |
| 8862 | int |
| 8863 | main () |
| 8864 | { |
| 8865 | bindtextdomain ("", ""); |
| 8866 | return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_expand_alias (0) |
| 8867 | ; |
| 8868 | return 0; |
| 8869 | } |
| 8870 | _ACEOF |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 8871 | if ac_fn_c_try_link "$LINENO"; then : |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 8872 | gt_cv_func_gnugettext2_libintl=yes |
| 8873 | else |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 8874 | gt_cv_func_gnugettext2_libintl=no |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 8875 | fi |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 8876 | rm -f core conftest.err conftest.$ac_objext \ |
| 8877 | conftest$ac_exeext conftest.$ac_ext |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 8878 | if test "$gt_cv_func_gnugettext2_libintl" != yes && test -n "$LIBICONV"; then |
| 8879 | LIBS="$LIBS $LIBICONV" |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 8880 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Jari Aalto | 0628567 | 2006-10-10 14:15:34 +0000 | [diff] [blame] | 8881 | /* end confdefs.h. */ |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 8882 | #include <libintl.h> |
| 8883 | extern int _nl_msg_cat_cntr; |
| 8884 | extern |
| 8885 | #ifdef __cplusplus |
| 8886 | "C" |
| 8887 | #endif |
| 8888 | const char *_nl_expand_alias (); |
| 8889 | int |
| 8890 | main () |
| 8891 | { |
| 8892 | bindtextdomain ("", ""); |
| 8893 | return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_expand_alias (0) |
| 8894 | ; |
| 8895 | return 0; |
| 8896 | } |
| 8897 | _ACEOF |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 8898 | if ac_fn_c_try_link "$LINENO"; then : |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 8899 | LIBINTL="$LIBINTL $LIBICONV" |
| 8900 | LTLIBINTL="$LTLIBINTL $LTLIBICONV" |
| 8901 | gt_cv_func_gnugettext2_libintl=yes |
| 8902 | |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 8903 | fi |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 8904 | rm -f core conftest.err conftest.$ac_objext \ |
| 8905 | conftest$ac_exeext conftest.$ac_ext |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 8906 | fi |
| 8907 | CPPFLAGS="$gt_save_CPPFLAGS" |
| 8908 | LIBS="$gt_save_LIBS" |
| 8909 | fi |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 8910 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext2_libintl" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 8911 | $as_echo "$gt_cv_func_gnugettext2_libintl" >&6; } |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 8912 | fi |
| 8913 | |
| 8914 | if test "$gt_cv_func_gnugettext2_libc" = "yes" \ |
| 8915 | || { test "$gt_cv_func_gnugettext2_libintl" = "yes" \ |
| 8916 | && test "$PACKAGE" != gettext-runtime \ |
| 8917 | && test "$PACKAGE" != gettext-tools; }; then |
| 8918 | gt_use_preinstalled_gnugettext=yes |
| 8919 | else |
| 8920 | LIBINTL= |
| 8921 | LTLIBINTL= |
| 8922 | INCINTL= |
| 8923 | fi |
| 8924 | |
| 8925 | |
| 8926 | if test "$gt_use_preinstalled_gnugettext" != "yes"; then |
| 8927 | nls_cv_use_gnu_gettext=yes |
| 8928 | fi |
| 8929 | fi |
| 8930 | |
| 8931 | if test "$nls_cv_use_gnu_gettext" = "yes"; then |
| 8932 | BUILD_INCLUDED_LIBINTL=yes |
| 8933 | USE_INCLUDED_LIBINTL=yes |
| 8934 | LIBINTL="lib/intl/libintl.a $LIBICONV" |
| 8935 | LTLIBINTL="lib/intl/libintl.a $LTLIBICONV" |
| 8936 | LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'` |
| 8937 | fi |
| 8938 | |
| 8939 | if test "$gt_use_preinstalled_gnugettext" = "yes" \ |
| 8940 | || test "$nls_cv_use_gnu_gettext" = "yes"; then |
| 8941 | CATOBJEXT=.gmo |
| 8942 | fi |
| 8943 | |
| 8944 | |
| 8945 | if test "$gt_use_preinstalled_gnugettext" = "yes" \ |
| 8946 | || test "$nls_cv_use_gnu_gettext" = "yes"; then |
| 8947 | |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 8948 | $as_echo "#define ENABLE_NLS 1" >>confdefs.h |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 8949 | |
| 8950 | else |
| 8951 | USE_NLS=no |
| 8952 | fi |
| 8953 | fi |
| 8954 | |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 8955 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 8956 | $as_echo_n "checking whether to use NLS... " >&6; } |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 8957 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 8958 | $as_echo "$USE_NLS" >&6; } |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 8959 | if test "$USE_NLS" = "yes"; then |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 8960 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 8961 | $as_echo_n "checking where the gettext function comes from... " >&6; } |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 8962 | if test "$gt_use_preinstalled_gnugettext" = "yes"; then |
| 8963 | if test "$gt_cv_func_gnugettext2_libintl" = "yes"; then |
| 8964 | gt_source="external libintl" |
| 8965 | else |
| 8966 | gt_source="libc" |
| 8967 | fi |
| 8968 | else |
| 8969 | gt_source="included intl directory" |
| 8970 | fi |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 8971 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 8972 | $as_echo "$gt_source" >&6; } |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 8973 | fi |
| 8974 | |
| 8975 | if test "$USE_NLS" = "yes"; then |
| 8976 | |
| 8977 | if test "$gt_use_preinstalled_gnugettext" = "yes"; then |
| 8978 | if test "$gt_cv_func_gnugettext2_libintl" = "yes"; then |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 8979 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 8980 | $as_echo_n "checking how to link with libintl... " >&6; } |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 8981 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 8982 | $as_echo "$LIBINTL" >&6; } |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 8983 | |
| 8984 | for element in $INCINTL; do |
| 8985 | haveit= |
| 8986 | for x in $CPPFLAGS; do |
| 8987 | |
| 8988 | acl_save_prefix="$prefix" |
| 8989 | prefix="$acl_final_prefix" |
| 8990 | acl_save_exec_prefix="$exec_prefix" |
| 8991 | exec_prefix="$acl_final_exec_prefix" |
| 8992 | eval x=\"$x\" |
| 8993 | exec_prefix="$acl_save_exec_prefix" |
| 8994 | prefix="$acl_save_prefix" |
| 8995 | |
| 8996 | if test "X$x" = "X$element"; then |
| 8997 | haveit=yes |
| 8998 | break |
| 8999 | fi |
| 9000 | done |
| 9001 | if test -z "$haveit"; then |
| 9002 | CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" |
| 9003 | fi |
| 9004 | done |
| 9005 | |
| 9006 | fi |
| 9007 | |
| 9008 | |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 9009 | $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 9010 | |
| 9011 | |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 9012 | $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 9013 | |
| 9014 | fi |
| 9015 | |
| 9016 | POSUB=po |
| 9017 | fi |
| 9018 | |
| 9019 | |
| 9020 | if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then |
| 9021 | BUILD_INCLUDED_LIBINTL=yes |
| 9022 | fi |
| 9023 | |
| 9024 | |
| 9025 | |
| 9026 | |
| 9027 | |
| 9028 | nls_cv_header_intl= |
| 9029 | nls_cv_header_libgt= |
| 9030 | |
| 9031 | DATADIRNAME=share |
| 9032 | |
| 9033 | |
| 9034 | INSTOBJEXT=.mo |
| 9035 | |
| 9036 | |
| 9037 | GENCAT=gencat |
| 9038 | |
| 9039 | |
| 9040 | if test "$USE_INCLUDED_LIBINTL" = yes; then |
| 9041 | INTLOBJS="\$(GETTOBJS)" |
| 9042 | fi |
| 9043 | |
| 9044 | |
| 9045 | INTL_LIBTOOL_SUFFIX_PREFIX= |
| 9046 | |
| 9047 | |
| 9048 | |
| 9049 | INTLLIBS="$LIBINTL" |
| 9050 | |
| 9051 | |
| 9052 | |
| 9053 | |
| 9054 | |
| 9055 | |
| 9056 | |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 9057 | ac_header_dirent=no |
| 9058 | for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 9059 | as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 9060 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 9061 | $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; } |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 9062 | if eval \${$as_ac_Header+:} false; then : |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 9063 | $as_echo_n "(cached) " >&6 |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 9064 | else |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 9065 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Jari Aalto | 0628567 | 2006-10-10 14:15:34 +0000 | [diff] [blame] | 9066 | /* end confdefs.h. */ |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 9067 | #include <sys/types.h> |
| 9068 | #include <$ac_hdr> |
| 9069 | |
| 9070 | int |
| 9071 | main () |
| 9072 | { |
| 9073 | if ((DIR *) 0) |
| 9074 | return 0; |
| 9075 | ; |
| 9076 | return 0; |
| 9077 | } |
| 9078 | _ACEOF |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 9079 | if ac_fn_c_try_compile "$LINENO"; then : |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 9080 | eval "$as_ac_Header=yes" |
| 9081 | else |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 9082 | eval "$as_ac_Header=no" |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 9083 | fi |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 9084 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 9085 | fi |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 9086 | eval ac_res=\$$as_ac_Header |
| 9087 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 9088 | $as_echo "$ac_res" >&6; } |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 9089 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 9090 | cat >>confdefs.h <<_ACEOF |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 9091 | #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 9092 | _ACEOF |
| 9093 | |
| 9094 | ac_header_dirent=$ac_hdr; break |
| 9095 | fi |
| 9096 | |
| 9097 | done |
| 9098 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. |
| 9099 | if test $ac_header_dirent = dirent.h; then |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 9100 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 9101 | $as_echo_n "checking for library containing opendir... " >&6; } |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 9102 | if ${ac_cv_search_opendir+:} false; then : |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 9103 | $as_echo_n "(cached) " >&6 |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 9104 | else |
| 9105 | ac_func_search_save_LIBS=$LIBS |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 9106 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Jari Aalto | 0628567 | 2006-10-10 14:15:34 +0000 | [diff] [blame] | 9107 | /* end confdefs.h. */ |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 9108 | |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 9109 | /* Override any GCC internal prototype to avoid an error. |
| 9110 | Use char because int might match the return type of a GCC |
| 9111 | builtin and then its argument prototype would still apply. */ |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 9112 | #ifdef __cplusplus |
| 9113 | extern "C" |
| 9114 | #endif |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 9115 | char opendir (); |
| 9116 | int |
| 9117 | main () |
| 9118 | { |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 9119 | return opendir (); |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 9120 | ; |
| 9121 | return 0; |
| 9122 | } |
| 9123 | _ACEOF |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 9124 | for ac_lib in '' dir; do |
| 9125 | if test -z "$ac_lib"; then |
| 9126 | ac_res="none required" |
| 9127 | else |
| 9128 | ac_res=-l$ac_lib |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 9129 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 9130 | fi |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 9131 | if ac_fn_c_try_link "$LINENO"; then : |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 9132 | ac_cv_search_opendir=$ac_res |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 9133 | fi |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 9134 | rm -f core conftest.err conftest.$ac_objext \ |
| 9135 | conftest$ac_exeext |
| 9136 | if ${ac_cv_search_opendir+:} false; then : |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 9137 | break |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 9138 | fi |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 9139 | done |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 9140 | if ${ac_cv_search_opendir+:} false; then : |
| 9141 | |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 9142 | else |
| 9143 | ac_cv_search_opendir=no |
| 9144 | fi |
| 9145 | rm conftest.$ac_ext |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 9146 | LIBS=$ac_func_search_save_LIBS |
| 9147 | fi |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 9148 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 9149 | $as_echo "$ac_cv_search_opendir" >&6; } |
| 9150 | ac_res=$ac_cv_search_opendir |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 9151 | if test "$ac_res" != no; then : |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 9152 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 9153 | |
| 9154 | fi |
| 9155 | |
| 9156 | else |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 9157 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 9158 | $as_echo_n "checking for library containing opendir... " >&6; } |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 9159 | if ${ac_cv_search_opendir+:} false; then : |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 9160 | $as_echo_n "(cached) " >&6 |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 9161 | else |
| 9162 | ac_func_search_save_LIBS=$LIBS |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 9163 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Jari Aalto | 0628567 | 2006-10-10 14:15:34 +0000 | [diff] [blame] | 9164 | /* end confdefs.h. */ |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 9165 | |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 9166 | /* Override any GCC internal prototype to avoid an error. |
| 9167 | Use char because int might match the return type of a GCC |
| 9168 | builtin and then its argument prototype would still apply. */ |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 9169 | #ifdef __cplusplus |
| 9170 | extern "C" |
| 9171 | #endif |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 9172 | char opendir (); |
| 9173 | int |
| 9174 | main () |
| 9175 | { |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 9176 | return opendir (); |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 9177 | ; |
| 9178 | return 0; |
| 9179 | } |
| 9180 | _ACEOF |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 9181 | for ac_lib in '' x; do |
| 9182 | if test -z "$ac_lib"; then |
| 9183 | ac_res="none required" |
| 9184 | else |
| 9185 | ac_res=-l$ac_lib |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 9186 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 9187 | fi |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 9188 | if ac_fn_c_try_link "$LINENO"; then : |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 9189 | ac_cv_search_opendir=$ac_res |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 9190 | fi |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 9191 | rm -f core conftest.err conftest.$ac_objext \ |
| 9192 | conftest$ac_exeext |
| 9193 | if ${ac_cv_search_opendir+:} false; then : |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 9194 | break |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 9195 | fi |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 9196 | done |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 9197 | if ${ac_cv_search_opendir+:} false; then : |
| 9198 | |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 9199 | else |
| 9200 | ac_cv_search_opendir=no |
| 9201 | fi |
| 9202 | rm conftest.$ac_ext |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 9203 | LIBS=$ac_func_search_save_LIBS |
| 9204 | fi |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 9205 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 9206 | $as_echo "$ac_cv_search_opendir" >&6; } |
| 9207 | ac_res=$ac_cv_search_opendir |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 9208 | if test "$ac_res" != no; then : |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 9209 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 9210 | |
| 9211 | fi |
| 9212 | |
| 9213 | fi |
| 9214 | |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 9215 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 9216 | $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; } |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 9217 | if ${ac_cv_header_time+:} false; then : |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 9218 | $as_echo_n "(cached) " >&6 |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 9219 | else |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 9220 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Jari Aalto | 0628567 | 2006-10-10 14:15:34 +0000 | [diff] [blame] | 9221 | /* end confdefs.h. */ |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 9222 | #include <sys/types.h> |
| 9223 | #include <sys/time.h> |
| 9224 | #include <time.h> |
| 9225 | |
| 9226 | int |
| 9227 | main () |
| 9228 | { |
| 9229 | if ((struct tm *) 0) |
| 9230 | return 0; |
| 9231 | ; |
| 9232 | return 0; |
| 9233 | } |
| 9234 | _ACEOF |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 9235 | if ac_fn_c_try_compile "$LINENO"; then : |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 9236 | ac_cv_header_time=yes |
| 9237 | else |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 9238 | ac_cv_header_time=no |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 9239 | fi |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 9240 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 9241 | fi |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 9242 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 9243 | $as_echo "$ac_cv_header_time" >&6; } |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 9244 | if test $ac_cv_header_time = yes; then |
| 9245 | |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 9246 | $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 9247 | |
| 9248 | fi |
| 9249 | |
| 9250 | |
| 9251 | |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 9252 | for ac_header in inttypes.h |
| 9253 | do : |
| 9254 | ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default" |
| 9255 | if test "x$ac_cv_header_inttypes_h" = xyes; then : |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 9256 | cat >>confdefs.h <<_ACEOF |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 9257 | #define HAVE_INTTYPES_H 1 |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 9258 | _ACEOF |
| 9259 | |
| 9260 | fi |
| 9261 | |
| 9262 | done |
| 9263 | |
| 9264 | |
| 9265 | |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 9266 | for ac_header in unistd.h stdlib.h stdarg.h varargs.h limits.h string.h \ |
| 9267 | memory.h locale.h termcap.h termio.h termios.h dlfcn.h \ |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 9268 | stdbool.h stddef.h stdint.h netdb.h pwd.h grp.h strings.h \ |
| 9269 | regex.h syslog.h ulimit.h |
| 9270 | do : |
| 9271 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 9272 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" |
| 9273 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 9274 | cat >>confdefs.h <<_ACEOF |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 9275 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 9276 | _ACEOF |
| 9277 | |
| 9278 | fi |
| 9279 | |
| 9280 | done |
| 9281 | |
Jari Aalto | 95732b4 | 2005-12-07 14:08:12 +0000 | [diff] [blame] | 9282 | for ac_header in sys/pte.h sys/stream.h sys/select.h sys/file.h \ |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 9283 | sys/resource.h sys/param.h sys/socket.h sys/stat.h \ |
| 9284 | sys/time.h sys/times.h sys/types.h sys/wait.h |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 9285 | do : |
| 9286 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 9287 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" |
| 9288 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 9289 | cat >>confdefs.h <<_ACEOF |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 9290 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 9291 | _ACEOF |
| 9292 | |
| 9293 | fi |
| 9294 | |
| 9295 | done |
| 9296 | |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 9297 | for ac_header in netinet/in.h arpa/inet.h |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 9298 | do : |
| 9299 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 9300 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" |
| 9301 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 9302 | cat >>confdefs.h <<_ACEOF |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 9303 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 9304 | _ACEOF |
| 9305 | |
| 9306 | fi |
| 9307 | |
| 9308 | done |
| 9309 | |
| 9310 | |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 9311 | ac_fn_c_check_header_compile "$LINENO" "sys/ptem.h" "ac_cv_header_sys_ptem_h" " |
Jari Aalto | 95732b4 | 2005-12-07 14:08:12 +0000 | [diff] [blame] | 9312 | #if HAVE_SYS_STREAM_H |
| 9313 | # include <sys/stream.h> |
| 9314 | #endif |
| 9315 | |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 9316 | " |
| 9317 | if test "x$ac_cv_header_sys_ptem_h" = xyes; then : |
Jari Aalto | 95732b4 | 2005-12-07 14:08:12 +0000 | [diff] [blame] | 9318 | |
Jari Aalto | 95732b4 | 2005-12-07 14:08:12 +0000 | [diff] [blame] | 9319 | fi |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 9320 | |
Jari Aalto | 95732b4 | 2005-12-07 14:08:12 +0000 | [diff] [blame] | 9321 | |
| 9322 | |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 9323 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works |
| 9324 | # for constant arguments. Useless! |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 9325 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 9326 | $as_echo_n "checking for working alloca.h... " >&6; } |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 9327 | if ${ac_cv_working_alloca_h+:} false; then : |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 9328 | $as_echo_n "(cached) " >&6 |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 9329 | else |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 9330 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Jari Aalto | 0628567 | 2006-10-10 14:15:34 +0000 | [diff] [blame] | 9331 | /* end confdefs.h. */ |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 9332 | #include <alloca.h> |
| 9333 | int |
| 9334 | main () |
| 9335 | { |
| 9336 | char *p = (char *) alloca (2 * sizeof (int)); |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 9337 | if (p) return 0; |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 9338 | ; |
| 9339 | return 0; |
| 9340 | } |
| 9341 | _ACEOF |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 9342 | if ac_fn_c_try_link "$LINENO"; then : |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 9343 | ac_cv_working_alloca_h=yes |
| 9344 | else |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 9345 | ac_cv_working_alloca_h=no |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 9346 | fi |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 9347 | rm -f core conftest.err conftest.$ac_objext \ |
| 9348 | conftest$ac_exeext conftest.$ac_ext |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 9349 | fi |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 9350 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 9351 | $as_echo "$ac_cv_working_alloca_h" >&6; } |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 9352 | if test $ac_cv_working_alloca_h = yes; then |
| 9353 | |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 9354 | $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 9355 | |
| 9356 | fi |
| 9357 | |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 9358 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 9359 | $as_echo_n "checking for alloca... " >&6; } |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 9360 | if ${ac_cv_func_alloca_works+:} false; then : |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 9361 | $as_echo_n "(cached) " >&6 |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 9362 | else |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 9363 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Jari Aalto | 0628567 | 2006-10-10 14:15:34 +0000 | [diff] [blame] | 9364 | /* end confdefs.h. */ |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 9365 | #ifdef __GNUC__ |
| 9366 | # define alloca __builtin_alloca |
| 9367 | #else |
| 9368 | # ifdef _MSC_VER |
| 9369 | # include <malloc.h> |
| 9370 | # define alloca _alloca |
| 9371 | # else |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 9372 | # ifdef HAVE_ALLOCA_H |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 9373 | # include <alloca.h> |
| 9374 | # else |
| 9375 | # ifdef _AIX |
| 9376 | #pragma alloca |
| 9377 | # else |
| 9378 | # ifndef alloca /* predefined by HP cc +Olibcalls */ |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 9379 | void *alloca (size_t); |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 9380 | # endif |
| 9381 | # endif |
| 9382 | # endif |
| 9383 | # endif |
| 9384 | #endif |
| 9385 | |
| 9386 | int |
| 9387 | main () |
| 9388 | { |
| 9389 | char *p = (char *) alloca (1); |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 9390 | if (p) return 0; |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 9391 | ; |
| 9392 | return 0; |
| 9393 | } |
| 9394 | _ACEOF |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 9395 | if ac_fn_c_try_link "$LINENO"; then : |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 9396 | ac_cv_func_alloca_works=yes |
| 9397 | else |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 9398 | ac_cv_func_alloca_works=no |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 9399 | fi |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 9400 | rm -f core conftest.err conftest.$ac_objext \ |
| 9401 | conftest$ac_exeext conftest.$ac_ext |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 9402 | fi |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 9403 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 9404 | $as_echo "$ac_cv_func_alloca_works" >&6; } |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 9405 | |
| 9406 | if test $ac_cv_func_alloca_works = yes; then |
| 9407 | |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 9408 | $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 9409 | |
| 9410 | else |
| 9411 | # The SVR3 libPW and SVR4 libucb both contain incompatible functions |
| 9412 | # that cause trouble. Some versions do not even contain alloca or |
| 9413 | # contain a buggy version. If you still want to use their alloca, |
| 9414 | # use ar to extract alloca.o from them instead of compiling alloca.c. |
| 9415 | |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 9416 | ALLOCA=\${LIBOBJDIR}alloca.$ac_objext |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 9417 | |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 9418 | $as_echo "#define C_ALLOCA 1" >>confdefs.h |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 9419 | |
| 9420 | |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 9421 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 9422 | $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; } |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 9423 | if ${ac_cv_os_cray+:} false; then : |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 9424 | $as_echo_n "(cached) " >&6 |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 9425 | else |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 9426 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Jari Aalto | 0628567 | 2006-10-10 14:15:34 +0000 | [diff] [blame] | 9427 | /* end confdefs.h. */ |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 9428 | #if defined CRAY && ! defined CRAY2 |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 9429 | webecray |
| 9430 | #else |
| 9431 | wenotbecray |
| 9432 | #endif |
| 9433 | |
| 9434 | _ACEOF |
| 9435 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 9436 | $EGREP "webecray" >/dev/null 2>&1; then : |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 9437 | ac_cv_os_cray=yes |
| 9438 | else |
| 9439 | ac_cv_os_cray=no |
| 9440 | fi |
| 9441 | rm -f conftest* |
| 9442 | |
| 9443 | fi |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 9444 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 9445 | $as_echo "$ac_cv_os_cray" >&6; } |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 9446 | if test $ac_cv_os_cray = yes; then |
| 9447 | for ac_func in _getb67 GETB67 getb67; do |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 9448 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 9449 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
| 9450 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 9451 | |
| 9452 | cat >>confdefs.h <<_ACEOF |
| 9453 | #define CRAY_STACKSEG_END $ac_func |
| 9454 | _ACEOF |
| 9455 | |
| 9456 | break |
| 9457 | fi |
| 9458 | |
| 9459 | done |
| 9460 | fi |
| 9461 | |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 9462 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 9463 | $as_echo_n "checking stack direction for C alloca... " >&6; } |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 9464 | if ${ac_cv_c_stack_direction+:} false; then : |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 9465 | $as_echo_n "(cached) " >&6 |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 9466 | else |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 9467 | if test "$cross_compiling" = yes; then : |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 9468 | ac_cv_c_stack_direction=0 |
| 9469 | else |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 9470 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Jari Aalto | 0628567 | 2006-10-10 14:15:34 +0000 | [diff] [blame] | 9471 | /* end confdefs.h. */ |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 9472 | $ac_includes_default |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 9473 | int |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 9474 | find_stack_direction (int *addr, int depth) |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 9475 | { |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 9476 | int dir, dummy = 0; |
| 9477 | if (! addr) |
| 9478 | addr = &dummy; |
| 9479 | *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1; |
| 9480 | dir = depth ? find_stack_direction (addr, depth - 1) : 0; |
| 9481 | return dir + dummy; |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 9482 | } |
| 9483 | |
| 9484 | int |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 9485 | main (int argc, char **argv) |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 9486 | { |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 9487 | return find_stack_direction (0, argc + !argv + 20) < 0; |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 9488 | } |
| 9489 | _ACEOF |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 9490 | if ac_fn_c_try_run "$LINENO"; then : |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 9491 | ac_cv_c_stack_direction=1 |
| 9492 | else |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 9493 | ac_cv_c_stack_direction=-1 |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 9494 | fi |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 9495 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 9496 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 9497 | fi |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 9498 | |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 9499 | fi |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 9500 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 9501 | $as_echo "$ac_cv_c_stack_direction" >&6; } |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 9502 | cat >>confdefs.h <<_ACEOF |
| 9503 | #define STACK_DIRECTION $ac_cv_c_stack_direction |
| 9504 | _ACEOF |
| 9505 | |
| 9506 | |
| 9507 | fi |
| 9508 | |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 9509 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getpgrp requires zero arguments" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 9510 | $as_echo_n "checking whether getpgrp requires zero arguments... " >&6; } |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 9511 | if ${ac_cv_func_getpgrp_void+:} false; then : |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 9512 | $as_echo_n "(cached) " >&6 |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 9513 | else |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 9514 | # Use it with a single arg. |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 9515 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Jari Aalto | 0628567 | 2006-10-10 14:15:34 +0000 | [diff] [blame] | 9516 | /* end confdefs.h. */ |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 9517 | $ac_includes_default |
| 9518 | int |
| 9519 | main () |
| 9520 | { |
| 9521 | getpgrp (0); |
| 9522 | ; |
| 9523 | return 0; |
| 9524 | } |
| 9525 | _ACEOF |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 9526 | if ac_fn_c_try_compile "$LINENO"; then : |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 9527 | ac_cv_func_getpgrp_void=no |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 9528 | else |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 9529 | ac_cv_func_getpgrp_void=yes |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 9530 | fi |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 9531 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 9532 | |
| 9533 | fi |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 9534 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getpgrp_void" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 9535 | $as_echo "$ac_cv_func_getpgrp_void" >&6; } |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 9536 | if test $ac_cv_func_getpgrp_void = yes; then |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 9537 | |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 9538 | $as_echo "#define GETPGRP_VOID 1" >>confdefs.h |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 9539 | |
| 9540 | fi |
| 9541 | |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 9542 | if ${ac_cv_func_setvbuf_reversed+:} false; then : |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 9543 | $as_echo_n "(cached) " >&6 |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 9544 | else |
Jari Aalto | 0628567 | 2006-10-10 14:15:34 +0000 | [diff] [blame] | 9545 | ac_cv_func_setvbuf_reversed=no |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 9546 | fi |
Jari Aalto | 0628567 | 2006-10-10 14:15:34 +0000 | [diff] [blame] | 9547 | |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 9548 | |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 9549 | for ac_func in vprintf |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 9550 | do : |
| 9551 | ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf" |
| 9552 | if test "x$ac_cv_func_vprintf" = xyes; then : |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 9553 | cat >>confdefs.h <<_ACEOF |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 9554 | #define HAVE_VPRINTF 1 |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 9555 | _ACEOF |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 9556 | |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 9557 | ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt" |
| 9558 | if test "x$ac_cv_func__doprnt" = xyes; then : |
Jari Aalto | 0628567 | 2006-10-10 14:15:34 +0000 | [diff] [blame] | 9559 | |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 9560 | $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 9561 | |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 9562 | fi |
| 9563 | |
| 9564 | fi |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 9565 | done |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 9566 | |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 9567 | |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 9568 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strcoll" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 9569 | $as_echo_n "checking for working strcoll... " >&6; } |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 9570 | if ${ac_cv_func_strcoll_works+:} false; then : |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 9571 | $as_echo_n "(cached) " >&6 |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 9572 | else |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 9573 | if test "$cross_compiling" = yes; then : |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 9574 | ac_cv_func_strcoll_works=no |
| 9575 | else |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 9576 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Jari Aalto | 0628567 | 2006-10-10 14:15:34 +0000 | [diff] [blame] | 9577 | /* end confdefs.h. */ |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 9578 | $ac_includes_default |
| 9579 | int |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 9580 | main () |
| 9581 | { |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 9582 | return (strcoll ("abc", "def") >= 0 || |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 9583 | strcoll ("ABC", "DEF") >= 0 || |
| 9584 | strcoll ("123", "456") >= 0) |
| 9585 | ; |
| 9586 | return 0; |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 9587 | } |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 9588 | _ACEOF |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 9589 | if ac_fn_c_try_run "$LINENO"; then : |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 9590 | ac_cv_func_strcoll_works=yes |
| 9591 | else |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 9592 | ac_cv_func_strcoll_works=no |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 9593 | fi |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 9594 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 9595 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 9596 | fi |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 9597 | |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 9598 | fi |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 9599 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strcoll_works" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 9600 | $as_echo "$ac_cv_func_strcoll_works" >&6; } |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 9601 | if test $ac_cv_func_strcoll_works = yes; then |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 9602 | |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 9603 | $as_echo "#define HAVE_STRCOLL 1" >>confdefs.h |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 9604 | |
| 9605 | fi |
| 9606 | |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 9607 | |
| 9608 | |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 9609 | if test "$ac_cv_func_alloca_works" = "no" && test "$opt_bash_malloc" = "no"; then |
| 9610 | MALLOC_TARGET=alloca |
| 9611 | MALLOC_SRC=alloca.c |
| 9612 | |
| 9613 | MALLOC_LIB='-lmalloc' |
| 9614 | MALLOC_LIBRARY='$(ALLOC_LIBDIR)/libmalloc.a' |
| 9615 | MALLOC_LDFLAGS='-L$(ALLOC_LIBDIR)' |
| 9616 | MALLOC_DEP='$(MALLOC_LIBRARY)' |
| 9617 | fi |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 9618 | |
| 9619 | if test "$ac_cv_func_vprintf" = no; then |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 9620 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for declaration of vprintf in stdio.h" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 9621 | $as_echo_n "checking for declaration of vprintf in stdio.h... " >&6; } |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 9622 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Jari Aalto | 0628567 | 2006-10-10 14:15:34 +0000 | [diff] [blame] | 9623 | /* end confdefs.h. */ |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 9624 | #include <stdio.h> |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 9625 | |
| 9626 | _ACEOF |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 9627 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 9628 | $EGREP "[int[ ]*vprintf[^a-zA-Z0-9]]" >/dev/null 2>&1; then : |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 9629 | ac_cv_func_vprintf=yes |
| 9630 | fi |
| 9631 | rm -f conftest* |
| 9632 | |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 9633 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vprintf" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 9634 | $as_echo "$ac_cv_func_vprintf" >&6; } |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 9635 | if test $ac_cv_func_vprintf = yes; then |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 9636 | $as_echo "#define HAVE_VPRINTF 1" >>confdefs.h |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 9637 | |
| 9638 | fi |
| 9639 | fi |
| 9640 | |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 9641 | if test "$ac_cv_func_vprintf" = no && test "$ac_cv_func__doprnt" = "yes"; then |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 9642 | case " $LIBOBJS " in |
Jari Aalto | 0628567 | 2006-10-10 14:15:34 +0000 | [diff] [blame] | 9643 | *" vprint.$ac_objext "* ) ;; |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 9644 | *) LIBOBJS="$LIBOBJS vprint.$ac_objext" |
| 9645 | ;; |
Jari Aalto | 0628567 | 2006-10-10 14:15:34 +0000 | [diff] [blame] | 9646 | esac |
| 9647 | |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 9648 | fi |
| 9649 | |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 9650 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 9651 | $as_echo_n "checking return type of signal handlers... " >&6; } |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 9652 | if ${ac_cv_type_signal+:} false; then : |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 9653 | $as_echo_n "(cached) " >&6 |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 9654 | else |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 9655 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Jari Aalto | 0628567 | 2006-10-10 14:15:34 +0000 | [diff] [blame] | 9656 | /* end confdefs.h. */ |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 9657 | #include <sys/types.h> |
| 9658 | #include <signal.h> |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 9659 | |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 9660 | int |
| 9661 | main () |
| 9662 | { |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 9663 | return *(signal (0, 0)) (0) == 1; |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 9664 | ; |
| 9665 | return 0; |
| 9666 | } |
| 9667 | _ACEOF |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 9668 | if ac_fn_c_try_compile "$LINENO"; then : |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 9669 | ac_cv_type_signal=int |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 9670 | else |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 9671 | ac_cv_type_signal=void |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 9672 | fi |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 9673 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 9674 | fi |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 9675 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 9676 | $as_echo "$ac_cv_type_signal" >&6; } |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 9677 | |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 9678 | cat >>confdefs.h <<_ACEOF |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 9679 | #define RETSIGTYPE $ac_cv_type_signal |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 9680 | _ACEOF |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 9681 | |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 9682 | |
| 9683 | |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 9684 | ac_fn_c_check_func "$LINENO" "__setostype" "ac_cv_func___setostype" |
| 9685 | if test "x$ac_cv_func___setostype" = xyes; then : |
| 9686 | $as_echo "#define HAVE_SETOSTYPE 1" >>confdefs.h |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 9687 | |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 9688 | fi |
| 9689 | |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 9690 | ac_fn_c_check_func "$LINENO" "wait3" "ac_cv_func_wait3" |
| 9691 | if test "x$ac_cv_func_wait3" = xyes; then : |
| 9692 | $as_echo "#define HAVE_WAIT3 1" >>confdefs.h |
Jari Aalto | 0628567 | 2006-10-10 14:15:34 +0000 | [diff] [blame] | 9693 | |
| 9694 | fi |
| 9695 | |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 9696 | |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 9697 | ac_fn_c_check_func "$LINENO" "mkfifo" "ac_cv_func_mkfifo" |
| 9698 | if test "x$ac_cv_func_mkfifo" = xyes; then : |
| 9699 | $as_echo "#define HAVE_MKFIFO 1" >>confdefs.h |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 9700 | |
| 9701 | else |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 9702 | $as_echo "#define MKFIFO_MISSING 1" >>confdefs.h |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 9703 | |
| 9704 | fi |
| 9705 | |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 9706 | |
Jari Aalto | 0628567 | 2006-10-10 14:15:34 +0000 | [diff] [blame] | 9707 | for ac_func in dup2 eaccess fcntl getdtablesize getgroups gethostname \ |
| 9708 | getpagesize getpeername getrlimit getrusage gettimeofday \ |
| 9709 | kill killpg lstat readlink sbrk select setdtablesize \ |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 9710 | setitimer tcgetpgrp uname ulimit waitpid |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 9711 | do : |
| 9712 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 9713 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
| 9714 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 9715 | cat >>confdefs.h <<_ACEOF |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 9716 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 9717 | _ACEOF |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 9718 | |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 9719 | fi |
| 9720 | done |
| 9721 | |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 9722 | ac_fn_c_check_func "$LINENO" "rename" "ac_cv_func_rename" |
| 9723 | if test "x$ac_cv_func_rename" = xyes; then : |
| 9724 | $as_echo "#define HAVE_RENAME 1" >>confdefs.h |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 9725 | |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 9726 | else |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 9727 | case " $LIBOBJS " in |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 9728 | *" rename.$ac_objext "* ) ;; |
| 9729 | *) LIBOBJS="$LIBOBJS rename.$ac_objext" |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 9730 | ;; |
Jari Aalto | 0628567 | 2006-10-10 14:15:34 +0000 | [diff] [blame] | 9731 | esac |
| 9732 | |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 9733 | fi |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 9734 | |
Chet Ramey | 0001803 | 2011-11-21 20:51:19 -0500 | [diff] [blame] | 9735 | |
Chet Ramey | 495aee4 | 2011-11-22 19:11:26 -0500 | [diff] [blame] | 9736 | |
| 9737 | for ac_func in bcopy bzero confstr faccessat fnmatch \ |
Jari Aalto | 7117c2d | 2002-07-17 14:10:11 +0000 | [diff] [blame] | 9738 | getaddrinfo gethostbyname getservbyname getservent inet_aton \ |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 9739 | imaxdiv memmove pathconf putenv raise regcomp regexec \ |
Jari Aalto | 95732b4 | 2005-12-07 14:08:12 +0000 | [diff] [blame] | 9740 | setenv setlinebuf setlocale setvbuf siginterrupt strchr \ |
Chet Ramey | 0001803 | 2011-11-21 20:51:19 -0500 | [diff] [blame] | 9741 | sysconf syslog tcgetattr times ttyname tzset unsetenv |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 9742 | do : |
| 9743 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 9744 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
| 9745 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
Jari Aalto | 95732b4 | 2005-12-07 14:08:12 +0000 | [diff] [blame] | 9746 | cat >>confdefs.h <<_ACEOF |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 9747 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Jari Aalto | 95732b4 | 2005-12-07 14:08:12 +0000 | [diff] [blame] | 9748 | _ACEOF |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 9749 | |
Jari Aalto | 95732b4 | 2005-12-07 14:08:12 +0000 | [diff] [blame] | 9750 | fi |
| 9751 | done |
| 9752 | |
| 9753 | |
Chet Ramey | 0001803 | 2011-11-21 20:51:19 -0500 | [diff] [blame] | 9754 | for ac_func in vasprintf asprintf |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 9755 | do : |
| 9756 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 9757 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
| 9758 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 9759 | cat >>confdefs.h <<_ACEOF |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 9760 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 9761 | _ACEOF |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 9762 | |
| 9763 | fi |
| 9764 | done |
| 9765 | |
| 9766 | for ac_func in isascii isblank isgraph isprint isspace isxdigit |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 9767 | do : |
| 9768 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 9769 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
| 9770 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
Jari Aalto | 95732b4 | 2005-12-07 14:08:12 +0000 | [diff] [blame] | 9771 | cat >>confdefs.h <<_ACEOF |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 9772 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Jari Aalto | 95732b4 | 2005-12-07 14:08:12 +0000 | [diff] [blame] | 9773 | _ACEOF |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 9774 | |
Jari Aalto | 95732b4 | 2005-12-07 14:08:12 +0000 | [diff] [blame] | 9775 | fi |
| 9776 | done |
| 9777 | |
Jari Aalto | 95732b4 | 2005-12-07 14:08:12 +0000 | [diff] [blame] | 9778 | for ac_func in getpwent getpwnam getpwuid |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 9779 | do : |
| 9780 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 9781 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
| 9782 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 9783 | cat >>confdefs.h <<_ACEOF |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 9784 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 9785 | _ACEOF |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 9786 | |
| 9787 | fi |
| 9788 | done |
| 9789 | |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 9790 | ac_fn_c_check_func "$LINENO" "getcwd" "ac_cv_func_getcwd" |
| 9791 | if test "x$ac_cv_func_getcwd" = xyes; then : |
| 9792 | $as_echo "#define HAVE_GETCWD 1" >>confdefs.h |
Chet Ramey | 0001803 | 2011-11-21 20:51:19 -0500 | [diff] [blame] | 9793 | |
| 9794 | else |
| 9795 | case " $LIBOBJS " in |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 9796 | *" getcwd.$ac_objext "* ) ;; |
| 9797 | *) LIBOBJS="$LIBOBJS getcwd.$ac_objext" |
Chet Ramey | 0001803 | 2011-11-21 20:51:19 -0500 | [diff] [blame] | 9798 | ;; |
| 9799 | esac |
| 9800 | |
| 9801 | fi |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 9802 | |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 9803 | ac_fn_c_check_func "$LINENO" "memset" "ac_cv_func_memset" |
| 9804 | if test "x$ac_cv_func_memset" = xyes; then : |
| 9805 | $as_echo "#define HAVE_MEMSET 1" >>confdefs.h |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 9806 | |
| 9807 | else |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 9808 | case " $LIBOBJS " in |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 9809 | *" memset.$ac_objext "* ) ;; |
| 9810 | *) LIBOBJS="$LIBOBJS memset.$ac_objext" |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 9811 | ;; |
Jari Aalto | 0628567 | 2006-10-10 14:15:34 +0000 | [diff] [blame] | 9812 | esac |
| 9813 | |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 9814 | fi |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 9815 | |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 9816 | |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 9817 | ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp" |
| 9818 | if test "x$ac_cv_func_strcasecmp" = xyes; then : |
| 9819 | $as_echo "#define HAVE_STRCASECMP 1" >>confdefs.h |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 9820 | |
| 9821 | else |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 9822 | case " $LIBOBJS " in |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 9823 | *" strcasecmp.$ac_objext "* ) ;; |
| 9824 | *) LIBOBJS="$LIBOBJS strcasecmp.$ac_objext" |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 9825 | ;; |
Jari Aalto | 0628567 | 2006-10-10 14:15:34 +0000 | [diff] [blame] | 9826 | esac |
| 9827 | |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 9828 | fi |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 9829 | |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 9830 | ac_fn_c_check_func "$LINENO" "strcasestr" "ac_cv_func_strcasestr" |
| 9831 | if test "x$ac_cv_func_strcasestr" = xyes; then : |
| 9832 | $as_echo "#define HAVE_STRCASESTR 1" >>confdefs.h |
Chet Ramey | 495aee4 | 2011-11-22 19:11:26 -0500 | [diff] [blame] | 9833 | |
| 9834 | else |
| 9835 | case " $LIBOBJS " in |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 9836 | *" strcasestr.$ac_objext "* ) ;; |
| 9837 | *) LIBOBJS="$LIBOBJS strcasestr.$ac_objext" |
Chet Ramey | 495aee4 | 2011-11-22 19:11:26 -0500 | [diff] [blame] | 9838 | ;; |
| 9839 | esac |
| 9840 | |
| 9841 | fi |
Chet Ramey | 495aee4 | 2011-11-22 19:11:26 -0500 | [diff] [blame] | 9842 | |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 9843 | ac_fn_c_check_func "$LINENO" "strerror" "ac_cv_func_strerror" |
| 9844 | if test "x$ac_cv_func_strerror" = xyes; then : |
| 9845 | $as_echo "#define HAVE_STRERROR 1" >>confdefs.h |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 9846 | |
| 9847 | else |
| 9848 | case " $LIBOBJS " in |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 9849 | *" strerror.$ac_objext "* ) ;; |
| 9850 | *) LIBOBJS="$LIBOBJS strerror.$ac_objext" |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 9851 | ;; |
| 9852 | esac |
| 9853 | |
| 9854 | fi |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 9855 | |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 9856 | ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime" |
| 9857 | if test "x$ac_cv_func_strftime" = xyes; then : |
| 9858 | $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 9859 | |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 9860 | else |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 9861 | case " $LIBOBJS " in |
| 9862 | *" strftime.$ac_objext "* ) ;; |
| 9863 | *) LIBOBJS="$LIBOBJS strftime.$ac_objext" |
| 9864 | ;; |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 9865 | esac |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 9866 | |
| 9867 | fi |
| 9868 | |
| 9869 | ac_fn_c_check_func "$LINENO" "strnlen" "ac_cv_func_strnlen" |
| 9870 | if test "x$ac_cv_func_strnlen" = xyes; then : |
| 9871 | $as_echo "#define HAVE_STRNLEN 1" >>confdefs.h |
| 9872 | |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 9873 | else |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 9874 | case " $LIBOBJS " in |
| 9875 | *" strnlen.$ac_objext "* ) ;; |
| 9876 | *) LIBOBJS="$LIBOBJS strnlen.$ac_objext" |
| 9877 | ;; |
| 9878 | esac |
Jari Aalto | 0628567 | 2006-10-10 14:15:34 +0000 | [diff] [blame] | 9879 | |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 9880 | fi |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 9881 | |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 9882 | ac_fn_c_check_func "$LINENO" "strpbrk" "ac_cv_func_strpbrk" |
| 9883 | if test "x$ac_cv_func_strpbrk" = xyes; then : |
| 9884 | $as_echo "#define HAVE_STRPBRK 1" >>confdefs.h |
| 9885 | |
| 9886 | else |
| 9887 | case " $LIBOBJS " in |
| 9888 | *" strpbrk.$ac_objext "* ) ;; |
| 9889 | *) LIBOBJS="$LIBOBJS strpbrk.$ac_objext" |
| 9890 | ;; |
| 9891 | esac |
| 9892 | |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 9893 | fi |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 9894 | |
| 9895 | ac_fn_c_check_func "$LINENO" "strstr" "ac_cv_func_strstr" |
| 9896 | if test "x$ac_cv_func_strstr" = xyes; then : |
| 9897 | $as_echo "#define HAVE_STRSTR 1" >>confdefs.h |
| 9898 | |
| 9899 | else |
| 9900 | case " $LIBOBJS " in |
| 9901 | *" strstr.$ac_objext "* ) ;; |
| 9902 | *) LIBOBJS="$LIBOBJS strstr.$ac_objext" |
| 9903 | ;; |
| 9904 | esac |
| 9905 | |
| 9906 | fi |
| 9907 | |
| 9908 | |
| 9909 | ac_fn_c_check_func "$LINENO" "strtod" "ac_cv_func_strtod" |
| 9910 | if test "x$ac_cv_func_strtod" = xyes; then : |
| 9911 | $as_echo "#define HAVE_STRTOD 1" >>confdefs.h |
| 9912 | |
| 9913 | else |
| 9914 | case " $LIBOBJS " in |
| 9915 | *" strtod.$ac_objext "* ) ;; |
| 9916 | *) LIBOBJS="$LIBOBJS strtod.$ac_objext" |
| 9917 | ;; |
| 9918 | esac |
| 9919 | |
| 9920 | fi |
| 9921 | |
| 9922 | ac_fn_c_check_func "$LINENO" "strtol" "ac_cv_func_strtol" |
| 9923 | if test "x$ac_cv_func_strtol" = xyes; then : |
| 9924 | $as_echo "#define HAVE_STRTOL 1" >>confdefs.h |
| 9925 | |
| 9926 | else |
| 9927 | case " $LIBOBJS " in |
| 9928 | *" strtol.$ac_objext "* ) ;; |
| 9929 | *) LIBOBJS="$LIBOBJS strtol.$ac_objext" |
| 9930 | ;; |
| 9931 | esac |
| 9932 | |
| 9933 | fi |
| 9934 | |
| 9935 | ac_fn_c_check_func "$LINENO" "strtoul" "ac_cv_func_strtoul" |
| 9936 | if test "x$ac_cv_func_strtoul" = xyes; then : |
| 9937 | $as_echo "#define HAVE_STRTOUL 1" >>confdefs.h |
| 9938 | |
| 9939 | else |
| 9940 | case " $LIBOBJS " in |
| 9941 | *" strtoul.$ac_objext "* ) ;; |
| 9942 | *) LIBOBJS="$LIBOBJS strtoul.$ac_objext" |
| 9943 | ;; |
| 9944 | esac |
| 9945 | |
| 9946 | fi |
| 9947 | |
| 9948 | ac_fn_c_check_func "$LINENO" "strtoll" "ac_cv_func_strtoll" |
| 9949 | if test "x$ac_cv_func_strtoll" = xyes; then : |
| 9950 | $as_echo "#define HAVE_STRTOLL 1" >>confdefs.h |
| 9951 | |
| 9952 | else |
| 9953 | case " $LIBOBJS " in |
| 9954 | *" strtoll.$ac_objext "* ) ;; |
| 9955 | *) LIBOBJS="$LIBOBJS strtoll.$ac_objext" |
| 9956 | ;; |
| 9957 | esac |
| 9958 | |
| 9959 | fi |
| 9960 | |
| 9961 | ac_fn_c_check_func "$LINENO" "strtoull" "ac_cv_func_strtoull" |
| 9962 | if test "x$ac_cv_func_strtoull" = xyes; then : |
| 9963 | $as_echo "#define HAVE_STRTOULL 1" >>confdefs.h |
| 9964 | |
| 9965 | else |
| 9966 | case " $LIBOBJS " in |
| 9967 | *" strtoull.$ac_objext "* ) ;; |
| 9968 | *) LIBOBJS="$LIBOBJS strtoull.$ac_objext" |
| 9969 | ;; |
| 9970 | esac |
| 9971 | |
| 9972 | fi |
| 9973 | |
| 9974 | ac_fn_c_check_func "$LINENO" "strtoimax" "ac_cv_func_strtoimax" |
| 9975 | if test "x$ac_cv_func_strtoimax" = xyes; then : |
| 9976 | $as_echo "#define HAVE_STRTOIMAX 1" >>confdefs.h |
| 9977 | |
| 9978 | else |
| 9979 | case " $LIBOBJS " in |
| 9980 | *" strtoimax.$ac_objext "* ) ;; |
| 9981 | *) LIBOBJS="$LIBOBJS strtoimax.$ac_objext" |
| 9982 | ;; |
| 9983 | esac |
| 9984 | |
| 9985 | fi |
| 9986 | |
| 9987 | ac_fn_c_check_func "$LINENO" "strtoumax" "ac_cv_func_strtoumax" |
| 9988 | if test "x$ac_cv_func_strtoumax" = xyes; then : |
| 9989 | $as_echo "#define HAVE_STRTOUMAX 1" >>confdefs.h |
| 9990 | |
| 9991 | else |
| 9992 | case " $LIBOBJS " in |
| 9993 | *" strtoumax.$ac_objext "* ) ;; |
| 9994 | *) LIBOBJS="$LIBOBJS strtoumax.$ac_objext" |
| 9995 | ;; |
| 9996 | esac |
| 9997 | |
| 9998 | fi |
| 9999 | |
| 10000 | |
| 10001 | ac_fn_c_check_func "$LINENO" "dprintf" "ac_cv_func_dprintf" |
| 10002 | if test "x$ac_cv_func_dprintf" = xyes; then : |
| 10003 | $as_echo "#define HAVE_DPRINTF 1" >>confdefs.h |
| 10004 | |
| 10005 | else |
| 10006 | case " $LIBOBJS " in |
| 10007 | *" dprintf.$ac_objext "* ) ;; |
| 10008 | *) LIBOBJS="$LIBOBJS dprintf.$ac_objext" |
| 10009 | ;; |
| 10010 | esac |
| 10011 | |
| 10012 | fi |
| 10013 | |
| 10014 | |
| 10015 | ac_fn_c_check_func "$LINENO" "strchrnul" "ac_cv_func_strchrnul" |
| 10016 | if test "x$ac_cv_func_strchrnul" = xyes; then : |
| 10017 | $as_echo "#define HAVE_STRCHRNUL 1" >>confdefs.h |
| 10018 | |
| 10019 | else |
| 10020 | case " $LIBOBJS " in |
| 10021 | *" strchrnul.$ac_objext "* ) ;; |
| 10022 | *) LIBOBJS="$LIBOBJS strchrnul.$ac_objext" |
| 10023 | ;; |
| 10024 | esac |
| 10025 | |
| 10026 | fi |
| 10027 | |
| 10028 | |
| 10029 | ac_fn_c_check_func "$LINENO" "strdup" "ac_cv_func_strdup" |
| 10030 | if test "x$ac_cv_func_strdup" = xyes; then : |
| 10031 | $as_echo "#define HAVE_STRDUP 1" >>confdefs.h |
| 10032 | |
| 10033 | else |
| 10034 | case " $LIBOBJS " in |
| 10035 | *" strdup.$ac_objext "* ) ;; |
| 10036 | *) LIBOBJS="$LIBOBJS strdup.$ac_objext" |
| 10037 | ;; |
| 10038 | esac |
| 10039 | |
| 10040 | fi |
| 10041 | |
| 10042 | |
| 10043 | |
| 10044 | ac_fn_c_check_decl "$LINENO" "AUDIT_USER_TTY" "ac_cv_have_decl_AUDIT_USER_TTY" "#include <linux/audit.h> |
| 10045 | " |
| 10046 | if test "x$ac_cv_have_decl_AUDIT_USER_TTY" = xyes; then : |
| 10047 | ac_have_decl=1 |
| 10048 | else |
| 10049 | ac_have_decl=0 |
| 10050 | fi |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 10051 | |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 10052 | cat >>confdefs.h <<_ACEOF |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 10053 | #define HAVE_DECL_AUDIT_USER_TTY $ac_have_decl |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 10054 | _ACEOF |
| 10055 | |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 10056 | |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 10057 | ac_fn_c_check_decl "$LINENO" "confstr" "ac_cv_have_decl_confstr" "$ac_includes_default" |
| 10058 | if test "x$ac_cv_have_decl_confstr" = xyes; then : |
| 10059 | ac_have_decl=1 |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 10060 | else |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 10061 | ac_have_decl=0 |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 10062 | fi |
| 10063 | |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 10064 | cat >>confdefs.h <<_ACEOF |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 10065 | #define HAVE_DECL_CONFSTR $ac_have_decl |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 10066 | _ACEOF |
| 10067 | |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 10068 | ac_fn_c_check_decl "$LINENO" "printf" "ac_cv_have_decl_printf" "$ac_includes_default" |
| 10069 | if test "x$ac_cv_have_decl_printf" = xyes; then : |
| 10070 | ac_have_decl=1 |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 10071 | else |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 10072 | ac_have_decl=0 |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 10073 | fi |
| 10074 | |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 10075 | cat >>confdefs.h <<_ACEOF |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 10076 | #define HAVE_DECL_PRINTF $ac_have_decl |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 10077 | _ACEOF |
| 10078 | |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 10079 | ac_fn_c_check_decl "$LINENO" "sbrk" "ac_cv_have_decl_sbrk" "$ac_includes_default" |
| 10080 | if test "x$ac_cv_have_decl_sbrk" = xyes; then : |
| 10081 | ac_have_decl=1 |
Jari Aalto | 7117c2d | 2002-07-17 14:10:11 +0000 | [diff] [blame] | 10082 | else |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 10083 | ac_have_decl=0 |
Jari Aalto | 7117c2d | 2002-07-17 14:10:11 +0000 | [diff] [blame] | 10084 | fi |
| 10085 | |
Jari Aalto | 0628567 | 2006-10-10 14:15:34 +0000 | [diff] [blame] | 10086 | cat >>confdefs.h <<_ACEOF |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 10087 | #define HAVE_DECL_SBRK $ac_have_decl |
Jari Aalto | 0628567 | 2006-10-10 14:15:34 +0000 | [diff] [blame] | 10088 | _ACEOF |
| 10089 | |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 10090 | ac_fn_c_check_decl "$LINENO" "setregid" "ac_cv_have_decl_setregid" "$ac_includes_default" |
| 10091 | if test "x$ac_cv_have_decl_setregid" = xyes; then : |
| 10092 | ac_have_decl=1 |
Jari Aalto | 0628567 | 2006-10-10 14:15:34 +0000 | [diff] [blame] | 10093 | else |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 10094 | ac_have_decl=0 |
Jari Aalto | 0628567 | 2006-10-10 14:15:34 +0000 | [diff] [blame] | 10095 | fi |
| 10096 | |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 10097 | cat >>confdefs.h <<_ACEOF |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 10098 | #define HAVE_DECL_SETREGID $ac_have_decl |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 10099 | _ACEOF |
| 10100 | |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 10101 | ac_fn_c_check_decl "$LINENO" "strcpy" "ac_cv_have_decl_strcpy" "$ac_includes_default" |
| 10102 | if test "x$ac_cv_have_decl_strcpy" = xyes; then : |
| 10103 | ac_have_decl=1 |
Jari Aalto | 7117c2d | 2002-07-17 14:10:11 +0000 | [diff] [blame] | 10104 | else |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 10105 | ac_have_decl=0 |
Jari Aalto | 7117c2d | 2002-07-17 14:10:11 +0000 | [diff] [blame] | 10106 | fi |
| 10107 | |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 10108 | cat >>confdefs.h <<_ACEOF |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 10109 | #define HAVE_DECL_STRCPY $ac_have_decl |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 10110 | _ACEOF |
| 10111 | |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 10112 | ac_fn_c_check_decl "$LINENO" "strsignal" "ac_cv_have_decl_strsignal" "$ac_includes_default" |
| 10113 | if test "x$ac_cv_have_decl_strsignal" = xyes; then : |
| 10114 | ac_have_decl=1 |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 10115 | else |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 10116 | ac_have_decl=0 |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 10117 | fi |
| 10118 | |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 10119 | cat >>confdefs.h <<_ACEOF |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 10120 | #define HAVE_DECL_STRSIGNAL $ac_have_decl |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 10121 | _ACEOF |
Jari Aalto | 7117c2d | 2002-07-17 14:10:11 +0000 | [diff] [blame] | 10122 | |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 10123 | |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 10124 | ac_fn_c_check_decl "$LINENO" "strtold" "ac_cv_have_decl_strtold" "$ac_includes_default" |
| 10125 | if test "x$ac_cv_have_decl_strtold" = xyes; then : |
| 10126 | ac_have_decl=1 |
| 10127 | else |
| 10128 | ac_have_decl=0 |
| 10129 | fi |
| 10130 | |
| 10131 | cat >>confdefs.h <<_ACEOF |
| 10132 | #define HAVE_DECL_STRTOLD $ac_have_decl |
| 10133 | _ACEOF |
| 10134 | if test $ac_have_decl = 1; then : |
| 10135 | |
| 10136 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken strtold" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 10137 | $as_echo_n "checking for broken strtold... " >&6; } |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 10138 | if ${bash_cv_strtold_broken+:} false; then : |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 10139 | $as_echo_n "(cached) " >&6 |
Jari Aalto | 7117c2d | 2002-07-17 14:10:11 +0000 | [diff] [blame] | 10140 | else |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 10141 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Jari Aalto | 0628567 | 2006-10-10 14:15:34 +0000 | [diff] [blame] | 10142 | /* end confdefs.h. */ |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 10143 | #include <stdlib.h> |
| 10144 | int |
| 10145 | main () |
| 10146 | { |
| 10147 | int main() { long double r; char *foo, bar; r = strtold(foo, &bar);} |
| 10148 | ; |
| 10149 | return 0; |
| 10150 | } |
| 10151 | _ACEOF |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 10152 | if ac_fn_c_try_compile "$LINENO"; then : |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 10153 | bash_cv_strtold_broken=no |
| 10154 | else |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 10155 | bash_cv_strtold_broken=yes |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 10156 | fi |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 10157 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 10158 | |
Jari Aalto | 7117c2d | 2002-07-17 14:10:11 +0000 | [diff] [blame] | 10159 | |
| 10160 | fi |
| 10161 | |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 10162 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_strtold_broken" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 10163 | $as_echo "$bash_cv_strtold_broken" >&6; } |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 10164 | if test "$bash_cv_strtold_broken" = "yes" ; then |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 10165 | $as_echo "#define STRTOLD_BROKEN 1" >>confdefs.h |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 10166 | |
| 10167 | fi |
| 10168 | |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 10169 | fi |
| 10170 | |
| 10171 | |
| 10172 | |
| 10173 | |
| 10174 | |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 10175 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for declaration of strtoimax" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 10176 | $as_echo_n "checking for declaration of strtoimax... " >&6; } |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 10177 | if ${bash_cv_decl_strtoimax+:} false; then : |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 10178 | $as_echo_n "(cached) " >&6 |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 10179 | else |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 10180 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Jari Aalto | 0628567 | 2006-10-10 14:15:34 +0000 | [diff] [blame] | 10181 | /* end confdefs.h. */ |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 10182 | |
| 10183 | #if STDC_HEADERS |
| 10184 | # include <stdlib.h> |
| 10185 | #endif |
| 10186 | #if HAVE_INTTYPES_H |
| 10187 | # include <inttypes.h> |
| 10188 | #endif |
| 10189 | |
| 10190 | int |
| 10191 | main () |
| 10192 | { |
| 10193 | return !strtoimax; |
| 10194 | ; |
| 10195 | return 0; |
| 10196 | } |
| 10197 | _ACEOF |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 10198 | if ac_fn_c_try_link "$LINENO"; then : |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 10199 | bash_cv_decl_strtoimax=yes |
| 10200 | else |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 10201 | bash_cv_decl_strtoimax=no |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 10202 | fi |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 10203 | rm -f core conftest.err conftest.$ac_objext \ |
| 10204 | conftest$ac_exeext conftest.$ac_ext |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 10205 | fi |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 10206 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_decl_strtoimax" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 10207 | $as_echo "$bash_cv_decl_strtoimax" >&6; } |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 10208 | bash_tr_func=HAVE_DECL_`echo strtoimax | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
| 10209 | if test $bash_cv_decl_strtoimax = yes; then |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 10210 | cat >>confdefs.h <<_ACEOF |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 10211 | #define $bash_tr_func 1 |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 10212 | _ACEOF |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 10213 | |
| 10214 | else |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 10215 | cat >>confdefs.h <<_ACEOF |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 10216 | #define $bash_tr_func 0 |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 10217 | _ACEOF |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 10218 | |
| 10219 | fi |
| 10220 | |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 10221 | |
| 10222 | |
| 10223 | |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 10224 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for declaration of strtol" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 10225 | $as_echo_n "checking for declaration of strtol... " >&6; } |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 10226 | if ${bash_cv_decl_strtol+:} false; then : |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 10227 | $as_echo_n "(cached) " >&6 |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 10228 | else |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 10229 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Jari Aalto | 0628567 | 2006-10-10 14:15:34 +0000 | [diff] [blame] | 10230 | /* end confdefs.h. */ |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 10231 | |
| 10232 | #if STDC_HEADERS |
| 10233 | # include <stdlib.h> |
| 10234 | #endif |
| 10235 | #if HAVE_INTTYPES_H |
| 10236 | # include <inttypes.h> |
| 10237 | #endif |
| 10238 | |
| 10239 | int |
| 10240 | main () |
| 10241 | { |
| 10242 | return !strtol; |
| 10243 | ; |
| 10244 | return 0; |
| 10245 | } |
| 10246 | _ACEOF |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 10247 | if ac_fn_c_try_link "$LINENO"; then : |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 10248 | bash_cv_decl_strtol=yes |
| 10249 | else |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 10250 | bash_cv_decl_strtol=no |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 10251 | fi |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 10252 | rm -f core conftest.err conftest.$ac_objext \ |
| 10253 | conftest$ac_exeext conftest.$ac_ext |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 10254 | fi |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 10255 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_decl_strtol" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 10256 | $as_echo "$bash_cv_decl_strtol" >&6; } |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 10257 | bash_tr_func=HAVE_DECL_`echo strtol | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
| 10258 | if test $bash_cv_decl_strtol = yes; then |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 10259 | cat >>confdefs.h <<_ACEOF |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 10260 | #define $bash_tr_func 1 |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 10261 | _ACEOF |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 10262 | |
| 10263 | else |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 10264 | cat >>confdefs.h <<_ACEOF |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 10265 | #define $bash_tr_func 0 |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 10266 | _ACEOF |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 10267 | |
| 10268 | fi |
| 10269 | |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 10270 | |
| 10271 | |
| 10272 | |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 10273 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for declaration of strtoll" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 10274 | $as_echo_n "checking for declaration of strtoll... " >&6; } |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 10275 | if ${bash_cv_decl_strtoll+:} false; then : |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 10276 | $as_echo_n "(cached) " >&6 |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 10277 | else |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 10278 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Jari Aalto | 0628567 | 2006-10-10 14:15:34 +0000 | [diff] [blame] | 10279 | /* end confdefs.h. */ |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 10280 | |
| 10281 | #if STDC_HEADERS |
| 10282 | # include <stdlib.h> |
| 10283 | #endif |
| 10284 | #if HAVE_INTTYPES_H |
| 10285 | # include <inttypes.h> |
| 10286 | #endif |
| 10287 | |
| 10288 | int |
| 10289 | main () |
| 10290 | { |
| 10291 | return !strtoll; |
| 10292 | ; |
| 10293 | return 0; |
| 10294 | } |
| 10295 | _ACEOF |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 10296 | if ac_fn_c_try_link "$LINENO"; then : |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 10297 | bash_cv_decl_strtoll=yes |
| 10298 | else |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 10299 | bash_cv_decl_strtoll=no |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 10300 | fi |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 10301 | rm -f core conftest.err conftest.$ac_objext \ |
| 10302 | conftest$ac_exeext conftest.$ac_ext |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 10303 | fi |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 10304 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_decl_strtoll" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 10305 | $as_echo "$bash_cv_decl_strtoll" >&6; } |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 10306 | bash_tr_func=HAVE_DECL_`echo strtoll | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
| 10307 | if test $bash_cv_decl_strtoll = yes; then |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 10308 | cat >>confdefs.h <<_ACEOF |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 10309 | #define $bash_tr_func 1 |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 10310 | _ACEOF |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 10311 | |
| 10312 | else |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 10313 | cat >>confdefs.h <<_ACEOF |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 10314 | #define $bash_tr_func 0 |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 10315 | _ACEOF |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 10316 | |
| 10317 | fi |
| 10318 | |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 10319 | |
| 10320 | |
| 10321 | |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 10322 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for declaration of strtoul" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 10323 | $as_echo_n "checking for declaration of strtoul... " >&6; } |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 10324 | if ${bash_cv_decl_strtoul+:} false; then : |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 10325 | $as_echo_n "(cached) " >&6 |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 10326 | else |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 10327 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Jari Aalto | 0628567 | 2006-10-10 14:15:34 +0000 | [diff] [blame] | 10328 | /* end confdefs.h. */ |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 10329 | |
| 10330 | #if STDC_HEADERS |
| 10331 | # include <stdlib.h> |
| 10332 | #endif |
| 10333 | #if HAVE_INTTYPES_H |
| 10334 | # include <inttypes.h> |
| 10335 | #endif |
| 10336 | |
| 10337 | int |
| 10338 | main () |
| 10339 | { |
| 10340 | return !strtoul; |
| 10341 | ; |
| 10342 | return 0; |
| 10343 | } |
| 10344 | _ACEOF |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 10345 | if ac_fn_c_try_link "$LINENO"; then : |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 10346 | bash_cv_decl_strtoul=yes |
| 10347 | else |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 10348 | bash_cv_decl_strtoul=no |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 10349 | fi |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 10350 | rm -f core conftest.err conftest.$ac_objext \ |
| 10351 | conftest$ac_exeext conftest.$ac_ext |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 10352 | fi |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 10353 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_decl_strtoul" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 10354 | $as_echo "$bash_cv_decl_strtoul" >&6; } |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 10355 | bash_tr_func=HAVE_DECL_`echo strtoul | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
| 10356 | if test $bash_cv_decl_strtoul = yes; then |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 10357 | cat >>confdefs.h <<_ACEOF |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 10358 | #define $bash_tr_func 1 |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 10359 | _ACEOF |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 10360 | |
| 10361 | else |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 10362 | cat >>confdefs.h <<_ACEOF |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 10363 | #define $bash_tr_func 0 |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 10364 | _ACEOF |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 10365 | |
| 10366 | fi |
| 10367 | |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 10368 | |
| 10369 | |
| 10370 | |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 10371 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for declaration of strtoull" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 10372 | $as_echo_n "checking for declaration of strtoull... " >&6; } |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 10373 | if ${bash_cv_decl_strtoull+:} false; then : |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 10374 | $as_echo_n "(cached) " >&6 |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 10375 | else |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 10376 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Jari Aalto | 0628567 | 2006-10-10 14:15:34 +0000 | [diff] [blame] | 10377 | /* end confdefs.h. */ |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 10378 | |
| 10379 | #if STDC_HEADERS |
| 10380 | # include <stdlib.h> |
| 10381 | #endif |
| 10382 | #if HAVE_INTTYPES_H |
| 10383 | # include <inttypes.h> |
| 10384 | #endif |
| 10385 | |
| 10386 | int |
| 10387 | main () |
| 10388 | { |
| 10389 | return !strtoull; |
| 10390 | ; |
| 10391 | return 0; |
| 10392 | } |
| 10393 | _ACEOF |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 10394 | if ac_fn_c_try_link "$LINENO"; then : |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 10395 | bash_cv_decl_strtoull=yes |
| 10396 | else |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 10397 | bash_cv_decl_strtoull=no |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 10398 | fi |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 10399 | rm -f core conftest.err conftest.$ac_objext \ |
| 10400 | conftest$ac_exeext conftest.$ac_ext |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 10401 | fi |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 10402 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_decl_strtoull" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 10403 | $as_echo "$bash_cv_decl_strtoull" >&6; } |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 10404 | bash_tr_func=HAVE_DECL_`echo strtoull | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
| 10405 | if test $bash_cv_decl_strtoull = yes; then |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 10406 | cat >>confdefs.h <<_ACEOF |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 10407 | #define $bash_tr_func 1 |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 10408 | _ACEOF |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 10409 | |
| 10410 | else |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 10411 | cat >>confdefs.h <<_ACEOF |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 10412 | #define $bash_tr_func 0 |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 10413 | _ACEOF |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 10414 | |
| 10415 | fi |
| 10416 | |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 10417 | |
| 10418 | |
| 10419 | |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 10420 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for declaration of strtoumax" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 10421 | $as_echo_n "checking for declaration of strtoumax... " >&6; } |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 10422 | if ${bash_cv_decl_strtoumax+:} false; then : |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 10423 | $as_echo_n "(cached) " >&6 |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 10424 | else |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 10425 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Jari Aalto | 0628567 | 2006-10-10 14:15:34 +0000 | [diff] [blame] | 10426 | /* end confdefs.h. */ |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 10427 | |
| 10428 | #if STDC_HEADERS |
| 10429 | # include <stdlib.h> |
| 10430 | #endif |
| 10431 | #if HAVE_INTTYPES_H |
| 10432 | # include <inttypes.h> |
| 10433 | #endif |
| 10434 | |
| 10435 | int |
| 10436 | main () |
| 10437 | { |
| 10438 | return !strtoumax; |
| 10439 | ; |
| 10440 | return 0; |
| 10441 | } |
| 10442 | _ACEOF |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 10443 | if ac_fn_c_try_link "$LINENO"; then : |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 10444 | bash_cv_decl_strtoumax=yes |
| 10445 | else |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 10446 | bash_cv_decl_strtoumax=no |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 10447 | fi |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 10448 | rm -f core conftest.err conftest.$ac_objext \ |
| 10449 | conftest$ac_exeext conftest.$ac_ext |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 10450 | fi |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 10451 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_decl_strtoumax" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 10452 | $as_echo "$bash_cv_decl_strtoumax" >&6; } |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 10453 | bash_tr_func=HAVE_DECL_`echo strtoumax | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
| 10454 | if test $bash_cv_decl_strtoumax = yes; then |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 10455 | cat >>confdefs.h <<_ACEOF |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 10456 | #define $bash_tr_func 1 |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 10457 | _ACEOF |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 10458 | |
| 10459 | else |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 10460 | cat >>confdefs.h <<_ACEOF |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 10461 | #define $bash_tr_func 0 |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 10462 | _ACEOF |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 10463 | |
| 10464 | fi |
| 10465 | |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 10466 | |
| 10467 | |
| 10468 | |
Jari Aalto | 0628567 | 2006-10-10 14:15:34 +0000 | [diff] [blame] | 10469 | |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 10470 | |
Jari Aalto | 0628567 | 2006-10-10 14:15:34 +0000 | [diff] [blame] | 10471 | |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 10472 | for ac_func in $ac_func_list |
| 10473 | do : |
| 10474 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 10475 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
| 10476 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 10477 | cat >>confdefs.h <<_ACEOF |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 10478 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 10479 | _ACEOF |
Jari Aalto | 7117c2d | 2002-07-17 14:10:11 +0000 | [diff] [blame] | 10480 | |
| 10481 | fi |
| 10482 | done |
| 10483 | |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 10484 | |
| 10485 | |
| 10486 | |
| 10487 | |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 10488 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mktime" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 10489 | $as_echo_n "checking for working mktime... " >&6; } |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 10490 | if ${ac_cv_func_working_mktime+:} false; then : |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 10491 | $as_echo_n "(cached) " >&6 |
Jari Aalto | 7117c2d | 2002-07-17 14:10:11 +0000 | [diff] [blame] | 10492 | else |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 10493 | if test "$cross_compiling" = yes; then : |
Jari Aalto | 7117c2d | 2002-07-17 14:10:11 +0000 | [diff] [blame] | 10494 | ac_cv_func_working_mktime=no |
| 10495 | else |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 10496 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Jari Aalto | 0628567 | 2006-10-10 14:15:34 +0000 | [diff] [blame] | 10497 | /* end confdefs.h. */ |
Jari Aalto | 7117c2d | 2002-07-17 14:10:11 +0000 | [diff] [blame] | 10498 | /* Test program from Paul Eggert and Tony Leneis. */ |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 10499 | #ifdef TIME_WITH_SYS_TIME |
Jari Aalto | 7117c2d | 2002-07-17 14:10:11 +0000 | [diff] [blame] | 10500 | # include <sys/time.h> |
| 10501 | # include <time.h> |
| 10502 | #else |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 10503 | # ifdef HAVE_SYS_TIME_H |
Jari Aalto | 7117c2d | 2002-07-17 14:10:11 +0000 | [diff] [blame] | 10504 | # include <sys/time.h> |
| 10505 | # else |
| 10506 | # include <time.h> |
| 10507 | # endif |
| 10508 | #endif |
| 10509 | |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 10510 | #include <limits.h> |
| 10511 | #include <stdlib.h> |
Jari Aalto | 0628567 | 2006-10-10 14:15:34 +0000 | [diff] [blame] | 10512 | |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 10513 | #ifdef HAVE_UNISTD_H |
Jari Aalto | 7117c2d | 2002-07-17 14:10:11 +0000 | [diff] [blame] | 10514 | # include <unistd.h> |
| 10515 | #endif |
| 10516 | |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 10517 | #ifndef HAVE_ALARM |
Jari Aalto | 7117c2d | 2002-07-17 14:10:11 +0000 | [diff] [blame] | 10518 | # define alarm(X) /* empty */ |
| 10519 | #endif |
| 10520 | |
| 10521 | /* Work around redefinition to rpl_putenv by other config tests. */ |
| 10522 | #undef putenv |
| 10523 | |
| 10524 | static time_t time_t_max; |
Jari Aalto | 0628567 | 2006-10-10 14:15:34 +0000 | [diff] [blame] | 10525 | static time_t time_t_min; |
Jari Aalto | 7117c2d | 2002-07-17 14:10:11 +0000 | [diff] [blame] | 10526 | |
| 10527 | /* Values we'll use to set the TZ environment variable. */ |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 10528 | static const char *tz_strings[] = { |
| 10529 | (const char *) 0, "TZ=GMT0", "TZ=JST-9", |
Jari Aalto | 7117c2d | 2002-07-17 14:10:11 +0000 | [diff] [blame] | 10530 | "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00" |
| 10531 | }; |
| 10532 | #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0])) |
| 10533 | |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 10534 | /* Return 0 if mktime fails to convert a date in the spring-forward gap. |
Jari Aalto | 7117c2d | 2002-07-17 14:10:11 +0000 | [diff] [blame] | 10535 | Based on a problem report from Andreas Jaeger. */ |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 10536 | static int |
Jari Aalto | 7117c2d | 2002-07-17 14:10:11 +0000 | [diff] [blame] | 10537 | spring_forward_gap () |
| 10538 | { |
| 10539 | /* glibc (up to about 1998-10-07) failed this test. */ |
| 10540 | struct tm tm; |
| 10541 | |
| 10542 | /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0" |
| 10543 | instead of "TZ=America/Vancouver" in order to detect the bug even |
| 10544 | on systems that don't support the Olson extension, or don't have the |
| 10545 | full zoneinfo tables installed. */ |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 10546 | putenv ((char*) "TZ=PST8PDT,M4.1.0,M10.5.0"); |
Jari Aalto | 7117c2d | 2002-07-17 14:10:11 +0000 | [diff] [blame] | 10547 | |
| 10548 | tm.tm_year = 98; |
| 10549 | tm.tm_mon = 3; |
| 10550 | tm.tm_mday = 5; |
| 10551 | tm.tm_hour = 2; |
| 10552 | tm.tm_min = 0; |
| 10553 | tm.tm_sec = 0; |
| 10554 | tm.tm_isdst = -1; |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 10555 | return mktime (&tm) != (time_t) -1; |
Jari Aalto | 7117c2d | 2002-07-17 14:10:11 +0000 | [diff] [blame] | 10556 | } |
| 10557 | |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 10558 | static int |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 10559 | mktime_test1 (time_t now) |
Jari Aalto | 7117c2d | 2002-07-17 14:10:11 +0000 | [diff] [blame] | 10560 | { |
| 10561 | struct tm *lt; |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 10562 | return ! (lt = localtime (&now)) || mktime (lt) == now; |
Jari Aalto | 0628567 | 2006-10-10 14:15:34 +0000 | [diff] [blame] | 10563 | } |
| 10564 | |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 10565 | static int |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 10566 | mktime_test (time_t now) |
Jari Aalto | 0628567 | 2006-10-10 14:15:34 +0000 | [diff] [blame] | 10567 | { |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 10568 | return (mktime_test1 (now) |
| 10569 | && mktime_test1 ((time_t) (time_t_max - now)) |
| 10570 | && mktime_test1 ((time_t) (time_t_min + now))); |
Jari Aalto | 7117c2d | 2002-07-17 14:10:11 +0000 | [diff] [blame] | 10571 | } |
| 10572 | |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 10573 | static int |
Jari Aalto | 7117c2d | 2002-07-17 14:10:11 +0000 | [diff] [blame] | 10574 | irix_6_4_bug () |
| 10575 | { |
| 10576 | /* Based on code from Ariel Faigon. */ |
| 10577 | struct tm tm; |
| 10578 | tm.tm_year = 96; |
| 10579 | tm.tm_mon = 3; |
| 10580 | tm.tm_mday = 0; |
| 10581 | tm.tm_hour = 0; |
| 10582 | tm.tm_min = 0; |
| 10583 | tm.tm_sec = 0; |
| 10584 | tm.tm_isdst = -1; |
| 10585 | mktime (&tm); |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 10586 | return tm.tm_mon == 2 && tm.tm_mday == 31; |
Jari Aalto | 7117c2d | 2002-07-17 14:10:11 +0000 | [diff] [blame] | 10587 | } |
| 10588 | |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 10589 | static int |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 10590 | bigtime_test (int j) |
Jari Aalto | 7117c2d | 2002-07-17 14:10:11 +0000 | [diff] [blame] | 10591 | { |
| 10592 | struct tm tm; |
| 10593 | time_t now; |
| 10594 | tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j; |
| 10595 | now = mktime (&tm); |
| 10596 | if (now != (time_t) -1) |
| 10597 | { |
| 10598 | struct tm *lt = localtime (&now); |
| 10599 | if (! (lt |
| 10600 | && lt->tm_year == tm.tm_year |
| 10601 | && lt->tm_mon == tm.tm_mon |
| 10602 | && lt->tm_mday == tm.tm_mday |
| 10603 | && lt->tm_hour == tm.tm_hour |
| 10604 | && lt->tm_min == tm.tm_min |
| 10605 | && lt->tm_sec == tm.tm_sec |
| 10606 | && lt->tm_yday == tm.tm_yday |
| 10607 | && lt->tm_wday == tm.tm_wday |
| 10608 | && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst) |
| 10609 | == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst)))) |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 10610 | return 0; |
Jari Aalto | 7117c2d | 2002-07-17 14:10:11 +0000 | [diff] [blame] | 10611 | } |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 10612 | return 1; |
| 10613 | } |
| 10614 | |
| 10615 | static int |
| 10616 | year_2050_test () |
| 10617 | { |
| 10618 | /* The correct answer for 2050-02-01 00:00:00 in Pacific time, |
| 10619 | ignoring leap seconds. */ |
| 10620 | unsigned long int answer = 2527315200UL; |
| 10621 | |
| 10622 | struct tm tm; |
| 10623 | time_t t; |
| 10624 | tm.tm_year = 2050 - 1900; |
| 10625 | tm.tm_mon = 2 - 1; |
| 10626 | tm.tm_mday = 1; |
| 10627 | tm.tm_hour = tm.tm_min = tm.tm_sec = 0; |
| 10628 | tm.tm_isdst = -1; |
| 10629 | |
| 10630 | /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0" |
| 10631 | instead of "TZ=America/Vancouver" in order to detect the bug even |
| 10632 | on systems that don't support the Olson extension, or don't have the |
| 10633 | full zoneinfo tables installed. */ |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 10634 | putenv ((char*) "TZ=PST8PDT,M4.1.0,M10.5.0"); |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 10635 | |
| 10636 | t = mktime (&tm); |
| 10637 | |
| 10638 | /* Check that the result is either a failure, or close enough |
| 10639 | to the correct answer that we can assume the discrepancy is |
| 10640 | due to leap seconds. */ |
| 10641 | return (t == (time_t) -1 |
| 10642 | || (0 < t && answer - 120 <= t && t <= answer + 120)); |
Jari Aalto | 7117c2d | 2002-07-17 14:10:11 +0000 | [diff] [blame] | 10643 | } |
| 10644 | |
| 10645 | int |
| 10646 | main () |
| 10647 | { |
| 10648 | time_t t, delta; |
| 10649 | int i, j; |
| 10650 | |
| 10651 | /* This test makes some buggy mktime implementations loop. |
| 10652 | Give up after 60 seconds; a mktime slower than that |
| 10653 | isn't worth using anyway. */ |
| 10654 | alarm (60); |
| 10655 | |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 10656 | for (;;) |
| 10657 | { |
| 10658 | t = (time_t_max << 1) + 1; |
| 10659 | if (t <= time_t_max) |
| 10660 | break; |
| 10661 | time_t_max = t; |
| 10662 | } |
| 10663 | time_t_min = - ((time_t) ~ (time_t) 0 == (time_t) -1) - time_t_max; |
| 10664 | |
Jari Aalto | 7117c2d | 2002-07-17 14:10:11 +0000 | [diff] [blame] | 10665 | delta = time_t_max / 997; /* a suitable prime number */ |
| 10666 | for (i = 0; i < N_STRINGS; i++) |
| 10667 | { |
| 10668 | if (tz_strings[i]) |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 10669 | putenv ((char*) tz_strings[i]); |
Jari Aalto | 7117c2d | 2002-07-17 14:10:11 +0000 | [diff] [blame] | 10670 | |
| 10671 | for (t = 0; t <= time_t_max - delta; t += delta) |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 10672 | if (! mktime_test (t)) |
| 10673 | return 1; |
| 10674 | if (! (mktime_test ((time_t) 1) |
| 10675 | && mktime_test ((time_t) (60 * 60)) |
| 10676 | && mktime_test ((time_t) (60 * 60 * 24)))) |
| 10677 | return 1; |
Jari Aalto | 7117c2d | 2002-07-17 14:10:11 +0000 | [diff] [blame] | 10678 | |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 10679 | for (j = 1; ; j <<= 1) |
| 10680 | if (! bigtime_test (j)) |
| 10681 | return 1; |
| 10682 | else if (INT_MAX / 2 < j) |
| 10683 | break; |
| 10684 | if (! bigtime_test (INT_MAX)) |
| 10685 | return 1; |
Jari Aalto | 7117c2d | 2002-07-17 14:10:11 +0000 | [diff] [blame] | 10686 | } |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 10687 | return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ()); |
Jari Aalto | 7117c2d | 2002-07-17 14:10:11 +0000 | [diff] [blame] | 10688 | } |
| 10689 | _ACEOF |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 10690 | if ac_fn_c_try_run "$LINENO"; then : |
Jari Aalto | 7117c2d | 2002-07-17 14:10:11 +0000 | [diff] [blame] | 10691 | ac_cv_func_working_mktime=yes |
| 10692 | else |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 10693 | ac_cv_func_working_mktime=no |
Jari Aalto | 7117c2d | 2002-07-17 14:10:11 +0000 | [diff] [blame] | 10694 | fi |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 10695 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 10696 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Jari Aalto | 7117c2d | 2002-07-17 14:10:11 +0000 | [diff] [blame] | 10697 | fi |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 10698 | |
Jari Aalto | 7117c2d | 2002-07-17 14:10:11 +0000 | [diff] [blame] | 10699 | fi |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 10700 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_working_mktime" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 10701 | $as_echo "$ac_cv_func_working_mktime" >&6; } |
Jari Aalto | 7117c2d | 2002-07-17 14:10:11 +0000 | [diff] [blame] | 10702 | if test $ac_cv_func_working_mktime = no; then |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 10703 | case " $LIBOBJS " in |
Jari Aalto | 0628567 | 2006-10-10 14:15:34 +0000 | [diff] [blame] | 10704 | *" mktime.$ac_objext "* ) ;; |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 10705 | *) LIBOBJS="$LIBOBJS mktime.$ac_objext" |
| 10706 | ;; |
Jari Aalto | 0628567 | 2006-10-10 14:15:34 +0000 | [diff] [blame] | 10707 | esac |
| 10708 | |
Jari Aalto | 7117c2d | 2002-07-17 14:10:11 +0000 | [diff] [blame] | 10709 | fi |
| 10710 | |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 10711 | |
| 10712 | |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 10713 | for ac_header in argz.h errno.h fcntl.h malloc.h stdio_ext.h |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 10714 | do : |
| 10715 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 10716 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" |
| 10717 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 10718 | cat >>confdefs.h <<_ACEOF |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 10719 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Jari Aalto | 7117c2d | 2002-07-17 14:10:11 +0000 | [diff] [blame] | 10720 | _ACEOF |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 10721 | |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 10722 | fi |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 10723 | |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 10724 | done |
| 10725 | |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 10726 | |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 10727 | |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 10728 | for ac_func in getpagesize |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 10729 | do : |
| 10730 | ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize" |
| 10731 | if test "x$ac_cv_func_getpagesize" = xyes; then : |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 10732 | cat >>confdefs.h <<_ACEOF |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 10733 | #define HAVE_GETPAGESIZE 1 |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 10734 | _ACEOF |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 10735 | |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 10736 | fi |
| 10737 | done |
| 10738 | |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 10739 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 10740 | $as_echo_n "checking for working mmap... " >&6; } |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 10741 | if ${ac_cv_func_mmap_fixed_mapped+:} false; then : |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 10742 | $as_echo_n "(cached) " >&6 |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 10743 | else |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 10744 | if test "$cross_compiling" = yes; then : |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 10745 | ac_cv_func_mmap_fixed_mapped=no |
| 10746 | else |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 10747 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Jari Aalto | 0628567 | 2006-10-10 14:15:34 +0000 | [diff] [blame] | 10748 | /* end confdefs.h. */ |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 10749 | $ac_includes_default |
| 10750 | /* malloc might have been renamed as rpl_malloc. */ |
| 10751 | #undef malloc |
| 10752 | |
| 10753 | /* Thanks to Mike Haertel and Jim Avera for this test. |
| 10754 | Here is a matrix of mmap possibilities: |
| 10755 | mmap private not fixed |
| 10756 | mmap private fixed at somewhere currently unmapped |
| 10757 | mmap private fixed at somewhere already mapped |
| 10758 | mmap shared not fixed |
| 10759 | mmap shared fixed at somewhere currently unmapped |
| 10760 | mmap shared fixed at somewhere already mapped |
| 10761 | For private mappings, we should verify that changes cannot be read() |
| 10762 | back from the file, nor mmap's back from the file at a different |
| 10763 | address. (There have been systems where private was not correctly |
| 10764 | implemented like the infamous i386 svr4.0, and systems where the |
| 10765 | VM page cache was not coherent with the file system buffer cache |
| 10766 | like early versions of FreeBSD and possibly contemporary NetBSD.) |
| 10767 | For shared mappings, we should conversely verify that changes get |
| 10768 | propagated back to all the places they're supposed to be. |
| 10769 | |
| 10770 | Grep wants private fixed already mapped. |
| 10771 | The main things grep needs to know about mmap are: |
| 10772 | * does it exist and is it safe to write into the mmap'd area |
| 10773 | * how to use it (BSD variants) */ |
| 10774 | |
| 10775 | #include <fcntl.h> |
| 10776 | #include <sys/mman.h> |
| 10777 | |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 10778 | #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 10779 | char *malloc (); |
| 10780 | #endif |
| 10781 | |
| 10782 | /* This mess was copied from the GNU getpagesize.h. */ |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 10783 | #ifndef HAVE_GETPAGESIZE |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 10784 | # ifdef _SC_PAGESIZE |
| 10785 | # define getpagesize() sysconf(_SC_PAGESIZE) |
| 10786 | # else /* no _SC_PAGESIZE */ |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 10787 | # ifdef HAVE_SYS_PARAM_H |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 10788 | # include <sys/param.h> |
| 10789 | # ifdef EXEC_PAGESIZE |
| 10790 | # define getpagesize() EXEC_PAGESIZE |
| 10791 | # else /* no EXEC_PAGESIZE */ |
| 10792 | # ifdef NBPG |
| 10793 | # define getpagesize() NBPG * CLSIZE |
| 10794 | # ifndef CLSIZE |
| 10795 | # define CLSIZE 1 |
| 10796 | # endif /* no CLSIZE */ |
| 10797 | # else /* no NBPG */ |
| 10798 | # ifdef NBPC |
| 10799 | # define getpagesize() NBPC |
| 10800 | # else /* no NBPC */ |
| 10801 | # ifdef PAGESIZE |
| 10802 | # define getpagesize() PAGESIZE |
| 10803 | # endif /* PAGESIZE */ |
| 10804 | # endif /* no NBPC */ |
| 10805 | # endif /* no NBPG */ |
| 10806 | # endif /* no EXEC_PAGESIZE */ |
| 10807 | # else /* no HAVE_SYS_PARAM_H */ |
| 10808 | # define getpagesize() 8192 /* punt totally */ |
| 10809 | # endif /* no HAVE_SYS_PARAM_H */ |
| 10810 | # endif /* no _SC_PAGESIZE */ |
| 10811 | |
| 10812 | #endif /* no HAVE_GETPAGESIZE */ |
| 10813 | |
| 10814 | int |
| 10815 | main () |
| 10816 | { |
| 10817 | char *data, *data2, *data3; |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 10818 | const char *cdata2; |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 10819 | int i, pagesize; |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 10820 | int fd, fd2; |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 10821 | |
| 10822 | pagesize = getpagesize (); |
| 10823 | |
| 10824 | /* First, make a file with some known garbage in it. */ |
| 10825 | data = (char *) malloc (pagesize); |
| 10826 | if (!data) |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 10827 | return 1; |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 10828 | for (i = 0; i < pagesize; ++i) |
| 10829 | *(data + i) = rand (); |
| 10830 | umask (0); |
| 10831 | fd = creat ("conftest.mmap", 0600); |
| 10832 | if (fd < 0) |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 10833 | return 2; |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 10834 | if (write (fd, data, pagesize) != pagesize) |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 10835 | return 3; |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 10836 | close (fd); |
| 10837 | |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 10838 | /* Next, check that the tail of a page is zero-filled. File must have |
| 10839 | non-zero length, otherwise we risk SIGBUS for entire page. */ |
| 10840 | fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600); |
| 10841 | if (fd2 < 0) |
| 10842 | return 4; |
| 10843 | cdata2 = ""; |
| 10844 | if (write (fd2, cdata2, 1) != 1) |
| 10845 | return 5; |
| 10846 | data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L); |
| 10847 | if (data2 == MAP_FAILED) |
| 10848 | return 6; |
| 10849 | for (i = 0; i < pagesize; ++i) |
| 10850 | if (*(data2 + i)) |
| 10851 | return 7; |
| 10852 | close (fd2); |
| 10853 | if (munmap (data2, pagesize)) |
| 10854 | return 8; |
| 10855 | |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 10856 | /* Next, try to mmap the file at a fixed address which already has |
| 10857 | something else allocated at it. If we can, also make sure that |
| 10858 | we see the same garbage. */ |
| 10859 | fd = open ("conftest.mmap", O_RDWR); |
| 10860 | if (fd < 0) |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 10861 | return 9; |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 10862 | if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, |
Jari Aalto | 0628567 | 2006-10-10 14:15:34 +0000 | [diff] [blame] | 10863 | MAP_PRIVATE | MAP_FIXED, fd, 0L)) |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 10864 | return 10; |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 10865 | for (i = 0; i < pagesize; ++i) |
| 10866 | if (*(data + i) != *(data2 + i)) |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 10867 | return 11; |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 10868 | |
| 10869 | /* Finally, make sure that changes to the mapped area do not |
| 10870 | percolate back to the file as seen by read(). (This is a bug on |
| 10871 | some variants of i386 svr4.0.) */ |
| 10872 | for (i = 0; i < pagesize; ++i) |
| 10873 | *(data2 + i) = *(data2 + i) + 1; |
| 10874 | data3 = (char *) malloc (pagesize); |
| 10875 | if (!data3) |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 10876 | return 12; |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 10877 | if (read (fd, data3, pagesize) != pagesize) |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 10878 | return 13; |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 10879 | for (i = 0; i < pagesize; ++i) |
| 10880 | if (*(data + i) != *(data3 + i)) |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 10881 | return 14; |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 10882 | close (fd); |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 10883 | return 0; |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 10884 | } |
| 10885 | _ACEOF |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 10886 | if ac_fn_c_try_run "$LINENO"; then : |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 10887 | ac_cv_func_mmap_fixed_mapped=yes |
| 10888 | else |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 10889 | ac_cv_func_mmap_fixed_mapped=no |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 10890 | fi |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 10891 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 10892 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 10893 | fi |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 10894 | |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 10895 | fi |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 10896 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 10897 | $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; } |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 10898 | if test $ac_cv_func_mmap_fixed_mapped = yes; then |
| 10899 | |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 10900 | $as_echo "#define HAVE_MMAP 1" >>confdefs.h |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 10901 | |
| 10902 | fi |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 10903 | rm -f conftest.mmap conftest.txt |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 10904 | |
| 10905 | for ac_func in __argz_count __argz_next __argz_stringify dcgettext mempcpy \ |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 10906 | munmap stpcpy strcspn |
| 10907 | do : |
| 10908 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 10909 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
| 10910 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 10911 | cat >>confdefs.h <<_ACEOF |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 10912 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 10913 | _ACEOF |
| 10914 | |
| 10915 | fi |
| 10916 | done |
| 10917 | |
| 10918 | |
| 10919 | INTL_DEP= INTL_INC= LIBINTL_H= |
| 10920 | if test "x$USE_INCLUDED_LIBINTL" = "xyes"; then |
| 10921 | INTL_DEP='${INTL_LIBDIR}/libintl.a' |
| 10922 | INTL_INC='-I${INTL_LIBSRC} -I${INTL_BUILDDIR}' |
| 10923 | LIBINTL_H='${INTL_BUILDDIR}/libintl.h' |
| 10924 | fi |
| 10925 | |
| 10926 | |
| 10927 | |
| 10928 | |
| 10929 | |
| 10930 | |
Jari Aalto | 7117c2d | 2002-07-17 14:10:11 +0000 | [diff] [blame] | 10931 | for ac_header in wctype.h |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 10932 | do : |
| 10933 | ac_fn_c_check_header_mongrel "$LINENO" "wctype.h" "ac_cv_header_wctype_h" "$ac_includes_default" |
| 10934 | if test "x$ac_cv_header_wctype_h" = xyes; then : |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 10935 | cat >>confdefs.h <<_ACEOF |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 10936 | #define HAVE_WCTYPE_H 1 |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 10937 | _ACEOF |
| 10938 | |
| 10939 | fi |
| 10940 | |
Jari Aalto | 7117c2d | 2002-07-17 14:10:11 +0000 | [diff] [blame] | 10941 | done |
| 10942 | |
| 10943 | for ac_header in wchar.h |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 10944 | do : |
| 10945 | ac_fn_c_check_header_mongrel "$LINENO" "wchar.h" "ac_cv_header_wchar_h" "$ac_includes_default" |
| 10946 | if test "x$ac_cv_header_wchar_h" = xyes; then : |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 10947 | cat >>confdefs.h <<_ACEOF |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 10948 | #define HAVE_WCHAR_H 1 |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 10949 | _ACEOF |
| 10950 | |
| 10951 | fi |
| 10952 | |
Jari Aalto | 7117c2d | 2002-07-17 14:10:11 +0000 | [diff] [blame] | 10953 | done |
| 10954 | |
| 10955 | for ac_header in langinfo.h |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 10956 | do : |
| 10957 | ac_fn_c_check_header_mongrel "$LINENO" "langinfo.h" "ac_cv_header_langinfo_h" "$ac_includes_default" |
| 10958 | if test "x$ac_cv_header_langinfo_h" = xyes; then : |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 10959 | cat >>confdefs.h <<_ACEOF |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 10960 | #define HAVE_LANGINFO_H 1 |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 10961 | _ACEOF |
| 10962 | |
| 10963 | fi |
| 10964 | |
Jari Aalto | 7117c2d | 2002-07-17 14:10:11 +0000 | [diff] [blame] | 10965 | done |
| 10966 | |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 10967 | |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 10968 | ac_fn_c_check_func "$LINENO" "mbrlen" "ac_cv_func_mbrlen" |
| 10969 | if test "x$ac_cv_func_mbrlen" = xyes; then : |
| 10970 | $as_echo "#define HAVE_MBRLEN 1" >>confdefs.h |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 10971 | |
| 10972 | fi |
| 10973 | |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 10974 | ac_fn_c_check_func "$LINENO" "mbscasecmp" "ac_cv_func_mbscasecmp" |
| 10975 | if test "x$ac_cv_func_mbscasecmp" = xyes; then : |
| 10976 | $as_echo "#define HAVE_MBSCMP 1" >>confdefs.h |
Chet Ramey | 0001803 | 2011-11-21 20:51:19 -0500 | [diff] [blame] | 10977 | |
| 10978 | fi |
| 10979 | |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 10980 | ac_fn_c_check_func "$LINENO" "mbscmp" "ac_cv_func_mbscmp" |
| 10981 | if test "x$ac_cv_func_mbscmp" = xyes; then : |
| 10982 | $as_echo "#define HAVE_MBSCMP 1" >>confdefs.h |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 10983 | |
| 10984 | fi |
| 10985 | |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 10986 | ac_fn_c_check_func "$LINENO" "mbsnrtowcs" "ac_cv_func_mbsnrtowcs" |
| 10987 | if test "x$ac_cv_func_mbsnrtowcs" = xyes; then : |
| 10988 | $as_echo "#define HAVE_MBSNRTOWCS 1" >>confdefs.h |
Chet Ramey | 495aee4 | 2011-11-22 19:11:26 -0500 | [diff] [blame] | 10989 | |
| 10990 | fi |
| 10991 | |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 10992 | ac_fn_c_check_func "$LINENO" "mbsrtowcs" "ac_cv_func_mbsrtowcs" |
| 10993 | if test "x$ac_cv_func_mbsrtowcs" = xyes; then : |
| 10994 | $as_echo "#define HAVE_MBSRTOWCS 1" >>confdefs.h |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 10995 | |
| 10996 | fi |
| 10997 | |
| 10998 | |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 10999 | ac_fn_c_check_func "$LINENO" "mbschr" "ac_cv_func_mbschr" |
| 11000 | if test "x$ac_cv_func_mbschr" = xyes; then : |
| 11001 | $as_echo "#define HAVE_MBSCHR 1" >>confdefs.h |
Chet Ramey | 0001803 | 2011-11-21 20:51:19 -0500 | [diff] [blame] | 11002 | |
| 11003 | else |
| 11004 | case " $LIBOBJS " in |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 11005 | *" mbschr.$ac_objext "* ) ;; |
| 11006 | *) LIBOBJS="$LIBOBJS mbschr.$ac_objext" |
Chet Ramey | 0001803 | 2011-11-21 20:51:19 -0500 | [diff] [blame] | 11007 | ;; |
| 11008 | esac |
| 11009 | |
| 11010 | fi |
Chet Ramey | 0001803 | 2011-11-21 20:51:19 -0500 | [diff] [blame] | 11011 | |
| 11012 | |
| 11013 | |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 11014 | ac_fn_c_check_func "$LINENO" "wcrtomb" "ac_cv_func_wcrtomb" |
| 11015 | if test "x$ac_cv_func_wcrtomb" = xyes; then : |
| 11016 | $as_echo "#define HAVE_WCRTOMB 1" >>confdefs.h |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 11017 | |
| 11018 | fi |
| 11019 | |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 11020 | ac_fn_c_check_func "$LINENO" "wcscoll" "ac_cv_func_wcscoll" |
| 11021 | if test "x$ac_cv_func_wcscoll" = xyes; then : |
| 11022 | $as_echo "#define HAVE_WCSCOLL 1" >>confdefs.h |
Jari Aalto | 7117c2d | 2002-07-17 14:10:11 +0000 | [diff] [blame] | 11023 | |
| 11024 | fi |
| 11025 | |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 11026 | ac_fn_c_check_func "$LINENO" "wcsdup" "ac_cv_func_wcsdup" |
| 11027 | if test "x$ac_cv_func_wcsdup" = xyes; then : |
| 11028 | $as_echo "#define HAVE_WCSDUP 1" >>confdefs.h |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 11029 | |
| 11030 | fi |
| 11031 | |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 11032 | ac_fn_c_check_func "$LINENO" "wcwidth" "ac_cv_func_wcwidth" |
| 11033 | if test "x$ac_cv_func_wcwidth" = xyes; then : |
| 11034 | $as_echo "#define HAVE_WCWIDTH 1" >>confdefs.h |
Jari Aalto | 0628567 | 2006-10-10 14:15:34 +0000 | [diff] [blame] | 11035 | |
| 11036 | fi |
| 11037 | |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 11038 | ac_fn_c_check_func "$LINENO" "wctype" "ac_cv_func_wctype" |
| 11039 | if test "x$ac_cv_func_wctype" = xyes; then : |
| 11040 | $as_echo "#define HAVE_WCTYPE 1" >>confdefs.h |
Jari Aalto | 0628567 | 2006-10-10 14:15:34 +0000 | [diff] [blame] | 11041 | |
| 11042 | fi |
| 11043 | |
| 11044 | |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 11045 | ac_fn_c_check_func "$LINENO" "wcswidth" "ac_cv_func_wcswidth" |
| 11046 | if test "x$ac_cv_func_wcswidth" = xyes; then : |
| 11047 | $as_echo "#define HAVE_WCSWIDTH 1" >>confdefs.h |
Chet Ramey | 495aee4 | 2011-11-22 19:11:26 -0500 | [diff] [blame] | 11048 | |
| 11049 | else |
| 11050 | case " $LIBOBJS " in |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 11051 | *" wcswidth.$ac_objext "* ) ;; |
| 11052 | *) LIBOBJS="$LIBOBJS wcswidth.$ac_objext" |
Chet Ramey | 495aee4 | 2011-11-22 19:11:26 -0500 | [diff] [blame] | 11053 | ;; |
| 11054 | esac |
| 11055 | |
| 11056 | fi |
Chet Ramey | 495aee4 | 2011-11-22 19:11:26 -0500 | [diff] [blame] | 11057 | |
| 11058 | |
| 11059 | |
| 11060 | |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 11061 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc and mbstate_t are properly declared" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 11062 | $as_echo_n "checking whether mbrtowc and mbstate_t are properly declared... " >&6; } |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 11063 | if ${ac_cv_func_mbrtowc+:} false; then : |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 11064 | $as_echo_n "(cached) " >&6 |
Jari Aalto | 0628567 | 2006-10-10 14:15:34 +0000 | [diff] [blame] | 11065 | else |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 11066 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Jari Aalto | 0628567 | 2006-10-10 14:15:34 +0000 | [diff] [blame] | 11067 | /* end confdefs.h. */ |
| 11068 | #include <wchar.h> |
| 11069 | int |
| 11070 | main () |
| 11071 | { |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 11072 | wchar_t wc; |
| 11073 | char const s[] = ""; |
| 11074 | size_t n = 1; |
| 11075 | mbstate_t state; |
| 11076 | return ! (sizeof state && (mbrtowc) (&wc, s, n, &state)); |
Jari Aalto | 0628567 | 2006-10-10 14:15:34 +0000 | [diff] [blame] | 11077 | ; |
| 11078 | return 0; |
| 11079 | } |
| 11080 | _ACEOF |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 11081 | if ac_fn_c_try_link "$LINENO"; then : |
Jari Aalto | 0628567 | 2006-10-10 14:15:34 +0000 | [diff] [blame] | 11082 | ac_cv_func_mbrtowc=yes |
| 11083 | else |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 11084 | ac_cv_func_mbrtowc=no |
Jari Aalto | 0628567 | 2006-10-10 14:15:34 +0000 | [diff] [blame] | 11085 | fi |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 11086 | rm -f core conftest.err conftest.$ac_objext \ |
| 11087 | conftest$ac_exeext conftest.$ac_ext |
Jari Aalto | 0628567 | 2006-10-10 14:15:34 +0000 | [diff] [blame] | 11088 | fi |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 11089 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mbrtowc" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 11090 | $as_echo "$ac_cv_func_mbrtowc" >&6; } |
Jari Aalto | 0628567 | 2006-10-10 14:15:34 +0000 | [diff] [blame] | 11091 | if test $ac_cv_func_mbrtowc = yes; then |
| 11092 | |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 11093 | $as_echo "#define HAVE_MBRTOWC 1" >>confdefs.h |
Jari Aalto | 0628567 | 2006-10-10 14:15:34 +0000 | [diff] [blame] | 11094 | |
| 11095 | fi |
| 11096 | |
| 11097 | if test $ac_cv_func_mbrtowc = yes; then |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 11098 | $as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h |
Jari Aalto | 7117c2d | 2002-07-17 14:10:11 +0000 | [diff] [blame] | 11099 | |
| 11100 | fi |
| 11101 | |
Jari Aalto | 0628567 | 2006-10-10 14:15:34 +0000 | [diff] [blame] | 11102 | for ac_func in iswlower iswupper towlower towupper iswctype |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 11103 | do : |
| 11104 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 11105 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
| 11106 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
Jari Aalto | 0628567 | 2006-10-10 14:15:34 +0000 | [diff] [blame] | 11107 | cat >>confdefs.h <<_ACEOF |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 11108 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Jari Aalto | 0628567 | 2006-10-10 14:15:34 +0000 | [diff] [blame] | 11109 | _ACEOF |
| 11110 | |
| 11111 | fi |
| 11112 | done |
| 11113 | |
| 11114 | |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 11115 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 11116 | $as_echo_n "checking for nl_langinfo and CODESET... " >&6; } |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 11117 | if ${bash_cv_langinfo_codeset+:} false; then : |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 11118 | $as_echo_n "(cached) " >&6 |
Jari Aalto | 7117c2d | 2002-07-17 14:10:11 +0000 | [diff] [blame] | 11119 | else |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 11120 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Jari Aalto | 0628567 | 2006-10-10 14:15:34 +0000 | [diff] [blame] | 11121 | /* end confdefs.h. */ |
Jari Aalto | 7117c2d | 2002-07-17 14:10:11 +0000 | [diff] [blame] | 11122 | #include <langinfo.h> |
| 11123 | int |
| 11124 | main () |
| 11125 | { |
| 11126 | char* cs = nl_langinfo(CODESET); |
| 11127 | ; |
| 11128 | return 0; |
| 11129 | } |
| 11130 | _ACEOF |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 11131 | if ac_fn_c_try_link "$LINENO"; then : |
Jari Aalto | 7117c2d | 2002-07-17 14:10:11 +0000 | [diff] [blame] | 11132 | bash_cv_langinfo_codeset=yes |
| 11133 | else |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 11134 | bash_cv_langinfo_codeset=no |
Jari Aalto | 7117c2d | 2002-07-17 14:10:11 +0000 | [diff] [blame] | 11135 | fi |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 11136 | rm -f core conftest.err conftest.$ac_objext \ |
| 11137 | conftest$ac_exeext conftest.$ac_ext |
Jari Aalto | 7117c2d | 2002-07-17 14:10:11 +0000 | [diff] [blame] | 11138 | fi |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 11139 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_langinfo_codeset" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 11140 | $as_echo "$bash_cv_langinfo_codeset" >&6; } |
Jari Aalto | 7117c2d | 2002-07-17 14:10:11 +0000 | [diff] [blame] | 11141 | if test $bash_cv_langinfo_codeset = yes; then |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 11142 | $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h |
Jari Aalto | 7117c2d | 2002-07-17 14:10:11 +0000 | [diff] [blame] | 11143 | |
| 11144 | fi |
| 11145 | |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 11146 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t in wchar.h" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 11147 | $as_echo_n "checking for wchar_t in wchar.h... " >&6; } |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 11148 | if ${bash_cv_type_wchar_t+:} false; then : |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 11149 | $as_echo_n "(cached) " >&6 |
Jari Aalto | 0628567 | 2006-10-10 14:15:34 +0000 | [diff] [blame] | 11150 | else |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 11151 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Jari Aalto | 0628567 | 2006-10-10 14:15:34 +0000 | [diff] [blame] | 11152 | /* end confdefs.h. */ |
| 11153 | #include <wchar.h> |
| 11154 | |
| 11155 | int |
| 11156 | main () |
| 11157 | { |
| 11158 | |
| 11159 | wchar_t foo; |
| 11160 | foo = 0; |
| 11161 | |
| 11162 | ; |
| 11163 | return 0; |
| 11164 | } |
| 11165 | _ACEOF |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 11166 | if ac_fn_c_try_compile "$LINENO"; then : |
Jari Aalto | 0628567 | 2006-10-10 14:15:34 +0000 | [diff] [blame] | 11167 | bash_cv_type_wchar_t=yes |
| 11168 | else |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 11169 | bash_cv_type_wchar_t=no |
Jari Aalto | 0628567 | 2006-10-10 14:15:34 +0000 | [diff] [blame] | 11170 | fi |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 11171 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Jari Aalto | 0628567 | 2006-10-10 14:15:34 +0000 | [diff] [blame] | 11172 | fi |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 11173 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_type_wchar_t" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 11174 | $as_echo "$bash_cv_type_wchar_t" >&6; } |
Jari Aalto | 0628567 | 2006-10-10 14:15:34 +0000 | [diff] [blame] | 11175 | if test $bash_cv_type_wchar_t = yes; then |
| 11176 | |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 11177 | $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h |
Jari Aalto | 0628567 | 2006-10-10 14:15:34 +0000 | [diff] [blame] | 11178 | |
| 11179 | fi |
| 11180 | |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 11181 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wctype_t in wctype.h" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 11182 | $as_echo_n "checking for wctype_t in wctype.h... " >&6; } |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 11183 | if ${bash_cv_type_wctype_t+:} false; then : |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 11184 | $as_echo_n "(cached) " >&6 |
Jari Aalto | 0628567 | 2006-10-10 14:15:34 +0000 | [diff] [blame] | 11185 | else |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 11186 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Jari Aalto | 0628567 | 2006-10-10 14:15:34 +0000 | [diff] [blame] | 11187 | /* end confdefs.h. */ |
| 11188 | #include <wctype.h> |
| 11189 | int |
| 11190 | main () |
| 11191 | { |
| 11192 | |
| 11193 | wctype_t foo; |
| 11194 | foo = 0; |
| 11195 | |
| 11196 | ; |
| 11197 | return 0; |
| 11198 | } |
| 11199 | _ACEOF |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 11200 | if ac_fn_c_try_compile "$LINENO"; then : |
Jari Aalto | 0628567 | 2006-10-10 14:15:34 +0000 | [diff] [blame] | 11201 | bash_cv_type_wctype_t=yes |
| 11202 | else |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 11203 | bash_cv_type_wctype_t=no |
Jari Aalto | 0628567 | 2006-10-10 14:15:34 +0000 | [diff] [blame] | 11204 | fi |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 11205 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Jari Aalto | 0628567 | 2006-10-10 14:15:34 +0000 | [diff] [blame] | 11206 | fi |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 11207 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_type_wctype_t" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 11208 | $as_echo "$bash_cv_type_wctype_t" >&6; } |
Jari Aalto | 0628567 | 2006-10-10 14:15:34 +0000 | [diff] [blame] | 11209 | if test $bash_cv_type_wctype_t = yes; then |
| 11210 | |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 11211 | $as_echo "#define HAVE_WCTYPE_T 1" >>confdefs.h |
Jari Aalto | 0628567 | 2006-10-10 14:15:34 +0000 | [diff] [blame] | 11212 | |
| 11213 | fi |
| 11214 | |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 11215 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t in wctype.h" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 11216 | $as_echo_n "checking for wint_t in wctype.h... " >&6; } |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 11217 | if ${bash_cv_type_wint_t+:} false; then : |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 11218 | $as_echo_n "(cached) " >&6 |
Jari Aalto | 0628567 | 2006-10-10 14:15:34 +0000 | [diff] [blame] | 11219 | else |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 11220 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Jari Aalto | 0628567 | 2006-10-10 14:15:34 +0000 | [diff] [blame] | 11221 | /* end confdefs.h. */ |
| 11222 | #include <wctype.h> |
| 11223 | int |
| 11224 | main () |
| 11225 | { |
| 11226 | |
| 11227 | wint_t foo; |
| 11228 | foo = 0; |
| 11229 | |
| 11230 | ; |
| 11231 | return 0; |
| 11232 | } |
| 11233 | _ACEOF |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 11234 | if ac_fn_c_try_compile "$LINENO"; then : |
Jari Aalto | 0628567 | 2006-10-10 14:15:34 +0000 | [diff] [blame] | 11235 | bash_cv_type_wint_t=yes |
| 11236 | else |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 11237 | bash_cv_type_wint_t=no |
Jari Aalto | 0628567 | 2006-10-10 14:15:34 +0000 | [diff] [blame] | 11238 | fi |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 11239 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Jari Aalto | 0628567 | 2006-10-10 14:15:34 +0000 | [diff] [blame] | 11240 | fi |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 11241 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_type_wint_t" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 11242 | $as_echo "$bash_cv_type_wint_t" >&6; } |
Jari Aalto | 0628567 | 2006-10-10 14:15:34 +0000 | [diff] [blame] | 11243 | if test $bash_cv_type_wint_t = yes; then |
| 11244 | |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 11245 | $as_echo "#define HAVE_WINT_T 1" >>confdefs.h |
| 11246 | |
| 11247 | fi |
| 11248 | |
| 11249 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wcwidth broken with unicode combining characters" >&5 |
| 11250 | $as_echo_n "checking for wcwidth broken with unicode combining characters... " >&6; } |
| 11251 | if ${bash_cv_wcwidth_broken+:} false; then : |
| 11252 | $as_echo_n "(cached) " >&6 |
| 11253 | else |
| 11254 | if test "$cross_compiling" = yes; then : |
| 11255 | bash_cv_wcwidth_broken=no |
| 11256 | else |
| 11257 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 11258 | /* end confdefs.h. */ |
| 11259 | |
| 11260 | #include <unistd.h> |
| 11261 | #include <stdlib.h> |
| 11262 | #include <stdio.h> |
| 11263 | |
| 11264 | #include <locale.h> |
| 11265 | #include <wchar.h> |
| 11266 | |
| 11267 | main(c, v) |
| 11268 | int c; |
| 11269 | char **v; |
| 11270 | { |
| 11271 | int w; |
| 11272 | |
| 11273 | setlocale(LC_ALL, "en_US.UTF-8"); |
| 11274 | w = wcwidth (0x0301); |
| 11275 | exit (w == 0); /* exit 0 if wcwidth broken */ |
| 11276 | } |
| 11277 | |
Jari Aalto | 0628567 | 2006-10-10 14:15:34 +0000 | [diff] [blame] | 11278 | _ACEOF |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 11279 | if ac_fn_c_try_run "$LINENO"; then : |
| 11280 | bash_cv_wcwidth_broken=yes |
| 11281 | else |
| 11282 | bash_cv_wcwdith_broken=no |
| 11283 | fi |
| 11284 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 11285 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 11286 | fi |
| 11287 | |
| 11288 | fi |
| 11289 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_wcwidth_broken" >&5 |
| 11290 | $as_echo "$bash_cv_wcwidth_broken" >&6; } |
| 11291 | if test "$bash_cv_wcwidth_broken" = yes; then |
| 11292 | |
| 11293 | $as_echo "#define WCWIDTH_BROKEN 1" >>confdefs.h |
Jari Aalto | 0628567 | 2006-10-10 14:15:34 +0000 | [diff] [blame] | 11294 | |
| 11295 | fi |
| 11296 | |
Chet Ramey | 0001803 | 2011-11-21 20:51:19 -0500 | [diff] [blame] | 11297 | if test "$am_cv_func_iconv" = yes; then |
| 11298 | OLDLIBS="$LIBS" |
| 11299 | LIBS="$LIBS $LIBICONV" |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 11300 | for ac_func in locale_charset |
| 11301 | do : |
| 11302 | ac_fn_c_check_func "$LINENO" "locale_charset" "ac_cv_func_locale_charset" |
| 11303 | if test "x$ac_cv_func_locale_charset" = xyes; then : |
Chet Ramey | 0001803 | 2011-11-21 20:51:19 -0500 | [diff] [blame] | 11304 | cat >>confdefs.h <<_ACEOF |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 11305 | #define HAVE_LOCALE_CHARSET 1 |
Chet Ramey | 0001803 | 2011-11-21 20:51:19 -0500 | [diff] [blame] | 11306 | _ACEOF |
| 11307 | |
| 11308 | fi |
| 11309 | done |
| 11310 | |
| 11311 | LIBS="$OLDLIBS" |
| 11312 | fi |
| 11313 | |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 11314 | |
| 11315 | |
Jari Aalto | cce855b | 1998-04-17 19:52:44 +0000 | [diff] [blame] | 11316 | if test "$opt_static_link" != yes; then |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 11317 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 11318 | $as_echo_n "checking for dlopen in -ldl... " >&6; } |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 11319 | if ${ac_cv_lib_dl_dlopen+:} false; then : |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 11320 | $as_echo_n "(cached) " >&6 |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 11321 | else |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 11322 | ac_check_lib_save_LIBS=$LIBS |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 11323 | LIBS="-ldl $LIBS" |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 11324 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Jari Aalto | 0628567 | 2006-10-10 14:15:34 +0000 | [diff] [blame] | 11325 | /* end confdefs.h. */ |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 11326 | |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 11327 | /* Override any GCC internal prototype to avoid an error. |
| 11328 | Use char because int might match the return type of a GCC |
| 11329 | builtin and then its argument prototype would still apply. */ |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 11330 | #ifdef __cplusplus |
| 11331 | extern "C" |
| 11332 | #endif |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 11333 | char dlopen (); |
| 11334 | int |
| 11335 | main () |
| 11336 | { |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 11337 | return dlopen (); |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 11338 | ; |
| 11339 | return 0; |
| 11340 | } |
| 11341 | _ACEOF |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 11342 | if ac_fn_c_try_link "$LINENO"; then : |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 11343 | ac_cv_lib_dl_dlopen=yes |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 11344 | else |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 11345 | ac_cv_lib_dl_dlopen=no |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 11346 | fi |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 11347 | rm -f core conftest.err conftest.$ac_objext \ |
| 11348 | conftest$ac_exeext conftest.$ac_ext |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 11349 | LIBS=$ac_check_lib_save_LIBS |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 11350 | fi |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 11351 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 11352 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 11353 | if test "x$ac_cv_lib_dl_dlopen" = xyes; then : |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 11354 | cat >>confdefs.h <<_ACEOF |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 11355 | #define HAVE_LIBDL 1 |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 11356 | _ACEOF |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 11357 | |
| 11358 | LIBS="-ldl $LIBS" |
| 11359 | |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 11360 | fi |
| 11361 | |
| 11362 | for ac_func in dlopen dlclose dlsym |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 11363 | do : |
| 11364 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 11365 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
| 11366 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 11367 | cat >>confdefs.h <<_ACEOF |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 11368 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 11369 | _ACEOF |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 11370 | |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 11371 | fi |
| 11372 | done |
| 11373 | |
Jari Aalto | cce855b | 1998-04-17 19:52:44 +0000 | [diff] [blame] | 11374 | fi |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 11375 | |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 11376 | ac_fn_c_check_decl "$LINENO" "sys_siglist" "ac_cv_have_decl_sys_siglist" "#include <signal.h> |
Jari Aalto | 95732b4 | 2005-12-07 14:08:12 +0000 | [diff] [blame] | 11377 | /* NetBSD declares sys_siglist in unistd.h. */ |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 11378 | #ifdef HAVE_UNISTD_H |
Jari Aalto | 95732b4 | 2005-12-07 14:08:12 +0000 | [diff] [blame] | 11379 | # include <unistd.h> |
| 11380 | #endif |
| 11381 | |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 11382 | " |
| 11383 | if test "x$ac_cv_have_decl_sys_siglist" = xyes; then : |
| 11384 | ac_have_decl=1 |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 11385 | else |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 11386 | ac_have_decl=0 |
Jari Aalto | 0628567 | 2006-10-10 14:15:34 +0000 | [diff] [blame] | 11387 | fi |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 11388 | |
Jari Aalto | 0628567 | 2006-10-10 14:15:34 +0000 | [diff] [blame] | 11389 | cat >>confdefs.h <<_ACEOF |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 11390 | #define HAVE_DECL_SYS_SIGLIST $ac_have_decl |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 11391 | _ACEOF |
| 11392 | |
Jari Aalto | 0628567 | 2006-10-10 14:15:34 +0000 | [diff] [blame] | 11393 | |
Jari Aalto | 0628567 | 2006-10-10 14:15:34 +0000 | [diff] [blame] | 11394 | |
Jari Aalto | bb70624 | 2000-03-17 21:46:59 +0000 | [diff] [blame] | 11395 | if test "$ac_cv_func_inet_aton" != 'yes'; then |
| 11396 | |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 11397 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_aton" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 11398 | $as_echo_n "checking for inet_aton... " >&6; } |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 11399 | if ${bash_cv_func_inet_aton+:} false; then : |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 11400 | $as_echo_n "(cached) " >&6 |
Jari Aalto | bb70624 | 2000-03-17 21:46:59 +0000 | [diff] [blame] | 11401 | else |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 11402 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Jari Aalto | 0628567 | 2006-10-10 14:15:34 +0000 | [diff] [blame] | 11403 | /* end confdefs.h. */ |
Jari Aalto | bb70624 | 2000-03-17 21:46:59 +0000 | [diff] [blame] | 11404 | |
| 11405 | #include <sys/types.h> |
| 11406 | #include <netinet/in.h> |
| 11407 | #include <arpa/inet.h> |
| 11408 | struct in_addr ap; |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 11409 | int |
| 11410 | main () |
| 11411 | { |
| 11412 | inet_aton("127.0.0.1", &ap); |
| 11413 | ; |
| 11414 | return 0; |
| 11415 | } |
| 11416 | _ACEOF |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 11417 | if ac_fn_c_try_link "$LINENO"; then : |
Jari Aalto | bb70624 | 2000-03-17 21:46:59 +0000 | [diff] [blame] | 11418 | bash_cv_func_inet_aton=yes |
| 11419 | else |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 11420 | bash_cv_func_inet_aton=no |
Jari Aalto | bb70624 | 2000-03-17 21:46:59 +0000 | [diff] [blame] | 11421 | fi |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 11422 | rm -f core conftest.err conftest.$ac_objext \ |
| 11423 | conftest$ac_exeext conftest.$ac_ext |
Jari Aalto | bb70624 | 2000-03-17 21:46:59 +0000 | [diff] [blame] | 11424 | fi |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 11425 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_func_inet_aton" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 11426 | $as_echo "$bash_cv_func_inet_aton" >&6; } |
Jari Aalto | bb70624 | 2000-03-17 21:46:59 +0000 | [diff] [blame] | 11427 | if test $bash_cv_func_inet_aton = yes; then |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 11428 | $as_echo "#define HAVE_INET_ATON 1" >>confdefs.h |
Jari Aalto | bb70624 | 2000-03-17 21:46:59 +0000 | [diff] [blame] | 11429 | |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 11430 | else |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 11431 | case " $LIBOBJS " in |
Jari Aalto | 0628567 | 2006-10-10 14:15:34 +0000 | [diff] [blame] | 11432 | *" inet_aton.$ac_objext "* ) ;; |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 11433 | *) LIBOBJS="$LIBOBJS inet_aton.$ac_objext" |
| 11434 | ;; |
Jari Aalto | 0628567 | 2006-10-10 14:15:34 +0000 | [diff] [blame] | 11435 | esac |
| 11436 | |
Jari Aalto | bb70624 | 2000-03-17 21:46:59 +0000 | [diff] [blame] | 11437 | fi |
| 11438 | |
| 11439 | fi |
| 11440 | |
| 11441 | case "$host_os" in |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 11442 | irix4*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getpwent in -lsun" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 11443 | $as_echo_n "checking for getpwent in -lsun... " >&6; } |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 11444 | if ${ac_cv_lib_sun_getpwent+:} false; then : |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 11445 | $as_echo_n "(cached) " >&6 |
Jari Aalto | bb70624 | 2000-03-17 21:46:59 +0000 | [diff] [blame] | 11446 | else |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 11447 | ac_check_lib_save_LIBS=$LIBS |
Jari Aalto | bb70624 | 2000-03-17 21:46:59 +0000 | [diff] [blame] | 11448 | LIBS="-lsun $LIBS" |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 11449 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Jari Aalto | 0628567 | 2006-10-10 14:15:34 +0000 | [diff] [blame] | 11450 | /* end confdefs.h. */ |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 11451 | |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 11452 | /* Override any GCC internal prototype to avoid an error. |
| 11453 | Use char because int might match the return type of a GCC |
| 11454 | builtin and then its argument prototype would still apply. */ |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 11455 | #ifdef __cplusplus |
| 11456 | extern "C" |
| 11457 | #endif |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 11458 | char getpwent (); |
| 11459 | int |
| 11460 | main () |
| 11461 | { |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 11462 | return getpwent (); |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 11463 | ; |
| 11464 | return 0; |
| 11465 | } |
| 11466 | _ACEOF |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 11467 | if ac_fn_c_try_link "$LINENO"; then : |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 11468 | ac_cv_lib_sun_getpwent=yes |
Jari Aalto | bb70624 | 2000-03-17 21:46:59 +0000 | [diff] [blame] | 11469 | else |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 11470 | ac_cv_lib_sun_getpwent=no |
Jari Aalto | bb70624 | 2000-03-17 21:46:59 +0000 | [diff] [blame] | 11471 | fi |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 11472 | rm -f core conftest.err conftest.$ac_objext \ |
| 11473 | conftest$ac_exeext conftest.$ac_ext |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 11474 | LIBS=$ac_check_lib_save_LIBS |
Jari Aalto | bb70624 | 2000-03-17 21:46:59 +0000 | [diff] [blame] | 11475 | fi |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 11476 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sun_getpwent" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 11477 | $as_echo "$ac_cv_lib_sun_getpwent" >&6; } |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 11478 | if test "x$ac_cv_lib_sun_getpwent" = xyes; then : |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 11479 | cat >>confdefs.h <<_ACEOF |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 11480 | #define HAVE_LIBSUN 1 |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 11481 | _ACEOF |
Jari Aalto | bb70624 | 2000-03-17 21:46:59 +0000 | [diff] [blame] | 11482 | |
| 11483 | LIBS="-lsun $LIBS" |
| 11484 | |
Jari Aalto | bb70624 | 2000-03-17 21:46:59 +0000 | [diff] [blame] | 11485 | fi |
| 11486 | ;; |
| 11487 | esac |
| 11488 | |
Jari Aalto | d166f04 | 1997-06-05 14:59:13 +0000 | [diff] [blame] | 11489 | if test "$ac_cv_func_getpeername" = no; then |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 11490 | |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 11491 | if test "X$bash_cv_have_socklib" = "X"; then |
| 11492 | _bash_needmsg= |
| 11493 | else |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 11494 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket library" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 11495 | $as_echo_n "checking for socket library... " >&6; } |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 11496 | _bash_needmsg=yes |
| 11497 | fi |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 11498 | if ${bash_cv_have_socklib+:} false; then : |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 11499 | $as_echo_n "(cached) " >&6 |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 11500 | else |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 11501 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getpeername in -lsocket" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 11502 | $as_echo_n "checking for getpeername in -lsocket... " >&6; } |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 11503 | if ${ac_cv_lib_socket_getpeername+:} false; then : |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 11504 | $as_echo_n "(cached) " >&6 |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 11505 | else |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 11506 | ac_check_lib_save_LIBS=$LIBS |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 11507 | LIBS="-lsocket -lnsl $LIBS" |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 11508 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Jari Aalto | 0628567 | 2006-10-10 14:15:34 +0000 | [diff] [blame] | 11509 | /* end confdefs.h. */ |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 11510 | |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 11511 | /* Override any GCC internal prototype to avoid an error. |
| 11512 | Use char because int might match the return type of a GCC |
| 11513 | builtin and then its argument prototype would still apply. */ |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 11514 | #ifdef __cplusplus |
| 11515 | extern "C" |
| 11516 | #endif |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 11517 | char getpeername (); |
| 11518 | int |
| 11519 | main () |
| 11520 | { |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 11521 | return getpeername (); |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 11522 | ; |
| 11523 | return 0; |
| 11524 | } |
| 11525 | _ACEOF |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 11526 | if ac_fn_c_try_link "$LINENO"; then : |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 11527 | ac_cv_lib_socket_getpeername=yes |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 11528 | else |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 11529 | ac_cv_lib_socket_getpeername=no |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 11530 | fi |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 11531 | rm -f core conftest.err conftest.$ac_objext \ |
| 11532 | conftest$ac_exeext conftest.$ac_ext |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 11533 | LIBS=$ac_check_lib_save_LIBS |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 11534 | fi |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 11535 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_getpeername" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 11536 | $as_echo "$ac_cv_lib_socket_getpeername" >&6; } |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 11537 | if test "x$ac_cv_lib_socket_getpeername" = xyes; then : |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 11538 | bash_cv_have_socklib=yes |
| 11539 | else |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 11540 | bash_cv_have_socklib=no |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 11541 | fi |
| 11542 | |
| 11543 | fi |
| 11544 | |
| 11545 | if test "X$_bash_needmsg" = Xyes; then |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 11546 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_have_socklib" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 11547 | $as_echo "$bash_cv_have_socklib" >&6; } |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 11548 | _bash_needmsg= |
| 11549 | fi |
| 11550 | if test $bash_cv_have_socklib = yes; then |
| 11551 | # check for libnsl, add it to LIBS if present |
| 11552 | if test "X$bash_cv_have_libnsl" = "X"; then |
| 11553 | _bash_needmsg= |
| 11554 | else |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 11555 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libnsl" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 11556 | $as_echo_n "checking for libnsl... " >&6; } |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 11557 | _bash_needmsg=yes |
| 11558 | fi |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 11559 | if ${bash_cv_have_libnsl+:} false; then : |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 11560 | $as_echo_n "(cached) " >&6 |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 11561 | else |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 11562 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for t_open in -lnsl" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 11563 | $as_echo_n "checking for t_open in -lnsl... " >&6; } |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 11564 | if ${ac_cv_lib_nsl_t_open+:} false; then : |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 11565 | $as_echo_n "(cached) " >&6 |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 11566 | else |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 11567 | ac_check_lib_save_LIBS=$LIBS |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 11568 | LIBS="-lnsl $LIBS" |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 11569 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Jari Aalto | 0628567 | 2006-10-10 14:15:34 +0000 | [diff] [blame] | 11570 | /* end confdefs.h. */ |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 11571 | |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 11572 | /* Override any GCC internal prototype to avoid an error. |
| 11573 | Use char because int might match the return type of a GCC |
| 11574 | builtin and then its argument prototype would still apply. */ |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 11575 | #ifdef __cplusplus |
| 11576 | extern "C" |
| 11577 | #endif |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 11578 | char t_open (); |
| 11579 | int |
| 11580 | main () |
| 11581 | { |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 11582 | return t_open (); |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 11583 | ; |
| 11584 | return 0; |
| 11585 | } |
| 11586 | _ACEOF |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 11587 | if ac_fn_c_try_link "$LINENO"; then : |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 11588 | ac_cv_lib_nsl_t_open=yes |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 11589 | else |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 11590 | ac_cv_lib_nsl_t_open=no |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 11591 | fi |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 11592 | rm -f core conftest.err conftest.$ac_objext \ |
| 11593 | conftest$ac_exeext conftest.$ac_ext |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 11594 | LIBS=$ac_check_lib_save_LIBS |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 11595 | fi |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 11596 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_t_open" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 11597 | $as_echo "$ac_cv_lib_nsl_t_open" >&6; } |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 11598 | if test "x$ac_cv_lib_nsl_t_open" = xyes; then : |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 11599 | bash_cv_have_libnsl=yes |
| 11600 | else |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 11601 | bash_cv_have_libnsl=no |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 11602 | fi |
| 11603 | |
| 11604 | fi |
| 11605 | |
| 11606 | if test "X$_bash_needmsg" = Xyes; then |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 11607 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_have_libnsl" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 11608 | $as_echo "$bash_cv_have_libnsl" >&6; } |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 11609 | _bash_needmsg= |
| 11610 | fi |
| 11611 | if test $bash_cv_have_libnsl = yes; then |
| 11612 | LIBS="-lsocket -lnsl $LIBS" |
| 11613 | else |
| 11614 | LIBS="-lsocket $LIBS" |
| 11615 | fi |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 11616 | $as_echo "#define HAVE_LIBSOCKET 1" >>confdefs.h |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 11617 | |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 11618 | $as_echo "#define HAVE_GETPEERNAME 1" >>confdefs.h |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 11619 | |
| 11620 | fi |
| 11621 | |
Jari Aalto | d166f04 | 1997-06-05 14:59:13 +0000 | [diff] [blame] | 11622 | fi |
Jari Aalto | bb70624 | 2000-03-17 21:46:59 +0000 | [diff] [blame] | 11623 | if test "$ac_cv_func_gethostbyname" = no; then |
| 11624 | if test "X$bash_cv_have_gethostbyname" = "X"; then |
| 11625 | _bash_needmsg=yes |
| 11626 | else |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 11627 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in socket library" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 11628 | $as_echo_n "checking for gethostbyname in socket library... " >&6; } |
Jari Aalto | bb70624 | 2000-03-17 21:46:59 +0000 | [diff] [blame] | 11629 | _bash_needmsg= |
| 11630 | fi |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 11631 | if ${bash_cv_have_gethostbyname+:} false; then : |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 11632 | $as_echo_n "(cached) " >&6 |
Jari Aalto | bb70624 | 2000-03-17 21:46:59 +0000 | [diff] [blame] | 11633 | else |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 11634 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Jari Aalto | 0628567 | 2006-10-10 14:15:34 +0000 | [diff] [blame] | 11635 | /* end confdefs.h. */ |
Jari Aalto | bb70624 | 2000-03-17 21:46:59 +0000 | [diff] [blame] | 11636 | #include <netdb.h> |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 11637 | int |
| 11638 | main () |
| 11639 | { |
Jari Aalto | bb70624 | 2000-03-17 21:46:59 +0000 | [diff] [blame] | 11640 | struct hostent *hp; |
| 11641 | hp = gethostbyname("localhost"); |
| 11642 | |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 11643 | ; |
| 11644 | return 0; |
| 11645 | } |
| 11646 | _ACEOF |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 11647 | if ac_fn_c_try_link "$LINENO"; then : |
Jari Aalto | bb70624 | 2000-03-17 21:46:59 +0000 | [diff] [blame] | 11648 | bash_cv_have_gethostbyname=yes |
| 11649 | else |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 11650 | bash_cv_have_gethostbyname=no |
Jari Aalto | bb70624 | 2000-03-17 21:46:59 +0000 | [diff] [blame] | 11651 | fi |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 11652 | rm -f core conftest.err conftest.$ac_objext \ |
| 11653 | conftest$ac_exeext conftest.$ac_ext |
Jari Aalto | bb70624 | 2000-03-17 21:46:59 +0000 | [diff] [blame] | 11654 | |
| 11655 | fi |
| 11656 | |
| 11657 | if test "X$_bash_needmsg" = Xyes; then |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 11658 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in socket library" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 11659 | $as_echo_n "checking for gethostbyname in socket library... " >&6; } |
Jari Aalto | bb70624 | 2000-03-17 21:46:59 +0000 | [diff] [blame] | 11660 | fi |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 11661 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_have_gethostbyname" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 11662 | $as_echo "$bash_cv_have_gethostbyname" >&6; } |
Jari Aalto | bb70624 | 2000-03-17 21:46:59 +0000 | [diff] [blame] | 11663 | if test "$bash_cv_have_gethostbyname" = yes; then |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 11664 | $as_echo "#define HAVE_GETHOSTBYNAME 1" >>confdefs.h |
Jari Aalto | bb70624 | 2000-03-17 21:46:59 +0000 | [diff] [blame] | 11665 | |
| 11666 | fi |
| 11667 | |
| 11668 | fi |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 11669 | |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 11670 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 11671 | $as_echo_n "checking for uid_t in sys/types.h... " >&6; } |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 11672 | if ${ac_cv_type_uid_t+:} false; then : |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 11673 | $as_echo_n "(cached) " >&6 |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 11674 | else |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 11675 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Jari Aalto | 0628567 | 2006-10-10 14:15:34 +0000 | [diff] [blame] | 11676 | /* end confdefs.h. */ |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 11677 | #include <sys/types.h> |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 11678 | |
| 11679 | _ACEOF |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 11680 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 11681 | $EGREP "uid_t" >/dev/null 2>&1; then : |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 11682 | ac_cv_type_uid_t=yes |
| 11683 | else |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 11684 | ac_cv_type_uid_t=no |
| 11685 | fi |
| 11686 | rm -f conftest* |
| 11687 | |
| 11688 | fi |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 11689 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 11690 | $as_echo "$ac_cv_type_uid_t" >&6; } |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 11691 | if test $ac_cv_type_uid_t = no; then |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 11692 | |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 11693 | $as_echo "#define uid_t int" >>confdefs.h |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 11694 | |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 11695 | |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 11696 | $as_echo "#define gid_t int" >>confdefs.h |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 11697 | |
| 11698 | fi |
| 11699 | |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 11700 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking type of array argument to getgroups" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 11701 | $as_echo_n "checking type of array argument to getgroups... " >&6; } |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 11702 | if ${ac_cv_type_getgroups+:} false; then : |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 11703 | $as_echo_n "(cached) " >&6 |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 11704 | else |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 11705 | if test "$cross_compiling" = yes; then : |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 11706 | ac_cv_type_getgroups=cross |
| 11707 | else |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 11708 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Jari Aalto | 0628567 | 2006-10-10 14:15:34 +0000 | [diff] [blame] | 11709 | /* end confdefs.h. */ |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 11710 | /* Thanks to Mike Rendell for this test. */ |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 11711 | $ac_includes_default |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 11712 | #define NGID 256 |
| 11713 | #undef MAX |
| 11714 | #define MAX(x, y) ((x) > (y) ? (x) : (y)) |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 11715 | |
| 11716 | int |
| 11717 | main () |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 11718 | { |
| 11719 | gid_t gidset[NGID]; |
| 11720 | int i, n; |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 11721 | union { gid_t gval; long int lval; } val; |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 11722 | |
| 11723 | val.lval = -1; |
| 11724 | for (i = 0; i < NGID; i++) |
| 11725 | gidset[i] = val.gval; |
| 11726 | n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1, |
Jari Aalto | 0628567 | 2006-10-10 14:15:34 +0000 | [diff] [blame] | 11727 | gidset); |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 11728 | /* Exit non-zero if getgroups seems to require an array of ints. This |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 11729 | happens when gid_t is short int but getgroups modifies an array |
| 11730 | of ints. */ |
| 11731 | return n > 0 && gidset[n] != val.gval; |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 11732 | } |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 11733 | _ACEOF |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 11734 | if ac_fn_c_try_run "$LINENO"; then : |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 11735 | ac_cv_type_getgroups=gid_t |
| 11736 | else |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 11737 | ac_cv_type_getgroups=int |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 11738 | fi |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 11739 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 11740 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 11741 | fi |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 11742 | |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 11743 | if test $ac_cv_type_getgroups = cross; then |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 11744 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Jari Aalto | 0628567 | 2006-10-10 14:15:34 +0000 | [diff] [blame] | 11745 | /* end confdefs.h. */ |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 11746 | #include <unistd.h> |
| 11747 | |
| 11748 | _ACEOF |
| 11749 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 11750 | $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then : |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 11751 | ac_cv_type_getgroups=gid_t |
| 11752 | else |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 11753 | ac_cv_type_getgroups=int |
| 11754 | fi |
| 11755 | rm -f conftest* |
| 11756 | |
| 11757 | fi |
| 11758 | fi |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 11759 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_getgroups" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 11760 | $as_echo "$ac_cv_type_getgroups" >&6; } |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 11761 | |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 11762 | cat >>confdefs.h <<_ACEOF |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 11763 | #define GETGROUPS_T $ac_cv_type_getgroups |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 11764 | _ACEOF |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 11765 | |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 11766 | |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 11767 | ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default" |
| 11768 | if test "x$ac_cv_type_off_t" = xyes; then : |
Jari Aalto | 0628567 | 2006-10-10 14:15:34 +0000 | [diff] [blame] | 11769 | |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 11770 | else |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 11771 | |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 11772 | cat >>confdefs.h <<_ACEOF |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 11773 | #define off_t long int |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 11774 | _ACEOF |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 11775 | |
| 11776 | fi |
| 11777 | |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 11778 | ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default" |
| 11779 | if test "x$ac_cv_type_mode_t" = xyes; then : |
Jari Aalto | 0628567 | 2006-10-10 14:15:34 +0000 | [diff] [blame] | 11780 | |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 11781 | else |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 11782 | |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 11783 | cat >>confdefs.h <<_ACEOF |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 11784 | #define mode_t int |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 11785 | _ACEOF |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 11786 | |
| 11787 | fi |
| 11788 | |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 11789 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 11790 | $as_echo_n "checking for uid_t in sys/types.h... " >&6; } |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 11791 | if ${ac_cv_type_uid_t+:} false; then : |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 11792 | $as_echo_n "(cached) " >&6 |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 11793 | else |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 11794 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Jari Aalto | 0628567 | 2006-10-10 14:15:34 +0000 | [diff] [blame] | 11795 | /* end confdefs.h. */ |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 11796 | #include <sys/types.h> |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 11797 | |
| 11798 | _ACEOF |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 11799 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 11800 | $EGREP "uid_t" >/dev/null 2>&1; then : |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 11801 | ac_cv_type_uid_t=yes |
| 11802 | else |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 11803 | ac_cv_type_uid_t=no |
| 11804 | fi |
| 11805 | rm -f conftest* |
| 11806 | |
| 11807 | fi |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 11808 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 11809 | $as_echo "$ac_cv_type_uid_t" >&6; } |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 11810 | if test $ac_cv_type_uid_t = no; then |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 11811 | |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 11812 | $as_echo "#define uid_t int" >>confdefs.h |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 11813 | |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 11814 | |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 11815 | $as_echo "#define gid_t int" >>confdefs.h |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 11816 | |
| 11817 | fi |
| 11818 | |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 11819 | ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default" |
| 11820 | if test "x$ac_cv_type_pid_t" = xyes; then : |
Jari Aalto | 0628567 | 2006-10-10 14:15:34 +0000 | [diff] [blame] | 11821 | |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 11822 | else |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 11823 | |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 11824 | cat >>confdefs.h <<_ACEOF |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 11825 | #define pid_t int |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 11826 | _ACEOF |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 11827 | |
| 11828 | fi |
| 11829 | |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 11830 | ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" |
| 11831 | if test "x$ac_cv_type_size_t" = xyes; then : |
Jari Aalto | 0628567 | 2006-10-10 14:15:34 +0000 | [diff] [blame] | 11832 | |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 11833 | else |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 11834 | |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 11835 | cat >>confdefs.h <<_ACEOF |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 11836 | #define size_t unsigned int |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 11837 | _ACEOF |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 11838 | |
| 11839 | fi |
| 11840 | |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 11841 | ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default" |
| 11842 | if test "x$ac_cv_type_ssize_t" = xyes; then : |
Jari Aalto | 0628567 | 2006-10-10 14:15:34 +0000 | [diff] [blame] | 11843 | |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 11844 | else |
| 11845 | |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 11846 | cat >>confdefs.h <<_ACEOF |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 11847 | #define ssize_t int |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 11848 | _ACEOF |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 11849 | |
| 11850 | fi |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 11851 | |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 11852 | ac_fn_c_check_type "$LINENO" "time_t" "ac_cv_type_time_t" "$ac_includes_default" |
| 11853 | if test "x$ac_cv_type_time_t" = xyes; then : |
Jari Aalto | 0628567 | 2006-10-10 14:15:34 +0000 | [diff] [blame] | 11854 | |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 11855 | else |
| 11856 | |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 11857 | cat >>confdefs.h <<_ACEOF |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 11858 | #define time_t long |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 11859 | _ACEOF |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 11860 | |
| 11861 | fi |
| 11862 | |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 11863 | |
| 11864 | |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 11865 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 11866 | $as_echo_n "checking for long long... " >&6; } |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 11867 | if ${bash_cv_type_long_long+:} false; then : |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 11868 | $as_echo_n "(cached) " >&6 |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 11869 | else |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 11870 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Jari Aalto | 0628567 | 2006-10-10 14:15:34 +0000 | [diff] [blame] | 11871 | /* end confdefs.h. */ |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 11872 | |
| 11873 | long long ll = 1; int i = 63; |
| 11874 | int |
| 11875 | main () |
| 11876 | { |
| 11877 | |
| 11878 | long long llm = (long long) -1; |
| 11879 | return ll << i | ll >> i | llm / ll | llm % ll; |
| 11880 | |
| 11881 | ; |
| 11882 | return 0; |
| 11883 | } |
| 11884 | _ACEOF |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 11885 | if ac_fn_c_try_link "$LINENO"; then : |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 11886 | bash_cv_type_long_long='long long' |
| 11887 | else |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 11888 | bash_cv_type_long_long='long' |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 11889 | fi |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 11890 | rm -f core conftest.err conftest.$ac_objext \ |
| 11891 | conftest$ac_exeext conftest.$ac_ext |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 11892 | fi |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 11893 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_type_long_long" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 11894 | $as_echo "$bash_cv_type_long_long" >&6; } |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 11895 | if test "$bash_cv_type_long_long" = 'long long'; then |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 11896 | $as_echo "#define HAVE_LONG_LONG 1" >>confdefs.h |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 11897 | |
| 11898 | fi |
| 11899 | |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 11900 | |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 11901 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 11902 | $as_echo_n "checking for unsigned long long... " >&6; } |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 11903 | if ${bash_cv_type_unsigned_long_long+:} false; then : |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 11904 | $as_echo_n "(cached) " >&6 |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 11905 | else |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 11906 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Jari Aalto | 0628567 | 2006-10-10 14:15:34 +0000 | [diff] [blame] | 11907 | /* end confdefs.h. */ |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 11908 | |
| 11909 | unsigned long long ull = 1; int i = 63; |
| 11910 | int |
| 11911 | main () |
| 11912 | { |
| 11913 | |
| 11914 | unsigned long long ullmax = (unsigned long long) -1; |
| 11915 | return ull << i | ull >> i | ullmax / ull | ullmax % ull; |
| 11916 | |
| 11917 | ; |
| 11918 | return 0; |
| 11919 | } |
| 11920 | _ACEOF |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 11921 | if ac_fn_c_try_link "$LINENO"; then : |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 11922 | bash_cv_type_unsigned_long_long='unsigned long long' |
| 11923 | else |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 11924 | bash_cv_type_unsigned_long_long='unsigned long' |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 11925 | fi |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 11926 | rm -f core conftest.err conftest.$ac_objext \ |
| 11927 | conftest$ac_exeext conftest.$ac_ext |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 11928 | fi |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 11929 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_type_unsigned_long_long" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 11930 | $as_echo "$bash_cv_type_unsigned_long_long" >&6; } |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 11931 | if test "$bash_cv_type_unsigned_long_long" = 'unsigned long long'; then |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 11932 | $as_echo "#define HAVE_UNSIGNED_LONG_LONG 1" >>confdefs.h |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 11933 | |
| 11934 | fi |
| 11935 | |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 11936 | |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 11937 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 11938 | $as_echo_n "checking return type of signal handlers... " >&6; } |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 11939 | if ${ac_cv_type_signal+:} false; then : |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 11940 | $as_echo_n "(cached) " >&6 |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 11941 | else |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 11942 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Jari Aalto | 0628567 | 2006-10-10 14:15:34 +0000 | [diff] [blame] | 11943 | /* end confdefs.h. */ |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 11944 | #include <sys/types.h> |
| 11945 | #include <signal.h> |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 11946 | |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 11947 | int |
| 11948 | main () |
| 11949 | { |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 11950 | return *(signal (0, 0)) (0) == 1; |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 11951 | ; |
| 11952 | return 0; |
| 11953 | } |
| 11954 | _ACEOF |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 11955 | if ac_fn_c_try_compile "$LINENO"; then : |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 11956 | ac_cv_type_signal=int |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 11957 | else |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 11958 | ac_cv_type_signal=void |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 11959 | fi |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 11960 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 11961 | fi |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 11962 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 11963 | $as_echo "$ac_cv_type_signal" >&6; } |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 11964 | |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 11965 | cat >>confdefs.h <<_ACEOF |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 11966 | #define RETSIGTYPE $ac_cv_type_signal |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 11967 | _ACEOF |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 11968 | |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 11969 | |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 11970 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sig_atomic_t in signal.h" >&5 |
Jari Aalto | 17345e5 | 2009-02-19 22:21:29 +0000 | [diff] [blame] | 11971 | $as_echo_n "checking for sig_atomic_t in signal.h... " >&6; } |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 11972 | if ${ac_cv_have_sig_atomic_t+:} false; then : |
Jari Aalto | 17345e5 | 2009-02-19 22:21:29 +0000 | [diff] [blame] | 11973 | $as_echo_n "(cached) " >&6 |
| 11974 | else |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 11975 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Jari Aalto | 17345e5 | 2009-02-19 22:21:29 +0000 | [diff] [blame] | 11976 | /* end confdefs.h. */ |
| 11977 | |
| 11978 | #include <signal.h> |
| 11979 | |
| 11980 | int |
| 11981 | main () |
| 11982 | { |
| 11983 | sig_atomic_t x; |
| 11984 | ; |
| 11985 | return 0; |
| 11986 | } |
| 11987 | _ACEOF |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 11988 | if ac_fn_c_try_link "$LINENO"; then : |
Jari Aalto | 17345e5 | 2009-02-19 22:21:29 +0000 | [diff] [blame] | 11989 | ac_cv_have_sig_atomic_t=yes |
| 11990 | else |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 11991 | ac_cv_have_sig_atomic_t=no |
Jari Aalto | 17345e5 | 2009-02-19 22:21:29 +0000 | [diff] [blame] | 11992 | fi |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 11993 | rm -f core conftest.err conftest.$ac_objext \ |
| 11994 | conftest$ac_exeext conftest.$ac_ext |
Jari Aalto | 17345e5 | 2009-02-19 22:21:29 +0000 | [diff] [blame] | 11995 | fi |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 11996 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_sig_atomic_t" >&5 |
Jari Aalto | 17345e5 | 2009-02-19 22:21:29 +0000 | [diff] [blame] | 11997 | $as_echo "$ac_cv_have_sig_atomic_t" >&6; } |
| 11998 | if test "$ac_cv_have_sig_atomic_t" = "no" |
| 11999 | then |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 12000 | ac_fn_c_check_type "$LINENO" "sig_atomic_t" "ac_cv_type_sig_atomic_t" "$ac_includes_default" |
| 12001 | if test "x$ac_cv_type_sig_atomic_t" = xyes; then : |
Jari Aalto | 17345e5 | 2009-02-19 22:21:29 +0000 | [diff] [blame] | 12002 | |
Jari Aalto | 17345e5 | 2009-02-19 22:21:29 +0000 | [diff] [blame] | 12003 | else |
| 12004 | |
| 12005 | cat >>confdefs.h <<_ACEOF |
| 12006 | #define sig_atomic_t int |
| 12007 | _ACEOF |
| 12008 | |
| 12009 | fi |
| 12010 | |
| 12011 | fi |
| 12012 | |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 12013 | |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 12014 | # The cast to long int works around a bug in the HP C Compiler |
| 12015 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 12016 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 12017 | # This bug is HP SR number 8606223364. |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 12018 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 12019 | $as_echo_n "checking size of char... " >&6; } |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 12020 | if ${ac_cv_sizeof_char+:} false; then : |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 12021 | $as_echo_n "(cached) " >&6 |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 12022 | else |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 12023 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char" "$ac_includes_default"; then : |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 12024 | |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 12025 | else |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 12026 | if test "$ac_cv_type_char" = yes; then |
| 12027 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 12028 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 12029 | as_fn_error 77 "cannot compute sizeof (char) |
| 12030 | See \`config.log' for more details" "$LINENO" 5; } |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 12031 | else |
| 12032 | ac_cv_sizeof_char=0 |
| 12033 | fi |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 12034 | fi |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 12035 | |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 12036 | fi |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 12037 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 12038 | $as_echo "$ac_cv_sizeof_char" >&6; } |
| 12039 | |
| 12040 | |
| 12041 | |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 12042 | cat >>confdefs.h <<_ACEOF |
Jari Aalto | bb70624 | 2000-03-17 21:46:59 +0000 | [diff] [blame] | 12043 | #define SIZEOF_CHAR $ac_cv_sizeof_char |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 12044 | _ACEOF |
Jari Aalto | bb70624 | 2000-03-17 21:46:59 +0000 | [diff] [blame] | 12045 | |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 12046 | |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 12047 | # The cast to long int works around a bug in the HP C Compiler |
| 12048 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 12049 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 12050 | # This bug is HP SR number 8606223364. |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 12051 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 12052 | $as_echo_n "checking size of short... " >&6; } |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 12053 | if ${ac_cv_sizeof_short+:} false; then : |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 12054 | $as_echo_n "(cached) " >&6 |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 12055 | else |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 12056 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then : |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 12057 | |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 12058 | else |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 12059 | if test "$ac_cv_type_short" = yes; then |
| 12060 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 12061 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 12062 | as_fn_error 77 "cannot compute sizeof (short) |
| 12063 | See \`config.log' for more details" "$LINENO" 5; } |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 12064 | else |
| 12065 | ac_cv_sizeof_short=0 |
| 12066 | fi |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 12067 | fi |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 12068 | |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 12069 | fi |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 12070 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 12071 | $as_echo "$ac_cv_sizeof_short" >&6; } |
| 12072 | |
| 12073 | |
| 12074 | |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 12075 | cat >>confdefs.h <<_ACEOF |
Jari Aalto | bb70624 | 2000-03-17 21:46:59 +0000 | [diff] [blame] | 12076 | #define SIZEOF_SHORT $ac_cv_sizeof_short |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 12077 | _ACEOF |
Jari Aalto | bb70624 | 2000-03-17 21:46:59 +0000 | [diff] [blame] | 12078 | |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 12079 | |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 12080 | # The cast to long int works around a bug in the HP C Compiler |
| 12081 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 12082 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 12083 | # This bug is HP SR number 8606223364. |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 12084 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 12085 | $as_echo_n "checking size of int... " >&6; } |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 12086 | if ${ac_cv_sizeof_int+:} false; then : |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 12087 | $as_echo_n "(cached) " >&6 |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 12088 | else |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 12089 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then : |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 12090 | |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 12091 | else |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 12092 | if test "$ac_cv_type_int" = yes; then |
| 12093 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 12094 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 12095 | as_fn_error 77 "cannot compute sizeof (int) |
| 12096 | See \`config.log' for more details" "$LINENO" 5; } |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 12097 | else |
| 12098 | ac_cv_sizeof_int=0 |
| 12099 | fi |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 12100 | fi |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 12101 | |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 12102 | fi |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 12103 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 12104 | $as_echo "$ac_cv_sizeof_int" >&6; } |
| 12105 | |
| 12106 | |
| 12107 | |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 12108 | cat >>confdefs.h <<_ACEOF |
Jari Aalto | cce855b | 1998-04-17 19:52:44 +0000 | [diff] [blame] | 12109 | #define SIZEOF_INT $ac_cv_sizeof_int |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 12110 | _ACEOF |
Jari Aalto | cce855b | 1998-04-17 19:52:44 +0000 | [diff] [blame] | 12111 | |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 12112 | |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 12113 | # The cast to long int works around a bug in the HP C Compiler |
| 12114 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 12115 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 12116 | # This bug is HP SR number 8606223364. |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 12117 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 12118 | $as_echo_n "checking size of long... " >&6; } |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 12119 | if ${ac_cv_sizeof_long+:} false; then : |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 12120 | $as_echo_n "(cached) " >&6 |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 12121 | else |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 12122 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then : |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 12123 | |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 12124 | else |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 12125 | if test "$ac_cv_type_long" = yes; then |
| 12126 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 12127 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 12128 | as_fn_error 77 "cannot compute sizeof (long) |
| 12129 | See \`config.log' for more details" "$LINENO" 5; } |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 12130 | else |
| 12131 | ac_cv_sizeof_long=0 |
| 12132 | fi |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 12133 | fi |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 12134 | |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 12135 | fi |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 12136 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 12137 | $as_echo "$ac_cv_sizeof_long" >&6; } |
| 12138 | |
| 12139 | |
| 12140 | |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 12141 | cat >>confdefs.h <<_ACEOF |
Jari Aalto | cce855b | 1998-04-17 19:52:44 +0000 | [diff] [blame] | 12142 | #define SIZEOF_LONG $ac_cv_sizeof_long |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 12143 | _ACEOF |
Jari Aalto | cce855b | 1998-04-17 19:52:44 +0000 | [diff] [blame] | 12144 | |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 12145 | |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 12146 | # The cast to long int works around a bug in the HP C Compiler |
| 12147 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 12148 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 12149 | # This bug is HP SR number 8606223364. |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 12150 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char *" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 12151 | $as_echo_n "checking size of char *... " >&6; } |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 12152 | if ${ac_cv_sizeof_char_p+:} false; then : |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 12153 | $as_echo_n "(cached) " >&6 |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 12154 | else |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 12155 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char *))" "ac_cv_sizeof_char_p" "$ac_includes_default"; then : |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 12156 | |
Jari Aalto | 7117c2d | 2002-07-17 14:10:11 +0000 | [diff] [blame] | 12157 | else |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 12158 | if test "$ac_cv_type_char_p" = yes; then |
| 12159 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 12160 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 12161 | as_fn_error 77 "cannot compute sizeof (char *) |
| 12162 | See \`config.log' for more details" "$LINENO" 5; } |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 12163 | else |
| 12164 | ac_cv_sizeof_char_p=0 |
| 12165 | fi |
Jari Aalto | 7117c2d | 2002-07-17 14:10:11 +0000 | [diff] [blame] | 12166 | fi |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 12167 | |
Jari Aalto | 7117c2d | 2002-07-17 14:10:11 +0000 | [diff] [blame] | 12168 | fi |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 12169 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char_p" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 12170 | $as_echo "$ac_cv_sizeof_char_p" >&6; } |
| 12171 | |
| 12172 | |
| 12173 | |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 12174 | cat >>confdefs.h <<_ACEOF |
Jari Aalto | 7117c2d | 2002-07-17 14:10:11 +0000 | [diff] [blame] | 12175 | #define SIZEOF_CHAR_P $ac_cv_sizeof_char_p |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 12176 | _ACEOF |
Jari Aalto | 7117c2d | 2002-07-17 14:10:11 +0000 | [diff] [blame] | 12177 | |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 12178 | |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 12179 | # The cast to long int works around a bug in the HP C Compiler |
| 12180 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 12181 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 12182 | # This bug is HP SR number 8606223364. |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 12183 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of double" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 12184 | $as_echo_n "checking size of double... " >&6; } |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 12185 | if ${ac_cv_sizeof_double+:} false; then : |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 12186 | $as_echo_n "(cached) " >&6 |
Jari Aalto | 7117c2d | 2002-07-17 14:10:11 +0000 | [diff] [blame] | 12187 | else |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 12188 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (double))" "ac_cv_sizeof_double" "$ac_includes_default"; then : |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 12189 | |
Jari Aalto | 7117c2d | 2002-07-17 14:10:11 +0000 | [diff] [blame] | 12190 | else |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 12191 | if test "$ac_cv_type_double" = yes; then |
| 12192 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 12193 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 12194 | as_fn_error 77 "cannot compute sizeof (double) |
| 12195 | See \`config.log' for more details" "$LINENO" 5; } |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 12196 | else |
| 12197 | ac_cv_sizeof_double=0 |
| 12198 | fi |
Jari Aalto | 7117c2d | 2002-07-17 14:10:11 +0000 | [diff] [blame] | 12199 | fi |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 12200 | |
Jari Aalto | 7117c2d | 2002-07-17 14:10:11 +0000 | [diff] [blame] | 12201 | fi |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 12202 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 12203 | $as_echo "$ac_cv_sizeof_double" >&6; } |
| 12204 | |
| 12205 | |
| 12206 | |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 12207 | cat >>confdefs.h <<_ACEOF |
Jari Aalto | 7117c2d | 2002-07-17 14:10:11 +0000 | [diff] [blame] | 12208 | #define SIZEOF_DOUBLE $ac_cv_sizeof_double |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 12209 | _ACEOF |
Jari Aalto | 7117c2d | 2002-07-17 14:10:11 +0000 | [diff] [blame] | 12210 | |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 12211 | |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 12212 | # The cast to long int works around a bug in the HP C Compiler |
| 12213 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 12214 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 12215 | # This bug is HP SR number 8606223364. |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 12216 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 12217 | $as_echo_n "checking size of long long... " >&6; } |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 12218 | if ${ac_cv_sizeof_long_long+:} false; then : |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 12219 | $as_echo_n "(cached) " >&6 |
Jari Aalto | 7117c2d | 2002-07-17 14:10:11 +0000 | [diff] [blame] | 12220 | else |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 12221 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then : |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 12222 | |
Jari Aalto | 7117c2d | 2002-07-17 14:10:11 +0000 | [diff] [blame] | 12223 | else |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 12224 | if test "$ac_cv_type_long_long" = yes; then |
| 12225 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 12226 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 12227 | as_fn_error 77 "cannot compute sizeof (long long) |
| 12228 | See \`config.log' for more details" "$LINENO" 5; } |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 12229 | else |
| 12230 | ac_cv_sizeof_long_long=0 |
| 12231 | fi |
Jari Aalto | 7117c2d | 2002-07-17 14:10:11 +0000 | [diff] [blame] | 12232 | fi |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 12233 | |
Jari Aalto | 7117c2d | 2002-07-17 14:10:11 +0000 | [diff] [blame] | 12234 | fi |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 12235 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 12236 | $as_echo "$ac_cv_sizeof_long_long" >&6; } |
| 12237 | |
| 12238 | |
| 12239 | |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 12240 | cat >>confdefs.h <<_ACEOF |
Jari Aalto | 7117c2d | 2002-07-17 14:10:11 +0000 | [diff] [blame] | 12241 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 12242 | _ACEOF |
Jari Aalto | 7117c2d | 2002-07-17 14:10:11 +0000 | [diff] [blame] | 12243 | |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 12244 | |
| 12245 | |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 12246 | ac_fn_c_check_type "$LINENO" "u_int" "ac_cv_type_u_int" "$ac_includes_default" |
| 12247 | if test "x$ac_cv_type_u_int" = xyes; then : |
Jari Aalto | 0628567 | 2006-10-10 14:15:34 +0000 | [diff] [blame] | 12248 | |
Jari Aalto | 7117c2d | 2002-07-17 14:10:11 +0000 | [diff] [blame] | 12249 | else |
| 12250 | |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 12251 | cat >>confdefs.h <<_ACEOF |
Jari Aalto | 7117c2d | 2002-07-17 14:10:11 +0000 | [diff] [blame] | 12252 | #define u_int unsigned int |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 12253 | _ACEOF |
Jari Aalto | 7117c2d | 2002-07-17 14:10:11 +0000 | [diff] [blame] | 12254 | |
| 12255 | fi |
| 12256 | |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 12257 | ac_fn_c_check_type "$LINENO" "u_long" "ac_cv_type_u_long" "$ac_includes_default" |
| 12258 | if test "x$ac_cv_type_u_long" = xyes; then : |
Jari Aalto | 0628567 | 2006-10-10 14:15:34 +0000 | [diff] [blame] | 12259 | |
Jari Aalto | 7117c2d | 2002-07-17 14:10:11 +0000 | [diff] [blame] | 12260 | else |
| 12261 | |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 12262 | cat >>confdefs.h <<_ACEOF |
Jari Aalto | 7117c2d | 2002-07-17 14:10:11 +0000 | [diff] [blame] | 12263 | #define u_long unsigned long |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 12264 | _ACEOF |
Jari Aalto | 7117c2d | 2002-07-17 14:10:11 +0000 | [diff] [blame] | 12265 | |
| 12266 | fi |
| 12267 | |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 12268 | |
| 12269 | |
Jari Aalto | 7117c2d | 2002-07-17 14:10:11 +0000 | [diff] [blame] | 12270 | if test "$ac_cv_sizeof_short" = 2; then |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 12271 | ac_fn_c_check_type "$LINENO" "bits16_t" "ac_cv_type_bits16_t" "$ac_includes_default" |
| 12272 | if test "x$ac_cv_type_bits16_t" = xyes; then : |
Jari Aalto | 0628567 | 2006-10-10 14:15:34 +0000 | [diff] [blame] | 12273 | |
Jari Aalto | 7117c2d | 2002-07-17 14:10:11 +0000 | [diff] [blame] | 12274 | else |
| 12275 | |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 12276 | cat >>confdefs.h <<_ACEOF |
Jari Aalto | 7117c2d | 2002-07-17 14:10:11 +0000 | [diff] [blame] | 12277 | #define bits16_t short |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 12278 | _ACEOF |
Jari Aalto | 7117c2d | 2002-07-17 14:10:11 +0000 | [diff] [blame] | 12279 | |
| 12280 | fi |
| 12281 | |
| 12282 | elif test "$ac_cv_sizeof_char" = 2; then |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 12283 | ac_fn_c_check_type "$LINENO" "bits16_t" "ac_cv_type_bits16_t" "$ac_includes_default" |
| 12284 | if test "x$ac_cv_type_bits16_t" = xyes; then : |
Jari Aalto | 0628567 | 2006-10-10 14:15:34 +0000 | [diff] [blame] | 12285 | |
Jari Aalto | 7117c2d | 2002-07-17 14:10:11 +0000 | [diff] [blame] | 12286 | else |
| 12287 | |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 12288 | cat >>confdefs.h <<_ACEOF |
Jari Aalto | 7117c2d | 2002-07-17 14:10:11 +0000 | [diff] [blame] | 12289 | #define bits16_t char |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 12290 | _ACEOF |
Jari Aalto | 7117c2d | 2002-07-17 14:10:11 +0000 | [diff] [blame] | 12291 | |
| 12292 | fi |
| 12293 | |
| 12294 | else |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 12295 | ac_fn_c_check_type "$LINENO" "bits16_t" "ac_cv_type_bits16_t" "$ac_includes_default" |
| 12296 | if test "x$ac_cv_type_bits16_t" = xyes; then : |
Jari Aalto | 0628567 | 2006-10-10 14:15:34 +0000 | [diff] [blame] | 12297 | |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 12298 | else |
Jari Aalto | bb70624 | 2000-03-17 21:46:59 +0000 | [diff] [blame] | 12299 | |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 12300 | cat >>confdefs.h <<_ACEOF |
Jari Aalto | bb70624 | 2000-03-17 21:46:59 +0000 | [diff] [blame] | 12301 | #define bits16_t short |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 12302 | _ACEOF |
Jari Aalto | bb70624 | 2000-03-17 21:46:59 +0000 | [diff] [blame] | 12303 | |
| 12304 | fi |
| 12305 | |
| 12306 | fi |
| 12307 | |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 12308 | |
Jari Aalto | bb70624 | 2000-03-17 21:46:59 +0000 | [diff] [blame] | 12309 | if test "$ac_cv_sizeof_short" = 2; then |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 12310 | ac_fn_c_check_type "$LINENO" "u_bits16_t" "ac_cv_type_u_bits16_t" "$ac_includes_default" |
| 12311 | if test "x$ac_cv_type_u_bits16_t" = xyes; then : |
Jari Aalto | 0628567 | 2006-10-10 14:15:34 +0000 | [diff] [blame] | 12312 | |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 12313 | else |
Jari Aalto | bb70624 | 2000-03-17 21:46:59 +0000 | [diff] [blame] | 12314 | |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 12315 | cat >>confdefs.h <<_ACEOF |
Jari Aalto | bb70624 | 2000-03-17 21:46:59 +0000 | [diff] [blame] | 12316 | #define u_bits16_t unsigned short |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 12317 | _ACEOF |
Jari Aalto | bb70624 | 2000-03-17 21:46:59 +0000 | [diff] [blame] | 12318 | |
| 12319 | fi |
| 12320 | |
| 12321 | elif test "$ac_cv_sizeof_char" = 2; then |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 12322 | ac_fn_c_check_type "$LINENO" "u_bits16_t" "ac_cv_type_u_bits16_t" "$ac_includes_default" |
| 12323 | if test "x$ac_cv_type_u_bits16_t" = xyes; then : |
Jari Aalto | 0628567 | 2006-10-10 14:15:34 +0000 | [diff] [blame] | 12324 | |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 12325 | else |
Jari Aalto | bb70624 | 2000-03-17 21:46:59 +0000 | [diff] [blame] | 12326 | |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 12327 | cat >>confdefs.h <<_ACEOF |
Jari Aalto | bb70624 | 2000-03-17 21:46:59 +0000 | [diff] [blame] | 12328 | #define u_bits16_t unsigned char |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 12329 | _ACEOF |
Jari Aalto | bb70624 | 2000-03-17 21:46:59 +0000 | [diff] [blame] | 12330 | |
| 12331 | fi |
| 12332 | |
| 12333 | else |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 12334 | ac_fn_c_check_type "$LINENO" "u_bits16_t" "ac_cv_type_u_bits16_t" "$ac_includes_default" |
| 12335 | if test "x$ac_cv_type_u_bits16_t" = xyes; then : |
Jari Aalto | 0628567 | 2006-10-10 14:15:34 +0000 | [diff] [blame] | 12336 | |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 12337 | else |
Jari Aalto | bb70624 | 2000-03-17 21:46:59 +0000 | [diff] [blame] | 12338 | |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 12339 | cat >>confdefs.h <<_ACEOF |
Jari Aalto | bb70624 | 2000-03-17 21:46:59 +0000 | [diff] [blame] | 12340 | #define u_bits16_t unsigned short |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 12341 | _ACEOF |
Jari Aalto | b72432f | 1999-02-19 17:11:39 +0000 | [diff] [blame] | 12342 | |
| 12343 | fi |
| 12344 | |
| 12345 | fi |
| 12346 | |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 12347 | |
Jari Aalto | b72432f | 1999-02-19 17:11:39 +0000 | [diff] [blame] | 12348 | if test "$ac_cv_sizeof_int" = 4; then |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 12349 | ac_fn_c_check_type "$LINENO" "bits32_t" "ac_cv_type_bits32_t" "$ac_includes_default" |
| 12350 | if test "x$ac_cv_type_bits32_t" = xyes; then : |
Jari Aalto | 0628567 | 2006-10-10 14:15:34 +0000 | [diff] [blame] | 12351 | |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 12352 | else |
Jari Aalto | cce855b | 1998-04-17 19:52:44 +0000 | [diff] [blame] | 12353 | |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 12354 | cat >>confdefs.h <<_ACEOF |
Jari Aalto | bb70624 | 2000-03-17 21:46:59 +0000 | [diff] [blame] | 12355 | #define bits32_t int |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 12356 | _ACEOF |
Jari Aalto | cce855b | 1998-04-17 19:52:44 +0000 | [diff] [blame] | 12357 | |
Jari Aalto | b72432f | 1999-02-19 17:11:39 +0000 | [diff] [blame] | 12358 | fi |
| 12359 | |
| 12360 | elif test "$ac_cv_sizeof_long" = 4; then |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 12361 | ac_fn_c_check_type "$LINENO" "bits32_t" "ac_cv_type_bits32_t" "$ac_includes_default" |
| 12362 | if test "x$ac_cv_type_bits32_t" = xyes; then : |
Jari Aalto | 0628567 | 2006-10-10 14:15:34 +0000 | [diff] [blame] | 12363 | |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 12364 | else |
Jari Aalto | b72432f | 1999-02-19 17:11:39 +0000 | [diff] [blame] | 12365 | |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 12366 | cat >>confdefs.h <<_ACEOF |
Jari Aalto | bb70624 | 2000-03-17 21:46:59 +0000 | [diff] [blame] | 12367 | #define bits32_t long |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 12368 | _ACEOF |
Jari Aalto | cce855b | 1998-04-17 19:52:44 +0000 | [diff] [blame] | 12369 | |
| 12370 | fi |
| 12371 | |
Jari Aalto | b72432f | 1999-02-19 17:11:39 +0000 | [diff] [blame] | 12372 | else |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 12373 | ac_fn_c_check_type "$LINENO" "bits32_t" "ac_cv_type_bits32_t" "$ac_includes_default" |
| 12374 | if test "x$ac_cv_type_bits32_t" = xyes; then : |
Jari Aalto | 0628567 | 2006-10-10 14:15:34 +0000 | [diff] [blame] | 12375 | |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 12376 | else |
Jari Aalto | b72432f | 1999-02-19 17:11:39 +0000 | [diff] [blame] | 12377 | |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 12378 | cat >>confdefs.h <<_ACEOF |
Jari Aalto | bb70624 | 2000-03-17 21:46:59 +0000 | [diff] [blame] | 12379 | #define bits32_t int |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 12380 | _ACEOF |
Jari Aalto | b72432f | 1999-02-19 17:11:39 +0000 | [diff] [blame] | 12381 | |
Jari Aalto | cce855b | 1998-04-17 19:52:44 +0000 | [diff] [blame] | 12382 | fi |
| 12383 | |
Jari Aalto | b72432f | 1999-02-19 17:11:39 +0000 | [diff] [blame] | 12384 | fi |
| 12385 | |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 12386 | |
Jari Aalto | bb70624 | 2000-03-17 21:46:59 +0000 | [diff] [blame] | 12387 | if test "$ac_cv_sizeof_int" = 4; then |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 12388 | ac_fn_c_check_type "$LINENO" "u_bits32_t" "ac_cv_type_u_bits32_t" "$ac_includes_default" |
| 12389 | if test "x$ac_cv_type_u_bits32_t" = xyes; then : |
Jari Aalto | 0628567 | 2006-10-10 14:15:34 +0000 | [diff] [blame] | 12390 | |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 12391 | else |
Jari Aalto | cce855b | 1998-04-17 19:52:44 +0000 | [diff] [blame] | 12392 | |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 12393 | cat >>confdefs.h <<_ACEOF |
Jari Aalto | bb70624 | 2000-03-17 21:46:59 +0000 | [diff] [blame] | 12394 | #define u_bits32_t unsigned int |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 12395 | _ACEOF |
Jari Aalto | cce855b | 1998-04-17 19:52:44 +0000 | [diff] [blame] | 12396 | |
Jari Aalto | b72432f | 1999-02-19 17:11:39 +0000 | [diff] [blame] | 12397 | fi |
| 12398 | |
Jari Aalto | bb70624 | 2000-03-17 21:46:59 +0000 | [diff] [blame] | 12399 | elif test "$ac_cv_sizeof_long" = 4; then |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 12400 | ac_fn_c_check_type "$LINENO" "u_bits32_t" "ac_cv_type_u_bits32_t" "$ac_includes_default" |
| 12401 | if test "x$ac_cv_type_u_bits32_t" = xyes; then : |
Jari Aalto | 0628567 | 2006-10-10 14:15:34 +0000 | [diff] [blame] | 12402 | |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 12403 | else |
Jari Aalto | b72432f | 1999-02-19 17:11:39 +0000 | [diff] [blame] | 12404 | |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 12405 | cat >>confdefs.h <<_ACEOF |
Jari Aalto | bb70624 | 2000-03-17 21:46:59 +0000 | [diff] [blame] | 12406 | #define u_bits32_t unsigned long |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 12407 | _ACEOF |
Jari Aalto | cce855b | 1998-04-17 19:52:44 +0000 | [diff] [blame] | 12408 | |
| 12409 | fi |
| 12410 | |
Jari Aalto | b72432f | 1999-02-19 17:11:39 +0000 | [diff] [blame] | 12411 | else |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 12412 | ac_fn_c_check_type "$LINENO" "u_bits32_t" "ac_cv_type_u_bits32_t" "$ac_includes_default" |
| 12413 | if test "x$ac_cv_type_u_bits32_t" = xyes; then : |
Jari Aalto | 0628567 | 2006-10-10 14:15:34 +0000 | [diff] [blame] | 12414 | |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 12415 | else |
Jari Aalto | b72432f | 1999-02-19 17:11:39 +0000 | [diff] [blame] | 12416 | |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 12417 | cat >>confdefs.h <<_ACEOF |
Jari Aalto | bb70624 | 2000-03-17 21:46:59 +0000 | [diff] [blame] | 12418 | #define u_bits32_t unsigned int |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 12419 | _ACEOF |
Jari Aalto | b72432f | 1999-02-19 17:11:39 +0000 | [diff] [blame] | 12420 | |
Jari Aalto | cce855b | 1998-04-17 19:52:44 +0000 | [diff] [blame] | 12421 | fi |
| 12422 | |
Jari Aalto | b72432f | 1999-02-19 17:11:39 +0000 | [diff] [blame] | 12423 | fi |
| 12424 | |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 12425 | |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 12426 | if test "$ac_cv_sizeof_char_p" = 8; then |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 12427 | ac_fn_c_check_type "$LINENO" "bits64_t" "ac_cv_type_bits64_t" "$ac_includes_default" |
| 12428 | if test "x$ac_cv_type_bits64_t" = xyes; then : |
Jari Aalto | 0628567 | 2006-10-10 14:15:34 +0000 | [diff] [blame] | 12429 | |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 12430 | else |
Jari Aalto | b72432f | 1999-02-19 17:11:39 +0000 | [diff] [blame] | 12431 | |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 12432 | cat >>confdefs.h <<_ACEOF |
Jari Aalto | b72432f | 1999-02-19 17:11:39 +0000 | [diff] [blame] | 12433 | #define bits64_t char * |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 12434 | _ACEOF |
Jari Aalto | b72432f | 1999-02-19 17:11:39 +0000 | [diff] [blame] | 12435 | |
| 12436 | fi |
| 12437 | |
| 12438 | elif test "$ac_cv_sizeof_double" = 8; then |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 12439 | ac_fn_c_check_type "$LINENO" "bits64_t" "ac_cv_type_bits64_t" "$ac_includes_default" |
| 12440 | if test "x$ac_cv_type_bits64_t" = xyes; then : |
Jari Aalto | 0628567 | 2006-10-10 14:15:34 +0000 | [diff] [blame] | 12441 | |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 12442 | else |
Jari Aalto | b72432f | 1999-02-19 17:11:39 +0000 | [diff] [blame] | 12443 | |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 12444 | cat >>confdefs.h <<_ACEOF |
Jari Aalto | b72432f | 1999-02-19 17:11:39 +0000 | [diff] [blame] | 12445 | #define bits64_t double |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 12446 | _ACEOF |
Jari Aalto | b72432f | 1999-02-19 17:11:39 +0000 | [diff] [blame] | 12447 | |
| 12448 | fi |
| 12449 | |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 12450 | elif test -n "$ac_cv_type_long_long" && test "$ac_cv_sizeof_long_long" = 8; then |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 12451 | ac_fn_c_check_type "$LINENO" "bits64_t" "ac_cv_type_bits64_t" "$ac_includes_default" |
| 12452 | if test "x$ac_cv_type_bits64_t" = xyes; then : |
Jari Aalto | 0628567 | 2006-10-10 14:15:34 +0000 | [diff] [blame] | 12453 | |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 12454 | else |
| 12455 | |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 12456 | cat >>confdefs.h <<_ACEOF |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 12457 | #define bits64_t long long |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 12458 | _ACEOF |
Jari Aalto | b72432f | 1999-02-19 17:11:39 +0000 | [diff] [blame] | 12459 | |
| 12460 | fi |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 12461 | |
| 12462 | elif test "$ac_cv_sizeof_long" = 8; then |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 12463 | ac_fn_c_check_type "$LINENO" "bits64_t" "ac_cv_type_bits64_t" "$ac_includes_default" |
| 12464 | if test "x$ac_cv_type_bits64_t" = xyes; then : |
Jari Aalto | 0628567 | 2006-10-10 14:15:34 +0000 | [diff] [blame] | 12465 | |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 12466 | else |
| 12467 | |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 12468 | cat >>confdefs.h <<_ACEOF |
Jari Aalto | b72432f | 1999-02-19 17:11:39 +0000 | [diff] [blame] | 12469 | #define bits64_t long |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 12470 | _ACEOF |
Jari Aalto | b72432f | 1999-02-19 17:11:39 +0000 | [diff] [blame] | 12471 | |
| 12472 | fi |
| 12473 | |
| 12474 | else |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 12475 | ac_fn_c_check_type "$LINENO" "bits64_t" "ac_cv_type_bits64_t" "$ac_includes_default" |
| 12476 | if test "x$ac_cv_type_bits64_t" = xyes; then : |
Jari Aalto | 0628567 | 2006-10-10 14:15:34 +0000 | [diff] [blame] | 12477 | |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 12478 | else |
Jari Aalto | b72432f | 1999-02-19 17:11:39 +0000 | [diff] [blame] | 12479 | |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 12480 | cat >>confdefs.h <<_ACEOF |
Jari Aalto | b72432f | 1999-02-19 17:11:39 +0000 | [diff] [blame] | 12481 | #define bits64_t double |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 12482 | _ACEOF |
Jari Aalto | b72432f | 1999-02-19 17:11:39 +0000 | [diff] [blame] | 12483 | |
| 12484 | fi |
| 12485 | |
| 12486 | fi |
| 12487 | |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 12488 | |
| 12489 | |
Jari Aalto | bb70624 | 2000-03-17 21:46:59 +0000 | [diff] [blame] | 12490 | if test "$ac_cv_sizeof_int" = "$ac_cv_sizeof_char_p"; then |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 12491 | ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default" |
| 12492 | if test "x$ac_cv_type_ptrdiff_t" = xyes; then : |
Jari Aalto | 0628567 | 2006-10-10 14:15:34 +0000 | [diff] [blame] | 12493 | |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 12494 | else |
Jari Aalto | bb70624 | 2000-03-17 21:46:59 +0000 | [diff] [blame] | 12495 | |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 12496 | cat >>confdefs.h <<_ACEOF |
Jari Aalto | bb70624 | 2000-03-17 21:46:59 +0000 | [diff] [blame] | 12497 | #define ptrdiff_t int |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 12498 | _ACEOF |
Jari Aalto | bb70624 | 2000-03-17 21:46:59 +0000 | [diff] [blame] | 12499 | |
| 12500 | fi |
| 12501 | |
| 12502 | elif test "$ac_cv_sizeof_long" = "$ac_cv_sizeof_char_p"; then |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 12503 | ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default" |
| 12504 | if test "x$ac_cv_type_ptrdiff_t" = xyes; then : |
Jari Aalto | 0628567 | 2006-10-10 14:15:34 +0000 | [diff] [blame] | 12505 | |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 12506 | else |
Jari Aalto | bb70624 | 2000-03-17 21:46:59 +0000 | [diff] [blame] | 12507 | |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 12508 | cat >>confdefs.h <<_ACEOF |
Jari Aalto | bb70624 | 2000-03-17 21:46:59 +0000 | [diff] [blame] | 12509 | #define ptrdiff_t long |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 12510 | _ACEOF |
Jari Aalto | bb70624 | 2000-03-17 21:46:59 +0000 | [diff] [blame] | 12511 | |
| 12512 | fi |
| 12513 | |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 12514 | elif test "$ac_cv_type_long_long" = yes && test "$ac_cv_sizeof_long_long" = "$ac_cv_sizeof_char_p"; then |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 12515 | ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default" |
| 12516 | if test "x$ac_cv_type_ptrdiff_t" = xyes; then : |
Jari Aalto | 0628567 | 2006-10-10 14:15:34 +0000 | [diff] [blame] | 12517 | |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 12518 | else |
| 12519 | |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 12520 | cat >>confdefs.h <<_ACEOF |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 12521 | #define ptrdiff_t long long |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 12522 | _ACEOF |
Jari Aalto | bb70624 | 2000-03-17 21:46:59 +0000 | [diff] [blame] | 12523 | |
| 12524 | fi |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 12525 | |
| 12526 | else |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 12527 | ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default" |
| 12528 | if test "x$ac_cv_type_ptrdiff_t" = xyes; then : |
Jari Aalto | 0628567 | 2006-10-10 14:15:34 +0000 | [diff] [blame] | 12529 | |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 12530 | else |
| 12531 | |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 12532 | cat >>confdefs.h <<_ACEOF |
Jari Aalto | bb70624 | 2000-03-17 21:46:59 +0000 | [diff] [blame] | 12533 | #define ptrdiff_t int |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 12534 | _ACEOF |
Jari Aalto | bb70624 | 2000-03-17 21:46:59 +0000 | [diff] [blame] | 12535 | |
| 12536 | fi |
| 12537 | |
| 12538 | fi |
| 12539 | |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 12540 | |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 12541 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 12542 | $as_echo_n "checking whether stat file-mode macros are broken... " >&6; } |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 12543 | if ${ac_cv_header_stat_broken+:} false; then : |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 12544 | $as_echo_n "(cached) " >&6 |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 12545 | else |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 12546 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Jari Aalto | 0628567 | 2006-10-10 14:15:34 +0000 | [diff] [blame] | 12547 | /* end confdefs.h. */ |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 12548 | #include <sys/types.h> |
| 12549 | #include <sys/stat.h> |
| 12550 | |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 12551 | #if defined S_ISBLK && defined S_IFDIR |
| 12552 | extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1]; |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 12553 | #endif |
| 12554 | |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 12555 | #if defined S_ISBLK && defined S_IFCHR |
| 12556 | extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1]; |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 12557 | #endif |
| 12558 | |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 12559 | #if defined S_ISLNK && defined S_IFREG |
| 12560 | extern char c3[S_ISLNK (S_IFREG) ? -1 : 1]; |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 12561 | #endif |
| 12562 | |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 12563 | #if defined S_ISSOCK && defined S_IFREG |
| 12564 | extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1]; |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 12565 | #endif |
| 12566 | |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 12567 | _ACEOF |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 12568 | if ac_fn_c_try_compile "$LINENO"; then : |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 12569 | ac_cv_header_stat_broken=no |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 12570 | else |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 12571 | ac_cv_header_stat_broken=yes |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 12572 | fi |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 12573 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 12574 | fi |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 12575 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 12576 | $as_echo "$ac_cv_header_stat_broken" >&6; } |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 12577 | if test $ac_cv_header_stat_broken = yes; then |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 12578 | |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 12579 | $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 12580 | |
| 12581 | fi |
| 12582 | |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 12583 | |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 12584 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether #! works in shell scripts" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 12585 | $as_echo_n "checking whether #! works in shell scripts... " >&6; } |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 12586 | if ${ac_cv_sys_interpreter+:} false; then : |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 12587 | $as_echo_n "(cached) " >&6 |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 12588 | else |
| 12589 | echo '#! /bin/cat |
| 12590 | exit 69 |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 12591 | ' >conftest |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 12592 | chmod u+x conftest |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 12593 | (SHELL=/bin/sh; export SHELL; ./conftest >/dev/null 2>&1) |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 12594 | if test $? -ne 69; then |
| 12595 | ac_cv_sys_interpreter=yes |
| 12596 | else |
| 12597 | ac_cv_sys_interpreter=no |
| 12598 | fi |
| 12599 | rm -f conftest |
| 12600 | fi |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 12601 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_interpreter" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 12602 | $as_echo "$ac_cv_sys_interpreter" >&6; } |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 12603 | interpval=$ac_cv_sys_interpreter |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 12604 | |
| 12605 | if test $ac_cv_sys_interpreter = yes; then |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 12606 | $as_echo "#define HAVE_HASH_BANG_EXEC 1" >>confdefs.h |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 12607 | |
| 12608 | fi |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 12609 | |
| 12610 | if test "$ac_cv_func_lstat" = "no"; then |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 12611 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lstat" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 12612 | $as_echo_n "checking for lstat... " >&6; } |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 12613 | if ${bash_cv_func_lstat+:} false; then : |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 12614 | $as_echo_n "(cached) " >&6 |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 12615 | else |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 12616 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Jari Aalto | 0628567 | 2006-10-10 14:15:34 +0000 | [diff] [blame] | 12617 | /* end confdefs.h. */ |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 12618 | |
| 12619 | #include <sys/types.h> |
| 12620 | #include <sys/stat.h> |
| 12621 | |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 12622 | int |
| 12623 | main () |
| 12624 | { |
| 12625 | lstat(".",(struct stat *)0); |
| 12626 | ; |
| 12627 | return 0; |
| 12628 | } |
| 12629 | _ACEOF |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 12630 | if ac_fn_c_try_link "$LINENO"; then : |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 12631 | bash_cv_func_lstat=yes |
| 12632 | else |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 12633 | bash_cv_func_lstat=no |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 12634 | fi |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 12635 | rm -f core conftest.err conftest.$ac_objext \ |
| 12636 | conftest$ac_exeext conftest.$ac_ext |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 12637 | fi |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 12638 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_func_lstat" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 12639 | $as_echo "$bash_cv_func_lstat" >&6; } |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 12640 | if test $bash_cv_func_lstat = yes; then |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 12641 | $as_echo "#define HAVE_LSTAT 1" >>confdefs.h |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 12642 | |
| 12643 | fi |
| 12644 | |
| 12645 | fi |
| 12646 | |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 12647 | |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 12648 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the ctype macros accept non-ascii characters" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 12649 | $as_echo_n "checking whether the ctype macros accept non-ascii characters... " >&6; } |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 12650 | if ${bash_cv_func_ctype_nonascii+:} false; then : |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 12651 | $as_echo_n "(cached) " >&6 |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 12652 | else |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 12653 | if test "$cross_compiling" = yes; then : |
| 12654 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot check ctype macros if cross compiling -- defaulting to no" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 12655 | $as_echo "$as_me: WARNING: cannot check ctype macros if cross compiling -- defaulting to no" >&2;} |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 12656 | bash_cv_func_ctype_nonascii=no |
| 12657 | |
| 12658 | else |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 12659 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Jari Aalto | 0628567 | 2006-10-10 14:15:34 +0000 | [diff] [blame] | 12660 | /* end confdefs.h. */ |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 12661 | |
| 12662 | #ifdef HAVE_LOCALE_H |
| 12663 | #include <locale.h> |
| 12664 | #endif |
| 12665 | #include <stdio.h> |
| 12666 | #include <ctype.h> |
| 12667 | |
| 12668 | main(c, v) |
| 12669 | int c; |
| 12670 | char *v[]; |
| 12671 | { |
| 12672 | char *deflocale; |
| 12673 | unsigned char x; |
| 12674 | int r1, r2; |
| 12675 | |
| 12676 | #ifdef HAVE_SETLOCALE |
| 12677 | /* We take a shot here. If that locale is not known, try the |
| 12678 | system default. We try this one because '\342' (226) is |
| 12679 | known to be a printable character in that locale. */ |
| 12680 | deflocale = setlocale(LC_ALL, "en_US.ISO8859-1"); |
| 12681 | if (deflocale == 0) |
| 12682 | deflocale = setlocale(LC_ALL, ""); |
| 12683 | #endif |
| 12684 | |
| 12685 | x = '\342'; |
| 12686 | r1 = isprint(x); |
| 12687 | x -= 128; |
| 12688 | r2 = isprint(x); |
| 12689 | exit (r1 == 0 || r2 == 0); |
| 12690 | } |
| 12691 | |
| 12692 | _ACEOF |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 12693 | if ac_fn_c_try_run "$LINENO"; then : |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 12694 | bash_cv_func_ctype_nonascii=yes |
| 12695 | else |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 12696 | bash_cv_func_ctype_nonascii=no |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 12697 | fi |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 12698 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 12699 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 12700 | fi |
| 12701 | |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 12702 | fi |
| 12703 | |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 12704 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_func_ctype_nonascii" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 12705 | $as_echo "$bash_cv_func_ctype_nonascii" >&6; } |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 12706 | if test $bash_cv_func_ctype_nonascii = yes; then |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 12707 | $as_echo "#define CTYPE_NON_ASCII 1" >>confdefs.h |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 12708 | |
| 12709 | fi |
| 12710 | |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 12711 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if dup2 fails to clear the close-on-exec flag" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 12712 | $as_echo_n "checking if dup2 fails to clear the close-on-exec flag... " >&6; } |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 12713 | if ${bash_cv_dup2_broken+:} false; then : |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 12714 | $as_echo_n "(cached) " >&6 |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 12715 | else |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 12716 | if test "$cross_compiling" = yes; then : |
| 12717 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot check dup2 if cross compiling -- defaulting to no" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 12718 | $as_echo "$as_me: WARNING: cannot check dup2 if cross compiling -- defaulting to no" >&2;} |
Jari Aalto | cce855b | 1998-04-17 19:52:44 +0000 | [diff] [blame] | 12719 | bash_cv_dup2_broken=no |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 12720 | else |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 12721 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Jari Aalto | 0628567 | 2006-10-10 14:15:34 +0000 | [diff] [blame] | 12722 | /* end confdefs.h. */ |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 12723 | |
| 12724 | #include <sys/types.h> |
| 12725 | #include <fcntl.h> |
| 12726 | main() |
| 12727 | { |
| 12728 | int fd1, fd2, fl; |
| 12729 | fd1 = open("/dev/null", 2); |
| 12730 | if (fcntl(fd1, 2, 1) < 0) |
| 12731 | exit(1); |
| 12732 | fd2 = dup2(fd1, 1); |
| 12733 | if (fd2 < 0) |
| 12734 | exit(2); |
| 12735 | fl = fcntl(fd2, 1, 0); |
| 12736 | /* fl will be 1 if dup2 did not reset the close-on-exec flag. */ |
| 12737 | exit(fl != 1); |
| 12738 | } |
| 12739 | |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 12740 | _ACEOF |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 12741 | if ac_fn_c_try_run "$LINENO"; then : |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 12742 | bash_cv_dup2_broken=yes |
| 12743 | else |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 12744 | bash_cv_dup2_broken=no |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 12745 | fi |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 12746 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 12747 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 12748 | fi |
| 12749 | |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 12750 | |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 12751 | fi |
| 12752 | |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 12753 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_dup2_broken" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 12754 | $as_echo "$bash_cv_dup2_broken" >&6; } |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 12755 | if test $bash_cv_dup2_broken = yes; then |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 12756 | $as_echo "#define DUP2_BROKEN 1" >>confdefs.h |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 12757 | |
| 12758 | fi |
| 12759 | |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 12760 | |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 12761 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pgrps need synchronization" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 12762 | $as_echo_n "checking whether pgrps need synchronization... " >&6; } |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 12763 | if ${bash_cv_pgrp_pipe+:} false; then : |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 12764 | $as_echo_n "(cached) " >&6 |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 12765 | else |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 12766 | if test "$cross_compiling" = yes; then : |
| 12767 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot check pgrp synchronization if cross compiling -- defaulting to no" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 12768 | $as_echo "$as_me: WARNING: cannot check pgrp synchronization if cross compiling -- defaulting to no" >&2;} |
Jari Aalto | cce855b | 1998-04-17 19:52:44 +0000 | [diff] [blame] | 12769 | bash_cv_pgrp_pipe=no |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 12770 | else |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 12771 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Jari Aalto | 0628567 | 2006-10-10 14:15:34 +0000 | [diff] [blame] | 12772 | /* end confdefs.h. */ |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 12773 | |
| 12774 | #ifdef HAVE_UNISTD_H |
| 12775 | # include <unistd.h> |
| 12776 | #endif |
| 12777 | main() |
| 12778 | { |
| 12779 | # ifdef GETPGRP_VOID |
| 12780 | # define getpgID() getpgrp() |
| 12781 | # else |
| 12782 | # define getpgID() getpgrp(0) |
| 12783 | # define setpgid(x,y) setpgrp(x,y) |
| 12784 | # endif |
| 12785 | int pid1, pid2, fds[2]; |
| 12786 | int status; |
| 12787 | char ok; |
| 12788 | |
| 12789 | switch (pid1 = fork()) { |
| 12790 | case -1: |
| 12791 | exit(1); |
| 12792 | case 0: |
| 12793 | setpgid(0, getpid()); |
| 12794 | exit(0); |
| 12795 | } |
| 12796 | setpgid(pid1, pid1); |
| 12797 | |
| 12798 | sleep(2); /* let first child die */ |
| 12799 | |
| 12800 | if (pipe(fds) < 0) |
| 12801 | exit(2); |
| 12802 | |
| 12803 | switch (pid2 = fork()) { |
| 12804 | case -1: |
| 12805 | exit(3); |
| 12806 | case 0: |
| 12807 | setpgid(0, pid1); |
| 12808 | ok = getpgID() == pid1; |
| 12809 | write(fds[1], &ok, 1); |
| 12810 | exit(0); |
| 12811 | } |
| 12812 | setpgid(pid2, pid1); |
| 12813 | |
| 12814 | close(fds[1]); |
| 12815 | if (read(fds[0], &ok, 1) != 1) |
| 12816 | exit(4); |
| 12817 | wait(&status); |
| 12818 | wait(&status); |
| 12819 | exit(ok ? 0 : 5); |
| 12820 | } |
| 12821 | |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 12822 | _ACEOF |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 12823 | if ac_fn_c_try_run "$LINENO"; then : |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 12824 | bash_cv_pgrp_pipe=no |
| 12825 | else |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 12826 | bash_cv_pgrp_pipe=yes |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 12827 | fi |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 12828 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 12829 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 12830 | fi |
| 12831 | |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 12832 | |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 12833 | fi |
| 12834 | |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 12835 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_pgrp_pipe" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 12836 | $as_echo "$bash_cv_pgrp_pipe" >&6; } |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 12837 | if test $bash_cv_pgrp_pipe = yes; then |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 12838 | $as_echo "#define PGRP_PIPE 1" >>confdefs.h |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 12839 | |
| 12840 | fi |
| 12841 | |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 12842 | |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 12843 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type of signal functions" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 12844 | $as_echo_n "checking for type of signal functions... " >&6; } |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 12845 | if ${bash_cv_signal_vintage+:} false; then : |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 12846 | $as_echo_n "(cached) " >&6 |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 12847 | else |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 12848 | |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 12849 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Jari Aalto | 0628567 | 2006-10-10 14:15:34 +0000 | [diff] [blame] | 12850 | /* end confdefs.h. */ |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 12851 | #include <signal.h> |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 12852 | int |
| 12853 | main () |
| 12854 | { |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 12855 | |
| 12856 | sigset_t ss; |
| 12857 | struct sigaction sa; |
| 12858 | sigemptyset(&ss); sigsuspend(&ss); |
| 12859 | sigaction(SIGINT, &sa, (struct sigaction *) 0); |
| 12860 | sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0); |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 12861 | |
| 12862 | ; |
| 12863 | return 0; |
| 12864 | } |
| 12865 | _ACEOF |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 12866 | if ac_fn_c_try_link "$LINENO"; then : |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 12867 | bash_cv_signal_vintage=posix |
| 12868 | else |
Jari Aalto | 0628567 | 2006-10-10 14:15:34 +0000 | [diff] [blame] | 12869 | |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 12870 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Jari Aalto | 0628567 | 2006-10-10 14:15:34 +0000 | [diff] [blame] | 12871 | /* end confdefs.h. */ |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 12872 | #include <signal.h> |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 12873 | int |
| 12874 | main () |
| 12875 | { |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 12876 | |
| 12877 | int mask = sigmask(SIGINT); |
| 12878 | sigsetmask(mask); sigblock(mask); sigpause(mask); |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 12879 | |
| 12880 | ; |
| 12881 | return 0; |
| 12882 | } |
| 12883 | _ACEOF |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 12884 | if ac_fn_c_try_link "$LINENO"; then : |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 12885 | bash_cv_signal_vintage=4.2bsd |
| 12886 | else |
Jari Aalto | 0628567 | 2006-10-10 14:15:34 +0000 | [diff] [blame] | 12887 | |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 12888 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Jari Aalto | 0628567 | 2006-10-10 14:15:34 +0000 | [diff] [blame] | 12889 | /* end confdefs.h. */ |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 12890 | |
| 12891 | #include <signal.h> |
| 12892 | RETSIGTYPE foo() { } |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 12893 | int |
| 12894 | main () |
| 12895 | { |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 12896 | |
| 12897 | int mask = sigmask(SIGINT); |
| 12898 | sigset(SIGINT, foo); sigrelse(SIGINT); |
| 12899 | sighold(SIGINT); sigpause(SIGINT); |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 12900 | |
| 12901 | ; |
| 12902 | return 0; |
| 12903 | } |
| 12904 | _ACEOF |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 12905 | if ac_fn_c_try_link "$LINENO"; then : |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 12906 | bash_cv_signal_vintage=svr3 |
| 12907 | else |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 12908 | bash_cv_signal_vintage=v7 |
Jari Aalto | 0628567 | 2006-10-10 14:15:34 +0000 | [diff] [blame] | 12909 | |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 12910 | fi |
| 12911 | rm -f core conftest.err conftest.$ac_objext \ |
| 12912 | conftest$ac_exeext conftest.$ac_ext |
| 12913 | |
| 12914 | fi |
| 12915 | rm -f core conftest.err conftest.$ac_objext \ |
| 12916 | conftest$ac_exeext conftest.$ac_ext |
| 12917 | |
| 12918 | fi |
| 12919 | rm -f core conftest.err conftest.$ac_objext \ |
| 12920 | conftest$ac_exeext conftest.$ac_ext |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 12921 | |
| 12922 | fi |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 12923 | |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 12924 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_signal_vintage" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 12925 | $as_echo "$bash_cv_signal_vintage" >&6; } |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 12926 | if test "$bash_cv_signal_vintage" = posix; then |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 12927 | $as_echo "#define HAVE_POSIX_SIGNALS 1" >>confdefs.h |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 12928 | |
| 12929 | elif test "$bash_cv_signal_vintage" = "4.2bsd"; then |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 12930 | $as_echo "#define HAVE_BSD_SIGNALS 1" >>confdefs.h |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 12931 | |
| 12932 | elif test "$bash_cv_signal_vintage" = svr3; then |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 12933 | $as_echo "#define HAVE_USG_SIGHOLD 1" >>confdefs.h |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 12934 | |
| 12935 | fi |
| 12936 | |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 12937 | |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 12938 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys_errlist and sys_nerr" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 12939 | $as_echo_n "checking for sys_errlist and sys_nerr... " >&6; } |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 12940 | if ${bash_cv_sys_errlist+:} false; then : |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 12941 | $as_echo_n "(cached) " >&6 |
Jari Aalto | cce855b | 1998-04-17 19:52:44 +0000 | [diff] [blame] | 12942 | else |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 12943 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Jari Aalto | 0628567 | 2006-10-10 14:15:34 +0000 | [diff] [blame] | 12944 | /* end confdefs.h. */ |
Jari Aalto | d166f04 | 1997-06-05 14:59:13 +0000 | [diff] [blame] | 12945 | #include <errno.h> |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 12946 | int |
| 12947 | main () |
| 12948 | { |
Jari Aalto | d166f04 | 1997-06-05 14:59:13 +0000 | [diff] [blame] | 12949 | extern char *sys_errlist[]; |
| 12950 | extern int sys_nerr; |
| 12951 | char *msg = sys_errlist[sys_nerr - 1]; |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 12952 | ; |
| 12953 | return 0; |
| 12954 | } |
| 12955 | _ACEOF |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 12956 | if ac_fn_c_try_link "$LINENO"; then : |
Jari Aalto | d166f04 | 1997-06-05 14:59:13 +0000 | [diff] [blame] | 12957 | bash_cv_sys_errlist=yes |
| 12958 | else |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 12959 | bash_cv_sys_errlist=no |
Jari Aalto | d166f04 | 1997-06-05 14:59:13 +0000 | [diff] [blame] | 12960 | fi |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 12961 | rm -f core conftest.err conftest.$ac_objext \ |
| 12962 | conftest$ac_exeext conftest.$ac_ext |
Jari Aalto | d166f04 | 1997-06-05 14:59:13 +0000 | [diff] [blame] | 12963 | fi |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 12964 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_sys_errlist" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 12965 | $as_echo "$bash_cv_sys_errlist" >&6; } |
Jari Aalto | d166f04 | 1997-06-05 14:59:13 +0000 | [diff] [blame] | 12966 | if test $bash_cv_sys_errlist = yes; then |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 12967 | $as_echo "#define HAVE_SYS_ERRLIST 1" >>confdefs.h |
Jari Aalto | d166f04 | 1997-06-05 14:59:13 +0000 | [diff] [blame] | 12968 | |
| 12969 | fi |
| 12970 | |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 12971 | |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 12972 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys_siglist in system C library" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 12973 | $as_echo_n "checking for sys_siglist in system C library... " >&6; } |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 12974 | if ${bash_cv_sys_siglist+:} false; then : |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 12975 | $as_echo_n "(cached) " >&6 |
Jari Aalto | d166f04 | 1997-06-05 14:59:13 +0000 | [diff] [blame] | 12976 | else |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 12977 | if test "$cross_compiling" = yes; then : |
| 12978 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot check for sys_siglist if cross compiling -- defaulting to no" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 12979 | $as_echo "$as_me: WARNING: cannot check for sys_siglist if cross compiling -- defaulting to no" >&2;} |
Jari Aalto | cce855b | 1998-04-17 19:52:44 +0000 | [diff] [blame] | 12980 | bash_cv_sys_siglist=no |
Jari Aalto | d166f04 | 1997-06-05 14:59:13 +0000 | [diff] [blame] | 12981 | else |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 12982 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Jari Aalto | 0628567 | 2006-10-10 14:15:34 +0000 | [diff] [blame] | 12983 | /* end confdefs.h. */ |
Jari Aalto | d166f04 | 1997-06-05 14:59:13 +0000 | [diff] [blame] | 12984 | |
| 12985 | #include <sys/types.h> |
| 12986 | #include <signal.h> |
| 12987 | #ifdef HAVE_UNISTD_H |
| 12988 | #include <unistd.h> |
| 12989 | #endif |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 12990 | #if !HAVE_DECL_SYS_SIGLIST |
Jari Aalto | d166f04 | 1997-06-05 14:59:13 +0000 | [diff] [blame] | 12991 | extern char *sys_siglist[]; |
| 12992 | #endif |
| 12993 | main() |
| 12994 | { |
| 12995 | char *msg = sys_siglist[2]; |
| 12996 | exit(msg == 0); |
| 12997 | } |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 12998 | _ACEOF |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 12999 | if ac_fn_c_try_run "$LINENO"; then : |
Jari Aalto | d166f04 | 1997-06-05 14:59:13 +0000 | [diff] [blame] | 13000 | bash_cv_sys_siglist=yes |
| 13001 | else |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 13002 | bash_cv_sys_siglist=no |
Jari Aalto | d166f04 | 1997-06-05 14:59:13 +0000 | [diff] [blame] | 13003 | fi |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 13004 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 13005 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Jari Aalto | d166f04 | 1997-06-05 14:59:13 +0000 | [diff] [blame] | 13006 | fi |
| 13007 | |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 13008 | fi |
| 13009 | |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 13010 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_sys_siglist" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 13011 | $as_echo "$bash_cv_sys_siglist" >&6; } |
Jari Aalto | d166f04 | 1997-06-05 14:59:13 +0000 | [diff] [blame] | 13012 | if test $bash_cv_sys_siglist = yes; then |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 13013 | $as_echo "#define HAVE_SYS_SIGLIST 1" >>confdefs.h |
Jari Aalto | d166f04 | 1997-06-05 14:59:13 +0000 | [diff] [blame] | 13014 | |
| 13015 | fi |
| 13016 | |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 13017 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _sys_siglist in signal.h or unistd.h" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 13018 | $as_echo_n "checking for _sys_siglist in signal.h or unistd.h... " >&6; } |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 13019 | if ${bash_cv_decl_under_sys_siglist+:} false; then : |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 13020 | $as_echo_n "(cached) " >&6 |
Jari Aalto | d166f04 | 1997-06-05 14:59:13 +0000 | [diff] [blame] | 13021 | else |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 13022 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Jari Aalto | 0628567 | 2006-10-10 14:15:34 +0000 | [diff] [blame] | 13023 | /* end confdefs.h. */ |
Jari Aalto | d166f04 | 1997-06-05 14:59:13 +0000 | [diff] [blame] | 13024 | |
| 13025 | #include <sys/types.h> |
| 13026 | #include <signal.h> |
| 13027 | #ifdef HAVE_UNISTD_H |
| 13028 | #include <unistd.h> |
| 13029 | #endif |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 13030 | int |
| 13031 | main () |
| 13032 | { |
| 13033 | char *msg = _sys_siglist[2]; |
| 13034 | ; |
| 13035 | return 0; |
| 13036 | } |
| 13037 | _ACEOF |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 13038 | if ac_fn_c_try_compile "$LINENO"; then : |
Jari Aalto | e8ce775 | 1997-09-22 20:22:27 +0000 | [diff] [blame] | 13039 | bash_cv_decl_under_sys_siglist=yes |
| 13040 | else |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 13041 | bash_cv_decl_under_sys_siglist=no |
Jari Aalto | e8ce775 | 1997-09-22 20:22:27 +0000 | [diff] [blame] | 13042 | fi |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 13043 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Jari Aalto | e8ce775 | 1997-09-22 20:22:27 +0000 | [diff] [blame] | 13044 | fi |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 13045 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_decl_under_sys_siglist" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 13046 | $as_echo "$bash_cv_decl_under_sys_siglist" >&6; } |
Jari Aalto | e8ce775 | 1997-09-22 20:22:27 +0000 | [diff] [blame] | 13047 | if test $bash_cv_decl_under_sys_siglist = yes; then |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 13048 | $as_echo "#define UNDER_SYS_SIGLIST_DECLARED 1" >>confdefs.h |
Jari Aalto | e8ce775 | 1997-09-22 20:22:27 +0000 | [diff] [blame] | 13049 | |
| 13050 | fi |
| 13051 | |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 13052 | |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 13053 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _sys_siglist in system C library" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 13054 | $as_echo_n "checking for _sys_siglist in system C library... " >&6; } |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 13055 | if ${bash_cv_under_sys_siglist+:} false; then : |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 13056 | $as_echo_n "(cached) " >&6 |
Jari Aalto | e8ce775 | 1997-09-22 20:22:27 +0000 | [diff] [blame] | 13057 | else |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 13058 | if test "$cross_compiling" = yes; then : |
| 13059 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot check for _sys_siglist if cross compiling -- defaulting to no" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 13060 | $as_echo "$as_me: WARNING: cannot check for _sys_siglist if cross compiling -- defaulting to no" >&2;} |
Jari Aalto | cce855b | 1998-04-17 19:52:44 +0000 | [diff] [blame] | 13061 | bash_cv_under_sys_siglist=no |
Jari Aalto | e8ce775 | 1997-09-22 20:22:27 +0000 | [diff] [blame] | 13062 | else |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 13063 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Jari Aalto | 0628567 | 2006-10-10 14:15:34 +0000 | [diff] [blame] | 13064 | /* end confdefs.h. */ |
Jari Aalto | e8ce775 | 1997-09-22 20:22:27 +0000 | [diff] [blame] | 13065 | |
| 13066 | #include <sys/types.h> |
| 13067 | #include <signal.h> |
| 13068 | #ifdef HAVE_UNISTD_H |
| 13069 | #include <unistd.h> |
| 13070 | #endif |
| 13071 | #ifndef UNDER_SYS_SIGLIST_DECLARED |
Jari Aalto | d166f04 | 1997-06-05 14:59:13 +0000 | [diff] [blame] | 13072 | extern char *_sys_siglist[]; |
| 13073 | #endif |
| 13074 | main() |
| 13075 | { |
Jari Aalto | e8ce775 | 1997-09-22 20:22:27 +0000 | [diff] [blame] | 13076 | char *msg = (char *)_sys_siglist[2]; |
Jari Aalto | d166f04 | 1997-06-05 14:59:13 +0000 | [diff] [blame] | 13077 | exit(msg == 0); |
| 13078 | } |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 13079 | _ACEOF |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 13080 | if ac_fn_c_try_run "$LINENO"; then : |
Jari Aalto | d166f04 | 1997-06-05 14:59:13 +0000 | [diff] [blame] | 13081 | bash_cv_under_sys_siglist=yes |
| 13082 | else |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 13083 | bash_cv_under_sys_siglist=no |
Jari Aalto | d166f04 | 1997-06-05 14:59:13 +0000 | [diff] [blame] | 13084 | fi |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 13085 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 13086 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Jari Aalto | d166f04 | 1997-06-05 14:59:13 +0000 | [diff] [blame] | 13087 | fi |
| 13088 | |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 13089 | fi |
| 13090 | |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 13091 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_under_sys_siglist" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 13092 | $as_echo "$bash_cv_under_sys_siglist" >&6; } |
Jari Aalto | d166f04 | 1997-06-05 14:59:13 +0000 | [diff] [blame] | 13093 | if test $bash_cv_under_sys_siglist = yes; then |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 13094 | $as_echo "#define HAVE_UNDER_SYS_SIGLIST 1" >>confdefs.h |
Jari Aalto | d166f04 | 1997-06-05 14:59:13 +0000 | [diff] [blame] | 13095 | |
| 13096 | fi |
| 13097 | |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 13098 | |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 13099 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether signal handlers are of type void" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 13100 | $as_echo_n "checking whether signal handlers are of type void... " >&6; } |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 13101 | if ${bash_cv_void_sighandler+:} false; then : |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 13102 | $as_echo_n "(cached) " >&6 |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 13103 | else |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 13104 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Jari Aalto | 0628567 | 2006-10-10 14:15:34 +0000 | [diff] [blame] | 13105 | /* end confdefs.h. */ |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 13106 | #include <sys/types.h> |
| 13107 | #include <signal.h> |
| 13108 | #ifdef signal |
| 13109 | #undef signal |
| 13110 | #endif |
| 13111 | #ifdef __cplusplus |
| 13112 | extern "C" |
| 13113 | #endif |
| 13114 | void (*signal ()) (); |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 13115 | int |
| 13116 | main () |
| 13117 | { |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 13118 | int i; |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 13119 | ; |
| 13120 | return 0; |
| 13121 | } |
| 13122 | _ACEOF |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 13123 | if ac_fn_c_try_compile "$LINENO"; then : |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 13124 | bash_cv_void_sighandler=yes |
| 13125 | else |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 13126 | bash_cv_void_sighandler=no |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 13127 | fi |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 13128 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 13129 | fi |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 13130 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_void_sighandler" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 13131 | $as_echo "$bash_cv_void_sighandler" >&6; } |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 13132 | if test $bash_cv_void_sighandler = yes; then |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 13133 | $as_echo "#define VOID_SIGHANDLER 1" >>confdefs.h |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 13134 | |
| 13135 | fi |
| 13136 | |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 13137 | |
| 13138 | |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 13139 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 13140 | $as_echo_n "checking for clock_t... " >&6; } |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 13141 | if ${bash_cv_type_clock_t+:} false; then : |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 13142 | $as_echo_n "(cached) " >&6 |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 13143 | else |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 13144 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Jari Aalto | 0628567 | 2006-10-10 14:15:34 +0000 | [diff] [blame] | 13145 | /* end confdefs.h. */ |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 13146 | #include <sys/types.h> |
| 13147 | #if STDC_HEADERS |
| 13148 | #include <stdlib.h> |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 13149 | #include <stddef.h> |
| 13150 | #endif |
| 13151 | #if HAVE_INTTYPES_H |
| 13152 | #include <inttypes.h> |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 13153 | #endif |
Chet Ramey | 0001803 | 2011-11-21 20:51:19 -0500 | [diff] [blame] | 13154 | #if HAVE_STDINT_H |
| 13155 | #include <stdint.h> |
| 13156 | #endif |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 13157 | #include <sys/times.h> |
| 13158 | |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 13159 | _ACEOF |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 13160 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 13161 | $EGREP "clock_t" >/dev/null 2>&1; then : |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 13162 | bash_cv_type_clock_t=yes |
| 13163 | else |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 13164 | bash_cv_type_clock_t=no |
| 13165 | fi |
| 13166 | rm -f conftest* |
| 13167 | |
| 13168 | fi |
| 13169 | |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 13170 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_type_clock_t" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 13171 | $as_echo "$bash_cv_type_clock_t" >&6; } |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 13172 | |
| 13173 | if test $bash_cv_type_clock_t = no; then |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 13174 | cat >>confdefs.h <<_ACEOF |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 13175 | #define clock_t long |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 13176 | _ACEOF |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 13177 | |
| 13178 | fi |
| 13179 | |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 13180 | |
| 13181 | |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 13182 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigset_t" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 13183 | $as_echo_n "checking for sigset_t... " >&6; } |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 13184 | if ${bash_cv_type_sigset_t+:} false; then : |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 13185 | $as_echo_n "(cached) " >&6 |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 13186 | else |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 13187 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Jari Aalto | 0628567 | 2006-10-10 14:15:34 +0000 | [diff] [blame] | 13188 | /* end confdefs.h. */ |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 13189 | #include <sys/types.h> |
| 13190 | #if STDC_HEADERS |
| 13191 | #include <stdlib.h> |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 13192 | #include <stddef.h> |
| 13193 | #endif |
| 13194 | #if HAVE_INTTYPES_H |
| 13195 | #include <inttypes.h> |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 13196 | #endif |
Chet Ramey | 0001803 | 2011-11-21 20:51:19 -0500 | [diff] [blame] | 13197 | #if HAVE_STDINT_H |
| 13198 | #include <stdint.h> |
| 13199 | #endif |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 13200 | #include <signal.h> |
| 13201 | |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 13202 | _ACEOF |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 13203 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 13204 | $EGREP "sigset_t" >/dev/null 2>&1; then : |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 13205 | bash_cv_type_sigset_t=yes |
| 13206 | else |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 13207 | bash_cv_type_sigset_t=no |
| 13208 | fi |
| 13209 | rm -f conftest* |
| 13210 | |
| 13211 | fi |
| 13212 | |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 13213 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_type_sigset_t" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 13214 | $as_echo "$bash_cv_type_sigset_t" >&6; } |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 13215 | |
| 13216 | if test $bash_cv_type_sigset_t = no; then |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 13217 | cat >>confdefs.h <<_ACEOF |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 13218 | #define sigset_t int |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 13219 | _ACEOF |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 13220 | |
| 13221 | fi |
| 13222 | |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 13223 | |
| 13224 | |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 13225 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sig_atomic_t" >&5 |
| 13226 | $as_echo_n "checking for sig_atomic_t... " >&6; } |
| 13227 | if ${bash_cv_type_sig_atomic_t+:} false; then : |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 13228 | $as_echo_n "(cached) " >&6 |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 13229 | else |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 13230 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 13231 | /* end confdefs.h. */ |
| 13232 | #include <sys/types.h> |
| 13233 | #if STDC_HEADERS |
| 13234 | #include <stdlib.h> |
| 13235 | #include <stddef.h> |
| 13236 | #endif |
| 13237 | #if HAVE_INTTYPES_H |
| 13238 | #include <inttypes.h> |
| 13239 | #endif |
| 13240 | #if HAVE_STDINT_H |
| 13241 | #include <stdint.h> |
| 13242 | #endif |
| 13243 | #include <signal.h> |
| 13244 | |
Jari Aalto | 0628567 | 2006-10-10 14:15:34 +0000 | [diff] [blame] | 13245 | _ACEOF |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 13246 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 13247 | $EGREP "sig_atomic_t" >/dev/null 2>&1; then : |
| 13248 | bash_cv_type_sig_atomic_t=yes |
| 13249 | else |
| 13250 | bash_cv_type_sig_atomic_t=no |
| 13251 | fi |
| 13252 | rm -f conftest* |
| 13253 | |
| 13254 | fi |
| 13255 | |
| 13256 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_type_sig_atomic_t" >&5 |
| 13257 | $as_echo "$bash_cv_type_sig_atomic_t" >&6; } |
| 13258 | |
| 13259 | if test $bash_cv_type_sig_atomic_t = no; then |
| 13260 | cat >>confdefs.h <<_ACEOF |
| 13261 | #define sig_atomic_t int |
| 13262 | _ACEOF |
| 13263 | |
| 13264 | fi |
| 13265 | |
| 13266 | |
| 13267 | |
| 13268 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for quad_t" >&5 |
| 13269 | $as_echo_n "checking for quad_t... " >&6; } |
| 13270 | if ${bash_cv_type_quad_t+:} false; then : |
| 13271 | $as_echo_n "(cached) " >&6 |
| 13272 | else |
| 13273 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Jari Aalto | 0628567 | 2006-10-10 14:15:34 +0000 | [diff] [blame] | 13274 | /* end confdefs.h. */ |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 13275 | #include <sys/types.h> |
| 13276 | #if STDC_HEADERS |
| 13277 | #include <stdlib.h> |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 13278 | #include <stddef.h> |
| 13279 | #endif |
| 13280 | #if HAVE_INTTYPES_H |
| 13281 | #include <inttypes.h> |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 13282 | #endif |
Chet Ramey | 0001803 | 2011-11-21 20:51:19 -0500 | [diff] [blame] | 13283 | #if HAVE_STDINT_H |
| 13284 | #include <stdint.h> |
| 13285 | #endif |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 13286 | |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 13287 | |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 13288 | _ACEOF |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 13289 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 13290 | $EGREP "quad_t" >/dev/null 2>&1; then : |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 13291 | bash_cv_type_quad_t=yes |
| 13292 | else |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 13293 | bash_cv_type_quad_t=no |
| 13294 | fi |
| 13295 | rm -f conftest* |
| 13296 | |
| 13297 | fi |
| 13298 | |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 13299 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_type_quad_t" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 13300 | $as_echo "$bash_cv_type_quad_t" >&6; } |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 13301 | if test $bash_cv_type_quad_t = yes; then |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 13302 | $as_echo "#define HAVE_QUAD_T 1" >>confdefs.h |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 13303 | |
| 13304 | fi |
| 13305 | if test $bash_cv_type_quad_t = no; then |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 13306 | cat >>confdefs.h <<_ACEOF |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 13307 | #define quad_t long |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 13308 | _ACEOF |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 13309 | |
| 13310 | fi |
| 13311 | |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 13312 | |
| 13313 | |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 13314 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 13315 | $as_echo_n "checking for intmax_t... " >&6; } |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 13316 | if ${bash_cv_type_intmax_t+:} false; then : |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 13317 | $as_echo_n "(cached) " >&6 |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 13318 | else |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 13319 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Jari Aalto | 0628567 | 2006-10-10 14:15:34 +0000 | [diff] [blame] | 13320 | /* end confdefs.h. */ |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 13321 | #include <sys/types.h> |
| 13322 | #if STDC_HEADERS |
| 13323 | #include <stdlib.h> |
| 13324 | #include <stddef.h> |
| 13325 | #endif |
| 13326 | #if HAVE_INTTYPES_H |
| 13327 | #include <inttypes.h> |
| 13328 | #endif |
Chet Ramey | 0001803 | 2011-11-21 20:51:19 -0500 | [diff] [blame] | 13329 | #if HAVE_STDINT_H |
| 13330 | #include <stdint.h> |
| 13331 | #endif |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 13332 | |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 13333 | |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 13334 | _ACEOF |
| 13335 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 13336 | $EGREP "intmax_t" >/dev/null 2>&1; then : |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 13337 | bash_cv_type_intmax_t=yes |
| 13338 | else |
| 13339 | bash_cv_type_intmax_t=no |
| 13340 | fi |
| 13341 | rm -f conftest* |
| 13342 | |
| 13343 | fi |
| 13344 | |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 13345 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_type_intmax_t" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 13346 | $as_echo "$bash_cv_type_intmax_t" >&6; } |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 13347 | |
| 13348 | if test $bash_cv_type_intmax_t = no; then |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 13349 | cat >>confdefs.h <<_ACEOF |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 13350 | #define intmax_t $bash_cv_type_long_long |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 13351 | _ACEOF |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 13352 | |
| 13353 | fi |
| 13354 | |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 13355 | |
| 13356 | |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 13357 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uintmax_t" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 13358 | $as_echo_n "checking for uintmax_t... " >&6; } |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 13359 | if ${bash_cv_type_uintmax_t+:} false; then : |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 13360 | $as_echo_n "(cached) " >&6 |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 13361 | else |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 13362 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Jari Aalto | 0628567 | 2006-10-10 14:15:34 +0000 | [diff] [blame] | 13363 | /* end confdefs.h. */ |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 13364 | #include <sys/types.h> |
| 13365 | #if STDC_HEADERS |
| 13366 | #include <stdlib.h> |
| 13367 | #include <stddef.h> |
| 13368 | #endif |
| 13369 | #if HAVE_INTTYPES_H |
| 13370 | #include <inttypes.h> |
| 13371 | #endif |
Chet Ramey | 0001803 | 2011-11-21 20:51:19 -0500 | [diff] [blame] | 13372 | #if HAVE_STDINT_H |
| 13373 | #include <stdint.h> |
| 13374 | #endif |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 13375 | |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 13376 | |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 13377 | _ACEOF |
| 13378 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 13379 | $EGREP "uintmax_t" >/dev/null 2>&1; then : |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 13380 | bash_cv_type_uintmax_t=yes |
| 13381 | else |
| 13382 | bash_cv_type_uintmax_t=no |
| 13383 | fi |
| 13384 | rm -f conftest* |
| 13385 | |
| 13386 | fi |
| 13387 | |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 13388 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_type_uintmax_t" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 13389 | $as_echo "$bash_cv_type_uintmax_t" >&6; } |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 13390 | |
| 13391 | if test $bash_cv_type_uintmax_t = no; then |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 13392 | cat >>confdefs.h <<_ACEOF |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 13393 | #define uintmax_t $bash_cv_type_unsigned_long_long |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 13394 | _ACEOF |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 13395 | |
| 13396 | fi |
| 13397 | |
| 13398 | if test "$ac_cv_header_sys_socket_h" = "yes"; then |
| 13399 | |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 13400 | |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 13401 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 13402 | $as_echo_n "checking for socklen_t... " >&6; } |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 13403 | if ${bash_cv_type_socklen_t+:} false; then : |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 13404 | $as_echo_n "(cached) " >&6 |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 13405 | else |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 13406 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Jari Aalto | 0628567 | 2006-10-10 14:15:34 +0000 | [diff] [blame] | 13407 | /* end confdefs.h. */ |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 13408 | #include <sys/types.h> |
| 13409 | #if STDC_HEADERS |
| 13410 | #include <stdlib.h> |
| 13411 | #include <stddef.h> |
| 13412 | #endif |
| 13413 | #if HAVE_INTTYPES_H |
| 13414 | #include <inttypes.h> |
| 13415 | #endif |
Chet Ramey | 0001803 | 2011-11-21 20:51:19 -0500 | [diff] [blame] | 13416 | #if HAVE_STDINT_H |
| 13417 | #include <stdint.h> |
| 13418 | #endif |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 13419 | #include <sys/socket.h> |
| 13420 | |
| 13421 | _ACEOF |
| 13422 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 13423 | $EGREP "socklen_t" >/dev/null 2>&1; then : |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 13424 | bash_cv_type_socklen_t=yes |
| 13425 | else |
| 13426 | bash_cv_type_socklen_t=no |
| 13427 | fi |
| 13428 | rm -f conftest* |
| 13429 | |
| 13430 | fi |
| 13431 | |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 13432 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_type_socklen_t" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 13433 | $as_echo "$bash_cv_type_socklen_t" >&6; } |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 13434 | if test $bash_cv_type_socklen_t = yes; then |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 13435 | $as_echo "#define HAVE_SOCKLEN_T 1" >>confdefs.h |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 13436 | |
| 13437 | fi |
| 13438 | if test $bash_cv_type_socklen_t = no; then |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 13439 | cat >>confdefs.h <<_ACEOF |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 13440 | #define socklen_t unsigned int |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 13441 | _ACEOF |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 13442 | |
| 13443 | fi |
| 13444 | |
| 13445 | fi |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 13446 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for size and type of struct rlimit fields" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 13447 | $as_echo_n "checking for size and type of struct rlimit fields... " >&6; } |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 13448 | if ${bash_cv_type_rlimit+:} false; then : |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 13449 | $as_echo_n "(cached) " >&6 |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 13450 | else |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 13451 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Jari Aalto | 0628567 | 2006-10-10 14:15:34 +0000 | [diff] [blame] | 13452 | /* end confdefs.h. */ |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 13453 | #include <sys/types.h> |
Jari Aalto | cce855b | 1998-04-17 19:52:44 +0000 | [diff] [blame] | 13454 | #include <sys/resource.h> |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 13455 | int |
| 13456 | main () |
| 13457 | { |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 13458 | rlim_t xxx; |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 13459 | ; |
| 13460 | return 0; |
| 13461 | } |
| 13462 | _ACEOF |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 13463 | if ac_fn_c_try_compile "$LINENO"; then : |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 13464 | bash_cv_type_rlimit=rlim_t |
| 13465 | else |
Jari Aalto | 0628567 | 2006-10-10 14:15:34 +0000 | [diff] [blame] | 13466 | |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 13467 | if test "$cross_compiling" = yes; then : |
| 13468 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot check quad_t if cross compiling -- defaulting to long" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 13469 | $as_echo "$as_me: WARNING: cannot check quad_t if cross compiling -- defaulting to long" >&2;} |
Jari Aalto | cce855b | 1998-04-17 19:52:44 +0000 | [diff] [blame] | 13470 | bash_cv_type_rlimit=long |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 13471 | else |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 13472 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Jari Aalto | 0628567 | 2006-10-10 14:15:34 +0000 | [diff] [blame] | 13473 | /* end confdefs.h. */ |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 13474 | |
| 13475 | #include <sys/types.h> |
| 13476 | #include <sys/time.h> |
| 13477 | #include <sys/resource.h> |
| 13478 | main() |
| 13479 | { |
| 13480 | #ifdef HAVE_QUAD_T |
| 13481 | struct rlimit rl; |
| 13482 | if (sizeof(rl.rlim_cur) == sizeof(quad_t)) |
| 13483 | exit(0); |
| 13484 | #endif |
| 13485 | exit(1); |
| 13486 | } |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 13487 | _ACEOF |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 13488 | if ac_fn_c_try_run "$LINENO"; then : |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 13489 | bash_cv_type_rlimit=quad_t |
| 13490 | else |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 13491 | bash_cv_type_rlimit=long |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 13492 | fi |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 13493 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 13494 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 13495 | fi |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 13496 | |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 13497 | fi |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 13498 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 13499 | |
| 13500 | fi |
| 13501 | |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 13502 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_type_rlimit" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 13503 | $as_echo "$bash_cv_type_rlimit" >&6; } |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 13504 | if test $bash_cv_type_rlimit = quad_t; then |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 13505 | $as_echo "#define RLIMTYPE quad_t" >>confdefs.h |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 13506 | |
| 13507 | elif test $bash_cv_type_rlimit = rlim_t; then |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 13508 | $as_echo "#define RLIMTYPE rlim_t" >>confdefs.h |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 13509 | |
| 13510 | fi |
| 13511 | |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 13512 | |
Chet Ramey | 495aee4 | 2011-11-22 19:11:26 -0500 | [diff] [blame] | 13513 | # The cast to long int works around a bug in the HP C Compiler |
| 13514 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 13515 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 13516 | # This bug is HP SR number 8606223364. |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 13517 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of intmax_t" >&5 |
Chet Ramey | 495aee4 | 2011-11-22 19:11:26 -0500 | [diff] [blame] | 13518 | $as_echo_n "checking size of intmax_t... " >&6; } |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 13519 | if ${ac_cv_sizeof_intmax_t+:} false; then : |
Chet Ramey | 495aee4 | 2011-11-22 19:11:26 -0500 | [diff] [blame] | 13520 | $as_echo_n "(cached) " >&6 |
| 13521 | else |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 13522 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (intmax_t))" "ac_cv_sizeof_intmax_t" "$ac_includes_default"; then : |
Chet Ramey | 495aee4 | 2011-11-22 19:11:26 -0500 | [diff] [blame] | 13523 | |
Chet Ramey | 495aee4 | 2011-11-22 19:11:26 -0500 | [diff] [blame] | 13524 | else |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 13525 | if test "$ac_cv_type_intmax_t" = yes; then |
| 13526 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
Chet Ramey | 495aee4 | 2011-11-22 19:11:26 -0500 | [diff] [blame] | 13527 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 13528 | as_fn_error 77 "cannot compute sizeof (intmax_t) |
| 13529 | See \`config.log' for more details" "$LINENO" 5; } |
Chet Ramey | 495aee4 | 2011-11-22 19:11:26 -0500 | [diff] [blame] | 13530 | else |
| 13531 | ac_cv_sizeof_intmax_t=0 |
| 13532 | fi |
| 13533 | fi |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 13534 | |
Chet Ramey | 495aee4 | 2011-11-22 19:11:26 -0500 | [diff] [blame] | 13535 | fi |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 13536 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_intmax_t" >&5 |
Chet Ramey | 495aee4 | 2011-11-22 19:11:26 -0500 | [diff] [blame] | 13537 | $as_echo "$ac_cv_sizeof_intmax_t" >&6; } |
| 13538 | |
| 13539 | |
| 13540 | |
| 13541 | cat >>confdefs.h <<_ACEOF |
| 13542 | #define SIZEOF_INTMAX_T $ac_cv_sizeof_intmax_t |
| 13543 | _ACEOF |
| 13544 | |
| 13545 | |
| 13546 | |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 13547 | |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 13548 | ac_fn_c_check_member "$LINENO" "struct termios" "c_line" "ac_cv_member_struct_termios_c_line" " |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 13549 | #include <sys/types.h> |
| 13550 | #include <termios.h> |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 13551 | |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 13552 | " |
| 13553 | if test "x$ac_cv_member_struct_termios_c_line" = xyes; then : |
| 13554 | $as_echo "#define TERMIOS_LDISC 1" >>confdefs.h |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 13555 | |
| 13556 | fi |
| 13557 | |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 13558 | |
| 13559 | |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 13560 | ac_fn_c_check_member "$LINENO" "struct termio" "c_line" "ac_cv_member_struct_termio_c_line" " |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 13561 | #include <sys/types.h> |
| 13562 | #include <termio.h> |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 13563 | |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 13564 | " |
| 13565 | if test "x$ac_cv_member_struct_termio_c_line" = xyes; then : |
| 13566 | $as_echo "#define TERMIO_LDISC 1" >>confdefs.h |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 13567 | |
| 13568 | fi |
| 13569 | |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 13570 | |
| 13571 | |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 13572 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct dirent.d_ino" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 13573 | $as_echo_n "checking for struct dirent.d_ino... " >&6; } |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 13574 | if ${bash_cv_dirent_has_dino+:} false; then : |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 13575 | $as_echo_n "(cached) " >&6 |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 13576 | else |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 13577 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Jari Aalto | 0628567 | 2006-10-10 14:15:34 +0000 | [diff] [blame] | 13578 | /* end confdefs.h. */ |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 13579 | |
| 13580 | #include <stdio.h> |
| 13581 | #include <sys/types.h> |
| 13582 | #ifdef HAVE_UNISTD_H |
| 13583 | # include <unistd.h> |
| 13584 | #endif /* HAVE_UNISTD_H */ |
| 13585 | #if defined(HAVE_DIRENT_H) |
| 13586 | # include <dirent.h> |
| 13587 | #else |
| 13588 | # define dirent direct |
| 13589 | # ifdef HAVE_SYS_NDIR_H |
| 13590 | # include <sys/ndir.h> |
| 13591 | # endif /* SYSNDIR */ |
| 13592 | # ifdef HAVE_SYS_DIR_H |
| 13593 | # include <sys/dir.h> |
| 13594 | # endif /* SYSDIR */ |
| 13595 | # ifdef HAVE_NDIR_H |
| 13596 | # include <ndir.h> |
| 13597 | # endif |
| 13598 | #endif /* HAVE_DIRENT_H */ |
| 13599 | |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 13600 | int |
| 13601 | main () |
| 13602 | { |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 13603 | |
| 13604 | struct dirent d; int z; z = d.d_ino; |
| 13605 | |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 13606 | ; |
| 13607 | return 0; |
| 13608 | } |
| 13609 | _ACEOF |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 13610 | if ac_fn_c_try_compile "$LINENO"; then : |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 13611 | bash_cv_dirent_has_dino=yes |
| 13612 | else |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 13613 | bash_cv_dirent_has_dino=no |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 13614 | fi |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 13615 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 13616 | fi |
| 13617 | |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 13618 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_dirent_has_dino" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 13619 | $as_echo "$bash_cv_dirent_has_dino" >&6; } |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 13620 | if test $bash_cv_dirent_has_dino = yes; then |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 13621 | $as_echo "#define HAVE_STRUCT_DIRENT_D_INO 1" >>confdefs.h |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 13622 | |
| 13623 | fi |
| 13624 | |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 13625 | |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 13626 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct dirent.d_fileno" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 13627 | $as_echo_n "checking for struct dirent.d_fileno... " >&6; } |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 13628 | if ${bash_cv_dirent_has_d_fileno+:} false; then : |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 13629 | $as_echo_n "(cached) " >&6 |
Jari Aalto | d166f04 | 1997-06-05 14:59:13 +0000 | [diff] [blame] | 13630 | else |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 13631 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Jari Aalto | 0628567 | 2006-10-10 14:15:34 +0000 | [diff] [blame] | 13632 | /* end confdefs.h. */ |
Jari Aalto | d166f04 | 1997-06-05 14:59:13 +0000 | [diff] [blame] | 13633 | |
| 13634 | #include <stdio.h> |
| 13635 | #include <sys/types.h> |
| 13636 | #ifdef HAVE_UNISTD_H |
| 13637 | # include <unistd.h> |
| 13638 | #endif /* HAVE_UNISTD_H */ |
| 13639 | #if defined(HAVE_DIRENT_H) |
| 13640 | # include <dirent.h> |
| 13641 | #else |
| 13642 | # define dirent direct |
| 13643 | # ifdef HAVE_SYS_NDIR_H |
| 13644 | # include <sys/ndir.h> |
| 13645 | # endif /* SYSNDIR */ |
| 13646 | # ifdef HAVE_SYS_DIR_H |
| 13647 | # include <sys/dir.h> |
| 13648 | # endif /* SYSDIR */ |
| 13649 | # ifdef HAVE_NDIR_H |
| 13650 | # include <ndir.h> |
| 13651 | # endif |
| 13652 | #endif /* HAVE_DIRENT_H */ |
| 13653 | |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 13654 | int |
| 13655 | main () |
| 13656 | { |
Jari Aalto | d166f04 | 1997-06-05 14:59:13 +0000 | [diff] [blame] | 13657 | |
| 13658 | struct dirent d; int z; z = d.d_fileno; |
| 13659 | |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 13660 | ; |
| 13661 | return 0; |
| 13662 | } |
| 13663 | _ACEOF |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 13664 | if ac_fn_c_try_compile "$LINENO"; then : |
Jari Aalto | d166f04 | 1997-06-05 14:59:13 +0000 | [diff] [blame] | 13665 | bash_cv_dirent_has_d_fileno=yes |
| 13666 | else |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 13667 | bash_cv_dirent_has_d_fileno=no |
Jari Aalto | d166f04 | 1997-06-05 14:59:13 +0000 | [diff] [blame] | 13668 | fi |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 13669 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 13670 | fi |
| 13671 | |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 13672 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_dirent_has_d_fileno" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 13673 | $as_echo "$bash_cv_dirent_has_d_fileno" >&6; } |
Jari Aalto | d166f04 | 1997-06-05 14:59:13 +0000 | [diff] [blame] | 13674 | if test $bash_cv_dirent_has_d_fileno = yes; then |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 13675 | $as_echo "#define HAVE_STRUCT_DIRENT_D_FILENO 1" >>confdefs.h |
Jari Aalto | d166f04 | 1997-06-05 14:59:13 +0000 | [diff] [blame] | 13676 | |
| 13677 | fi |
| 13678 | |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 13679 | |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 13680 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct dirent.d_namlen" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 13681 | $as_echo_n "checking for struct dirent.d_namlen... " >&6; } |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 13682 | if ${bash_cv_dirent_has_d_namlen+:} false; then : |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 13683 | $as_echo_n "(cached) " >&6 |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 13684 | else |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 13685 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Jari Aalto | 0628567 | 2006-10-10 14:15:34 +0000 | [diff] [blame] | 13686 | /* end confdefs.h. */ |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 13687 | |
| 13688 | #include <stdio.h> |
| 13689 | #include <sys/types.h> |
| 13690 | #ifdef HAVE_UNISTD_H |
| 13691 | # include <unistd.h> |
| 13692 | #endif /* HAVE_UNISTD_H */ |
| 13693 | #if defined(HAVE_DIRENT_H) |
| 13694 | # include <dirent.h> |
| 13695 | #else |
| 13696 | # define dirent direct |
| 13697 | # ifdef HAVE_SYS_NDIR_H |
| 13698 | # include <sys/ndir.h> |
| 13699 | # endif /* SYSNDIR */ |
| 13700 | # ifdef HAVE_SYS_DIR_H |
| 13701 | # include <sys/dir.h> |
| 13702 | # endif /* SYSDIR */ |
| 13703 | # ifdef HAVE_NDIR_H |
| 13704 | # include <ndir.h> |
| 13705 | # endif |
| 13706 | #endif /* HAVE_DIRENT_H */ |
| 13707 | |
| 13708 | int |
| 13709 | main () |
| 13710 | { |
| 13711 | |
| 13712 | struct dirent d; int z; z = d.d_namlen; |
| 13713 | |
| 13714 | ; |
| 13715 | return 0; |
| 13716 | } |
| 13717 | _ACEOF |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 13718 | if ac_fn_c_try_compile "$LINENO"; then : |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 13719 | bash_cv_dirent_has_d_namlen=yes |
| 13720 | else |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 13721 | bash_cv_dirent_has_d_namlen=no |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 13722 | fi |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 13723 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 13724 | fi |
| 13725 | |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 13726 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_dirent_has_d_namlen" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 13727 | $as_echo "$bash_cv_dirent_has_d_namlen" >&6; } |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 13728 | if test $bash_cv_dirent_has_d_namlen = yes; then |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 13729 | $as_echo "#define HAVE_STRUCT_DIRENT_D_NAMLEN 1" >>confdefs.h |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 13730 | |
| 13731 | fi |
| 13732 | |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 13733 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct winsize in sys/ioctl.h and termios.h" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 13734 | $as_echo_n "checking for struct winsize in sys/ioctl.h and termios.h... " >&6; } |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 13735 | if ${bash_cv_struct_winsize_header+:} false; then : |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 13736 | $as_echo_n "(cached) " >&6 |
Jari Aalto | d166f04 | 1997-06-05 14:59:13 +0000 | [diff] [blame] | 13737 | else |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 13738 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Jari Aalto | 0628567 | 2006-10-10 14:15:34 +0000 | [diff] [blame] | 13739 | /* end confdefs.h. */ |
Jari Aalto | d166f04 | 1997-06-05 14:59:13 +0000 | [diff] [blame] | 13740 | #include <sys/types.h> |
| 13741 | #include <sys/ioctl.h> |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 13742 | int |
| 13743 | main () |
| 13744 | { |
Jari Aalto | d166f04 | 1997-06-05 14:59:13 +0000 | [diff] [blame] | 13745 | struct winsize x; |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 13746 | ; |
| 13747 | return 0; |
| 13748 | } |
| 13749 | _ACEOF |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 13750 | if ac_fn_c_try_compile "$LINENO"; then : |
Jari Aalto | cce855b | 1998-04-17 19:52:44 +0000 | [diff] [blame] | 13751 | bash_cv_struct_winsize_header=ioctl_h |
Jari Aalto | d166f04 | 1997-06-05 14:59:13 +0000 | [diff] [blame] | 13752 | else |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 13753 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Jari Aalto | 0628567 | 2006-10-10 14:15:34 +0000 | [diff] [blame] | 13754 | /* end confdefs.h. */ |
Jari Aalto | cce855b | 1998-04-17 19:52:44 +0000 | [diff] [blame] | 13755 | #include <sys/types.h> |
| 13756 | #include <termios.h> |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 13757 | int |
| 13758 | main () |
| 13759 | { |
Jari Aalto | cce855b | 1998-04-17 19:52:44 +0000 | [diff] [blame] | 13760 | struct winsize x; |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 13761 | ; |
| 13762 | return 0; |
| 13763 | } |
| 13764 | _ACEOF |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 13765 | if ac_fn_c_try_compile "$LINENO"; then : |
Jari Aalto | cce855b | 1998-04-17 19:52:44 +0000 | [diff] [blame] | 13766 | bash_cv_struct_winsize_header=termios_h |
| 13767 | else |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 13768 | bash_cv_struct_winsize_header=other |
Jari Aalto | cce855b | 1998-04-17 19:52:44 +0000 | [diff] [blame] | 13769 | fi |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 13770 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Jari Aalto | cce855b | 1998-04-17 19:52:44 +0000 | [diff] [blame] | 13771 | |
Jari Aalto | d166f04 | 1997-06-05 14:59:13 +0000 | [diff] [blame] | 13772 | fi |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 13773 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Jari Aalto | d166f04 | 1997-06-05 14:59:13 +0000 | [diff] [blame] | 13774 | fi |
| 13775 | |
Jari Aalto | cce855b | 1998-04-17 19:52:44 +0000 | [diff] [blame] | 13776 | if test $bash_cv_struct_winsize_header = ioctl_h; then |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 13777 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: sys/ioctl.h" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 13778 | $as_echo "sys/ioctl.h" >&6; } |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 13779 | $as_echo "#define STRUCT_WINSIZE_IN_SYS_IOCTL 1" >>confdefs.h |
Jari Aalto | d166f04 | 1997-06-05 14:59:13 +0000 | [diff] [blame] | 13780 | |
Jari Aalto | cce855b | 1998-04-17 19:52:44 +0000 | [diff] [blame] | 13781 | elif test $bash_cv_struct_winsize_header = termios_h; then |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 13782 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: termios.h" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 13783 | $as_echo "termios.h" >&6; } |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 13784 | $as_echo "#define STRUCT_WINSIZE_IN_TERMIOS 1" >>confdefs.h |
Jari Aalto | cce855b | 1998-04-17 19:52:44 +0000 | [diff] [blame] | 13785 | |
| 13786 | else |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 13787 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 13788 | $as_echo "not found" >&6; } |
Jari Aalto | d166f04 | 1997-06-05 14:59:13 +0000 | [diff] [blame] | 13789 | fi |
| 13790 | |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 13791 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval in sys/time.h and time.h" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 13792 | $as_echo_n "checking for struct timeval in sys/time.h and time.h... " >&6; } |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 13793 | if ${bash_cv_struct_timeval+:} false; then : |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 13794 | $as_echo_n "(cached) " >&6 |
Jari Aalto | bb70624 | 2000-03-17 21:46:59 +0000 | [diff] [blame] | 13795 | else |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 13796 | |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 13797 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Jari Aalto | 0628567 | 2006-10-10 14:15:34 +0000 | [diff] [blame] | 13798 | /* end confdefs.h. */ |
Jari Aalto | bb70624 | 2000-03-17 21:46:59 +0000 | [diff] [blame] | 13799 | #include <sys/time.h> |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 13800 | |
| 13801 | _ACEOF |
Jari Aalto | bb70624 | 2000-03-17 21:46:59 +0000 | [diff] [blame] | 13802 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 13803 | $EGREP "struct timeval" >/dev/null 2>&1; then : |
Jari Aalto | bb70624 | 2000-03-17 21:46:59 +0000 | [diff] [blame] | 13804 | bash_cv_struct_timeval=yes |
| 13805 | else |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 13806 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Jari Aalto | 0628567 | 2006-10-10 14:15:34 +0000 | [diff] [blame] | 13807 | /* end confdefs.h. */ |
Jari Aalto | bb70624 | 2000-03-17 21:46:59 +0000 | [diff] [blame] | 13808 | #include <time.h> |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 13809 | |
| 13810 | _ACEOF |
Jari Aalto | bb70624 | 2000-03-17 21:46:59 +0000 | [diff] [blame] | 13811 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 13812 | $EGREP "struct timeval" >/dev/null 2>&1; then : |
Jari Aalto | bb70624 | 2000-03-17 21:46:59 +0000 | [diff] [blame] | 13813 | bash_cv_struct_timeval=yes |
| 13814 | else |
Jari Aalto | bb70624 | 2000-03-17 21:46:59 +0000 | [diff] [blame] | 13815 | bash_cv_struct_timeval=no |
| 13816 | fi |
| 13817 | rm -f conftest* |
| 13818 | |
| 13819 | fi |
| 13820 | rm -f conftest* |
| 13821 | |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 13822 | |
Jari Aalto | bb70624 | 2000-03-17 21:46:59 +0000 | [diff] [blame] | 13823 | fi |
| 13824 | |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 13825 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_struct_timeval" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 13826 | $as_echo "$bash_cv_struct_timeval" >&6; } |
Jari Aalto | bb70624 | 2000-03-17 21:46:59 +0000 | [diff] [blame] | 13827 | if test $bash_cv_struct_timeval = yes; then |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 13828 | $as_echo "#define HAVE_TIMEVAL 1" >>confdefs.h |
Jari Aalto | bb70624 | 2000-03-17 21:46:59 +0000 | [diff] [blame] | 13829 | |
| 13830 | fi |
| 13831 | |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 13832 | ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default" |
| 13833 | if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then : |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 13834 | |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 13835 | cat >>confdefs.h <<_ACEOF |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 13836 | #define HAVE_STRUCT_STAT_ST_BLOCKS 1 |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 13837 | _ACEOF |
| 13838 | |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 13839 | |
| 13840 | fi |
| 13841 | |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 13842 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 13843 | $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; } |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 13844 | if ${ac_cv_struct_tm+:} false; then : |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 13845 | $as_echo_n "(cached) " >&6 |
Jari Aalto | 7117c2d | 2002-07-17 14:10:11 +0000 | [diff] [blame] | 13846 | else |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 13847 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Jari Aalto | 0628567 | 2006-10-10 14:15:34 +0000 | [diff] [blame] | 13848 | /* end confdefs.h. */ |
Jari Aalto | 7117c2d | 2002-07-17 14:10:11 +0000 | [diff] [blame] | 13849 | #include <sys/types.h> |
| 13850 | #include <time.h> |
| 13851 | |
| 13852 | int |
| 13853 | main () |
| 13854 | { |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 13855 | struct tm tm; |
| 13856 | int *p = &tm.tm_sec; |
| 13857 | return !p; |
Jari Aalto | 7117c2d | 2002-07-17 14:10:11 +0000 | [diff] [blame] | 13858 | ; |
| 13859 | return 0; |
| 13860 | } |
| 13861 | _ACEOF |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 13862 | if ac_fn_c_try_compile "$LINENO"; then : |
Jari Aalto | 7117c2d | 2002-07-17 14:10:11 +0000 | [diff] [blame] | 13863 | ac_cv_struct_tm=time.h |
| 13864 | else |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 13865 | ac_cv_struct_tm=sys/time.h |
Jari Aalto | 7117c2d | 2002-07-17 14:10:11 +0000 | [diff] [blame] | 13866 | fi |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 13867 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Jari Aalto | 7117c2d | 2002-07-17 14:10:11 +0000 | [diff] [blame] | 13868 | fi |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 13869 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 13870 | $as_echo "$ac_cv_struct_tm" >&6; } |
Jari Aalto | 7117c2d | 2002-07-17 14:10:11 +0000 | [diff] [blame] | 13871 | if test $ac_cv_struct_tm = sys/time.h; then |
| 13872 | |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 13873 | $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h |
Jari Aalto | 7117c2d | 2002-07-17 14:10:11 +0000 | [diff] [blame] | 13874 | |
| 13875 | fi |
| 13876 | |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 13877 | ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h> |
Jari Aalto | 7117c2d | 2002-07-17 14:10:11 +0000 | [diff] [blame] | 13878 | #include <$ac_cv_struct_tm> |
| 13879 | |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 13880 | " |
| 13881 | if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then : |
Jari Aalto | 7117c2d | 2002-07-17 14:10:11 +0000 | [diff] [blame] | 13882 | |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 13883 | cat >>confdefs.h <<_ACEOF |
Jari Aalto | 7117c2d | 2002-07-17 14:10:11 +0000 | [diff] [blame] | 13884 | #define HAVE_STRUCT_TM_TM_ZONE 1 |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 13885 | _ACEOF |
| 13886 | |
Jari Aalto | 7117c2d | 2002-07-17 14:10:11 +0000 | [diff] [blame] | 13887 | |
| 13888 | fi |
| 13889 | |
| 13890 | if test "$ac_cv_member_struct_tm_tm_zone" = yes; then |
| 13891 | |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 13892 | $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h |
Jari Aalto | 7117c2d | 2002-07-17 14:10:11 +0000 | [diff] [blame] | 13893 | |
| 13894 | else |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 13895 | ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h> |
| 13896 | " |
| 13897 | if test "x$ac_cv_have_decl_tzname" = xyes; then : |
| 13898 | ac_have_decl=1 |
Jari Aalto | 7117c2d | 2002-07-17 14:10:11 +0000 | [diff] [blame] | 13899 | else |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 13900 | ac_have_decl=0 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 13901 | fi |
| 13902 | |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 13903 | cat >>confdefs.h <<_ACEOF |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 13904 | #define HAVE_DECL_TZNAME $ac_have_decl |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 13905 | _ACEOF |
| 13906 | |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 13907 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 13908 | $as_echo_n "checking for tzname... " >&6; } |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 13909 | if ${ac_cv_var_tzname+:} false; then : |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 13910 | $as_echo_n "(cached) " >&6 |
| 13911 | else |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 13912 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 13913 | /* end confdefs.h. */ |
| 13914 | #include <time.h> |
| 13915 | #if !HAVE_DECL_TZNAME |
| 13916 | extern char *tzname[]; |
Jari Aalto | 7117c2d | 2002-07-17 14:10:11 +0000 | [diff] [blame] | 13917 | #endif |
| 13918 | |
| 13919 | int |
| 13920 | main () |
| 13921 | { |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 13922 | return tzname[0][0]; |
Jari Aalto | 7117c2d | 2002-07-17 14:10:11 +0000 | [diff] [blame] | 13923 | ; |
| 13924 | return 0; |
| 13925 | } |
| 13926 | _ACEOF |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 13927 | if ac_fn_c_try_link "$LINENO"; then : |
Jari Aalto | 7117c2d | 2002-07-17 14:10:11 +0000 | [diff] [blame] | 13928 | ac_cv_var_tzname=yes |
| 13929 | else |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 13930 | ac_cv_var_tzname=no |
Jari Aalto | 7117c2d | 2002-07-17 14:10:11 +0000 | [diff] [blame] | 13931 | fi |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 13932 | rm -f core conftest.err conftest.$ac_objext \ |
| 13933 | conftest$ac_exeext conftest.$ac_ext |
Jari Aalto | 7117c2d | 2002-07-17 14:10:11 +0000 | [diff] [blame] | 13934 | fi |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 13935 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 13936 | $as_echo "$ac_cv_var_tzname" >&6; } |
Jari Aalto | 7117c2d | 2002-07-17 14:10:11 +0000 | [diff] [blame] | 13937 | if test $ac_cv_var_tzname = yes; then |
| 13938 | |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 13939 | $as_echo "#define HAVE_TZNAME 1" >>confdefs.h |
Jari Aalto | 7117c2d | 2002-07-17 14:10:11 +0000 | [diff] [blame] | 13940 | |
| 13941 | fi |
| 13942 | fi |
| 13943 | |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 13944 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timezone in sys/time.h and time.h" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 13945 | $as_echo_n "checking for struct timezone in sys/time.h and time.h... " >&6; } |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 13946 | if ${bash_cv_struct_timezone+:} false; then : |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 13947 | $as_echo_n "(cached) " >&6 |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 13948 | else |
| 13949 | |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 13950 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Jari Aalto | 0628567 | 2006-10-10 14:15:34 +0000 | [diff] [blame] | 13951 | /* end confdefs.h. */ |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 13952 | #include <sys/time.h> |
| 13953 | |
| 13954 | _ACEOF |
| 13955 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 13956 | $EGREP "struct timezone" >/dev/null 2>&1; then : |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 13957 | bash_cv_struct_timezone=yes |
| 13958 | else |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 13959 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Jari Aalto | 0628567 | 2006-10-10 14:15:34 +0000 | [diff] [blame] | 13960 | /* end confdefs.h. */ |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 13961 | #include <time.h> |
| 13962 | |
| 13963 | _ACEOF |
| 13964 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 13965 | $EGREP "struct timezone" >/dev/null 2>&1; then : |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 13966 | bash_cv_struct_timezone=yes |
| 13967 | else |
| 13968 | bash_cv_struct_timezone=no |
| 13969 | fi |
| 13970 | rm -f conftest* |
| 13971 | |
| 13972 | fi |
| 13973 | rm -f conftest* |
| 13974 | |
| 13975 | |
| 13976 | fi |
| 13977 | |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 13978 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_struct_timezone" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 13979 | $as_echo "$bash_cv_struct_timezone" >&6; } |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 13980 | if test $bash_cv_struct_timezone = yes; then |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 13981 | $as_echo "#define HAVE_STRUCT_TIMEZONE 1" >>confdefs.h |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 13982 | |
| 13983 | fi |
| 13984 | |
| 13985 | |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 13986 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for offset of exit status in return status from wait" >&5 |
Chet Ramey | 495aee4 | 2011-11-22 19:11:26 -0500 | [diff] [blame] | 13987 | $as_echo_n "checking for offset of exit status in return status from wait... " >&6; } |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 13988 | if ${bash_cv_wexitstatus_offset+:} false; then : |
Chet Ramey | 495aee4 | 2011-11-22 19:11:26 -0500 | [diff] [blame] | 13989 | $as_echo_n "(cached) " >&6 |
| 13990 | else |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 13991 | if test "$cross_compiling" = yes; then : |
| 13992 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot check WEXITSTATUS offset if cross compiling -- defaulting to 0" >&5 |
Chet Ramey | 495aee4 | 2011-11-22 19:11:26 -0500 | [diff] [blame] | 13993 | $as_echo "$as_me: WARNING: cannot check WEXITSTATUS offset if cross compiling -- defaulting to 0" >&2;} |
| 13994 | bash_cv_wexitstatus_offset=0 |
| 13995 | |
| 13996 | else |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 13997 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 13998 | /* end confdefs.h. */ |
Chet Ramey | 495aee4 | 2011-11-22 19:11:26 -0500 | [diff] [blame] | 13999 | |
| 14000 | #include <stdlib.h> |
| 14001 | #include <unistd.h> |
| 14002 | |
| 14003 | #include <sys/wait.h> |
| 14004 | |
| 14005 | main(c, v) |
| 14006 | int c; |
| 14007 | char **v; |
| 14008 | { |
| 14009 | pid_t pid, p; |
| 14010 | int s, i, n; |
| 14011 | |
| 14012 | s = 0; |
| 14013 | pid = fork(); |
| 14014 | if (pid == 0) |
| 14015 | exit (42); |
| 14016 | |
| 14017 | /* wait for the process */ |
| 14018 | p = wait(&s); |
| 14019 | if (p != pid) |
| 14020 | exit (255); |
| 14021 | |
| 14022 | /* crack s */ |
| 14023 | for (i = 0; i < (sizeof(s) - 8); i++) |
| 14024 | { |
| 14025 | n = (s >> i) & 0xff; |
| 14026 | if (n == 42) |
| 14027 | exit (i); |
| 14028 | } |
| 14029 | |
| 14030 | exit (254); |
| 14031 | } |
| 14032 | |
| 14033 | _ACEOF |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 14034 | if ac_fn_c_try_run "$LINENO"; then : |
Chet Ramey | 495aee4 | 2011-11-22 19:11:26 -0500 | [diff] [blame] | 14035 | bash_cv_wexitstatus_offset=0 |
| 14036 | else |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 14037 | bash_cv_wexitstatus_offset=$? |
Chet Ramey | 495aee4 | 2011-11-22 19:11:26 -0500 | [diff] [blame] | 14038 | fi |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 14039 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 14040 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Chet Ramey | 495aee4 | 2011-11-22 19:11:26 -0500 | [diff] [blame] | 14041 | fi |
| 14042 | |
Chet Ramey | 495aee4 | 2011-11-22 19:11:26 -0500 | [diff] [blame] | 14043 | fi |
| 14044 | |
| 14045 | if test "$bash_cv_wexitstatus_offset" -gt 32 ; then |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 14046 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: bad exit status from test program -- defaulting to 0" >&5 |
Chet Ramey | 495aee4 | 2011-11-22 19:11:26 -0500 | [diff] [blame] | 14047 | $as_echo "$as_me: WARNING: bad exit status from test program -- defaulting to 0" >&2;} |
| 14048 | bash_cv_wexitstatus_offset=0 |
| 14049 | fi |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 14050 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_wexitstatus_offset" >&5 |
Chet Ramey | 495aee4 | 2011-11-22 19:11:26 -0500 | [diff] [blame] | 14051 | $as_echo "$bash_cv_wexitstatus_offset" >&6; } |
| 14052 | |
| 14053 | cat >>confdefs.h <<_ACEOF |
| 14054 | #define WEXITSTATUS_OFFSET $bash_cv_wexitstatus_offset |
| 14055 | _ACEOF |
| 14056 | |
| 14057 | |
| 14058 | |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 14059 | |
| 14060 | |
| 14061 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <time.h>" >&5 |
| 14062 | $as_echo_n "checking for struct timespec in <time.h>... " >&6; } |
| 14063 | if ${bash_cv_sys_struct_timespec_in_time_h+:} false; then : |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 14064 | $as_echo_n "(cached) " >&6 |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 14065 | else |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 14066 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 14067 | /* end confdefs.h. */ |
| 14068 | #include <time.h> |
| 14069 | |
| 14070 | int |
| 14071 | main () |
| 14072 | { |
| 14073 | static struct timespec x; x.tv_sec = x.tv_nsec; |
| 14074 | ; |
| 14075 | return 0; |
| 14076 | } |
Jari Aalto | 0628567 | 2006-10-10 14:15:34 +0000 | [diff] [blame] | 14077 | _ACEOF |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 14078 | if ac_fn_c_try_compile "$LINENO"; then : |
| 14079 | bash_cv_sys_struct_timespec_in_time_h=yes |
| 14080 | else |
| 14081 | bash_cv_sys_struct_timespec_in_time_h=no |
| 14082 | fi |
| 14083 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 14084 | fi |
| 14085 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_sys_struct_timespec_in_time_h" >&5 |
| 14086 | $as_echo "$bash_cv_sys_struct_timespec_in_time_h" >&6; } |
| 14087 | |
| 14088 | HAVE_STRUCT_TIMESPEC=0 |
| 14089 | TIME_H_DEFINES_STRUCT_TIMESPEC=0 |
| 14090 | SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=0 |
| 14091 | PTHREAD_H_DEFINES_STRUCT_TIMESPEC=0 |
| 14092 | if test $bash_cv_sys_struct_timespec_in_time_h = yes; then |
| 14093 | $as_echo "#define HAVE_STRUCT_TIMESPEC 1" >>confdefs.h |
| 14094 | |
| 14095 | $as_echo "#define TIME_H_DEFINES_STRUCT_TIMESPEC 1" >>confdefs.h |
| 14096 | |
| 14097 | TIME_H_DEFINES_STRUCT_TIMESPEC=1 |
| 14098 | else |
| 14099 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <sys/time.h>" >&5 |
| 14100 | $as_echo_n "checking for struct timespec in <sys/time.h>... " >&6; } |
| 14101 | if ${bash_cv_sys_struct_timespec_in_sys_time_h+:} false; then : |
| 14102 | $as_echo_n "(cached) " >&6 |
| 14103 | else |
| 14104 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 14105 | /* end confdefs.h. */ |
| 14106 | #include <sys/time.h> |
| 14107 | |
| 14108 | int |
| 14109 | main () |
| 14110 | { |
| 14111 | static struct timespec x; x.tv_sec = x.tv_nsec; |
| 14112 | ; |
| 14113 | return 0; |
| 14114 | } |
| 14115 | _ACEOF |
| 14116 | if ac_fn_c_try_compile "$LINENO"; then : |
| 14117 | bash_cv_sys_struct_timespec_in_sys_time_h=yes |
| 14118 | else |
| 14119 | bash_cv_sys_struct_timespec_in_sys_time_h=no |
| 14120 | fi |
| 14121 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 14122 | fi |
| 14123 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_sys_struct_timespec_in_sys_time_h" >&5 |
| 14124 | $as_echo "$bash_cv_sys_struct_timespec_in_sys_time_h" >&6; } |
| 14125 | if test $bash_cv_sys_struct_timespec_in_sys_time_h = yes; then |
| 14126 | SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=1 |
| 14127 | $as_echo "#define HAVE_STRUCT_TIMESPEC 1" >>confdefs.h |
| 14128 | |
| 14129 | $as_echo "#define SYS_TIME_H_DEFINES_STRUCT_TIMESPEC 1" >>confdefs.h |
| 14130 | |
| 14131 | else |
| 14132 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <pthread.h>" >&5 |
| 14133 | $as_echo_n "checking for struct timespec in <pthread.h>... " >&6; } |
| 14134 | if ${bash_cv_sys_struct_timespec_in_pthread_h+:} false; then : |
| 14135 | $as_echo_n "(cached) " >&6 |
| 14136 | else |
| 14137 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 14138 | /* end confdefs.h. */ |
| 14139 | #include <pthread.h> |
| 14140 | |
| 14141 | int |
| 14142 | main () |
| 14143 | { |
| 14144 | static struct timespec x; x.tv_sec = x.tv_nsec; |
| 14145 | ; |
| 14146 | return 0; |
| 14147 | } |
| 14148 | _ACEOF |
| 14149 | if ac_fn_c_try_compile "$LINENO"; then : |
| 14150 | bash_cv_sys_struct_timespec_in_pthread_h=yes |
| 14151 | else |
| 14152 | bash_cv_sys_struct_timespec_in_pthread_h=no |
| 14153 | fi |
| 14154 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 14155 | fi |
| 14156 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_sys_struct_timespec_in_pthread_h" >&5 |
| 14157 | $as_echo "$bash_cv_sys_struct_timespec_in_pthread_h" >&6; } |
| 14158 | if test $bash_cv_sys_struct_timespec_in_pthread_h = yes; then |
| 14159 | PTHREAD_H_DEFINES_STRUCT_TIMESPEC=1 |
| 14160 | $as_echo "#define HAVE_STRUCT_TIMESPEC 1" >>confdefs.h |
| 14161 | |
| 14162 | $as_echo "#define PTHREAD_H_DEFINES_STRUCT_TIMESPEC 1" >>confdefs.h |
| 14163 | |
| 14164 | fi |
| 14165 | fi |
| 14166 | fi |
| 14167 | |
| 14168 | |
| 14169 | |
| 14170 | |
| 14171 | |
| 14172 | |
| 14173 | |
| 14174 | |
| 14175 | |
| 14176 | ac_fn_c_check_member "$LINENO" "struct stat" "st_atim.tv_nsec" "ac_cv_member_struct_stat_st_atim_tv_nsec" "#include <sys/types.h> |
| 14177 | #include <sys/stat.h> |
| 14178 | " |
| 14179 | if test "x$ac_cv_member_struct_stat_st_atim_tv_nsec" = xyes; then : |
| 14180 | |
| 14181 | cat >>confdefs.h <<_ACEOF |
| 14182 | #define HAVE_STRUCT_STAT_ST_ATIM_TV_NSEC 1 |
| 14183 | _ACEOF |
| 14184 | |
| 14185 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct stat.st_atim is of type struct timespec" >&5 |
| 14186 | $as_echo_n "checking whether struct stat.st_atim is of type struct timespec... " >&6; } |
| 14187 | if ${ac_cv_typeof_struct_stat_st_atim_is_struct_timespec+:} false; then : |
| 14188 | $as_echo_n "(cached) " >&6 |
| 14189 | else |
| 14190 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 14191 | /* end confdefs.h. */ |
| 14192 | |
| 14193 | #include <sys/types.h> |
| 14194 | #include <sys/stat.h> |
| 14195 | #if HAVE_SYS_TIME_H |
| 14196 | # include <sys/time.h> |
| 14197 | #endif |
| 14198 | #include <time.h> |
| 14199 | struct timespec ts; |
| 14200 | struct stat st; |
| 14201 | |
| 14202 | int |
| 14203 | main () |
| 14204 | { |
| 14205 | |
| 14206 | st.st_atim = ts; |
| 14207 | |
| 14208 | ; |
| 14209 | return 0; |
| 14210 | } |
| 14211 | _ACEOF |
| 14212 | if ac_fn_c_try_compile "$LINENO"; then : |
| 14213 | ac_cv_typeof_struct_stat_st_atim_is_struct_timespec=yes |
| 14214 | else |
| 14215 | ac_cv_typeof_struct_stat_st_atim_is_struct_timespec=no |
| 14216 | fi |
| 14217 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 14218 | fi |
| 14219 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_typeof_struct_stat_st_atim_is_struct_timespec" >&5 |
| 14220 | $as_echo "$ac_cv_typeof_struct_stat_st_atim_is_struct_timespec" >&6; } |
| 14221 | if test $ac_cv_typeof_struct_stat_st_atim_is_struct_timespec = yes; then |
| 14222 | |
| 14223 | $as_echo "#define TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC 1" >>confdefs.h |
| 14224 | |
| 14225 | fi |
| 14226 | else |
| 14227 | ac_fn_c_check_member "$LINENO" "struct stat" "st_atimespec.tv_nsec" "ac_cv_member_struct_stat_st_atimespec_tv_nsec" "#include <sys/types.h> |
| 14228 | #include <sys/stat.h> |
| 14229 | " |
| 14230 | if test "x$ac_cv_member_struct_stat_st_atimespec_tv_nsec" = xyes; then : |
| 14231 | |
| 14232 | cat >>confdefs.h <<_ACEOF |
| 14233 | #define HAVE_STRUCT_STAT_ST_ATIMESPEC_TV_NSEC 1 |
| 14234 | _ACEOF |
| 14235 | |
| 14236 | |
| 14237 | else |
| 14238 | ac_fn_c_check_member "$LINENO" "struct stat" "st_atimensec" "ac_cv_member_struct_stat_st_atimensec" "#include <sys/types.h> |
| 14239 | #include <sys/stat.h> |
| 14240 | " |
| 14241 | if test "x$ac_cv_member_struct_stat_st_atimensec" = xyes; then : |
| 14242 | |
| 14243 | cat >>confdefs.h <<_ACEOF |
| 14244 | #define HAVE_STRUCT_STAT_ST_ATIMENSEC 1 |
| 14245 | _ACEOF |
| 14246 | |
| 14247 | |
| 14248 | else |
| 14249 | ac_fn_c_check_member "$LINENO" "struct stat" "st_atim.st__tim.tv_nsec" "ac_cv_member_struct_stat_st_atim_st__tim_tv_nsec" "#include <sys/types.h> |
| 14250 | #include <sys/stat.h> |
| 14251 | " |
| 14252 | if test "x$ac_cv_member_struct_stat_st_atim_st__tim_tv_nsec" = xyes; then : |
| 14253 | |
| 14254 | cat >>confdefs.h <<_ACEOF |
| 14255 | #define HAVE_STRUCT_STAT_ST_ATIM_ST__TIM_TV_NSEC 1 |
| 14256 | _ACEOF |
| 14257 | |
| 14258 | |
| 14259 | fi |
| 14260 | |
| 14261 | fi |
| 14262 | |
| 14263 | fi |
| 14264 | |
| 14265 | fi |
| 14266 | |
| 14267 | |
| 14268 | |
| 14269 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the existence of strsignal" >&5 |
| 14270 | $as_echo_n "checking for the existence of strsignal... " >&6; } |
| 14271 | if ${bash_cv_have_strsignal+:} false; then : |
| 14272 | $as_echo_n "(cached) " >&6 |
| 14273 | else |
| 14274 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Jari Aalto | 0628567 | 2006-10-10 14:15:34 +0000 | [diff] [blame] | 14275 | /* end confdefs.h. */ |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 14276 | #include <sys/types.h> |
| 14277 | #include <signal.h> |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 14278 | int |
| 14279 | main () |
| 14280 | { |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 14281 | char *s = (char *)strsignal(2); |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 14282 | ; |
| 14283 | return 0; |
| 14284 | } |
| 14285 | _ACEOF |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 14286 | if ac_fn_c_try_link "$LINENO"; then : |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 14287 | bash_cv_have_strsignal=yes |
| 14288 | else |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 14289 | bash_cv_have_strsignal=no |
| 14290 | fi |
| 14291 | rm -f core conftest.err conftest.$ac_objext \ |
| 14292 | conftest$ac_exeext conftest.$ac_ext |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 14293 | fi |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 14294 | |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 14295 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_have_strsignal" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 14296 | $as_echo "$bash_cv_have_strsignal" >&6; } |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 14297 | if test $bash_cv_have_strsignal = yes; then |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 14298 | $as_echo "#define HAVE_STRSIGNAL 1" >>confdefs.h |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 14299 | |
| 14300 | fi |
| 14301 | |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 14302 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if opendir() opens non-directories" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 14303 | $as_echo_n "checking if opendir() opens non-directories... " >&6; } |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 14304 | if ${bash_cv_opendir_not_robust+:} false; then : |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 14305 | $as_echo_n "(cached) " >&6 |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 14306 | else |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 14307 | if test "$cross_compiling" = yes; then : |
| 14308 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot check opendir if cross compiling -- defaulting to no" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 14309 | $as_echo "$as_me: WARNING: cannot check opendir if cross compiling -- defaulting to no" >&2;} |
Jari Aalto | cce855b | 1998-04-17 19:52:44 +0000 | [diff] [blame] | 14310 | bash_cv_opendir_not_robust=no |
| 14311 | |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 14312 | else |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 14313 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Jari Aalto | 0628567 | 2006-10-10 14:15:34 +0000 | [diff] [blame] | 14314 | /* end confdefs.h. */ |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 14315 | |
| 14316 | #include <stdio.h> |
| 14317 | #include <sys/types.h> |
| 14318 | #include <fcntl.h> |
| 14319 | #ifdef HAVE_UNISTD_H |
| 14320 | # include <unistd.h> |
| 14321 | #endif /* HAVE_UNISTD_H */ |
| 14322 | #if defined(HAVE_DIRENT_H) |
| 14323 | # include <dirent.h> |
| 14324 | #else |
| 14325 | # define dirent direct |
| 14326 | # ifdef HAVE_SYS_NDIR_H |
| 14327 | # include <sys/ndir.h> |
| 14328 | # endif /* SYSNDIR */ |
| 14329 | # ifdef HAVE_SYS_DIR_H |
| 14330 | # include <sys/dir.h> |
| 14331 | # endif /* SYSDIR */ |
| 14332 | # ifdef HAVE_NDIR_H |
| 14333 | # include <ndir.h> |
| 14334 | # endif |
| 14335 | #endif /* HAVE_DIRENT_H */ |
| 14336 | main() |
| 14337 | { |
| 14338 | DIR *dir; |
Jari Aalto | bb70624 | 2000-03-17 21:46:59 +0000 | [diff] [blame] | 14339 | int fd, err; |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 14340 | err = mkdir("bash-aclocal", 0700); |
Jari Aalto | bb70624 | 2000-03-17 21:46:59 +0000 | [diff] [blame] | 14341 | if (err < 0) { |
| 14342 | perror("mkdir"); |
| 14343 | exit(1); |
| 14344 | } |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 14345 | unlink("bash-aclocal/not_a_directory"); |
| 14346 | fd = open("bash-aclocal/not_a_directory", O_WRONLY|O_CREAT|O_EXCL, 0666); |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 14347 | write(fd, "\n", 1); |
| 14348 | close(fd); |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 14349 | dir = opendir("bash-aclocal/not_a_directory"); |
| 14350 | unlink("bash-aclocal/not_a_directory"); |
| 14351 | rmdir("bash-aclocal"); |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 14352 | exit (dir == 0); |
| 14353 | } |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 14354 | _ACEOF |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 14355 | if ac_fn_c_try_run "$LINENO"; then : |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 14356 | bash_cv_opendir_not_robust=yes |
| 14357 | else |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 14358 | bash_cv_opendir_not_robust=no |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 14359 | fi |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 14360 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 14361 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 14362 | fi |
| 14363 | |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 14364 | fi |
| 14365 | |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 14366 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_opendir_not_robust" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 14367 | $as_echo "$bash_cv_opendir_not_robust" >&6; } |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 14368 | if test $bash_cv_opendir_not_robust = yes; then |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 14369 | $as_echo "#define OPENDIR_NOT_ROBUST 1" >>confdefs.h |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 14370 | |
| 14371 | fi |
| 14372 | |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 14373 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ulimit can substitute for getdtablesize" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 14374 | $as_echo_n "checking whether ulimit can substitute for getdtablesize... " >&6; } |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 14375 | if ${bash_cv_ulimit_maxfds+:} false; then : |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 14376 | $as_echo_n "(cached) " >&6 |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 14377 | else |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 14378 | if test "$cross_compiling" = yes; then : |
| 14379 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot check ulimit if cross compiling -- defaulting to no" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 14380 | $as_echo "$as_me: WARNING: cannot check ulimit if cross compiling -- defaulting to no" >&2;} |
Jari Aalto | cce855b | 1998-04-17 19:52:44 +0000 | [diff] [blame] | 14381 | bash_cv_ulimit_maxfds=no |
| 14382 | |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 14383 | else |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 14384 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Jari Aalto | 0628567 | 2006-10-10 14:15:34 +0000 | [diff] [blame] | 14385 | /* end confdefs.h. */ |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 14386 | |
| 14387 | main() |
| 14388 | { |
| 14389 | long maxfds = ulimit(4, 0L); |
| 14390 | exit (maxfds == -1L); |
| 14391 | } |
| 14392 | |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 14393 | _ACEOF |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 14394 | if ac_fn_c_try_run "$LINENO"; then : |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 14395 | bash_cv_ulimit_maxfds=yes |
| 14396 | else |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 14397 | bash_cv_ulimit_maxfds=no |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 14398 | fi |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 14399 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 14400 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 14401 | fi |
| 14402 | |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 14403 | fi |
| 14404 | |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 14405 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_ulimit_maxfds" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 14406 | $as_echo "$bash_cv_ulimit_maxfds" >&6; } |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 14407 | if test $bash_cv_ulimit_maxfds = yes; then |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 14408 | $as_echo "#define ULIMIT_MAXFDS 1" >>confdefs.h |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 14409 | |
| 14410 | fi |
| 14411 | |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 14412 | |
| 14413 | |
| 14414 | |
| 14415 | |
| 14416 | |
| 14417 | |
| 14418 | |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 14419 | ac_fn_c_check_decl "$LINENO" "fpurge" "ac_cv_have_decl_fpurge" "#include <stdio.h> |
| 14420 | " |
| 14421 | if test "x$ac_cv_have_decl_fpurge" = xyes; then : |
| 14422 | ac_have_decl=1 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 14423 | else |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 14424 | ac_have_decl=0 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 14425 | fi |
| 14426 | |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 14427 | cat >>confdefs.h <<_ACEOF |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 14428 | #define HAVE_DECL_FPURGE $ac_have_decl |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 14429 | _ACEOF |
| 14430 | |
| 14431 | |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 14432 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if getenv can be redefined" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 14433 | $as_echo_n "checking to see if getenv can be redefined... " >&6; } |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 14434 | if ${bash_cv_getenv_redef+:} false; then : |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 14435 | $as_echo_n "(cached) " >&6 |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 14436 | else |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 14437 | if test "$cross_compiling" = yes; then : |
| 14438 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot check getenv redefinition if cross compiling -- defaulting to yes" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 14439 | $as_echo "$as_me: WARNING: cannot check getenv redefinition if cross compiling -- defaulting to yes" >&2;} |
Jari Aalto | cce855b | 1998-04-17 19:52:44 +0000 | [diff] [blame] | 14440 | bash_cv_getenv_redef=yes |
| 14441 | |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 14442 | else |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 14443 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Jari Aalto | 0628567 | 2006-10-10 14:15:34 +0000 | [diff] [blame] | 14444 | /* end confdefs.h. */ |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 14445 | |
| 14446 | #ifdef HAVE_UNISTD_H |
| 14447 | # include <unistd.h> |
| 14448 | #endif |
| 14449 | #ifndef __STDC__ |
| 14450 | # ifndef const |
| 14451 | # define const |
| 14452 | # endif |
| 14453 | #endif |
| 14454 | char * |
| 14455 | getenv (name) |
| 14456 | #if defined (__linux__) || defined (__bsdi__) || defined (convex) |
| 14457 | const char *name; |
| 14458 | #else |
| 14459 | char const *name; |
| 14460 | #endif /* !__linux__ && !__bsdi__ && !convex */ |
| 14461 | { |
| 14462 | return "42"; |
| 14463 | } |
| 14464 | main() |
| 14465 | { |
| 14466 | char *s; |
| 14467 | /* The next allows this program to run, but does not allow bash to link |
| 14468 | when it redefines getenv. I'm not really interested in figuring out |
| 14469 | why not. */ |
| 14470 | #if defined (NeXT) |
| 14471 | exit(1); |
| 14472 | #endif |
| 14473 | s = getenv("ABCDE"); |
| 14474 | exit(s == 0); /* force optimizer to leave getenv in */ |
| 14475 | } |
| 14476 | |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 14477 | _ACEOF |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 14478 | if ac_fn_c_try_run "$LINENO"; then : |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 14479 | bash_cv_getenv_redef=yes |
| 14480 | else |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 14481 | bash_cv_getenv_redef=no |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 14482 | fi |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 14483 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 14484 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 14485 | fi |
| 14486 | |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 14487 | fi |
| 14488 | |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 14489 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_getenv_redef" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 14490 | $as_echo "$bash_cv_getenv_redef" >&6; } |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 14491 | if test $bash_cv_getenv_redef = yes; then |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 14492 | $as_echo "#define CAN_REDEFINE_GETENV 1" >>confdefs.h |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 14493 | |
| 14494 | fi |
| 14495 | |
Jari Aalto | 7117c2d | 2002-07-17 14:10:11 +0000 | [diff] [blame] | 14496 | if test "$ac_cv_func_getcwd" = "yes"; then |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 14497 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getcwd() will dynamically allocate memory with 0 size" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 14498 | $as_echo_n "checking if getcwd() will dynamically allocate memory with 0 size... " >&6; } |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 14499 | if ${bash_cv_getcwd_malloc+:} false; then : |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 14500 | $as_echo_n "(cached) " >&6 |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 14501 | else |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 14502 | if test "$cross_compiling" = yes; then : |
| 14503 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot check whether getcwd allocates memory when cross-compiling -- defaulting to no" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 14504 | $as_echo "$as_me: WARNING: cannot check whether getcwd allocates memory when cross-compiling -- defaulting to no" >&2;} |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 14505 | bash_cv_getcwd_malloc=no |
Jari Aalto | cce855b | 1998-04-17 19:52:44 +0000 | [diff] [blame] | 14506 | |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 14507 | else |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 14508 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Jari Aalto | 0628567 | 2006-10-10 14:15:34 +0000 | [diff] [blame] | 14509 | /* end confdefs.h. */ |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 14510 | |
| 14511 | #include <stdio.h> |
| 14512 | #ifdef HAVE_UNISTD_H |
| 14513 | #include <unistd.h> |
| 14514 | #endif |
| 14515 | |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 14516 | main() |
| 14517 | { |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 14518 | char *xpwd; |
| 14519 | xpwd = getcwd(0, 0); |
| 14520 | exit (xpwd == 0); |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 14521 | } |
| 14522 | |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 14523 | _ACEOF |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 14524 | if ac_fn_c_try_run "$LINENO"; then : |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 14525 | bash_cv_getcwd_malloc=yes |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 14526 | else |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 14527 | bash_cv_getcwd_malloc=no |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 14528 | fi |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 14529 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 14530 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 14531 | fi |
| 14532 | |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 14533 | fi |
| 14534 | |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 14535 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_getcwd_malloc" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 14536 | $as_echo "$bash_cv_getcwd_malloc" >&6; } |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 14537 | if test $bash_cv_getcwd_malloc = no; then |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 14538 | $as_echo "#define GETCWD_BROKEN 1" >>confdefs.h |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 14539 | |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 14540 | case " $LIBOBJS " in |
Jari Aalto | 0628567 | 2006-10-10 14:15:34 +0000 | [diff] [blame] | 14541 | *" getcwd.$ac_objext "* ) ;; |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 14542 | *) LIBOBJS="$LIBOBJS getcwd.$ac_objext" |
| 14543 | ;; |
Jari Aalto | 0628567 | 2006-10-10 14:15:34 +0000 | [diff] [blame] | 14544 | esac |
| 14545 | |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 14546 | fi |
| 14547 | |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 14548 | fi |
| 14549 | |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 14550 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for presence of POSIX-style sigsetjmp/siglongjmp" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 14551 | $as_echo_n "checking for presence of POSIX-style sigsetjmp/siglongjmp... " >&6; } |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 14552 | if ${bash_cv_func_sigsetjmp+:} false; then : |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 14553 | $as_echo_n "(cached) " >&6 |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 14554 | else |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 14555 | if test "$cross_compiling" = yes; then : |
| 14556 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot check for sigsetjmp/siglongjmp if cross-compiling -- defaulting to missing" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 14557 | $as_echo "$as_me: WARNING: cannot check for sigsetjmp/siglongjmp if cross-compiling -- defaulting to missing" >&2;} |
Jari Aalto | cce855b | 1998-04-17 19:52:44 +0000 | [diff] [blame] | 14558 | bash_cv_func_sigsetjmp=missing |
| 14559 | |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 14560 | else |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 14561 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Jari Aalto | 0628567 | 2006-10-10 14:15:34 +0000 | [diff] [blame] | 14562 | /* end confdefs.h. */ |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 14563 | |
| 14564 | #ifdef HAVE_UNISTD_H |
| 14565 | #include <unistd.h> |
| 14566 | #endif |
| 14567 | #include <sys/types.h> |
| 14568 | #include <signal.h> |
| 14569 | #include <setjmp.h> |
| 14570 | |
| 14571 | main() |
| 14572 | { |
| 14573 | #if !defined (_POSIX_VERSION) || !defined (HAVE_POSIX_SIGNALS) |
| 14574 | exit (1); |
| 14575 | #else |
| 14576 | |
| 14577 | int code; |
| 14578 | sigset_t set, oset; |
| 14579 | sigjmp_buf xx; |
| 14580 | |
| 14581 | /* get the mask */ |
| 14582 | sigemptyset(&set); |
| 14583 | sigemptyset(&oset); |
| 14584 | sigprocmask(SIG_BLOCK, (sigset_t *)NULL, &set); |
| 14585 | sigprocmask(SIG_BLOCK, (sigset_t *)NULL, &oset); |
| 14586 | |
| 14587 | /* save it */ |
| 14588 | code = sigsetjmp(xx, 1); |
| 14589 | if (code) |
| 14590 | exit(0); /* could get sigmask and compare to oset here. */ |
| 14591 | |
| 14592 | /* change it */ |
| 14593 | sigaddset(&set, SIGINT); |
| 14594 | sigprocmask(SIG_BLOCK, &set, (sigset_t *)NULL); |
| 14595 | |
| 14596 | /* and siglongjmp */ |
| 14597 | siglongjmp(xx, 10); |
| 14598 | exit(1); |
| 14599 | #endif |
| 14600 | } |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 14601 | _ACEOF |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 14602 | if ac_fn_c_try_run "$LINENO"; then : |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 14603 | bash_cv_func_sigsetjmp=present |
| 14604 | else |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 14605 | bash_cv_func_sigsetjmp=missing |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 14606 | fi |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 14607 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 14608 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 14609 | fi |
| 14610 | |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 14611 | fi |
| 14612 | |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 14613 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_func_sigsetjmp" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 14614 | $as_echo "$bash_cv_func_sigsetjmp" >&6; } |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 14615 | if test $bash_cv_func_sigsetjmp = present; then |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 14616 | $as_echo "#define HAVE_POSIX_SIGSETJMP 1" >>confdefs.h |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 14617 | |
| 14618 | fi |
| 14619 | |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 14620 | |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 14621 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether or not strcoll and strcmp differ" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 14622 | $as_echo_n "checking whether or not strcoll and strcmp differ... " >&6; } |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 14623 | if ${bash_cv_func_strcoll_broken+:} false; then : |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 14624 | $as_echo_n "(cached) " >&6 |
Jari Aalto | d166f04 | 1997-06-05 14:59:13 +0000 | [diff] [blame] | 14625 | else |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 14626 | if test "$cross_compiling" = yes; then : |
| 14627 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot check strcoll if cross compiling -- defaulting to no" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 14628 | $as_echo "$as_me: WARNING: cannot check strcoll if cross compiling -- defaulting to no" >&2;} |
Jari Aalto | cce855b | 1998-04-17 19:52:44 +0000 | [diff] [blame] | 14629 | bash_cv_func_strcoll_broken=no |
| 14630 | |
Jari Aalto | d166f04 | 1997-06-05 14:59:13 +0000 | [diff] [blame] | 14631 | else |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 14632 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Jari Aalto | 0628567 | 2006-10-10 14:15:34 +0000 | [diff] [blame] | 14633 | /* end confdefs.h. */ |
Jari Aalto | d166f04 | 1997-06-05 14:59:13 +0000 | [diff] [blame] | 14634 | |
| 14635 | #include <stdio.h> |
| 14636 | #if defined (HAVE_LOCALE_H) |
| 14637 | #include <locale.h> |
| 14638 | #endif |
| 14639 | |
| 14640 | main(c, v) |
| 14641 | int c; |
| 14642 | char *v[]; |
| 14643 | { |
| 14644 | int r1, r2; |
| 14645 | char *deflocale, *defcoll; |
| 14646 | |
| 14647 | #ifdef HAVE_SETLOCALE |
| 14648 | deflocale = setlocale(LC_ALL, ""); |
| 14649 | defcoll = setlocale(LC_COLLATE, ""); |
| 14650 | #endif |
| 14651 | |
| 14652 | #ifdef HAVE_STRCOLL |
| 14653 | /* These two values are taken from tests/glob-test. */ |
| 14654 | r1 = strcoll("abd", "aXd"); |
| 14655 | #else |
| 14656 | r1 = 0; |
| 14657 | #endif |
| 14658 | r2 = strcmp("abd", "aXd"); |
| 14659 | |
| 14660 | /* These two should both be greater than 0. It is permissible for |
| 14661 | a system to return different values, as long as the sign is the |
| 14662 | same. */ |
| 14663 | |
| 14664 | /* Exit with 1 (failure) if these two values are both > 0, since |
| 14665 | this tests whether strcoll(3) is broken with respect to strcmp(3) |
| 14666 | in the default locale. */ |
| 14667 | exit (r1 > 0 && r2 > 0); |
| 14668 | } |
| 14669 | |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 14670 | _ACEOF |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 14671 | if ac_fn_c_try_run "$LINENO"; then : |
Jari Aalto | d166f04 | 1997-06-05 14:59:13 +0000 | [diff] [blame] | 14672 | bash_cv_func_strcoll_broken=yes |
| 14673 | else |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 14674 | bash_cv_func_strcoll_broken=no |
Jari Aalto | d166f04 | 1997-06-05 14:59:13 +0000 | [diff] [blame] | 14675 | fi |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 14676 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 14677 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Jari Aalto | d166f04 | 1997-06-05 14:59:13 +0000 | [diff] [blame] | 14678 | fi |
| 14679 | |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 14680 | fi |
| 14681 | |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 14682 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_func_strcoll_broken" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 14683 | $as_echo "$bash_cv_func_strcoll_broken" >&6; } |
Jari Aalto | d166f04 | 1997-06-05 14:59:13 +0000 | [diff] [blame] | 14684 | if test $bash_cv_func_strcoll_broken = yes; then |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 14685 | $as_echo "#define STRCOLL_BROKEN 1" >>confdefs.h |
Jari Aalto | d166f04 | 1997-06-05 14:59:13 +0000 | [diff] [blame] | 14686 | |
| 14687 | fi |
| 14688 | |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 14689 | |
| 14690 | |
Chet Ramey | 0001803 | 2011-11-21 20:51:19 -0500 | [diff] [blame] | 14691 | |
| 14692 | |
Chet Ramey | 0001803 | 2011-11-21 20:51:19 -0500 | [diff] [blame] | 14693 | if test X$ac_cv_func_snprintf = Xyes; then |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 14694 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for standard-conformant snprintf" >&5 |
Chet Ramey | 0001803 | 2011-11-21 20:51:19 -0500 | [diff] [blame] | 14695 | $as_echo_n "checking for standard-conformant snprintf... " >&6; } |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 14696 | if ${bash_cv_func_snprintf+:} false; then : |
Chet Ramey | 0001803 | 2011-11-21 20:51:19 -0500 | [diff] [blame] | 14697 | $as_echo_n "(cached) " >&6 |
| 14698 | else |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 14699 | if test "$cross_compiling" = yes; then : |
| 14700 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot check standard snprintf if cross-compiling" >&5 |
Chet Ramey | 0001803 | 2011-11-21 20:51:19 -0500 | [diff] [blame] | 14701 | $as_echo "$as_me: WARNING: cannot check standard snprintf if cross-compiling" >&2;} |
| 14702 | bash_cv_func_snprintf=yes |
| 14703 | |
| 14704 | else |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 14705 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Chet Ramey | 0001803 | 2011-11-21 20:51:19 -0500 | [diff] [blame] | 14706 | /* end confdefs.h. */ |
| 14707 | |
| 14708 | #include <stdio.h> |
| 14709 | |
| 14710 | main() |
| 14711 | { |
| 14712 | int n; |
| 14713 | n = snprintf (0, 0, "%s", "0123456"); |
| 14714 | exit(n != 7); |
| 14715 | } |
| 14716 | |
| 14717 | _ACEOF |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 14718 | if ac_fn_c_try_run "$LINENO"; then : |
Chet Ramey | 0001803 | 2011-11-21 20:51:19 -0500 | [diff] [blame] | 14719 | bash_cv_func_snprintf=yes |
| 14720 | else |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 14721 | bash_cv_func_snprintf=no |
Chet Ramey | 0001803 | 2011-11-21 20:51:19 -0500 | [diff] [blame] | 14722 | fi |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 14723 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 14724 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Chet Ramey | 0001803 | 2011-11-21 20:51:19 -0500 | [diff] [blame] | 14725 | fi |
| 14726 | |
Chet Ramey | 0001803 | 2011-11-21 20:51:19 -0500 | [diff] [blame] | 14727 | fi |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 14728 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_func_snprintf" >&5 |
Chet Ramey | 0001803 | 2011-11-21 20:51:19 -0500 | [diff] [blame] | 14729 | $as_echo "$bash_cv_func_snprintf" >&6; } |
| 14730 | if test $bash_cv_func_snprintf = no; then |
| 14731 | ac_cv_func_snprintf=no |
| 14732 | fi |
| 14733 | fi |
| 14734 | if test $ac_cv_func_snprintf = no; then |
| 14735 | |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 14736 | $as_echo "#define HAVE_SNPRINTF 0" >>confdefs.h |
Chet Ramey | 0001803 | 2011-11-21 20:51:19 -0500 | [diff] [blame] | 14737 | |
| 14738 | fi |
| 14739 | |
| 14740 | |
| 14741 | |
| 14742 | |
| 14743 | |
Chet Ramey | 0001803 | 2011-11-21 20:51:19 -0500 | [diff] [blame] | 14744 | if test X$ac_cv_func_vsnprintf = Xyes; then |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 14745 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for standard-conformant vsnprintf" >&5 |
Chet Ramey | 0001803 | 2011-11-21 20:51:19 -0500 | [diff] [blame] | 14746 | $as_echo_n "checking for standard-conformant vsnprintf... " >&6; } |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 14747 | if ${bash_cv_func_vsnprintf+:} false; then : |
Chet Ramey | 0001803 | 2011-11-21 20:51:19 -0500 | [diff] [blame] | 14748 | $as_echo_n "(cached) " >&6 |
| 14749 | else |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 14750 | if test "$cross_compiling" = yes; then : |
| 14751 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot check standard vsnprintf if cross-compiling" >&5 |
Chet Ramey | 0001803 | 2011-11-21 20:51:19 -0500 | [diff] [blame] | 14752 | $as_echo "$as_me: WARNING: cannot check standard vsnprintf if cross-compiling" >&2;} |
| 14753 | bash_cv_func_vsnprintf=yes |
| 14754 | |
| 14755 | else |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 14756 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Chet Ramey | 0001803 | 2011-11-21 20:51:19 -0500 | [diff] [blame] | 14757 | /* end confdefs.h. */ |
| 14758 | |
| 14759 | #if HAVE_STDARG_H |
| 14760 | #include <stdarg.h> |
| 14761 | #else |
| 14762 | #include <varargs.h> |
| 14763 | #endif |
| 14764 | #include <stdio.h> |
| 14765 | #include <stdlib.h> |
| 14766 | |
| 14767 | static int |
| 14768 | #if HAVE_STDARG_H |
| 14769 | foo(const char *fmt, ...) |
| 14770 | #else |
| 14771 | foo(format, va_alist) |
| 14772 | const char *format; |
| 14773 | va_dcl |
| 14774 | #endif |
| 14775 | { |
| 14776 | va_list args; |
| 14777 | int n; |
| 14778 | |
| 14779 | #if HAVE_STDARG_H |
| 14780 | va_start(args, fmt); |
| 14781 | #else |
| 14782 | va_start(args); |
| 14783 | #endif |
| 14784 | n = vsnprintf(0, 0, fmt, args); |
| 14785 | va_end (args); |
| 14786 | return n; |
| 14787 | } |
| 14788 | |
| 14789 | main() |
| 14790 | { |
| 14791 | int n; |
| 14792 | n = foo("%s", "0123456"); |
| 14793 | exit(n != 7); |
| 14794 | } |
| 14795 | |
| 14796 | _ACEOF |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 14797 | if ac_fn_c_try_run "$LINENO"; then : |
Chet Ramey | 0001803 | 2011-11-21 20:51:19 -0500 | [diff] [blame] | 14798 | bash_cv_func_vsnprintf=yes |
| 14799 | else |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 14800 | bash_cv_func_vsnprintf=no |
Chet Ramey | 0001803 | 2011-11-21 20:51:19 -0500 | [diff] [blame] | 14801 | fi |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 14802 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 14803 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Chet Ramey | 0001803 | 2011-11-21 20:51:19 -0500 | [diff] [blame] | 14804 | fi |
| 14805 | |
Chet Ramey | 0001803 | 2011-11-21 20:51:19 -0500 | [diff] [blame] | 14806 | fi |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 14807 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_func_vsnprintf" >&5 |
Chet Ramey | 0001803 | 2011-11-21 20:51:19 -0500 | [diff] [blame] | 14808 | $as_echo "$bash_cv_func_vsnprintf" >&6; } |
| 14809 | if test $bash_cv_func_vsnprintf = no; then |
| 14810 | ac_cv_func_vsnprintf=no |
| 14811 | fi |
| 14812 | fi |
| 14813 | if test $ac_cv_func_vsnprintf = no; then |
| 14814 | |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 14815 | $as_echo "#define HAVE_VSNPRINTF 0" >>confdefs.h |
Chet Ramey | 0001803 | 2011-11-21 20:51:19 -0500 | [diff] [blame] | 14816 | |
| 14817 | fi |
| 14818 | |
| 14819 | |
| 14820 | |
Jari Aalto | 7117c2d | 2002-07-17 14:10:11 +0000 | [diff] [blame] | 14821 | if test "$ac_cv_func_putenv" = "yes"; then |
| 14822 | |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 14823 | |
| 14824 | |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 14825 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for standard-conformant putenv declaration" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 14826 | $as_echo_n "checking for standard-conformant putenv declaration... " >&6; } |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 14827 | if ${bash_cv_std_putenv+:} false; then : |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 14828 | $as_echo_n "(cached) " >&6 |
Jari Aalto | 7117c2d | 2002-07-17 14:10:11 +0000 | [diff] [blame] | 14829 | else |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 14830 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Jari Aalto | 0628567 | 2006-10-10 14:15:34 +0000 | [diff] [blame] | 14831 | /* end confdefs.h. */ |
Jari Aalto | 7117c2d | 2002-07-17 14:10:11 +0000 | [diff] [blame] | 14832 | |
| 14833 | #if STDC_HEADERS |
| 14834 | #include <stdlib.h> |
| 14835 | #include <stddef.h> |
| 14836 | #endif |
| 14837 | #ifndef __STDC__ |
| 14838 | # ifndef const |
| 14839 | # define const |
| 14840 | # endif |
| 14841 | #endif |
| 14842 | #ifdef PROTOTYPES |
| 14843 | extern int putenv (char *); |
| 14844 | #else |
| 14845 | extern int putenv (); |
| 14846 | #endif |
| 14847 | |
| 14848 | int |
| 14849 | main () |
| 14850 | { |
| 14851 | return (putenv == 0); |
| 14852 | ; |
| 14853 | return 0; |
| 14854 | } |
| 14855 | _ACEOF |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 14856 | if ac_fn_c_try_link "$LINENO"; then : |
Jari Aalto | 7117c2d | 2002-07-17 14:10:11 +0000 | [diff] [blame] | 14857 | bash_cv_std_putenv=yes |
| 14858 | else |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 14859 | bash_cv_std_putenv=no |
Jari Aalto | 7117c2d | 2002-07-17 14:10:11 +0000 | [diff] [blame] | 14860 | |
| 14861 | fi |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 14862 | rm -f core conftest.err conftest.$ac_objext \ |
| 14863 | conftest$ac_exeext conftest.$ac_ext |
Jari Aalto | 7117c2d | 2002-07-17 14:10:11 +0000 | [diff] [blame] | 14864 | fi |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 14865 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_std_putenv" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 14866 | $as_echo "$bash_cv_std_putenv" >&6; } |
Jari Aalto | 7117c2d | 2002-07-17 14:10:11 +0000 | [diff] [blame] | 14867 | if test $bash_cv_std_putenv = yes; then |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 14868 | $as_echo "#define HAVE_STD_PUTENV 1" >>confdefs.h |
Jari Aalto | 7117c2d | 2002-07-17 14:10:11 +0000 | [diff] [blame] | 14869 | |
| 14870 | fi |
| 14871 | |
| 14872 | else |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 14873 | $as_echo "#define HAVE_STD_PUTENV 1" >>confdefs.h |
Jari Aalto | 7117c2d | 2002-07-17 14:10:11 +0000 | [diff] [blame] | 14874 | |
| 14875 | fi |
| 14876 | if test "$ac_cv_func_unsetenv" = "yes"; then |
| 14877 | |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 14878 | |
| 14879 | |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 14880 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for standard-conformant unsetenv declaration" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 14881 | $as_echo_n "checking for standard-conformant unsetenv declaration... " >&6; } |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 14882 | if ${bash_cv_std_unsetenv+:} false; then : |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 14883 | $as_echo_n "(cached) " >&6 |
Jari Aalto | 7117c2d | 2002-07-17 14:10:11 +0000 | [diff] [blame] | 14884 | else |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 14885 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Jari Aalto | 0628567 | 2006-10-10 14:15:34 +0000 | [diff] [blame] | 14886 | /* end confdefs.h. */ |
Jari Aalto | 7117c2d | 2002-07-17 14:10:11 +0000 | [diff] [blame] | 14887 | |
| 14888 | #if STDC_HEADERS |
| 14889 | #include <stdlib.h> |
| 14890 | #include <stddef.h> |
| 14891 | #endif |
| 14892 | #ifndef __STDC__ |
| 14893 | # ifndef const |
| 14894 | # define const |
| 14895 | # endif |
| 14896 | #endif |
| 14897 | #ifdef PROTOTYPES |
| 14898 | extern int unsetenv (const char *); |
| 14899 | #else |
| 14900 | extern int unsetenv (); |
| 14901 | #endif |
| 14902 | |
| 14903 | int |
| 14904 | main () |
| 14905 | { |
| 14906 | return (unsetenv == 0); |
| 14907 | ; |
| 14908 | return 0; |
| 14909 | } |
| 14910 | _ACEOF |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 14911 | if ac_fn_c_try_link "$LINENO"; then : |
Jari Aalto | 7117c2d | 2002-07-17 14:10:11 +0000 | [diff] [blame] | 14912 | bash_cv_std_unsetenv=yes |
| 14913 | else |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 14914 | bash_cv_std_unsetenv=no |
Jari Aalto | 7117c2d | 2002-07-17 14:10:11 +0000 | [diff] [blame] | 14915 | |
| 14916 | fi |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 14917 | rm -f core conftest.err conftest.$ac_objext \ |
| 14918 | conftest$ac_exeext conftest.$ac_ext |
Jari Aalto | 7117c2d | 2002-07-17 14:10:11 +0000 | [diff] [blame] | 14919 | fi |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 14920 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_std_unsetenv" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 14921 | $as_echo "$bash_cv_std_unsetenv" >&6; } |
Jari Aalto | 7117c2d | 2002-07-17 14:10:11 +0000 | [diff] [blame] | 14922 | if test $bash_cv_std_unsetenv = yes; then |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 14923 | $as_echo "#define HAVE_STD_UNSETENV 1" >>confdefs.h |
Jari Aalto | 7117c2d | 2002-07-17 14:10:11 +0000 | [diff] [blame] | 14924 | |
| 14925 | fi |
| 14926 | |
| 14927 | else |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 14928 | $as_echo "#define HAVE_STD_UNSETENV 1" >>confdefs.h |
Jari Aalto | 7117c2d | 2002-07-17 14:10:11 +0000 | [diff] [blame] | 14929 | |
| 14930 | fi |
| 14931 | |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 14932 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for printf floating point output in hex notation" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 14933 | $as_echo_n "checking for printf floating point output in hex notation... " >&6; } |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 14934 | if ${bash_cv_printf_a_format+:} false; then : |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 14935 | $as_echo_n "(cached) " >&6 |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 14936 | else |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 14937 | if test "$cross_compiling" = yes; then : |
| 14938 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot check printf if cross compiling -- defaulting to no" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 14939 | $as_echo "$as_me: WARNING: cannot check printf if cross compiling -- defaulting to no" >&2;} |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 14940 | bash_cv_printf_a_format=no |
| 14941 | |
| 14942 | else |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 14943 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Jari Aalto | 0628567 | 2006-10-10 14:15:34 +0000 | [diff] [blame] | 14944 | /* end confdefs.h. */ |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 14945 | |
| 14946 | #include <stdio.h> |
| 14947 | #include <string.h> |
| 14948 | |
| 14949 | int |
| 14950 | main() |
| 14951 | { |
| 14952 | double y = 0.0; |
| 14953 | char abuf[1024]; |
| 14954 | |
| 14955 | sprintf(abuf, "%A", y); |
| 14956 | exit(strchr(abuf, 'P') == (char *)0); |
| 14957 | } |
| 14958 | |
| 14959 | _ACEOF |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 14960 | if ac_fn_c_try_run "$LINENO"; then : |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 14961 | bash_cv_printf_a_format=yes |
| 14962 | else |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 14963 | bash_cv_printf_a_format=no |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 14964 | fi |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 14965 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 14966 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 14967 | fi |
| 14968 | |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 14969 | fi |
| 14970 | |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 14971 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_printf_a_format" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 14972 | $as_echo "$bash_cv_printf_a_format" >&6; } |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 14973 | if test $bash_cv_printf_a_format = yes; then |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 14974 | $as_echo "#define HAVE_PRINTF_A_FORMAT 1" >>confdefs.h |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 14975 | |
| 14976 | fi |
| 14977 | |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 14978 | |
| 14979 | |
| 14980 | |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 14981 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if signal handlers must be reinstalled when invoked" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 14982 | $as_echo_n "checking if signal handlers must be reinstalled when invoked... " >&6; } |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 14983 | if ${bash_cv_must_reinstall_sighandlers+:} false; then : |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 14984 | $as_echo_n "(cached) " >&6 |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 14985 | else |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 14986 | if test "$cross_compiling" = yes; then : |
| 14987 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot check signal handling if cross compiling -- defaulting to no" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 14988 | $as_echo "$as_me: WARNING: cannot check signal handling if cross compiling -- defaulting to no" >&2;} |
Jari Aalto | cce855b | 1998-04-17 19:52:44 +0000 | [diff] [blame] | 14989 | bash_cv_must_reinstall_sighandlers=no |
| 14990 | |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 14991 | else |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 14992 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Jari Aalto | 0628567 | 2006-10-10 14:15:34 +0000 | [diff] [blame] | 14993 | /* end confdefs.h. */ |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 14994 | |
| 14995 | #include <signal.h> |
| 14996 | #ifdef HAVE_UNISTD_H |
| 14997 | #include <unistd.h> |
| 14998 | #endif |
| 14999 | |
| 15000 | typedef RETSIGTYPE sigfunc(); |
| 15001 | |
| 15002 | int nsigint; |
| 15003 | |
| 15004 | #ifdef HAVE_POSIX_SIGNALS |
| 15005 | sigfunc * |
| 15006 | set_signal_handler(sig, handler) |
| 15007 | int sig; |
| 15008 | sigfunc *handler; |
| 15009 | { |
| 15010 | struct sigaction act, oact; |
| 15011 | act.sa_handler = handler; |
| 15012 | act.sa_flags = 0; |
| 15013 | sigemptyset (&act.sa_mask); |
| 15014 | sigemptyset (&oact.sa_mask); |
| 15015 | sigaction (sig, &act, &oact); |
| 15016 | return (oact.sa_handler); |
| 15017 | } |
| 15018 | #else |
| 15019 | #define set_signal_handler(s, h) signal(s, h) |
| 15020 | #endif |
| 15021 | |
| 15022 | RETSIGTYPE |
| 15023 | sigint(s) |
| 15024 | int s; |
| 15025 | { |
| 15026 | nsigint++; |
| 15027 | } |
| 15028 | |
| 15029 | main() |
| 15030 | { |
| 15031 | nsigint = 0; |
| 15032 | set_signal_handler(SIGINT, sigint); |
| 15033 | kill((int)getpid(), SIGINT); |
| 15034 | kill((int)getpid(), SIGINT); |
| 15035 | exit(nsigint != 2); |
| 15036 | } |
| 15037 | |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 15038 | _ACEOF |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 15039 | if ac_fn_c_try_run "$LINENO"; then : |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 15040 | bash_cv_must_reinstall_sighandlers=no |
| 15041 | else |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 15042 | bash_cv_must_reinstall_sighandlers=yes |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 15043 | fi |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 15044 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 15045 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 15046 | fi |
| 15047 | |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 15048 | fi |
| 15049 | |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 15050 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_must_reinstall_sighandlers" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 15051 | $as_echo "$bash_cv_must_reinstall_sighandlers" >&6; } |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 15052 | if test $bash_cv_must_reinstall_sighandlers = yes; then |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 15053 | $as_echo "#define MUST_REINSTALL_SIGHANDLERS 1" >>confdefs.h |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 15054 | |
| 15055 | fi |
| 15056 | |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 15057 | |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 15058 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for presence of necessary job control definitions" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 15059 | $as_echo_n "checking for presence of necessary job control definitions... " >&6; } |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 15060 | if ${bash_cv_job_control_missing+:} false; then : |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 15061 | $as_echo_n "(cached) " >&6 |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 15062 | else |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 15063 | if test "$cross_compiling" = yes; then : |
| 15064 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot check job control if cross-compiling -- defaulting to missing" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 15065 | $as_echo "$as_me: WARNING: cannot check job control if cross-compiling -- defaulting to missing" >&2;} |
Jari Aalto | cce855b | 1998-04-17 19:52:44 +0000 | [diff] [blame] | 15066 | bash_cv_job_control_missing=missing |
| 15067 | |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 15068 | else |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 15069 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Jari Aalto | 0628567 | 2006-10-10 14:15:34 +0000 | [diff] [blame] | 15070 | /* end confdefs.h. */ |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 15071 | |
| 15072 | #include <sys/types.h> |
| 15073 | #ifdef HAVE_SYS_WAIT_H |
| 15074 | #include <sys/wait.h> |
| 15075 | #endif |
| 15076 | #ifdef HAVE_UNISTD_H |
| 15077 | #include <unistd.h> |
| 15078 | #endif |
| 15079 | #include <signal.h> |
| 15080 | |
| 15081 | /* Add more tests in here as appropriate. */ |
| 15082 | main() |
| 15083 | { |
| 15084 | /* signal type */ |
| 15085 | #if !defined (HAVE_POSIX_SIGNALS) && !defined (HAVE_BSD_SIGNALS) |
| 15086 | exit(1); |
| 15087 | #endif |
| 15088 | |
| 15089 | /* signals and tty control. */ |
| 15090 | #if !defined (SIGTSTP) || !defined (SIGSTOP) || !defined (SIGCONT) |
| 15091 | exit (1); |
| 15092 | #endif |
| 15093 | |
| 15094 | /* process control */ |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 15095 | #if !defined (WNOHANG) || !defined (WUNTRACED) |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 15096 | exit(1); |
| 15097 | #endif |
| 15098 | |
| 15099 | /* Posix systems have tcgetpgrp and waitpid. */ |
| 15100 | #if defined (_POSIX_VERSION) && !defined (HAVE_TCGETPGRP) |
| 15101 | exit(1); |
| 15102 | #endif |
| 15103 | |
| 15104 | #if defined (_POSIX_VERSION) && !defined (HAVE_WAITPID) |
| 15105 | exit(1); |
| 15106 | #endif |
| 15107 | |
| 15108 | /* Other systems have TIOCSPGRP/TIOCGPRGP and wait3. */ |
| 15109 | #if !defined (_POSIX_VERSION) && !defined (HAVE_WAIT3) |
| 15110 | exit(1); |
| 15111 | #endif |
| 15112 | |
| 15113 | exit(0); |
| 15114 | } |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 15115 | _ACEOF |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 15116 | if ac_fn_c_try_run "$LINENO"; then : |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 15117 | bash_cv_job_control_missing=present |
| 15118 | else |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 15119 | bash_cv_job_control_missing=missing |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 15120 | fi |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 15121 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 15122 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 15123 | fi |
| 15124 | |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 15125 | fi |
| 15126 | |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 15127 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_job_control_missing" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 15128 | $as_echo "$bash_cv_job_control_missing" >&6; } |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 15129 | if test $bash_cv_job_control_missing = missing; then |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 15130 | $as_echo "#define JOB_CONTROL_MISSING 1" >>confdefs.h |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 15131 | |
| 15132 | fi |
| 15133 | |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 15134 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for presence of named pipes" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 15135 | $as_echo_n "checking for presence of named pipes... " >&6; } |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 15136 | if ${bash_cv_sys_named_pipes+:} false; then : |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 15137 | $as_echo_n "(cached) " >&6 |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 15138 | else |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 15139 | if test "$cross_compiling" = yes; then : |
| 15140 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot check for named pipes if cross-compiling -- defaulting to missing" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 15141 | $as_echo "$as_me: WARNING: cannot check for named pipes if cross-compiling -- defaulting to missing" >&2;} |
Jari Aalto | cce855b | 1998-04-17 19:52:44 +0000 | [diff] [blame] | 15142 | bash_cv_sys_named_pipes=missing |
| 15143 | |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 15144 | else |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 15145 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Jari Aalto | 0628567 | 2006-10-10 14:15:34 +0000 | [diff] [blame] | 15146 | /* end confdefs.h. */ |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 15147 | |
| 15148 | #include <sys/types.h> |
| 15149 | #include <sys/stat.h> |
| 15150 | #ifdef HAVE_UNISTD_H |
| 15151 | #include <unistd.h> |
| 15152 | #endif |
| 15153 | |
| 15154 | /* Add more tests in here as appropriate. */ |
| 15155 | main() |
| 15156 | { |
Jari Aalto | bb70624 | 2000-03-17 21:46:59 +0000 | [diff] [blame] | 15157 | int fd, err; |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 15158 | |
| 15159 | #if defined (HAVE_MKFIFO) |
| 15160 | exit (0); |
| 15161 | #endif |
| 15162 | |
| 15163 | #if !defined (S_IFIFO) && (defined (_POSIX_VERSION) && !defined (S_ISFIFO)) |
| 15164 | exit (1); |
| 15165 | #endif |
| 15166 | |
| 15167 | #if defined (NeXT) |
| 15168 | exit (1); |
| 15169 | #endif |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 15170 | err = mkdir("bash-aclocal", 0700); |
Jari Aalto | bb70624 | 2000-03-17 21:46:59 +0000 | [diff] [blame] | 15171 | if (err < 0) { |
| 15172 | perror ("mkdir"); |
| 15173 | exit(1); |
| 15174 | } |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 15175 | fd = mknod ("bash-aclocal/sh-np-autoconf", 0666 | S_IFIFO, 0); |
Jari Aalto | bb70624 | 2000-03-17 21:46:59 +0000 | [diff] [blame] | 15176 | if (fd == -1) { |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 15177 | rmdir ("bash-aclocal"); |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 15178 | exit (1); |
Jari Aalto | bb70624 | 2000-03-17 21:46:59 +0000 | [diff] [blame] | 15179 | } |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 15180 | close(fd); |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 15181 | unlink ("bash-aclocal/sh-np-autoconf"); |
| 15182 | rmdir ("bash-aclocal"); |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 15183 | exit(0); |
| 15184 | } |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 15185 | _ACEOF |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 15186 | if ac_fn_c_try_run "$LINENO"; then : |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 15187 | bash_cv_sys_named_pipes=present |
| 15188 | else |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 15189 | bash_cv_sys_named_pipes=missing |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 15190 | fi |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 15191 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 15192 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 15193 | fi |
| 15194 | |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 15195 | fi |
| 15196 | |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 15197 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_sys_named_pipes" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 15198 | $as_echo "$bash_cv_sys_named_pipes" >&6; } |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 15199 | if test $bash_cv_sys_named_pipes = missing; then |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 15200 | $as_echo "#define NAMED_PIPES_MISSING 1" >>confdefs.h |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 15201 | |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 15202 | fi |
| 15203 | |
| 15204 | |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 15205 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether termios.h defines TIOCGWINSZ" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 15206 | $as_echo_n "checking whether termios.h defines TIOCGWINSZ... " >&6; } |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 15207 | if ${ac_cv_sys_tiocgwinsz_in_termios_h+:} false; then : |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 15208 | $as_echo_n "(cached) " >&6 |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 15209 | else |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 15210 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Jari Aalto | 0628567 | 2006-10-10 14:15:34 +0000 | [diff] [blame] | 15211 | /* end confdefs.h. */ |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 15212 | #include <sys/types.h> |
| 15213 | #include <termios.h> |
| 15214 | #ifdef TIOCGWINSZ |
| 15215 | yes |
| 15216 | #endif |
| 15217 | |
| 15218 | _ACEOF |
| 15219 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 15220 | $EGREP "yes" >/dev/null 2>&1; then : |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 15221 | ac_cv_sys_tiocgwinsz_in_termios_h=yes |
| 15222 | else |
| 15223 | ac_cv_sys_tiocgwinsz_in_termios_h=no |
| 15224 | fi |
| 15225 | rm -f conftest* |
| 15226 | |
| 15227 | fi |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 15228 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 15229 | $as_echo "$ac_cv_sys_tiocgwinsz_in_termios_h" >&6; } |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 15230 | |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 15231 | if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 15232 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 15233 | $as_echo_n "checking whether sys/ioctl.h defines TIOCGWINSZ... " >&6; } |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 15234 | if ${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+:} false; then : |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 15235 | $as_echo_n "(cached) " >&6 |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 15236 | else |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 15237 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Jari Aalto | 0628567 | 2006-10-10 14:15:34 +0000 | [diff] [blame] | 15238 | /* end confdefs.h. */ |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 15239 | #include <sys/types.h> |
| 15240 | #include <sys/ioctl.h> |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 15241 | #ifdef TIOCGWINSZ |
| 15242 | yes |
| 15243 | #endif |
| 15244 | |
| 15245 | _ACEOF |
| 15246 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 15247 | $EGREP "yes" >/dev/null 2>&1; then : |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 15248 | ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=yes |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 15249 | else |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 15250 | ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=no |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 15251 | fi |
| 15252 | rm -f conftest* |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 15253 | |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 15254 | fi |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 15255 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 15256 | $as_echo "$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6; } |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 15257 | |
| 15258 | if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then |
| 15259 | |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 15260 | $as_echo "#define GWINSZ_IN_SYS_IOCTL 1" >>confdefs.h |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 15261 | |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 15262 | fi |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 15263 | fi |
| 15264 | |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 15265 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIOCSTAT in sys/ioctl.h" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 15266 | $as_echo_n "checking for TIOCSTAT in sys/ioctl.h... " >&6; } |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 15267 | if ${bash_cv_tiocstat_in_ioctl+:} false; then : |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 15268 | $as_echo_n "(cached) " >&6 |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 15269 | else |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 15270 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Jari Aalto | 0628567 | 2006-10-10 14:15:34 +0000 | [diff] [blame] | 15271 | /* end confdefs.h. */ |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 15272 | #include <sys/types.h> |
| 15273 | #include <sys/ioctl.h> |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 15274 | int |
| 15275 | main () |
| 15276 | { |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 15277 | int x = TIOCSTAT; |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 15278 | ; |
| 15279 | return 0; |
| 15280 | } |
| 15281 | _ACEOF |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 15282 | if ac_fn_c_try_compile "$LINENO"; then : |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 15283 | bash_cv_tiocstat_in_ioctl=yes |
| 15284 | else |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 15285 | bash_cv_tiocstat_in_ioctl=no |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 15286 | fi |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 15287 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 15288 | fi |
| 15289 | |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 15290 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_tiocstat_in_ioctl" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 15291 | $as_echo "$bash_cv_tiocstat_in_ioctl" >&6; } |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 15292 | if test $bash_cv_tiocstat_in_ioctl = yes; then |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 15293 | $as_echo "#define TIOCSTAT_IN_SYS_IOCTL 1" >>confdefs.h |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 15294 | |
| 15295 | fi |
| 15296 | |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 15297 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FIONREAD in sys/ioctl.h" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 15298 | $as_echo_n "checking for FIONREAD in sys/ioctl.h... " >&6; } |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 15299 | if ${bash_cv_fionread_in_ioctl+:} false; then : |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 15300 | $as_echo_n "(cached) " >&6 |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 15301 | else |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 15302 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Jari Aalto | 0628567 | 2006-10-10 14:15:34 +0000 | [diff] [blame] | 15303 | /* end confdefs.h. */ |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 15304 | #include <sys/types.h> |
| 15305 | #include <sys/ioctl.h> |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 15306 | int |
| 15307 | main () |
| 15308 | { |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 15309 | int x = FIONREAD; |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 15310 | ; |
| 15311 | return 0; |
| 15312 | } |
| 15313 | _ACEOF |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 15314 | if ac_fn_c_try_compile "$LINENO"; then : |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 15315 | bash_cv_fionread_in_ioctl=yes |
| 15316 | else |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 15317 | bash_cv_fionread_in_ioctl=no |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 15318 | fi |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 15319 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 15320 | fi |
| 15321 | |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 15322 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_fionread_in_ioctl" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 15323 | $as_echo "$bash_cv_fionread_in_ioctl" >&6; } |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 15324 | if test $bash_cv_fionread_in_ioctl = yes; then |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 15325 | $as_echo "#define FIONREAD_IN_SYS_IOCTL 1" >>confdefs.h |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 15326 | |
| 15327 | fi |
| 15328 | |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 15329 | |
Jari Aalto | 95732b4 | 2005-12-07 14:08:12 +0000 | [diff] [blame] | 15330 | |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 15331 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether WCONTINUED flag to waitpid is unavailable or available but broken" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 15332 | $as_echo_n "checking whether WCONTINUED flag to waitpid is unavailable or available but broken... " >&6; } |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 15333 | if ${bash_cv_wcontinued_broken+:} false; then : |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 15334 | $as_echo_n "(cached) " >&6 |
Jari Aalto | 95732b4 | 2005-12-07 14:08:12 +0000 | [diff] [blame] | 15335 | else |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 15336 | if test "$cross_compiling" = yes; then : |
| 15337 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot check WCONTINUED if cross compiling -- defaulting to no" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 15338 | $as_echo "$as_me: WARNING: cannot check WCONTINUED if cross compiling -- defaulting to no" >&2;} |
Jari Aalto | 95732b4 | 2005-12-07 14:08:12 +0000 | [diff] [blame] | 15339 | bash_cv_wcontinued_broken=no |
| 15340 | |
| 15341 | else |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 15342 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Jari Aalto | 0628567 | 2006-10-10 14:15:34 +0000 | [diff] [blame] | 15343 | /* end confdefs.h. */ |
Jari Aalto | 95732b4 | 2005-12-07 14:08:12 +0000 | [diff] [blame] | 15344 | |
| 15345 | #include <sys/types.h> |
| 15346 | #include <sys/wait.h> |
| 15347 | #include <unistd.h> |
| 15348 | #include <errno.h> |
| 15349 | |
| 15350 | #ifndef errno |
Ricardo Cerqueira | a02fbff | 2013-07-25 22:35:34 +0100 | [diff] [blame] | 15351 | #include <errno.h> |
Jari Aalto | 95732b4 | 2005-12-07 14:08:12 +0000 | [diff] [blame] | 15352 | #endif |
| 15353 | main() |
| 15354 | { |
| 15355 | int x; |
| 15356 | |
| 15357 | x = waitpid(-1, (int *)0, WNOHANG|WCONTINUED); |
| 15358 | if (x == -1 && errno == EINVAL) |
| 15359 | exit (1); |
| 15360 | else |
| 15361 | exit (0); |
| 15362 | } |
| 15363 | |
| 15364 | _ACEOF |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 15365 | if ac_fn_c_try_run "$LINENO"; then : |
Jari Aalto | 95732b4 | 2005-12-07 14:08:12 +0000 | [diff] [blame] | 15366 | bash_cv_wcontinued_broken=no |
| 15367 | else |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 15368 | bash_cv_wcontinued_broken=yes |
Jari Aalto | 95732b4 | 2005-12-07 14:08:12 +0000 | [diff] [blame] | 15369 | fi |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 15370 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 15371 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Jari Aalto | 95732b4 | 2005-12-07 14:08:12 +0000 | [diff] [blame] | 15372 | fi |
| 15373 | |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 15374 | fi |
| 15375 | |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 15376 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_wcontinued_broken" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 15377 | $as_echo "$bash_cv_wcontinued_broken" >&6; } |
Jari Aalto | 95732b4 | 2005-12-07 14:08:12 +0000 | [diff] [blame] | 15378 | if test $bash_cv_wcontinued_broken = yes; then |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 15379 | $as_echo "#define WCONTINUED_BROKEN 1" >>confdefs.h |
Jari Aalto | 95732b4 | 2005-12-07 14:08:12 +0000 | [diff] [blame] | 15380 | |
| 15381 | fi |
| 15382 | |
| 15383 | |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 15384 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for speed_t in sys/types.h" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 15385 | $as_echo_n "checking for speed_t in sys/types.h... " >&6; } |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 15386 | if ${bash_cv_speed_t_in_sys_types+:} false; then : |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 15387 | $as_echo_n "(cached) " >&6 |
Jari Aalto | d166f04 | 1997-06-05 14:59:13 +0000 | [diff] [blame] | 15388 | else |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 15389 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Jari Aalto | 0628567 | 2006-10-10 14:15:34 +0000 | [diff] [blame] | 15390 | /* end confdefs.h. */ |
Jari Aalto | d166f04 | 1997-06-05 14:59:13 +0000 | [diff] [blame] | 15391 | #include <sys/types.h> |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 15392 | int |
| 15393 | main () |
| 15394 | { |
Jari Aalto | d166f04 | 1997-06-05 14:59:13 +0000 | [diff] [blame] | 15395 | speed_t x; |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 15396 | ; |
| 15397 | return 0; |
| 15398 | } |
| 15399 | _ACEOF |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 15400 | if ac_fn_c_try_compile "$LINENO"; then : |
Jari Aalto | d166f04 | 1997-06-05 14:59:13 +0000 | [diff] [blame] | 15401 | bash_cv_speed_t_in_sys_types=yes |
| 15402 | else |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 15403 | bash_cv_speed_t_in_sys_types=no |
Jari Aalto | d166f04 | 1997-06-05 14:59:13 +0000 | [diff] [blame] | 15404 | fi |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 15405 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 15406 | fi |
| 15407 | |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 15408 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_speed_t_in_sys_types" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 15409 | $as_echo "$bash_cv_speed_t_in_sys_types" >&6; } |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 15410 | if test $bash_cv_speed_t_in_sys_types = yes; then |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 15411 | $as_echo "#define SPEED_T_IN_SYS_TYPES 1" >>confdefs.h |
Jari Aalto | d166f04 | 1997-06-05 14:59:13 +0000 | [diff] [blame] | 15412 | |
| 15413 | fi |
| 15414 | |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 15415 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getpw functions are declared in pwd.h" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 15416 | $as_echo_n "checking whether getpw functions are declared in pwd.h... " >&6; } |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 15417 | if ${bash_cv_getpw_declared+:} false; then : |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 15418 | $as_echo_n "(cached) " >&6 |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 15419 | else |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 15420 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Jari Aalto | 0628567 | 2006-10-10 14:15:34 +0000 | [diff] [blame] | 15421 | /* end confdefs.h. */ |
Jari Aalto | 28ef6c3 | 2001-04-06 19:14:31 +0000 | [diff] [blame] | 15422 | |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 15423 | #include <sys/types.h> |
Jari Aalto | 28ef6c3 | 2001-04-06 19:14:31 +0000 | [diff] [blame] | 15424 | #ifdef HAVE_UNISTD_H |
| 15425 | # include <unistd.h> |
| 15426 | #endif |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 15427 | #include <pwd.h> |
Jari Aalto | 28ef6c3 | 2001-04-06 19:14:31 +0000 | [diff] [blame] | 15428 | |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 15429 | _ACEOF |
Jari Aalto | 28ef6c3 | 2001-04-06 19:14:31 +0000 | [diff] [blame] | 15430 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 15431 | $EGREP "getpwuid" >/dev/null 2>&1; then : |
Jari Aalto | 28ef6c3 | 2001-04-06 19:14:31 +0000 | [diff] [blame] | 15432 | bash_cv_getpw_declared=yes |
| 15433 | else |
Jari Aalto | 28ef6c3 | 2001-04-06 19:14:31 +0000 | [diff] [blame] | 15434 | bash_cv_getpw_declared=no |
| 15435 | fi |
| 15436 | rm -f conftest* |
| 15437 | |
| 15438 | fi |
| 15439 | |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 15440 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_getpw_declared" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 15441 | $as_echo "$bash_cv_getpw_declared" >&6; } |
Jari Aalto | 28ef6c3 | 2001-04-06 19:14:31 +0000 | [diff] [blame] | 15442 | if test $bash_cv_getpw_declared = yes; then |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 15443 | $as_echo "#define HAVE_GETPW_DECLS 1" >>confdefs.h |
Jari Aalto | 28ef6c3 | 2001-04-06 19:14:31 +0000 | [diff] [blame] | 15444 | |
| 15445 | fi |
| 15446 | |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 15447 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unusable real-time signals due to large values" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 15448 | $as_echo_n "checking for unusable real-time signals due to large values... " >&6; } |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 15449 | if ${bash_cv_unusable_rtsigs+:} false; then : |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 15450 | $as_echo_n "(cached) " >&6 |
Jari Aalto | 28ef6c3 | 2001-04-06 19:14:31 +0000 | [diff] [blame] | 15451 | else |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 15452 | if test "$cross_compiling" = yes; then : |
| 15453 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot check real-time signals if cross compiling -- defaulting to yes" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 15454 | $as_echo "$as_me: WARNING: cannot check real-time signals if cross compiling -- defaulting to yes" >&2;} |
Jari Aalto | 28ef6c3 | 2001-04-06 19:14:31 +0000 | [diff] [blame] | 15455 | bash_cv_unusable_rtsigs=yes |
| 15456 | |
| 15457 | else |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 15458 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Jari Aalto | 0628567 | 2006-10-10 14:15:34 +0000 | [diff] [blame] | 15459 | /* end confdefs.h. */ |
Jari Aalto | 28ef6c3 | 2001-04-06 19:14:31 +0000 | [diff] [blame] | 15460 | |
| 15461 | #include <sys/types.h> |
| 15462 | #include <signal.h> |
| 15463 | |
| 15464 | #ifndef NSIG |
| 15465 | # define NSIG 64 |
| 15466 | #endif |
| 15467 | |
| 15468 | main () |
| 15469 | { |
| 15470 | int n_sigs = 2 * NSIG; |
| 15471 | #ifdef SIGRTMIN |
| 15472 | int rtmin = SIGRTMIN; |
| 15473 | #else |
| 15474 | int rtmin = 0; |
| 15475 | #endif |
| 15476 | |
| 15477 | exit(rtmin < n_sigs); |
| 15478 | } |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 15479 | _ACEOF |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 15480 | if ac_fn_c_try_run "$LINENO"; then : |
Jari Aalto | 28ef6c3 | 2001-04-06 19:14:31 +0000 | [diff] [blame] | 15481 | bash_cv_unusable_rtsigs=yes |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 15482 | else |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 15483 | bash_cv_unusable_rtsigs=no |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 15484 | fi |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 15485 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 15486 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 15487 | fi |
| 15488 | |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 15489 | fi |
| 15490 | |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 15491 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_unusable_rtsigs" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 15492 | $as_echo "$bash_cv_unusable_rtsigs" >&6; } |
Jari Aalto | 28ef6c3 | 2001-04-06 19:14:31 +0000 | [diff] [blame] | 15493 | if test $bash_cv_unusable_rtsigs = yes; then |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 15494 | $as_echo "#define UNUSABLE_RT_SIGNALS 1" >>confdefs.h |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 15495 | |
| 15496 | fi |
| 15497 | |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 15498 | |
| 15499 | |
| 15500 | |
| 15501 | |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 15502 | if test "$bash_cv_sys_siglist" = no && test "$bash_cv_under_sys_siglist" = no && test "$bash_cv_have_strsignal" = no; then |
| 15503 | SIGLIST_O=siglist.o |
| 15504 | else |
| 15505 | SIGLIST_O= |
| 15506 | fi |
Jari Aalto | d166f04 | 1997-06-05 14:59:13 +0000 | [diff] [blame] | 15507 | |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 15508 | |
| 15509 | |
Jari Aalto | d166f04 | 1997-06-05 14:59:13 +0000 | [diff] [blame] | 15510 | case "$host_os" in |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 15511 | hpux*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $host_os needs _KERNEL for RLIMIT defines" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 15512 | $as_echo_n "checking whether $host_os needs _KERNEL for RLIMIT defines... " >&6; } |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 15513 | if ${bash_cv_kernel_rlimit+:} false; then : |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 15514 | $as_echo_n "(cached) " >&6 |
Jari Aalto | d166f04 | 1997-06-05 14:59:13 +0000 | [diff] [blame] | 15515 | else |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 15516 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Jari Aalto | 0628567 | 2006-10-10 14:15:34 +0000 | [diff] [blame] | 15517 | /* end confdefs.h. */ |
Jari Aalto | d166f04 | 1997-06-05 14:59:13 +0000 | [diff] [blame] | 15518 | |
| 15519 | #include <sys/types.h> |
| 15520 | #include <sys/resource.h> |
| 15521 | |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 15522 | int |
| 15523 | main () |
| 15524 | { |
Jari Aalto | d166f04 | 1997-06-05 14:59:13 +0000 | [diff] [blame] | 15525 | |
| 15526 | int f; |
| 15527 | f = RLIMIT_DATA; |
| 15528 | |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 15529 | ; |
| 15530 | return 0; |
| 15531 | } |
| 15532 | _ACEOF |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 15533 | if ac_fn_c_try_compile "$LINENO"; then : |
Jari Aalto | d166f04 | 1997-06-05 14:59:13 +0000 | [diff] [blame] | 15534 | bash_cv_kernel_rlimit=no |
| 15535 | else |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 15536 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Jari Aalto | 0628567 | 2006-10-10 14:15:34 +0000 | [diff] [blame] | 15537 | /* end confdefs.h. */ |
Jari Aalto | d166f04 | 1997-06-05 14:59:13 +0000 | [diff] [blame] | 15538 | |
Jari Aalto | cce855b | 1998-04-17 19:52:44 +0000 | [diff] [blame] | 15539 | #include <sys/types.h> |
| 15540 | #define _KERNEL |
| 15541 | #include <sys/resource.h> |
| 15542 | #undef _KERNEL |
| 15543 | |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 15544 | int |
| 15545 | main () |
| 15546 | { |
Jari Aalto | d166f04 | 1997-06-05 14:59:13 +0000 | [diff] [blame] | 15547 | |
| 15548 | int f; |
| 15549 | f = RLIMIT_DATA; |
Jari Aalto | cce855b | 1998-04-17 19:52:44 +0000 | [diff] [blame] | 15550 | |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 15551 | ; |
| 15552 | return 0; |
| 15553 | } |
| 15554 | _ACEOF |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 15555 | if ac_fn_c_try_compile "$LINENO"; then : |
Jari Aalto | d166f04 | 1997-06-05 14:59:13 +0000 | [diff] [blame] | 15556 | bash_cv_kernel_rlimit=yes |
| 15557 | else |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 15558 | bash_cv_kernel_rlimit=no |
Jari Aalto | d166f04 | 1997-06-05 14:59:13 +0000 | [diff] [blame] | 15559 | fi |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 15560 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 15561 | |
| 15562 | fi |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 15563 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 15564 | fi |
| 15565 | |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 15566 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_kernel_rlimit" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 15567 | $as_echo "$bash_cv_kernel_rlimit" >&6; } |
Jari Aalto | d166f04 | 1997-06-05 14:59:13 +0000 | [diff] [blame] | 15568 | if test $bash_cv_kernel_rlimit = yes; then |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 15569 | $as_echo "#define RLIMIT_NEEDS_KERNEL 1" >>confdefs.h |
Jari Aalto | d166f04 | 1997-06-05 14:59:13 +0000 | [diff] [blame] | 15570 | |
| 15571 | fi |
| 15572 | ;; |
| 15573 | esac |
| 15574 | |
| 15575 | if test "$opt_readline" = yes; then |
| 15576 | case "$host_os" in |
| 15577 | aix*) prefer_curses=yes ;; |
| 15578 | esac |
| 15579 | |
| 15580 | if test "X$bash_cv_termcap_lib" = "X"; then |
| 15581 | _bash_needmsg=yes |
| 15582 | else |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 15583 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking which library has the termcap functions" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 15584 | $as_echo_n "checking which library has the termcap functions... " >&6; } |
Jari Aalto | d166f04 | 1997-06-05 14:59:13 +0000 | [diff] [blame] | 15585 | _bash_needmsg= |
| 15586 | fi |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 15587 | if ${bash_cv_termcap_lib+:} false; then : |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 15588 | $as_echo_n "(cached) " >&6 |
Jari Aalto | d166f04 | 1997-06-05 14:59:13 +0000 | [diff] [blame] | 15589 | else |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 15590 | ac_fn_c_check_func "$LINENO" "tgetent" "ac_cv_func_tgetent" |
| 15591 | if test "x$ac_cv_func_tgetent" = xyes; then : |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 15592 | bash_cv_termcap_lib=libc |
| 15593 | else |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 15594 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -ltermcap" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 15595 | $as_echo_n "checking for tgetent in -ltermcap... " >&6; } |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 15596 | if ${ac_cv_lib_termcap_tgetent+:} false; then : |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 15597 | $as_echo_n "(cached) " >&6 |
Jari Aalto | d166f04 | 1997-06-05 14:59:13 +0000 | [diff] [blame] | 15598 | else |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 15599 | ac_check_lib_save_LIBS=$LIBS |
Jari Aalto | d166f04 | 1997-06-05 14:59:13 +0000 | [diff] [blame] | 15600 | LIBS="-ltermcap $LIBS" |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 15601 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Jari Aalto | 0628567 | 2006-10-10 14:15:34 +0000 | [diff] [blame] | 15602 | /* end confdefs.h. */ |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 15603 | |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 15604 | /* Override any GCC internal prototype to avoid an error. |
| 15605 | Use char because int might match the return type of a GCC |
| 15606 | builtin and then its argument prototype would still apply. */ |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 15607 | #ifdef __cplusplus |
| 15608 | extern "C" |
| 15609 | #endif |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 15610 | char tgetent (); |
| 15611 | int |
| 15612 | main () |
| 15613 | { |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 15614 | return tgetent (); |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 15615 | ; |
| 15616 | return 0; |
| 15617 | } |
| 15618 | _ACEOF |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 15619 | if ac_fn_c_try_link "$LINENO"; then : |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 15620 | ac_cv_lib_termcap_tgetent=yes |
Jari Aalto | d166f04 | 1997-06-05 14:59:13 +0000 | [diff] [blame] | 15621 | else |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 15622 | ac_cv_lib_termcap_tgetent=no |
Jari Aalto | d166f04 | 1997-06-05 14:59:13 +0000 | [diff] [blame] | 15623 | fi |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 15624 | rm -f core conftest.err conftest.$ac_objext \ |
| 15625 | conftest$ac_exeext conftest.$ac_ext |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 15626 | LIBS=$ac_check_lib_save_LIBS |
Jari Aalto | d166f04 | 1997-06-05 14:59:13 +0000 | [diff] [blame] | 15627 | fi |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 15628 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_termcap_tgetent" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 15629 | $as_echo "$ac_cv_lib_termcap_tgetent" >&6; } |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 15630 | if test "x$ac_cv_lib_termcap_tgetent" = xyes; then : |
Jari Aalto | d166f04 | 1997-06-05 14:59:13 +0000 | [diff] [blame] | 15631 | bash_cv_termcap_lib=libtermcap |
| 15632 | else |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 15633 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -ltinfo" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 15634 | $as_echo_n "checking for tgetent in -ltinfo... " >&6; } |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 15635 | if ${ac_cv_lib_tinfo_tgetent+:} false; then : |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 15636 | $as_echo_n "(cached) " >&6 |
Jari Aalto | d166f04 | 1997-06-05 14:59:13 +0000 | [diff] [blame] | 15637 | else |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 15638 | ac_check_lib_save_LIBS=$LIBS |
| 15639 | LIBS="-ltinfo $LIBS" |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 15640 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Jari Aalto | 0628567 | 2006-10-10 14:15:34 +0000 | [diff] [blame] | 15641 | /* end confdefs.h. */ |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 15642 | |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 15643 | /* Override any GCC internal prototype to avoid an error. |
| 15644 | Use char because int might match the return type of a GCC |
| 15645 | builtin and then its argument prototype would still apply. */ |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 15646 | #ifdef __cplusplus |
| 15647 | extern "C" |
| 15648 | #endif |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 15649 | char tgetent (); |
| 15650 | int |
| 15651 | main () |
| 15652 | { |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 15653 | return tgetent (); |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 15654 | ; |
| 15655 | return 0; |
| 15656 | } |
| 15657 | _ACEOF |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 15658 | if ac_fn_c_try_link "$LINENO"; then : |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 15659 | ac_cv_lib_tinfo_tgetent=yes |
Jari Aalto | d166f04 | 1997-06-05 14:59:13 +0000 | [diff] [blame] | 15660 | else |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 15661 | ac_cv_lib_tinfo_tgetent=no |
Jari Aalto | d166f04 | 1997-06-05 14:59:13 +0000 | [diff] [blame] | 15662 | fi |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 15663 | rm -f core conftest.err conftest.$ac_objext \ |
| 15664 | conftest$ac_exeext conftest.$ac_ext |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 15665 | LIBS=$ac_check_lib_save_LIBS |
| 15666 | fi |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 15667 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tinfo_tgetent" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 15668 | $as_echo "$ac_cv_lib_tinfo_tgetent" >&6; } |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 15669 | if test "x$ac_cv_lib_tinfo_tgetent" = xyes; then : |
Jari Aalto | 7117c2d | 2002-07-17 14:10:11 +0000 | [diff] [blame] | 15670 | bash_cv_termcap_lib=libtinfo |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 15671 | else |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 15672 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -lcurses" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 15673 | $as_echo_n "checking for tgetent in -lcurses... " >&6; } |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 15674 | if ${ac_cv_lib_curses_tgetent+:} false; then : |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 15675 | $as_echo_n "(cached) " >&6 |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 15676 | else |
| 15677 | ac_check_lib_save_LIBS=$LIBS |
| 15678 | LIBS="-lcurses $LIBS" |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 15679 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Jari Aalto | 0628567 | 2006-10-10 14:15:34 +0000 | [diff] [blame] | 15680 | /* end confdefs.h. */ |
Jari Aalto | d166f04 | 1997-06-05 14:59:13 +0000 | [diff] [blame] | 15681 | |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 15682 | /* Override any GCC internal prototype to avoid an error. |
| 15683 | Use char because int might match the return type of a GCC |
| 15684 | builtin and then its argument prototype would still apply. */ |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 15685 | #ifdef __cplusplus |
| 15686 | extern "C" |
| 15687 | #endif |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 15688 | char tgetent (); |
| 15689 | int |
| 15690 | main () |
| 15691 | { |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 15692 | return tgetent (); |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 15693 | ; |
| 15694 | return 0; |
| 15695 | } |
| 15696 | _ACEOF |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 15697 | if ac_fn_c_try_link "$LINENO"; then : |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 15698 | ac_cv_lib_curses_tgetent=yes |
| 15699 | else |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 15700 | ac_cv_lib_curses_tgetent=no |
Jari Aalto | d166f04 | 1997-06-05 14:59:13 +0000 | [diff] [blame] | 15701 | fi |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 15702 | rm -f core conftest.err conftest.$ac_objext \ |
| 15703 | conftest$ac_exeext conftest.$ac_ext |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 15704 | LIBS=$ac_check_lib_save_LIBS |
| 15705 | fi |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 15706 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curses_tgetent" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 15707 | $as_echo "$ac_cv_lib_curses_tgetent" >&6; } |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 15708 | if test "x$ac_cv_lib_curses_tgetent" = xyes; then : |
Jari Aalto | d166f04 | 1997-06-05 14:59:13 +0000 | [diff] [blame] | 15709 | bash_cv_termcap_lib=libcurses |
| 15710 | else |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 15711 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -lncurses" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 15712 | $as_echo_n "checking for tgetent in -lncurses... " >&6; } |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 15713 | if ${ac_cv_lib_ncurses_tgetent+:} false; then : |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 15714 | $as_echo_n "(cached) " >&6 |
Jari Aalto | d166f04 | 1997-06-05 14:59:13 +0000 | [diff] [blame] | 15715 | else |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 15716 | ac_check_lib_save_LIBS=$LIBS |
Jari Aalto | d166f04 | 1997-06-05 14:59:13 +0000 | [diff] [blame] | 15717 | LIBS="-lncurses $LIBS" |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 15718 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Jari Aalto | 0628567 | 2006-10-10 14:15:34 +0000 | [diff] [blame] | 15719 | /* end confdefs.h. */ |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 15720 | |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 15721 | /* Override any GCC internal prototype to avoid an error. |
| 15722 | Use char because int might match the return type of a GCC |
| 15723 | builtin and then its argument prototype would still apply. */ |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 15724 | #ifdef __cplusplus |
| 15725 | extern "C" |
| 15726 | #endif |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 15727 | char tgetent (); |
| 15728 | int |
| 15729 | main () |
| 15730 | { |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 15731 | return tgetent (); |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 15732 | ; |
| 15733 | return 0; |
| 15734 | } |
| 15735 | _ACEOF |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 15736 | if ac_fn_c_try_link "$LINENO"; then : |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 15737 | ac_cv_lib_ncurses_tgetent=yes |
Jari Aalto | d166f04 | 1997-06-05 14:59:13 +0000 | [diff] [blame] | 15738 | else |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 15739 | ac_cv_lib_ncurses_tgetent=no |
Jari Aalto | d166f04 | 1997-06-05 14:59:13 +0000 | [diff] [blame] | 15740 | fi |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 15741 | rm -f core conftest.err conftest.$ac_objext \ |
| 15742 | conftest$ac_exeext conftest.$ac_ext |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 15743 | LIBS=$ac_check_lib_save_LIBS |
Jari Aalto | d166f04 | 1997-06-05 14:59:13 +0000 | [diff] [blame] | 15744 | fi |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 15745 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncurses_tgetent" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 15746 | $as_echo "$ac_cv_lib_ncurses_tgetent" >&6; } |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 15747 | if test "x$ac_cv_lib_ncurses_tgetent" = xyes; then : |
Jari Aalto | d166f04 | 1997-06-05 14:59:13 +0000 | [diff] [blame] | 15748 | bash_cv_termcap_lib=libncurses |
| 15749 | else |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 15750 | bash_cv_termcap_lib=gnutermcap |
| 15751 | fi |
| 15752 | |
Jari Aalto | d166f04 | 1997-06-05 14:59:13 +0000 | [diff] [blame] | 15753 | fi |
| 15754 | |
| 15755 | fi |
| 15756 | |
| 15757 | fi |
| 15758 | |
| 15759 | fi |
| 15760 | |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 15761 | fi |
| 15762 | |
Jari Aalto | d166f04 | 1997-06-05 14:59:13 +0000 | [diff] [blame] | 15763 | if test "X$_bash_needmsg" = "Xyes"; then |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 15764 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking which library has the termcap functions" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 15765 | $as_echo_n "checking which library has the termcap functions... " >&6; } |
Jari Aalto | d166f04 | 1997-06-05 14:59:13 +0000 | [diff] [blame] | 15766 | fi |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 15767 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $bash_cv_termcap_lib" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 15768 | $as_echo "using $bash_cv_termcap_lib" >&6; } |
Jari Aalto | cce855b | 1998-04-17 19:52:44 +0000 | [diff] [blame] | 15769 | if test $bash_cv_termcap_lib = gnutermcap && test -z "$prefer_curses"; then |
Jari Aalto | d166f04 | 1997-06-05 14:59:13 +0000 | [diff] [blame] | 15770 | LDFLAGS="$LDFLAGS -L./lib/termcap" |
| 15771 | TERMCAP_LIB="./lib/termcap/libtermcap.a" |
| 15772 | TERMCAP_DEP="./lib/termcap/libtermcap.a" |
| 15773 | elif test $bash_cv_termcap_lib = libtermcap && test -z "$prefer_curses"; then |
| 15774 | TERMCAP_LIB=-ltermcap |
| 15775 | TERMCAP_DEP= |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 15776 | elif test $bash_cv_termcap_lib = libtinfo; then |
| 15777 | TERMCAP_LIB=-ltinfo |
| 15778 | TERMCAP_DEP= |
Jari Aalto | d166f04 | 1997-06-05 14:59:13 +0000 | [diff] [blame] | 15779 | elif test $bash_cv_termcap_lib = libncurses; then |
| 15780 | TERMCAP_LIB=-lncurses |
| 15781 | TERMCAP_DEP= |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 15782 | elif test $bash_cv_termcap_lib = libc; then |
| 15783 | TERMCAP_LIB= |
| 15784 | TERMCAP_DEP= |
Jari Aalto | d166f04 | 1997-06-05 14:59:13 +0000 | [diff] [blame] | 15785 | else |
| 15786 | TERMCAP_LIB=-lcurses |
| 15787 | TERMCAP_DEP= |
| 15788 | fi |
| 15789 | |
| 15790 | fi |
| 15791 | |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 15792 | |
| 15793 | |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 15794 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether /dev/fd is available" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 15795 | $as_echo_n "checking whether /dev/fd is available... " >&6; } |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 15796 | if ${bash_cv_dev_fd+:} false; then : |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 15797 | $as_echo_n "(cached) " >&6 |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 15798 | else |
Jari Aalto | 0628567 | 2006-10-10 14:15:34 +0000 | [diff] [blame] | 15799 | bash_cv_dev_fd="" |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 15800 | if test -d /dev/fd && (exec test -r /dev/fd/0 < /dev/null) ; then |
Jari Aalto | 95732b4 | 2005-12-07 14:08:12 +0000 | [diff] [blame] | 15801 | # check for systems like FreeBSD 5 that only provide /dev/fd/[012] |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 15802 | if (exec test -r /dev/fd/3 3</dev/null) ; then |
Jari Aalto | 95732b4 | 2005-12-07 14:08:12 +0000 | [diff] [blame] | 15803 | bash_cv_dev_fd=standard |
| 15804 | else |
| 15805 | bash_cv_dev_fd=absent |
| 15806 | fi |
Jari Aalto | 0628567 | 2006-10-10 14:15:34 +0000 | [diff] [blame] | 15807 | fi |
| 15808 | if test -z "$bash_cv_dev_fd" ; then |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 15809 | if test -d /proc/self/fd && (exec test -r /proc/self/fd/0 < /dev/null) ; then |
Jari Aalto | 0628567 | 2006-10-10 14:15:34 +0000 | [diff] [blame] | 15810 | bash_cv_dev_fd=whacky |
| 15811 | else |
| 15812 | bash_cv_dev_fd=absent |
| 15813 | fi |
| 15814 | fi |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 15815 | |
| 15816 | fi |
| 15817 | |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 15818 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_dev_fd" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 15819 | $as_echo "$bash_cv_dev_fd" >&6; } |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 15820 | if test $bash_cv_dev_fd = "standard"; then |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 15821 | $as_echo "#define HAVE_DEV_FD 1" >>confdefs.h |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 15822 | |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 15823 | $as_echo "#define DEV_FD_PREFIX \"/dev/fd/\"" >>confdefs.h |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 15824 | |
| 15825 | elif test $bash_cv_dev_fd = "whacky"; then |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 15826 | $as_echo "#define HAVE_DEV_FD 1" >>confdefs.h |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 15827 | |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 15828 | $as_echo "#define DEV_FD_PREFIX \"/proc/self/fd/\"" >>confdefs.h |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 15829 | |
| 15830 | fi |
| 15831 | |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 15832 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether /dev/stdin stdout stderr are available" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 15833 | $as_echo_n "checking whether /dev/stdin stdout stderr are available... " >&6; } |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 15834 | if ${bash_cv_dev_stdin+:} false; then : |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 15835 | $as_echo_n "(cached) " >&6 |
Jari Aalto | bb70624 | 2000-03-17 21:46:59 +0000 | [diff] [blame] | 15836 | else |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 15837 | if test -d /dev/fd && (exec test -r /dev/stdin < /dev/null) ; then |
Jari Aalto | bb70624 | 2000-03-17 21:46:59 +0000 | [diff] [blame] | 15838 | bash_cv_dev_stdin=present |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 15839 | elif test -d /proc/self/fd && (exec test -r /dev/stdin < /dev/null) ; then |
Jari Aalto | bb70624 | 2000-03-17 21:46:59 +0000 | [diff] [blame] | 15840 | bash_cv_dev_stdin=present |
| 15841 | else |
| 15842 | bash_cv_dev_stdin=absent |
| 15843 | fi |
| 15844 | |
| 15845 | fi |
| 15846 | |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 15847 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_dev_stdin" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 15848 | $as_echo "$bash_cv_dev_stdin" >&6; } |
Jari Aalto | bb70624 | 2000-03-17 21:46:59 +0000 | [diff] [blame] | 15849 | if test $bash_cv_dev_stdin = "present"; then |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 15850 | $as_echo "#define HAVE_DEV_STDIN 1" >>confdefs.h |
Jari Aalto | bb70624 | 2000-03-17 21:46:59 +0000 | [diff] [blame] | 15851 | |
| 15852 | fi |
| 15853 | |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 15854 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default mail directory" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 15855 | $as_echo_n "checking for default mail directory... " >&6; } |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 15856 | if ${bash_cv_mail_dir+:} false; then : |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 15857 | $as_echo_n "(cached) " >&6 |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 15858 | else |
| 15859 | if test -d /var/mail; then |
| 15860 | bash_cv_mail_dir=/var/mail |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 15861 | elif test -d /var/spool/mail; then |
| 15862 | bash_cv_mail_dir=/var/spool/mail |
Jari Aalto | 7117c2d | 2002-07-17 14:10:11 +0000 | [diff] [blame] | 15863 | elif test -d /usr/mail; then |
| 15864 | bash_cv_mail_dir=/usr/mail |
Jari Aalto | e8ce775 | 1997-09-22 20:22:27 +0000 | [diff] [blame] | 15865 | elif test -d /usr/spool/mail; then |
| 15866 | bash_cv_mail_dir=/usr/spool/mail |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 15867 | else |
| 15868 | bash_cv_mail_dir=unknown |
| 15869 | fi |
| 15870 | |
| 15871 | fi |
| 15872 | |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 15873 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_mail_dir" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 15874 | $as_echo "$bash_cv_mail_dir" >&6; } |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 15875 | cat >>confdefs.h <<_ACEOF |
Jari Aalto | 7117c2d | 2002-07-17 14:10:11 +0000 | [diff] [blame] | 15876 | #define DEFAULT_MAIL_DIRECTORY "$bash_cv_mail_dir" |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 15877 | _ACEOF |
| 15878 | |
| 15879 | |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 15880 | |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 15881 | if test "$bash_cv_job_control_missing" = missing; then |
| 15882 | opt_job_control=no |
| 15883 | fi |
| 15884 | |
| 15885 | if test "$opt_job_control" = yes; then |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 15886 | $as_echo "#define JOB_CONTROL 1" >>confdefs.h |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 15887 | |
| 15888 | JOBS_O=jobs.o |
| 15889 | else |
| 15890 | JOBS_O=nojobs.o |
| 15891 | fi |
| 15892 | |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 15893 | |
| 15894 | |
| 15895 | |
Jari Aalto | d166f04 | 1997-06-05 14:59:13 +0000 | [diff] [blame] | 15896 | LOCAL_DEFS=-DSHELL |
| 15897 | |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 15898 | |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 15899 | case "${host_os}" in |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 15900 | sysv4.2*) $as_echo "#define SVR4_2 1" >>confdefs.h |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 15901 | |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 15902 | $as_echo "#define SVR4 1" >>confdefs.h |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 15903 | ;; |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 15904 | sysv4*) $as_echo "#define SVR4 1" >>confdefs.h |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 15905 | ;; |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 15906 | sysv5*) $as_echo "#define SVR5 1" >>confdefs.h |
Jari Aalto | b72432f | 1999-02-19 17:11:39 +0000 | [diff] [blame] | 15907 | ;; |
| 15908 | hpux9*) LOCAL_CFLAGS="-DHPUX9 -DHPUX" ;; |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 15909 | hpux*) LOCAL_CFLAGS=-DHPUX ;; |
| 15910 | dgux*) LOCAL_CFLAGS=-D_DGUX_SOURCE; LOCAL_LIBS=-ldgc ;; |
Jari Aalto | bb70624 | 2000-03-17 21:46:59 +0000 | [diff] [blame] | 15911 | isc*) LOCAL_CFLAGS=-Disc386 ;; |
| 15912 | rhapsody*) LOCAL_CFLAGS=-DRHAPSODY ;; |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 15913 | darwin*) LOCAL_CFLAGS=-DMACOSX ;; |
Jari Aalto | 7117c2d | 2002-07-17 14:10:11 +0000 | [diff] [blame] | 15914 | sco3.2v5*) LOCAL_CFLAGS="-b elf -DWAITPID_BROKEN -DPATH_MAX=1024" ;; |
| 15915 | sco3.2v4*) LOCAL_CFLAGS="-DMUST_UNBLOCK_CHLD -DPATH_MAX=1024" ;; |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 15916 | sco3.2*) LOCAL_CFLAGS=-DMUST_UNBLOCK_CHLD ;; |
Jari Aalto | d166f04 | 1997-06-05 14:59:13 +0000 | [diff] [blame] | 15917 | sunos4*) LOCAL_CFLAGS=-DSunOS4 ;; |
Jari Aalto | f1be666 | 2008-11-18 13:15:12 +0000 | [diff] [blame] | 15918 | solaris2.5*) LOCAL_CFLAGS="-DSunOS5 -DSOLARIS" ;; |
Jari Aalto | 17345e5 | 2009-02-19 22:21:29 +0000 | [diff] [blame] | 15919 | solaris2.8*) LOCAL_CFLAGS=-DSOLARIS ;; |
| 15920 | solaris2.9*) LOCAL_CFLAGS=-DSOLARIS ;; |
| 15921 | solaris2.10*) LOCAL_CFLAGS=-DSOLARIS ;; |
Jari Aalto | f1be666 | 2008-11-18 13:15:12 +0000 | [diff] [blame] | 15922 | solaris2*) LOCAL_CFLAGS=-DSOLARIS ;; |
Jari Aalto | b72432f | 1999-02-19 17:11:39 +0000 | [diff] [blame] | 15923 | lynxos*) LOCAL_CFLAGS=-DRECYCLES_PIDS ;; |
Jari Aalto | 95732b4 | 2005-12-07 14:08:12 +0000 | [diff] [blame] | 15924 | linux*) LOCAL_LDFLAGS=-rdynamic # allow dynamic loading |
| 15925 | case "`uname -r`" in |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 15926 | 2.[456789]*|3*) $as_echo "#define PGRP_PIPE 1" >>confdefs.h |
Jari Aalto | 95732b4 | 2005-12-07 14:08:12 +0000 | [diff] [blame] | 15927 | ;; |
| 15928 | esac ;; |
| 15929 | *qnx6*) LOCAL_CFLAGS="-Dqnx -Dqnx6" LOCAL_LIBS="-lncurses" ;; |
Jari Aalto | 7117c2d | 2002-07-17 14:10:11 +0000 | [diff] [blame] | 15930 | *qnx*) LOCAL_CFLAGS="-Dqnx -F -3s" LOCAL_LDFLAGS="-3s" LOCAL_LIBS="-lunix -lncurses" ;; |
Jari Aalto | b72432f | 1999-02-19 17:11:39 +0000 | [diff] [blame] | 15931 | powerux*) LOCAL_LIBS="-lgen" ;; |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 15932 | cygwin*) LOCAL_CFLAGS=-DRECYCLES_PIDS ;; |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 15933 | opennt*|interix*) LOCAL_CFLAGS="-DNO_MAIN_ENV_ARG -DBROKEN_DIRENT_D_INO -D_POSIX_SOURCE -D_ALL_SOURCE -DRECYCLES_PIDS" ;; |
| 15934 | *openstep*) LOCAL_CFLAGS="-D__APPLE_CC__" ;; |
Jari Aalto | b72432f | 1999-02-19 17:11:39 +0000 | [diff] [blame] | 15935 | esac |
| 15936 | |
| 15937 | case "${host_os}-${CC}" in |
| 15938 | aix4.2*-*gcc*) LOCAL_LDFLAGS="-Xlinker -bexpall -Xlinker -brtl" ;; |
| 15939 | aix4.2*) LOCAL_LDFLAGS="-bexpall -brtl" ;; |
| 15940 | bsdi4*-*gcc*) LOCAL_LDFLAGS="-rdynamic" ;; # allow dynamic loading, like Linux |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 15941 | esac |
| 15942 | |
Jari Aalto | bb70624 | 2000-03-17 21:46:59 +0000 | [diff] [blame] | 15943 | case "${host_os}" in |
Jari Aalto | 28ef6c3 | 2001-04-06 19:14:31 +0000 | [diff] [blame] | 15944 | freebsd[3-9]*) |
| 15945 | if test -x /usr/bin/objformat && test "`/usr/bin/objformat`" = "elf" ; then |
Jari Aalto | bb70624 | 2000-03-17 21:46:59 +0000 | [diff] [blame] | 15946 | LOCAL_LDFLAGS=-rdynamic # allow dynamic loading |
| 15947 | fi ;; |
Jari Aalto | 28ef6c3 | 2001-04-06 19:14:31 +0000 | [diff] [blame] | 15948 | freebsdelf*) LOCAL_LDFLAGS=-rdynamic ;; # allow dynamic loading |
Jari Aalto | 95732b4 | 2005-12-07 14:08:12 +0000 | [diff] [blame] | 15949 | dragonfly*) LOCAL_LDFLAGS=-rdynamic ;; # allow dynamic loading |
Jari Aalto | bb70624 | 2000-03-17 21:46:59 +0000 | [diff] [blame] | 15950 | esac |
| 15951 | |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 15952 | case "$host_cpu" in |
| 15953 | *cray*) LOCAL_CFLAGS="-DCRAY" ;; # shell var so config.h can use it |
| 15954 | esac |
| 15955 | |
| 15956 | case "$host_cpu-$host_os" in |
| 15957 | ibmrt-*bsd4*) LOCAL_CFLAGS="-ma -U__STDC__" ;; |
| 15958 | esac |
| 15959 | |
| 15960 | case "$host_cpu-$host_vendor-$host_os" in |
| 15961 | m88k-motorola-sysv3) LOCAL_CFLAGS=-DWAITPID_BROKEN ;; |
| 15962 | mips-pyramid-sysv4) LOCAL_CFLAGS=-Xa ;; |
| 15963 | esac |
| 15964 | |
Jari Aalto | b72432f | 1999-02-19 17:11:39 +0000 | [diff] [blame] | 15965 | # |
| 15966 | # Shared object configuration section. These values are generated by |
| 15967 | # ${srcdir}/support/shobj-conf |
| 15968 | # |
| 15969 | if test "$ac_cv_func_dlopen" = "yes" && test -f ${srcdir}/support/shobj-conf |
| 15970 | then |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 15971 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking shared object configuration for loadable builtins" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 15972 | $as_echo_n "checking shared object configuration for loadable builtins... " >&6; } |
Jari Aalto | 28ef6c3 | 2001-04-06 19:14:31 +0000 | [diff] [blame] | 15973 | eval `${CONFIG_SHELL-/bin/sh} ${srcdir}/support/shobj-conf -C "${CC}" -c "${host_cpu}" -o "${host_os}" -v "${host_vendor}"` |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 15974 | |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 15975 | |
| 15976 | |
| 15977 | |
| 15978 | |
| 15979 | |
| 15980 | |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 15981 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SHOBJ_STATUS" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 15982 | $as_echo "$SHOBJ_STATUS" >&6; } |
Jari Aalto | b72432f | 1999-02-19 17:11:39 +0000 | [diff] [blame] | 15983 | fi |
| 15984 | |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 15985 | # try to create a directory tree if the source is elsewhere |
| 15986 | # this should be packaged into a script accessible via ${srcdir}/support |
| 15987 | case "$srcdir" in |
| 15988 | .) ;; |
Jari Aalto | cce855b | 1998-04-17 19:52:44 +0000 | [diff] [blame] | 15989 | *) for d in doc tests support lib examples; do # dirs |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 15990 | test -d $d || mkdir $d |
| 15991 | done |
Jari Aalto | cce855b | 1998-04-17 19:52:44 +0000 | [diff] [blame] | 15992 | for ld in readline glob tilde malloc sh termcap; do # libdirs |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 15993 | test -d lib/$ld || mkdir lib/$ld |
| 15994 | done |
Jari Aalto | cce855b | 1998-04-17 19:52:44 +0000 | [diff] [blame] | 15995 | test -d examples/loadables || mkdir examples/loadables # loadable builtins |
Jari Aalto | bb70624 | 2000-03-17 21:46:59 +0000 | [diff] [blame] | 15996 | test -d examples/loadables/perl || mkdir examples/loadables/perl |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 15997 | ;; |
| 15998 | esac |
| 15999 | |
| 16000 | BUILD_DIR=`pwd` |
Jari Aalto | 95732b4 | 2005-12-07 14:08:12 +0000 | [diff] [blame] | 16001 | case "$BUILD_DIR" in |
| 16002 | *\ *) BUILD_DIR=`echo "$BUILD_DIR" | sed 's: :\\\\ :g'` ;; |
| 16003 | *) ;; |
| 16004 | esac |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 16005 | |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 16006 | if test -z "$localedir"; then |
| 16007 | localedir='${datarootdir}/locale' |
| 16008 | fi |
| 16009 | if test -z "$datarootdir"; then |
| 16010 | datarootdir='${prefix}/share' |
| 16011 | fi |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 16012 | |
| 16013 | |
| 16014 | |
| 16015 | |
| 16016 | |
| 16017 | |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 16018 | # Some versions of autoconf don't substitute these automatically |
| 16019 | |
| 16020 | |
| 16021 | |
| 16022 | |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 16023 | |
| 16024 | |
| 16025 | |
| 16026 | |
| 16027 | |
| 16028 | |
| 16029 | |
| 16030 | |
| 16031 | |
| 16032 | |
| 16033 | |
| 16034 | |
| 16035 | |
| 16036 | |
| 16037 | |
| 16038 | |
| 16039 | |
Jari Aalto | d166f04 | 1997-06-05 14:59:13 +0000 | [diff] [blame] | 16040 | #AC_SUBST(ALLOCA_SOURCE) |
| 16041 | #AC_SUBST(ALLOCA_OBJECT) |
| 16042 | |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 16043 | ac_config_files="$ac_config_files Makefile builtins/Makefile lib/readline/Makefile lib/glob/Makefile lib/intl/Makefile lib/malloc/Makefile lib/sh/Makefile lib/termcap/Makefile lib/tilde/Makefile doc/Makefile support/Makefile po/Makefile.in examples/loadables/Makefile examples/loadables/perl/Makefile" |
| 16044 | |
| 16045 | ac_config_commands="$ac_config_commands default" |
| 16046 | |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 16047 | cat >confcache <<\_ACEOF |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 16048 | # This file is a shell script that caches the results of configure |
| 16049 | # tests run on this system so they can be shared between configure |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 16050 | # scripts and configure runs, see configure's option --config-cache. |
| 16051 | # It is not useful on other systems. If it contains results you don't |
| 16052 | # want to keep, you may remove or edit it. |
Jari Aalto | 726f638 | 1996-08-26 18:22:31 +0000 | [diff] [blame] | 16053 | # |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 16054 | # config.status only pays attention to the cache file if you give it |
| 16055 | # the --recheck option to rerun configure. |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 16056 | # |
Jari Aalto | 0628567 | 2006-10-10 14:15:34 +0000 | [diff] [blame] | 16057 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 16058 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
| 16059 | # following values. |
| 16060 | |
| 16061 | _ACEOF |
| 16062 | |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 16063 | # The following way of writing the cache mishandles newlines in values, |
| 16064 | # but we know of no workaround that is simple, portable, and efficient. |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 16065 | # So, we kill variables containing newlines. |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 16066 | # Ultrix sh set writes to stderr and can't be redirected directly, |
| 16067 | # and sets the high bit in the cache file unless we assign to the vars. |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 16068 | ( |
| 16069 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do |
| 16070 | eval ac_val=\$$ac_var |
| 16071 | case $ac_val in #( |
| 16072 | *${as_nl}*) |
| 16073 | case $ac_var in #( |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 16074 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 16075 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
| 16076 | esac |
| 16077 | case $ac_var in #( |
| 16078 | _ | IFS | as_nl) ;; #( |
| 16079 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 16080 | *) { eval $ac_var=; unset $ac_var;} ;; |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 16081 | esac ;; |
| 16082 | esac |
| 16083 | done |
| 16084 | |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 16085 | (set) 2>&1 | |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 16086 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
| 16087 | *${as_nl}ac_space=\ *) |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 16088 | # `set' does not quote correctly, so add quotes: double-quote |
| 16089 | # substitution turns \\\\ into \\, and sed turns \\ into \. |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 16090 | sed -n \ |
Jari Aalto | 0628567 | 2006-10-10 14:15:34 +0000 | [diff] [blame] | 16091 | "s/'/'\\\\''/g; |
| 16092 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 16093 | ;; #( |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 16094 | *) |
| 16095 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 16096 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 16097 | ;; |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 16098 | esac | |
| 16099 | sort |
| 16100 | ) | |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 16101 | sed ' |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 16102 | /^ac_cv_env_/b end |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 16103 | t clear |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 16104 | :clear |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 16105 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
| 16106 | t end |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 16107 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
| 16108 | :end' >>confcache |
| 16109 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else |
| 16110 | if test -w "$cache_file"; then |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 16111 | if test "x$cache_file" != "x/dev/null"; then |
| 16112 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 16113 | $as_echo "$as_me: updating cache $cache_file" >&6;} |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 16114 | if test ! -f "$cache_file" || test -h "$cache_file"; then |
| 16115 | cat confcache >"$cache_file" |
| 16116 | else |
| 16117 | case $cache_file in #( |
| 16118 | */* | ?:*) |
| 16119 | mv -f confcache "$cache_file"$$ && |
| 16120 | mv -f "$cache_file"$$ "$cache_file" ;; #( |
| 16121 | *) |
| 16122 | mv -f confcache "$cache_file" ;; |
| 16123 | esac |
| 16124 | fi |
| 16125 | fi |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 16126 | else |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 16127 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 16128 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 16129 | fi |
| 16130 | fi |
| 16131 | rm -f confcache |
| 16132 | |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 16133 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
| 16134 | # Let make expand exec_prefix. |
| 16135 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
| 16136 | |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 16137 | DEFS=-DHAVE_CONFIG_H |
| 16138 | |
Jari Aalto | 0628567 | 2006-10-10 14:15:34 +0000 | [diff] [blame] | 16139 | ac_libobjs= |
| 16140 | ac_ltlibobjs= |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 16141 | U= |
Jari Aalto | 0628567 | 2006-10-10 14:15:34 +0000 | [diff] [blame] | 16142 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
| 16143 | # 1. Remove the extension, and $U if already installed. |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 16144 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
| 16145 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` |
| 16146 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
| 16147 | # will be set to the directory where LIBOBJS objects are built. |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 16148 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" |
| 16149 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' |
Jari Aalto | 0628567 | 2006-10-10 14:15:34 +0000 | [diff] [blame] | 16150 | done |
| 16151 | LIBOBJS=$ac_libobjs |
| 16152 | |
| 16153 | LTLIBOBJS=$ac_ltlibobjs |
| 16154 | |
| 16155 | |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 16156 | |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 16157 | |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 16158 | : "${CONFIG_STATUS=./config.status}" |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 16159 | ac_write_fail=0 |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 16160 | ac_clean_files_save=$ac_clean_files |
| 16161 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 16162 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 16163 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 16164 | as_write_fail=0 |
| 16165 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 16166 | #! $SHELL |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 16167 | # Generated by $as_me. |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 16168 | # Run this file to recreate the current configuration. |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 16169 | # Compiler output produced by configure, useful for debugging |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 16170 | # configure, is in config.log if it exists. |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 16171 | |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 16172 | debug=false |
Jari Aalto | 0628567 | 2006-10-10 14:15:34 +0000 | [diff] [blame] | 16173 | ac_cs_recheck=false |
| 16174 | ac_cs_silent=false |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 16175 | |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 16176 | SHELL=\${CONFIG_SHELL-$SHELL} |
| 16177 | export SHELL |
| 16178 | _ASEOF |
| 16179 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 |
| 16180 | ## -------------------- ## |
| 16181 | ## M4sh Initialization. ## |
| 16182 | ## -------------------- ## |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 16183 | |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 16184 | # Be more Bourne compatible |
| 16185 | DUALCASE=1; export DUALCASE # for MKS sh |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 16186 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 16187 | emulate sh |
| 16188 | NULLCMD=: |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 16189 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
Jari Aalto | 0628567 | 2006-10-10 14:15:34 +0000 | [diff] [blame] | 16190 | # is contrary to our usage. Disable this feature. |
| 16191 | alias -g '${1+"$@"}'='"$@"' |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 16192 | setopt NO_GLOB_SUBST |
| 16193 | else |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 16194 | case `(set -o) 2>/dev/null` in #( |
| 16195 | *posix*) : |
| 16196 | set -o posix ;; #( |
| 16197 | *) : |
| 16198 | ;; |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 16199 | esac |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 16200 | fi |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 16201 | |
| 16202 | |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 16203 | as_nl=' |
| 16204 | ' |
| 16205 | export as_nl |
| 16206 | # Printing a long string crashes Solaris 7 /usr/bin/printf. |
| 16207 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
| 16208 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo |
| 16209 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 16210 | # Prefer a ksh shell builtin over an external printf program on Solaris, |
| 16211 | # but without wasting forks for bash or zsh. |
| 16212 | if test -z "$BASH_VERSION$ZSH_VERSION" \ |
| 16213 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then |
| 16214 | as_echo='print -r --' |
| 16215 | as_echo_n='print -rn --' |
| 16216 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 16217 | as_echo='printf %s\n' |
| 16218 | as_echo_n='printf %s' |
| 16219 | else |
| 16220 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then |
| 16221 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' |
| 16222 | as_echo_n='/usr/ucb/echo -n' |
| 16223 | else |
| 16224 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
| 16225 | as_echo_n_body='eval |
| 16226 | arg=$1; |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 16227 | case $arg in #( |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 16228 | *"$as_nl"*) |
| 16229 | expr "X$arg" : "X\\(.*\\)$as_nl"; |
| 16230 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; |
| 16231 | esac; |
| 16232 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" |
| 16233 | ' |
| 16234 | export as_echo_n_body |
| 16235 | as_echo_n='sh -c $as_echo_n_body as_echo' |
| 16236 | fi |
| 16237 | export as_echo_body |
| 16238 | as_echo='sh -c $as_echo_body as_echo' |
| 16239 | fi |
| 16240 | |
| 16241 | # The user is always right. |
| 16242 | if test "${PATH_SEPARATOR+set}" != set; then |
| 16243 | PATH_SEPARATOR=: |
| 16244 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { |
| 16245 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || |
| 16246 | PATH_SEPARATOR=';' |
| 16247 | } |
| 16248 | fi |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 16249 | |
Jari Aalto | 0628567 | 2006-10-10 14:15:34 +0000 | [diff] [blame] | 16250 | |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 16251 | # IFS |
| 16252 | # We need space, tab and new line, in precisely that order. Quoting is |
| 16253 | # there to prevent editors from complaining about space-tab. |
| 16254 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
| 16255 | # splitting by setting IFS to empty value.) |
| 16256 | IFS=" "" $as_nl" |
| 16257 | |
| 16258 | # Find who we are. Look in the path if we contain no directory separator. |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 16259 | as_myself= |
| 16260 | case $0 in #(( |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 16261 | *[\\/]* ) as_myself=$0 ;; |
| 16262 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 16263 | for as_dir in $PATH |
| 16264 | do |
| 16265 | IFS=$as_save_IFS |
| 16266 | test -z "$as_dir" && as_dir=. |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 16267 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 16268 | done |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 16269 | IFS=$as_save_IFS |
| 16270 | |
| 16271 | ;; |
| 16272 | esac |
| 16273 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 16274 | # in which case we are not to be found in the path. |
| 16275 | if test "x$as_myself" = x; then |
| 16276 | as_myself=$0 |
| 16277 | fi |
| 16278 | if test ! -f "$as_myself"; then |
| 16279 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 16280 | exit 1 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 16281 | fi |
| 16282 | |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 16283 | # Unset variables that we do not need and which cause bugs (e.g. in |
| 16284 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" |
| 16285 | # suppresses any "Segmentation fault" message there. '((' could |
| 16286 | # trigger a bug in pdksh 5.2.14. |
| 16287 | for as_var in BASH_ENV ENV MAIL MAILPATH |
| 16288 | do eval test x\${$as_var+set} = xset \ |
| 16289 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 16290 | done |
Jari Aalto | 0628567 | 2006-10-10 14:15:34 +0000 | [diff] [blame] | 16291 | PS1='$ ' |
| 16292 | PS2='> ' |
| 16293 | PS4='+ ' |
| 16294 | |
| 16295 | # NLS nuisances. |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 16296 | LC_ALL=C |
| 16297 | export LC_ALL |
| 16298 | LANGUAGE=C |
| 16299 | export LANGUAGE |
Jari Aalto | 0628567 | 2006-10-10 14:15:34 +0000 | [diff] [blame] | 16300 | |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 16301 | # CDPATH. |
| 16302 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
| 16303 | |
| 16304 | |
| 16305 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
| 16306 | # ---------------------------------------- |
| 16307 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
| 16308 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the |
| 16309 | # script with STATUS, using 1 if that was 0. |
| 16310 | as_fn_error () |
| 16311 | { |
| 16312 | as_status=$1; test $as_status -eq 0 && as_status=1 |
| 16313 | if test "$4"; then |
| 16314 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 16315 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 |
| 16316 | fi |
| 16317 | $as_echo "$as_me: error: $2" >&2 |
| 16318 | as_fn_exit $as_status |
| 16319 | } # as_fn_error |
| 16320 | |
| 16321 | |
| 16322 | # as_fn_set_status STATUS |
| 16323 | # ----------------------- |
| 16324 | # Set $? to STATUS, without forking. |
| 16325 | as_fn_set_status () |
| 16326 | { |
| 16327 | return $1 |
| 16328 | } # as_fn_set_status |
| 16329 | |
| 16330 | # as_fn_exit STATUS |
| 16331 | # ----------------- |
| 16332 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. |
| 16333 | as_fn_exit () |
| 16334 | { |
| 16335 | set +e |
| 16336 | as_fn_set_status $1 |
| 16337 | exit $1 |
| 16338 | } # as_fn_exit |
| 16339 | |
| 16340 | # as_fn_unset VAR |
| 16341 | # --------------- |
| 16342 | # Portably unset VAR. |
| 16343 | as_fn_unset () |
| 16344 | { |
| 16345 | { eval $1=; unset $1;} |
| 16346 | } |
| 16347 | as_unset=as_fn_unset |
| 16348 | # as_fn_append VAR VALUE |
| 16349 | # ---------------------- |
| 16350 | # Append the text in VALUE to the end of the definition contained in VAR. Take |
| 16351 | # advantage of any shell optimizations that allow amortized linear growth over |
| 16352 | # repeated appends, instead of the typical quadratic growth present in naive |
| 16353 | # implementations. |
| 16354 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : |
| 16355 | eval 'as_fn_append () |
| 16356 | { |
| 16357 | eval $1+=\$2 |
| 16358 | }' |
| 16359 | else |
| 16360 | as_fn_append () |
| 16361 | { |
| 16362 | eval $1=\$$1\$2 |
| 16363 | } |
| 16364 | fi # as_fn_append |
| 16365 | |
| 16366 | # as_fn_arith ARG... |
| 16367 | # ------------------ |
| 16368 | # Perform arithmetic evaluation on the ARGs, and store the result in the |
| 16369 | # global $as_val. Take advantage of shells that can avoid forks. The arguments |
| 16370 | # must be portable across $(()) and expr. |
| 16371 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : |
| 16372 | eval 'as_fn_arith () |
| 16373 | { |
| 16374 | as_val=$(( $* )) |
| 16375 | }' |
| 16376 | else |
| 16377 | as_fn_arith () |
| 16378 | { |
| 16379 | as_val=`expr "$@" || test $? -eq 1` |
| 16380 | } |
| 16381 | fi # as_fn_arith |
| 16382 | |
| 16383 | |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 16384 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 16385 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
Jari Aalto | 0628567 | 2006-10-10 14:15:34 +0000 | [diff] [blame] | 16386 | as_expr=expr |
| 16387 | else |
| 16388 | as_expr=false |
| 16389 | fi |
| 16390 | |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 16391 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
Jari Aalto | 0628567 | 2006-10-10 14:15:34 +0000 | [diff] [blame] | 16392 | as_basename=basename |
| 16393 | else |
| 16394 | as_basename=false |
| 16395 | fi |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 16396 | |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 16397 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
| 16398 | as_dirname=dirname |
| 16399 | else |
| 16400 | as_dirname=false |
| 16401 | fi |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 16402 | |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 16403 | as_me=`$as_basename -- "$0" || |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 16404 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 16405 | X"$0" : 'X\(//\)$' \| \ |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 16406 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
| 16407 | $as_echo X/"$0" | |
| 16408 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
| 16409 | s//\1/ |
| 16410 | q |
| 16411 | } |
| 16412 | /^X\/\(\/\/\)$/{ |
| 16413 | s//\1/ |
| 16414 | q |
| 16415 | } |
| 16416 | /^X\/\(\/\).*/{ |
| 16417 | s//\1/ |
| 16418 | q |
| 16419 | } |
| 16420 | s/.*/./; q'` |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 16421 | |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 16422 | # Avoid depending upon Character Ranges. |
| 16423 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 16424 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 16425 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 16426 | as_cr_digits='0123456789' |
| 16427 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 16428 | |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 16429 | ECHO_C= ECHO_N= ECHO_T= |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 16430 | case `echo -n x` in #((((( |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 16431 | -n*) |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 16432 | case `echo 'xy\c'` in |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 16433 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 16434 | xy) ECHO_C='\c';; |
| 16435 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null |
| 16436 | ECHO_T=' ';; |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 16437 | esac;; |
| 16438 | *) |
| 16439 | ECHO_N='-n';; |
| 16440 | esac |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 16441 | |
| 16442 | rm -f conf$$ conf$$.exe conf$$.file |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 16443 | if test -d conf$$.dir; then |
| 16444 | rm -f conf$$.dir/conf$$.file |
| 16445 | else |
| 16446 | rm -f conf$$.dir |
| 16447 | mkdir conf$$.dir 2>/dev/null |
| 16448 | fi |
| 16449 | if (echo >conf$$.file) 2>/dev/null; then |
| 16450 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 16451 | as_ln_s='ln -s' |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 16452 | # ... but there are two gotchas: |
| 16453 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
| 16454 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 16455 | # In both cases, we have to default to `cp -pR'. |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 16456 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 16457 | as_ln_s='cp -pR' |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 16458 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 16459 | as_ln_s=ln |
| 16460 | else |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 16461 | as_ln_s='cp -pR' |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 16462 | fi |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 16463 | else |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 16464 | as_ln_s='cp -pR' |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 16465 | fi |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 16466 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
| 16467 | rmdir conf$$.dir 2>/dev/null |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 16468 | |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 16469 | |
| 16470 | # as_fn_mkdir_p |
| 16471 | # ------------- |
| 16472 | # Create "$as_dir" as a directory, including parents if necessary. |
| 16473 | as_fn_mkdir_p () |
| 16474 | { |
| 16475 | |
| 16476 | case $as_dir in #( |
| 16477 | -*) as_dir=./$as_dir;; |
| 16478 | esac |
| 16479 | test -d "$as_dir" || eval $as_mkdir_p || { |
| 16480 | as_dirs= |
| 16481 | while :; do |
| 16482 | case $as_dir in #( |
| 16483 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
| 16484 | *) as_qdir=$as_dir;; |
| 16485 | esac |
| 16486 | as_dirs="'$as_qdir' $as_dirs" |
| 16487 | as_dir=`$as_dirname -- "$as_dir" || |
| 16488 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 16489 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 16490 | X"$as_dir" : 'X\(//\)$' \| \ |
| 16491 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
| 16492 | $as_echo X"$as_dir" | |
| 16493 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 16494 | s//\1/ |
| 16495 | q |
| 16496 | } |
| 16497 | /^X\(\/\/\)[^/].*/{ |
| 16498 | s//\1/ |
| 16499 | q |
| 16500 | } |
| 16501 | /^X\(\/\/\)$/{ |
| 16502 | s//\1/ |
| 16503 | q |
| 16504 | } |
| 16505 | /^X\(\/\).*/{ |
| 16506 | s//\1/ |
| 16507 | q |
| 16508 | } |
| 16509 | s/.*/./; q'` |
| 16510 | test -d "$as_dir" && break |
| 16511 | done |
| 16512 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
| 16513 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
| 16514 | |
| 16515 | |
| 16516 | } # as_fn_mkdir_p |
Jari Aalto | 0628567 | 2006-10-10 14:15:34 +0000 | [diff] [blame] | 16517 | if mkdir -p . 2>/dev/null; then |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 16518 | as_mkdir_p='mkdir -p "$as_dir"' |
Jari Aalto | 0628567 | 2006-10-10 14:15:34 +0000 | [diff] [blame] | 16519 | else |
| 16520 | test -d ./-p && rmdir ./-p |
| 16521 | as_mkdir_p=false |
| 16522 | fi |
| 16523 | |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 16524 | |
| 16525 | # as_fn_executable_p FILE |
| 16526 | # ----------------------- |
| 16527 | # Test if FILE is an executable regular file. |
| 16528 | as_fn_executable_p () |
| 16529 | { |
| 16530 | test -f "$1" && test -x "$1" |
| 16531 | } # as_fn_executable_p |
| 16532 | as_test_x='test -x' |
| 16533 | as_executable_p=as_fn_executable_p |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 16534 | |
| 16535 | # Sed expression to map a string onto a valid CPP name. |
Jari Aalto | 0628567 | 2006-10-10 14:15:34 +0000 | [diff] [blame] | 16536 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 16537 | |
| 16538 | # Sed expression to map a string onto a valid variable name. |
Jari Aalto | 0628567 | 2006-10-10 14:15:34 +0000 | [diff] [blame] | 16539 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 16540 | |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 16541 | |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 16542 | exec 6>&1 |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 16543 | ## ----------------------------------- ## |
| 16544 | ## Main body of $CONFIG_STATUS script. ## |
| 16545 | ## ----------------------------------- ## |
| 16546 | _ASEOF |
| 16547 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 16548 | |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 16549 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 16550 | # Save the log message, to keep $0 and so on meaningful, and to |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 16551 | # report actual input values of CONFIG_FILES etc. instead of their |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 16552 | # values after options handling. |
| 16553 | ac_log=" |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 16554 | This file was extended by bash $as_me 4.3-release, which was |
| 16555 | generated by GNU Autoconf 2.69. Invocation command line was |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 16556 | |
| 16557 | CONFIG_FILES = $CONFIG_FILES |
| 16558 | CONFIG_HEADERS = $CONFIG_HEADERS |
| 16559 | CONFIG_LINKS = $CONFIG_LINKS |
| 16560 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
| 16561 | $ $0 $@ |
| 16562 | |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 16563 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 16564 | " |
| 16565 | |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 16566 | _ACEOF |
| 16567 | |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 16568 | case $ac_config_files in *" |
| 16569 | "*) set x $ac_config_files; shift; ac_config_files=$*;; |
| 16570 | esac |
| 16571 | |
| 16572 | case $ac_config_headers in *" |
| 16573 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;; |
| 16574 | esac |
| 16575 | |
| 16576 | |
| 16577 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 16578 | # Files that config.status was made for. |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 16579 | config_files="$ac_config_files" |
| 16580 | config_headers="$ac_config_headers" |
| 16581 | config_commands="$ac_config_commands" |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 16582 | |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 16583 | _ACEOF |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 16584 | |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 16585 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 16586 | ac_cs_usage="\ |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 16587 | \`$as_me' instantiates files and other configuration actions |
| 16588 | from templates according to the current configuration. Unless the files |
| 16589 | and actions are specified as TAGs, all are instantiated by default. |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 16590 | |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 16591 | Usage: $0 [OPTION]... [TAG]... |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 16592 | |
| 16593 | -h, --help print this help, then exit |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 16594 | -V, --version print version number and configuration settings, then exit |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 16595 | --config print configuration, then exit |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 16596 | -q, --quiet, --silent |
| 16597 | do not print progress messages |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 16598 | -d, --debug don't remove temporary files |
| 16599 | --recheck update $as_me by reconfiguring in the same conditions |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 16600 | --file=FILE[:TEMPLATE] |
| 16601 | instantiate the configuration file FILE |
| 16602 | --header=FILE[:TEMPLATE] |
| 16603 | instantiate the configuration header FILE |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 16604 | |
| 16605 | Configuration files: |
| 16606 | $config_files |
| 16607 | |
| 16608 | Configuration headers: |
| 16609 | $config_headers |
| 16610 | |
| 16611 | Configuration commands: |
| 16612 | $config_commands |
| 16613 | |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 16614 | Report bugs to <bug-bash@gnu.org>." |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 16615 | |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 16616 | _ACEOF |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 16617 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 16618 | ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 16619 | ac_cs_version="\\ |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 16620 | bash config.status 4.3-release |
| 16621 | configured by $0, generated by GNU Autoconf 2.69, |
| 16622 | with options \\"\$ac_cs_config\\" |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 16623 | |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 16624 | Copyright (C) 2012 Free Software Foundation, Inc. |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 16625 | This config.status script is free software; the Free Software Foundation |
| 16626 | gives unlimited permission to copy, distribute and modify it." |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 16627 | |
| 16628 | ac_pwd='$ac_pwd' |
| 16629 | srcdir='$srcdir' |
| 16630 | INSTALL='$INSTALL' |
| 16631 | test -n "\$AWK" || AWK=awk |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 16632 | _ACEOF |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 16633 | |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 16634 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 16635 | # The default lists apply if the user does not specify any file. |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 16636 | ac_need_defaults=: |
| 16637 | while test $# != 0 |
| 16638 | do |
| 16639 | case $1 in |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 16640 | --*=?*) |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 16641 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
| 16642 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` |
Jari Aalto | 0628567 | 2006-10-10 14:15:34 +0000 | [diff] [blame] | 16643 | ac_shift=: |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 16644 | ;; |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 16645 | --*=) |
| 16646 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
| 16647 | ac_optarg= |
| 16648 | ac_shift=: |
| 16649 | ;; |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 16650 | *) |
Jari Aalto | 0628567 | 2006-10-10 14:15:34 +0000 | [diff] [blame] | 16651 | ac_option=$1 |
| 16652 | ac_optarg=$2 |
| 16653 | ac_shift=shift |
| 16654 | ;; |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 16655 | esac |
| 16656 | |
Jari Aalto | 0628567 | 2006-10-10 14:15:34 +0000 | [diff] [blame] | 16657 | case $ac_option in |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 16658 | # Handling of the options. |
Jari Aalto | 0628567 | 2006-10-10 14:15:34 +0000 | [diff] [blame] | 16659 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
| 16660 | ac_cs_recheck=: ;; |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 16661 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
| 16662 | $as_echo "$ac_cs_version"; exit ;; |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 16663 | --config | --confi | --conf | --con | --co | --c ) |
| 16664 | $as_echo "$ac_cs_config"; exit ;; |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 16665 | --debug | --debu | --deb | --de | --d | -d ) |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 16666 | debug=: ;; |
| 16667 | --file | --fil | --fi | --f ) |
Jari Aalto | 0628567 | 2006-10-10 14:15:34 +0000 | [diff] [blame] | 16668 | $ac_shift |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 16669 | case $ac_optarg in |
| 16670 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 16671 | '') as_fn_error $? "missing file argument" ;; |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 16672 | esac |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 16673 | as_fn_append CONFIG_FILES " '$ac_optarg'" |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 16674 | ac_need_defaults=false;; |
| 16675 | --header | --heade | --head | --hea ) |
Jari Aalto | 0628567 | 2006-10-10 14:15:34 +0000 | [diff] [blame] | 16676 | $ac_shift |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 16677 | case $ac_optarg in |
| 16678 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 16679 | esac |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 16680 | as_fn_append CONFIG_HEADERS " '$ac_optarg'" |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 16681 | ac_need_defaults=false;; |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 16682 | --he | --h) |
| 16683 | # Conflict between --help and --header |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 16684 | as_fn_error $? "ambiguous option: \`$1' |
| 16685 | Try \`$0 --help' for more information.";; |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 16686 | --help | --hel | -h ) |
| 16687 | $as_echo "$ac_cs_usage"; exit ;; |
Jari Aalto | 0628567 | 2006-10-10 14:15:34 +0000 | [diff] [blame] | 16688 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 16689 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
| 16690 | ac_cs_silent=: ;; |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 16691 | |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 16692 | # This is an error. |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 16693 | -*) as_fn_error $? "unrecognized option: \`$1' |
| 16694 | Try \`$0 --help' for more information." ;; |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 16695 | |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 16696 | *) as_fn_append ac_config_targets " $1" |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 16697 | ac_need_defaults=false ;; |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 16698 | |
| 16699 | esac |
| 16700 | shift |
| 16701 | done |
| 16702 | |
Jari Aalto | 0628567 | 2006-10-10 14:15:34 +0000 | [diff] [blame] | 16703 | ac_configure_extra_args= |
| 16704 | |
| 16705 | if $ac_cs_silent; then |
| 16706 | exec 6>/dev/null |
| 16707 | ac_configure_extra_args="$ac_configure_extra_args --silent" |
| 16708 | fi |
| 16709 | |
| 16710 | _ACEOF |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 16711 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
Jari Aalto | 0628567 | 2006-10-10 14:15:34 +0000 | [diff] [blame] | 16712 | if \$ac_cs_recheck; then |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 16713 | set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 16714 | shift |
| 16715 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 |
| 16716 | CONFIG_SHELL='$SHELL' |
| 16717 | export CONFIG_SHELL |
| 16718 | exec "\$@" |
Jari Aalto | 0628567 | 2006-10-10 14:15:34 +0000 | [diff] [blame] | 16719 | fi |
| 16720 | |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 16721 | _ACEOF |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 16722 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 16723 | exec 5>>config.log |
| 16724 | { |
| 16725 | echo |
| 16726 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
| 16727 | ## Running $as_me. ## |
| 16728 | _ASBOX |
| 16729 | $as_echo "$ac_log" |
| 16730 | } >&5 |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 16731 | |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 16732 | _ACEOF |
| 16733 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 16734 | # |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 16735 | # INIT-COMMANDS |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 16736 | # |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 16737 | # Capture the value of obsolete ALL_LINGUAS because we need it to compute |
| 16738 | # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it |
| 16739 | # from automake. |
| 16740 | eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"' |
| 16741 | # Capture the value of LINGUAS because we need it to compute CATALOGS. |
| 16742 | LINGUAS="${LINGUAS-%UNSET%}" |
| 16743 | |
| 16744 | |
| 16745 | _ACEOF |
| 16746 | |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 16747 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 16748 | |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 16749 | # Handling of arguments. |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 16750 | for ac_config_target in $ac_config_targets |
| 16751 | do |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 16752 | case $ac_config_target in |
| 16753 | "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; |
| 16754 | "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;; |
| 16755 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; |
| 16756 | "builtins/Makefile") CONFIG_FILES="$CONFIG_FILES builtins/Makefile" ;; |
| 16757 | "lib/readline/Makefile") CONFIG_FILES="$CONFIG_FILES lib/readline/Makefile" ;; |
| 16758 | "lib/glob/Makefile") CONFIG_FILES="$CONFIG_FILES lib/glob/Makefile" ;; |
| 16759 | "lib/intl/Makefile") CONFIG_FILES="$CONFIG_FILES lib/intl/Makefile" ;; |
| 16760 | "lib/malloc/Makefile") CONFIG_FILES="$CONFIG_FILES lib/malloc/Makefile" ;; |
| 16761 | "lib/sh/Makefile") CONFIG_FILES="$CONFIG_FILES lib/sh/Makefile" ;; |
| 16762 | "lib/termcap/Makefile") CONFIG_FILES="$CONFIG_FILES lib/termcap/Makefile" ;; |
| 16763 | "lib/tilde/Makefile") CONFIG_FILES="$CONFIG_FILES lib/tilde/Makefile" ;; |
| 16764 | "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; |
| 16765 | "support/Makefile") CONFIG_FILES="$CONFIG_FILES support/Makefile" ;; |
| 16766 | "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;; |
| 16767 | "examples/loadables/Makefile") CONFIG_FILES="$CONFIG_FILES examples/loadables/Makefile" ;; |
| 16768 | "examples/loadables/perl/Makefile") CONFIG_FILES="$CONFIG_FILES examples/loadables/perl/Makefile" ;; |
| 16769 | "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;; |
| 16770 | |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 16771 | *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 16772 | esac |
| 16773 | done |
| 16774 | |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 16775 | |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 16776 | # If the user did not use the arguments to specify the items to instantiate, |
| 16777 | # then the envvar interface is used. Set only those that are not. |
| 16778 | # We use the long form for the default assignment because of an extremely |
| 16779 | # bizarre bug on SunOS 4.1.3. |
| 16780 | if $ac_need_defaults; then |
| 16781 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
| 16782 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
| 16783 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands |
| 16784 | fi |
| 16785 | |
Jari Aalto | 0628567 | 2006-10-10 14:15:34 +0000 | [diff] [blame] | 16786 | # Have a temporary directory for convenience. Make it in the build tree |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 16787 | # simply because there is no reason against having it here, and in addition, |
Jari Aalto | 0628567 | 2006-10-10 14:15:34 +0000 | [diff] [blame] | 16788 | # creating and moving files from /tmp can sometimes cause problems. |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 16789 | # Hook for its removal unless debugging. |
| 16790 | # Note that there is a small window in which the directory will not be cleaned: |
| 16791 | # after its creation but before its name has been assigned to `$tmp'. |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 16792 | $debug || |
| 16793 | { |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 16794 | tmp= ac_tmp= |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 16795 | trap 'exit_status=$? |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 16796 | : "${ac_tmp:=$tmp}" |
| 16797 | { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 16798 | ' 0 |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 16799 | trap 'as_fn_exit 1' 1 2 13 15 |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 16800 | } |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 16801 | # Create a (secure) tmp directory for tmp files. |
Jari Aalto | 0628567 | 2006-10-10 14:15:34 +0000 | [diff] [blame] | 16802 | |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 16803 | { |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 16804 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 16805 | test -d "$tmp" |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 16806 | } || |
| 16807 | { |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 16808 | tmp=./conf$$-$RANDOM |
| 16809 | (umask 077 && mkdir "$tmp") |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 16810 | } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 |
| 16811 | ac_tmp=$tmp |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 16812 | |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 16813 | # Set up the scripts for CONFIG_FILES section. |
| 16814 | # No need to generate them if there are no CONFIG_FILES. |
| 16815 | # This happens for instance with `./config.status config.h'. |
| 16816 | if test -n "$CONFIG_FILES"; then |
| 16817 | |
| 16818 | |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 16819 | ac_cr=`echo X | tr X '\015'` |
| 16820 | # On cygwin, bash can eat \r inside `` if the user requested igncr. |
| 16821 | # But we know of no other shell where ac_cr would be empty at this |
| 16822 | # point, so we can use a bashism as a fallback. |
| 16823 | if test "x$ac_cr" = x; then |
| 16824 | eval ac_cr=\$\'\\r\' |
| 16825 | fi |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 16826 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` |
| 16827 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then |
| 16828 | ac_cs_awk_cr='\\r' |
| 16829 | else |
| 16830 | ac_cs_awk_cr=$ac_cr |
| 16831 | fi |
| 16832 | |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 16833 | echo 'BEGIN {' >"$ac_tmp/subs1.awk" && |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 16834 | _ACEOF |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 16835 | |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 16836 | |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 16837 | { |
| 16838 | echo "cat >conf$$subs.awk <<_ACEOF" && |
| 16839 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && |
| 16840 | echo "_ACEOF" |
| 16841 | } >conf$$subs.sh || |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 16842 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
| 16843 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 16844 | ac_delim='%!_!# ' |
| 16845 | for ac_last_try in false false false false false :; do |
| 16846 | . ./conf$$subs.sh || |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 16847 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 16848 | |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 16849 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` |
| 16850 | if test $ac_delim_n = $ac_delim_num; then |
| 16851 | break |
| 16852 | elif $ac_last_try; then |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 16853 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 16854 | else |
| 16855 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 16856 | fi |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 16857 | done |
| 16858 | rm -f conf$$subs.sh |
| 16859 | |
| 16860 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 16861 | cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 16862 | _ACEOF |
| 16863 | sed -n ' |
| 16864 | h |
| 16865 | s/^/S["/; s/!.*/"]=/ |
| 16866 | p |
| 16867 | g |
| 16868 | s/^[^!]*!// |
| 16869 | :repl |
| 16870 | t repl |
| 16871 | s/'"$ac_delim"'$// |
| 16872 | t delim |
| 16873 | :nl |
| 16874 | h |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 16875 | s/\(.\{148\}\)..*/\1/ |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 16876 | t more1 |
| 16877 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ |
| 16878 | p |
| 16879 | n |
| 16880 | b repl |
| 16881 | :more1 |
| 16882 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ |
| 16883 | p |
| 16884 | g |
| 16885 | s/.\{148\}// |
| 16886 | t nl |
| 16887 | :delim |
| 16888 | h |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 16889 | s/\(.\{148\}\)..*/\1/ |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 16890 | t more2 |
| 16891 | s/["\\]/\\&/g; s/^/"/; s/$/"/ |
| 16892 | p |
| 16893 | b |
| 16894 | :more2 |
| 16895 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ |
| 16896 | p |
| 16897 | g |
| 16898 | s/.\{148\}// |
| 16899 | t delim |
| 16900 | ' <conf$$subs.awk | sed ' |
| 16901 | /^[^""]/{ |
| 16902 | N |
| 16903 | s/\n// |
| 16904 | } |
| 16905 | ' >>$CONFIG_STATUS || ac_write_fail=1 |
| 16906 | rm -f conf$$subs.awk |
| 16907 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 16908 | _ACAWK |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 16909 | cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 16910 | for (key in S) S_is_set[key] = 1 |
| 16911 | FS = "" |
| 16912 | |
| 16913 | } |
| 16914 | { |
| 16915 | line = $ 0 |
| 16916 | nfields = split(line, field, "@") |
| 16917 | substed = 0 |
| 16918 | len = length(field[1]) |
| 16919 | for (i = 2; i < nfields; i++) { |
| 16920 | key = field[i] |
| 16921 | keylen = length(key) |
| 16922 | if (S_is_set[key]) { |
| 16923 | value = S[key] |
| 16924 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) |
| 16925 | len += length(value) + length(field[++i]) |
| 16926 | substed = 1 |
| 16927 | } else |
| 16928 | len += 1 + keylen |
| 16929 | } |
| 16930 | |
| 16931 | print line |
| 16932 | } |
| 16933 | |
| 16934 | _ACAWK |
| 16935 | _ACEOF |
| 16936 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 16937 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then |
| 16938 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" |
| 16939 | else |
| 16940 | cat |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 16941 | fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ |
| 16942 | || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 16943 | _ACEOF |
| 16944 | |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 16945 | # VPATH may cause trouble with some makes, so we remove sole $(srcdir), |
| 16946 | # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 16947 | # trailing colons and then remove the whole line if VPATH becomes empty |
| 16948 | # (actually we leave an empty line to preserve line numbers). |
| 16949 | if test "x$srcdir" = x.; then |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 16950 | ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ |
| 16951 | h |
| 16952 | s/// |
| 16953 | s/^/:/ |
| 16954 | s/[ ]*$/:/ |
| 16955 | s/:\$(srcdir):/:/g |
| 16956 | s/:\${srcdir}:/:/g |
| 16957 | s/:@srcdir@:/:/g |
| 16958 | s/^:*// |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 16959 | s/:*$// |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 16960 | x |
| 16961 | s/\(=[ ]*\).*/\1/ |
| 16962 | G |
| 16963 | s/\n// |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 16964 | s/^[^=]*=[ ]*$// |
| 16965 | }' |
| 16966 | fi |
| 16967 | |
| 16968 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 16969 | fi # test -n "$CONFIG_FILES" |
| 16970 | |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 16971 | # Set up the scripts for CONFIG_HEADERS section. |
| 16972 | # No need to generate them if there are no CONFIG_HEADERS. |
| 16973 | # This happens for instance with `./config.status Makefile'. |
| 16974 | if test -n "$CONFIG_HEADERS"; then |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 16975 | cat >"$ac_tmp/defines.awk" <<\_ACAWK || |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 16976 | BEGIN { |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 16977 | _ACEOF |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 16978 | |
| 16979 | # Transform confdefs.h into an awk script `defines.awk', embedded as |
| 16980 | # here-document in config.status, that substitutes the proper values into |
| 16981 | # config.h.in to produce config.h. |
| 16982 | |
| 16983 | # Create a delimiter string that does not exist in confdefs.h, to ease |
| 16984 | # handling of long lines. |
| 16985 | ac_delim='%!_!# ' |
| 16986 | for ac_last_try in false false :; do |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 16987 | ac_tt=`sed -n "/$ac_delim/p" confdefs.h` |
| 16988 | if test -z "$ac_tt"; then |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 16989 | break |
| 16990 | elif $ac_last_try; then |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 16991 | as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 16992 | else |
| 16993 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
| 16994 | fi |
| 16995 | done |
| 16996 | |
| 16997 | # For the awk script, D is an array of macro values keyed by name, |
| 16998 | # likewise P contains macro parameters if any. Preserve backslash |
| 16999 | # newline sequences. |
| 17000 | |
| 17001 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* |
| 17002 | sed -n ' |
| 17003 | s/.\{148\}/&'"$ac_delim"'/g |
| 17004 | t rset |
| 17005 | :rset |
| 17006 | s/^[ ]*#[ ]*define[ ][ ]*/ / |
| 17007 | t def |
| 17008 | d |
| 17009 | :def |
| 17010 | s/\\$// |
| 17011 | t bsnl |
| 17012 | s/["\\]/\\&/g |
| 17013 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ |
| 17014 | D["\1"]=" \3"/p |
| 17015 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p |
| 17016 | d |
| 17017 | :bsnl |
| 17018 | s/["\\]/\\&/g |
| 17019 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ |
| 17020 | D["\1"]=" \3\\\\\\n"\\/p |
| 17021 | t cont |
| 17022 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p |
| 17023 | t cont |
| 17024 | d |
| 17025 | :cont |
| 17026 | n |
| 17027 | s/.\{148\}/&'"$ac_delim"'/g |
| 17028 | t clear |
| 17029 | :clear |
| 17030 | s/\\$// |
| 17031 | t bsnlc |
| 17032 | s/["\\]/\\&/g; s/^/"/; s/$/"/p |
| 17033 | d |
| 17034 | :bsnlc |
| 17035 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p |
| 17036 | b cont |
| 17037 | ' <confdefs.h | sed ' |
| 17038 | s/'"$ac_delim"'/"\\\ |
| 17039 | "/g' >>$CONFIG_STATUS || ac_write_fail=1 |
| 17040 | |
| 17041 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 17042 | for (key in D) D_is_set[key] = 1 |
| 17043 | FS = "" |
| 17044 | } |
| 17045 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { |
| 17046 | line = \$ 0 |
| 17047 | split(line, arg, " ") |
| 17048 | if (arg[1] == "#") { |
| 17049 | defundef = arg[2] |
| 17050 | mac1 = arg[3] |
| 17051 | } else { |
| 17052 | defundef = substr(arg[1], 2) |
| 17053 | mac1 = arg[2] |
| 17054 | } |
| 17055 | split(mac1, mac2, "(") #) |
| 17056 | macro = mac2[1] |
| 17057 | prefix = substr(line, 1, index(line, defundef) - 1) |
| 17058 | if (D_is_set[macro]) { |
| 17059 | # Preserve the white space surrounding the "#". |
| 17060 | print prefix "define", macro P[macro] D[macro] |
| 17061 | next |
| 17062 | } else { |
| 17063 | # Replace #undef with comments. This is necessary, for example, |
| 17064 | # in the case of _POSIX_SOURCE, which is predefined and required |
| 17065 | # on some systems where configure will not decide to define it. |
| 17066 | if (defundef == "undef") { |
| 17067 | print "/*", prefix defundef, macro, "*/" |
| 17068 | next |
| 17069 | } |
| 17070 | } |
| 17071 | } |
| 17072 | { print } |
| 17073 | _ACAWK |
| 17074 | _ACEOF |
| 17075 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 17076 | as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 17077 | fi # test -n "$CONFIG_HEADERS" |
| 17078 | |
| 17079 | |
| 17080 | eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" |
| 17081 | shift |
| 17082 | for ac_tag |
| 17083 | do |
| 17084 | case $ac_tag in |
| 17085 | :[FHLC]) ac_mode=$ac_tag; continue;; |
| 17086 | esac |
| 17087 | case $ac_mode$ac_tag in |
| 17088 | :[FHL]*:*);; |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 17089 | :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 17090 | :[FH]-) ac_tag=-:-;; |
| 17091 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; |
| 17092 | esac |
| 17093 | ac_save_IFS=$IFS |
| 17094 | IFS=: |
| 17095 | set x $ac_tag |
| 17096 | IFS=$ac_save_IFS |
| 17097 | shift |
| 17098 | ac_file=$1 |
| 17099 | shift |
| 17100 | |
| 17101 | case $ac_mode in |
| 17102 | :L) ac_source=$1;; |
| 17103 | :[FH]) |
| 17104 | ac_file_inputs= |
| 17105 | for ac_f |
| 17106 | do |
| 17107 | case $ac_f in |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 17108 | -) ac_f="$ac_tmp/stdin";; |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 17109 | *) # Look for the file first in the build tree, then in the source tree |
| 17110 | # (if the path is not absolute). The absolute path cannot be DOS-style, |
| 17111 | # because $ac_f cannot contain `:'. |
| 17112 | test -f "$ac_f" || |
| 17113 | case $ac_f in |
| 17114 | [\\/$]*) false;; |
| 17115 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; |
| 17116 | esac || |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 17117 | as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 17118 | esac |
| 17119 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 17120 | as_fn_append ac_file_inputs " '$ac_f'" |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 17121 | done |
| 17122 | |
| 17123 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
| 17124 | # use $as_me), people would be surprised to read: |
| 17125 | # /* config.h. Generated by config.status. */ |
| 17126 | configure_input='Generated from '` |
| 17127 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' |
| 17128 | `' by configure.' |
| 17129 | if test x"$ac_file" != x-; then |
| 17130 | configure_input="$ac_file. $configure_input" |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 17131 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 17132 | $as_echo "$as_me: creating $ac_file" >&6;} |
| 17133 | fi |
| 17134 | # Neutralize special characters interpreted by sed in replacement strings. |
| 17135 | case $configure_input in #( |
| 17136 | *\&* | *\|* | *\\* ) |
| 17137 | ac_sed_conf_input=`$as_echo "$configure_input" | |
| 17138 | sed 's/[\\\\&|]/\\\\&/g'`;; #( |
| 17139 | *) ac_sed_conf_input=$configure_input;; |
| 17140 | esac |
| 17141 | |
| 17142 | case $ac_tag in |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 17143 | *:-:* | *:-) cat >"$ac_tmp/stdin" \ |
| 17144 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 17145 | esac |
| 17146 | ;; |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 17147 | esac |
| 17148 | |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 17149 | ac_dir=`$as_dirname -- "$ac_file" || |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 17150 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
Jari Aalto | 0628567 | 2006-10-10 14:15:34 +0000 | [diff] [blame] | 17151 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 17152 | X"$ac_file" : 'X\(//\)$' \| \ |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 17153 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
| 17154 | $as_echo X"$ac_file" | |
| 17155 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 17156 | s//\1/ |
| 17157 | q |
| 17158 | } |
| 17159 | /^X\(\/\/\)[^/].*/{ |
| 17160 | s//\1/ |
| 17161 | q |
| 17162 | } |
| 17163 | /^X\(\/\/\)$/{ |
| 17164 | s//\1/ |
| 17165 | q |
| 17166 | } |
| 17167 | /^X\(\/\).*/{ |
| 17168 | s//\1/ |
| 17169 | q |
| 17170 | } |
| 17171 | s/.*/./; q'` |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 17172 | as_dir="$ac_dir"; as_fn_mkdir_p |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 17173 | ac_builddir=. |
| 17174 | |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 17175 | case "$ac_dir" in |
| 17176 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 17177 | *) |
| 17178 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
| 17179 | # A ".." for each directory in $ac_dir_suffix. |
| 17180 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
| 17181 | case $ac_top_builddir_sub in |
| 17182 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 17183 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 17184 | esac ;; |
| 17185 | esac |
| 17186 | ac_abs_top_builddir=$ac_pwd |
| 17187 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 17188 | # for backward compatibility: |
| 17189 | ac_top_builddir=$ac_top_build_prefix |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 17190 | |
| 17191 | case $srcdir in |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 17192 | .) # We are building in place. |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 17193 | ac_srcdir=. |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 17194 | ac_top_srcdir=$ac_top_builddir_sub |
| 17195 | ac_abs_top_srcdir=$ac_pwd ;; |
| 17196 | [\\/]* | ?:[\\/]* ) # Absolute name. |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 17197 | ac_srcdir=$srcdir$ac_dir_suffix; |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 17198 | ac_top_srcdir=$srcdir |
| 17199 | ac_abs_top_srcdir=$srcdir ;; |
| 17200 | *) # Relative name. |
| 17201 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 17202 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 17203 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 17204 | esac |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 17205 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
Jari Aalto | 0628567 | 2006-10-10 14:15:34 +0000 | [diff] [blame] | 17206 | |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 17207 | |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 17208 | case $ac_mode in |
| 17209 | :F) |
| 17210 | # |
| 17211 | # CONFIG_FILE |
| 17212 | # |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 17213 | |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 17214 | case $INSTALL in |
| 17215 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 17216 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 17217 | esac |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 17218 | _ACEOF |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 17219 | |
| 17220 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 17221 | # If the template does not know about datarootdir, expand it. |
| 17222 | # FIXME: This hack should be removed a few years after 2.60. |
| 17223 | ac_datarootdir_hack=; ac_datarootdir_seen= |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 17224 | ac_sed_dataroot=' |
| 17225 | /datarootdir/ { |
| 17226 | p |
| 17227 | q |
| 17228 | } |
| 17229 | /@datadir@/p |
| 17230 | /@docdir@/p |
| 17231 | /@infodir@/p |
| 17232 | /@localedir@/p |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 17233 | /@mandir@/p' |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 17234 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in |
| 17235 | *datarootdir*) ac_datarootdir_seen=yes;; |
| 17236 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 17237 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 17238 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} |
| 17239 | _ACEOF |
| 17240 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 17241 | ac_datarootdir_hack=' |
| 17242 | s&@datadir@&$datadir&g |
| 17243 | s&@docdir@&$docdir&g |
| 17244 | s&@infodir@&$infodir&g |
| 17245 | s&@localedir@&$localedir&g |
| 17246 | s&@mandir@&$mandir&g |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 17247 | s&\\\${datarootdir}&$datarootdir&g' ;; |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 17248 | esac |
| 17249 | _ACEOF |
| 17250 | |
| 17251 | # Neutralize VPATH when `$srcdir' = `.'. |
| 17252 | # Shell code in configure.ac might set extrasub. |
| 17253 | # FIXME: do we really want to maintain this feature? |
| 17254 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 17255 | ac_sed_extra="$ac_vpsub |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 17256 | $extrasub |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 17257 | _ACEOF |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 17258 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 17259 | :t |
| 17260 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 17261 | s|@configure_input@|$ac_sed_conf_input|;t t |
| 17262 | s&@top_builddir@&$ac_top_builddir_sub&;t t |
| 17263 | s&@top_build_prefix@&$ac_top_build_prefix&;t t |
| 17264 | s&@srcdir@&$ac_srcdir&;t t |
| 17265 | s&@abs_srcdir@&$ac_abs_srcdir&;t t |
| 17266 | s&@top_srcdir@&$ac_top_srcdir&;t t |
| 17267 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t |
| 17268 | s&@builddir@&$ac_builddir&;t t |
| 17269 | s&@abs_builddir@&$ac_abs_builddir&;t t |
| 17270 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t |
| 17271 | s&@INSTALL@&$ac_INSTALL&;t t |
| 17272 | $ac_datarootdir_hack |
| 17273 | " |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 17274 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ |
| 17275 | >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 17276 | |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 17277 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 17278 | { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && |
| 17279 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ |
| 17280 | "$ac_tmp/out"`; test -z "$ac_out"; } && |
| 17281 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
| 17282 | which seems to be undefined. Please make sure it is defined" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 17283 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 17284 | which seems to be undefined. Please make sure it is defined" >&2;} |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 17285 | |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 17286 | rm -f "$ac_tmp/stdin" |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 17287 | case $ac_file in |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 17288 | -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; |
| 17289 | *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 17290 | esac \ |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 17291 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 17292 | ;; |
| 17293 | :H) |
| 17294 | # |
| 17295 | # CONFIG_HEADER |
| 17296 | # |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 17297 | if test x"$ac_file" != x-; then |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 17298 | { |
| 17299 | $as_echo "/* $configure_input */" \ |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 17300 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" |
| 17301 | } >"$ac_tmp/config.h" \ |
| 17302 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
| 17303 | if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then |
| 17304 | { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 17305 | $as_echo "$as_me: $ac_file is unchanged" >&6;} |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 17306 | else |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 17307 | rm -f "$ac_file" |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 17308 | mv "$ac_tmp/config.h" "$ac_file" \ |
| 17309 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 17310 | fi |
| 17311 | else |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 17312 | $as_echo "/* $configure_input */" \ |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 17313 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ |
| 17314 | || as_fn_error $? "could not create -" "$LINENO" 5 |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 17315 | fi |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 17316 | ;; |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 17317 | |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 17318 | :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 17319 | $as_echo "$as_me: executing $ac_file commands" >&6;} |
| 17320 | ;; |
| 17321 | esac |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 17322 | |
| 17323 | |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 17324 | case $ac_file$ac_mode in |
| 17325 | "default-1":C) |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 17326 | for ac_file in $CONFIG_FILES; do |
| 17327 | # Support "outfile[:infile[:infile...]]" |
| 17328 | case "$ac_file" in |
| 17329 | *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; |
| 17330 | esac |
| 17331 | # PO directories have a Makefile.in generated from Makefile.in.in. |
| 17332 | case "$ac_file" in */Makefile.in) |
| 17333 | # Adjust a relative srcdir. |
| 17334 | ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'` |
| 17335 | ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`" |
| 17336 | ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'` |
| 17337 | # In autoconf-2.13 it is called $ac_given_srcdir. |
| 17338 | # In autoconf-2.50 it is called $srcdir. |
| 17339 | test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir" |
| 17340 | case "$ac_given_srcdir" in |
| 17341 | .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;; |
| 17342 | /*) top_srcdir="$ac_given_srcdir" ;; |
| 17343 | *) top_srcdir="$ac_dots$ac_given_srcdir" ;; |
| 17344 | esac |
| 17345 | if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then |
| 17346 | rm -f "$ac_dir/POTFILES" |
| 17347 | test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES" |
| 17348 | cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES" |
| 17349 | POMAKEFILEDEPS="POTFILES.in" |
| 17350 | # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend |
| 17351 | # on $ac_dir but don't depend on user-specified configuration |
| 17352 | # parameters. |
| 17353 | if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then |
| 17354 | # The LINGUAS file contains the set of available languages. |
| 17355 | if test -n "$OBSOLETE_ALL_LINGUAS"; then |
| 17356 | test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete" |
| 17357 | fi |
| 17358 | ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"` |
| 17359 | # Hide the ALL_LINGUAS assigment from automake. |
| 17360 | eval 'ALL_LINGUAS''=$ALL_LINGUAS_' |
| 17361 | POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS" |
| 17362 | else |
| 17363 | # The set of available languages was given in configure.in. |
| 17364 | eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS' |
| 17365 | fi |
| 17366 | case "$ac_given_srcdir" in |
| 17367 | .) srcdirpre= ;; |
| 17368 | *) srcdirpre='$(srcdir)/' ;; |
| 17369 | esac |
| 17370 | POFILES= |
| 17371 | GMOFILES= |
| 17372 | UPDATEPOFILES= |
| 17373 | DUMMYPOFILES= |
| 17374 | for lang in $ALL_LINGUAS; do |
| 17375 | POFILES="$POFILES $srcdirpre$lang.po" |
| 17376 | GMOFILES="$GMOFILES $srcdirpre$lang.gmo" |
| 17377 | UPDATEPOFILES="$UPDATEPOFILES $lang.po-update" |
| 17378 | DUMMYPOFILES="$DUMMYPOFILES $lang.nop" |
| 17379 | done |
| 17380 | # CATALOGS depends on both $ac_dir and the user's LINGUAS |
| 17381 | # environment variable. |
| 17382 | INST_LINGUAS= |
| 17383 | if test -n "$ALL_LINGUAS"; then |
| 17384 | for presentlang in $ALL_LINGUAS; do |
| 17385 | useit=no |
| 17386 | if test "%UNSET%" != "$LINGUAS"; then |
| 17387 | desiredlanguages="$LINGUAS" |
| 17388 | else |
| 17389 | desiredlanguages="$ALL_LINGUAS" |
| 17390 | fi |
| 17391 | for desiredlang in $desiredlanguages; do |
| 17392 | # Use the presentlang catalog if desiredlang is |
| 17393 | # a. equal to presentlang, or |
| 17394 | # b. a variant of presentlang (because in this case, |
| 17395 | # presentlang can be used as a fallback for messages |
| 17396 | # which are not translated in the desiredlang catalog). |
| 17397 | case "$desiredlang" in |
| 17398 | "$presentlang"*) useit=yes;; |
| 17399 | esac |
| 17400 | done |
| 17401 | if test $useit = yes; then |
| 17402 | INST_LINGUAS="$INST_LINGUAS $presentlang" |
| 17403 | fi |
| 17404 | done |
| 17405 | fi |
| 17406 | CATALOGS= |
| 17407 | if test -n "$INST_LINGUAS"; then |
| 17408 | for lang in $INST_LINGUAS; do |
| 17409 | CATALOGS="$CATALOGS $lang.gmo" |
| 17410 | done |
| 17411 | fi |
| 17412 | test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile" |
| 17413 | sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile" |
| 17414 | for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do |
| 17415 | if test -f "$f"; then |
| 17416 | case "$f" in |
| 17417 | *.orig | *.bak | *~) ;; |
| 17418 | *) cat "$f" >> "$ac_dir/Makefile" ;; |
| 17419 | esac |
| 17420 | fi |
| 17421 | done |
| 17422 | fi |
| 17423 | ;; |
| 17424 | esac |
| 17425 | done ;; |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 17426 | "default":C) |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 17427 | # Makefile uses this timestamp file to record whether config.h is up to date. |
| 17428 | echo timestamp > stamp-h |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 17429 | ;; |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 17430 | |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 17431 | esac |
| 17432 | done # for ac_tag |
| 17433 | |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 17434 | |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 17435 | as_fn_exit 0 |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 17436 | _ACEOF |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 17437 | ac_clean_files=$ac_clean_files_save |
| 17438 | |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 17439 | test $ac_write_fail = 0 || |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 17440 | as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 17441 | |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 17442 | |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 17443 | # configure is writing to config.log, and then calls config.status. |
| 17444 | # config.status does its own redirection, appending to config.log. |
| 17445 | # Unfortunately, on DOS this fails, as config.log is still kept open |
| 17446 | # by configure, so config.status won't be able to write to it; its |
| 17447 | # output is simply discarded. So we exec the FD to /dev/null, |
| 17448 | # effectively closing config.log, so it can be properly (re)opened and |
| 17449 | # appended to by config.status. When coming back to configure, we |
| 17450 | # need to make the FD available again. |
| 17451 | if test "$no_create" != yes; then |
| 17452 | ac_cs_success=: |
Jari Aalto | 0628567 | 2006-10-10 14:15:34 +0000 | [diff] [blame] | 17453 | ac_config_status_args= |
| 17454 | test "$silent" = yes && |
| 17455 | ac_config_status_args="$ac_config_status_args --quiet" |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 17456 | exec 5>/dev/null |
Jari Aalto | 0628567 | 2006-10-10 14:15:34 +0000 | [diff] [blame] | 17457 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 17458 | exec 5>>config.log |
| 17459 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
| 17460 | # would make configure fail if this is the last instruction. |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 17461 | $ac_cs_success || as_fn_exit 1 |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 17462 | fi |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 17463 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 17464 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 17465 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} |
| 17466 | fi |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 17467 | |