menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 1 | #! /bin/sh |
| 2 | # Guess values for system-dependent variables and create Makefiles. |
Nick Sanders | fb72e5e | 2018-08-09 17:01:01 -0700 | [diff] [blame] | 3 | # Generated by GNU Autoconf 2.69 for stressapptest 1.0.9_autoconf. |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 4 | # |
nick.j.sanders | b4c2ce3 | 2009-10-27 05:56:42 +0000 | [diff] [blame] | 5 | # Report bugs to <opensource@google.com>. |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 6 | # |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 7 | # |
Nick Sanders | fb72e5e | 2018-08-09 17:01:01 -0700 | [diff] [blame] | 8 | # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 9 | # |
| 10 | # |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 11 | # This configure script is free software; the Free Software Foundation |
| 12 | # gives unlimited permission to copy, distribute and modify it. |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 13 | ## -------------------- ## |
| 14 | ## M4sh Initialization. ## |
| 15 | ## -------------------- ## |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 16 | |
| 17 | # Be more Bourne compatible |
| 18 | DUALCASE=1; export DUALCASE # for MKS sh |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 19 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 20 | emulate sh |
| 21 | NULLCMD=: |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 22 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 23 | # is contrary to our usage. Disable this feature. |
| 24 | alias -g '${1+"$@"}'='"$@"' |
| 25 | setopt NO_GLOB_SUBST |
| 26 | else |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 27 | case `(set -o) 2>/dev/null` in #( |
| 28 | *posix*) : |
| 29 | set -o posix ;; #( |
| 30 | *) : |
| 31 | ;; |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 32 | esac |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 33 | fi |
| 34 | |
| 35 | |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 36 | as_nl=' |
| 37 | ' |
| 38 | export as_nl |
| 39 | # Printing a long string crashes Solaris 7 /usr/bin/printf. |
| 40 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
| 41 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo |
| 42 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo |
| 43 | # Prefer a ksh shell builtin over an external printf program on Solaris, |
| 44 | # but without wasting forks for bash or zsh. |
| 45 | if test -z "$BASH_VERSION$ZSH_VERSION" \ |
| 46 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then |
| 47 | as_echo='print -r --' |
| 48 | as_echo_n='print -rn --' |
| 49 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then |
| 50 | as_echo='printf %s\n' |
| 51 | as_echo_n='printf %s' |
| 52 | else |
| 53 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then |
| 54 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' |
| 55 | as_echo_n='/usr/ucb/echo -n' |
| 56 | else |
| 57 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
| 58 | as_echo_n_body='eval |
| 59 | arg=$1; |
| 60 | case $arg in #( |
| 61 | *"$as_nl"*) |
| 62 | expr "X$arg" : "X\\(.*\\)$as_nl"; |
| 63 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; |
| 64 | esac; |
| 65 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" |
| 66 | ' |
| 67 | export as_echo_n_body |
| 68 | as_echo_n='sh -c $as_echo_n_body as_echo' |
| 69 | fi |
| 70 | export as_echo_body |
| 71 | as_echo='sh -c $as_echo_body as_echo' |
| 72 | fi |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 73 | |
| 74 | # The user is always right. |
| 75 | if test "${PATH_SEPARATOR+set}" != set; then |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 76 | PATH_SEPARATOR=: |
| 77 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { |
| 78 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || |
| 79 | PATH_SEPARATOR=';' |
| 80 | } |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 81 | fi |
| 82 | |
| 83 | |
| 84 | # IFS |
| 85 | # We need space, tab and new line, in precisely that order. Quoting is |
| 86 | # there to prevent editors from complaining about space-tab. |
| 87 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
| 88 | # splitting by setting IFS to empty value.) |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 89 | IFS=" "" $as_nl" |
| 90 | |
| 91 | # Find who we are. Look in the path if we contain no directory separator. |
Nick Sanders | fb72e5e | 2018-08-09 17:01:01 -0700 | [diff] [blame] | 92 | as_myself= |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 93 | case $0 in #(( |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 94 | *[\\/]* ) as_myself=$0 ;; |
| 95 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 96 | for as_dir in $PATH |
| 97 | do |
| 98 | IFS=$as_save_IFS |
| 99 | test -z "$as_dir" && as_dir=. |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 100 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 101 | done |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 102 | IFS=$as_save_IFS |
| 103 | |
| 104 | ;; |
| 105 | esac |
| 106 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 107 | # in which case we are not to be found in the path. |
| 108 | if test "x$as_myself" = x; then |
| 109 | as_myself=$0 |
| 110 | fi |
| 111 | if test ! -f "$as_myself"; then |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 112 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
| 113 | exit 1 |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 114 | fi |
| 115 | |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 116 | # Unset variables that we do not need and which cause bugs (e.g. in |
| 117 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" |
| 118 | # suppresses any "Segmentation fault" message there. '((' could |
| 119 | # trigger a bug in pdksh 5.2.14. |
| 120 | for as_var in BASH_ENV ENV MAIL MAILPATH |
| 121 | do eval test x\${$as_var+set} = xset \ |
| 122 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 123 | done |
| 124 | PS1='$ ' |
| 125 | PS2='> ' |
| 126 | PS4='+ ' |
| 127 | |
| 128 | # NLS nuisances. |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 129 | LC_ALL=C |
| 130 | export LC_ALL |
| 131 | LANGUAGE=C |
| 132 | export LANGUAGE |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 133 | |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 134 | # CDPATH. |
| 135 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
| 136 | |
Nick Sanders | fb72e5e | 2018-08-09 17:01:01 -0700 | [diff] [blame] | 137 | # Use a proper internal environment variable to ensure we don't fall |
| 138 | # into an infinite loop, continuously re-executing ourselves. |
| 139 | if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then |
| 140 | _as_can_reexec=no; export _as_can_reexec; |
| 141 | # We cannot yet assume a decent shell, so we have to provide a |
| 142 | # neutralization value for shells without unset; and this also |
| 143 | # works around shells that cannot unset nonexistent variables. |
| 144 | # Preserve -v and -x to the replacement shell. |
| 145 | BASH_ENV=/dev/null |
| 146 | ENV=/dev/null |
| 147 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV |
| 148 | case $- in # (((( |
| 149 | *v*x* | *x*v* ) as_opts=-vx ;; |
| 150 | *v* ) as_opts=-v ;; |
| 151 | *x* ) as_opts=-x ;; |
| 152 | * ) as_opts= ;; |
| 153 | esac |
| 154 | exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} |
| 155 | # Admittedly, this is quite paranoid, since all the known shells bail |
| 156 | # out after a failed `exec'. |
| 157 | $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 |
| 158 | as_fn_exit 255 |
| 159 | fi |
| 160 | # We don't want this to propagate to other subprocesses. |
| 161 | { _as_can_reexec=; unset _as_can_reexec;} |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 162 | if test "x$CONFIG_SHELL" = x; then |
| 163 | as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : |
| 164 | emulate sh |
| 165 | NULLCMD=: |
| 166 | # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which |
| 167 | # is contrary to our usage. Disable this feature. |
| 168 | alias -g '\${1+\"\$@\"}'='\"\$@\"' |
| 169 | setopt NO_GLOB_SUBST |
| 170 | else |
| 171 | case \`(set -o) 2>/dev/null\` in #( |
| 172 | *posix*) : |
| 173 | set -o posix ;; #( |
| 174 | *) : |
| 175 | ;; |
| 176 | esac |
| 177 | fi |
| 178 | " |
| 179 | as_required="as_fn_return () { (exit \$1); } |
| 180 | as_fn_success () { as_fn_return 0; } |
| 181 | as_fn_failure () { as_fn_return 1; } |
| 182 | as_fn_ret_success () { return 0; } |
| 183 | as_fn_ret_failure () { return 1; } |
| 184 | |
| 185 | exitcode=0 |
| 186 | as_fn_success || { exitcode=1; echo as_fn_success failed.; } |
| 187 | as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } |
| 188 | as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } |
| 189 | as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } |
| 190 | if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : |
| 191 | |
| 192 | else |
| 193 | exitcode=1; echo positional parameters were not saved. |
| 194 | fi |
Nick Sanders | fb72e5e | 2018-08-09 17:01:01 -0700 | [diff] [blame] | 195 | test x\$exitcode = x0 || exit 1 |
| 196 | test -x / || exit 1" |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 197 | as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO |
| 198 | as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO |
| 199 | eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && |
| 200 | test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 |
| 201 | test \$(( 1 + 1 )) = 2 || exit 1" |
| 202 | if (eval "$as_required") 2>/dev/null; then : |
| 203 | as_have_required=yes |
| 204 | else |
| 205 | as_have_required=no |
| 206 | fi |
| 207 | if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : |
| 208 | |
| 209 | else |
| 210 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 211 | as_found=false |
| 212 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
| 213 | do |
| 214 | IFS=$as_save_IFS |
| 215 | test -z "$as_dir" && as_dir=. |
| 216 | as_found=: |
| 217 | case $as_dir in #( |
| 218 | /*) |
| 219 | for as_base in sh bash ksh sh5; do |
| 220 | # Try only shells that exist, to save several forks. |
| 221 | as_shell=$as_dir/$as_base |
| 222 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && |
| 223 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : |
| 224 | CONFIG_SHELL=$as_shell as_have_required=yes |
| 225 | if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : |
| 226 | break 2 |
| 227 | fi |
| 228 | fi |
| 229 | done;; |
| 230 | esac |
| 231 | as_found=false |
| 232 | done |
| 233 | $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && |
| 234 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : |
| 235 | CONFIG_SHELL=$SHELL as_have_required=yes |
| 236 | fi; } |
| 237 | IFS=$as_save_IFS |
| 238 | |
| 239 | |
| 240 | if test "x$CONFIG_SHELL" != x; then : |
Nick Sanders | fb72e5e | 2018-08-09 17:01:01 -0700 | [diff] [blame] | 241 | export CONFIG_SHELL |
| 242 | # We cannot yet assume a decent shell, so we have to provide a |
| 243 | # neutralization value for shells without unset; and this also |
| 244 | # works around shells that cannot unset nonexistent variables. |
| 245 | # Preserve -v and -x to the replacement shell. |
| 246 | BASH_ENV=/dev/null |
| 247 | ENV=/dev/null |
| 248 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV |
| 249 | case $- in # (((( |
| 250 | *v*x* | *x*v* ) as_opts=-vx ;; |
| 251 | *v* ) as_opts=-v ;; |
| 252 | *x* ) as_opts=-x ;; |
| 253 | * ) as_opts= ;; |
| 254 | esac |
| 255 | exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} |
| 256 | # Admittedly, this is quite paranoid, since all the known shells bail |
| 257 | # out after a failed `exec'. |
| 258 | $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 |
| 259 | exit 255 |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 260 | fi |
| 261 | |
| 262 | if test x$as_have_required = xno; then : |
| 263 | $as_echo "$0: This script requires a shell more modern than all" |
| 264 | $as_echo "$0: the shells that I found on your system." |
| 265 | if test x${ZSH_VERSION+set} = xset ; then |
| 266 | $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" |
| 267 | $as_echo "$0: be upgraded to zsh 4.3.4 or later." |
| 268 | else |
| 269 | $as_echo "$0: Please tell bug-autoconf@gnu.org and |
| 270 | $0: opensource@google.com about your system, including any |
| 271 | $0: error possibly output before this message. Then install |
| 272 | $0: a modern shell, or manually run the script under such a |
| 273 | $0: shell if you do have one." |
| 274 | fi |
| 275 | exit 1 |
| 276 | fi |
| 277 | fi |
| 278 | fi |
| 279 | SHELL=${CONFIG_SHELL-/bin/sh} |
| 280 | export SHELL |
| 281 | # Unset more variables known to interfere with behavior of common tools. |
| 282 | CLICOLOR_FORCE= GREP_OPTIONS= |
| 283 | unset CLICOLOR_FORCE GREP_OPTIONS |
| 284 | |
| 285 | ## --------------------- ## |
| 286 | ## M4sh Shell Functions. ## |
| 287 | ## --------------------- ## |
| 288 | # as_fn_unset VAR |
| 289 | # --------------- |
| 290 | # Portably unset VAR. |
| 291 | as_fn_unset () |
| 292 | { |
| 293 | { eval $1=; unset $1;} |
| 294 | } |
| 295 | as_unset=as_fn_unset |
| 296 | |
| 297 | # as_fn_set_status STATUS |
| 298 | # ----------------------- |
| 299 | # Set $? to STATUS, without forking. |
| 300 | as_fn_set_status () |
| 301 | { |
| 302 | return $1 |
| 303 | } # as_fn_set_status |
| 304 | |
| 305 | # as_fn_exit STATUS |
| 306 | # ----------------- |
| 307 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. |
| 308 | as_fn_exit () |
| 309 | { |
| 310 | set +e |
| 311 | as_fn_set_status $1 |
| 312 | exit $1 |
| 313 | } # as_fn_exit |
| 314 | |
| 315 | # as_fn_mkdir_p |
| 316 | # ------------- |
| 317 | # Create "$as_dir" as a directory, including parents if necessary. |
| 318 | as_fn_mkdir_p () |
| 319 | { |
| 320 | |
| 321 | case $as_dir in #( |
| 322 | -*) as_dir=./$as_dir;; |
| 323 | esac |
| 324 | test -d "$as_dir" || eval $as_mkdir_p || { |
| 325 | as_dirs= |
| 326 | while :; do |
| 327 | case $as_dir in #( |
| 328 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
| 329 | *) as_qdir=$as_dir;; |
| 330 | esac |
| 331 | as_dirs="'$as_qdir' $as_dirs" |
| 332 | as_dir=`$as_dirname -- "$as_dir" || |
| 333 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 334 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 335 | X"$as_dir" : 'X\(//\)$' \| \ |
| 336 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
| 337 | $as_echo X"$as_dir" | |
| 338 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 339 | s//\1/ |
| 340 | q |
| 341 | } |
| 342 | /^X\(\/\/\)[^/].*/{ |
| 343 | s//\1/ |
| 344 | q |
| 345 | } |
| 346 | /^X\(\/\/\)$/{ |
| 347 | s//\1/ |
| 348 | q |
| 349 | } |
| 350 | /^X\(\/\).*/{ |
| 351 | s//\1/ |
| 352 | q |
| 353 | } |
| 354 | s/.*/./; q'` |
| 355 | test -d "$as_dir" && break |
| 356 | done |
| 357 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
Nick Sanders | fb72e5e | 2018-08-09 17:01:01 -0700 | [diff] [blame] | 358 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 359 | |
| 360 | |
| 361 | } # as_fn_mkdir_p |
Nick Sanders | fb72e5e | 2018-08-09 17:01:01 -0700 | [diff] [blame] | 362 | |
| 363 | # as_fn_executable_p FILE |
| 364 | # ----------------------- |
| 365 | # Test if FILE is an executable regular file. |
| 366 | as_fn_executable_p () |
| 367 | { |
| 368 | test -f "$1" && test -x "$1" |
| 369 | } # as_fn_executable_p |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 370 | # as_fn_append VAR VALUE |
| 371 | # ---------------------- |
| 372 | # Append the text in VALUE to the end of the definition contained in VAR. Take |
| 373 | # advantage of any shell optimizations that allow amortized linear growth over |
| 374 | # repeated appends, instead of the typical quadratic growth present in naive |
| 375 | # implementations. |
| 376 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : |
| 377 | eval 'as_fn_append () |
| 378 | { |
| 379 | eval $1+=\$2 |
| 380 | }' |
| 381 | else |
| 382 | as_fn_append () |
| 383 | { |
| 384 | eval $1=\$$1\$2 |
| 385 | } |
| 386 | fi # as_fn_append |
| 387 | |
| 388 | # as_fn_arith ARG... |
| 389 | # ------------------ |
| 390 | # Perform arithmetic evaluation on the ARGs, and store the result in the |
| 391 | # global $as_val. Take advantage of shells that can avoid forks. The arguments |
| 392 | # must be portable across $(()) and expr. |
| 393 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : |
| 394 | eval 'as_fn_arith () |
| 395 | { |
| 396 | as_val=$(( $* )) |
| 397 | }' |
| 398 | else |
| 399 | as_fn_arith () |
| 400 | { |
| 401 | as_val=`expr "$@" || test $? -eq 1` |
| 402 | } |
| 403 | fi # as_fn_arith |
| 404 | |
| 405 | |
Nick Sanders | fb72e5e | 2018-08-09 17:01:01 -0700 | [diff] [blame] | 406 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
| 407 | # ---------------------------------------- |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 408 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
| 409 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the |
Nick Sanders | fb72e5e | 2018-08-09 17:01:01 -0700 | [diff] [blame] | 410 | # script with STATUS, using 1 if that was 0. |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 411 | as_fn_error () |
| 412 | { |
Nick Sanders | fb72e5e | 2018-08-09 17:01:01 -0700 | [diff] [blame] | 413 | as_status=$1; test $as_status -eq 0 && as_status=1 |
| 414 | if test "$4"; then |
| 415 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 416 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 417 | fi |
Nick Sanders | fb72e5e | 2018-08-09 17:01:01 -0700 | [diff] [blame] | 418 | $as_echo "$as_me: error: $2" >&2 |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 419 | as_fn_exit $as_status |
| 420 | } # as_fn_error |
| 421 | |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 422 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 423 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
| 424 | as_expr=expr |
| 425 | else |
| 426 | as_expr=false |
| 427 | fi |
| 428 | |
| 429 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
| 430 | as_basename=basename |
| 431 | else |
| 432 | as_basename=false |
| 433 | fi |
| 434 | |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 435 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
| 436 | as_dirname=dirname |
| 437 | else |
| 438 | as_dirname=false |
| 439 | fi |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 440 | |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 441 | as_me=`$as_basename -- "$0" || |
| 442 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 443 | X"$0" : 'X\(//\)$' \| \ |
| 444 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 445 | $as_echo X/"$0" | |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 446 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
| 447 | s//\1/ |
| 448 | q |
| 449 | } |
| 450 | /^X\/\(\/\/\)$/{ |
| 451 | s//\1/ |
| 452 | q |
| 453 | } |
| 454 | /^X\/\(\/\).*/{ |
| 455 | s//\1/ |
| 456 | q |
| 457 | } |
| 458 | s/.*/./; q'` |
| 459 | |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 460 | # Avoid depending upon Character Ranges. |
| 461 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 462 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 463 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 464 | as_cr_digits='0123456789' |
| 465 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 466 | |
| 467 | |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 468 | as_lineno_1=$LINENO as_lineno_1a=$LINENO |
| 469 | as_lineno_2=$LINENO as_lineno_2a=$LINENO |
| 470 | eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && |
| 471 | test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { |
| 472 | # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 473 | sed -n ' |
| 474 | p |
| 475 | /[$]LINENO/= |
| 476 | ' <$as_myself | |
| 477 | sed ' |
| 478 | s/[$]LINENO.*/&-/ |
| 479 | t lineno |
| 480 | b |
| 481 | :lineno |
| 482 | N |
| 483 | :loop |
| 484 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ |
| 485 | t loop |
| 486 | s/-\n.*// |
| 487 | ' >$as_me.lineno && |
| 488 | chmod +x "$as_me.lineno" || |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 489 | { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 490 | |
Nick Sanders | fb72e5e | 2018-08-09 17:01:01 -0700 | [diff] [blame] | 491 | # If we had to re-execute with $CONFIG_SHELL, we're ensured to have |
| 492 | # already done that, so ensure we don't try to do so again and fall |
| 493 | # in an infinite loop. This has already happened in practice. |
| 494 | _as_can_reexec=no; export _as_can_reexec |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 495 | # Don't try to exec as it changes $[0], causing all sort of problems |
| 496 | # (the dirname of $[0] is not the place where we might find the |
| 497 | # original and so on. Autoconf is especially sensitive to this). |
| 498 | . "./$as_me.lineno" |
| 499 | # Exit status is that of the last command. |
| 500 | exit |
| 501 | } |
| 502 | |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 503 | ECHO_C= ECHO_N= ECHO_T= |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 504 | case `echo -n x` in #((((( |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 505 | -n*) |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 506 | case `echo 'xy\c'` in |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 507 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 508 | xy) ECHO_C='\c';; |
| 509 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null |
| 510 | ECHO_T=' ';; |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 511 | esac;; |
| 512 | *) |
| 513 | ECHO_N='-n';; |
| 514 | esac |
| 515 | |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 516 | rm -f conf$$ conf$$.exe conf$$.file |
| 517 | if test -d conf$$.dir; then |
| 518 | rm -f conf$$.dir/conf$$.file |
| 519 | else |
| 520 | rm -f conf$$.dir |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 521 | mkdir conf$$.dir 2>/dev/null |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 522 | fi |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 523 | if (echo >conf$$.file) 2>/dev/null; then |
| 524 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 525 | as_ln_s='ln -s' |
| 526 | # ... but there are two gotchas: |
| 527 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
| 528 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
Nick Sanders | fb72e5e | 2018-08-09 17:01:01 -0700 | [diff] [blame] | 529 | # In both cases, we have to default to `cp -pR'. |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 530 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
Nick Sanders | fb72e5e | 2018-08-09 17:01:01 -0700 | [diff] [blame] | 531 | as_ln_s='cp -pR' |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 532 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 533 | as_ln_s=ln |
| 534 | else |
Nick Sanders | fb72e5e | 2018-08-09 17:01:01 -0700 | [diff] [blame] | 535 | as_ln_s='cp -pR' |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 536 | fi |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 537 | else |
Nick Sanders | fb72e5e | 2018-08-09 17:01:01 -0700 | [diff] [blame] | 538 | as_ln_s='cp -pR' |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 539 | fi |
| 540 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
| 541 | rmdir conf$$.dir 2>/dev/null |
| 542 | |
| 543 | if mkdir -p . 2>/dev/null; then |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 544 | as_mkdir_p='mkdir -p "$as_dir"' |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 545 | else |
| 546 | test -d ./-p && rmdir ./-p |
| 547 | as_mkdir_p=false |
| 548 | fi |
| 549 | |
Nick Sanders | fb72e5e | 2018-08-09 17:01:01 -0700 | [diff] [blame] | 550 | as_test_x='test -x' |
| 551 | as_executable_p=as_fn_executable_p |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 552 | |
| 553 | # Sed expression to map a string onto a valid CPP name. |
| 554 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
| 555 | |
| 556 | # Sed expression to map a string onto a valid variable name. |
| 557 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
| 558 | |
| 559 | |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 560 | test -n "$DJDIR" || exec 7<&0 </dev/null |
| 561 | exec 6>&1 |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 562 | |
| 563 | # Name of the host. |
Nick Sanders | fb72e5e | 2018-08-09 17:01:01 -0700 | [diff] [blame] | 564 | # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 565 | # so uname gets run too. |
| 566 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` |
| 567 | |
| 568 | # |
| 569 | # Initializations. |
| 570 | # |
| 571 | ac_default_prefix=/usr/local |
| 572 | ac_clean_files= |
| 573 | ac_config_libobj_dir=. |
| 574 | LIBOBJS= |
| 575 | cross_compiling=no |
| 576 | subdirs= |
| 577 | MFLAGS= |
| 578 | MAKEFLAGS= |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 579 | |
| 580 | # Identity of this package. |
| 581 | PACKAGE_NAME='stressapptest' |
| 582 | PACKAGE_TARNAME='stressapptest' |
Nick Sanders | fb72e5e | 2018-08-09 17:01:01 -0700 | [diff] [blame] | 583 | PACKAGE_VERSION='1.0.9_autoconf' |
| 584 | PACKAGE_STRING='stressapptest 1.0.9_autoconf' |
nick.j.sanders | b4c2ce3 | 2009-10-27 05:56:42 +0000 | [diff] [blame] | 585 | PACKAGE_BUGREPORT='opensource@google.com' |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 586 | PACKAGE_URL='' |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 587 | |
| 588 | ac_unique_file="src/" |
| 589 | # Factoring default headers for most tests. |
| 590 | ac_includes_default="\ |
| 591 | #include <stdio.h> |
| 592 | #ifdef HAVE_SYS_TYPES_H |
| 593 | # include <sys/types.h> |
| 594 | #endif |
| 595 | #ifdef HAVE_SYS_STAT_H |
| 596 | # include <sys/stat.h> |
| 597 | #endif |
| 598 | #ifdef STDC_HEADERS |
| 599 | # include <stdlib.h> |
| 600 | # include <stddef.h> |
| 601 | #else |
| 602 | # ifdef HAVE_STDLIB_H |
| 603 | # include <stdlib.h> |
| 604 | # endif |
| 605 | #endif |
| 606 | #ifdef HAVE_STRING_H |
| 607 | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H |
| 608 | # include <memory.h> |
| 609 | # endif |
| 610 | # include <string.h> |
| 611 | #endif |
| 612 | #ifdef HAVE_STRINGS_H |
| 613 | # include <strings.h> |
| 614 | #endif |
| 615 | #ifdef HAVE_INTTYPES_H |
| 616 | # include <inttypes.h> |
| 617 | #endif |
| 618 | #ifdef HAVE_STDINT_H |
| 619 | # include <stdint.h> |
| 620 | #endif |
| 621 | #ifdef HAVE_UNISTD_H |
| 622 | # include <unistd.h> |
| 623 | #endif" |
| 624 | |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 625 | ac_subst_vars='am__EXEEXT_FALSE |
| 626 | am__EXEEXT_TRUE |
| 627 | LTLIBOBJS |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 628 | LIBOBJS |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 629 | EGREP |
| 630 | GREP |
| 631 | CPP |
| 632 | am__fastdepCC_FALSE |
| 633 | am__fastdepCC_TRUE |
| 634 | CCDEPMODE |
| 635 | ac_ct_CC |
| 636 | CFLAGS |
| 637 | CC |
| 638 | am__fastdepCXX_FALSE |
| 639 | am__fastdepCXX_TRUE |
| 640 | CXXDEPMODE |
| 641 | AMDEPBACKSLASH |
| 642 | AMDEP_FALSE |
| 643 | AMDEP_TRUE |
| 644 | am__quote |
| 645 | am__include |
| 646 | DEPDIR |
| 647 | OBJEXT |
| 648 | EXEEXT |
| 649 | ac_ct_CXX |
| 650 | CPPFLAGS |
| 651 | LDFLAGS |
| 652 | CXXFLAGS |
| 653 | CXX |
| 654 | am__untar |
| 655 | am__tar |
| 656 | AMTAR |
| 657 | am__leading_dot |
| 658 | SET_MAKE |
| 659 | AWK |
| 660 | mkdir_p |
| 661 | MKDIR_P |
| 662 | INSTALL_STRIP_PROGRAM |
| 663 | STRIP |
| 664 | install_sh |
| 665 | MAKEINFO |
| 666 | AUTOHEADER |
| 667 | AUTOMAKE |
| 668 | AUTOCONF |
| 669 | ACLOCAL |
| 670 | VERSION |
| 671 | PACKAGE |
| 672 | CYGPATH_W |
| 673 | am__isrc |
| 674 | INSTALL_DATA |
| 675 | INSTALL_SCRIPT |
| 676 | INSTALL_PROGRAM |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 677 | host_os |
| 678 | host_vendor |
| 679 | host_cpu |
| 680 | host |
| 681 | build_os |
| 682 | build_vendor |
| 683 | build_cpu |
| 684 | build |
| 685 | target_alias |
| 686 | host_alias |
| 687 | build_alias |
| 688 | LIBS |
| 689 | ECHO_T |
| 690 | ECHO_N |
| 691 | ECHO_C |
| 692 | DEFS |
| 693 | mandir |
| 694 | localedir |
| 695 | libdir |
| 696 | psdir |
| 697 | pdfdir |
| 698 | dvidir |
| 699 | htmldir |
| 700 | infodir |
| 701 | docdir |
| 702 | oldincludedir |
| 703 | includedir |
Nick Sanders | fb72e5e | 2018-08-09 17:01:01 -0700 | [diff] [blame] | 704 | runstatedir |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 705 | localstatedir |
| 706 | sharedstatedir |
| 707 | sysconfdir |
| 708 | datadir |
| 709 | datarootdir |
| 710 | libexecdir |
| 711 | sbindir |
| 712 | bindir |
| 713 | program_transform_name |
| 714 | prefix |
| 715 | exec_prefix |
| 716 | PACKAGE_URL |
| 717 | PACKAGE_BUGREPORT |
| 718 | PACKAGE_STRING |
| 719 | PACKAGE_VERSION |
| 720 | PACKAGE_TARNAME |
| 721 | PACKAGE_NAME |
| 722 | PATH_SEPARATOR |
| 723 | SHELL' |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 724 | ac_subst_files='' |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 725 | ac_user_opts=' |
| 726 | enable_option_checking |
| 727 | with_static |
| 728 | enable_dependency_tracking |
nick.j.sanders | 7a6b252 | 2014-02-11 08:53:31 +0000 | [diff] [blame] | 729 | enable_default_optimizations |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 730 | ' |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 731 | ac_precious_vars='build_alias |
| 732 | host_alias |
| 733 | target_alias |
| 734 | CXX |
| 735 | CXXFLAGS |
| 736 | LDFLAGS |
| 737 | LIBS |
| 738 | CPPFLAGS |
| 739 | CCC |
| 740 | CC |
| 741 | CFLAGS |
| 742 | CPP' |
| 743 | |
| 744 | |
| 745 | # Initialize some variables set by options. |
| 746 | ac_init_help= |
| 747 | ac_init_version=false |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 748 | ac_unrecognized_opts= |
| 749 | ac_unrecognized_sep= |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 750 | # The variables have the same names as the options, with |
| 751 | # dashes changed to underlines. |
| 752 | cache_file=/dev/null |
| 753 | exec_prefix=NONE |
| 754 | no_create= |
| 755 | no_recursion= |
| 756 | prefix=NONE |
| 757 | program_prefix=NONE |
| 758 | program_suffix=NONE |
| 759 | program_transform_name=s,x,x, |
| 760 | silent= |
| 761 | site= |
| 762 | srcdir= |
| 763 | verbose= |
| 764 | x_includes=NONE |
| 765 | x_libraries=NONE |
| 766 | |
| 767 | # Installation directory options. |
| 768 | # These are left unexpanded so users can "make install exec_prefix=/foo" |
| 769 | # and all the variables that are supposed to be based on exec_prefix |
| 770 | # by default will actually change. |
| 771 | # Use braces instead of parens because sh, perl, etc. also accept them. |
| 772 | # (The list follows the same order as the GNU Coding Standards.) |
| 773 | bindir='${exec_prefix}/bin' |
| 774 | sbindir='${exec_prefix}/sbin' |
| 775 | libexecdir='${exec_prefix}/libexec' |
| 776 | datarootdir='${prefix}/share' |
| 777 | datadir='${datarootdir}' |
| 778 | sysconfdir='${prefix}/etc' |
| 779 | sharedstatedir='${prefix}/com' |
| 780 | localstatedir='${prefix}/var' |
Nick Sanders | fb72e5e | 2018-08-09 17:01:01 -0700 | [diff] [blame] | 781 | runstatedir='${localstatedir}/run' |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 782 | includedir='${prefix}/include' |
| 783 | oldincludedir='/usr/include' |
| 784 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' |
| 785 | infodir='${datarootdir}/info' |
| 786 | htmldir='${docdir}' |
| 787 | dvidir='${docdir}' |
| 788 | pdfdir='${docdir}' |
| 789 | psdir='${docdir}' |
| 790 | libdir='${exec_prefix}/lib' |
| 791 | localedir='${datarootdir}/locale' |
| 792 | mandir='${datarootdir}/man' |
| 793 | |
| 794 | ac_prev= |
| 795 | ac_dashdash= |
| 796 | for ac_option |
| 797 | do |
| 798 | # If the previous option needs an argument, assign it. |
| 799 | if test -n "$ac_prev"; then |
| 800 | eval $ac_prev=\$ac_option |
| 801 | ac_prev= |
| 802 | continue |
| 803 | fi |
| 804 | |
| 805 | case $ac_option in |
Nick Sanders | fb72e5e | 2018-08-09 17:01:01 -0700 | [diff] [blame] | 806 | *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
| 807 | *=) ac_optarg= ;; |
| 808 | *) ac_optarg=yes ;; |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 809 | esac |
| 810 | |
| 811 | # Accept the important Cygnus configure options, so we can diagnose typos. |
| 812 | |
| 813 | case $ac_dashdash$ac_option in |
| 814 | --) |
| 815 | ac_dashdash=yes ;; |
| 816 | |
| 817 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
| 818 | ac_prev=bindir ;; |
| 819 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
| 820 | bindir=$ac_optarg ;; |
| 821 | |
| 822 | -build | --build | --buil | --bui | --bu) |
| 823 | ac_prev=build_alias ;; |
| 824 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
| 825 | build_alias=$ac_optarg ;; |
| 826 | |
| 827 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
| 828 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
| 829 | ac_prev=cache_file ;; |
| 830 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
| 831 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
| 832 | cache_file=$ac_optarg ;; |
| 833 | |
| 834 | --config-cache | -C) |
| 835 | cache_file=config.cache ;; |
| 836 | |
| 837 | -datadir | --datadir | --datadi | --datad) |
| 838 | ac_prev=datadir ;; |
| 839 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
| 840 | datadir=$ac_optarg ;; |
| 841 | |
| 842 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
| 843 | | --dataroo | --dataro | --datar) |
| 844 | ac_prev=datarootdir ;; |
| 845 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ |
| 846 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) |
| 847 | datarootdir=$ac_optarg ;; |
| 848 | |
| 849 | -disable-* | --disable-*) |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 850 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 851 | # Reject names that are not valid shell variable names. |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 852 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
Nick Sanders | fb72e5e | 2018-08-09 17:01:01 -0700 | [diff] [blame] | 853 | as_fn_error $? "invalid feature name: $ac_useropt" |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 854 | ac_useropt_orig=$ac_useropt |
| 855 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 856 | case $ac_user_opts in |
| 857 | *" |
| 858 | "enable_$ac_useropt" |
| 859 | "*) ;; |
| 860 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" |
| 861 | ac_unrecognized_sep=', ';; |
| 862 | esac |
| 863 | eval enable_$ac_useropt=no ;; |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 864 | |
| 865 | -docdir | --docdir | --docdi | --doc | --do) |
| 866 | ac_prev=docdir ;; |
| 867 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) |
| 868 | docdir=$ac_optarg ;; |
| 869 | |
| 870 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) |
| 871 | ac_prev=dvidir ;; |
| 872 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) |
| 873 | dvidir=$ac_optarg ;; |
| 874 | |
| 875 | -enable-* | --enable-*) |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 876 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 877 | # Reject names that are not valid shell variable names. |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 878 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
Nick Sanders | fb72e5e | 2018-08-09 17:01:01 -0700 | [diff] [blame] | 879 | as_fn_error $? "invalid feature name: $ac_useropt" |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 880 | ac_useropt_orig=$ac_useropt |
| 881 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 882 | case $ac_user_opts in |
| 883 | *" |
| 884 | "enable_$ac_useropt" |
| 885 | "*) ;; |
| 886 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" |
| 887 | ac_unrecognized_sep=', ';; |
| 888 | esac |
| 889 | eval enable_$ac_useropt=\$ac_optarg ;; |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 890 | |
| 891 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
| 892 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
| 893 | | --exec | --exe | --ex) |
| 894 | ac_prev=exec_prefix ;; |
| 895 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
| 896 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
| 897 | | --exec=* | --exe=* | --ex=*) |
| 898 | exec_prefix=$ac_optarg ;; |
| 899 | |
| 900 | -gas | --gas | --ga | --g) |
| 901 | # Obsolete; use --with-gas. |
| 902 | with_gas=yes ;; |
| 903 | |
| 904 | -help | --help | --hel | --he | -h) |
| 905 | ac_init_help=long ;; |
| 906 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
| 907 | ac_init_help=recursive ;; |
| 908 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
| 909 | ac_init_help=short ;; |
| 910 | |
| 911 | -host | --host | --hos | --ho) |
| 912 | ac_prev=host_alias ;; |
| 913 | -host=* | --host=* | --hos=* | --ho=*) |
| 914 | host_alias=$ac_optarg ;; |
| 915 | |
| 916 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
| 917 | ac_prev=htmldir ;; |
| 918 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ |
| 919 | | --ht=*) |
| 920 | htmldir=$ac_optarg ;; |
| 921 | |
| 922 | -includedir | --includedir | --includedi | --included | --include \ |
| 923 | | --includ | --inclu | --incl | --inc) |
| 924 | ac_prev=includedir ;; |
| 925 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
| 926 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
| 927 | includedir=$ac_optarg ;; |
| 928 | |
| 929 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
| 930 | ac_prev=infodir ;; |
| 931 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
| 932 | infodir=$ac_optarg ;; |
| 933 | |
| 934 | -libdir | --libdir | --libdi | --libd) |
| 935 | ac_prev=libdir ;; |
| 936 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
| 937 | libdir=$ac_optarg ;; |
| 938 | |
| 939 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
| 940 | | --libexe | --libex | --libe) |
| 941 | ac_prev=libexecdir ;; |
| 942 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
| 943 | | --libexe=* | --libex=* | --libe=*) |
| 944 | libexecdir=$ac_optarg ;; |
| 945 | |
| 946 | -localedir | --localedir | --localedi | --localed | --locale) |
| 947 | ac_prev=localedir ;; |
| 948 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) |
| 949 | localedir=$ac_optarg ;; |
| 950 | |
| 951 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
| 952 | | --localstate | --localstat | --localsta | --localst | --locals) |
| 953 | ac_prev=localstatedir ;; |
| 954 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
| 955 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
| 956 | localstatedir=$ac_optarg ;; |
| 957 | |
| 958 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
| 959 | ac_prev=mandir ;; |
| 960 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
| 961 | mandir=$ac_optarg ;; |
| 962 | |
| 963 | -nfp | --nfp | --nf) |
| 964 | # Obsolete; use --without-fp. |
| 965 | with_fp=no ;; |
| 966 | |
| 967 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
| 968 | | --no-cr | --no-c | -n) |
| 969 | no_create=yes ;; |
| 970 | |
| 971 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
| 972 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
| 973 | no_recursion=yes ;; |
| 974 | |
| 975 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
| 976 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
| 977 | | --oldin | --oldi | --old | --ol | --o) |
| 978 | ac_prev=oldincludedir ;; |
| 979 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
| 980 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
| 981 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
| 982 | oldincludedir=$ac_optarg ;; |
| 983 | |
| 984 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
| 985 | ac_prev=prefix ;; |
| 986 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
| 987 | prefix=$ac_optarg ;; |
| 988 | |
| 989 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
| 990 | | --program-pre | --program-pr | --program-p) |
| 991 | ac_prev=program_prefix ;; |
| 992 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
| 993 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
| 994 | program_prefix=$ac_optarg ;; |
| 995 | |
| 996 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
| 997 | | --program-suf | --program-su | --program-s) |
| 998 | ac_prev=program_suffix ;; |
| 999 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
| 1000 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
| 1001 | program_suffix=$ac_optarg ;; |
| 1002 | |
| 1003 | -program-transform-name | --program-transform-name \ |
| 1004 | | --program-transform-nam | --program-transform-na \ |
| 1005 | | --program-transform-n | --program-transform- \ |
| 1006 | | --program-transform | --program-transfor \ |
| 1007 | | --program-transfo | --program-transf \ |
| 1008 | | --program-trans | --program-tran \ |
| 1009 | | --progr-tra | --program-tr | --program-t) |
| 1010 | ac_prev=program_transform_name ;; |
| 1011 | -program-transform-name=* | --program-transform-name=* \ |
| 1012 | | --program-transform-nam=* | --program-transform-na=* \ |
| 1013 | | --program-transform-n=* | --program-transform-=* \ |
| 1014 | | --program-transform=* | --program-transfor=* \ |
| 1015 | | --program-transfo=* | --program-transf=* \ |
| 1016 | | --program-trans=* | --program-tran=* \ |
| 1017 | | --progr-tra=* | --program-tr=* | --program-t=*) |
| 1018 | program_transform_name=$ac_optarg ;; |
| 1019 | |
| 1020 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
| 1021 | ac_prev=pdfdir ;; |
| 1022 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) |
| 1023 | pdfdir=$ac_optarg ;; |
| 1024 | |
| 1025 | -psdir | --psdir | --psdi | --psd | --ps) |
| 1026 | ac_prev=psdir ;; |
| 1027 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) |
| 1028 | psdir=$ac_optarg ;; |
| 1029 | |
| 1030 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 1031 | | -silent | --silent | --silen | --sile | --sil) |
| 1032 | silent=yes ;; |
| 1033 | |
Nick Sanders | fb72e5e | 2018-08-09 17:01:01 -0700 | [diff] [blame] | 1034 | -runstatedir | --runstatedir | --runstatedi | --runstated \ |
| 1035 | | --runstate | --runstat | --runsta | --runst | --runs \ |
| 1036 | | --run | --ru | --r) |
| 1037 | ac_prev=runstatedir ;; |
| 1038 | -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ |
| 1039 | | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ |
| 1040 | | --run=* | --ru=* | --r=*) |
| 1041 | runstatedir=$ac_optarg ;; |
| 1042 | |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 1043 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
| 1044 | ac_prev=sbindir ;; |
| 1045 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
| 1046 | | --sbi=* | --sb=*) |
| 1047 | sbindir=$ac_optarg ;; |
| 1048 | |
| 1049 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
| 1050 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
| 1051 | | --sharedst | --shareds | --shared | --share | --shar \ |
| 1052 | | --sha | --sh) |
| 1053 | ac_prev=sharedstatedir ;; |
| 1054 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
| 1055 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
| 1056 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
| 1057 | | --sha=* | --sh=*) |
| 1058 | sharedstatedir=$ac_optarg ;; |
| 1059 | |
| 1060 | -site | --site | --sit) |
| 1061 | ac_prev=site ;; |
| 1062 | -site=* | --site=* | --sit=*) |
| 1063 | site=$ac_optarg ;; |
| 1064 | |
| 1065 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
| 1066 | ac_prev=srcdir ;; |
| 1067 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
| 1068 | srcdir=$ac_optarg ;; |
| 1069 | |
| 1070 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
| 1071 | | --syscon | --sysco | --sysc | --sys | --sy) |
| 1072 | ac_prev=sysconfdir ;; |
| 1073 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
| 1074 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
| 1075 | sysconfdir=$ac_optarg ;; |
| 1076 | |
| 1077 | -target | --target | --targe | --targ | --tar | --ta | --t) |
| 1078 | ac_prev=target_alias ;; |
| 1079 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
| 1080 | target_alias=$ac_optarg ;; |
| 1081 | |
| 1082 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
| 1083 | verbose=yes ;; |
| 1084 | |
| 1085 | -version | --version | --versio | --versi | --vers | -V) |
| 1086 | ac_init_version=: ;; |
| 1087 | |
| 1088 | -with-* | --with-*) |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 1089 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 1090 | # Reject names that are not valid shell variable names. |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 1091 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
Nick Sanders | fb72e5e | 2018-08-09 17:01:01 -0700 | [diff] [blame] | 1092 | as_fn_error $? "invalid package name: $ac_useropt" |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 1093 | ac_useropt_orig=$ac_useropt |
| 1094 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 1095 | case $ac_user_opts in |
| 1096 | *" |
| 1097 | "with_$ac_useropt" |
| 1098 | "*) ;; |
| 1099 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" |
| 1100 | ac_unrecognized_sep=', ';; |
| 1101 | esac |
| 1102 | eval with_$ac_useropt=\$ac_optarg ;; |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 1103 | |
| 1104 | -without-* | --without-*) |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 1105 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 1106 | # Reject names that are not valid shell variable names. |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 1107 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
Nick Sanders | fb72e5e | 2018-08-09 17:01:01 -0700 | [diff] [blame] | 1108 | as_fn_error $? "invalid package name: $ac_useropt" |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 1109 | ac_useropt_orig=$ac_useropt |
| 1110 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 1111 | case $ac_user_opts in |
| 1112 | *" |
| 1113 | "with_$ac_useropt" |
| 1114 | "*) ;; |
| 1115 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" |
| 1116 | ac_unrecognized_sep=', ';; |
| 1117 | esac |
| 1118 | eval with_$ac_useropt=no ;; |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 1119 | |
| 1120 | --x) |
| 1121 | # Obsolete; use --with-x. |
| 1122 | with_x=yes ;; |
| 1123 | |
| 1124 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
| 1125 | | --x-incl | --x-inc | --x-in | --x-i) |
| 1126 | ac_prev=x_includes ;; |
| 1127 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
| 1128 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
| 1129 | x_includes=$ac_optarg ;; |
| 1130 | |
| 1131 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
| 1132 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
| 1133 | ac_prev=x_libraries ;; |
| 1134 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
| 1135 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
| 1136 | x_libraries=$ac_optarg ;; |
| 1137 | |
Nick Sanders | fb72e5e | 2018-08-09 17:01:01 -0700 | [diff] [blame] | 1138 | -*) as_fn_error $? "unrecognized option: \`$ac_option' |
| 1139 | Try \`$0 --help' for more information" |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 1140 | ;; |
| 1141 | |
| 1142 | *=*) |
| 1143 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
| 1144 | # Reject names that are not valid shell variable names. |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 1145 | case $ac_envvar in #( |
| 1146 | '' | [0-9]* | *[!_$as_cr_alnum]* ) |
Nick Sanders | fb72e5e | 2018-08-09 17:01:01 -0700 | [diff] [blame] | 1147 | as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 1148 | esac |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 1149 | eval $ac_envvar=\$ac_optarg |
| 1150 | export $ac_envvar ;; |
| 1151 | |
| 1152 | *) |
| 1153 | # FIXME: should be removed in autoconf 3.0. |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 1154 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 1155 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 1156 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
Nick Sanders | fb72e5e | 2018-08-09 17:01:01 -0700 | [diff] [blame] | 1157 | : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 1158 | ;; |
| 1159 | |
| 1160 | esac |
| 1161 | done |
| 1162 | |
| 1163 | if test -n "$ac_prev"; then |
| 1164 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
Nick Sanders | fb72e5e | 2018-08-09 17:01:01 -0700 | [diff] [blame] | 1165 | as_fn_error $? "missing argument to $ac_option" |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 1166 | fi |
| 1167 | |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 1168 | if test -n "$ac_unrecognized_opts"; then |
| 1169 | case $enable_option_checking in |
| 1170 | no) ;; |
Nick Sanders | fb72e5e | 2018-08-09 17:01:01 -0700 | [diff] [blame] | 1171 | fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 1172 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; |
| 1173 | esac |
| 1174 | fi |
| 1175 | |
| 1176 | # Check all directory arguments for consistency. |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 1177 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
| 1178 | datadir sysconfdir sharedstatedir localstatedir includedir \ |
| 1179 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ |
Nick Sanders | fb72e5e | 2018-08-09 17:01:01 -0700 | [diff] [blame] | 1180 | libdir localedir mandir runstatedir |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 1181 | do |
| 1182 | eval ac_val=\$$ac_var |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 1183 | # Remove trailing slashes. |
| 1184 | case $ac_val in |
| 1185 | */ ) |
| 1186 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` |
| 1187 | eval $ac_var=\$ac_val;; |
| 1188 | esac |
| 1189 | # Be sure to have absolute directory names. |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 1190 | case $ac_val in |
| 1191 | [\\/$]* | ?:[\\/]* ) continue;; |
| 1192 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; |
| 1193 | esac |
Nick Sanders | fb72e5e | 2018-08-09 17:01:01 -0700 | [diff] [blame] | 1194 | as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 1195 | done |
| 1196 | |
| 1197 | # There might be people who depend on the old broken behavior: `$host' |
| 1198 | # used to hold the argument of --host etc. |
| 1199 | # FIXME: To remove some day. |
| 1200 | build=$build_alias |
| 1201 | host=$host_alias |
| 1202 | target=$target_alias |
| 1203 | |
| 1204 | # FIXME: To remove some day. |
| 1205 | if test "x$host_alias" != x; then |
| 1206 | if test "x$build_alias" = x; then |
| 1207 | cross_compiling=maybe |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 1208 | elif test "x$build_alias" != "x$host_alias"; then |
| 1209 | cross_compiling=yes |
| 1210 | fi |
| 1211 | fi |
| 1212 | |
| 1213 | ac_tool_prefix= |
| 1214 | test -n "$host_alias" && ac_tool_prefix=$host_alias- |
| 1215 | |
| 1216 | test "$silent" = yes && exec 6>/dev/null |
| 1217 | |
| 1218 | |
| 1219 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
| 1220 | ac_ls_di=`ls -di .` && |
| 1221 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || |
Nick Sanders | fb72e5e | 2018-08-09 17:01:01 -0700 | [diff] [blame] | 1222 | as_fn_error $? "working directory cannot be determined" |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 1223 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
Nick Sanders | fb72e5e | 2018-08-09 17:01:01 -0700 | [diff] [blame] | 1224 | as_fn_error $? "pwd does not report name of working directory" |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 1225 | |
| 1226 | |
| 1227 | # Find the source files, if location was not specified. |
| 1228 | if test -z "$srcdir"; then |
| 1229 | ac_srcdir_defaulted=yes |
| 1230 | # Try the directory containing this script, then the parent directory. |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 1231 | ac_confdir=`$as_dirname -- "$as_myself" || |
| 1232 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 1233 | X"$as_myself" : 'X\(//\)[^/]' \| \ |
| 1234 | X"$as_myself" : 'X\(//\)$' \| \ |
| 1235 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || |
| 1236 | $as_echo X"$as_myself" | |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 1237 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 1238 | s//\1/ |
| 1239 | q |
| 1240 | } |
| 1241 | /^X\(\/\/\)[^/].*/{ |
| 1242 | s//\1/ |
| 1243 | q |
| 1244 | } |
| 1245 | /^X\(\/\/\)$/{ |
| 1246 | s//\1/ |
| 1247 | q |
| 1248 | } |
| 1249 | /^X\(\/\).*/{ |
| 1250 | s//\1/ |
| 1251 | q |
| 1252 | } |
| 1253 | s/.*/./; q'` |
| 1254 | srcdir=$ac_confdir |
| 1255 | if test ! -r "$srcdir/$ac_unique_file"; then |
| 1256 | srcdir=.. |
| 1257 | fi |
| 1258 | else |
| 1259 | ac_srcdir_defaulted=no |
| 1260 | fi |
| 1261 | if test ! -r "$srcdir/$ac_unique_file"; then |
| 1262 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." |
Nick Sanders | fb72e5e | 2018-08-09 17:01:01 -0700 | [diff] [blame] | 1263 | as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 1264 | fi |
| 1265 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
| 1266 | ac_abs_confdir=`( |
Nick Sanders | fb72e5e | 2018-08-09 17:01:01 -0700 | [diff] [blame] | 1267 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 1268 | pwd)` |
| 1269 | # When building in place, set srcdir=. |
| 1270 | if test "$ac_abs_confdir" = "$ac_pwd"; then |
| 1271 | srcdir=. |
| 1272 | fi |
| 1273 | # Remove unnecessary trailing slashes from srcdir. |
| 1274 | # Double slashes in file names in object file debugging info |
| 1275 | # mess up M-x gdb in Emacs. |
| 1276 | case $srcdir in |
| 1277 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; |
| 1278 | esac |
| 1279 | for ac_var in $ac_precious_vars; do |
| 1280 | eval ac_env_${ac_var}_set=\${${ac_var}+set} |
| 1281 | eval ac_env_${ac_var}_value=\$${ac_var} |
| 1282 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} |
| 1283 | eval ac_cv_env_${ac_var}_value=\$${ac_var} |
| 1284 | done |
| 1285 | |
| 1286 | # |
| 1287 | # Report the --help message. |
| 1288 | # |
| 1289 | if test "$ac_init_help" = "long"; then |
| 1290 | # Omit some internal or obsolete options to make the list less imposing. |
| 1291 | # This message is too long to be a string in the A/UX 3.1 sh. |
| 1292 | cat <<_ACEOF |
Nick Sanders | fb72e5e | 2018-08-09 17:01:01 -0700 | [diff] [blame] | 1293 | \`configure' configures stressapptest 1.0.9_autoconf to adapt to many kinds of systems. |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 1294 | |
| 1295 | Usage: $0 [OPTION]... [VAR=VALUE]... |
| 1296 | |
| 1297 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
| 1298 | VAR=VALUE. See below for descriptions of some of the useful variables. |
| 1299 | |
| 1300 | Defaults for the options are specified in brackets. |
| 1301 | |
| 1302 | Configuration: |
| 1303 | -h, --help display this help and exit |
| 1304 | --help=short display options specific to this package |
| 1305 | --help=recursive display the short help of all the included packages |
| 1306 | -V, --version display version information and exit |
Nick Sanders | fb72e5e | 2018-08-09 17:01:01 -0700 | [diff] [blame] | 1307 | -q, --quiet, --silent do not print \`checking ...' messages |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 1308 | --cache-file=FILE cache test results in FILE [disabled] |
| 1309 | -C, --config-cache alias for \`--cache-file=config.cache' |
| 1310 | -n, --no-create do not create output files |
| 1311 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] |
| 1312 | |
| 1313 | Installation directories: |
| 1314 | --prefix=PREFIX install architecture-independent files in PREFIX |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 1315 | [$ac_default_prefix] |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 1316 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 1317 | [PREFIX] |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 1318 | |
| 1319 | By default, \`make install' will install all the files in |
| 1320 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
| 1321 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
| 1322 | for instance \`--prefix=\$HOME'. |
| 1323 | |
| 1324 | For better control, use the options below. |
| 1325 | |
| 1326 | Fine tuning of the installation directories: |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 1327 | --bindir=DIR user executables [EPREFIX/bin] |
| 1328 | --sbindir=DIR system admin executables [EPREFIX/sbin] |
| 1329 | --libexecdir=DIR program executables [EPREFIX/libexec] |
| 1330 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
| 1331 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
| 1332 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
Nick Sanders | fb72e5e | 2018-08-09 17:01:01 -0700 | [diff] [blame] | 1333 | --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 1334 | --libdir=DIR object code libraries [EPREFIX/lib] |
| 1335 | --includedir=DIR C header files [PREFIX/include] |
| 1336 | --oldincludedir=DIR C header files for non-gcc [/usr/include] |
| 1337 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] |
| 1338 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] |
| 1339 | --infodir=DIR info documentation [DATAROOTDIR/info] |
| 1340 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] |
| 1341 | --mandir=DIR man documentation [DATAROOTDIR/man] |
| 1342 | --docdir=DIR documentation root [DATAROOTDIR/doc/stressapptest] |
| 1343 | --htmldir=DIR html documentation [DOCDIR] |
| 1344 | --dvidir=DIR dvi documentation [DOCDIR] |
| 1345 | --pdfdir=DIR pdf documentation [DOCDIR] |
| 1346 | --psdir=DIR ps documentation [DOCDIR] |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 1347 | _ACEOF |
| 1348 | |
| 1349 | cat <<\_ACEOF |
| 1350 | |
| 1351 | Program names: |
| 1352 | --program-prefix=PREFIX prepend PREFIX to installed program names |
| 1353 | --program-suffix=SUFFIX append SUFFIX to installed program names |
| 1354 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names |
| 1355 | |
| 1356 | System types: |
| 1357 | --build=BUILD configure for building on BUILD [guessed] |
| 1358 | --host=HOST cross-compile to build programs to run on HOST [BUILD] |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 1359 | _ACEOF |
| 1360 | fi |
| 1361 | |
| 1362 | if test -n "$ac_init_help"; then |
| 1363 | case $ac_init_help in |
Nick Sanders | fb72e5e | 2018-08-09 17:01:01 -0700 | [diff] [blame] | 1364 | short | recursive ) echo "Configuration of stressapptest 1.0.9_autoconf:";; |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 1365 | esac |
| 1366 | cat <<\_ACEOF |
| 1367 | |
| 1368 | Optional Features: |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 1369 | --disable-option-checking ignore unrecognized --enable/--with options |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 1370 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
| 1371 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
| 1372 | --disable-dependency-tracking speeds up one-time build |
| 1373 | --enable-dependency-tracking do not reject slow dependency extractors |
nick.j.sanders | 7a6b252 | 2014-02-11 08:53:31 +0000 | [diff] [blame] | 1374 | --disable-default-optimizations |
| 1375 | Disable default optimization flag overrides |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 1376 | |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 1377 | Optional Packages: |
| 1378 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
| 1379 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
| 1380 | --with-static enable static linking |
| 1381 | |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 1382 | Some influential environment variables: |
| 1383 | CXX C++ compiler command |
| 1384 | CXXFLAGS C++ compiler flags |
| 1385 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
| 1386 | nonstandard directory <lib dir> |
| 1387 | LIBS libraries to pass to the linker, e.g. -l<library> |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 1388 | CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 1389 | you have headers in a nonstandard directory <include dir> |
| 1390 | CC C compiler command |
| 1391 | CFLAGS C compiler flags |
| 1392 | CPP C preprocessor |
| 1393 | |
| 1394 | Use these variables to override the choices made by `configure' or to help |
| 1395 | it to find libraries and programs with nonstandard names/locations. |
| 1396 | |
nick.j.sanders | b4c2ce3 | 2009-10-27 05:56:42 +0000 | [diff] [blame] | 1397 | Report bugs to <opensource@google.com>. |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 1398 | _ACEOF |
| 1399 | ac_status=$? |
| 1400 | fi |
| 1401 | |
| 1402 | if test "$ac_init_help" = "recursive"; then |
| 1403 | # If there are subdirs, report their specific --help. |
| 1404 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 1405 | test -d "$ac_dir" || |
| 1406 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || |
| 1407 | continue |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 1408 | ac_builddir=. |
| 1409 | |
| 1410 | case "$ac_dir" in |
| 1411 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 1412 | *) |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 1413 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 1414 | # A ".." for each directory in $ac_dir_suffix. |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 1415 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 1416 | case $ac_top_builddir_sub in |
| 1417 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 1418 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 1419 | esac ;; |
| 1420 | esac |
| 1421 | ac_abs_top_builddir=$ac_pwd |
| 1422 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 1423 | # for backward compatibility: |
| 1424 | ac_top_builddir=$ac_top_build_prefix |
| 1425 | |
| 1426 | case $srcdir in |
| 1427 | .) # We are building in place. |
| 1428 | ac_srcdir=. |
| 1429 | ac_top_srcdir=$ac_top_builddir_sub |
| 1430 | ac_abs_top_srcdir=$ac_pwd ;; |
| 1431 | [\\/]* | ?:[\\/]* ) # Absolute name. |
| 1432 | ac_srcdir=$srcdir$ac_dir_suffix; |
| 1433 | ac_top_srcdir=$srcdir |
| 1434 | ac_abs_top_srcdir=$srcdir ;; |
| 1435 | *) # Relative name. |
| 1436 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 1437 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 1438 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
| 1439 | esac |
| 1440 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
| 1441 | |
| 1442 | cd "$ac_dir" || { ac_status=$?; continue; } |
| 1443 | # Check for guested configure. |
| 1444 | if test -f "$ac_srcdir/configure.gnu"; then |
| 1445 | echo && |
| 1446 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive |
| 1447 | elif test -f "$ac_srcdir/configure"; then |
| 1448 | echo && |
| 1449 | $SHELL "$ac_srcdir/configure" --help=recursive |
| 1450 | else |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 1451 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 1452 | fi || ac_status=$? |
| 1453 | cd "$ac_pwd" || { ac_status=$?; break; } |
| 1454 | done |
| 1455 | fi |
| 1456 | |
| 1457 | test -n "$ac_init_help" && exit $ac_status |
| 1458 | if $ac_init_version; then |
| 1459 | cat <<\_ACEOF |
Nick Sanders | fb72e5e | 2018-08-09 17:01:01 -0700 | [diff] [blame] | 1460 | stressapptest configure 1.0.9_autoconf |
| 1461 | generated by GNU Autoconf 2.69 |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 1462 | |
Nick Sanders | fb72e5e | 2018-08-09 17:01:01 -0700 | [diff] [blame] | 1463 | Copyright (C) 2012 Free Software Foundation, Inc. |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 1464 | This configure script is free software; the Free Software Foundation |
| 1465 | gives unlimited permission to copy, distribute and modify it. |
| 1466 | _ACEOF |
| 1467 | exit |
| 1468 | fi |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 1469 | |
| 1470 | ## ------------------------ ## |
| 1471 | ## Autoconf initialization. ## |
| 1472 | ## ------------------------ ## |
| 1473 | |
| 1474 | # ac_fn_cxx_try_compile LINENO |
| 1475 | # ---------------------------- |
| 1476 | # Try to compile conftest.$ac_ext, and return whether this succeeded. |
| 1477 | ac_fn_cxx_try_compile () |
| 1478 | { |
| 1479 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1480 | rm -f conftest.$ac_objext |
| 1481 | if { { ac_try="$ac_compile" |
| 1482 | case "(($ac_try" in |
| 1483 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1484 | *) ac_try_echo=$ac_try;; |
| 1485 | esac |
| 1486 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1487 | $as_echo "$ac_try_echo"; } >&5 |
| 1488 | (eval "$ac_compile") 2>conftest.err |
| 1489 | ac_status=$? |
| 1490 | if test -s conftest.err; then |
| 1491 | grep -v '^ *+' conftest.err >conftest.er1 |
| 1492 | cat conftest.er1 >&5 |
| 1493 | mv -f conftest.er1 conftest.err |
| 1494 | fi |
| 1495 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1496 | test $ac_status = 0; } && { |
| 1497 | test -z "$ac_cxx_werror_flag" || |
| 1498 | test ! -s conftest.err |
| 1499 | } && test -s conftest.$ac_objext; then : |
| 1500 | ac_retval=0 |
| 1501 | else |
| 1502 | $as_echo "$as_me: failed program was:" >&5 |
| 1503 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1504 | |
| 1505 | ac_retval=1 |
| 1506 | fi |
Nick Sanders | fb72e5e | 2018-08-09 17:01:01 -0700 | [diff] [blame] | 1507 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 1508 | as_fn_set_status $ac_retval |
| 1509 | |
| 1510 | } # ac_fn_cxx_try_compile |
| 1511 | |
| 1512 | # ac_fn_c_try_compile LINENO |
| 1513 | # -------------------------- |
| 1514 | # Try to compile conftest.$ac_ext, and return whether this succeeded. |
| 1515 | ac_fn_c_try_compile () |
| 1516 | { |
| 1517 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1518 | rm -f conftest.$ac_objext |
| 1519 | if { { ac_try="$ac_compile" |
| 1520 | case "(($ac_try" in |
| 1521 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1522 | *) ac_try_echo=$ac_try;; |
| 1523 | esac |
| 1524 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1525 | $as_echo "$ac_try_echo"; } >&5 |
| 1526 | (eval "$ac_compile") 2>conftest.err |
| 1527 | ac_status=$? |
| 1528 | if test -s conftest.err; then |
| 1529 | grep -v '^ *+' conftest.err >conftest.er1 |
| 1530 | cat conftest.er1 >&5 |
| 1531 | mv -f conftest.er1 conftest.err |
| 1532 | fi |
| 1533 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1534 | test $ac_status = 0; } && { |
| 1535 | test -z "$ac_c_werror_flag" || |
| 1536 | test ! -s conftest.err |
| 1537 | } && test -s conftest.$ac_objext; then : |
| 1538 | ac_retval=0 |
| 1539 | else |
| 1540 | $as_echo "$as_me: failed program was:" >&5 |
| 1541 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1542 | |
| 1543 | ac_retval=1 |
| 1544 | fi |
Nick Sanders | fb72e5e | 2018-08-09 17:01:01 -0700 | [diff] [blame] | 1545 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 1546 | as_fn_set_status $ac_retval |
| 1547 | |
| 1548 | } # ac_fn_c_try_compile |
| 1549 | |
| 1550 | # ac_fn_c_try_link LINENO |
| 1551 | # ----------------------- |
| 1552 | # Try to link conftest.$ac_ext, and return whether this succeeded. |
| 1553 | ac_fn_c_try_link () |
| 1554 | { |
| 1555 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1556 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 1557 | if { { ac_try="$ac_link" |
| 1558 | case "(($ac_try" in |
| 1559 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1560 | *) ac_try_echo=$ac_try;; |
| 1561 | esac |
| 1562 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1563 | $as_echo "$ac_try_echo"; } >&5 |
| 1564 | (eval "$ac_link") 2>conftest.err |
| 1565 | ac_status=$? |
| 1566 | if test -s conftest.err; then |
| 1567 | grep -v '^ *+' conftest.err >conftest.er1 |
| 1568 | cat conftest.er1 >&5 |
| 1569 | mv -f conftest.er1 conftest.err |
| 1570 | fi |
| 1571 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1572 | test $ac_status = 0; } && { |
| 1573 | test -z "$ac_c_werror_flag" || |
| 1574 | test ! -s conftest.err |
| 1575 | } && test -s conftest$ac_exeext && { |
| 1576 | test "$cross_compiling" = yes || |
Nick Sanders | fb72e5e | 2018-08-09 17:01:01 -0700 | [diff] [blame] | 1577 | test -x conftest$ac_exeext |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 1578 | }; then : |
| 1579 | ac_retval=0 |
| 1580 | else |
| 1581 | $as_echo "$as_me: failed program was:" >&5 |
| 1582 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1583 | |
| 1584 | ac_retval=1 |
| 1585 | fi |
| 1586 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information |
| 1587 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would |
| 1588 | # interfere with the next link command; also delete a directory that is |
| 1589 | # left behind by Apple's compiler. We do this before executing the actions. |
| 1590 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
Nick Sanders | fb72e5e | 2018-08-09 17:01:01 -0700 | [diff] [blame] | 1591 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 1592 | as_fn_set_status $ac_retval |
| 1593 | |
| 1594 | } # ac_fn_c_try_link |
| 1595 | |
| 1596 | # ac_fn_c_try_cpp LINENO |
| 1597 | # ---------------------- |
| 1598 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. |
| 1599 | ac_fn_c_try_cpp () |
| 1600 | { |
| 1601 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1602 | if { { ac_try="$ac_cpp conftest.$ac_ext" |
| 1603 | case "(($ac_try" in |
| 1604 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1605 | *) ac_try_echo=$ac_try;; |
| 1606 | esac |
| 1607 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1608 | $as_echo "$ac_try_echo"; } >&5 |
| 1609 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err |
| 1610 | ac_status=$? |
| 1611 | if test -s conftest.err; then |
| 1612 | grep -v '^ *+' conftest.err >conftest.er1 |
| 1613 | cat conftest.er1 >&5 |
| 1614 | mv -f conftest.er1 conftest.err |
| 1615 | fi |
| 1616 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
Nick Sanders | fb72e5e | 2018-08-09 17:01:01 -0700 | [diff] [blame] | 1617 | test $ac_status = 0; } > conftest.i && { |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 1618 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 1619 | test ! -s conftest.err |
| 1620 | }; then : |
| 1621 | ac_retval=0 |
| 1622 | else |
| 1623 | $as_echo "$as_me: failed program was:" >&5 |
| 1624 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1625 | |
| 1626 | ac_retval=1 |
| 1627 | fi |
Nick Sanders | fb72e5e | 2018-08-09 17:01:01 -0700 | [diff] [blame] | 1628 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 1629 | as_fn_set_status $ac_retval |
| 1630 | |
| 1631 | } # ac_fn_c_try_cpp |
| 1632 | |
| 1633 | # ac_fn_c_try_run LINENO |
| 1634 | # ---------------------- |
| 1635 | # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes |
| 1636 | # that executables *can* be run. |
| 1637 | ac_fn_c_try_run () |
| 1638 | { |
| 1639 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1640 | if { { ac_try="$ac_link" |
| 1641 | case "(($ac_try" in |
| 1642 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1643 | *) ac_try_echo=$ac_try;; |
| 1644 | esac |
| 1645 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1646 | $as_echo "$ac_try_echo"; } >&5 |
| 1647 | (eval "$ac_link") 2>&5 |
| 1648 | ac_status=$? |
| 1649 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1650 | test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' |
| 1651 | { { case "(($ac_try" in |
| 1652 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1653 | *) ac_try_echo=$ac_try;; |
| 1654 | esac |
| 1655 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1656 | $as_echo "$ac_try_echo"; } >&5 |
| 1657 | (eval "$ac_try") 2>&5 |
| 1658 | ac_status=$? |
| 1659 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1660 | test $ac_status = 0; }; }; then : |
| 1661 | ac_retval=0 |
| 1662 | else |
| 1663 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
| 1664 | $as_echo "$as_me: failed program was:" >&5 |
| 1665 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1666 | |
| 1667 | ac_retval=$ac_status |
| 1668 | fi |
| 1669 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
Nick Sanders | fb72e5e | 2018-08-09 17:01:01 -0700 | [diff] [blame] | 1670 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 1671 | as_fn_set_status $ac_retval |
| 1672 | |
| 1673 | } # ac_fn_c_try_run |
| 1674 | |
| 1675 | # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES |
| 1676 | # ------------------------------------------------------- |
| 1677 | # Tests whether HEADER exists, giving a warning if it cannot be compiled using |
| 1678 | # the include files in INCLUDES and setting the cache variable VAR |
| 1679 | # accordingly. |
| 1680 | ac_fn_c_check_header_mongrel () |
| 1681 | { |
| 1682 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
Nick Sanders | fb72e5e | 2018-08-09 17:01:01 -0700 | [diff] [blame] | 1683 | if eval \${$3+:} false; then : |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 1684 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 1685 | $as_echo_n "checking for $2... " >&6; } |
Nick Sanders | fb72e5e | 2018-08-09 17:01:01 -0700 | [diff] [blame] | 1686 | if eval \${$3+:} false; then : |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 1687 | $as_echo_n "(cached) " >&6 |
| 1688 | fi |
| 1689 | eval ac_res=\$$3 |
| 1690 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 1691 | $as_echo "$ac_res" >&6; } |
| 1692 | else |
| 1693 | # Is the header compilable? |
| 1694 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 |
| 1695 | $as_echo_n "checking $2 usability... " >&6; } |
| 1696 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1697 | /* end confdefs.h. */ |
| 1698 | $4 |
| 1699 | #include <$2> |
| 1700 | _ACEOF |
| 1701 | if ac_fn_c_try_compile "$LINENO"; then : |
| 1702 | ac_header_compiler=yes |
| 1703 | else |
| 1704 | ac_header_compiler=no |
| 1705 | fi |
| 1706 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 1707 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 |
| 1708 | $as_echo "$ac_header_compiler" >&6; } |
| 1709 | |
| 1710 | # Is the header present? |
| 1711 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 |
| 1712 | $as_echo_n "checking $2 presence... " >&6; } |
| 1713 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1714 | /* end confdefs.h. */ |
| 1715 | #include <$2> |
| 1716 | _ACEOF |
| 1717 | if ac_fn_c_try_cpp "$LINENO"; then : |
| 1718 | ac_header_preproc=yes |
| 1719 | else |
| 1720 | ac_header_preproc=no |
| 1721 | fi |
Nick Sanders | fb72e5e | 2018-08-09 17:01:01 -0700 | [diff] [blame] | 1722 | rm -f conftest.err conftest.i conftest.$ac_ext |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 1723 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 |
| 1724 | $as_echo "$ac_header_preproc" >&6; } |
| 1725 | |
| 1726 | # So? What about this header? |
| 1727 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( |
| 1728 | yes:no: ) |
| 1729 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 1730 | $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 1731 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 |
| 1732 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} |
| 1733 | ;; |
| 1734 | no:yes:* ) |
| 1735 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 |
| 1736 | $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} |
| 1737 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 |
| 1738 | $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} |
| 1739 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 |
| 1740 | $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} |
| 1741 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 |
| 1742 | $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} |
| 1743 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 |
| 1744 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} |
Nick Sanders | fb72e5e | 2018-08-09 17:01:01 -0700 | [diff] [blame] | 1745 | ( $as_echo "## ------------------------------------ ## |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 1746 | ## Report this to opensource@google.com ## |
Nick Sanders | fb72e5e | 2018-08-09 17:01:01 -0700 | [diff] [blame] | 1747 | ## ------------------------------------ ##" |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 1748 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 1749 | ;; |
| 1750 | esac |
| 1751 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 1752 | $as_echo_n "checking for $2... " >&6; } |
Nick Sanders | fb72e5e | 2018-08-09 17:01:01 -0700 | [diff] [blame] | 1753 | if eval \${$3+:} false; then : |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 1754 | $as_echo_n "(cached) " >&6 |
| 1755 | else |
| 1756 | eval "$3=\$ac_header_compiler" |
| 1757 | fi |
| 1758 | eval ac_res=\$$3 |
| 1759 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 1760 | $as_echo "$ac_res" >&6; } |
| 1761 | fi |
Nick Sanders | fb72e5e | 2018-08-09 17:01:01 -0700 | [diff] [blame] | 1762 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 1763 | |
| 1764 | } # ac_fn_c_check_header_mongrel |
| 1765 | |
| 1766 | # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES |
| 1767 | # ------------------------------------------------------- |
| 1768 | # Tests whether HEADER exists and can be compiled using the include files in |
| 1769 | # INCLUDES, setting the cache variable VAR accordingly. |
| 1770 | ac_fn_c_check_header_compile () |
| 1771 | { |
| 1772 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1773 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 1774 | $as_echo_n "checking for $2... " >&6; } |
Nick Sanders | fb72e5e | 2018-08-09 17:01:01 -0700 | [diff] [blame] | 1775 | if eval \${$3+:} false; then : |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 1776 | $as_echo_n "(cached) " >&6 |
| 1777 | else |
| 1778 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1779 | /* end confdefs.h. */ |
| 1780 | $4 |
| 1781 | #include <$2> |
| 1782 | _ACEOF |
| 1783 | if ac_fn_c_try_compile "$LINENO"; then : |
| 1784 | eval "$3=yes" |
| 1785 | else |
| 1786 | eval "$3=no" |
| 1787 | fi |
| 1788 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 1789 | fi |
| 1790 | eval ac_res=\$$3 |
| 1791 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 1792 | $as_echo "$ac_res" >&6; } |
Nick Sanders | fb72e5e | 2018-08-09 17:01:01 -0700 | [diff] [blame] | 1793 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 1794 | |
| 1795 | } # ac_fn_c_check_header_compile |
| 1796 | |
| 1797 | # ac_fn_c_check_type LINENO TYPE VAR INCLUDES |
| 1798 | # ------------------------------------------- |
| 1799 | # Tests whether TYPE exists after having included INCLUDES, setting cache |
| 1800 | # variable VAR accordingly. |
| 1801 | ac_fn_c_check_type () |
| 1802 | { |
| 1803 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1804 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 1805 | $as_echo_n "checking for $2... " >&6; } |
Nick Sanders | fb72e5e | 2018-08-09 17:01:01 -0700 | [diff] [blame] | 1806 | if eval \${$3+:} false; then : |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 1807 | $as_echo_n "(cached) " >&6 |
| 1808 | else |
| 1809 | eval "$3=no" |
| 1810 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1811 | /* end confdefs.h. */ |
| 1812 | $4 |
| 1813 | int |
| 1814 | main () |
| 1815 | { |
| 1816 | if (sizeof ($2)) |
| 1817 | return 0; |
| 1818 | ; |
| 1819 | return 0; |
| 1820 | } |
| 1821 | _ACEOF |
| 1822 | if ac_fn_c_try_compile "$LINENO"; then : |
| 1823 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1824 | /* end confdefs.h. */ |
| 1825 | $4 |
| 1826 | int |
| 1827 | main () |
| 1828 | { |
| 1829 | if (sizeof (($2))) |
| 1830 | return 0; |
| 1831 | ; |
| 1832 | return 0; |
| 1833 | } |
| 1834 | _ACEOF |
| 1835 | if ac_fn_c_try_compile "$LINENO"; then : |
| 1836 | |
| 1837 | else |
| 1838 | eval "$3=yes" |
| 1839 | fi |
| 1840 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 1841 | fi |
| 1842 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 1843 | fi |
| 1844 | eval ac_res=\$$3 |
| 1845 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 1846 | $as_echo "$ac_res" >&6; } |
Nick Sanders | fb72e5e | 2018-08-09 17:01:01 -0700 | [diff] [blame] | 1847 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 1848 | |
| 1849 | } # ac_fn_c_check_type |
| 1850 | |
| 1851 | # ac_fn_c_find_uintX_t LINENO BITS VAR |
| 1852 | # ------------------------------------ |
| 1853 | # Finds an unsigned integer type with width BITS, setting cache variable VAR |
| 1854 | # accordingly. |
| 1855 | ac_fn_c_find_uintX_t () |
| 1856 | { |
| 1857 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1858 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5 |
| 1859 | $as_echo_n "checking for uint$2_t... " >&6; } |
Nick Sanders | fb72e5e | 2018-08-09 17:01:01 -0700 | [diff] [blame] | 1860 | if eval \${$3+:} false; then : |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 1861 | $as_echo_n "(cached) " >&6 |
| 1862 | else |
| 1863 | eval "$3=no" |
| 1864 | # Order is important - never check a type that is potentially smaller |
| 1865 | # than half of the expected target width. |
| 1866 | for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \ |
| 1867 | 'unsigned long long int' 'unsigned short int' 'unsigned char'; do |
| 1868 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1869 | /* end confdefs.h. */ |
| 1870 | $ac_includes_default |
| 1871 | int |
| 1872 | main () |
| 1873 | { |
| 1874 | static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)]; |
Nick Sanders | fb72e5e | 2018-08-09 17:01:01 -0700 | [diff] [blame] | 1875 | test_array [0] = 0; |
| 1876 | return test_array [0]; |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 1877 | |
| 1878 | ; |
| 1879 | return 0; |
| 1880 | } |
| 1881 | _ACEOF |
| 1882 | if ac_fn_c_try_compile "$LINENO"; then : |
| 1883 | case $ac_type in #( |
| 1884 | uint$2_t) : |
| 1885 | eval "$3=yes" ;; #( |
| 1886 | *) : |
| 1887 | eval "$3=\$ac_type" ;; |
| 1888 | esac |
| 1889 | fi |
| 1890 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Nick Sanders | fb72e5e | 2018-08-09 17:01:01 -0700 | [diff] [blame] | 1891 | if eval test \"x\$"$3"\" = x"no"; then : |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 1892 | |
| 1893 | else |
| 1894 | break |
| 1895 | fi |
| 1896 | done |
| 1897 | fi |
| 1898 | eval ac_res=\$$3 |
| 1899 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 1900 | $as_echo "$ac_res" >&6; } |
Nick Sanders | fb72e5e | 2018-08-09 17:01:01 -0700 | [diff] [blame] | 1901 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 1902 | |
| 1903 | } # ac_fn_c_find_uintX_t |
| 1904 | |
Nick Sanders | fb72e5e | 2018-08-09 17:01:01 -0700 | [diff] [blame] | 1905 | # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES |
| 1906 | # --------------------------------------------- |
| 1907 | # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR |
| 1908 | # accordingly. |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 1909 | ac_fn_c_check_decl () |
| 1910 | { |
| 1911 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
Nick Sanders | fb72e5e | 2018-08-09 17:01:01 -0700 | [diff] [blame] | 1912 | as_decl_name=`echo $2|sed 's/ *(.*//'` |
| 1913 | as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` |
| 1914 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 |
| 1915 | $as_echo_n "checking whether $as_decl_name is declared... " >&6; } |
| 1916 | if eval \${$3+:} false; then : |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 1917 | $as_echo_n "(cached) " >&6 |
| 1918 | else |
| 1919 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1920 | /* end confdefs.h. */ |
| 1921 | $4 |
| 1922 | int |
| 1923 | main () |
| 1924 | { |
Nick Sanders | fb72e5e | 2018-08-09 17:01:01 -0700 | [diff] [blame] | 1925 | #ifndef $as_decl_name |
| 1926 | #ifdef __cplusplus |
| 1927 | (void) $as_decl_use; |
| 1928 | #else |
| 1929 | (void) $as_decl_name; |
| 1930 | #endif |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 1931 | #endif |
| 1932 | |
| 1933 | ; |
| 1934 | return 0; |
| 1935 | } |
| 1936 | _ACEOF |
| 1937 | if ac_fn_c_try_compile "$LINENO"; then : |
| 1938 | eval "$3=yes" |
| 1939 | else |
| 1940 | eval "$3=no" |
| 1941 | fi |
| 1942 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 1943 | fi |
| 1944 | eval ac_res=\$$3 |
| 1945 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 1946 | $as_echo "$ac_res" >&6; } |
Nick Sanders | fb72e5e | 2018-08-09 17:01:01 -0700 | [diff] [blame] | 1947 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 1948 | |
| 1949 | } # ac_fn_c_check_decl |
| 1950 | |
| 1951 | # ac_fn_c_check_func LINENO FUNC VAR |
| 1952 | # ---------------------------------- |
| 1953 | # Tests whether FUNC exists, setting the cache variable VAR accordingly |
| 1954 | ac_fn_c_check_func () |
| 1955 | { |
| 1956 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1957 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 1958 | $as_echo_n "checking for $2... " >&6; } |
Nick Sanders | fb72e5e | 2018-08-09 17:01:01 -0700 | [diff] [blame] | 1959 | if eval \${$3+:} false; then : |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 1960 | $as_echo_n "(cached) " >&6 |
| 1961 | else |
| 1962 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1963 | /* end confdefs.h. */ |
| 1964 | /* Define $2 to an innocuous variant, in case <limits.h> declares $2. |
| 1965 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 1966 | #define $2 innocuous_$2 |
| 1967 | |
| 1968 | /* System header to define __stub macros and hopefully few prototypes, |
| 1969 | which can conflict with char $2 (); below. |
| 1970 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 1971 | <limits.h> exists even on freestanding compilers. */ |
| 1972 | |
| 1973 | #ifdef __STDC__ |
| 1974 | # include <limits.h> |
| 1975 | #else |
| 1976 | # include <assert.h> |
| 1977 | #endif |
| 1978 | |
| 1979 | #undef $2 |
| 1980 | |
| 1981 | /* Override any GCC internal prototype to avoid an error. |
| 1982 | Use char because int might match the return type of a GCC |
| 1983 | builtin and then its argument prototype would still apply. */ |
| 1984 | #ifdef __cplusplus |
| 1985 | extern "C" |
| 1986 | #endif |
| 1987 | char $2 (); |
| 1988 | /* The GNU C library defines this for functions which it implements |
| 1989 | to always fail with ENOSYS. Some functions are actually named |
| 1990 | something starting with __ and the normal name is an alias. */ |
| 1991 | #if defined __stub_$2 || defined __stub___$2 |
| 1992 | choke me |
| 1993 | #endif |
| 1994 | |
| 1995 | int |
| 1996 | main () |
| 1997 | { |
| 1998 | return $2 (); |
| 1999 | ; |
| 2000 | return 0; |
| 2001 | } |
| 2002 | _ACEOF |
| 2003 | if ac_fn_c_try_link "$LINENO"; then : |
| 2004 | eval "$3=yes" |
| 2005 | else |
| 2006 | eval "$3=no" |
| 2007 | fi |
| 2008 | rm -f core conftest.err conftest.$ac_objext \ |
| 2009 | conftest$ac_exeext conftest.$ac_ext |
| 2010 | fi |
| 2011 | eval ac_res=\$$3 |
| 2012 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 2013 | $as_echo "$ac_res" >&6; } |
Nick Sanders | fb72e5e | 2018-08-09 17:01:01 -0700 | [diff] [blame] | 2014 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 2015 | |
| 2016 | } # ac_fn_c_check_func |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 2017 | cat >config.log <<_ACEOF |
| 2018 | This file contains any messages produced by compilers while |
| 2019 | running configure, to aid debugging if configure makes a mistake. |
| 2020 | |
Nick Sanders | fb72e5e | 2018-08-09 17:01:01 -0700 | [diff] [blame] | 2021 | It was created by stressapptest $as_me 1.0.9_autoconf, which was |
| 2022 | generated by GNU Autoconf 2.69. Invocation command line was |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 2023 | |
| 2024 | $ $0 $@ |
| 2025 | |
| 2026 | _ACEOF |
| 2027 | exec 5>>config.log |
| 2028 | { |
| 2029 | cat <<_ASUNAME |
| 2030 | ## --------- ## |
| 2031 | ## Platform. ## |
| 2032 | ## --------- ## |
| 2033 | |
| 2034 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 2035 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
| 2036 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
| 2037 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
| 2038 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
| 2039 | |
| 2040 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
| 2041 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
| 2042 | |
| 2043 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
| 2044 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
| 2045 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
| 2046 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
| 2047 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
| 2048 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
| 2049 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
| 2050 | |
| 2051 | _ASUNAME |
| 2052 | |
| 2053 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2054 | for as_dir in $PATH |
| 2055 | do |
| 2056 | IFS=$as_save_IFS |
| 2057 | test -z "$as_dir" && as_dir=. |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 2058 | $as_echo "PATH: $as_dir" |
| 2059 | done |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 2060 | IFS=$as_save_IFS |
| 2061 | |
| 2062 | } >&5 |
| 2063 | |
| 2064 | cat >&5 <<_ACEOF |
| 2065 | |
| 2066 | |
| 2067 | ## ----------- ## |
| 2068 | ## Core tests. ## |
| 2069 | ## ----------- ## |
| 2070 | |
| 2071 | _ACEOF |
| 2072 | |
| 2073 | |
| 2074 | # Keep a trace of the command line. |
| 2075 | # Strip out --no-create and --no-recursion so they do not pile up. |
| 2076 | # Strip out --silent because we don't want to record it for future runs. |
| 2077 | # Also quote any args containing shell meta-characters. |
| 2078 | # Make two passes to allow for proper duplicate-argument suppression. |
| 2079 | ac_configure_args= |
| 2080 | ac_configure_args0= |
| 2081 | ac_configure_args1= |
| 2082 | ac_must_keep_next=false |
| 2083 | for ac_pass in 1 2 |
| 2084 | do |
| 2085 | for ac_arg |
| 2086 | do |
| 2087 | case $ac_arg in |
| 2088 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
| 2089 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 2090 | | -silent | --silent | --silen | --sile | --sil) |
| 2091 | continue ;; |
| 2092 | *\'*) |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 2093 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 2094 | esac |
| 2095 | case $ac_pass in |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 2096 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 2097 | 2) |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 2098 | as_fn_append ac_configure_args1 " '$ac_arg'" |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 2099 | if test $ac_must_keep_next = true; then |
| 2100 | ac_must_keep_next=false # Got value, back to normal. |
| 2101 | else |
| 2102 | case $ac_arg in |
| 2103 | *=* | --config-cache | -C | -disable-* | --disable-* \ |
| 2104 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
| 2105 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
| 2106 | | -with-* | --with-* | -without-* | --without-* | --x) |
| 2107 | case "$ac_configure_args0 " in |
| 2108 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
| 2109 | esac |
| 2110 | ;; |
| 2111 | -* ) ac_must_keep_next=true ;; |
| 2112 | esac |
| 2113 | fi |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 2114 | as_fn_append ac_configure_args " '$ac_arg'" |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 2115 | ;; |
| 2116 | esac |
| 2117 | done |
| 2118 | done |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 2119 | { ac_configure_args0=; unset ac_configure_args0;} |
| 2120 | { ac_configure_args1=; unset ac_configure_args1;} |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 2121 | |
| 2122 | # When interrupted or exit'd, cleanup temporary files, and complete |
| 2123 | # config.log. We remove comments because anyway the quotes in there |
| 2124 | # would cause problems or look ugly. |
| 2125 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
| 2126 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. |
| 2127 | trap 'exit_status=$? |
| 2128 | # Save into config.log some information that might help in debugging. |
| 2129 | { |
| 2130 | echo |
| 2131 | |
Nick Sanders | fb72e5e | 2018-08-09 17:01:01 -0700 | [diff] [blame] | 2132 | $as_echo "## ---------------- ## |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 2133 | ## Cache variables. ## |
Nick Sanders | fb72e5e | 2018-08-09 17:01:01 -0700 | [diff] [blame] | 2134 | ## ---------------- ##" |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 2135 | echo |
| 2136 | # The following way of writing the cache mishandles newlines in values, |
| 2137 | ( |
| 2138 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do |
| 2139 | eval ac_val=\$$ac_var |
| 2140 | case $ac_val in #( |
| 2141 | *${as_nl}*) |
| 2142 | case $ac_var in #( |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 2143 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
| 2144 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 2145 | esac |
| 2146 | case $ac_var in #( |
| 2147 | _ | IFS | as_nl) ;; #( |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 2148 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
| 2149 | *) { eval $ac_var=; unset $ac_var;} ;; |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 2150 | esac ;; |
| 2151 | esac |
| 2152 | done |
| 2153 | (set) 2>&1 | |
| 2154 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
| 2155 | *${as_nl}ac_space=\ *) |
| 2156 | sed -n \ |
| 2157 | "s/'\''/'\''\\\\'\'''\''/g; |
| 2158 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" |
| 2159 | ;; #( |
| 2160 | *) |
| 2161 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
| 2162 | ;; |
| 2163 | esac | |
| 2164 | sort |
| 2165 | ) |
| 2166 | echo |
| 2167 | |
Nick Sanders | fb72e5e | 2018-08-09 17:01:01 -0700 | [diff] [blame] | 2168 | $as_echo "## ----------------- ## |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 2169 | ## Output variables. ## |
Nick Sanders | fb72e5e | 2018-08-09 17:01:01 -0700 | [diff] [blame] | 2170 | ## ----------------- ##" |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 2171 | echo |
| 2172 | for ac_var in $ac_subst_vars |
| 2173 | do |
| 2174 | eval ac_val=\$$ac_var |
| 2175 | case $ac_val in |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 2176 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 2177 | esac |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 2178 | $as_echo "$ac_var='\''$ac_val'\''" |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 2179 | done | sort |
| 2180 | echo |
| 2181 | |
| 2182 | if test -n "$ac_subst_files"; then |
Nick Sanders | fb72e5e | 2018-08-09 17:01:01 -0700 | [diff] [blame] | 2183 | $as_echo "## ------------------- ## |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 2184 | ## File substitutions. ## |
Nick Sanders | fb72e5e | 2018-08-09 17:01:01 -0700 | [diff] [blame] | 2185 | ## ------------------- ##" |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 2186 | echo |
| 2187 | for ac_var in $ac_subst_files |
| 2188 | do |
| 2189 | eval ac_val=\$$ac_var |
| 2190 | case $ac_val in |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 2191 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 2192 | esac |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 2193 | $as_echo "$ac_var='\''$ac_val'\''" |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 2194 | done | sort |
| 2195 | echo |
| 2196 | fi |
| 2197 | |
| 2198 | if test -s confdefs.h; then |
Nick Sanders | fb72e5e | 2018-08-09 17:01:01 -0700 | [diff] [blame] | 2199 | $as_echo "## ----------- ## |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 2200 | ## confdefs.h. ## |
Nick Sanders | fb72e5e | 2018-08-09 17:01:01 -0700 | [diff] [blame] | 2201 | ## ----------- ##" |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 2202 | echo |
| 2203 | cat confdefs.h |
| 2204 | echo |
| 2205 | fi |
| 2206 | test "$ac_signal" != 0 && |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 2207 | $as_echo "$as_me: caught signal $ac_signal" |
| 2208 | $as_echo "$as_me: exit $exit_status" |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 2209 | } >&5 |
| 2210 | rm -f core *.core core.conftest.* && |
| 2211 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && |
| 2212 | exit $exit_status |
| 2213 | ' 0 |
| 2214 | for ac_signal in 1 2 13 15; do |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 2215 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 2216 | done |
| 2217 | ac_signal=0 |
| 2218 | |
| 2219 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
| 2220 | rm -f -r conftest* confdefs.h |
| 2221 | |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 2222 | $as_echo "/* confdefs.h */" > confdefs.h |
| 2223 | |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 2224 | # Predefined preprocessor variables. |
| 2225 | |
| 2226 | cat >>confdefs.h <<_ACEOF |
| 2227 | #define PACKAGE_NAME "$PACKAGE_NAME" |
| 2228 | _ACEOF |
| 2229 | |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 2230 | cat >>confdefs.h <<_ACEOF |
| 2231 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
| 2232 | _ACEOF |
| 2233 | |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 2234 | cat >>confdefs.h <<_ACEOF |
| 2235 | #define PACKAGE_VERSION "$PACKAGE_VERSION" |
| 2236 | _ACEOF |
| 2237 | |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 2238 | cat >>confdefs.h <<_ACEOF |
| 2239 | #define PACKAGE_STRING "$PACKAGE_STRING" |
| 2240 | _ACEOF |
| 2241 | |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 2242 | cat >>confdefs.h <<_ACEOF |
| 2243 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
| 2244 | _ACEOF |
| 2245 | |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 2246 | cat >>confdefs.h <<_ACEOF |
| 2247 | #define PACKAGE_URL "$PACKAGE_URL" |
| 2248 | _ACEOF |
| 2249 | |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 2250 | |
| 2251 | # Let the site file select an alternate cache file if it wants to. |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 2252 | # Prefer an explicitly selected file to automatically selected ones. |
| 2253 | ac_site_file1=NONE |
| 2254 | ac_site_file2=NONE |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 2255 | if test -n "$CONFIG_SITE"; then |
Nick Sanders | fb72e5e | 2018-08-09 17:01:01 -0700 | [diff] [blame] | 2256 | # We do not want a PATH search for config.site. |
| 2257 | case $CONFIG_SITE in #(( |
| 2258 | -*) ac_site_file1=./$CONFIG_SITE;; |
| 2259 | */*) ac_site_file1=$CONFIG_SITE;; |
| 2260 | *) ac_site_file1=./$CONFIG_SITE;; |
| 2261 | esac |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 2262 | elif test "x$prefix" != xNONE; then |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 2263 | ac_site_file1=$prefix/share/config.site |
| 2264 | ac_site_file2=$prefix/etc/config.site |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 2265 | else |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 2266 | ac_site_file1=$ac_default_prefix/share/config.site |
| 2267 | ac_site_file2=$ac_default_prefix/etc/config.site |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 2268 | fi |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 2269 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 2270 | do |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 2271 | test "x$ac_site_file" = xNONE && continue |
| 2272 | if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then |
| 2273 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 |
| 2274 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 2275 | sed 's/^/| /' "$ac_site_file" >&5 |
Nick Sanders | fb72e5e | 2018-08-09 17:01:01 -0700 | [diff] [blame] | 2276 | . "$ac_site_file" \ |
| 2277 | || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 2278 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 2279 | as_fn_error $? "failed to load site script $ac_site_file |
| 2280 | See \`config.log' for more details" "$LINENO" 5; } |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 2281 | fi |
| 2282 | done |
| 2283 | |
| 2284 | if test -r "$cache_file"; then |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 2285 | # Some versions of bash will fail to source /dev/null (special files |
| 2286 | # actually), so we avoid doing that. DJGPP emulates it as a regular file. |
| 2287 | if test /dev/null != "$cache_file" && test -f "$cache_file"; then |
| 2288 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 |
| 2289 | $as_echo "$as_me: loading cache $cache_file" >&6;} |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 2290 | case $cache_file in |
| 2291 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
| 2292 | *) . "./$cache_file";; |
| 2293 | esac |
| 2294 | fi |
| 2295 | else |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 2296 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 |
| 2297 | $as_echo "$as_me: creating cache $cache_file" >&6;} |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 2298 | >$cache_file |
| 2299 | fi |
| 2300 | |
| 2301 | # Check that the precious variables saved in the cache have kept the same |
| 2302 | # value. |
| 2303 | ac_cache_corrupted=false |
| 2304 | for ac_var in $ac_precious_vars; do |
| 2305 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
| 2306 | eval ac_new_set=\$ac_env_${ac_var}_set |
| 2307 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
| 2308 | eval ac_new_val=\$ac_env_${ac_var}_value |
| 2309 | case $ac_old_set,$ac_new_set in |
| 2310 | set,) |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 2311 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
| 2312 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 2313 | ac_cache_corrupted=: ;; |
| 2314 | ,set) |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 2315 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 |
| 2316 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 2317 | ac_cache_corrupted=: ;; |
| 2318 | ,);; |
| 2319 | *) |
| 2320 | if test "x$ac_old_val" != "x$ac_new_val"; then |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 2321 | # differences in whitespace do not lead to failure. |
| 2322 | ac_old_val_w=`echo x $ac_old_val` |
| 2323 | ac_new_val_w=`echo x $ac_new_val` |
| 2324 | if test "$ac_old_val_w" != "$ac_new_val_w"; then |
| 2325 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 |
| 2326 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
| 2327 | ac_cache_corrupted=: |
| 2328 | else |
| 2329 | { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 |
| 2330 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} |
| 2331 | eval $ac_var=\$ac_old_val |
| 2332 | fi |
| 2333 | { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 |
| 2334 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} |
| 2335 | { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 |
| 2336 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 2337 | fi;; |
| 2338 | esac |
| 2339 | # Pass precious variables to config.status. |
| 2340 | if test "$ac_new_set" = set; then |
| 2341 | case $ac_new_val in |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 2342 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 2343 | *) ac_arg=$ac_var=$ac_new_val ;; |
| 2344 | esac |
| 2345 | case " $ac_configure_args " in |
| 2346 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 2347 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 2348 | esac |
| 2349 | fi |
| 2350 | done |
| 2351 | if $ac_cache_corrupted; then |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 2352 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 2353 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 2354 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 |
| 2355 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
Nick Sanders | fb72e5e | 2018-08-09 17:01:01 -0700 | [diff] [blame] | 2356 | as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 2357 | fi |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 2358 | ## -------------------- ## |
| 2359 | ## Main body of script. ## |
| 2360 | ## -------------------- ## |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 2361 | |
| 2362 | ac_ext=c |
| 2363 | ac_cpp='$CPP $CPPFLAGS' |
| 2364 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2365 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2366 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2367 | |
| 2368 | |
| 2369 | |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 2370 | |
| 2371 | # Check whether --with-static was given. |
| 2372 | if test "${with_static+set}" = set; then : |
| 2373 | withval=$with_static; |
| 2374 | fi |
| 2375 | |
| 2376 | |
nick.j.sanders | 00fa12e | 2014-08-04 21:04:06 +0000 | [diff] [blame] | 2377 | if test "$with_static" = "yes" |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 2378 | then |
nick.j.sanders | 7a6b252 | 2014-02-11 08:53:31 +0000 | [diff] [blame] | 2379 | { $as_echo "$as_me:${as_lineno-$LINENO}: Compiling with staticaly linked libraries." >&5 |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 2380 | $as_echo "$as_me: Compiling with staticaly linked libraries." >&6;} |
nick.j.sanders | 7a6b252 | 2014-02-11 08:53:31 +0000 | [diff] [blame] | 2381 | LIBS="$LIBS -static" |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 2382 | else |
nick.j.sanders | 7a6b252 | 2014-02-11 08:53:31 +0000 | [diff] [blame] | 2383 | { $as_echo "$as_me:${as_lineno-$LINENO}: Compiling with dynamically linked libraries." >&5 |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 2384 | $as_echo "$as_me: Compiling with dynamically linked libraries." >&6;} |
| 2385 | fi |
| 2386 | |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 2387 | ac_aux_dir= |
| 2388 | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do |
Nick Sanders | fb72e5e | 2018-08-09 17:01:01 -0700 | [diff] [blame] | 2389 | if test -f "$ac_dir/install-sh"; then |
| 2390 | ac_aux_dir=$ac_dir |
| 2391 | ac_install_sh="$ac_aux_dir/install-sh -c" |
| 2392 | break |
| 2393 | elif test -f "$ac_dir/install.sh"; then |
| 2394 | ac_aux_dir=$ac_dir |
| 2395 | ac_install_sh="$ac_aux_dir/install.sh -c" |
| 2396 | break |
| 2397 | elif test -f "$ac_dir/shtool"; then |
| 2398 | ac_aux_dir=$ac_dir |
| 2399 | ac_install_sh="$ac_aux_dir/shtool install -c" |
| 2400 | break |
| 2401 | fi |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 2402 | done |
| 2403 | if test -z "$ac_aux_dir"; then |
Nick Sanders | fb72e5e | 2018-08-09 17:01:01 -0700 | [diff] [blame] | 2404 | as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 2405 | fi |
| 2406 | |
| 2407 | # These three variables are undocumented and unsupported, |
| 2408 | # and are intended to be withdrawn in a future Autoconf release. |
| 2409 | # They can cause serious problems if a builder's source tree is in a directory |
| 2410 | # whose full name contains unusual characters. |
| 2411 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. |
| 2412 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. |
| 2413 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. |
| 2414 | |
| 2415 | |
| 2416 | # Make sure we can run config.sub. |
| 2417 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || |
Nick Sanders | fb72e5e | 2018-08-09 17:01:01 -0700 | [diff] [blame] | 2418 | as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 2419 | |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 2420 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 |
| 2421 | $as_echo_n "checking build system type... " >&6; } |
Nick Sanders | fb72e5e | 2018-08-09 17:01:01 -0700 | [diff] [blame] | 2422 | if ${ac_cv_build+:} false; then : |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 2423 | $as_echo_n "(cached) " >&6 |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 2424 | else |
| 2425 | ac_build_alias=$build_alias |
| 2426 | test "x$ac_build_alias" = x && |
| 2427 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` |
| 2428 | test "x$ac_build_alias" = x && |
Nick Sanders | fb72e5e | 2018-08-09 17:01:01 -0700 | [diff] [blame] | 2429 | as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 2430 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || |
Nick Sanders | fb72e5e | 2018-08-09 17:01:01 -0700 | [diff] [blame] | 2431 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 2432 | |
| 2433 | fi |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 2434 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 |
| 2435 | $as_echo "$ac_cv_build" >&6; } |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 2436 | case $ac_cv_build in |
| 2437 | *-*-*) ;; |
Nick Sanders | fb72e5e | 2018-08-09 17:01:01 -0700 | [diff] [blame] | 2438 | *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 2439 | esac |
| 2440 | build=$ac_cv_build |
| 2441 | ac_save_IFS=$IFS; IFS='-' |
| 2442 | set x $ac_cv_build |
| 2443 | shift |
| 2444 | build_cpu=$1 |
| 2445 | build_vendor=$2 |
| 2446 | shift; shift |
| 2447 | # Remember, the first character of IFS is used to create $*, |
| 2448 | # except with old shells: |
| 2449 | build_os=$* |
| 2450 | IFS=$ac_save_IFS |
| 2451 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac |
| 2452 | |
| 2453 | |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 2454 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 |
| 2455 | $as_echo_n "checking host system type... " >&6; } |
Nick Sanders | fb72e5e | 2018-08-09 17:01:01 -0700 | [diff] [blame] | 2456 | if ${ac_cv_host+:} false; then : |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 2457 | $as_echo_n "(cached) " >&6 |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 2458 | else |
| 2459 | if test "x$host_alias" = x; then |
| 2460 | ac_cv_host=$ac_cv_build |
| 2461 | else |
| 2462 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || |
Nick Sanders | fb72e5e | 2018-08-09 17:01:01 -0700 | [diff] [blame] | 2463 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 2464 | fi |
| 2465 | |
| 2466 | fi |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 2467 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 |
| 2468 | $as_echo "$ac_cv_host" >&6; } |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 2469 | case $ac_cv_host in |
| 2470 | *-*-*) ;; |
Nick Sanders | fb72e5e | 2018-08-09 17:01:01 -0700 | [diff] [blame] | 2471 | *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 2472 | esac |
| 2473 | host=$ac_cv_host |
| 2474 | ac_save_IFS=$IFS; IFS='-' |
| 2475 | set x $ac_cv_host |
| 2476 | shift |
| 2477 | host_cpu=$1 |
| 2478 | host_vendor=$2 |
| 2479 | shift; shift |
| 2480 | # Remember, the first character of IFS is used to create $*, |
| 2481 | # except with old shells: |
| 2482 | host_os=$* |
| 2483 | IFS=$ac_save_IFS |
| 2484 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac |
| 2485 | |
| 2486 | |
nick.j.sanders | b4c2ce3 | 2009-10-27 05:56:42 +0000 | [diff] [blame] | 2487 | # Checking for target cpu and setting custom configuration |
| 2488 | # for the different platforms |
nick.j.sanders | 7a6b252 | 2014-02-11 08:53:31 +0000 | [diff] [blame] | 2489 | case "$host_cpu" in #( |
| 2490 | *x86_64*) : |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 2491 | |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 2492 | |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 2493 | $as_echo "#define STRESSAPPTEST_CPU_X86_64 /**/" >>confdefs.h |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 2494 | |
nick.j.sanders | 7a6b252 | 2014-02-11 08:53:31 +0000 | [diff] [blame] | 2495 | ;; #( |
| 2496 | *i686*) : |
| 2497 | |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 2498 | |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 2499 | $as_echo "#define STRESSAPPTEST_CPU_I686 /**/" >>confdefs.h |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 2500 | |
nick.j.sanders | 7a6b252 | 2014-02-11 08:53:31 +0000 | [diff] [blame] | 2501 | ;; #( |
| 2502 | *powerpc*) : |
| 2503 | |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 2504 | |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 2505 | $as_echo "#define STRESSAPPTEST_CPU_PPC /**/" >>confdefs.h |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 2506 | |
nick.j.sanders | 7a6b252 | 2014-02-11 08:53:31 +0000 | [diff] [blame] | 2507 | ;; #( |
| 2508 | *armv7a*) : |
| 2509 | |
nick.j.sanders | 6d1e64d | 2010-05-14 03:47:11 +0000 | [diff] [blame] | 2510 | |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 2511 | $as_echo "#define STRESSAPPTEST_CPU_ARMV7A /**/" >>confdefs.h |
nick.j.sanders | 6d1e64d | 2010-05-14 03:47:11 +0000 | [diff] [blame] | 2512 | |
nick.j.sanders | 7a6b252 | 2014-02-11 08:53:31 +0000 | [diff] [blame] | 2513 | ;; #( |
Wei Huang | 8345145 | 2017-11-20 23:40:54 -0500 | [diff] [blame] | 2514 | *aarch64*) : |
| 2515 | |
| 2516 | |
| 2517 | $as_echo "#define STRESSAPPTEST_CPU_AARCH64 /**/" >>confdefs.h |
| 2518 | |
| 2519 | ;; #( |
nick.j.sanders | 7a6b252 | 2014-02-11 08:53:31 +0000 | [diff] [blame] | 2520 | *) : |
Wei Huang | 8345145 | 2017-11-20 23:40:54 -0500 | [diff] [blame] | 2521 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unsupported CPU: $host_cpu! Try x86_64, i686, powerpc, armv7a, or aarch64" >&5 |
| 2522 | $as_echo "$as_me: WARNING: Unsupported CPU: $host_cpu! Try x86_64, i686, powerpc, armv7a, or aarch64" >&2;} |
nick.j.sanders | 7a6b252 | 2014-02-11 08:53:31 +0000 | [diff] [blame] | 2523 | ;; |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 2524 | esac |
| 2525 | |
nick.j.sanders | b4c2ce3 | 2009-10-27 05:56:42 +0000 | [diff] [blame] | 2526 | ## The following allows like systems to share settings. This is not meant to |
| 2527 | ## imply that these OS are the same thing. From OpenOffice dmake configure.in |
nick.j.sanders | 7a6b252 | 2014-02-11 08:53:31 +0000 | [diff] [blame] | 2528 | case "$host_os" in #( |
| 2529 | *linux*) : |
| 2530 | |
nick.j.sanders | 6d1e64d | 2010-05-14 03:47:11 +0000 | [diff] [blame] | 2531 | OS_VERSION=linux |
nick.j.sanders | b4c2ce3 | 2009-10-27 05:56:42 +0000 | [diff] [blame] | 2532 | |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 2533 | $as_echo "#define STRESSAPPTEST_OS_LINUX /**/" >>confdefs.h |
nick.j.sanders | b4c2ce3 | 2009-10-27 05:56:42 +0000 | [diff] [blame] | 2534 | |
nick.j.sanders | 7a6b252 | 2014-02-11 08:53:31 +0000 | [diff] [blame] | 2535 | ;; #( |
| 2536 | *darwin*) : |
| 2537 | |
nick.j.sanders | 6d1e64d | 2010-05-14 03:47:11 +0000 | [diff] [blame] | 2538 | OS_VERSION=macosx |
nick.j.sanders | b4c2ce3 | 2009-10-27 05:56:42 +0000 | [diff] [blame] | 2539 | |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 2540 | $as_echo "#define STRESSAPPTEST_OS_DARWIN /**/" >>confdefs.h |
nick.j.sanders | b4c2ce3 | 2009-10-27 05:56:42 +0000 | [diff] [blame] | 2541 | |
nick.j.sanders | 7a6b252 | 2014-02-11 08:53:31 +0000 | [diff] [blame] | 2542 | ;; #( |
| 2543 | *freebsd*) : |
| 2544 | |
nick.j.sanders | 6d1e64d | 2010-05-14 03:47:11 +0000 | [diff] [blame] | 2545 | OS_VERSION=bsd |
nick.j.sanders | b4c2ce3 | 2009-10-27 05:56:42 +0000 | [diff] [blame] | 2546 | |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 2547 | $as_echo "#define STRESSAPPTEST_OS_BSD /**/" >>confdefs.h |
nick.j.sanders | b4c2ce3 | 2009-10-27 05:56:42 +0000 | [diff] [blame] | 2548 | |
nick.j.sanders | 7a6b252 | 2014-02-11 08:53:31 +0000 | [diff] [blame] | 2549 | ;; #( |
| 2550 | *netbsd*) : |
| 2551 | |
nick.j.sanders | 6d1e64d | 2010-05-14 03:47:11 +0000 | [diff] [blame] | 2552 | OS_VERSION=bsd |
nick.j.sanders | b4c2ce3 | 2009-10-27 05:56:42 +0000 | [diff] [blame] | 2553 | |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 2554 | $as_echo "#define STRESSAPPTEST_OS_BSD /**/" >>confdefs.h |
nick.j.sanders | b4c2ce3 | 2009-10-27 05:56:42 +0000 | [diff] [blame] | 2555 | |
nick.j.sanders | 7a6b252 | 2014-02-11 08:53:31 +0000 | [diff] [blame] | 2556 | ;; #( |
| 2557 | *) : |
| 2558 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unsupported system: $host_os" >&5 |
| 2559 | $as_echo "$as_me: WARNING: unsupported system: $host_os" >&2;} |
| 2560 | ;; |
nick.j.sanders | b4c2ce3 | 2009-10-27 05:56:42 +0000 | [diff] [blame] | 2561 | esac |
| 2562 | |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 2563 | am__api_version='1.11' |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 2564 | |
| 2565 | # Find a good install program. We prefer a C program (faster), |
| 2566 | # so one script is as good as another. But avoid the broken or |
| 2567 | # incompatible versions: |
| 2568 | # SysV /etc/install, /usr/sbin/install |
| 2569 | # SunOS /usr/etc/install |
| 2570 | # IRIX /sbin/install |
| 2571 | # AIX /bin/install |
| 2572 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
| 2573 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
| 2574 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
| 2575 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
| 2576 | # OS/2's system install, which has a completely different semantic |
| 2577 | # ./install, which can be erroneously created by make from ./install.sh. |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 2578 | # Reject install programs that cannot install multiple files. |
| 2579 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 |
| 2580 | $as_echo_n "checking for a BSD-compatible install... " >&6; } |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 2581 | if test -z "$INSTALL"; then |
Nick Sanders | fb72e5e | 2018-08-09 17:01:01 -0700 | [diff] [blame] | 2582 | if ${ac_cv_path_install+:} false; then : |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 2583 | $as_echo_n "(cached) " >&6 |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 2584 | else |
| 2585 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2586 | for as_dir in $PATH |
| 2587 | do |
| 2588 | IFS=$as_save_IFS |
| 2589 | test -z "$as_dir" && as_dir=. |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 2590 | # Account for people who put trailing slashes in PATH elements. |
| 2591 | case $as_dir/ in #(( |
| 2592 | ./ | .// | /[cC]/* | \ |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 2593 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 2594 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 2595 | /usr/ucb/* ) ;; |
| 2596 | *) |
| 2597 | # OSF1 and SCO ODT 3.0 have their own names for install. |
| 2598 | # Don't use installbsd from OSF since it installs stuff as root |
| 2599 | # by default. |
| 2600 | for ac_prog in ginstall scoinst install; do |
| 2601 | for ac_exec_ext in '' $ac_executable_extensions; do |
Nick Sanders | fb72e5e | 2018-08-09 17:01:01 -0700 | [diff] [blame] | 2602 | if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 2603 | if test $ac_prog = install && |
| 2604 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 2605 | # AIX install. It has an incompatible calling convention. |
| 2606 | : |
| 2607 | elif test $ac_prog = install && |
| 2608 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 2609 | # program-specific install script used by HP pwplus--don't use. |
| 2610 | : |
| 2611 | else |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 2612 | rm -rf conftest.one conftest.two conftest.dir |
| 2613 | echo one > conftest.one |
| 2614 | echo two > conftest.two |
| 2615 | mkdir conftest.dir |
| 2616 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && |
| 2617 | test -s conftest.one && test -s conftest.two && |
| 2618 | test -s conftest.dir/conftest.one && |
| 2619 | test -s conftest.dir/conftest.two |
| 2620 | then |
| 2621 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
| 2622 | break 3 |
| 2623 | fi |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 2624 | fi |
| 2625 | fi |
| 2626 | done |
| 2627 | done |
| 2628 | ;; |
| 2629 | esac |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 2630 | |
| 2631 | done |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 2632 | IFS=$as_save_IFS |
| 2633 | |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 2634 | rm -rf conftest.one conftest.two conftest.dir |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 2635 | |
| 2636 | fi |
| 2637 | if test "${ac_cv_path_install+set}" = set; then |
| 2638 | INSTALL=$ac_cv_path_install |
| 2639 | else |
| 2640 | # As a last resort, use the slow shell script. Don't cache a |
| 2641 | # value for INSTALL within a source directory, because that will |
| 2642 | # break other packages using the cache if that directory is |
| 2643 | # removed, or if the value is a relative name. |
| 2644 | INSTALL=$ac_install_sh |
| 2645 | fi |
| 2646 | fi |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 2647 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 |
| 2648 | $as_echo "$INSTALL" >&6; } |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 2649 | |
| 2650 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
| 2651 | # It thinks the first close brace ends the variable substitution. |
| 2652 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
| 2653 | |
| 2654 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
| 2655 | |
| 2656 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
| 2657 | |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 2658 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 |
| 2659 | $as_echo_n "checking whether build environment is sane... " >&6; } |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 2660 | # Just in case |
| 2661 | sleep 1 |
| 2662 | echo timestamp > conftest.file |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 2663 | # Reject unsafe characters in $srcdir or the absolute working directory |
| 2664 | # name. Accept space and tab only in the latter. |
| 2665 | am_lf=' |
| 2666 | ' |
| 2667 | case `pwd` in |
| 2668 | *[\\\"\#\$\&\'\`$am_lf]*) |
Nick Sanders | fb72e5e | 2018-08-09 17:01:01 -0700 | [diff] [blame] | 2669 | as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 2670 | esac |
| 2671 | case $srcdir in |
| 2672 | *[\\\"\#\$\&\'\`$am_lf\ \ ]*) |
Nick Sanders | fb72e5e | 2018-08-09 17:01:01 -0700 | [diff] [blame] | 2673 | as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;; |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 2674 | esac |
| 2675 | |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 2676 | # Do `set' in a subshell so we don't clobber the current shell's |
| 2677 | # arguments. Must try -L first in case configure is actually a |
| 2678 | # symlink; some systems play weird games with the mod time of symlinks |
| 2679 | # (eg FreeBSD returns the mod time of the symlink's containing |
| 2680 | # directory). |
| 2681 | if ( |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 2682 | set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 2683 | if test "$*" = "X"; then |
| 2684 | # -L didn't work. |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 2685 | set X `ls -t "$srcdir/configure" conftest.file` |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 2686 | fi |
| 2687 | rm -f conftest.file |
| 2688 | if test "$*" != "X $srcdir/configure conftest.file" \ |
| 2689 | && test "$*" != "X conftest.file $srcdir/configure"; then |
| 2690 | |
| 2691 | # If neither matched, then we have a broken ls. This can happen |
| 2692 | # if, for instance, CONFIG_SHELL is bash and it inherits a |
| 2693 | # broken ls alias from the environment. This has actually |
| 2694 | # happened. Such a system could not be considered "sane". |
Nick Sanders | fb72e5e | 2018-08-09 17:01:01 -0700 | [diff] [blame] | 2695 | as_fn_error $? "ls -t appears to fail. Make sure there is not a broken |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 2696 | alias in your environment" "$LINENO" 5 |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 2697 | fi |
| 2698 | |
| 2699 | test "$2" = conftest.file |
| 2700 | ) |
| 2701 | then |
| 2702 | # Ok. |
| 2703 | : |
| 2704 | else |
Nick Sanders | fb72e5e | 2018-08-09 17:01:01 -0700 | [diff] [blame] | 2705 | as_fn_error $? "newly created file is older than distributed files! |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 2706 | Check your system clock" "$LINENO" 5 |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 2707 | fi |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 2708 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 2709 | $as_echo "yes" >&6; } |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 2710 | test "$program_prefix" != NONE && |
| 2711 | program_transform_name="s&^&$program_prefix&;$program_transform_name" |
| 2712 | # Use a double $ so make ignores it. |
| 2713 | test "$program_suffix" != NONE && |
| 2714 | program_transform_name="s&\$&$program_suffix&;$program_transform_name" |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 2715 | # Double any \ or $. |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 2716 | # By default was `s,x,x', remove it if useless. |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 2717 | ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' |
| 2718 | program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 2719 | |
| 2720 | # expand $ac_aux_dir to an absolute path |
| 2721 | am_aux_dir=`cd $ac_aux_dir && pwd` |
| 2722 | |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 2723 | if test x"${MISSING+set}" != xset; then |
| 2724 | case $am_aux_dir in |
| 2725 | *\ * | *\ *) |
| 2726 | MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; |
| 2727 | *) |
| 2728 | MISSING="\${SHELL} $am_aux_dir/missing" ;; |
| 2729 | esac |
| 2730 | fi |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 2731 | # Use eval to expand $SHELL |
| 2732 | if eval "$MISSING --run true"; then |
| 2733 | am_missing_run="$MISSING --run " |
| 2734 | else |
| 2735 | am_missing_run= |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 2736 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5 |
| 2737 | $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 2738 | fi |
| 2739 | |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 2740 | if test x"${install_sh}" != xset; then |
| 2741 | case $am_aux_dir in |
| 2742 | *\ * | *\ *) |
| 2743 | install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; |
| 2744 | *) |
| 2745 | install_sh="\${SHELL} $am_aux_dir/install-sh" |
| 2746 | esac |
| 2747 | fi |
| 2748 | |
| 2749 | # Installed binaries are usually stripped using `strip' when the user |
| 2750 | # run `make install-strip'. However `strip' might not be the right |
| 2751 | # tool to use in cross-compilation environments, therefore Automake |
| 2752 | # will honor the `STRIP' environment variable to overrule this program. |
| 2753 | if test "$cross_compiling" != no; then |
| 2754 | if test -n "$ac_tool_prefix"; then |
| 2755 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. |
| 2756 | set dummy ${ac_tool_prefix}strip; ac_word=$2 |
| 2757 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 2758 | $as_echo_n "checking for $ac_word... " >&6; } |
Nick Sanders | fb72e5e | 2018-08-09 17:01:01 -0700 | [diff] [blame] | 2759 | if ${ac_cv_prog_STRIP+:} false; then : |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 2760 | $as_echo_n "(cached) " >&6 |
| 2761 | else |
| 2762 | if test -n "$STRIP"; then |
| 2763 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
| 2764 | else |
| 2765 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2766 | for as_dir in $PATH |
| 2767 | do |
| 2768 | IFS=$as_save_IFS |
| 2769 | test -z "$as_dir" && as_dir=. |
| 2770 | for ac_exec_ext in '' $ac_executable_extensions; do |
Nick Sanders | fb72e5e | 2018-08-09 17:01:01 -0700 | [diff] [blame] | 2771 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 2772 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
| 2773 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2774 | break 2 |
| 2775 | fi |
| 2776 | done |
| 2777 | done |
| 2778 | IFS=$as_save_IFS |
| 2779 | |
| 2780 | fi |
| 2781 | fi |
| 2782 | STRIP=$ac_cv_prog_STRIP |
| 2783 | if test -n "$STRIP"; then |
| 2784 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 |
| 2785 | $as_echo "$STRIP" >&6; } |
| 2786 | else |
| 2787 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 2788 | $as_echo "no" >&6; } |
| 2789 | fi |
| 2790 | |
| 2791 | |
| 2792 | fi |
| 2793 | if test -z "$ac_cv_prog_STRIP"; then |
| 2794 | ac_ct_STRIP=$STRIP |
| 2795 | # Extract the first word of "strip", so it can be a program name with args. |
| 2796 | set dummy strip; ac_word=$2 |
| 2797 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 2798 | $as_echo_n "checking for $ac_word... " >&6; } |
Nick Sanders | fb72e5e | 2018-08-09 17:01:01 -0700 | [diff] [blame] | 2799 | if ${ac_cv_prog_ac_ct_STRIP+:} false; then : |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 2800 | $as_echo_n "(cached) " >&6 |
| 2801 | else |
| 2802 | if test -n "$ac_ct_STRIP"; then |
| 2803 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. |
| 2804 | else |
| 2805 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2806 | for as_dir in $PATH |
| 2807 | do |
| 2808 | IFS=$as_save_IFS |
| 2809 | test -z "$as_dir" && as_dir=. |
| 2810 | for ac_exec_ext in '' $ac_executable_extensions; do |
Nick Sanders | fb72e5e | 2018-08-09 17:01:01 -0700 | [diff] [blame] | 2811 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 2812 | ac_cv_prog_ac_ct_STRIP="strip" |
| 2813 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2814 | break 2 |
| 2815 | fi |
| 2816 | done |
| 2817 | done |
| 2818 | IFS=$as_save_IFS |
| 2819 | |
| 2820 | fi |
| 2821 | fi |
| 2822 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
| 2823 | if test -n "$ac_ct_STRIP"; then |
| 2824 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 |
| 2825 | $as_echo "$ac_ct_STRIP" >&6; } |
| 2826 | else |
| 2827 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 2828 | $as_echo "no" >&6; } |
| 2829 | fi |
| 2830 | |
| 2831 | if test "x$ac_ct_STRIP" = x; then |
| 2832 | STRIP=":" |
| 2833 | else |
| 2834 | case $cross_compiling:$ac_tool_warned in |
| 2835 | yes:) |
| 2836 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 2837 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 2838 | ac_tool_warned=yes ;; |
| 2839 | esac |
| 2840 | STRIP=$ac_ct_STRIP |
| 2841 | fi |
| 2842 | else |
| 2843 | STRIP="$ac_cv_prog_STRIP" |
| 2844 | fi |
| 2845 | |
| 2846 | fi |
| 2847 | INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" |
| 2848 | |
| 2849 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 |
| 2850 | $as_echo_n "checking for a thread-safe mkdir -p... " >&6; } |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 2851 | if test -z "$MKDIR_P"; then |
Nick Sanders | fb72e5e | 2018-08-09 17:01:01 -0700 | [diff] [blame] | 2852 | if ${ac_cv_path_mkdir+:} false; then : |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 2853 | $as_echo_n "(cached) " >&6 |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 2854 | else |
| 2855 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2856 | for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin |
| 2857 | do |
| 2858 | IFS=$as_save_IFS |
| 2859 | test -z "$as_dir" && as_dir=. |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 2860 | for ac_prog in mkdir gmkdir; do |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 2861 | for ac_exec_ext in '' $ac_executable_extensions; do |
Nick Sanders | fb72e5e | 2018-08-09 17:01:01 -0700 | [diff] [blame] | 2862 | as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 2863 | case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( |
| 2864 | 'mkdir (GNU coreutils) '* | \ |
| 2865 | 'mkdir (coreutils) '* | \ |
| 2866 | 'mkdir (fileutils) '4.1*) |
| 2867 | ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext |
| 2868 | break 3;; |
| 2869 | esac |
| 2870 | done |
| 2871 | done |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 2872 | done |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 2873 | IFS=$as_save_IFS |
| 2874 | |
| 2875 | fi |
| 2876 | |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 2877 | test -d ./--version && rmdir ./--version |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 2878 | if test "${ac_cv_path_mkdir+set}" = set; then |
| 2879 | MKDIR_P="$ac_cv_path_mkdir -p" |
| 2880 | else |
| 2881 | # As a last resort, use the slow shell script. Don't cache a |
| 2882 | # value for MKDIR_P within a source directory, because that will |
| 2883 | # break other packages using the cache if that directory is |
| 2884 | # removed, or if the value is a relative name. |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 2885 | MKDIR_P="$ac_install_sh -d" |
| 2886 | fi |
| 2887 | fi |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 2888 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 |
| 2889 | $as_echo "$MKDIR_P" >&6; } |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 2890 | |
| 2891 | mkdir_p="$MKDIR_P" |
| 2892 | case $mkdir_p in |
| 2893 | [\\/$]* | ?:[\\/]*) ;; |
| 2894 | */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; |
| 2895 | esac |
| 2896 | |
| 2897 | for ac_prog in gawk mawk nawk awk |
| 2898 | do |
| 2899 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 2900 | set dummy $ac_prog; ac_word=$2 |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 2901 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 2902 | $as_echo_n "checking for $ac_word... " >&6; } |
Nick Sanders | fb72e5e | 2018-08-09 17:01:01 -0700 | [diff] [blame] | 2903 | if ${ac_cv_prog_AWK+:} false; then : |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 2904 | $as_echo_n "(cached) " >&6 |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 2905 | else |
| 2906 | if test -n "$AWK"; then |
| 2907 | ac_cv_prog_AWK="$AWK" # Let the user override the test. |
| 2908 | else |
| 2909 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2910 | for as_dir in $PATH |
| 2911 | do |
| 2912 | IFS=$as_save_IFS |
| 2913 | test -z "$as_dir" && as_dir=. |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 2914 | for ac_exec_ext in '' $ac_executable_extensions; do |
Nick Sanders | fb72e5e | 2018-08-09 17:01:01 -0700 | [diff] [blame] | 2915 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 2916 | ac_cv_prog_AWK="$ac_prog" |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 2917 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 2918 | break 2 |
| 2919 | fi |
| 2920 | done |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 2921 | done |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 2922 | IFS=$as_save_IFS |
| 2923 | |
| 2924 | fi |
| 2925 | fi |
| 2926 | AWK=$ac_cv_prog_AWK |
| 2927 | if test -n "$AWK"; then |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 2928 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 |
| 2929 | $as_echo "$AWK" >&6; } |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 2930 | else |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 2931 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 2932 | $as_echo "no" >&6; } |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 2933 | fi |
| 2934 | |
| 2935 | |
| 2936 | test -n "$AWK" && break |
| 2937 | done |
| 2938 | |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 2939 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
| 2940 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } |
| 2941 | set x ${MAKE-make} |
| 2942 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` |
Nick Sanders | fb72e5e | 2018-08-09 17:01:01 -0700 | [diff] [blame] | 2943 | if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 2944 | $as_echo_n "(cached) " >&6 |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 2945 | else |
| 2946 | cat >conftest.make <<\_ACEOF |
| 2947 | SHELL = /bin/sh |
| 2948 | all: |
| 2949 | @echo '@@@%%%=$(MAKE)=@@@%%%' |
| 2950 | _ACEOF |
Nick Sanders | fb72e5e | 2018-08-09 17:01:01 -0700 | [diff] [blame] | 2951 | # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 2952 | case `${MAKE-make} -f conftest.make 2>/dev/null` in |
| 2953 | *@@@%%%=?*=@@@%%%*) |
| 2954 | eval ac_cv_prog_make_${ac_make}_set=yes;; |
| 2955 | *) |
| 2956 | eval ac_cv_prog_make_${ac_make}_set=no;; |
| 2957 | esac |
| 2958 | rm -f conftest.make |
| 2959 | fi |
| 2960 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 2961 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 2962 | $as_echo "yes" >&6; } |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 2963 | SET_MAKE= |
| 2964 | else |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 2965 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 2966 | $as_echo "no" >&6; } |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 2967 | SET_MAKE="MAKE=${MAKE-make}" |
| 2968 | fi |
| 2969 | |
| 2970 | rm -rf .tst 2>/dev/null |
| 2971 | mkdir .tst 2>/dev/null |
| 2972 | if test -d .tst; then |
| 2973 | am__leading_dot=. |
| 2974 | else |
| 2975 | am__leading_dot=_ |
| 2976 | fi |
| 2977 | rmdir .tst 2>/dev/null |
| 2978 | |
| 2979 | if test "`cd $srcdir && pwd`" != "`pwd`"; then |
| 2980 | # Use -I$(srcdir) only when $(srcdir) != ., so that make's output |
| 2981 | # is not polluted with repeated "-I." |
| 2982 | am__isrc=' -I$(srcdir)' |
| 2983 | # test to see if srcdir already configured |
| 2984 | if test -f $srcdir/config.status; then |
Nick Sanders | fb72e5e | 2018-08-09 17:01:01 -0700 | [diff] [blame] | 2985 | as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 2986 | fi |
| 2987 | fi |
| 2988 | |
| 2989 | # test whether we have cygpath |
| 2990 | if test -z "$CYGPATH_W"; then |
| 2991 | if (cygpath --version) >/dev/null 2>/dev/null; then |
| 2992 | CYGPATH_W='cygpath -w' |
| 2993 | else |
| 2994 | CYGPATH_W=echo |
| 2995 | fi |
| 2996 | fi |
| 2997 | |
| 2998 | |
| 2999 | # Define the identity of the package. |
| 3000 | PACKAGE='stressapptest' |
Nick Sanders | fb72e5e | 2018-08-09 17:01:01 -0700 | [diff] [blame] | 3001 | VERSION='1.0.9_autoconf' |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 3002 | |
| 3003 | |
| 3004 | cat >>confdefs.h <<_ACEOF |
| 3005 | #define PACKAGE "$PACKAGE" |
| 3006 | _ACEOF |
| 3007 | |
| 3008 | |
| 3009 | cat >>confdefs.h <<_ACEOF |
| 3010 | #define VERSION "$VERSION" |
| 3011 | _ACEOF |
| 3012 | |
| 3013 | # Some tools Automake needs. |
| 3014 | |
| 3015 | ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} |
| 3016 | |
| 3017 | |
| 3018 | AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} |
| 3019 | |
| 3020 | |
| 3021 | AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} |
| 3022 | |
| 3023 | |
| 3024 | AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} |
| 3025 | |
| 3026 | |
| 3027 | MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} |
| 3028 | |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 3029 | # We need awk for the "check" target. The system "awk" is bad on |
| 3030 | # some platforms. |
nick.j.sanders | 00fa12e | 2014-08-04 21:04:06 +0000 | [diff] [blame] | 3031 | # Always define AMTAR for backward compatibility. |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 3032 | |
nick.j.sanders | 00fa12e | 2014-08-04 21:04:06 +0000 | [diff] [blame] | 3033 | AMTAR=${AMTAR-"${am_missing_run}tar"} |
| 3034 | |
| 3035 | am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 3036 | |
| 3037 | |
| 3038 | |
| 3039 | |
| 3040 | |
| 3041 | |
| 3042 | ac_config_headers="$ac_config_headers src/stressapptest_config.h" |
| 3043 | |
| 3044 | |
| 3045 | # Checks for programs. |
nick.j.sanders | b4c2ce3 | 2009-10-27 05:56:42 +0000 | [diff] [blame] | 3046 | # Don't generate CXXFLAGS defaults: if CXXFLAGS are unset |
| 3047 | # AC_PROG_CXX will override them with unwanted defaults. |
| 3048 | CXXFLAGS="$CXXFLAGS" |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 3049 | ac_ext=cpp |
| 3050 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 3051 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3052 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3053 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 3054 | if test -z "$CXX"; then |
| 3055 | if test -n "$CCC"; then |
| 3056 | CXX=$CCC |
| 3057 | else |
| 3058 | if test -n "$ac_tool_prefix"; then |
| 3059 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC |
| 3060 | do |
| 3061 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 3062 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 3063 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3064 | $as_echo_n "checking for $ac_word... " >&6; } |
Nick Sanders | fb72e5e | 2018-08-09 17:01:01 -0700 | [diff] [blame] | 3065 | if ${ac_cv_prog_CXX+:} false; then : |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 3066 | $as_echo_n "(cached) " >&6 |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 3067 | else |
| 3068 | if test -n "$CXX"; then |
| 3069 | ac_cv_prog_CXX="$CXX" # Let the user override the test. |
| 3070 | else |
| 3071 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3072 | for as_dir in $PATH |
| 3073 | do |
| 3074 | IFS=$as_save_IFS |
| 3075 | test -z "$as_dir" && as_dir=. |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 3076 | for ac_exec_ext in '' $ac_executable_extensions; do |
Nick Sanders | fb72e5e | 2018-08-09 17:01:01 -0700 | [diff] [blame] | 3077 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 3078 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 3079 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 3080 | break 2 |
| 3081 | fi |
| 3082 | done |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 3083 | done |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 3084 | IFS=$as_save_IFS |
| 3085 | |
| 3086 | fi |
| 3087 | fi |
| 3088 | CXX=$ac_cv_prog_CXX |
| 3089 | if test -n "$CXX"; then |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 3090 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 |
| 3091 | $as_echo "$CXX" >&6; } |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 3092 | else |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 3093 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3094 | $as_echo "no" >&6; } |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 3095 | fi |
| 3096 | |
| 3097 | |
| 3098 | test -n "$CXX" && break |
| 3099 | done |
| 3100 | fi |
| 3101 | if test -z "$CXX"; then |
| 3102 | ac_ct_CXX=$CXX |
| 3103 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC |
| 3104 | do |
| 3105 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 3106 | set dummy $ac_prog; ac_word=$2 |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 3107 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3108 | $as_echo_n "checking for $ac_word... " >&6; } |
Nick Sanders | fb72e5e | 2018-08-09 17:01:01 -0700 | [diff] [blame] | 3109 | if ${ac_cv_prog_ac_ct_CXX+:} false; then : |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 3110 | $as_echo_n "(cached) " >&6 |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 3111 | else |
| 3112 | if test -n "$ac_ct_CXX"; then |
| 3113 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. |
| 3114 | else |
| 3115 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3116 | for as_dir in $PATH |
| 3117 | do |
| 3118 | IFS=$as_save_IFS |
| 3119 | test -z "$as_dir" && as_dir=. |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 3120 | for ac_exec_ext in '' $ac_executable_extensions; do |
Nick Sanders | fb72e5e | 2018-08-09 17:01:01 -0700 | [diff] [blame] | 3121 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 3122 | ac_cv_prog_ac_ct_CXX="$ac_prog" |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 3123 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 3124 | break 2 |
| 3125 | fi |
| 3126 | done |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 3127 | done |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 3128 | IFS=$as_save_IFS |
| 3129 | |
| 3130 | fi |
| 3131 | fi |
| 3132 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX |
| 3133 | if test -n "$ac_ct_CXX"; then |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 3134 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 |
| 3135 | $as_echo "$ac_ct_CXX" >&6; } |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 3136 | else |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 3137 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3138 | $as_echo "no" >&6; } |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 3139 | fi |
| 3140 | |
| 3141 | |
| 3142 | test -n "$ac_ct_CXX" && break |
| 3143 | done |
| 3144 | |
| 3145 | if test "x$ac_ct_CXX" = x; then |
| 3146 | CXX="g++" |
| 3147 | else |
| 3148 | case $cross_compiling:$ac_tool_warned in |
| 3149 | yes:) |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 3150 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 3151 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 3152 | ac_tool_warned=yes ;; |
| 3153 | esac |
| 3154 | CXX=$ac_ct_CXX |
| 3155 | fi |
| 3156 | fi |
| 3157 | |
| 3158 | fi |
| 3159 | fi |
| 3160 | # Provide some information about the compiler. |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 3161 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 |
| 3162 | set X $ac_compile |
| 3163 | ac_compiler=$2 |
| 3164 | for ac_option in --version -v -V -qversion; do |
| 3165 | { { ac_try="$ac_compiler $ac_option >&5" |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 3166 | case "(($ac_try" in |
| 3167 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3168 | *) ac_try_echo=$ac_try;; |
| 3169 | esac |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 3170 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3171 | $as_echo "$ac_try_echo"; } >&5 |
| 3172 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 3173 | ac_status=$? |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 3174 | if test -s conftest.err; then |
| 3175 | sed '10a\ |
| 3176 | ... rest of stderr output deleted ... |
| 3177 | 10q' conftest.err >conftest.er1 |
| 3178 | cat conftest.er1 >&5 |
| 3179 | fi |
| 3180 | rm -f conftest.er1 conftest.err |
| 3181 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3182 | test $ac_status = 0; } |
| 3183 | done |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 3184 | |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 3185 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 3186 | /* end confdefs.h. */ |
| 3187 | |
| 3188 | int |
| 3189 | main () |
| 3190 | { |
| 3191 | |
| 3192 | ; |
| 3193 | return 0; |
| 3194 | } |
| 3195 | _ACEOF |
| 3196 | ac_clean_files_save=$ac_clean_files |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 3197 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 3198 | # Try to create an executable without -o first, disregard a.out. |
| 3199 | # It will help us diagnose broken compilers, and finding out an intuition |
| 3200 | # of exeext. |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 3201 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5 |
| 3202 | $as_echo_n "checking whether the C++ compiler works... " >&6; } |
| 3203 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
| 3204 | |
| 3205 | # The possible output files: |
| 3206 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" |
| 3207 | |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 3208 | ac_rmfiles= |
| 3209 | for ac_file in $ac_files |
| 3210 | do |
| 3211 | case $ac_file in |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 3212 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 3213 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; |
| 3214 | esac |
| 3215 | done |
| 3216 | rm -f $ac_rmfiles |
| 3217 | |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 3218 | if { { ac_try="$ac_link_default" |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 3219 | case "(($ac_try" in |
| 3220 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3221 | *) ac_try_echo=$ac_try;; |
| 3222 | esac |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 3223 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3224 | $as_echo "$ac_try_echo"; } >&5 |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 3225 | (eval "$ac_link_default") 2>&5 |
| 3226 | ac_status=$? |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 3227 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3228 | test $ac_status = 0; }; then : |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 3229 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
| 3230 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' |
| 3231 | # in a Makefile. We should not override ac_cv_exeext if it was cached, |
| 3232 | # so that the user can short-circuit this test for compilers unknown to |
| 3233 | # Autoconf. |
| 3234 | for ac_file in $ac_files '' |
| 3235 | do |
| 3236 | test -f "$ac_file" || continue |
| 3237 | case $ac_file in |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 3238 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 3239 | ;; |
| 3240 | [ab].out ) |
| 3241 | # We found the default executable, but exeext='' is most |
| 3242 | # certainly right. |
| 3243 | break;; |
| 3244 | *.* ) |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 3245 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 3246 | then :; else |
| 3247 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 3248 | fi |
| 3249 | # We set ac_cv_exeext here because the later test for it is not |
| 3250 | # safe: cross compilers may not add the suffix if given an `-o' |
| 3251 | # argument, so we may need to know it at that point already. |
| 3252 | # Even if this section looks crufty: it has the advantage of |
| 3253 | # actually working. |
| 3254 | break;; |
| 3255 | * ) |
| 3256 | break;; |
| 3257 | esac |
| 3258 | done |
| 3259 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
| 3260 | |
| 3261 | else |
| 3262 | ac_file='' |
| 3263 | fi |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 3264 | if test -z "$ac_file"; then : |
| 3265 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3266 | $as_echo "no" >&6; } |
| 3267 | $as_echo "$as_me: failed program was:" >&5 |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 3268 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3269 | |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 3270 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 3271 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Nick Sanders | fb72e5e | 2018-08-09 17:01:01 -0700 | [diff] [blame] | 3272 | as_fn_error 77 "C++ compiler cannot create executables |
| 3273 | See \`config.log' for more details" "$LINENO" 5; } |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 3274 | else |
| 3275 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 3276 | $as_echo "yes" >&6; } |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 3277 | fi |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 3278 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5 |
| 3279 | $as_echo_n "checking for C++ compiler default output file name... " >&6; } |
| 3280 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 |
| 3281 | $as_echo "$ac_file" >&6; } |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 3282 | ac_exeext=$ac_cv_exeext |
| 3283 | |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 3284 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 3285 | ac_clean_files=$ac_clean_files_save |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 3286 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 |
| 3287 | $as_echo_n "checking for suffix of executables... " >&6; } |
| 3288 | if { { ac_try="$ac_link" |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 3289 | case "(($ac_try" in |
| 3290 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3291 | *) ac_try_echo=$ac_try;; |
| 3292 | esac |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 3293 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3294 | $as_echo "$ac_try_echo"; } >&5 |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 3295 | (eval "$ac_link") 2>&5 |
| 3296 | ac_status=$? |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 3297 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3298 | test $ac_status = 0; }; then : |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 3299 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
| 3300 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
| 3301 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
| 3302 | # `rm'. |
| 3303 | for ac_file in conftest.exe conftest conftest.*; do |
| 3304 | test -f "$ac_file" || continue |
| 3305 | case $ac_file in |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 3306 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 3307 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 3308 | break;; |
| 3309 | * ) break;; |
| 3310 | esac |
| 3311 | done |
| 3312 | else |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 3313 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 3314 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Nick Sanders | fb72e5e | 2018-08-09 17:01:01 -0700 | [diff] [blame] | 3315 | as_fn_error $? "cannot compute suffix of executables: cannot compile and link |
| 3316 | See \`config.log' for more details" "$LINENO" 5; } |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 3317 | fi |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 3318 | rm -f conftest conftest$ac_cv_exeext |
| 3319 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 |
| 3320 | $as_echo "$ac_cv_exeext" >&6; } |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 3321 | |
| 3322 | rm -f conftest.$ac_ext |
| 3323 | EXEEXT=$ac_cv_exeext |
| 3324 | ac_exeext=$EXEEXT |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 3325 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3326 | /* end confdefs.h. */ |
| 3327 | #include <stdio.h> |
| 3328 | int |
| 3329 | main () |
| 3330 | { |
| 3331 | FILE *f = fopen ("conftest.out", "w"); |
| 3332 | return ferror (f) || fclose (f) != 0; |
| 3333 | |
| 3334 | ; |
| 3335 | return 0; |
| 3336 | } |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 3337 | _ACEOF |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 3338 | ac_clean_files="$ac_clean_files conftest.out" |
| 3339 | # Check that the compiler produces executables we can run. If not, either |
| 3340 | # the compiler is broken, or we cross compile. |
| 3341 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 |
| 3342 | $as_echo_n "checking whether we are cross compiling... " >&6; } |
| 3343 | if test "$cross_compiling" != yes; then |
| 3344 | { { ac_try="$ac_link" |
| 3345 | case "(($ac_try" in |
| 3346 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3347 | *) ac_try_echo=$ac_try;; |
| 3348 | esac |
| 3349 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3350 | $as_echo "$ac_try_echo"; } >&5 |
| 3351 | (eval "$ac_link") 2>&5 |
| 3352 | ac_status=$? |
| 3353 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3354 | test $ac_status = 0; } |
| 3355 | if { ac_try='./conftest$ac_cv_exeext' |
| 3356 | { { case "(($ac_try" in |
| 3357 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3358 | *) ac_try_echo=$ac_try;; |
| 3359 | esac |
| 3360 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3361 | $as_echo "$ac_try_echo"; } >&5 |
| 3362 | (eval "$ac_try") 2>&5 |
| 3363 | ac_status=$? |
| 3364 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3365 | test $ac_status = 0; }; }; then |
| 3366 | cross_compiling=no |
| 3367 | else |
| 3368 | if test "$cross_compiling" = maybe; then |
| 3369 | cross_compiling=yes |
| 3370 | else |
| 3371 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 3372 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Nick Sanders | fb72e5e | 2018-08-09 17:01:01 -0700 | [diff] [blame] | 3373 | as_fn_error $? "cannot run C++ compiled programs. |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 3374 | If you meant to cross compile, use \`--host'. |
Nick Sanders | fb72e5e | 2018-08-09 17:01:01 -0700 | [diff] [blame] | 3375 | See \`config.log' for more details" "$LINENO" 5; } |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 3376 | fi |
| 3377 | fi |
| 3378 | fi |
| 3379 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 |
| 3380 | $as_echo "$cross_compiling" >&6; } |
| 3381 | |
| 3382 | rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out |
| 3383 | ac_clean_files=$ac_clean_files_save |
| 3384 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 |
| 3385 | $as_echo_n "checking for suffix of object files... " >&6; } |
Nick Sanders | fb72e5e | 2018-08-09 17:01:01 -0700 | [diff] [blame] | 3386 | if ${ac_cv_objext+:} false; then : |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 3387 | $as_echo_n "(cached) " >&6 |
| 3388 | else |
| 3389 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 3390 | /* end confdefs.h. */ |
| 3391 | |
| 3392 | int |
| 3393 | main () |
| 3394 | { |
| 3395 | |
| 3396 | ; |
| 3397 | return 0; |
| 3398 | } |
| 3399 | _ACEOF |
| 3400 | rm -f conftest.o conftest.obj |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 3401 | if { { ac_try="$ac_compile" |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 3402 | case "(($ac_try" in |
| 3403 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3404 | *) ac_try_echo=$ac_try;; |
| 3405 | esac |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 3406 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3407 | $as_echo "$ac_try_echo"; } >&5 |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 3408 | (eval "$ac_compile") 2>&5 |
| 3409 | ac_status=$? |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 3410 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3411 | test $ac_status = 0; }; then : |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 3412 | for ac_file in conftest.o conftest.obj conftest.*; do |
| 3413 | test -f "$ac_file" || continue; |
| 3414 | case $ac_file in |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 3415 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 3416 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
| 3417 | break;; |
| 3418 | esac |
| 3419 | done |
| 3420 | else |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 3421 | $as_echo "$as_me: failed program was:" >&5 |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 3422 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3423 | |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 3424 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 3425 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Nick Sanders | fb72e5e | 2018-08-09 17:01:01 -0700 | [diff] [blame] | 3426 | as_fn_error $? "cannot compute suffix of object files: cannot compile |
| 3427 | See \`config.log' for more details" "$LINENO" 5; } |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 3428 | fi |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 3429 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
| 3430 | fi |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 3431 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 |
| 3432 | $as_echo "$ac_cv_objext" >&6; } |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 3433 | OBJEXT=$ac_cv_objext |
| 3434 | ac_objext=$OBJEXT |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 3435 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 |
| 3436 | $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } |
Nick Sanders | fb72e5e | 2018-08-09 17:01:01 -0700 | [diff] [blame] | 3437 | if ${ac_cv_cxx_compiler_gnu+:} false; then : |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 3438 | $as_echo_n "(cached) " >&6 |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 3439 | else |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 3440 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 3441 | /* end confdefs.h. */ |
| 3442 | |
| 3443 | int |
| 3444 | main () |
| 3445 | { |
| 3446 | #ifndef __GNUC__ |
| 3447 | choke me |
| 3448 | #endif |
| 3449 | |
| 3450 | ; |
| 3451 | return 0; |
| 3452 | } |
| 3453 | _ACEOF |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 3454 | if ac_fn_cxx_try_compile "$LINENO"; then : |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 3455 | ac_compiler_gnu=yes |
| 3456 | else |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 3457 | ac_compiler_gnu=no |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 3458 | fi |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 3459 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3460 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
| 3461 | |
| 3462 | fi |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 3463 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 |
| 3464 | $as_echo "$ac_cv_cxx_compiler_gnu" >&6; } |
| 3465 | if test $ac_compiler_gnu = yes; then |
| 3466 | GXX=yes |
| 3467 | else |
| 3468 | GXX= |
| 3469 | fi |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 3470 | ac_test_CXXFLAGS=${CXXFLAGS+set} |
| 3471 | ac_save_CXXFLAGS=$CXXFLAGS |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 3472 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 |
| 3473 | $as_echo_n "checking whether $CXX accepts -g... " >&6; } |
Nick Sanders | fb72e5e | 2018-08-09 17:01:01 -0700 | [diff] [blame] | 3474 | if ${ac_cv_prog_cxx_g+:} false; then : |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 3475 | $as_echo_n "(cached) " >&6 |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 3476 | else |
| 3477 | ac_save_cxx_werror_flag=$ac_cxx_werror_flag |
| 3478 | ac_cxx_werror_flag=yes |
| 3479 | ac_cv_prog_cxx_g=no |
| 3480 | CXXFLAGS="-g" |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 3481 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 3482 | /* end confdefs.h. */ |
| 3483 | |
| 3484 | int |
| 3485 | main () |
| 3486 | { |
| 3487 | |
| 3488 | ; |
| 3489 | return 0; |
| 3490 | } |
| 3491 | _ACEOF |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 3492 | if ac_fn_cxx_try_compile "$LINENO"; then : |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 3493 | ac_cv_prog_cxx_g=yes |
| 3494 | else |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 3495 | CXXFLAGS="" |
| 3496 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 3497 | /* end confdefs.h. */ |
| 3498 | |
| 3499 | int |
| 3500 | main () |
| 3501 | { |
| 3502 | |
| 3503 | ; |
| 3504 | return 0; |
| 3505 | } |
| 3506 | _ACEOF |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 3507 | if ac_fn_cxx_try_compile "$LINENO"; then : |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 3508 | |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 3509 | else |
| 3510 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 3511 | CXXFLAGS="-g" |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 3512 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 3513 | /* end confdefs.h. */ |
| 3514 | |
| 3515 | int |
| 3516 | main () |
| 3517 | { |
| 3518 | |
| 3519 | ; |
| 3520 | return 0; |
| 3521 | } |
| 3522 | _ACEOF |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 3523 | if ac_fn_cxx_try_compile "$LINENO"; then : |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 3524 | ac_cv_prog_cxx_g=yes |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 3525 | fi |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 3526 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3527 | fi |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 3528 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3529 | fi |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 3530 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3531 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
| 3532 | fi |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 3533 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 |
| 3534 | $as_echo "$ac_cv_prog_cxx_g" >&6; } |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 3535 | if test "$ac_test_CXXFLAGS" = set; then |
| 3536 | CXXFLAGS=$ac_save_CXXFLAGS |
| 3537 | elif test $ac_cv_prog_cxx_g = yes; then |
| 3538 | if test "$GXX" = yes; then |
| 3539 | CXXFLAGS="-g -O2" |
| 3540 | else |
| 3541 | CXXFLAGS="-g" |
| 3542 | fi |
| 3543 | else |
| 3544 | if test "$GXX" = yes; then |
| 3545 | CXXFLAGS="-O2" |
| 3546 | else |
| 3547 | CXXFLAGS= |
| 3548 | fi |
| 3549 | fi |
| 3550 | ac_ext=c |
| 3551 | ac_cpp='$CPP $CPPFLAGS' |
| 3552 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3553 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3554 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3555 | DEPDIR="${am__leading_dot}deps" |
| 3556 | |
| 3557 | ac_config_commands="$ac_config_commands depfiles" |
| 3558 | |
| 3559 | |
| 3560 | am_make=${MAKE-make} |
| 3561 | cat > confinc << 'END' |
| 3562 | am__doit: |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 3563 | @echo this is the am__doit target |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 3564 | .PHONY: am__doit |
| 3565 | END |
| 3566 | # If we don't find an include directive, just comment out the code. |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 3567 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 |
| 3568 | $as_echo_n "checking for style of include used by $am_make... " >&6; } |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 3569 | am__include="#" |
| 3570 | am__quote= |
| 3571 | _am_result=none |
| 3572 | # First try GNU make style include. |
| 3573 | echo "include confinc" > confmf |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 3574 | # Ignore all kinds of additional output from `make'. |
| 3575 | case `$am_make -s -f confmf 2> /dev/null` in #( |
| 3576 | *the\ am__doit\ target*) |
| 3577 | am__include=include |
| 3578 | am__quote= |
| 3579 | _am_result=GNU |
| 3580 | ;; |
| 3581 | esac |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 3582 | # Now try BSD make style include. |
| 3583 | if test "$am__include" = "#"; then |
| 3584 | echo '.include "confinc"' > confmf |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 3585 | case `$am_make -s -f confmf 2> /dev/null` in #( |
| 3586 | *the\ am__doit\ target*) |
| 3587 | am__include=.include |
| 3588 | am__quote="\"" |
| 3589 | _am_result=BSD |
| 3590 | ;; |
| 3591 | esac |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 3592 | fi |
| 3593 | |
| 3594 | |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 3595 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 |
| 3596 | $as_echo "$_am_result" >&6; } |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 3597 | rm -f confinc confmf |
| 3598 | |
| 3599 | # Check whether --enable-dependency-tracking was given. |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 3600 | if test "${enable_dependency_tracking+set}" = set; then : |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 3601 | enableval=$enable_dependency_tracking; |
| 3602 | fi |
| 3603 | |
| 3604 | if test "x$enable_dependency_tracking" != xno; then |
| 3605 | am_depcomp="$ac_aux_dir/depcomp" |
| 3606 | AMDEPBACKSLASH='\' |
| 3607 | fi |
| 3608 | if test "x$enable_dependency_tracking" != xno; then |
| 3609 | AMDEP_TRUE= |
| 3610 | AMDEP_FALSE='#' |
| 3611 | else |
| 3612 | AMDEP_TRUE='#' |
| 3613 | AMDEP_FALSE= |
| 3614 | fi |
| 3615 | |
| 3616 | |
| 3617 | |
| 3618 | depcc="$CXX" am_compiler_list= |
| 3619 | |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 3620 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 |
| 3621 | $as_echo_n "checking dependency style of $depcc... " >&6; } |
Nick Sanders | fb72e5e | 2018-08-09 17:01:01 -0700 | [diff] [blame] | 3622 | if ${am_cv_CXX_dependencies_compiler_type+:} false; then : |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 3623 | $as_echo_n "(cached) " >&6 |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 3624 | else |
| 3625 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
| 3626 | # We make a subdir and do the tests there. Otherwise we can end up |
| 3627 | # making bogus files that we don't know about and never remove. For |
| 3628 | # instance it was reported that on HP-UX the gcc test will end up |
| 3629 | # making a dummy file named `D' -- because `-MD' means `put the output |
| 3630 | # in D'. |
| 3631 | mkdir conftest.dir |
| 3632 | # Copy depcomp to subdir because otherwise we won't find it if we're |
| 3633 | # using a relative directory. |
| 3634 | cp "$am_depcomp" conftest.dir |
| 3635 | cd conftest.dir |
| 3636 | # We will build objects and dependencies in a subdirectory because |
| 3637 | # it helps to detect inapplicable dependency modes. For instance |
| 3638 | # both Tru64's cc and ICC support -MD to output dependencies as a |
| 3639 | # side effect of compilation, but ICC will put the dependencies in |
| 3640 | # the current directory while Tru64 will put them in the object |
| 3641 | # directory. |
| 3642 | mkdir sub |
| 3643 | |
| 3644 | am_cv_CXX_dependencies_compiler_type=none |
| 3645 | if test "$am_compiler_list" = ""; then |
| 3646 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` |
| 3647 | fi |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 3648 | am__universal=false |
| 3649 | case " $depcc " in #( |
| 3650 | *\ -arch\ *\ -arch\ *) am__universal=true ;; |
| 3651 | esac |
| 3652 | |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 3653 | for depmode in $am_compiler_list; do |
| 3654 | # Setup a source with many dependencies, because some compilers |
| 3655 | # like to wrap large dependency lists on column 80 (with \), and |
| 3656 | # we should not choose a depcomp mode which is confused by this. |
| 3657 | # |
| 3658 | # We need to recreate these files for each test, as the compiler may |
| 3659 | # overwrite some of them when testing with obscure command lines. |
| 3660 | # This happens at least with the AIX C compiler. |
| 3661 | : > sub/conftest.c |
| 3662 | for i in 1 2 3 4 5 6; do |
| 3663 | echo '#include "conftst'$i'.h"' >> sub/conftest.c |
| 3664 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with |
| 3665 | # Solaris 8's {/usr,}/bin/sh. |
| 3666 | touch sub/conftst$i.h |
| 3667 | done |
| 3668 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf |
| 3669 | |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 3670 | # We check with `-c' and `-o' for the sake of the "dashmstdout" |
| 3671 | # mode. It turns out that the SunPro C++ compiler does not properly |
| 3672 | # handle `-M -o', and we need to detect this. Also, some Intel |
| 3673 | # versions had trouble with output in subdirs |
| 3674 | am__obj=sub/conftest.${OBJEXT-o} |
| 3675 | am__minus_obj="-o $am__obj" |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 3676 | case $depmode in |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 3677 | gcc) |
| 3678 | # This depmode causes a compiler race in universal mode. |
| 3679 | test "$am__universal" = false || continue |
| 3680 | ;; |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 3681 | nosideeffect) |
| 3682 | # after this tag, mechanisms are not by side-effect, so they'll |
| 3683 | # only be used when explicitly requested |
| 3684 | if test "x$enable_dependency_tracking" = xyes; then |
| 3685 | continue |
| 3686 | else |
| 3687 | break |
| 3688 | fi |
| 3689 | ;; |
nick.j.sanders | 00fa12e | 2014-08-04 21:04:06 +0000 | [diff] [blame] | 3690 | msvisualcpp | msvcmsys) |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 3691 | # This compiler won't grok `-c -o', but also, the minuso test has |
| 3692 | # not run yet. These depmodes are late enough in the game, and |
| 3693 | # so weak that their functioning should not be impacted. |
| 3694 | am__obj=conftest.${OBJEXT-o} |
| 3695 | am__minus_obj= |
| 3696 | ;; |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 3697 | none) break ;; |
| 3698 | esac |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 3699 | if depmode=$depmode \ |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 3700 | source=sub/conftest.c object=$am__obj \ |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 3701 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 3702 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 3703 | >/dev/null 2>conftest.err && |
| 3704 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && |
| 3705 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 3706 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 && |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 3707 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
| 3708 | # icc doesn't choke on unknown options, it will just issue warnings |
| 3709 | # or remarks (even with -Werror). So we grep stderr for any message |
| 3710 | # that says an option was ignored or not supported. |
| 3711 | # When given -MP, icc 7.0 and 7.1 complain thusly: |
| 3712 | # icc: Command line warning: ignoring option '-M'; no argument required |
| 3713 | # The diagnosis changed in icc 8.0: |
| 3714 | # icc: Command line remark: option '-MP' not supported |
| 3715 | if (grep 'ignoring option' conftest.err || |
| 3716 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else |
| 3717 | am_cv_CXX_dependencies_compiler_type=$depmode |
| 3718 | break |
| 3719 | fi |
| 3720 | fi |
| 3721 | done |
| 3722 | |
| 3723 | cd .. |
| 3724 | rm -rf conftest.dir |
| 3725 | else |
| 3726 | am_cv_CXX_dependencies_compiler_type=none |
| 3727 | fi |
| 3728 | |
| 3729 | fi |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 3730 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5 |
| 3731 | $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; } |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 3732 | CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type |
| 3733 | |
| 3734 | if |
| 3735 | test "x$enable_dependency_tracking" != xno \ |
| 3736 | && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then |
| 3737 | am__fastdepCXX_TRUE= |
| 3738 | am__fastdepCXX_FALSE='#' |
| 3739 | else |
| 3740 | am__fastdepCXX_TRUE='#' |
| 3741 | am__fastdepCXX_FALSE= |
| 3742 | fi |
| 3743 | |
| 3744 | |
| 3745 | ac_ext=c |
| 3746 | ac_cpp='$CPP $CPPFLAGS' |
| 3747 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3748 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3749 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3750 | if test -n "$ac_tool_prefix"; then |
| 3751 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
| 3752 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 3753 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3754 | $as_echo_n "checking for $ac_word... " >&6; } |
Nick Sanders | fb72e5e | 2018-08-09 17:01:01 -0700 | [diff] [blame] | 3755 | if ${ac_cv_prog_CC+:} false; then : |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 3756 | $as_echo_n "(cached) " >&6 |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 3757 | else |
| 3758 | if test -n "$CC"; then |
| 3759 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 3760 | else |
| 3761 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3762 | for as_dir in $PATH |
| 3763 | do |
| 3764 | IFS=$as_save_IFS |
| 3765 | test -z "$as_dir" && as_dir=. |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 3766 | for ac_exec_ext in '' $ac_executable_extensions; do |
Nick Sanders | fb72e5e | 2018-08-09 17:01:01 -0700 | [diff] [blame] | 3767 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 3768 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 3769 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 3770 | break 2 |
| 3771 | fi |
| 3772 | done |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 3773 | done |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 3774 | IFS=$as_save_IFS |
| 3775 | |
| 3776 | fi |
| 3777 | fi |
| 3778 | CC=$ac_cv_prog_CC |
| 3779 | if test -n "$CC"; then |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 3780 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 3781 | $as_echo "$CC" >&6; } |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 3782 | else |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 3783 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3784 | $as_echo "no" >&6; } |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 3785 | fi |
| 3786 | |
| 3787 | |
| 3788 | fi |
| 3789 | if test -z "$ac_cv_prog_CC"; then |
| 3790 | ac_ct_CC=$CC |
| 3791 | # Extract the first word of "gcc", so it can be a program name with args. |
| 3792 | set dummy gcc; ac_word=$2 |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 3793 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3794 | $as_echo_n "checking for $ac_word... " >&6; } |
Nick Sanders | fb72e5e | 2018-08-09 17:01:01 -0700 | [diff] [blame] | 3795 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 3796 | $as_echo_n "(cached) " >&6 |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 3797 | else |
| 3798 | if test -n "$ac_ct_CC"; then |
| 3799 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 3800 | else |
| 3801 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3802 | for as_dir in $PATH |
| 3803 | do |
| 3804 | IFS=$as_save_IFS |
| 3805 | test -z "$as_dir" && as_dir=. |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 3806 | for ac_exec_ext in '' $ac_executable_extensions; do |
Nick Sanders | fb72e5e | 2018-08-09 17:01:01 -0700 | [diff] [blame] | 3807 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 3808 | ac_cv_prog_ac_ct_CC="gcc" |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 3809 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 3810 | break 2 |
| 3811 | fi |
| 3812 | done |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 3813 | done |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 3814 | IFS=$as_save_IFS |
| 3815 | |
| 3816 | fi |
| 3817 | fi |
| 3818 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 3819 | if test -n "$ac_ct_CC"; then |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 3820 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
| 3821 | $as_echo "$ac_ct_CC" >&6; } |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 3822 | else |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 3823 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3824 | $as_echo "no" >&6; } |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 3825 | fi |
| 3826 | |
| 3827 | if test "x$ac_ct_CC" = x; then |
| 3828 | CC="" |
| 3829 | else |
| 3830 | case $cross_compiling:$ac_tool_warned in |
| 3831 | yes:) |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 3832 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 3833 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 3834 | ac_tool_warned=yes ;; |
| 3835 | esac |
| 3836 | CC=$ac_ct_CC |
| 3837 | fi |
| 3838 | else |
| 3839 | CC="$ac_cv_prog_CC" |
| 3840 | fi |
| 3841 | |
| 3842 | if test -z "$CC"; then |
| 3843 | if test -n "$ac_tool_prefix"; then |
| 3844 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
| 3845 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 3846 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3847 | $as_echo_n "checking for $ac_word... " >&6; } |
Nick Sanders | fb72e5e | 2018-08-09 17:01:01 -0700 | [diff] [blame] | 3848 | if ${ac_cv_prog_CC+:} false; then : |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 3849 | $as_echo_n "(cached) " >&6 |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 3850 | else |
| 3851 | if test -n "$CC"; then |
| 3852 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 3853 | else |
| 3854 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3855 | for as_dir in $PATH |
| 3856 | do |
| 3857 | IFS=$as_save_IFS |
| 3858 | test -z "$as_dir" && as_dir=. |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 3859 | for ac_exec_ext in '' $ac_executable_extensions; do |
Nick Sanders | fb72e5e | 2018-08-09 17:01:01 -0700 | [diff] [blame] | 3860 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 3861 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 3862 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 3863 | break 2 |
| 3864 | fi |
| 3865 | done |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 3866 | done |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 3867 | IFS=$as_save_IFS |
| 3868 | |
| 3869 | fi |
| 3870 | fi |
| 3871 | CC=$ac_cv_prog_CC |
| 3872 | if test -n "$CC"; then |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 3873 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 3874 | $as_echo "$CC" >&6; } |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 3875 | else |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 3876 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3877 | $as_echo "no" >&6; } |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 3878 | fi |
| 3879 | |
| 3880 | |
| 3881 | fi |
| 3882 | fi |
| 3883 | if test -z "$CC"; then |
| 3884 | # Extract the first word of "cc", so it can be a program name with args. |
| 3885 | set dummy cc; ac_word=$2 |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 3886 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3887 | $as_echo_n "checking for $ac_word... " >&6; } |
Nick Sanders | fb72e5e | 2018-08-09 17:01:01 -0700 | [diff] [blame] | 3888 | if ${ac_cv_prog_CC+:} false; then : |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 3889 | $as_echo_n "(cached) " >&6 |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 3890 | else |
| 3891 | if test -n "$CC"; then |
| 3892 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 3893 | else |
| 3894 | ac_prog_rejected=no |
| 3895 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3896 | for as_dir in $PATH |
| 3897 | do |
| 3898 | IFS=$as_save_IFS |
| 3899 | test -z "$as_dir" && as_dir=. |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 3900 | for ac_exec_ext in '' $ac_executable_extensions; do |
Nick Sanders | fb72e5e | 2018-08-09 17:01:01 -0700 | [diff] [blame] | 3901 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 3902 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
| 3903 | ac_prog_rejected=yes |
| 3904 | continue |
| 3905 | fi |
| 3906 | ac_cv_prog_CC="cc" |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 3907 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 3908 | break 2 |
| 3909 | fi |
| 3910 | done |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 3911 | done |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 3912 | IFS=$as_save_IFS |
| 3913 | |
| 3914 | if test $ac_prog_rejected = yes; then |
| 3915 | # We found a bogon in the path, so make sure we never use it. |
| 3916 | set dummy $ac_cv_prog_CC |
| 3917 | shift |
| 3918 | if test $# != 0; then |
| 3919 | # We chose a different compiler from the bogus one. |
| 3920 | # However, it has the same basename, so the bogon will be chosen |
| 3921 | # first if we set CC to just the basename; use the full file name. |
| 3922 | shift |
| 3923 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
| 3924 | fi |
| 3925 | fi |
| 3926 | fi |
| 3927 | fi |
| 3928 | CC=$ac_cv_prog_CC |
| 3929 | if test -n "$CC"; then |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 3930 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 3931 | $as_echo "$CC" >&6; } |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 3932 | else |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 3933 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3934 | $as_echo "no" >&6; } |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 3935 | fi |
| 3936 | |
| 3937 | |
| 3938 | fi |
| 3939 | if test -z "$CC"; then |
| 3940 | if test -n "$ac_tool_prefix"; then |
| 3941 | for ac_prog in cl.exe |
| 3942 | do |
| 3943 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 3944 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 3945 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3946 | $as_echo_n "checking for $ac_word... " >&6; } |
Nick Sanders | fb72e5e | 2018-08-09 17:01:01 -0700 | [diff] [blame] | 3947 | if ${ac_cv_prog_CC+:} false; then : |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 3948 | $as_echo_n "(cached) " >&6 |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 3949 | else |
| 3950 | if test -n "$CC"; then |
| 3951 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 3952 | else |
| 3953 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3954 | for as_dir in $PATH |
| 3955 | do |
| 3956 | IFS=$as_save_IFS |
| 3957 | test -z "$as_dir" && as_dir=. |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 3958 | for ac_exec_ext in '' $ac_executable_extensions; do |
Nick Sanders | fb72e5e | 2018-08-09 17:01:01 -0700 | [diff] [blame] | 3959 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 3960 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 3961 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 3962 | break 2 |
| 3963 | fi |
| 3964 | done |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 3965 | done |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 3966 | IFS=$as_save_IFS |
| 3967 | |
| 3968 | fi |
| 3969 | fi |
| 3970 | CC=$ac_cv_prog_CC |
| 3971 | if test -n "$CC"; then |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 3972 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 3973 | $as_echo "$CC" >&6; } |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 3974 | else |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 3975 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3976 | $as_echo "no" >&6; } |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 3977 | fi |
| 3978 | |
| 3979 | |
| 3980 | test -n "$CC" && break |
| 3981 | done |
| 3982 | fi |
| 3983 | if test -z "$CC"; then |
| 3984 | ac_ct_CC=$CC |
| 3985 | for ac_prog in cl.exe |
| 3986 | do |
| 3987 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 3988 | set dummy $ac_prog; ac_word=$2 |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 3989 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3990 | $as_echo_n "checking for $ac_word... " >&6; } |
Nick Sanders | fb72e5e | 2018-08-09 17:01:01 -0700 | [diff] [blame] | 3991 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 3992 | $as_echo_n "(cached) " >&6 |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 3993 | else |
| 3994 | if test -n "$ac_ct_CC"; then |
| 3995 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 3996 | else |
| 3997 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3998 | for as_dir in $PATH |
| 3999 | do |
| 4000 | IFS=$as_save_IFS |
| 4001 | test -z "$as_dir" && as_dir=. |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 4002 | for ac_exec_ext in '' $ac_executable_extensions; do |
Nick Sanders | fb72e5e | 2018-08-09 17:01:01 -0700 | [diff] [blame] | 4003 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 4004 | ac_cv_prog_ac_ct_CC="$ac_prog" |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 4005 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 4006 | break 2 |
| 4007 | fi |
| 4008 | done |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 4009 | done |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 4010 | IFS=$as_save_IFS |
| 4011 | |
| 4012 | fi |
| 4013 | fi |
| 4014 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 4015 | if test -n "$ac_ct_CC"; then |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 4016 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
| 4017 | $as_echo "$ac_ct_CC" >&6; } |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 4018 | else |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 4019 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4020 | $as_echo "no" >&6; } |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 4021 | fi |
| 4022 | |
| 4023 | |
| 4024 | test -n "$ac_ct_CC" && break |
| 4025 | done |
| 4026 | |
| 4027 | if test "x$ac_ct_CC" = x; then |
| 4028 | CC="" |
| 4029 | else |
| 4030 | case $cross_compiling:$ac_tool_warned in |
| 4031 | yes:) |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 4032 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 4033 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 4034 | ac_tool_warned=yes ;; |
| 4035 | esac |
| 4036 | CC=$ac_ct_CC |
| 4037 | fi |
| 4038 | fi |
| 4039 | |
| 4040 | fi |
| 4041 | |
| 4042 | |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 4043 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 4044 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Nick Sanders | fb72e5e | 2018-08-09 17:01:01 -0700 | [diff] [blame] | 4045 | as_fn_error $? "no acceptable C compiler found in \$PATH |
| 4046 | See \`config.log' for more details" "$LINENO" 5; } |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 4047 | |
| 4048 | # Provide some information about the compiler. |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 4049 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 |
| 4050 | set X $ac_compile |
| 4051 | ac_compiler=$2 |
| 4052 | for ac_option in --version -v -V -qversion; do |
| 4053 | { { ac_try="$ac_compiler $ac_option >&5" |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 4054 | case "(($ac_try" in |
| 4055 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4056 | *) ac_try_echo=$ac_try;; |
| 4057 | esac |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 4058 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 4059 | $as_echo "$ac_try_echo"; } >&5 |
| 4060 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 4061 | ac_status=$? |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 4062 | if test -s conftest.err; then |
| 4063 | sed '10a\ |
| 4064 | ... rest of stderr output deleted ... |
| 4065 | 10q' conftest.err >conftest.er1 |
| 4066 | cat conftest.er1 >&5 |
| 4067 | fi |
| 4068 | rm -f conftest.er1 conftest.err |
| 4069 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 4070 | test $ac_status = 0; } |
| 4071 | done |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 4072 | |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 4073 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 |
| 4074 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } |
Nick Sanders | fb72e5e | 2018-08-09 17:01:01 -0700 | [diff] [blame] | 4075 | if ${ac_cv_c_compiler_gnu+:} false; then : |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 4076 | $as_echo_n "(cached) " >&6 |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 4077 | else |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 4078 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 4079 | /* end confdefs.h. */ |
| 4080 | |
| 4081 | int |
| 4082 | main () |
| 4083 | { |
| 4084 | #ifndef __GNUC__ |
| 4085 | choke me |
| 4086 | #endif |
| 4087 | |
| 4088 | ; |
| 4089 | return 0; |
| 4090 | } |
| 4091 | _ACEOF |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 4092 | if ac_fn_c_try_compile "$LINENO"; then : |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 4093 | ac_compiler_gnu=yes |
| 4094 | else |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 4095 | ac_compiler_gnu=no |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 4096 | fi |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 4097 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4098 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
| 4099 | |
| 4100 | fi |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 4101 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
| 4102 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } |
| 4103 | if test $ac_compiler_gnu = yes; then |
| 4104 | GCC=yes |
| 4105 | else |
| 4106 | GCC= |
| 4107 | fi |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 4108 | ac_test_CFLAGS=${CFLAGS+set} |
| 4109 | ac_save_CFLAGS=$CFLAGS |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 4110 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 |
| 4111 | $as_echo_n "checking whether $CC accepts -g... " >&6; } |
Nick Sanders | fb72e5e | 2018-08-09 17:01:01 -0700 | [diff] [blame] | 4112 | if ${ac_cv_prog_cc_g+:} false; then : |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 4113 | $as_echo_n "(cached) " >&6 |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 4114 | else |
| 4115 | ac_save_c_werror_flag=$ac_c_werror_flag |
| 4116 | ac_c_werror_flag=yes |
| 4117 | ac_cv_prog_cc_g=no |
| 4118 | CFLAGS="-g" |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 4119 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 4120 | /* end confdefs.h. */ |
| 4121 | |
| 4122 | int |
| 4123 | main () |
| 4124 | { |
| 4125 | |
| 4126 | ; |
| 4127 | return 0; |
| 4128 | } |
| 4129 | _ACEOF |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 4130 | if ac_fn_c_try_compile "$LINENO"; then : |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 4131 | ac_cv_prog_cc_g=yes |
| 4132 | else |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 4133 | CFLAGS="" |
| 4134 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 4135 | /* end confdefs.h. */ |
| 4136 | |
| 4137 | int |
| 4138 | main () |
| 4139 | { |
| 4140 | |
| 4141 | ; |
| 4142 | return 0; |
| 4143 | } |
| 4144 | _ACEOF |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 4145 | if ac_fn_c_try_compile "$LINENO"; then : |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 4146 | |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 4147 | else |
| 4148 | ac_c_werror_flag=$ac_save_c_werror_flag |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 4149 | CFLAGS="-g" |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 4150 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 4151 | /* end confdefs.h. */ |
| 4152 | |
| 4153 | int |
| 4154 | main () |
| 4155 | { |
| 4156 | |
| 4157 | ; |
| 4158 | return 0; |
| 4159 | } |
| 4160 | _ACEOF |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 4161 | if ac_fn_c_try_compile "$LINENO"; then : |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 4162 | ac_cv_prog_cc_g=yes |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 4163 | fi |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 4164 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4165 | fi |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 4166 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4167 | fi |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 4168 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4169 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 4170 | fi |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 4171 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 |
| 4172 | $as_echo "$ac_cv_prog_cc_g" >&6; } |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 4173 | if test "$ac_test_CFLAGS" = set; then |
| 4174 | CFLAGS=$ac_save_CFLAGS |
| 4175 | elif test $ac_cv_prog_cc_g = yes; then |
| 4176 | if test "$GCC" = yes; then |
| 4177 | CFLAGS="-g -O2" |
| 4178 | else |
| 4179 | CFLAGS="-g" |
| 4180 | fi |
| 4181 | else |
| 4182 | if test "$GCC" = yes; then |
| 4183 | CFLAGS="-O2" |
| 4184 | else |
| 4185 | CFLAGS= |
| 4186 | fi |
| 4187 | fi |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 4188 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 |
| 4189 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } |
Nick Sanders | fb72e5e | 2018-08-09 17:01:01 -0700 | [diff] [blame] | 4190 | if ${ac_cv_prog_cc_c89+:} false; then : |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 4191 | $as_echo_n "(cached) " >&6 |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 4192 | else |
| 4193 | ac_cv_prog_cc_c89=no |
| 4194 | ac_save_CC=$CC |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 4195 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 4196 | /* end confdefs.h. */ |
| 4197 | #include <stdarg.h> |
| 4198 | #include <stdio.h> |
Nick Sanders | fb72e5e | 2018-08-09 17:01:01 -0700 | [diff] [blame] | 4199 | struct stat; |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 4200 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
| 4201 | struct buf { int x; }; |
| 4202 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
| 4203 | static char *e (p, i) |
| 4204 | char **p; |
| 4205 | int i; |
| 4206 | { |
| 4207 | return p[i]; |
| 4208 | } |
| 4209 | static char *f (char * (*g) (char **, int), char **p, ...) |
| 4210 | { |
| 4211 | char *s; |
| 4212 | va_list v; |
| 4213 | va_start (v,p); |
| 4214 | s = g (p, va_arg (v,int)); |
| 4215 | va_end (v); |
| 4216 | return s; |
| 4217 | } |
| 4218 | |
| 4219 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
| 4220 | function prototypes and stuff, but not '\xHH' hex character constants. |
| 4221 | These don't provoke an error unfortunately, instead are silently treated |
| 4222 | as 'x'. The following induces an error, until -std is added to get |
| 4223 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
| 4224 | array size at least. It's necessary to write '\x00'==0 to get something |
| 4225 | that's true only with -std. */ |
| 4226 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
| 4227 | |
| 4228 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
| 4229 | inside strings and character constants. */ |
| 4230 | #define FOO(x) 'x' |
| 4231 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; |
| 4232 | |
| 4233 | int test (int i, double x); |
| 4234 | struct s1 {int (*f) (int a);}; |
| 4235 | struct s2 {int (*f) (double a);}; |
| 4236 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
| 4237 | int argc; |
| 4238 | char **argv; |
| 4239 | int |
| 4240 | main () |
| 4241 | { |
| 4242 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
| 4243 | ; |
| 4244 | return 0; |
| 4245 | } |
| 4246 | _ACEOF |
| 4247 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
| 4248 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
| 4249 | do |
| 4250 | CC="$ac_save_CC $ac_arg" |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 4251 | if ac_fn_c_try_compile "$LINENO"; then : |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 4252 | ac_cv_prog_cc_c89=$ac_arg |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 4253 | fi |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 4254 | rm -f core conftest.err conftest.$ac_objext |
| 4255 | test "x$ac_cv_prog_cc_c89" != "xno" && break |
| 4256 | done |
| 4257 | rm -f conftest.$ac_ext |
| 4258 | CC=$ac_save_CC |
| 4259 | |
| 4260 | fi |
| 4261 | # AC_CACHE_VAL |
| 4262 | case "x$ac_cv_prog_cc_c89" in |
| 4263 | x) |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 4264 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 |
| 4265 | $as_echo "none needed" >&6; } ;; |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 4266 | xno) |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 4267 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 |
| 4268 | $as_echo "unsupported" >&6; } ;; |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 4269 | *) |
| 4270 | CC="$CC $ac_cv_prog_cc_c89" |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 4271 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 |
| 4272 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 4273 | esac |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 4274 | if test "x$ac_cv_prog_cc_c89" != xno; then : |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 4275 | |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 4276 | fi |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 4277 | |
| 4278 | ac_ext=c |
| 4279 | ac_cpp='$CPP $CPPFLAGS' |
| 4280 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 4281 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 4282 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 4283 | |
| 4284 | depcc="$CC" am_compiler_list= |
| 4285 | |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 4286 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 |
| 4287 | $as_echo_n "checking dependency style of $depcc... " >&6; } |
Nick Sanders | fb72e5e | 2018-08-09 17:01:01 -0700 | [diff] [blame] | 4288 | if ${am_cv_CC_dependencies_compiler_type+:} false; then : |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 4289 | $as_echo_n "(cached) " >&6 |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 4290 | else |
| 4291 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
| 4292 | # We make a subdir and do the tests there. Otherwise we can end up |
| 4293 | # making bogus files that we don't know about and never remove. For |
| 4294 | # instance it was reported that on HP-UX the gcc test will end up |
| 4295 | # making a dummy file named `D' -- because `-MD' means `put the output |
| 4296 | # in D'. |
| 4297 | mkdir conftest.dir |
| 4298 | # Copy depcomp to subdir because otherwise we won't find it if we're |
| 4299 | # using a relative directory. |
| 4300 | cp "$am_depcomp" conftest.dir |
| 4301 | cd conftest.dir |
| 4302 | # We will build objects and dependencies in a subdirectory because |
| 4303 | # it helps to detect inapplicable dependency modes. For instance |
| 4304 | # both Tru64's cc and ICC support -MD to output dependencies as a |
| 4305 | # side effect of compilation, but ICC will put the dependencies in |
| 4306 | # the current directory while Tru64 will put them in the object |
| 4307 | # directory. |
| 4308 | mkdir sub |
| 4309 | |
| 4310 | am_cv_CC_dependencies_compiler_type=none |
| 4311 | if test "$am_compiler_list" = ""; then |
| 4312 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` |
| 4313 | fi |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 4314 | am__universal=false |
| 4315 | case " $depcc " in #( |
| 4316 | *\ -arch\ *\ -arch\ *) am__universal=true ;; |
| 4317 | esac |
| 4318 | |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 4319 | for depmode in $am_compiler_list; do |
| 4320 | # Setup a source with many dependencies, because some compilers |
| 4321 | # like to wrap large dependency lists on column 80 (with \), and |
| 4322 | # we should not choose a depcomp mode which is confused by this. |
| 4323 | # |
| 4324 | # We need to recreate these files for each test, as the compiler may |
| 4325 | # overwrite some of them when testing with obscure command lines. |
| 4326 | # This happens at least with the AIX C compiler. |
| 4327 | : > sub/conftest.c |
| 4328 | for i in 1 2 3 4 5 6; do |
| 4329 | echo '#include "conftst'$i'.h"' >> sub/conftest.c |
| 4330 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with |
| 4331 | # Solaris 8's {/usr,}/bin/sh. |
| 4332 | touch sub/conftst$i.h |
| 4333 | done |
| 4334 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf |
| 4335 | |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 4336 | # We check with `-c' and `-o' for the sake of the "dashmstdout" |
| 4337 | # mode. It turns out that the SunPro C++ compiler does not properly |
| 4338 | # handle `-M -o', and we need to detect this. Also, some Intel |
| 4339 | # versions had trouble with output in subdirs |
| 4340 | am__obj=sub/conftest.${OBJEXT-o} |
| 4341 | am__minus_obj="-o $am__obj" |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 4342 | case $depmode in |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 4343 | gcc) |
| 4344 | # This depmode causes a compiler race in universal mode. |
| 4345 | test "$am__universal" = false || continue |
| 4346 | ;; |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 4347 | nosideeffect) |
| 4348 | # after this tag, mechanisms are not by side-effect, so they'll |
| 4349 | # only be used when explicitly requested |
| 4350 | if test "x$enable_dependency_tracking" = xyes; then |
| 4351 | continue |
| 4352 | else |
| 4353 | break |
| 4354 | fi |
| 4355 | ;; |
nick.j.sanders | 00fa12e | 2014-08-04 21:04:06 +0000 | [diff] [blame] | 4356 | msvisualcpp | msvcmsys) |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 4357 | # This compiler won't grok `-c -o', but also, the minuso test has |
| 4358 | # not run yet. These depmodes are late enough in the game, and |
| 4359 | # so weak that their functioning should not be impacted. |
| 4360 | am__obj=conftest.${OBJEXT-o} |
| 4361 | am__minus_obj= |
| 4362 | ;; |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 4363 | none) break ;; |
| 4364 | esac |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 4365 | if depmode=$depmode \ |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 4366 | source=sub/conftest.c object=$am__obj \ |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 4367 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 4368 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 4369 | >/dev/null 2>conftest.err && |
| 4370 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && |
| 4371 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 4372 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 && |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 4373 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
| 4374 | # icc doesn't choke on unknown options, it will just issue warnings |
| 4375 | # or remarks (even with -Werror). So we grep stderr for any message |
| 4376 | # that says an option was ignored or not supported. |
| 4377 | # When given -MP, icc 7.0 and 7.1 complain thusly: |
| 4378 | # icc: Command line warning: ignoring option '-M'; no argument required |
| 4379 | # The diagnosis changed in icc 8.0: |
| 4380 | # icc: Command line remark: option '-MP' not supported |
| 4381 | if (grep 'ignoring option' conftest.err || |
| 4382 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else |
| 4383 | am_cv_CC_dependencies_compiler_type=$depmode |
| 4384 | break |
| 4385 | fi |
| 4386 | fi |
| 4387 | done |
| 4388 | |
| 4389 | cd .. |
| 4390 | rm -rf conftest.dir |
| 4391 | else |
| 4392 | am_cv_CC_dependencies_compiler_type=none |
| 4393 | fi |
| 4394 | |
| 4395 | fi |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 4396 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 |
| 4397 | $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 4398 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type |
| 4399 | |
| 4400 | if |
| 4401 | test "x$enable_dependency_tracking" != xno \ |
| 4402 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then |
| 4403 | am__fastdepCC_TRUE= |
| 4404 | am__fastdepCC_FALSE='#' |
| 4405 | else |
| 4406 | am__fastdepCC_TRUE='#' |
| 4407 | am__fastdepCC_FALSE= |
| 4408 | fi |
| 4409 | |
| 4410 | |
| 4411 | |
| 4412 | #Getting user and host info |
| 4413 | username=$(whoami) |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 4414 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking user ID" >&5 |
| 4415 | $as_echo_n "checking user ID... " >&6; } |
| 4416 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $username" >&5 |
| 4417 | $as_echo "$username" >&6; } |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 4418 | |
| 4419 | hostname=$(uname -n) |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 4420 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking host name" >&5 |
| 4421 | $as_echo_n "checking host name... " >&6; } |
| 4422 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hostname" >&5 |
| 4423 | $as_echo "$hostname" >&6; } |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 4424 | |
| 4425 | timestamp=$(date) |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 4426 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking current timestamp" >&5 |
| 4427 | $as_echo_n "checking current timestamp... " >&6; } |
| 4428 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $timestamp" >&5 |
| 4429 | $as_echo "$timestamp" >&6; } |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 4430 | |
| 4431 | |
| 4432 | cat >>confdefs.h <<_ACEOF |
| 4433 | #define STRESSAPPTEST_TIMESTAMP "$username @ $hostname on $timestamp" |
| 4434 | _ACEOF |
| 4435 | |
| 4436 | |
nick.j.sanders | 7a6b252 | 2014-02-11 08:53:31 +0000 | [diff] [blame] | 4437 | # Check whether --enable-default-optimizations was given. |
| 4438 | if test "${enable_default_optimizations+set}" = set; then : |
| 4439 | enableval=$enable_default_optimizations; |
| 4440 | fi |
| 4441 | |
| 4442 | if test x"$enable_default_optimizations" != xno; then : |
| 4443 | |
| 4444 | #Default cxxflags |
| 4445 | CXXFLAGS="$CXXFLAGS -DCHECKOPTS" |
nick.j.sanders | 7285135 | 2014-04-11 23:28:56 +0000 | [diff] [blame] | 4446 | CXXFLAGS="$CXXFLAGS -Wreturn-type -Wunused -Wuninitialized -Wall" |
nick.j.sanders | 7a6b252 | 2014-02-11 08:53:31 +0000 | [diff] [blame] | 4447 | CXXFLAGS="$CXXFLAGS -O3 -funroll-all-loops -funroll-loops -DNDEBUG" |
| 4448 | |
| 4449 | fi |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 4450 | |
| 4451 | # Checks for header files. |
| 4452 | |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 4453 | ac_header_dirent=no |
| 4454 | for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 4455 | as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` |
| 4456 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5 |
| 4457 | $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; } |
Nick Sanders | fb72e5e | 2018-08-09 17:01:01 -0700 | [diff] [blame] | 4458 | if eval \${$as_ac_Header+:} false; then : |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 4459 | $as_echo_n "(cached) " >&6 |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 4460 | else |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 4461 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 4462 | /* end confdefs.h. */ |
| 4463 | #include <sys/types.h> |
| 4464 | #include <$ac_hdr> |
| 4465 | |
| 4466 | int |
| 4467 | main () |
| 4468 | { |
| 4469 | if ((DIR *) 0) |
| 4470 | return 0; |
| 4471 | ; |
| 4472 | return 0; |
| 4473 | } |
| 4474 | _ACEOF |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 4475 | if ac_fn_c_try_compile "$LINENO"; then : |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 4476 | eval "$as_ac_Header=yes" |
| 4477 | else |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 4478 | eval "$as_ac_Header=no" |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 4479 | fi |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 4480 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4481 | fi |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 4482 | eval ac_res=\$$as_ac_Header |
| 4483 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 4484 | $as_echo "$ac_res" >&6; } |
Nick Sanders | fb72e5e | 2018-08-09 17:01:01 -0700 | [diff] [blame] | 4485 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 4486 | cat >>confdefs.h <<_ACEOF |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 4487 | #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 4488 | _ACEOF |
| 4489 | |
| 4490 | ac_header_dirent=$ac_hdr; break |
| 4491 | fi |
| 4492 | |
| 4493 | done |
| 4494 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. |
| 4495 | if test $ac_header_dirent = dirent.h; then |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 4496 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 |
| 4497 | $as_echo_n "checking for library containing opendir... " >&6; } |
Nick Sanders | fb72e5e | 2018-08-09 17:01:01 -0700 | [diff] [blame] | 4498 | if ${ac_cv_search_opendir+:} false; then : |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 4499 | $as_echo_n "(cached) " >&6 |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 4500 | else |
| 4501 | ac_func_search_save_LIBS=$LIBS |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 4502 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 4503 | /* end confdefs.h. */ |
| 4504 | |
| 4505 | /* Override any GCC internal prototype to avoid an error. |
| 4506 | Use char because int might match the return type of a GCC |
| 4507 | builtin and then its argument prototype would still apply. */ |
| 4508 | #ifdef __cplusplus |
| 4509 | extern "C" |
| 4510 | #endif |
| 4511 | char opendir (); |
| 4512 | int |
| 4513 | main () |
| 4514 | { |
| 4515 | return opendir (); |
| 4516 | ; |
| 4517 | return 0; |
| 4518 | } |
| 4519 | _ACEOF |
| 4520 | for ac_lib in '' dir; do |
| 4521 | if test -z "$ac_lib"; then |
| 4522 | ac_res="none required" |
| 4523 | else |
| 4524 | ac_res=-l$ac_lib |
| 4525 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 4526 | fi |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 4527 | if ac_fn_c_try_link "$LINENO"; then : |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 4528 | ac_cv_search_opendir=$ac_res |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 4529 | fi |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 4530 | rm -f core conftest.err conftest.$ac_objext \ |
| 4531 | conftest$ac_exeext |
Nick Sanders | fb72e5e | 2018-08-09 17:01:01 -0700 | [diff] [blame] | 4532 | if ${ac_cv_search_opendir+:} false; then : |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 4533 | break |
| 4534 | fi |
| 4535 | done |
Nick Sanders | fb72e5e | 2018-08-09 17:01:01 -0700 | [diff] [blame] | 4536 | if ${ac_cv_search_opendir+:} false; then : |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 4537 | |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 4538 | else |
| 4539 | ac_cv_search_opendir=no |
| 4540 | fi |
| 4541 | rm conftest.$ac_ext |
| 4542 | LIBS=$ac_func_search_save_LIBS |
| 4543 | fi |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 4544 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 |
| 4545 | $as_echo "$ac_cv_search_opendir" >&6; } |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 4546 | ac_res=$ac_cv_search_opendir |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 4547 | if test "$ac_res" != no; then : |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 4548 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
| 4549 | |
| 4550 | fi |
| 4551 | |
| 4552 | else |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 4553 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 |
| 4554 | $as_echo_n "checking for library containing opendir... " >&6; } |
Nick Sanders | fb72e5e | 2018-08-09 17:01:01 -0700 | [diff] [blame] | 4555 | if ${ac_cv_search_opendir+:} false; then : |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 4556 | $as_echo_n "(cached) " >&6 |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 4557 | else |
| 4558 | ac_func_search_save_LIBS=$LIBS |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 4559 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 4560 | /* end confdefs.h. */ |
| 4561 | |
| 4562 | /* Override any GCC internal prototype to avoid an error. |
| 4563 | Use char because int might match the return type of a GCC |
| 4564 | builtin and then its argument prototype would still apply. */ |
| 4565 | #ifdef __cplusplus |
| 4566 | extern "C" |
| 4567 | #endif |
| 4568 | char opendir (); |
| 4569 | int |
| 4570 | main () |
| 4571 | { |
| 4572 | return opendir (); |
| 4573 | ; |
| 4574 | return 0; |
| 4575 | } |
| 4576 | _ACEOF |
| 4577 | for ac_lib in '' x; do |
| 4578 | if test -z "$ac_lib"; then |
| 4579 | ac_res="none required" |
| 4580 | else |
| 4581 | ac_res=-l$ac_lib |
| 4582 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 4583 | fi |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 4584 | if ac_fn_c_try_link "$LINENO"; then : |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 4585 | ac_cv_search_opendir=$ac_res |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 4586 | fi |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 4587 | rm -f core conftest.err conftest.$ac_objext \ |
| 4588 | conftest$ac_exeext |
Nick Sanders | fb72e5e | 2018-08-09 17:01:01 -0700 | [diff] [blame] | 4589 | if ${ac_cv_search_opendir+:} false; then : |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 4590 | break |
| 4591 | fi |
| 4592 | done |
Nick Sanders | fb72e5e | 2018-08-09 17:01:01 -0700 | [diff] [blame] | 4593 | if ${ac_cv_search_opendir+:} false; then : |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 4594 | |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 4595 | else |
| 4596 | ac_cv_search_opendir=no |
| 4597 | fi |
| 4598 | rm conftest.$ac_ext |
| 4599 | LIBS=$ac_func_search_save_LIBS |
| 4600 | fi |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 4601 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 |
| 4602 | $as_echo "$ac_cv_search_opendir" >&6; } |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 4603 | ac_res=$ac_cv_search_opendir |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 4604 | if test "$ac_res" != no; then : |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 4605 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
| 4606 | |
| 4607 | fi |
| 4608 | |
| 4609 | fi |
| 4610 | |
| 4611 | ac_ext=c |
| 4612 | ac_cpp='$CPP $CPPFLAGS' |
| 4613 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 4614 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 4615 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 4616 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 |
| 4617 | $as_echo_n "checking how to run the C preprocessor... " >&6; } |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 4618 | # On Suns, sometimes $CPP names a directory. |
| 4619 | if test -n "$CPP" && test -d "$CPP"; then |
| 4620 | CPP= |
| 4621 | fi |
| 4622 | if test -z "$CPP"; then |
Nick Sanders | fb72e5e | 2018-08-09 17:01:01 -0700 | [diff] [blame] | 4623 | if ${ac_cv_prog_CPP+:} false; then : |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 4624 | $as_echo_n "(cached) " >&6 |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 4625 | else |
| 4626 | # Double quotes because CPP needs to be expanded |
| 4627 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
| 4628 | do |
| 4629 | ac_preproc_ok=false |
| 4630 | for ac_c_preproc_warn_flag in '' yes |
| 4631 | do |
| 4632 | # Use a header file that comes with gcc, so configuring glibc |
| 4633 | # with a fresh cross-compiler works. |
| 4634 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 4635 | # <limits.h> exists even on freestanding compilers. |
| 4636 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 4637 | # not just through cpp. "Syntax error" is here to catch this case. |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 4638 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 4639 | /* end confdefs.h. */ |
| 4640 | #ifdef __STDC__ |
| 4641 | # include <limits.h> |
| 4642 | #else |
| 4643 | # include <assert.h> |
| 4644 | #endif |
| 4645 | Syntax error |
| 4646 | _ACEOF |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 4647 | if ac_fn_c_try_cpp "$LINENO"; then : |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 4648 | |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 4649 | else |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 4650 | # Broken: fails on valid input. |
| 4651 | continue |
| 4652 | fi |
Nick Sanders | fb72e5e | 2018-08-09 17:01:01 -0700 | [diff] [blame] | 4653 | rm -f conftest.err conftest.i conftest.$ac_ext |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 4654 | |
| 4655 | # OK, works on sane cases. Now check whether nonexistent headers |
| 4656 | # can be detected and how. |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 4657 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 4658 | /* end confdefs.h. */ |
| 4659 | #include <ac_nonexistent.h> |
| 4660 | _ACEOF |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 4661 | if ac_fn_c_try_cpp "$LINENO"; then : |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 4662 | # Broken: success on invalid input. |
| 4663 | continue |
| 4664 | else |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 4665 | # Passes both tests. |
| 4666 | ac_preproc_ok=: |
| 4667 | break |
| 4668 | fi |
Nick Sanders | fb72e5e | 2018-08-09 17:01:01 -0700 | [diff] [blame] | 4669 | rm -f conftest.err conftest.i conftest.$ac_ext |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 4670 | |
| 4671 | done |
| 4672 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
Nick Sanders | fb72e5e | 2018-08-09 17:01:01 -0700 | [diff] [blame] | 4673 | rm -f conftest.i conftest.err conftest.$ac_ext |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 4674 | if $ac_preproc_ok; then : |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 4675 | break |
| 4676 | fi |
| 4677 | |
| 4678 | done |
| 4679 | ac_cv_prog_CPP=$CPP |
| 4680 | |
| 4681 | fi |
| 4682 | CPP=$ac_cv_prog_CPP |
| 4683 | else |
| 4684 | ac_cv_prog_CPP=$CPP |
| 4685 | fi |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 4686 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 |
| 4687 | $as_echo "$CPP" >&6; } |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 4688 | ac_preproc_ok=false |
| 4689 | for ac_c_preproc_warn_flag in '' yes |
| 4690 | do |
| 4691 | # Use a header file that comes with gcc, so configuring glibc |
| 4692 | # with a fresh cross-compiler works. |
| 4693 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 4694 | # <limits.h> exists even on freestanding compilers. |
| 4695 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 4696 | # not just through cpp. "Syntax error" is here to catch this case. |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 4697 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 4698 | /* end confdefs.h. */ |
| 4699 | #ifdef __STDC__ |
| 4700 | # include <limits.h> |
| 4701 | #else |
| 4702 | # include <assert.h> |
| 4703 | #endif |
| 4704 | Syntax error |
| 4705 | _ACEOF |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 4706 | if ac_fn_c_try_cpp "$LINENO"; then : |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 4707 | |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 4708 | else |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 4709 | # Broken: fails on valid input. |
| 4710 | continue |
| 4711 | fi |
Nick Sanders | fb72e5e | 2018-08-09 17:01:01 -0700 | [diff] [blame] | 4712 | rm -f conftest.err conftest.i conftest.$ac_ext |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 4713 | |
| 4714 | # OK, works on sane cases. Now check whether nonexistent headers |
| 4715 | # can be detected and how. |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 4716 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 4717 | /* end confdefs.h. */ |
| 4718 | #include <ac_nonexistent.h> |
| 4719 | _ACEOF |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 4720 | if ac_fn_c_try_cpp "$LINENO"; then : |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 4721 | # Broken: success on invalid input. |
| 4722 | continue |
| 4723 | else |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 4724 | # Passes both tests. |
| 4725 | ac_preproc_ok=: |
| 4726 | break |
| 4727 | fi |
Nick Sanders | fb72e5e | 2018-08-09 17:01:01 -0700 | [diff] [blame] | 4728 | rm -f conftest.err conftest.i conftest.$ac_ext |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 4729 | |
| 4730 | done |
| 4731 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
Nick Sanders | fb72e5e | 2018-08-09 17:01:01 -0700 | [diff] [blame] | 4732 | rm -f conftest.i conftest.err conftest.$ac_ext |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 4733 | if $ac_preproc_ok; then : |
| 4734 | |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 4735 | else |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 4736 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 4737 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Nick Sanders | fb72e5e | 2018-08-09 17:01:01 -0700 | [diff] [blame] | 4738 | as_fn_error $? "C preprocessor \"$CPP\" fails sanity check |
| 4739 | See \`config.log' for more details" "$LINENO" 5; } |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 4740 | fi |
| 4741 | |
| 4742 | ac_ext=c |
| 4743 | ac_cpp='$CPP $CPPFLAGS' |
| 4744 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 4745 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 4746 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 4747 | |
| 4748 | |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 4749 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 |
| 4750 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } |
Nick Sanders | fb72e5e | 2018-08-09 17:01:01 -0700 | [diff] [blame] | 4751 | if ${ac_cv_path_GREP+:} false; then : |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 4752 | $as_echo_n "(cached) " >&6 |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 4753 | else |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 4754 | if test -z "$GREP"; then |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 4755 | ac_path_GREP_found=false |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 4756 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 4757 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 4758 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 4759 | do |
| 4760 | IFS=$as_save_IFS |
| 4761 | test -z "$as_dir" && as_dir=. |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 4762 | for ac_prog in grep ggrep; do |
| 4763 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4764 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" |
Nick Sanders | fb72e5e | 2018-08-09 17:01:01 -0700 | [diff] [blame] | 4765 | as_fn_executable_p "$ac_path_GREP" || continue |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 4766 | # Check for GNU ac_path_GREP and select it if it is found. |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 4767 | # Check for GNU $ac_path_GREP |
| 4768 | case `"$ac_path_GREP" --version 2>&1` in |
| 4769 | *GNU*) |
| 4770 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; |
| 4771 | *) |
| 4772 | ac_count=0 |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 4773 | $as_echo_n 0123456789 >"conftest.in" |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 4774 | while : |
| 4775 | do |
| 4776 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 4777 | mv "conftest.tmp" "conftest.in" |
| 4778 | cp "conftest.in" "conftest.nl" |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 4779 | $as_echo 'GREP' >> "conftest.nl" |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 4780 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 4781 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 4782 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 4783 | if test $ac_count -gt ${ac_path_GREP_max-0}; then |
| 4784 | # Best one so far, save it but keep looking for a better one |
| 4785 | ac_cv_path_GREP="$ac_path_GREP" |
| 4786 | ac_path_GREP_max=$ac_count |
| 4787 | fi |
| 4788 | # 10*(2^10) chars as input seems more than enough |
| 4789 | test $ac_count -gt 10 && break |
| 4790 | done |
| 4791 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 4792 | esac |
| 4793 | |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 4794 | $ac_path_GREP_found && break 3 |
| 4795 | done |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 4796 | done |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 4797 | done |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 4798 | IFS=$as_save_IFS |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 4799 | if test -z "$ac_cv_path_GREP"; then |
Nick Sanders | fb72e5e | 2018-08-09 17:01:01 -0700 | [diff] [blame] | 4800 | as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 4801 | fi |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 4802 | else |
| 4803 | ac_cv_path_GREP=$GREP |
| 4804 | fi |
| 4805 | |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 4806 | fi |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 4807 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 |
| 4808 | $as_echo "$ac_cv_path_GREP" >&6; } |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 4809 | GREP="$ac_cv_path_GREP" |
| 4810 | |
| 4811 | |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 4812 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 |
| 4813 | $as_echo_n "checking for egrep... " >&6; } |
Nick Sanders | fb72e5e | 2018-08-09 17:01:01 -0700 | [diff] [blame] | 4814 | if ${ac_cv_path_EGREP+:} false; then : |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 4815 | $as_echo_n "(cached) " >&6 |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 4816 | else |
| 4817 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
| 4818 | then ac_cv_path_EGREP="$GREP -E" |
| 4819 | else |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 4820 | if test -z "$EGREP"; then |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 4821 | ac_path_EGREP_found=false |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 4822 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 4823 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 4824 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 4825 | do |
| 4826 | IFS=$as_save_IFS |
| 4827 | test -z "$as_dir" && as_dir=. |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 4828 | for ac_prog in egrep; do |
| 4829 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4830 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" |
Nick Sanders | fb72e5e | 2018-08-09 17:01:01 -0700 | [diff] [blame] | 4831 | as_fn_executable_p "$ac_path_EGREP" || continue |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 4832 | # Check for GNU ac_path_EGREP and select it if it is found. |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 4833 | # Check for GNU $ac_path_EGREP |
| 4834 | case `"$ac_path_EGREP" --version 2>&1` in |
| 4835 | *GNU*) |
| 4836 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; |
| 4837 | *) |
| 4838 | ac_count=0 |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 4839 | $as_echo_n 0123456789 >"conftest.in" |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 4840 | while : |
| 4841 | do |
| 4842 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 4843 | mv "conftest.tmp" "conftest.in" |
| 4844 | cp "conftest.in" "conftest.nl" |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 4845 | $as_echo 'EGREP' >> "conftest.nl" |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 4846 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 4847 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 4848 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 4849 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then |
| 4850 | # Best one so far, save it but keep looking for a better one |
| 4851 | ac_cv_path_EGREP="$ac_path_EGREP" |
| 4852 | ac_path_EGREP_max=$ac_count |
| 4853 | fi |
| 4854 | # 10*(2^10) chars as input seems more than enough |
| 4855 | test $ac_count -gt 10 && break |
| 4856 | done |
| 4857 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 4858 | esac |
| 4859 | |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 4860 | $ac_path_EGREP_found && break 3 |
| 4861 | done |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 4862 | done |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 4863 | done |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 4864 | IFS=$as_save_IFS |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 4865 | if test -z "$ac_cv_path_EGREP"; then |
Nick Sanders | fb72e5e | 2018-08-09 17:01:01 -0700 | [diff] [blame] | 4866 | as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 4867 | fi |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 4868 | else |
| 4869 | ac_cv_path_EGREP=$EGREP |
| 4870 | fi |
| 4871 | |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 4872 | fi |
| 4873 | fi |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 4874 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 |
| 4875 | $as_echo "$ac_cv_path_EGREP" >&6; } |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 4876 | EGREP="$ac_cv_path_EGREP" |
| 4877 | |
| 4878 | |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 4879 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 |
| 4880 | $as_echo_n "checking for ANSI C header files... " >&6; } |
Nick Sanders | fb72e5e | 2018-08-09 17:01:01 -0700 | [diff] [blame] | 4881 | if ${ac_cv_header_stdc+:} false; then : |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 4882 | $as_echo_n "(cached) " >&6 |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 4883 | else |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 4884 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 4885 | /* end confdefs.h. */ |
| 4886 | #include <stdlib.h> |
| 4887 | #include <stdarg.h> |
| 4888 | #include <string.h> |
| 4889 | #include <float.h> |
| 4890 | |
| 4891 | int |
| 4892 | main () |
| 4893 | { |
| 4894 | |
| 4895 | ; |
| 4896 | return 0; |
| 4897 | } |
| 4898 | _ACEOF |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 4899 | if ac_fn_c_try_compile "$LINENO"; then : |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 4900 | ac_cv_header_stdc=yes |
| 4901 | else |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 4902 | ac_cv_header_stdc=no |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 4903 | fi |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 4904 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4905 | |
| 4906 | if test $ac_cv_header_stdc = yes; then |
| 4907 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 4908 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 4909 | /* end confdefs.h. */ |
| 4910 | #include <string.h> |
| 4911 | |
| 4912 | _ACEOF |
| 4913 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 4914 | $EGREP "memchr" >/dev/null 2>&1; then : |
| 4915 | |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 4916 | else |
| 4917 | ac_cv_header_stdc=no |
| 4918 | fi |
| 4919 | rm -f conftest* |
| 4920 | |
| 4921 | fi |
| 4922 | |
| 4923 | if test $ac_cv_header_stdc = yes; then |
| 4924 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 4925 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 4926 | /* end confdefs.h. */ |
| 4927 | #include <stdlib.h> |
| 4928 | |
| 4929 | _ACEOF |
| 4930 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 4931 | $EGREP "free" >/dev/null 2>&1; then : |
| 4932 | |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 4933 | else |
| 4934 | ac_cv_header_stdc=no |
| 4935 | fi |
| 4936 | rm -f conftest* |
| 4937 | |
| 4938 | fi |
| 4939 | |
| 4940 | if test $ac_cv_header_stdc = yes; then |
| 4941 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 4942 | if test "$cross_compiling" = yes; then : |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 4943 | : |
| 4944 | else |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 4945 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 4946 | /* end confdefs.h. */ |
| 4947 | #include <ctype.h> |
| 4948 | #include <stdlib.h> |
| 4949 | #if ((' ' & 0x0FF) == 0x020) |
| 4950 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 4951 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 4952 | #else |
| 4953 | # define ISLOWER(c) \ |
| 4954 | (('a' <= (c) && (c) <= 'i') \ |
| 4955 | || ('j' <= (c) && (c) <= 'r') \ |
| 4956 | || ('s' <= (c) && (c) <= 'z')) |
| 4957 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 4958 | #endif |
| 4959 | |
| 4960 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 4961 | int |
| 4962 | main () |
| 4963 | { |
| 4964 | int i; |
| 4965 | for (i = 0; i < 256; i++) |
| 4966 | if (XOR (islower (i), ISLOWER (i)) |
| 4967 | || toupper (i) != TOUPPER (i)) |
| 4968 | return 2; |
| 4969 | return 0; |
| 4970 | } |
| 4971 | _ACEOF |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 4972 | if ac_fn_c_try_run "$LINENO"; then : |
| 4973 | |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 4974 | else |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 4975 | ac_cv_header_stdc=no |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 4976 | fi |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 4977 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 4978 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 4979 | fi |
| 4980 | |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 4981 | fi |
| 4982 | fi |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 4983 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 |
| 4984 | $as_echo "$ac_cv_header_stdc" >&6; } |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 4985 | if test $ac_cv_header_stdc = yes; then |
| 4986 | |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 4987 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 4988 | |
| 4989 | fi |
| 4990 | |
nick.j.sanders | aeef091 | 2013-01-07 20:07:28 +0000 | [diff] [blame] | 4991 | # Skip malloc.h to prevent redefinition of HAVE_MALLOC_H on some platforms |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 4992 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 4993 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
| 4994 | inttypes.h stdint.h unistd.h |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 4995 | do : |
| 4996 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 4997 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default |
| 4998 | " |
Nick Sanders | fb72e5e | 2018-08-09 17:01:01 -0700 | [diff] [blame] | 4999 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 5000 | cat >>confdefs.h <<_ACEOF |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 5001 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 5002 | _ACEOF |
| 5003 | |
| 5004 | fi |
| 5005 | |
| 5006 | done |
| 5007 | |
| 5008 | |
nick.j.sanders | aeef091 | 2013-01-07 20:07:28 +0000 | [diff] [blame] | 5009 | for ac_header in arpa/inet.h fcntl.h netdb.h stdint.h stdlib.h string.h sys/ioctl.h sys/socket.h sys/time.h unistd.h |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 5010 | do : |
| 5011 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 5012 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" |
Nick Sanders | fb72e5e | 2018-08-09 17:01:01 -0700 | [diff] [blame] | 5013 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 5014 | cat >>confdefs.h <<_ACEOF |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 5015 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 5016 | _ACEOF |
| 5017 | |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 5018 | else |
| 5019 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 5020 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Nick Sanders | fb72e5e | 2018-08-09 17:01:01 -0700 | [diff] [blame] | 5021 | as_fn_error $? "Missing some header files. |
| 5022 | See \`config.log' for more details" "$LINENO" 5; } |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 5023 | fi |
| 5024 | |
| 5025 | done |
| 5026 | |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 5027 | for ac_header in pthread.h |
| 5028 | do : |
| 5029 | ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default" |
Nick Sanders | fb72e5e | 2018-08-09 17:01:01 -0700 | [diff] [blame] | 5030 | if test "x$ac_cv_header_pthread_h" = xyes; then : |
nick.j.sanders | eea0aac | 2010-03-12 03:35:04 +0000 | [diff] [blame] | 5031 | cat >>confdefs.h <<_ACEOF |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 5032 | #define HAVE_PTHREAD_H 1 |
nick.j.sanders | eea0aac | 2010-03-12 03:35:04 +0000 | [diff] [blame] | 5033 | _ACEOF |
| 5034 | |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 5035 | fi |
| 5036 | |
| 5037 | done |
| 5038 | |
nick.j.sanders | aeef091 | 2013-01-07 20:07:28 +0000 | [diff] [blame] | 5039 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pthread_create" >&5 |
| 5040 | $as_echo_n "checking for library containing pthread_create... " >&6; } |
Nick Sanders | fb72e5e | 2018-08-09 17:01:01 -0700 | [diff] [blame] | 5041 | if ${ac_cv_search_pthread_create+:} false; then : |
nick.j.sanders | aeef091 | 2013-01-07 20:07:28 +0000 | [diff] [blame] | 5042 | $as_echo_n "(cached) " >&6 |
| 5043 | else |
| 5044 | ac_func_search_save_LIBS=$LIBS |
| 5045 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5046 | /* end confdefs.h. */ |
| 5047 | |
| 5048 | /* Override any GCC internal prototype to avoid an error. |
| 5049 | Use char because int might match the return type of a GCC |
| 5050 | builtin and then its argument prototype would still apply. */ |
| 5051 | #ifdef __cplusplus |
| 5052 | extern "C" |
| 5053 | #endif |
| 5054 | char pthread_create (); |
| 5055 | int |
| 5056 | main () |
| 5057 | { |
| 5058 | return pthread_create (); |
| 5059 | ; |
| 5060 | return 0; |
| 5061 | } |
| 5062 | _ACEOF |
| 5063 | for ac_lib in '' pthread; do |
| 5064 | if test -z "$ac_lib"; then |
| 5065 | ac_res="none required" |
| 5066 | else |
| 5067 | ac_res=-l$ac_lib |
| 5068 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 5069 | fi |
| 5070 | if ac_fn_c_try_link "$LINENO"; then : |
| 5071 | ac_cv_search_pthread_create=$ac_res |
| 5072 | fi |
| 5073 | rm -f core conftest.err conftest.$ac_objext \ |
| 5074 | conftest$ac_exeext |
Nick Sanders | fb72e5e | 2018-08-09 17:01:01 -0700 | [diff] [blame] | 5075 | if ${ac_cv_search_pthread_create+:} false; then : |
nick.j.sanders | aeef091 | 2013-01-07 20:07:28 +0000 | [diff] [blame] | 5076 | break |
| 5077 | fi |
| 5078 | done |
Nick Sanders | fb72e5e | 2018-08-09 17:01:01 -0700 | [diff] [blame] | 5079 | if ${ac_cv_search_pthread_create+:} false; then : |
nick.j.sanders | aeef091 | 2013-01-07 20:07:28 +0000 | [diff] [blame] | 5080 | |
| 5081 | else |
| 5082 | ac_cv_search_pthread_create=no |
| 5083 | fi |
| 5084 | rm conftest.$ac_ext |
| 5085 | LIBS=$ac_func_search_save_LIBS |
| 5086 | fi |
| 5087 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pthread_create" >&5 |
| 5088 | $as_echo "$ac_cv_search_pthread_create" >&6; } |
| 5089 | ac_res=$ac_cv_search_pthread_create |
| 5090 | if test "$ac_res" != no; then : |
| 5091 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
| 5092 | |
| 5093 | fi |
| 5094 | |
nick.j.sanders | 34f025d | 2013-01-09 21:13:13 +0000 | [diff] [blame] | 5095 | ac_fn_c_check_type "$LINENO" "pthread_barrier_t" "ac_cv_type_pthread_barrier_t" "$ac_includes_default" |
Nick Sanders | fb72e5e | 2018-08-09 17:01:01 -0700 | [diff] [blame] | 5096 | if test "x$ac_cv_type_pthread_barrier_t" = xyes; then : |
nick.j.sanders | 34f025d | 2013-01-09 21:13:13 +0000 | [diff] [blame] | 5097 | |
| 5098 | $as_echo "#define HAVE_PTHREAD_BARRIERS 1" >>confdefs.h |
| 5099 | |
| 5100 | fi |
| 5101 | |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 5102 | for ac_header in libaio.h |
| 5103 | do : |
| 5104 | ac_fn_c_check_header_mongrel "$LINENO" "libaio.h" "ac_cv_header_libaio_h" "$ac_includes_default" |
Nick Sanders | fb72e5e | 2018-08-09 17:01:01 -0700 | [diff] [blame] | 5105 | if test "x$ac_cv_header_libaio_h" = xyes; then : |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 5106 | cat >>confdefs.h <<_ACEOF |
| 5107 | #define HAVE_LIBAIO_H 1 |
| 5108 | _ACEOF |
| 5109 | |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 5110 | fi |
| 5111 | |
| 5112 | done |
| 5113 | |
nick.j.sanders | aeef091 | 2013-01-07 20:07:28 +0000 | [diff] [blame] | 5114 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing io_setup" >&5 |
| 5115 | $as_echo_n "checking for library containing io_setup... " >&6; } |
Nick Sanders | fb72e5e | 2018-08-09 17:01:01 -0700 | [diff] [blame] | 5116 | if ${ac_cv_search_io_setup+:} false; then : |
nick.j.sanders | aeef091 | 2013-01-07 20:07:28 +0000 | [diff] [blame] | 5117 | $as_echo_n "(cached) " >&6 |
| 5118 | else |
| 5119 | ac_func_search_save_LIBS=$LIBS |
| 5120 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5121 | /* end confdefs.h. */ |
| 5122 | |
| 5123 | /* Override any GCC internal prototype to avoid an error. |
| 5124 | Use char because int might match the return type of a GCC |
| 5125 | builtin and then its argument prototype would still apply. */ |
| 5126 | #ifdef __cplusplus |
| 5127 | extern "C" |
| 5128 | #endif |
| 5129 | char io_setup (); |
| 5130 | int |
| 5131 | main () |
| 5132 | { |
| 5133 | return io_setup (); |
| 5134 | ; |
| 5135 | return 0; |
| 5136 | } |
| 5137 | _ACEOF |
| 5138 | for ac_lib in '' aio; do |
| 5139 | if test -z "$ac_lib"; then |
| 5140 | ac_res="none required" |
| 5141 | else |
| 5142 | ac_res=-l$ac_lib |
| 5143 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 5144 | fi |
| 5145 | if ac_fn_c_try_link "$LINENO"; then : |
| 5146 | ac_cv_search_io_setup=$ac_res |
| 5147 | fi |
| 5148 | rm -f core conftest.err conftest.$ac_objext \ |
| 5149 | conftest$ac_exeext |
Nick Sanders | fb72e5e | 2018-08-09 17:01:01 -0700 | [diff] [blame] | 5150 | if ${ac_cv_search_io_setup+:} false; then : |
nick.j.sanders | aeef091 | 2013-01-07 20:07:28 +0000 | [diff] [blame] | 5151 | break |
| 5152 | fi |
| 5153 | done |
Nick Sanders | fb72e5e | 2018-08-09 17:01:01 -0700 | [diff] [blame] | 5154 | if ${ac_cv_search_io_setup+:} false; then : |
nick.j.sanders | aeef091 | 2013-01-07 20:07:28 +0000 | [diff] [blame] | 5155 | |
| 5156 | else |
| 5157 | ac_cv_search_io_setup=no |
| 5158 | fi |
| 5159 | rm conftest.$ac_ext |
| 5160 | LIBS=$ac_func_search_save_LIBS |
| 5161 | fi |
| 5162 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_io_setup" >&5 |
| 5163 | $as_echo "$ac_cv_search_io_setup" >&6; } |
| 5164 | ac_res=$ac_cv_search_io_setup |
| 5165 | if test "$ac_res" != no; then : |
| 5166 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
| 5167 | |
| 5168 | fi |
| 5169 | |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 5170 | for ac_header in sys/shm.h |
| 5171 | do : |
| 5172 | ac_fn_c_check_header_mongrel "$LINENO" "sys/shm.h" "ac_cv_header_sys_shm_h" "$ac_includes_default" |
Nick Sanders | fb72e5e | 2018-08-09 17:01:01 -0700 | [diff] [blame] | 5173 | if test "x$ac_cv_header_sys_shm_h" = xyes; then : |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 5174 | cat >>confdefs.h <<_ACEOF |
| 5175 | #define HAVE_SYS_SHM_H 1 |
| 5176 | _ACEOF |
| 5177 | |
nick.j.sanders | eea0aac | 2010-03-12 03:35:04 +0000 | [diff] [blame] | 5178 | fi |
| 5179 | |
| 5180 | done |
| 5181 | |
nick.j.sanders | aeef091 | 2013-01-07 20:07:28 +0000 | [diff] [blame] | 5182 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing shm_open" >&5 |
| 5183 | $as_echo_n "checking for library containing shm_open... " >&6; } |
Nick Sanders | fb72e5e | 2018-08-09 17:01:01 -0700 | [diff] [blame] | 5184 | if ${ac_cv_search_shm_open+:} false; then : |
nick.j.sanders | aeef091 | 2013-01-07 20:07:28 +0000 | [diff] [blame] | 5185 | $as_echo_n "(cached) " >&6 |
| 5186 | else |
| 5187 | ac_func_search_save_LIBS=$LIBS |
| 5188 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5189 | /* end confdefs.h. */ |
| 5190 | |
| 5191 | /* Override any GCC internal prototype to avoid an error. |
| 5192 | Use char because int might match the return type of a GCC |
| 5193 | builtin and then its argument prototype would still apply. */ |
| 5194 | #ifdef __cplusplus |
| 5195 | extern "C" |
| 5196 | #endif |
| 5197 | char shm_open (); |
| 5198 | int |
| 5199 | main () |
| 5200 | { |
| 5201 | return shm_open (); |
| 5202 | ; |
| 5203 | return 0; |
| 5204 | } |
| 5205 | _ACEOF |
| 5206 | for ac_lib in '' rt; do |
| 5207 | if test -z "$ac_lib"; then |
| 5208 | ac_res="none required" |
| 5209 | else |
| 5210 | ac_res=-l$ac_lib |
| 5211 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 5212 | fi |
| 5213 | if ac_fn_c_try_link "$LINENO"; then : |
| 5214 | ac_cv_search_shm_open=$ac_res |
| 5215 | fi |
| 5216 | rm -f core conftest.err conftest.$ac_objext \ |
| 5217 | conftest$ac_exeext |
Nick Sanders | fb72e5e | 2018-08-09 17:01:01 -0700 | [diff] [blame] | 5218 | if ${ac_cv_search_shm_open+:} false; then : |
nick.j.sanders | aeef091 | 2013-01-07 20:07:28 +0000 | [diff] [blame] | 5219 | break |
| 5220 | fi |
| 5221 | done |
Nick Sanders | fb72e5e | 2018-08-09 17:01:01 -0700 | [diff] [blame] | 5222 | if ${ac_cv_search_shm_open+:} false; then : |
nick.j.sanders | aeef091 | 2013-01-07 20:07:28 +0000 | [diff] [blame] | 5223 | |
| 5224 | else |
| 5225 | ac_cv_search_shm_open=no |
| 5226 | fi |
| 5227 | rm conftest.$ac_ext |
| 5228 | LIBS=$ac_func_search_save_LIBS |
| 5229 | fi |
| 5230 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_shm_open" >&5 |
| 5231 | $as_echo "$ac_cv_search_shm_open" >&6; } |
| 5232 | ac_res=$ac_cv_search_shm_open |
| 5233 | if test "$ac_res" != no; then : |
| 5234 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
| 5235 | |
| 5236 | fi |
| 5237 | |
nick.j.sanders | eea0aac | 2010-03-12 03:35:04 +0000 | [diff] [blame] | 5238 | |
nick.j.sanders | ef1c935 | 2013-01-09 09:10:08 +0000 | [diff] [blame] | 5239 | |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 5240 | # Checks for typedefs, structures, and compiler characteristics. |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 5241 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5 |
| 5242 | $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; } |
Nick Sanders | fb72e5e | 2018-08-09 17:01:01 -0700 | [diff] [blame] | 5243 | if ${ac_cv_header_stdbool_h+:} false; then : |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 5244 | $as_echo_n "(cached) " >&6 |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 5245 | else |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 5246 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 5247 | /* end confdefs.h. */ |
| 5248 | |
Nick Sanders | fb72e5e | 2018-08-09 17:01:01 -0700 | [diff] [blame] | 5249 | #include <stdbool.h> |
| 5250 | #ifndef bool |
| 5251 | "error: bool is not defined" |
| 5252 | #endif |
| 5253 | #ifndef false |
| 5254 | "error: false is not defined" |
| 5255 | #endif |
| 5256 | #if false |
| 5257 | "error: false is not 0" |
| 5258 | #endif |
| 5259 | #ifndef true |
| 5260 | "error: true is not defined" |
| 5261 | #endif |
| 5262 | #if true != 1 |
| 5263 | "error: true is not 1" |
| 5264 | #endif |
| 5265 | #ifndef __bool_true_false_are_defined |
| 5266 | "error: __bool_true_false_are_defined is not defined" |
| 5267 | #endif |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 5268 | |
Nick Sanders | fb72e5e | 2018-08-09 17:01:01 -0700 | [diff] [blame] | 5269 | struct s { _Bool s: 1; _Bool t; } s; |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 5270 | |
Nick Sanders | fb72e5e | 2018-08-09 17:01:01 -0700 | [diff] [blame] | 5271 | char a[true == 1 ? 1 : -1]; |
| 5272 | char b[false == 0 ? 1 : -1]; |
| 5273 | char c[__bool_true_false_are_defined == 1 ? 1 : -1]; |
| 5274 | char d[(bool) 0.5 == true ? 1 : -1]; |
| 5275 | /* See body of main program for 'e'. */ |
| 5276 | char f[(_Bool) 0.0 == false ? 1 : -1]; |
| 5277 | char g[true]; |
| 5278 | char h[sizeof (_Bool)]; |
| 5279 | char i[sizeof s.t]; |
| 5280 | enum { j = false, k = true, l = false * true, m = true * 256 }; |
| 5281 | /* The following fails for |
| 5282 | HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */ |
| 5283 | _Bool n[m]; |
| 5284 | char o[sizeof n == m * sizeof n[0] ? 1 : -1]; |
| 5285 | char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1]; |
| 5286 | /* Catch a bug in an HP-UX C compiler. See |
| 5287 | http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html |
| 5288 | http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html |
| 5289 | */ |
| 5290 | _Bool q = true; |
| 5291 | _Bool *pq = &q; |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 5292 | |
| 5293 | int |
| 5294 | main () |
| 5295 | { |
| 5296 | |
Nick Sanders | fb72e5e | 2018-08-09 17:01:01 -0700 | [diff] [blame] | 5297 | bool e = &s; |
| 5298 | *pq |= q; |
| 5299 | *pq |= ! q; |
| 5300 | /* Refer to every declared value, to avoid compiler optimizations. */ |
| 5301 | return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l |
| 5302 | + !m + !n + !o + !p + !q + !pq); |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 5303 | |
| 5304 | ; |
| 5305 | return 0; |
| 5306 | } |
| 5307 | _ACEOF |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 5308 | if ac_fn_c_try_compile "$LINENO"; then : |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 5309 | ac_cv_header_stdbool_h=yes |
| 5310 | else |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 5311 | ac_cv_header_stdbool_h=no |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 5312 | fi |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 5313 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5314 | fi |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 5315 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5 |
| 5316 | $as_echo "$ac_cv_header_stdbool_h" >&6; } |
Nick Sanders | fb72e5e | 2018-08-09 17:01:01 -0700 | [diff] [blame] | 5317 | ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default" |
| 5318 | if test "x$ac_cv_type__Bool" = xyes; then : |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 5319 | |
| 5320 | cat >>confdefs.h <<_ACEOF |
| 5321 | #define HAVE__BOOL 1 |
| 5322 | _ACEOF |
| 5323 | |
| 5324 | |
| 5325 | fi |
| 5326 | |
Nick Sanders | fb72e5e | 2018-08-09 17:01:01 -0700 | [diff] [blame] | 5327 | |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 5328 | if test $ac_cv_header_stdbool_h = yes; then |
| 5329 | |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 5330 | $as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 5331 | |
| 5332 | fi |
| 5333 | |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 5334 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 |
| 5335 | $as_echo_n "checking for an ANSI C-conforming const... " >&6; } |
Nick Sanders | fb72e5e | 2018-08-09 17:01:01 -0700 | [diff] [blame] | 5336 | if ${ac_cv_c_const+:} false; then : |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 5337 | $as_echo_n "(cached) " >&6 |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 5338 | else |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 5339 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 5340 | /* end confdefs.h. */ |
| 5341 | |
| 5342 | int |
| 5343 | main () |
| 5344 | { |
Nick Sanders | fb72e5e | 2018-08-09 17:01:01 -0700 | [diff] [blame] | 5345 | |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 5346 | #ifndef __cplusplus |
Nick Sanders | fb72e5e | 2018-08-09 17:01:01 -0700 | [diff] [blame] | 5347 | /* Ultrix mips cc rejects this sort of thing. */ |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 5348 | typedef int charset[2]; |
Nick Sanders | fb72e5e | 2018-08-09 17:01:01 -0700 | [diff] [blame] | 5349 | const charset cs = { 0, 0 }; |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 5350 | /* SunOS 4.1.1 cc rejects this. */ |
| 5351 | char const *const *pcpcc; |
| 5352 | char **ppc; |
| 5353 | /* NEC SVR4.0.2 mips cc rejects this. */ |
| 5354 | struct point {int x, y;}; |
| 5355 | static struct point const zero = {0,0}; |
| 5356 | /* AIX XL C 1.02.0.0 rejects this. |
| 5357 | It does not let you subtract one const X* pointer from another in |
| 5358 | an arm of an if-expression whose if-part is not a constant |
| 5359 | expression */ |
| 5360 | const char *g = "string"; |
| 5361 | pcpcc = &g + (g ? g-g : 0); |
| 5362 | /* HPUX 7.0 cc rejects these. */ |
| 5363 | ++pcpcc; |
| 5364 | ppc = (char**) pcpcc; |
| 5365 | pcpcc = (char const *const *) ppc; |
Nick Sanders | fb72e5e | 2018-08-09 17:01:01 -0700 | [diff] [blame] | 5366 | { /* SCO 3.2v4 cc rejects this sort of thing. */ |
| 5367 | char tx; |
| 5368 | char *t = &tx; |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 5369 | char const *s = 0 ? (char *) 0 : (char const *) 0; |
| 5370 | |
| 5371 | *t++ = 0; |
| 5372 | if (s) return 0; |
| 5373 | } |
| 5374 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ |
| 5375 | int x[] = {25, 17}; |
| 5376 | const int *foo = &x[0]; |
| 5377 | ++foo; |
| 5378 | } |
| 5379 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ |
| 5380 | typedef const int *iptr; |
| 5381 | iptr p = 0; |
| 5382 | ++p; |
| 5383 | } |
Nick Sanders | fb72e5e | 2018-08-09 17:01:01 -0700 | [diff] [blame] | 5384 | { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 5385 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ |
Nick Sanders | fb72e5e | 2018-08-09 17:01:01 -0700 | [diff] [blame] | 5386 | struct s { int j; const int *ap[3]; } bx; |
| 5387 | struct s *b = &bx; b->j = 5; |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 5388 | } |
| 5389 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ |
| 5390 | const int foo = 10; |
| 5391 | if (!foo) return 0; |
| 5392 | } |
| 5393 | return !cs[0] && !zero.x; |
| 5394 | #endif |
| 5395 | |
| 5396 | ; |
| 5397 | return 0; |
| 5398 | } |
| 5399 | _ACEOF |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 5400 | if ac_fn_c_try_compile "$LINENO"; then : |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 5401 | ac_cv_c_const=yes |
| 5402 | else |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 5403 | ac_cv_c_const=no |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 5404 | fi |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 5405 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5406 | fi |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 5407 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 |
| 5408 | $as_echo "$ac_cv_c_const" >&6; } |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 5409 | if test $ac_cv_c_const = no; then |
| 5410 | |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 5411 | $as_echo "#define const /**/" >>confdefs.h |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 5412 | |
| 5413 | fi |
| 5414 | |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 5415 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 |
| 5416 | $as_echo_n "checking for inline... " >&6; } |
Nick Sanders | fb72e5e | 2018-08-09 17:01:01 -0700 | [diff] [blame] | 5417 | if ${ac_cv_c_inline+:} false; then : |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 5418 | $as_echo_n "(cached) " >&6 |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 5419 | else |
| 5420 | ac_cv_c_inline=no |
| 5421 | for ac_kw in inline __inline__ __inline; do |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 5422 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 5423 | /* end confdefs.h. */ |
| 5424 | #ifndef __cplusplus |
| 5425 | typedef int foo_t; |
| 5426 | static $ac_kw foo_t static_foo () {return 0; } |
| 5427 | $ac_kw foo_t foo () {return 0; } |
| 5428 | #endif |
| 5429 | |
| 5430 | _ACEOF |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 5431 | if ac_fn_c_try_compile "$LINENO"; then : |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 5432 | ac_cv_c_inline=$ac_kw |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 5433 | fi |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 5434 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5435 | test "$ac_cv_c_inline" != no && break |
| 5436 | done |
| 5437 | |
| 5438 | fi |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 5439 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 |
| 5440 | $as_echo "$ac_cv_c_inline" >&6; } |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 5441 | |
| 5442 | case $ac_cv_c_inline in |
| 5443 | inline | yes) ;; |
| 5444 | *) |
| 5445 | case $ac_cv_c_inline in |
| 5446 | no) ac_val=;; |
| 5447 | *) ac_val=$ac_cv_c_inline;; |
| 5448 | esac |
| 5449 | cat >>confdefs.h <<_ACEOF |
| 5450 | #ifndef __cplusplus |
| 5451 | #define inline $ac_val |
| 5452 | #endif |
| 5453 | _ACEOF |
| 5454 | ;; |
| 5455 | esac |
| 5456 | |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 5457 | ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default" |
Nick Sanders | fb72e5e | 2018-08-09 17:01:01 -0700 | [diff] [blame] | 5458 | if test "x$ac_cv_type_pid_t" = xyes; then : |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 5459 | |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 5460 | else |
| 5461 | |
| 5462 | cat >>confdefs.h <<_ACEOF |
| 5463 | #define pid_t int |
| 5464 | _ACEOF |
| 5465 | |
| 5466 | fi |
| 5467 | |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 5468 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5 |
| 5469 | $as_echo_n "checking for C/C++ restrict keyword... " >&6; } |
Nick Sanders | fb72e5e | 2018-08-09 17:01:01 -0700 | [diff] [blame] | 5470 | if ${ac_cv_c_restrict+:} false; then : |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 5471 | $as_echo_n "(cached) " >&6 |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 5472 | else |
| 5473 | ac_cv_c_restrict=no |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 5474 | # The order here caters to the fact that C++ does not require restrict. |
| 5475 | for ac_kw in __restrict __restrict__ _Restrict restrict; do |
| 5476 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 5477 | /* end confdefs.h. */ |
| 5478 | typedef int * int_ptr; |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 5479 | int foo (int_ptr $ac_kw ip) { |
| 5480 | return ip[0]; |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 5481 | } |
| 5482 | int |
| 5483 | main () |
| 5484 | { |
| 5485 | int s[1]; |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 5486 | int * $ac_kw t = s; |
| 5487 | t[0] = 0; |
| 5488 | return foo(t) |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 5489 | ; |
| 5490 | return 0; |
| 5491 | } |
| 5492 | _ACEOF |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 5493 | if ac_fn_c_try_compile "$LINENO"; then : |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 5494 | ac_cv_c_restrict=$ac_kw |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 5495 | fi |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 5496 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5497 | test "$ac_cv_c_restrict" != no && break |
| 5498 | done |
| 5499 | |
| 5500 | fi |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 5501 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5 |
| 5502 | $as_echo "$ac_cv_c_restrict" >&6; } |
| 5503 | |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 5504 | case $ac_cv_c_restrict in |
| 5505 | restrict) ;; |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 5506 | no) $as_echo "#define restrict /**/" >>confdefs.h |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 5507 | ;; |
| 5508 | *) cat >>confdefs.h <<_ACEOF |
| 5509 | #define restrict $ac_cv_c_restrict |
| 5510 | _ACEOF |
| 5511 | ;; |
| 5512 | esac |
| 5513 | |
nick.j.sanders | aeef091 | 2013-01-07 20:07:28 +0000 | [diff] [blame] | 5514 | ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" |
Nick Sanders | fb72e5e | 2018-08-09 17:01:01 -0700 | [diff] [blame] | 5515 | if test "x$ac_cv_type_size_t" = xyes; then : |
nick.j.sanders | aeef091 | 2013-01-07 20:07:28 +0000 | [diff] [blame] | 5516 | |
| 5517 | else |
| 5518 | |
| 5519 | cat >>confdefs.h <<_ACEOF |
| 5520 | #define size_t unsigned int |
| 5521 | _ACEOF |
| 5522 | |
| 5523 | fi |
| 5524 | |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 5525 | ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default" |
Nick Sanders | fb72e5e | 2018-08-09 17:01:01 -0700 | [diff] [blame] | 5526 | if test "x$ac_cv_type_ssize_t" = xyes; then : |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 5527 | |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 5528 | else |
| 5529 | |
| 5530 | cat >>confdefs.h <<_ACEOF |
| 5531 | #define ssize_t int |
| 5532 | _ACEOF |
| 5533 | |
| 5534 | fi |
| 5535 | |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 5536 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5 |
| 5537 | $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; } |
Nick Sanders | fb72e5e | 2018-08-09 17:01:01 -0700 | [diff] [blame] | 5538 | if ${ac_cv_header_time+:} false; then : |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 5539 | $as_echo_n "(cached) " >&6 |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 5540 | else |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 5541 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 5542 | /* end confdefs.h. */ |
| 5543 | #include <sys/types.h> |
| 5544 | #include <sys/time.h> |
| 5545 | #include <time.h> |
| 5546 | |
| 5547 | int |
| 5548 | main () |
| 5549 | { |
| 5550 | if ((struct tm *) 0) |
| 5551 | return 0; |
| 5552 | ; |
| 5553 | return 0; |
| 5554 | } |
| 5555 | _ACEOF |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 5556 | if ac_fn_c_try_compile "$LINENO"; then : |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 5557 | ac_cv_header_time=yes |
| 5558 | else |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 5559 | ac_cv_header_time=no |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 5560 | fi |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 5561 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5562 | fi |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 5563 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5 |
| 5564 | $as_echo "$ac_cv_header_time" >&6; } |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 5565 | if test $ac_cv_header_time = yes; then |
| 5566 | |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 5567 | $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 5568 | |
| 5569 | fi |
| 5570 | |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 5571 | ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t" |
| 5572 | case $ac_cv_c_uint16_t in #( |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 5573 | no|yes) ;; #( |
| 5574 | *) |
| 5575 | |
| 5576 | |
| 5577 | cat >>confdefs.h <<_ACEOF |
| 5578 | #define uint16_t $ac_cv_c_uint16_t |
| 5579 | _ACEOF |
| 5580 | ;; |
| 5581 | esac |
| 5582 | |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 5583 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5 |
| 5584 | $as_echo_n "checking for working volatile... " >&6; } |
Nick Sanders | fb72e5e | 2018-08-09 17:01:01 -0700 | [diff] [blame] | 5585 | if ${ac_cv_c_volatile+:} false; then : |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 5586 | $as_echo_n "(cached) " >&6 |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 5587 | else |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 5588 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 5589 | /* end confdefs.h. */ |
| 5590 | |
| 5591 | int |
| 5592 | main () |
| 5593 | { |
| 5594 | |
| 5595 | volatile int x; |
| 5596 | int * volatile y = (int *) 0; |
| 5597 | return !x && !y; |
| 5598 | ; |
| 5599 | return 0; |
| 5600 | } |
| 5601 | _ACEOF |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 5602 | if ac_fn_c_try_compile "$LINENO"; then : |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 5603 | ac_cv_c_volatile=yes |
| 5604 | else |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 5605 | ac_cv_c_volatile=no |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 5606 | fi |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 5607 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5608 | fi |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 5609 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5 |
| 5610 | $as_echo "$ac_cv_c_volatile" >&6; } |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 5611 | if test $ac_cv_c_volatile = no; then |
| 5612 | |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 5613 | $as_echo "#define volatile /**/" >>confdefs.h |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 5614 | |
| 5615 | fi |
| 5616 | |
| 5617 | |
nick.j.sanders | 6d1e64d | 2010-05-14 03:47:11 +0000 | [diff] [blame] | 5618 | |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 5619 | # Checks for library functions. |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 5620 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5 |
| 5621 | $as_echo_n "checking whether closedir returns void... " >&6; } |
Nick Sanders | fb72e5e | 2018-08-09 17:01:01 -0700 | [diff] [blame] | 5622 | if ${ac_cv_func_closedir_void+:} false; then : |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 5623 | $as_echo_n "(cached) " >&6 |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 5624 | else |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 5625 | if test "$cross_compiling" = yes; then : |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 5626 | ac_cv_func_closedir_void=yes |
| 5627 | else |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 5628 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 5629 | /* end confdefs.h. */ |
| 5630 | $ac_includes_default |
| 5631 | #include <$ac_header_dirent> |
| 5632 | #ifndef __cplusplus |
| 5633 | int closedir (); |
| 5634 | #endif |
| 5635 | |
| 5636 | int |
| 5637 | main () |
| 5638 | { |
| 5639 | return closedir (opendir (".")) != 0; |
| 5640 | ; |
| 5641 | return 0; |
| 5642 | } |
| 5643 | _ACEOF |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 5644 | if ac_fn_c_try_run "$LINENO"; then : |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 5645 | ac_cv_func_closedir_void=no |
| 5646 | else |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 5647 | ac_cv_func_closedir_void=yes |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 5648 | fi |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 5649 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 5650 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 5651 | fi |
| 5652 | |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 5653 | fi |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 5654 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5 |
| 5655 | $as_echo "$ac_cv_func_closedir_void" >&6; } |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 5656 | if test $ac_cv_func_closedir_void = yes; then |
| 5657 | |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 5658 | $as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 5659 | |
| 5660 | fi |
| 5661 | |
| 5662 | if test $ac_cv_c_compiler_gnu = yes; then |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 5663 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5 |
| 5664 | $as_echo_n "checking whether $CC needs -traditional... " >&6; } |
Nick Sanders | fb72e5e | 2018-08-09 17:01:01 -0700 | [diff] [blame] | 5665 | if ${ac_cv_prog_gcc_traditional+:} false; then : |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 5666 | $as_echo_n "(cached) " >&6 |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 5667 | else |
| 5668 | ac_pattern="Autoconf.*'x'" |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 5669 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 5670 | /* end confdefs.h. */ |
| 5671 | #include <sgtty.h> |
| 5672 | Autoconf TIOCGETP |
| 5673 | _ACEOF |
| 5674 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 5675 | $EGREP "$ac_pattern" >/dev/null 2>&1; then : |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 5676 | ac_cv_prog_gcc_traditional=yes |
| 5677 | else |
| 5678 | ac_cv_prog_gcc_traditional=no |
| 5679 | fi |
| 5680 | rm -f conftest* |
| 5681 | |
| 5682 | |
| 5683 | if test $ac_cv_prog_gcc_traditional = no; then |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 5684 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 5685 | /* end confdefs.h. */ |
| 5686 | #include <termio.h> |
| 5687 | Autoconf TCGETA |
| 5688 | _ACEOF |
| 5689 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 5690 | $EGREP "$ac_pattern" >/dev/null 2>&1; then : |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 5691 | ac_cv_prog_gcc_traditional=yes |
| 5692 | fi |
| 5693 | rm -f conftest* |
| 5694 | |
| 5695 | fi |
| 5696 | fi |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 5697 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5 |
| 5698 | $as_echo "$ac_cv_prog_gcc_traditional" >&6; } |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 5699 | if test $ac_cv_prog_gcc_traditional = yes; then |
| 5700 | CC="$CC -traditional" |
| 5701 | fi |
| 5702 | fi |
| 5703 | |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 5704 | for ac_header in sys/select.h sys/socket.h |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 5705 | do : |
| 5706 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 5707 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" |
Nick Sanders | fb72e5e | 2018-08-09 17:01:01 -0700 | [diff] [blame] | 5708 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 5709 | cat >>confdefs.h <<_ACEOF |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 5710 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 5711 | _ACEOF |
| 5712 | |
| 5713 | fi |
| 5714 | |
| 5715 | done |
| 5716 | |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 5717 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5 |
| 5718 | $as_echo_n "checking types of arguments for select... " >&6; } |
Nick Sanders | fb72e5e | 2018-08-09 17:01:01 -0700 | [diff] [blame] | 5719 | if ${ac_cv_func_select_args+:} false; then : |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 5720 | $as_echo_n "(cached) " >&6 |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 5721 | else |
| 5722 | for ac_arg234 in 'fd_set *' 'int *' 'void *'; do |
| 5723 | for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do |
| 5724 | for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 5725 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 5726 | /* end confdefs.h. */ |
| 5727 | $ac_includes_default |
| 5728 | #ifdef HAVE_SYS_SELECT_H |
| 5729 | # include <sys/select.h> |
| 5730 | #endif |
| 5731 | #ifdef HAVE_SYS_SOCKET_H |
| 5732 | # include <sys/socket.h> |
| 5733 | #endif |
| 5734 | |
| 5735 | int |
| 5736 | main () |
| 5737 | { |
| 5738 | extern int select ($ac_arg1, |
| 5739 | $ac_arg234, $ac_arg234, $ac_arg234, |
| 5740 | $ac_arg5); |
| 5741 | ; |
| 5742 | return 0; |
| 5743 | } |
| 5744 | _ACEOF |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 5745 | if ac_fn_c_try_compile "$LINENO"; then : |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 5746 | ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3 |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 5747 | fi |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 5748 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5749 | done |
| 5750 | done |
| 5751 | done |
| 5752 | # Provide a safe default value. |
Nick Sanders | fb72e5e | 2018-08-09 17:01:01 -0700 | [diff] [blame] | 5753 | : "${ac_cv_func_select_args=int,int *,struct timeval *}" |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 5754 | |
| 5755 | fi |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 5756 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5 |
| 5757 | $as_echo "$ac_cv_func_select_args" >&6; } |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 5758 | ac_save_IFS=$IFS; IFS=',' |
| 5759 | set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'` |
| 5760 | IFS=$ac_save_IFS |
| 5761 | shift |
| 5762 | |
| 5763 | cat >>confdefs.h <<_ACEOF |
| 5764 | #define SELECT_TYPE_ARG1 $1 |
| 5765 | _ACEOF |
| 5766 | |
| 5767 | |
| 5768 | cat >>confdefs.h <<_ACEOF |
| 5769 | #define SELECT_TYPE_ARG234 ($2) |
| 5770 | _ACEOF |
| 5771 | |
| 5772 | |
| 5773 | cat >>confdefs.h <<_ACEOF |
| 5774 | #define SELECT_TYPE_ARG5 ($3) |
| 5775 | _ACEOF |
| 5776 | |
| 5777 | rm -f conftest* |
| 5778 | |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 5779 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5 |
| 5780 | $as_echo_n "checking return type of signal handlers... " >&6; } |
Nick Sanders | fb72e5e | 2018-08-09 17:01:01 -0700 | [diff] [blame] | 5781 | if ${ac_cv_type_signal+:} false; then : |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 5782 | $as_echo_n "(cached) " >&6 |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 5783 | else |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 5784 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 5785 | /* end confdefs.h. */ |
| 5786 | #include <sys/types.h> |
| 5787 | #include <signal.h> |
| 5788 | |
| 5789 | int |
| 5790 | main () |
| 5791 | { |
| 5792 | return *(signal (0, 0)) (0) == 1; |
| 5793 | ; |
| 5794 | return 0; |
| 5795 | } |
| 5796 | _ACEOF |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 5797 | if ac_fn_c_try_compile "$LINENO"; then : |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 5798 | ac_cv_type_signal=int |
| 5799 | else |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 5800 | ac_cv_type_signal=void |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 5801 | fi |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 5802 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5803 | fi |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 5804 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5 |
| 5805 | $as_echo "$ac_cv_type_signal" >&6; } |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 5806 | |
| 5807 | cat >>confdefs.h <<_ACEOF |
| 5808 | #define RETSIGTYPE $ac_cv_type_signal |
| 5809 | _ACEOF |
| 5810 | |
| 5811 | |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 5812 | ac_fn_c_check_decl "$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default" |
Nick Sanders | fb72e5e | 2018-08-09 17:01:01 -0700 | [diff] [blame] | 5813 | if test "x$ac_cv_have_decl_strerror_r" = xyes; then : |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 5814 | ac_have_decl=1 |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 5815 | else |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 5816 | ac_have_decl=0 |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 5817 | fi |
| 5818 | |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 5819 | cat >>confdefs.h <<_ACEOF |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 5820 | #define HAVE_DECL_STRERROR_R $ac_have_decl |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 5821 | _ACEOF |
| 5822 | |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 5823 | for ac_func in strerror_r |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 5824 | do : |
| 5825 | ac_fn_c_check_func "$LINENO" "strerror_r" "ac_cv_func_strerror_r" |
Nick Sanders | fb72e5e | 2018-08-09 17:01:01 -0700 | [diff] [blame] | 5826 | if test "x$ac_cv_func_strerror_r" = xyes; then : |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 5827 | cat >>confdefs.h <<_ACEOF |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 5828 | #define HAVE_STRERROR_R 1 |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 5829 | _ACEOF |
| 5830 | |
| 5831 | fi |
| 5832 | done |
| 5833 | |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 5834 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5 |
| 5835 | $as_echo_n "checking whether strerror_r returns char *... " >&6; } |
Nick Sanders | fb72e5e | 2018-08-09 17:01:01 -0700 | [diff] [blame] | 5836 | if ${ac_cv_func_strerror_r_char_p+:} false; then : |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 5837 | $as_echo_n "(cached) " >&6 |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 5838 | else |
| 5839 | |
| 5840 | ac_cv_func_strerror_r_char_p=no |
| 5841 | if test $ac_cv_have_decl_strerror_r = yes; then |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 5842 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 5843 | /* end confdefs.h. */ |
| 5844 | $ac_includes_default |
| 5845 | int |
| 5846 | main () |
| 5847 | { |
| 5848 | |
| 5849 | char buf[100]; |
| 5850 | char x = *strerror_r (0, buf, sizeof buf); |
| 5851 | char *p = strerror_r (0, buf, sizeof buf); |
| 5852 | return !p || x; |
| 5853 | |
| 5854 | ; |
| 5855 | return 0; |
| 5856 | } |
| 5857 | _ACEOF |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 5858 | if ac_fn_c_try_compile "$LINENO"; then : |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 5859 | ac_cv_func_strerror_r_char_p=yes |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 5860 | fi |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 5861 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5862 | else |
| 5863 | # strerror_r is not declared. Choose between |
| 5864 | # systems that have relatively inaccessible declarations for the |
| 5865 | # function. BeOS and DEC UNIX 4.0 fall in this category, but the |
| 5866 | # former has a strerror_r that returns char*, while the latter |
| 5867 | # has a strerror_r that returns `int'. |
| 5868 | # This test should segfault on the DEC system. |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 5869 | if test "$cross_compiling" = yes; then : |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 5870 | : |
| 5871 | else |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 5872 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 5873 | /* end confdefs.h. */ |
| 5874 | $ac_includes_default |
| 5875 | extern char *strerror_r (); |
| 5876 | int |
| 5877 | main () |
| 5878 | { |
| 5879 | char buf[100]; |
| 5880 | char x = *strerror_r (0, buf, sizeof buf); |
| 5881 | return ! isalpha (x); |
| 5882 | ; |
| 5883 | return 0; |
| 5884 | } |
| 5885 | _ACEOF |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 5886 | if ac_fn_c_try_run "$LINENO"; then : |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 5887 | ac_cv_func_strerror_r_char_p=yes |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 5888 | fi |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 5889 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 5890 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 5891 | fi |
| 5892 | |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 5893 | fi |
| 5894 | |
| 5895 | fi |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 5896 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5 |
| 5897 | $as_echo "$ac_cv_func_strerror_r_char_p" >&6; } |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 5898 | if test $ac_cv_func_strerror_r_char_p = yes; then |
| 5899 | |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 5900 | $as_echo "#define STRERROR_R_CHAR_P 1" >>confdefs.h |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 5901 | |
| 5902 | fi |
| 5903 | |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 5904 | for ac_func in vprintf |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 5905 | do : |
| 5906 | ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf" |
Nick Sanders | fb72e5e | 2018-08-09 17:01:01 -0700 | [diff] [blame] | 5907 | if test "x$ac_cv_func_vprintf" = xyes; then : |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 5908 | cat >>confdefs.h <<_ACEOF |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 5909 | #define HAVE_VPRINTF 1 |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 5910 | _ACEOF |
| 5911 | |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 5912 | ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt" |
Nick Sanders | fb72e5e | 2018-08-09 17:01:01 -0700 | [diff] [blame] | 5913 | if test "x$ac_cv_func__doprnt" = xyes; then : |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 5914 | |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 5915 | $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 5916 | |
| 5917 | fi |
| 5918 | |
| 5919 | fi |
| 5920 | done |
| 5921 | |
| 5922 | |
nick.j.sanders | aeef091 | 2013-01-07 20:07:28 +0000 | [diff] [blame] | 5923 | for ac_func in ftruncate gettimeofday memset munmap select socket strtol strtoull |
| 5924 | do : |
| 5925 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 5926 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
Nick Sanders | fb72e5e | 2018-08-09 17:01:01 -0700 | [diff] [blame] | 5927 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
nick.j.sanders | aeef091 | 2013-01-07 20:07:28 +0000 | [diff] [blame] | 5928 | cat >>confdefs.h <<_ACEOF |
| 5929 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 5930 | _ACEOF |
| 5931 | |
| 5932 | fi |
| 5933 | done |
| 5934 | |
| 5935 | for ac_func in mmap64 posix_memalign rand_r sched_getaffinity |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 5936 | do : |
| 5937 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 5938 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
Nick Sanders | fb72e5e | 2018-08-09 17:01:01 -0700 | [diff] [blame] | 5939 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 5940 | cat >>confdefs.h <<_ACEOF |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 5941 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 5942 | _ACEOF |
| 5943 | |
| 5944 | fi |
| 5945 | done |
| 5946 | |
| 5947 | |
| 5948 | ac_config_files="$ac_config_files Makefile src/Makefile" |
| 5949 | |
| 5950 | cat >confcache <<\_ACEOF |
| 5951 | # This file is a shell script that caches the results of configure |
| 5952 | # tests run on this system so they can be shared between configure |
| 5953 | # scripts and configure runs, see configure's option --config-cache. |
| 5954 | # It is not useful on other systems. If it contains results you don't |
| 5955 | # want to keep, you may remove or edit it. |
| 5956 | # |
| 5957 | # config.status only pays attention to the cache file if you give it |
| 5958 | # the --recheck option to rerun configure. |
| 5959 | # |
| 5960 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
| 5961 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
| 5962 | # following values. |
| 5963 | |
| 5964 | _ACEOF |
| 5965 | |
| 5966 | # The following way of writing the cache mishandles newlines in values, |
| 5967 | # but we know of no workaround that is simple, portable, and efficient. |
| 5968 | # So, we kill variables containing newlines. |
| 5969 | # Ultrix sh set writes to stderr and can't be redirected directly, |
| 5970 | # and sets the high bit in the cache file unless we assign to the vars. |
| 5971 | ( |
| 5972 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do |
| 5973 | eval ac_val=\$$ac_var |
| 5974 | case $ac_val in #( |
| 5975 | *${as_nl}*) |
| 5976 | case $ac_var in #( |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 5977 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
| 5978 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 5979 | esac |
| 5980 | case $ac_var in #( |
| 5981 | _ | IFS | as_nl) ;; #( |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 5982 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
| 5983 | *) { eval $ac_var=; unset $ac_var;} ;; |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 5984 | esac ;; |
| 5985 | esac |
| 5986 | done |
| 5987 | |
| 5988 | (set) 2>&1 | |
| 5989 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
| 5990 | *${as_nl}ac_space=\ *) |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 5991 | # `set' does not quote correctly, so add quotes: double-quote |
| 5992 | # substitution turns \\\\ into \\, and sed turns \\ into \. |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 5993 | sed -n \ |
| 5994 | "s/'/'\\\\''/g; |
| 5995 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
| 5996 | ;; #( |
| 5997 | *) |
| 5998 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
| 5999 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
| 6000 | ;; |
| 6001 | esac | |
| 6002 | sort |
| 6003 | ) | |
| 6004 | sed ' |
| 6005 | /^ac_cv_env_/b end |
| 6006 | t clear |
| 6007 | :clear |
| 6008 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
| 6009 | t end |
| 6010 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
| 6011 | :end' >>confcache |
| 6012 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else |
| 6013 | if test -w "$cache_file"; then |
Nick Sanders | fb72e5e | 2018-08-09 17:01:01 -0700 | [diff] [blame] | 6014 | if test "x$cache_file" != "x/dev/null"; then |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 6015 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 |
| 6016 | $as_echo "$as_me: updating cache $cache_file" >&6;} |
Nick Sanders | fb72e5e | 2018-08-09 17:01:01 -0700 | [diff] [blame] | 6017 | if test ! -f "$cache_file" || test -h "$cache_file"; then |
| 6018 | cat confcache >"$cache_file" |
| 6019 | else |
| 6020 | case $cache_file in #( |
| 6021 | */* | ?:*) |
| 6022 | mv -f confcache "$cache_file"$$ && |
| 6023 | mv -f "$cache_file"$$ "$cache_file" ;; #( |
| 6024 | *) |
| 6025 | mv -f confcache "$cache_file" ;; |
| 6026 | esac |
| 6027 | fi |
| 6028 | fi |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 6029 | else |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 6030 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 |
| 6031 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 6032 | fi |
| 6033 | fi |
| 6034 | rm -f confcache |
| 6035 | |
| 6036 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
| 6037 | # Let make expand exec_prefix. |
| 6038 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
| 6039 | |
| 6040 | DEFS=-DHAVE_CONFIG_H |
| 6041 | |
| 6042 | ac_libobjs= |
| 6043 | ac_ltlibobjs= |
Nick Sanders | fb72e5e | 2018-08-09 17:01:01 -0700 | [diff] [blame] | 6044 | U= |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 6045 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
| 6046 | # 1. Remove the extension, and $U if already installed. |
| 6047 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 6048 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 6049 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
| 6050 | # will be set to the directory where LIBOBJS objects are built. |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 6051 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" |
| 6052 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 6053 | done |
| 6054 | LIBOBJS=$ac_libobjs |
| 6055 | |
| 6056 | LTLIBOBJS=$ac_ltlibobjs |
| 6057 | |
| 6058 | |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 6059 | if test -n "$EXEEXT"; then |
| 6060 | am__EXEEXT_TRUE= |
| 6061 | am__EXEEXT_FALSE='#' |
| 6062 | else |
| 6063 | am__EXEEXT_TRUE='#' |
| 6064 | am__EXEEXT_FALSE= |
| 6065 | fi |
| 6066 | |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 6067 | if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then |
Nick Sanders | fb72e5e | 2018-08-09 17:01:01 -0700 | [diff] [blame] | 6068 | as_fn_error $? "conditional \"AMDEP\" was never defined. |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 6069 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 6070 | fi |
| 6071 | if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then |
Nick Sanders | fb72e5e | 2018-08-09 17:01:01 -0700 | [diff] [blame] | 6072 | as_fn_error $? "conditional \"am__fastdepCXX\" was never defined. |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 6073 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 6074 | fi |
| 6075 | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then |
Nick Sanders | fb72e5e | 2018-08-09 17:01:01 -0700 | [diff] [blame] | 6076 | as_fn_error $? "conditional \"am__fastdepCC\" was never defined. |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 6077 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 6078 | fi |
| 6079 | |
Nick Sanders | fb72e5e | 2018-08-09 17:01:01 -0700 | [diff] [blame] | 6080 | : "${CONFIG_STATUS=./config.status}" |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 6081 | ac_write_fail=0 |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 6082 | ac_clean_files_save=$ac_clean_files |
| 6083 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 6084 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 |
| 6085 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} |
| 6086 | as_write_fail=0 |
| 6087 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 6088 | #! $SHELL |
| 6089 | # Generated by $as_me. |
| 6090 | # Run this file to recreate the current configuration. |
| 6091 | # Compiler output produced by configure, useful for debugging |
| 6092 | # configure, is in config.log if it exists. |
| 6093 | |
| 6094 | debug=false |
| 6095 | ac_cs_recheck=false |
| 6096 | ac_cs_silent=false |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 6097 | |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 6098 | SHELL=\${CONFIG_SHELL-$SHELL} |
| 6099 | export SHELL |
| 6100 | _ASEOF |
| 6101 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 |
| 6102 | ## -------------------- ## |
| 6103 | ## M4sh Initialization. ## |
| 6104 | ## -------------------- ## |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 6105 | |
| 6106 | # Be more Bourne compatible |
| 6107 | DUALCASE=1; export DUALCASE # for MKS sh |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 6108 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 6109 | emulate sh |
| 6110 | NULLCMD=: |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 6111 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 6112 | # is contrary to our usage. Disable this feature. |
| 6113 | alias -g '${1+"$@"}'='"$@"' |
| 6114 | setopt NO_GLOB_SUBST |
| 6115 | else |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 6116 | case `(set -o) 2>/dev/null` in #( |
| 6117 | *posix*) : |
| 6118 | set -o posix ;; #( |
| 6119 | *) : |
| 6120 | ;; |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 6121 | esac |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 6122 | fi |
| 6123 | |
| 6124 | |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 6125 | as_nl=' |
| 6126 | ' |
| 6127 | export as_nl |
| 6128 | # Printing a long string crashes Solaris 7 /usr/bin/printf. |
| 6129 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
| 6130 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo |
| 6131 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo |
| 6132 | # Prefer a ksh shell builtin over an external printf program on Solaris, |
| 6133 | # but without wasting forks for bash or zsh. |
| 6134 | if test -z "$BASH_VERSION$ZSH_VERSION" \ |
| 6135 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then |
| 6136 | as_echo='print -r --' |
| 6137 | as_echo_n='print -rn --' |
| 6138 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then |
| 6139 | as_echo='printf %s\n' |
| 6140 | as_echo_n='printf %s' |
| 6141 | else |
| 6142 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then |
| 6143 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' |
| 6144 | as_echo_n='/usr/ucb/echo -n' |
| 6145 | else |
| 6146 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
| 6147 | as_echo_n_body='eval |
| 6148 | arg=$1; |
| 6149 | case $arg in #( |
| 6150 | *"$as_nl"*) |
| 6151 | expr "X$arg" : "X\\(.*\\)$as_nl"; |
| 6152 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; |
| 6153 | esac; |
| 6154 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" |
| 6155 | ' |
| 6156 | export as_echo_n_body |
| 6157 | as_echo_n='sh -c $as_echo_n_body as_echo' |
| 6158 | fi |
| 6159 | export as_echo_body |
| 6160 | as_echo='sh -c $as_echo_body as_echo' |
| 6161 | fi |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 6162 | |
| 6163 | # The user is always right. |
| 6164 | if test "${PATH_SEPARATOR+set}" != set; then |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 6165 | PATH_SEPARATOR=: |
| 6166 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { |
| 6167 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || |
| 6168 | PATH_SEPARATOR=';' |
| 6169 | } |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 6170 | fi |
| 6171 | |
| 6172 | |
| 6173 | # IFS |
| 6174 | # We need space, tab and new line, in precisely that order. Quoting is |
| 6175 | # there to prevent editors from complaining about space-tab. |
| 6176 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
| 6177 | # splitting by setting IFS to empty value.) |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 6178 | IFS=" "" $as_nl" |
| 6179 | |
| 6180 | # Find who we are. Look in the path if we contain no directory separator. |
Nick Sanders | fb72e5e | 2018-08-09 17:01:01 -0700 | [diff] [blame] | 6181 | as_myself= |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 6182 | case $0 in #(( |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 6183 | *[\\/]* ) as_myself=$0 ;; |
| 6184 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6185 | for as_dir in $PATH |
| 6186 | do |
| 6187 | IFS=$as_save_IFS |
| 6188 | test -z "$as_dir" && as_dir=. |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 6189 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 6190 | done |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 6191 | IFS=$as_save_IFS |
| 6192 | |
| 6193 | ;; |
| 6194 | esac |
| 6195 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 6196 | # in which case we are not to be found in the path. |
| 6197 | if test "x$as_myself" = x; then |
| 6198 | as_myself=$0 |
| 6199 | fi |
| 6200 | if test ! -f "$as_myself"; then |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 6201 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
| 6202 | exit 1 |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 6203 | fi |
| 6204 | |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 6205 | # Unset variables that we do not need and which cause bugs (e.g. in |
| 6206 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" |
| 6207 | # suppresses any "Segmentation fault" message there. '((' could |
| 6208 | # trigger a bug in pdksh 5.2.14. |
| 6209 | for as_var in BASH_ENV ENV MAIL MAILPATH |
| 6210 | do eval test x\${$as_var+set} = xset \ |
| 6211 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 6212 | done |
| 6213 | PS1='$ ' |
| 6214 | PS2='> ' |
| 6215 | PS4='+ ' |
| 6216 | |
| 6217 | # NLS nuisances. |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 6218 | LC_ALL=C |
| 6219 | export LC_ALL |
| 6220 | LANGUAGE=C |
| 6221 | export LANGUAGE |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 6222 | |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 6223 | # CDPATH. |
| 6224 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
| 6225 | |
| 6226 | |
Nick Sanders | fb72e5e | 2018-08-09 17:01:01 -0700 | [diff] [blame] | 6227 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
| 6228 | # ---------------------------------------- |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 6229 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
| 6230 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the |
Nick Sanders | fb72e5e | 2018-08-09 17:01:01 -0700 | [diff] [blame] | 6231 | # script with STATUS, using 1 if that was 0. |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 6232 | as_fn_error () |
| 6233 | { |
Nick Sanders | fb72e5e | 2018-08-09 17:01:01 -0700 | [diff] [blame] | 6234 | as_status=$1; test $as_status -eq 0 && as_status=1 |
| 6235 | if test "$4"; then |
| 6236 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 6237 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 6238 | fi |
Nick Sanders | fb72e5e | 2018-08-09 17:01:01 -0700 | [diff] [blame] | 6239 | $as_echo "$as_me: error: $2" >&2 |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 6240 | as_fn_exit $as_status |
| 6241 | } # as_fn_error |
| 6242 | |
| 6243 | |
| 6244 | # as_fn_set_status STATUS |
| 6245 | # ----------------------- |
| 6246 | # Set $? to STATUS, without forking. |
| 6247 | as_fn_set_status () |
| 6248 | { |
| 6249 | return $1 |
| 6250 | } # as_fn_set_status |
| 6251 | |
| 6252 | # as_fn_exit STATUS |
| 6253 | # ----------------- |
| 6254 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. |
| 6255 | as_fn_exit () |
| 6256 | { |
| 6257 | set +e |
| 6258 | as_fn_set_status $1 |
| 6259 | exit $1 |
| 6260 | } # as_fn_exit |
| 6261 | |
| 6262 | # as_fn_unset VAR |
| 6263 | # --------------- |
| 6264 | # Portably unset VAR. |
| 6265 | as_fn_unset () |
| 6266 | { |
| 6267 | { eval $1=; unset $1;} |
| 6268 | } |
| 6269 | as_unset=as_fn_unset |
| 6270 | # as_fn_append VAR VALUE |
| 6271 | # ---------------------- |
| 6272 | # Append the text in VALUE to the end of the definition contained in VAR. Take |
| 6273 | # advantage of any shell optimizations that allow amortized linear growth over |
| 6274 | # repeated appends, instead of the typical quadratic growth present in naive |
| 6275 | # implementations. |
| 6276 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : |
| 6277 | eval 'as_fn_append () |
| 6278 | { |
| 6279 | eval $1+=\$2 |
| 6280 | }' |
| 6281 | else |
| 6282 | as_fn_append () |
| 6283 | { |
| 6284 | eval $1=\$$1\$2 |
| 6285 | } |
| 6286 | fi # as_fn_append |
| 6287 | |
| 6288 | # as_fn_arith ARG... |
| 6289 | # ------------------ |
| 6290 | # Perform arithmetic evaluation on the ARGs, and store the result in the |
| 6291 | # global $as_val. Take advantage of shells that can avoid forks. The arguments |
| 6292 | # must be portable across $(()) and expr. |
| 6293 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : |
| 6294 | eval 'as_fn_arith () |
| 6295 | { |
| 6296 | as_val=$(( $* )) |
| 6297 | }' |
| 6298 | else |
| 6299 | as_fn_arith () |
| 6300 | { |
| 6301 | as_val=`expr "$@" || test $? -eq 1` |
| 6302 | } |
| 6303 | fi # as_fn_arith |
| 6304 | |
| 6305 | |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 6306 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 6307 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
| 6308 | as_expr=expr |
| 6309 | else |
| 6310 | as_expr=false |
| 6311 | fi |
| 6312 | |
| 6313 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
| 6314 | as_basename=basename |
| 6315 | else |
| 6316 | as_basename=false |
| 6317 | fi |
| 6318 | |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 6319 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
| 6320 | as_dirname=dirname |
| 6321 | else |
| 6322 | as_dirname=false |
| 6323 | fi |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 6324 | |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 6325 | as_me=`$as_basename -- "$0" || |
| 6326 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 6327 | X"$0" : 'X\(//\)$' \| \ |
| 6328 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 6329 | $as_echo X/"$0" | |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 6330 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
| 6331 | s//\1/ |
| 6332 | q |
| 6333 | } |
| 6334 | /^X\/\(\/\/\)$/{ |
| 6335 | s//\1/ |
| 6336 | q |
| 6337 | } |
| 6338 | /^X\/\(\/\).*/{ |
| 6339 | s//\1/ |
| 6340 | q |
| 6341 | } |
| 6342 | s/.*/./; q'` |
| 6343 | |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 6344 | # Avoid depending upon Character Ranges. |
| 6345 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 6346 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 6347 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 6348 | as_cr_digits='0123456789' |
| 6349 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 6350 | |
| 6351 | ECHO_C= ECHO_N= ECHO_T= |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 6352 | case `echo -n x` in #((((( |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 6353 | -n*) |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 6354 | case `echo 'xy\c'` in |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 6355 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 6356 | xy) ECHO_C='\c';; |
| 6357 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null |
| 6358 | ECHO_T=' ';; |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 6359 | esac;; |
| 6360 | *) |
| 6361 | ECHO_N='-n';; |
| 6362 | esac |
| 6363 | |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 6364 | rm -f conf$$ conf$$.exe conf$$.file |
| 6365 | if test -d conf$$.dir; then |
| 6366 | rm -f conf$$.dir/conf$$.file |
| 6367 | else |
| 6368 | rm -f conf$$.dir |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 6369 | mkdir conf$$.dir 2>/dev/null |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 6370 | fi |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 6371 | if (echo >conf$$.file) 2>/dev/null; then |
| 6372 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 6373 | as_ln_s='ln -s' |
| 6374 | # ... but there are two gotchas: |
| 6375 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
| 6376 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
Nick Sanders | fb72e5e | 2018-08-09 17:01:01 -0700 | [diff] [blame] | 6377 | # In both cases, we have to default to `cp -pR'. |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 6378 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
Nick Sanders | fb72e5e | 2018-08-09 17:01:01 -0700 | [diff] [blame] | 6379 | as_ln_s='cp -pR' |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 6380 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 6381 | as_ln_s=ln |
| 6382 | else |
Nick Sanders | fb72e5e | 2018-08-09 17:01:01 -0700 | [diff] [blame] | 6383 | as_ln_s='cp -pR' |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 6384 | fi |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 6385 | else |
Nick Sanders | fb72e5e | 2018-08-09 17:01:01 -0700 | [diff] [blame] | 6386 | as_ln_s='cp -pR' |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 6387 | fi |
| 6388 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
| 6389 | rmdir conf$$.dir 2>/dev/null |
| 6390 | |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 6391 | |
| 6392 | # as_fn_mkdir_p |
| 6393 | # ------------- |
| 6394 | # Create "$as_dir" as a directory, including parents if necessary. |
| 6395 | as_fn_mkdir_p () |
| 6396 | { |
| 6397 | |
| 6398 | case $as_dir in #( |
| 6399 | -*) as_dir=./$as_dir;; |
| 6400 | esac |
| 6401 | test -d "$as_dir" || eval $as_mkdir_p || { |
| 6402 | as_dirs= |
| 6403 | while :; do |
| 6404 | case $as_dir in #( |
| 6405 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
| 6406 | *) as_qdir=$as_dir;; |
| 6407 | esac |
| 6408 | as_dirs="'$as_qdir' $as_dirs" |
| 6409 | as_dir=`$as_dirname -- "$as_dir" || |
| 6410 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 6411 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 6412 | X"$as_dir" : 'X\(//\)$' \| \ |
| 6413 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
| 6414 | $as_echo X"$as_dir" | |
| 6415 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 6416 | s//\1/ |
| 6417 | q |
| 6418 | } |
| 6419 | /^X\(\/\/\)[^/].*/{ |
| 6420 | s//\1/ |
| 6421 | q |
| 6422 | } |
| 6423 | /^X\(\/\/\)$/{ |
| 6424 | s//\1/ |
| 6425 | q |
| 6426 | } |
| 6427 | /^X\(\/\).*/{ |
| 6428 | s//\1/ |
| 6429 | q |
| 6430 | } |
| 6431 | s/.*/./; q'` |
| 6432 | test -d "$as_dir" && break |
| 6433 | done |
| 6434 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
Nick Sanders | fb72e5e | 2018-08-09 17:01:01 -0700 | [diff] [blame] | 6435 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 6436 | |
| 6437 | |
| 6438 | } # as_fn_mkdir_p |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 6439 | if mkdir -p . 2>/dev/null; then |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 6440 | as_mkdir_p='mkdir -p "$as_dir"' |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 6441 | else |
| 6442 | test -d ./-p && rmdir ./-p |
| 6443 | as_mkdir_p=false |
| 6444 | fi |
| 6445 | |
Nick Sanders | fb72e5e | 2018-08-09 17:01:01 -0700 | [diff] [blame] | 6446 | |
| 6447 | # as_fn_executable_p FILE |
| 6448 | # ----------------------- |
| 6449 | # Test if FILE is an executable regular file. |
| 6450 | as_fn_executable_p () |
| 6451 | { |
| 6452 | test -f "$1" && test -x "$1" |
| 6453 | } # as_fn_executable_p |
| 6454 | as_test_x='test -x' |
| 6455 | as_executable_p=as_fn_executable_p |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 6456 | |
| 6457 | # Sed expression to map a string onto a valid CPP name. |
| 6458 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
| 6459 | |
| 6460 | # Sed expression to map a string onto a valid variable name. |
| 6461 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
| 6462 | |
| 6463 | |
| 6464 | exec 6>&1 |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 6465 | ## ----------------------------------- ## |
| 6466 | ## Main body of $CONFIG_STATUS script. ## |
| 6467 | ## ----------------------------------- ## |
| 6468 | _ASEOF |
| 6469 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 6470 | |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 6471 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 6472 | # Save the log message, to keep $0 and so on meaningful, and to |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 6473 | # report actual input values of CONFIG_FILES etc. instead of their |
| 6474 | # values after options handling. |
| 6475 | ac_log=" |
Nick Sanders | fb72e5e | 2018-08-09 17:01:01 -0700 | [diff] [blame] | 6476 | This file was extended by stressapptest $as_me 1.0.9_autoconf, which was |
| 6477 | generated by GNU Autoconf 2.69. Invocation command line was |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 6478 | |
| 6479 | CONFIG_FILES = $CONFIG_FILES |
| 6480 | CONFIG_HEADERS = $CONFIG_HEADERS |
| 6481 | CONFIG_LINKS = $CONFIG_LINKS |
| 6482 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
| 6483 | $ $0 $@ |
| 6484 | |
| 6485 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 6486 | " |
| 6487 | |
| 6488 | _ACEOF |
| 6489 | |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 6490 | case $ac_config_files in *" |
| 6491 | "*) set x $ac_config_files; shift; ac_config_files=$*;; |
| 6492 | esac |
| 6493 | |
| 6494 | case $ac_config_headers in *" |
| 6495 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;; |
| 6496 | esac |
| 6497 | |
| 6498 | |
| 6499 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 6500 | # Files that config.status was made for. |
| 6501 | config_files="$ac_config_files" |
| 6502 | config_headers="$ac_config_headers" |
| 6503 | config_commands="$ac_config_commands" |
| 6504 | |
| 6505 | _ACEOF |
| 6506 | |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 6507 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 6508 | ac_cs_usage="\ |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 6509 | \`$as_me' instantiates files and other configuration actions |
| 6510 | from templates according to the current configuration. Unless the files |
| 6511 | and actions are specified as TAGs, all are instantiated by default. |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 6512 | |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 6513 | Usage: $0 [OPTION]... [TAG]... |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 6514 | |
| 6515 | -h, --help print this help, then exit |
| 6516 | -V, --version print version number and configuration settings, then exit |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 6517 | --config print configuration, then exit |
| 6518 | -q, --quiet, --silent |
| 6519 | do not print progress messages |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 6520 | -d, --debug don't remove temporary files |
| 6521 | --recheck update $as_me by reconfiguring in the same conditions |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 6522 | --file=FILE[:TEMPLATE] |
| 6523 | instantiate the configuration file FILE |
| 6524 | --header=FILE[:TEMPLATE] |
| 6525 | instantiate the configuration header FILE |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 6526 | |
| 6527 | Configuration files: |
| 6528 | $config_files |
| 6529 | |
| 6530 | Configuration headers: |
| 6531 | $config_headers |
| 6532 | |
| 6533 | Configuration commands: |
| 6534 | $config_commands |
| 6535 | |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 6536 | Report bugs to <opensource@google.com>." |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 6537 | |
| 6538 | _ACEOF |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 6539 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 6540 | ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 6541 | ac_cs_version="\\ |
Nick Sanders | fb72e5e | 2018-08-09 17:01:01 -0700 | [diff] [blame] | 6542 | stressapptest config.status 1.0.9_autoconf |
| 6543 | configured by $0, generated by GNU Autoconf 2.69, |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 6544 | with options \\"\$ac_cs_config\\" |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 6545 | |
Nick Sanders | fb72e5e | 2018-08-09 17:01:01 -0700 | [diff] [blame] | 6546 | Copyright (C) 2012 Free Software Foundation, Inc. |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 6547 | This config.status script is free software; the Free Software Foundation |
| 6548 | gives unlimited permission to copy, distribute and modify it." |
| 6549 | |
| 6550 | ac_pwd='$ac_pwd' |
| 6551 | srcdir='$srcdir' |
| 6552 | INSTALL='$INSTALL' |
| 6553 | MKDIR_P='$MKDIR_P' |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 6554 | AWK='$AWK' |
| 6555 | test -n "\$AWK" || AWK=awk |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 6556 | _ACEOF |
| 6557 | |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 6558 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 6559 | # The default lists apply if the user does not specify any file. |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 6560 | ac_need_defaults=: |
| 6561 | while test $# != 0 |
| 6562 | do |
| 6563 | case $1 in |
Nick Sanders | fb72e5e | 2018-08-09 17:01:01 -0700 | [diff] [blame] | 6564 | --*=?*) |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 6565 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
| 6566 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` |
| 6567 | ac_shift=: |
| 6568 | ;; |
Nick Sanders | fb72e5e | 2018-08-09 17:01:01 -0700 | [diff] [blame] | 6569 | --*=) |
| 6570 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
| 6571 | ac_optarg= |
| 6572 | ac_shift=: |
| 6573 | ;; |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 6574 | *) |
| 6575 | ac_option=$1 |
| 6576 | ac_optarg=$2 |
| 6577 | ac_shift=shift |
| 6578 | ;; |
| 6579 | esac |
| 6580 | |
| 6581 | case $ac_option in |
| 6582 | # Handling of the options. |
| 6583 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
| 6584 | ac_cs_recheck=: ;; |
| 6585 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 6586 | $as_echo "$ac_cs_version"; exit ;; |
| 6587 | --config | --confi | --conf | --con | --co | --c ) |
| 6588 | $as_echo "$ac_cs_config"; exit ;; |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 6589 | --debug | --debu | --deb | --de | --d | -d ) |
| 6590 | debug=: ;; |
| 6591 | --file | --fil | --fi | --f ) |
| 6592 | $ac_shift |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 6593 | case $ac_optarg in |
| 6594 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; |
Nick Sanders | fb72e5e | 2018-08-09 17:01:01 -0700 | [diff] [blame] | 6595 | '') as_fn_error $? "missing file argument" ;; |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 6596 | esac |
| 6597 | as_fn_append CONFIG_FILES " '$ac_optarg'" |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 6598 | ac_need_defaults=false;; |
| 6599 | --header | --heade | --head | --hea ) |
| 6600 | $ac_shift |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 6601 | case $ac_optarg in |
| 6602 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 6603 | esac |
| 6604 | as_fn_append CONFIG_HEADERS " '$ac_optarg'" |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 6605 | ac_need_defaults=false;; |
| 6606 | --he | --h) |
| 6607 | # Conflict between --help and --header |
Nick Sanders | fb72e5e | 2018-08-09 17:01:01 -0700 | [diff] [blame] | 6608 | as_fn_error $? "ambiguous option: \`$1' |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 6609 | Try \`$0 --help' for more information.";; |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 6610 | --help | --hel | -h ) |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 6611 | $as_echo "$ac_cs_usage"; exit ;; |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 6612 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 6613 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
| 6614 | ac_cs_silent=: ;; |
| 6615 | |
| 6616 | # This is an error. |
Nick Sanders | fb72e5e | 2018-08-09 17:01:01 -0700 | [diff] [blame] | 6617 | -*) as_fn_error $? "unrecognized option: \`$1' |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 6618 | Try \`$0 --help' for more information." ;; |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 6619 | |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 6620 | *) as_fn_append ac_config_targets " $1" |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 6621 | ac_need_defaults=false ;; |
| 6622 | |
| 6623 | esac |
| 6624 | shift |
| 6625 | done |
| 6626 | |
| 6627 | ac_configure_extra_args= |
| 6628 | |
| 6629 | if $ac_cs_silent; then |
| 6630 | exec 6>/dev/null |
| 6631 | ac_configure_extra_args="$ac_configure_extra_args --silent" |
| 6632 | fi |
| 6633 | |
| 6634 | _ACEOF |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 6635 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 6636 | if \$ac_cs_recheck; then |
Nick Sanders | fb72e5e | 2018-08-09 17:01:01 -0700 | [diff] [blame] | 6637 | set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 6638 | shift |
| 6639 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 |
| 6640 | CONFIG_SHELL='$SHELL' |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 6641 | export CONFIG_SHELL |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 6642 | exec "\$@" |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 6643 | fi |
| 6644 | |
| 6645 | _ACEOF |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 6646 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 6647 | exec 5>>config.log |
| 6648 | { |
| 6649 | echo |
| 6650 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
| 6651 | ## Running $as_me. ## |
| 6652 | _ASBOX |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 6653 | $as_echo "$ac_log" |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 6654 | } >&5 |
| 6655 | |
| 6656 | _ACEOF |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 6657 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 6658 | # |
| 6659 | # INIT-COMMANDS |
| 6660 | # |
| 6661 | AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" |
| 6662 | |
| 6663 | _ACEOF |
| 6664 | |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 6665 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 6666 | |
| 6667 | # Handling of arguments. |
| 6668 | for ac_config_target in $ac_config_targets |
| 6669 | do |
| 6670 | case $ac_config_target in |
| 6671 | "src/stressapptest_config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/stressapptest_config.h" ;; |
| 6672 | "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; |
| 6673 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; |
| 6674 | "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; |
| 6675 | |
Nick Sanders | fb72e5e | 2018-08-09 17:01:01 -0700 | [diff] [blame] | 6676 | *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 6677 | esac |
| 6678 | done |
| 6679 | |
| 6680 | |
| 6681 | # If the user did not use the arguments to specify the items to instantiate, |
| 6682 | # then the envvar interface is used. Set only those that are not. |
| 6683 | # We use the long form for the default assignment because of an extremely |
| 6684 | # bizarre bug on SunOS 4.1.3. |
| 6685 | if $ac_need_defaults; then |
| 6686 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
| 6687 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
| 6688 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands |
| 6689 | fi |
| 6690 | |
| 6691 | # Have a temporary directory for convenience. Make it in the build tree |
| 6692 | # simply because there is no reason against having it here, and in addition, |
| 6693 | # creating and moving files from /tmp can sometimes cause problems. |
| 6694 | # Hook for its removal unless debugging. |
| 6695 | # Note that there is a small window in which the directory will not be cleaned: |
| 6696 | # after its creation but before its name has been assigned to `$tmp'. |
| 6697 | $debug || |
| 6698 | { |
Nick Sanders | fb72e5e | 2018-08-09 17:01:01 -0700 | [diff] [blame] | 6699 | tmp= ac_tmp= |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 6700 | trap 'exit_status=$? |
Nick Sanders | fb72e5e | 2018-08-09 17:01:01 -0700 | [diff] [blame] | 6701 | : "${ac_tmp:=$tmp}" |
| 6702 | { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 6703 | ' 0 |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 6704 | trap 'as_fn_exit 1' 1 2 13 15 |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 6705 | } |
| 6706 | # Create a (secure) tmp directory for tmp files. |
| 6707 | |
| 6708 | { |
| 6709 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
Nick Sanders | fb72e5e | 2018-08-09 17:01:01 -0700 | [diff] [blame] | 6710 | test -d "$tmp" |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 6711 | } || |
| 6712 | { |
| 6713 | tmp=./conf$$-$RANDOM |
| 6714 | (umask 077 && mkdir "$tmp") |
Nick Sanders | fb72e5e | 2018-08-09 17:01:01 -0700 | [diff] [blame] | 6715 | } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 |
| 6716 | ac_tmp=$tmp |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 6717 | |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 6718 | # Set up the scripts for CONFIG_FILES section. |
| 6719 | # No need to generate them if there are no CONFIG_FILES. |
| 6720 | # This happens for instance with `./config.status config.h'. |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 6721 | if test -n "$CONFIG_FILES"; then |
| 6722 | |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 6723 | |
| 6724 | ac_cr=`echo X | tr X '\015'` |
| 6725 | # On cygwin, bash can eat \r inside `` if the user requested igncr. |
| 6726 | # But we know of no other shell where ac_cr would be empty at this |
| 6727 | # point, so we can use a bashism as a fallback. |
| 6728 | if test "x$ac_cr" = x; then |
| 6729 | eval ac_cr=\$\'\\r\' |
| 6730 | fi |
| 6731 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` |
| 6732 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then |
Nick Sanders | fb72e5e | 2018-08-09 17:01:01 -0700 | [diff] [blame] | 6733 | ac_cs_awk_cr='\\r' |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 6734 | else |
| 6735 | ac_cs_awk_cr=$ac_cr |
| 6736 | fi |
| 6737 | |
Nick Sanders | fb72e5e | 2018-08-09 17:01:01 -0700 | [diff] [blame] | 6738 | echo 'BEGIN {' >"$ac_tmp/subs1.awk" && |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 6739 | _ACEOF |
| 6740 | |
| 6741 | |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 6742 | { |
| 6743 | echo "cat >conf$$subs.awk <<_ACEOF" && |
| 6744 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && |
| 6745 | echo "_ACEOF" |
| 6746 | } >conf$$subs.sh || |
Nick Sanders | fb72e5e | 2018-08-09 17:01:01 -0700 | [diff] [blame] | 6747 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
| 6748 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 6749 | ac_delim='%!_!# ' |
| 6750 | for ac_last_try in false false false false false :; do |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 6751 | . ./conf$$subs.sh || |
Nick Sanders | fb72e5e | 2018-08-09 17:01:01 -0700 | [diff] [blame] | 6752 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 6753 | |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 6754 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` |
| 6755 | if test $ac_delim_n = $ac_delim_num; then |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 6756 | break |
| 6757 | elif $ac_last_try; then |
Nick Sanders | fb72e5e | 2018-08-09 17:01:01 -0700 | [diff] [blame] | 6758 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 6759 | else |
| 6760 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
| 6761 | fi |
| 6762 | done |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 6763 | rm -f conf$$subs.sh |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 6764 | |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 6765 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
Nick Sanders | fb72e5e | 2018-08-09 17:01:01 -0700 | [diff] [blame] | 6766 | cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 6767 | _ACEOF |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 6768 | sed -n ' |
| 6769 | h |
| 6770 | s/^/S["/; s/!.*/"]=/ |
| 6771 | p |
| 6772 | g |
| 6773 | s/^[^!]*!// |
| 6774 | :repl |
| 6775 | t repl |
| 6776 | s/'"$ac_delim"'$// |
| 6777 | t delim |
| 6778 | :nl |
| 6779 | h |
| 6780 | s/\(.\{148\}\)..*/\1/ |
| 6781 | t more1 |
| 6782 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ |
| 6783 | p |
| 6784 | n |
| 6785 | b repl |
| 6786 | :more1 |
| 6787 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ |
| 6788 | p |
| 6789 | g |
| 6790 | s/.\{148\}// |
| 6791 | t nl |
| 6792 | :delim |
| 6793 | h |
| 6794 | s/\(.\{148\}\)..*/\1/ |
| 6795 | t more2 |
| 6796 | s/["\\]/\\&/g; s/^/"/; s/$/"/ |
| 6797 | p |
| 6798 | b |
| 6799 | :more2 |
| 6800 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ |
| 6801 | p |
| 6802 | g |
| 6803 | s/.\{148\}// |
| 6804 | t delim |
| 6805 | ' <conf$$subs.awk | sed ' |
| 6806 | /^[^""]/{ |
| 6807 | N |
| 6808 | s/\n// |
| 6809 | } |
| 6810 | ' >>$CONFIG_STATUS || ac_write_fail=1 |
| 6811 | rm -f conf$$subs.awk |
| 6812 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 6813 | _ACAWK |
Nick Sanders | fb72e5e | 2018-08-09 17:01:01 -0700 | [diff] [blame] | 6814 | cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 6815 | for (key in S) S_is_set[key] = 1 |
| 6816 | FS = "" |
| 6817 | |
| 6818 | } |
| 6819 | { |
| 6820 | line = $ 0 |
| 6821 | nfields = split(line, field, "@") |
| 6822 | substed = 0 |
| 6823 | len = length(field[1]) |
| 6824 | for (i = 2; i < nfields; i++) { |
| 6825 | key = field[i] |
| 6826 | keylen = length(key) |
| 6827 | if (S_is_set[key]) { |
| 6828 | value = S[key] |
| 6829 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) |
| 6830 | len += length(value) + length(field[++i]) |
| 6831 | substed = 1 |
| 6832 | } else |
| 6833 | len += 1 + keylen |
| 6834 | } |
| 6835 | |
| 6836 | print line |
| 6837 | } |
| 6838 | |
| 6839 | _ACAWK |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 6840 | _ACEOF |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 6841 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 6842 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then |
| 6843 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" |
| 6844 | else |
| 6845 | cat |
Nick Sanders | fb72e5e | 2018-08-09 17:01:01 -0700 | [diff] [blame] | 6846 | fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ |
| 6847 | || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 6848 | _ACEOF |
| 6849 | |
Nick Sanders | fb72e5e | 2018-08-09 17:01:01 -0700 | [diff] [blame] | 6850 | # VPATH may cause trouble with some makes, so we remove sole $(srcdir), |
| 6851 | # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 6852 | # trailing colons and then remove the whole line if VPATH becomes empty |
| 6853 | # (actually we leave an empty line to preserve line numbers). |
| 6854 | if test "x$srcdir" = x.; then |
Nick Sanders | fb72e5e | 2018-08-09 17:01:01 -0700 | [diff] [blame] | 6855 | ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ |
| 6856 | h |
| 6857 | s/// |
| 6858 | s/^/:/ |
| 6859 | s/[ ]*$/:/ |
| 6860 | s/:\$(srcdir):/:/g |
| 6861 | s/:\${srcdir}:/:/g |
| 6862 | s/:@srcdir@:/:/g |
| 6863 | s/^:*// |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 6864 | s/:*$// |
Nick Sanders | fb72e5e | 2018-08-09 17:01:01 -0700 | [diff] [blame] | 6865 | x |
| 6866 | s/\(=[ ]*\).*/\1/ |
| 6867 | G |
| 6868 | s/\n// |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 6869 | s/^[^=]*=[ ]*$// |
| 6870 | }' |
| 6871 | fi |
| 6872 | |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 6873 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 6874 | fi # test -n "$CONFIG_FILES" |
| 6875 | |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 6876 | # Set up the scripts for CONFIG_HEADERS section. |
| 6877 | # No need to generate them if there are no CONFIG_HEADERS. |
| 6878 | # This happens for instance with `./config.status Makefile'. |
| 6879 | if test -n "$CONFIG_HEADERS"; then |
Nick Sanders | fb72e5e | 2018-08-09 17:01:01 -0700 | [diff] [blame] | 6880 | cat >"$ac_tmp/defines.awk" <<\_ACAWK || |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 6881 | BEGIN { |
| 6882 | _ACEOF |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 6883 | |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 6884 | # Transform confdefs.h into an awk script `defines.awk', embedded as |
| 6885 | # here-document in config.status, that substitutes the proper values into |
| 6886 | # config.h.in to produce config.h. |
| 6887 | |
| 6888 | # Create a delimiter string that does not exist in confdefs.h, to ease |
| 6889 | # handling of long lines. |
| 6890 | ac_delim='%!_!# ' |
| 6891 | for ac_last_try in false false :; do |
Nick Sanders | fb72e5e | 2018-08-09 17:01:01 -0700 | [diff] [blame] | 6892 | ac_tt=`sed -n "/$ac_delim/p" confdefs.h` |
| 6893 | if test -z "$ac_tt"; then |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 6894 | break |
| 6895 | elif $ac_last_try; then |
Nick Sanders | fb72e5e | 2018-08-09 17:01:01 -0700 | [diff] [blame] | 6896 | as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 6897 | else |
| 6898 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
| 6899 | fi |
| 6900 | done |
| 6901 | |
| 6902 | # For the awk script, D is an array of macro values keyed by name, |
| 6903 | # likewise P contains macro parameters if any. Preserve backslash |
| 6904 | # newline sequences. |
| 6905 | |
| 6906 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* |
| 6907 | sed -n ' |
| 6908 | s/.\{148\}/&'"$ac_delim"'/g |
| 6909 | t rset |
| 6910 | :rset |
| 6911 | s/^[ ]*#[ ]*define[ ][ ]*/ / |
| 6912 | t def |
| 6913 | d |
| 6914 | :def |
| 6915 | s/\\$// |
| 6916 | t bsnl |
| 6917 | s/["\\]/\\&/g |
| 6918 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ |
| 6919 | D["\1"]=" \3"/p |
| 6920 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p |
| 6921 | d |
| 6922 | :bsnl |
| 6923 | s/["\\]/\\&/g |
| 6924 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ |
| 6925 | D["\1"]=" \3\\\\\\n"\\/p |
| 6926 | t cont |
| 6927 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p |
| 6928 | t cont |
| 6929 | d |
| 6930 | :cont |
| 6931 | n |
| 6932 | s/.\{148\}/&'"$ac_delim"'/g |
| 6933 | t clear |
| 6934 | :clear |
| 6935 | s/\\$// |
| 6936 | t bsnlc |
| 6937 | s/["\\]/\\&/g; s/^/"/; s/$/"/p |
| 6938 | d |
| 6939 | :bsnlc |
| 6940 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p |
| 6941 | b cont |
| 6942 | ' <confdefs.h | sed ' |
| 6943 | s/'"$ac_delim"'/"\\\ |
| 6944 | "/g' >>$CONFIG_STATUS || ac_write_fail=1 |
| 6945 | |
| 6946 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 6947 | for (key in D) D_is_set[key] = 1 |
| 6948 | FS = "" |
| 6949 | } |
| 6950 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { |
| 6951 | line = \$ 0 |
| 6952 | split(line, arg, " ") |
| 6953 | if (arg[1] == "#") { |
| 6954 | defundef = arg[2] |
| 6955 | mac1 = arg[3] |
| 6956 | } else { |
| 6957 | defundef = substr(arg[1], 2) |
| 6958 | mac1 = arg[2] |
| 6959 | } |
| 6960 | split(mac1, mac2, "(") #) |
| 6961 | macro = mac2[1] |
| 6962 | prefix = substr(line, 1, index(line, defundef) - 1) |
| 6963 | if (D_is_set[macro]) { |
| 6964 | # Preserve the white space surrounding the "#". |
| 6965 | print prefix "define", macro P[macro] D[macro] |
| 6966 | next |
| 6967 | } else { |
| 6968 | # Replace #undef with comments. This is necessary, for example, |
| 6969 | # in the case of _POSIX_SOURCE, which is predefined and required |
| 6970 | # on some systems where configure will not decide to define it. |
| 6971 | if (defundef == "undef") { |
| 6972 | print "/*", prefix defundef, macro, "*/" |
| 6973 | next |
| 6974 | } |
| 6975 | } |
| 6976 | } |
| 6977 | { print } |
| 6978 | _ACAWK |
| 6979 | _ACEOF |
| 6980 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Nick Sanders | fb72e5e | 2018-08-09 17:01:01 -0700 | [diff] [blame] | 6981 | as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 6982 | fi # test -n "$CONFIG_HEADERS" |
| 6983 | |
| 6984 | |
| 6985 | eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" |
| 6986 | shift |
| 6987 | for ac_tag |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 6988 | do |
| 6989 | case $ac_tag in |
| 6990 | :[FHLC]) ac_mode=$ac_tag; continue;; |
| 6991 | esac |
| 6992 | case $ac_mode$ac_tag in |
| 6993 | :[FHL]*:*);; |
Nick Sanders | fb72e5e | 2018-08-09 17:01:01 -0700 | [diff] [blame] | 6994 | :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 6995 | :[FH]-) ac_tag=-:-;; |
| 6996 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; |
| 6997 | esac |
| 6998 | ac_save_IFS=$IFS |
| 6999 | IFS=: |
| 7000 | set x $ac_tag |
| 7001 | IFS=$ac_save_IFS |
| 7002 | shift |
| 7003 | ac_file=$1 |
| 7004 | shift |
| 7005 | |
| 7006 | case $ac_mode in |
| 7007 | :L) ac_source=$1;; |
| 7008 | :[FH]) |
| 7009 | ac_file_inputs= |
| 7010 | for ac_f |
| 7011 | do |
| 7012 | case $ac_f in |
Nick Sanders | fb72e5e | 2018-08-09 17:01:01 -0700 | [diff] [blame] | 7013 | -) ac_f="$ac_tmp/stdin";; |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 7014 | *) # Look for the file first in the build tree, then in the source tree |
| 7015 | # (if the path is not absolute). The absolute path cannot be DOS-style, |
| 7016 | # because $ac_f cannot contain `:'. |
| 7017 | test -f "$ac_f" || |
| 7018 | case $ac_f in |
| 7019 | [\\/$]*) false;; |
| 7020 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; |
| 7021 | esac || |
Nick Sanders | fb72e5e | 2018-08-09 17:01:01 -0700 | [diff] [blame] | 7022 | as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 7023 | esac |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 7024 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac |
| 7025 | as_fn_append ac_file_inputs " '$ac_f'" |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 7026 | done |
| 7027 | |
| 7028 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
| 7029 | # use $as_me), people would be surprised to read: |
| 7030 | # /* config.h. Generated by config.status. */ |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 7031 | configure_input='Generated from '` |
| 7032 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' |
| 7033 | `' by configure.' |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 7034 | if test x"$ac_file" != x-; then |
| 7035 | configure_input="$ac_file. $configure_input" |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 7036 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 |
| 7037 | $as_echo "$as_me: creating $ac_file" >&6;} |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 7038 | fi |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 7039 | # Neutralize special characters interpreted by sed in replacement strings. |
| 7040 | case $configure_input in #( |
| 7041 | *\&* | *\|* | *\\* ) |
| 7042 | ac_sed_conf_input=`$as_echo "$configure_input" | |
| 7043 | sed 's/[\\\\&|]/\\\\&/g'`;; #( |
| 7044 | *) ac_sed_conf_input=$configure_input;; |
| 7045 | esac |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 7046 | |
| 7047 | case $ac_tag in |
Nick Sanders | fb72e5e | 2018-08-09 17:01:01 -0700 | [diff] [blame] | 7048 | *:-:* | *:-) cat >"$ac_tmp/stdin" \ |
| 7049 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 7050 | esac |
| 7051 | ;; |
| 7052 | esac |
| 7053 | |
| 7054 | ac_dir=`$as_dirname -- "$ac_file" || |
| 7055 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 7056 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 7057 | X"$ac_file" : 'X\(//\)$' \| \ |
| 7058 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 7059 | $as_echo X"$ac_file" | |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 7060 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 7061 | s//\1/ |
| 7062 | q |
| 7063 | } |
| 7064 | /^X\(\/\/\)[^/].*/{ |
| 7065 | s//\1/ |
| 7066 | q |
| 7067 | } |
| 7068 | /^X\(\/\/\)$/{ |
| 7069 | s//\1/ |
| 7070 | q |
| 7071 | } |
| 7072 | /^X\(\/\).*/{ |
| 7073 | s//\1/ |
| 7074 | q |
| 7075 | } |
| 7076 | s/.*/./; q'` |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 7077 | as_dir="$ac_dir"; as_fn_mkdir_p |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 7078 | ac_builddir=. |
| 7079 | |
| 7080 | case "$ac_dir" in |
| 7081 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 7082 | *) |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 7083 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 7084 | # A ".." for each directory in $ac_dir_suffix. |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 7085 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 7086 | case $ac_top_builddir_sub in |
| 7087 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 7088 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 7089 | esac ;; |
| 7090 | esac |
| 7091 | ac_abs_top_builddir=$ac_pwd |
| 7092 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 7093 | # for backward compatibility: |
| 7094 | ac_top_builddir=$ac_top_build_prefix |
| 7095 | |
| 7096 | case $srcdir in |
| 7097 | .) # We are building in place. |
| 7098 | ac_srcdir=. |
| 7099 | ac_top_srcdir=$ac_top_builddir_sub |
| 7100 | ac_abs_top_srcdir=$ac_pwd ;; |
| 7101 | [\\/]* | ?:[\\/]* ) # Absolute name. |
| 7102 | ac_srcdir=$srcdir$ac_dir_suffix; |
| 7103 | ac_top_srcdir=$srcdir |
| 7104 | ac_abs_top_srcdir=$srcdir ;; |
| 7105 | *) # Relative name. |
| 7106 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 7107 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 7108 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
| 7109 | esac |
| 7110 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
| 7111 | |
| 7112 | |
| 7113 | case $ac_mode in |
| 7114 | :F) |
| 7115 | # |
| 7116 | # CONFIG_FILE |
| 7117 | # |
| 7118 | |
| 7119 | case $INSTALL in |
| 7120 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
| 7121 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
| 7122 | esac |
| 7123 | ac_MKDIR_P=$MKDIR_P |
| 7124 | case $MKDIR_P in |
| 7125 | [\\/$]* | ?:[\\/]* ) ;; |
| 7126 | */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; |
| 7127 | esac |
| 7128 | _ACEOF |
| 7129 | |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 7130 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 7131 | # If the template does not know about datarootdir, expand it. |
| 7132 | # FIXME: This hack should be removed a few years after 2.60. |
| 7133 | ac_datarootdir_hack=; ac_datarootdir_seen= |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 7134 | ac_sed_dataroot=' |
| 7135 | /datarootdir/ { |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 7136 | p |
| 7137 | q |
| 7138 | } |
| 7139 | /@datadir@/p |
| 7140 | /@docdir@/p |
| 7141 | /@infodir@/p |
| 7142 | /@localedir@/p |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 7143 | /@mandir@/p' |
| 7144 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 7145 | *datarootdir*) ac_datarootdir_seen=yes;; |
| 7146 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 7147 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 |
| 7148 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 7149 | _ACEOF |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 7150 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 7151 | ac_datarootdir_hack=' |
| 7152 | s&@datadir@&$datadir&g |
| 7153 | s&@docdir@&$docdir&g |
| 7154 | s&@infodir@&$infodir&g |
| 7155 | s&@localedir@&$localedir&g |
| 7156 | s&@mandir@&$mandir&g |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 7157 | s&\\\${datarootdir}&$datarootdir&g' ;; |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 7158 | esac |
| 7159 | _ACEOF |
| 7160 | |
| 7161 | # Neutralize VPATH when `$srcdir' = `.'. |
| 7162 | # Shell code in configure.ac might set extrasub. |
| 7163 | # FIXME: do we really want to maintain this feature? |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 7164 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 7165 | ac_sed_extra="$ac_vpsub |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 7166 | $extrasub |
| 7167 | _ACEOF |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 7168 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 7169 | :t |
| 7170 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 7171 | s|@configure_input@|$ac_sed_conf_input|;t t |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 7172 | s&@top_builddir@&$ac_top_builddir_sub&;t t |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 7173 | s&@top_build_prefix@&$ac_top_build_prefix&;t t |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 7174 | s&@srcdir@&$ac_srcdir&;t t |
| 7175 | s&@abs_srcdir@&$ac_abs_srcdir&;t t |
| 7176 | s&@top_srcdir@&$ac_top_srcdir&;t t |
| 7177 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t |
| 7178 | s&@builddir@&$ac_builddir&;t t |
| 7179 | s&@abs_builddir@&$ac_abs_builddir&;t t |
| 7180 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t |
| 7181 | s&@INSTALL@&$ac_INSTALL&;t t |
| 7182 | s&@MKDIR_P@&$ac_MKDIR_P&;t t |
| 7183 | $ac_datarootdir_hack |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 7184 | " |
Nick Sanders | fb72e5e | 2018-08-09 17:01:01 -0700 | [diff] [blame] | 7185 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ |
| 7186 | >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 7187 | |
| 7188 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && |
Nick Sanders | fb72e5e | 2018-08-09 17:01:01 -0700 | [diff] [blame] | 7189 | { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && |
| 7190 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ |
| 7191 | "$ac_tmp/out"`; test -z "$ac_out"; } && |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 7192 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
Nick Sanders | fb72e5e | 2018-08-09 17:01:01 -0700 | [diff] [blame] | 7193 | which seems to be undefined. Please make sure it is defined" >&5 |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 7194 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
Nick Sanders | fb72e5e | 2018-08-09 17:01:01 -0700 | [diff] [blame] | 7195 | which seems to be undefined. Please make sure it is defined" >&2;} |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 7196 | |
Nick Sanders | fb72e5e | 2018-08-09 17:01:01 -0700 | [diff] [blame] | 7197 | rm -f "$ac_tmp/stdin" |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 7198 | case $ac_file in |
Nick Sanders | fb72e5e | 2018-08-09 17:01:01 -0700 | [diff] [blame] | 7199 | -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; |
| 7200 | *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 7201 | esac \ |
Nick Sanders | fb72e5e | 2018-08-09 17:01:01 -0700 | [diff] [blame] | 7202 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 7203 | ;; |
| 7204 | :H) |
| 7205 | # |
| 7206 | # CONFIG_HEADER |
| 7207 | # |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 7208 | if test x"$ac_file" != x-; then |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 7209 | { |
| 7210 | $as_echo "/* $configure_input */" \ |
Nick Sanders | fb72e5e | 2018-08-09 17:01:01 -0700 | [diff] [blame] | 7211 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" |
| 7212 | } >"$ac_tmp/config.h" \ |
| 7213 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
| 7214 | if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 7215 | { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 |
| 7216 | $as_echo "$as_me: $ac_file is unchanged" >&6;} |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 7217 | else |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 7218 | rm -f "$ac_file" |
Nick Sanders | fb72e5e | 2018-08-09 17:01:01 -0700 | [diff] [blame] | 7219 | mv "$ac_tmp/config.h" "$ac_file" \ |
| 7220 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 7221 | fi |
| 7222 | else |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 7223 | $as_echo "/* $configure_input */" \ |
Nick Sanders | fb72e5e | 2018-08-09 17:01:01 -0700 | [diff] [blame] | 7224 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ |
| 7225 | || as_fn_error $? "could not create -" "$LINENO" 5 |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 7226 | fi |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 7227 | # Compute "$ac_file"'s index in $config_headers. |
| 7228 | _am_arg="$ac_file" |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 7229 | _am_stamp_count=1 |
| 7230 | for _am_header in $config_headers :; do |
| 7231 | case $_am_header in |
| 7232 | $_am_arg | $_am_arg:* ) |
| 7233 | break ;; |
| 7234 | * ) |
| 7235 | _am_stamp_count=`expr $_am_stamp_count + 1` ;; |
| 7236 | esac |
| 7237 | done |
| 7238 | echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || |
| 7239 | $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 7240 | X"$_am_arg" : 'X\(//\)[^/]' \| \ |
| 7241 | X"$_am_arg" : 'X\(//\)$' \| \ |
| 7242 | X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 7243 | $as_echo X"$_am_arg" | |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 7244 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 7245 | s//\1/ |
| 7246 | q |
| 7247 | } |
| 7248 | /^X\(\/\/\)[^/].*/{ |
| 7249 | s//\1/ |
| 7250 | q |
| 7251 | } |
| 7252 | /^X\(\/\/\)$/{ |
| 7253 | s//\1/ |
| 7254 | q |
| 7255 | } |
| 7256 | /^X\(\/\).*/{ |
| 7257 | s//\1/ |
| 7258 | q |
| 7259 | } |
| 7260 | s/.*/./; q'`/stamp-h$_am_stamp_count |
| 7261 | ;; |
| 7262 | |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 7263 | :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 |
| 7264 | $as_echo "$as_me: executing $ac_file commands" >&6;} |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 7265 | ;; |
| 7266 | esac |
| 7267 | |
| 7268 | |
| 7269 | case $ac_file$ac_mode in |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 7270 | "depfiles":C) test x"$AMDEP_TRUE" != x"" || { |
| 7271 | # Autoconf 2.62 quotes --file arguments for eval, but not when files |
| 7272 | # are listed without --file. Let's play safe and only enable the eval |
| 7273 | # if we detect the quoting. |
| 7274 | case $CONFIG_FILES in |
| 7275 | *\'*) eval set x "$CONFIG_FILES" ;; |
| 7276 | *) set x $CONFIG_FILES ;; |
| 7277 | esac |
| 7278 | shift |
| 7279 | for mf |
| 7280 | do |
| 7281 | # Strip MF so we end up with the name of the file. |
| 7282 | mf=`echo "$mf" | sed -e 's/:.*$//'` |
| 7283 | # Check whether this is an Automake generated Makefile or not. |
| 7284 | # We used to match only the files named `Makefile.in', but |
| 7285 | # some people rename them; so instead we look at the file content. |
| 7286 | # Grep'ing the first line is not enough: some people post-process |
| 7287 | # each Makefile.in and add a new line on top of each file to say so. |
| 7288 | # Grep'ing the whole file is not good either: AIX grep has a line |
| 7289 | # limit of 2048, but all sed's we know have understand at least 4000. |
| 7290 | if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then |
| 7291 | dirpart=`$as_dirname -- "$mf" || |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 7292 | $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 7293 | X"$mf" : 'X\(//\)[^/]' \| \ |
| 7294 | X"$mf" : 'X\(//\)$' \| \ |
| 7295 | X"$mf" : 'X\(/\)' \| . 2>/dev/null || |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 7296 | $as_echo X"$mf" | |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 7297 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 7298 | s//\1/ |
| 7299 | q |
| 7300 | } |
| 7301 | /^X\(\/\/\)[^/].*/{ |
| 7302 | s//\1/ |
| 7303 | q |
| 7304 | } |
| 7305 | /^X\(\/\/\)$/{ |
| 7306 | s//\1/ |
| 7307 | q |
| 7308 | } |
| 7309 | /^X\(\/\).*/{ |
| 7310 | s//\1/ |
| 7311 | q |
| 7312 | } |
| 7313 | s/.*/./; q'` |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 7314 | else |
| 7315 | continue |
| 7316 | fi |
| 7317 | # Extract the definition of DEPDIR, am__include, and am__quote |
| 7318 | # from the Makefile without running `make'. |
| 7319 | DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` |
| 7320 | test -z "$DEPDIR" && continue |
| 7321 | am__include=`sed -n 's/^am__include = //p' < "$mf"` |
| 7322 | test -z "am__include" && continue |
| 7323 | am__quote=`sed -n 's/^am__quote = //p' < "$mf"` |
| 7324 | # When using ansi2knr, U may be empty or an underscore; expand it |
| 7325 | U=`sed -n 's/^U = //p' < "$mf"` |
| 7326 | # Find all dependency output files, they are included files with |
| 7327 | # $(DEPDIR) in their names. We invoke sed twice because it is the |
| 7328 | # simplest approach to changing $(DEPDIR) to its actual value in the |
| 7329 | # expansion. |
| 7330 | for file in `sed -n " |
| 7331 | s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ |
| 7332 | sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do |
| 7333 | # Make sure the directory exists. |
| 7334 | test -f "$dirpart/$file" && continue |
| 7335 | fdir=`$as_dirname -- "$file" || |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 7336 | $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 7337 | X"$file" : 'X\(//\)[^/]' \| \ |
| 7338 | X"$file" : 'X\(//\)$' \| \ |
| 7339 | X"$file" : 'X\(/\)' \| . 2>/dev/null || |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 7340 | $as_echo X"$file" | |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 7341 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 7342 | s//\1/ |
| 7343 | q |
| 7344 | } |
| 7345 | /^X\(\/\/\)[^/].*/{ |
| 7346 | s//\1/ |
| 7347 | q |
| 7348 | } |
| 7349 | /^X\(\/\/\)$/{ |
| 7350 | s//\1/ |
| 7351 | q |
| 7352 | } |
| 7353 | /^X\(\/\).*/{ |
| 7354 | s//\1/ |
| 7355 | q |
| 7356 | } |
| 7357 | s/.*/./; q'` |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 7358 | as_dir=$dirpart/$fdir; as_fn_mkdir_p |
| 7359 | # echo "creating $dirpart/$file" |
| 7360 | echo '# dummy' > "$dirpart/$file" |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 7361 | done |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 7362 | done |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 7363 | } |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 7364 | ;; |
| 7365 | |
| 7366 | esac |
| 7367 | done # for ac_tag |
| 7368 | |
| 7369 | |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 7370 | as_fn_exit 0 |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 7371 | _ACEOF |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 7372 | ac_clean_files=$ac_clean_files_save |
| 7373 | |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 7374 | test $ac_write_fail = 0 || |
Nick Sanders | fb72e5e | 2018-08-09 17:01:01 -0700 | [diff] [blame] | 7375 | as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 7376 | |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 7377 | |
| 7378 | # configure is writing to config.log, and then calls config.status. |
| 7379 | # config.status does its own redirection, appending to config.log. |
| 7380 | # Unfortunately, on DOS this fails, as config.log is still kept open |
| 7381 | # by configure, so config.status won't be able to write to it; its |
| 7382 | # output is simply discarded. So we exec the FD to /dev/null, |
| 7383 | # effectively closing config.log, so it can be properly (re)opened and |
| 7384 | # appended to by config.status. When coming back to configure, we |
| 7385 | # need to make the FD available again. |
| 7386 | if test "$no_create" != yes; then |
| 7387 | ac_cs_success=: |
| 7388 | ac_config_status_args= |
| 7389 | test "$silent" = yes && |
| 7390 | ac_config_status_args="$ac_config_status_args --quiet" |
| 7391 | exec 5>/dev/null |
| 7392 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
| 7393 | exec 5>>config.log |
| 7394 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
| 7395 | # would make configure fail if this is the last instruction. |
Nick Sanders | fb72e5e | 2018-08-09 17:01:01 -0700 | [diff] [blame] | 7396 | $ac_cs_success || as_fn_exit 1 |
nick.j.sanders | 3f2289d | 2011-11-11 00:34:37 +0000 | [diff] [blame] | 7397 | fi |
| 7398 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then |
| 7399 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 |
| 7400 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} |
menderico | 4861bb8 | 2009-09-29 00:31:36 +0000 | [diff] [blame] | 7401 | fi |
| 7402 | |