Changeset 5261 for pjproject/trunk/third_party/srtp/configure
- Timestamp:
- Mar 15, 2016 3:57:39 AM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/third_party/srtp/configure
r1730 r5261 1 1 #! /bin/sh 2 2 # Guess values for system-dependent variables and create Makefiles. 3 # Generated by GNU Autoconf 2. 59.3 # Generated by GNU Autoconf 2.69 for libsrtp 1.5.4. 4 4 # 5 # Copyright (C) 2003 Free Software Foundation, Inc. 5 # Report bugs to <https://github.com/cisco/libsrtp/issues>. 6 # 7 # 8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. 9 # 10 # 6 11 # This configure script is free software; the Free Software Foundation 7 12 # gives unlimited permission to copy, distribute and modify it. 8 ## --------------------- ## 9 ## M4sh Initialization. ## 10 ## --------------------- ## 11 12 # Be Bourne compatible 13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 13 ## -------------------- ## 14 ## M4sh Initialization. ## 15 ## -------------------- ## 16 17 # Be more Bourne compatible 18 DUALCASE=1; export DUALCASE # for MKS sh 19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 14 20 emulate sh 15 21 NULLCMD=: 16 # Zsh 3.x and 4.x performsword splitting on ${1+"$@"}, which22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 17 23 # is contrary to our usage. Disable this feature. 18 24 alias -g '${1+"$@"}'='"$@"' 19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then 20 set -o posix 21 fi 22 DUALCASE=1; export DUALCASE # for MKS sh 23 24 # Support unset when possible. 25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 26 as_unset=unset 27 else 28 as_unset=false 29 fi 30 31 32 # Work around bugs in pre-3.0 UWIN ksh. 33 $as_unset ENV MAIL MAILPATH 25 setopt NO_GLOB_SUBST 26 else 27 case `(set -o) 2>/dev/null` in #( 28 *posix*) : 29 set -o posix ;; #( 30 *) : 31 ;; 32 esac 33 fi 34 35 36 as_nl=' 37 ' 38 export as_nl 39 # Printing a long string crashes Solaris 7 /usr/bin/printf. 40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 43 # Prefer a ksh shell builtin over an external printf program on Solaris, 44 # but without wasting forks for bash or zsh. 45 if test -z "$BASH_VERSION$ZSH_VERSION" \ 46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 47 as_echo='print -r --' 48 as_echo_n='print -rn --' 49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 50 as_echo='printf %s\n' 51 as_echo_n='printf %s' 52 else 53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 55 as_echo_n='/usr/ucb/echo -n' 56 else 57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 58 as_echo_n_body='eval 59 arg=$1; 60 case $arg in #( 61 *"$as_nl"*) 62 expr "X$arg" : "X\\(.*\\)$as_nl"; 63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 64 esac; 65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 66 ' 67 export as_echo_n_body 68 as_echo_n='sh -c $as_echo_n_body as_echo' 69 fi 70 export as_echo_body 71 as_echo='sh -c $as_echo_body as_echo' 72 fi 73 74 # The user is always right. 75 if test "${PATH_SEPARATOR+set}" != set; then 76 PATH_SEPARATOR=: 77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 79 PATH_SEPARATOR=';' 80 } 81 fi 82 83 84 # IFS 85 # We need space, tab and new line, in precisely that order. Quoting is 86 # there to prevent editors from complaining about space-tab. 87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word 88 # splitting by setting IFS to empty value.) 89 IFS=" "" $as_nl" 90 91 # Find who we are. Look in the path if we contain no directory separator. 92 as_myself= 93 case $0 in #(( 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=. 100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 101 done 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 112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 113 exit 1 114 fi 115 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 || : 123 done 34 124 PS1='$ ' 35 125 PS2='> ' … … 37 127 38 128 # NLS nuisances. 39 for as_var in \ 40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 42 LC_TELEPHONE LC_TIME 129 LC_ALL=C 130 export LC_ALL 131 LANGUAGE=C 132 export LANGUAGE 133 134 # CDPATH. 135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH 136 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;} 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 195 test x\$exitcode = x0 || exit 1 196 test -x / || exit 1" 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 43 213 do 44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 45 eval $as_var=C; export $as_var 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 : 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 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." 46 268 else 47 $as_unset $as_var 269 $as_echo "$0: Please tell bug-autoconf@gnu.org and 270 $0: https://github.com/cisco/libsrtp/issues about your 271 $0: system, including any error possibly output before this 272 $0: message. Then install a modern shell, or manually run 273 $0: the script under such a shell if you do have one." 48 274 fi 49 done 50 51 # Required to use basename. 52 if expr a : '\(a\)' >/dev/null 2>&1; then 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" 358 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 359 360 361 } # as_fn_mkdir_p 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 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 406 # as_fn_error STATUS ERROR [LINENO LOG_FD] 407 # ---------------------------------------- 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 410 # script with STATUS, using 1 if that was 0. 411 as_fn_error () 412 { 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 417 fi 418 $as_echo "$as_me: error: $2" >&2 419 as_fn_exit $as_status 420 } # as_fn_error 421 422 if expr a : '\(a\)' >/dev/null 2>&1 && 423 test "X`expr 00001 : '.*\(...\)'`" = X001; then 53 424 as_expr=expr 54 425 else … … 56 427 fi 57 428 58 if (basename /) >/dev/null 2>&1 && test "X`basename/ 2>&1`" = "X/"; then429 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 59 430 as_basename=basename 60 431 else … … 62 433 fi 63 434 64 65 # Name of the executable. 66 as_me=`$as_basename "$0" || 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 440 441 as_me=`$as_basename -- "$0" || 67 442 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 68 443 X"$0" : 'X\(//\)$' \| \ 69 X"$0" : 'X\(/\)$' \| \ 70 . : '\(.\)' 2>/dev/null || 71 echo X/"$0" | 72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } 73 /^X\/\(\/\/\)$/{ s//\1/; q; } 74 /^X\/\(\/\).*/{ s//\1/; q; } 75 s/.*/./; q'` 76 77 78 # PATH needs CR, and LINENO needs CR and PATH. 444 X"$0" : 'X\(/\)' \| . 2>/dev/null || 445 $as_echo X/"$0" | 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 79 460 # Avoid depending upon Character Ranges. 80 461 as_cr_letters='abcdefghijklmnopqrstuvwxyz' … … 84 465 as_cr_alnum=$as_cr_Letters$as_cr_digits 85 466 86 # The user is always right. 87 if test "${PATH_SEPARATOR+set}" != set; then 88 echo "#! /bin/sh" >conf$$.sh 89 echo "exit 0" >>conf$$.sh 90 chmod +x conf$$.sh 91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 92 PATH_SEPARATOR=';' 93 else 94 PATH_SEPARATOR=: 95 fi 96 rm -f conf$$.sh 97 fi 98 99 100 as_lineno_1=$LINENO 101 as_lineno_2=$LINENO 102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 103 test "x$as_lineno_1" != "x$as_lineno_2" && 104 test "x$as_lineno_3" = "x$as_lineno_2" || { 105 # Find who we are. Look in the path if we contain no path at all 106 # relative or not. 107 case $0 in 108 *[\\/]* ) as_myself=$0 ;; 109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 110 for as_dir in $PATH 111 do 112 IFS=$as_save_IFS 113 test -z "$as_dir" && as_dir=. 114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 115 done 116 117 ;; 118 esac 119 # We did not find ourselves, most probably we were run as `sh COMMAND' 120 # in which case we are not to be found in the path. 121 if test "x$as_myself" = x; then 122 as_myself=$0 123 fi 124 if test ! -f "$as_myself"; then 125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2 126 { (exit 1); exit 1; }; } 127 fi 128 case $CONFIG_SHELL in 129 '') 130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 132 do 133 IFS=$as_save_IFS 134 test -z "$as_dir" && as_dir=. 135 for as_base in sh bash ksh sh5; do 136 case $as_dir in 137 /*) 138 if ("$as_dir/$as_base" -c ' 139 as_lineno_1=$LINENO 140 as_lineno_2=$LINENO 141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 142 test "x$as_lineno_1" != "x$as_lineno_2" && 143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then 144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } 145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } 146 CONFIG_SHELL=$as_dir/$as_base 147 export CONFIG_SHELL 148 exec "$CONFIG_SHELL" "$0" ${1+"$@"} 149 fi;; 150 esac 151 done 152 done 153 ;; 154 esac 155 156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 157 # uniformly replaced by the line number. The first 'sed' inserts a 158 # line-number line before each line; the second 'sed' does the real 159 # work. The second script uses 'N' to pair each line-number line 160 # with the numbered line, and appends trailing '-' during 161 # substitution so that $LINENO is not a special case at line end. 162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) 164 sed '=' <$as_myself | 467 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. :-) 473 sed -n ' 474 p 475 /[$]LINENO/= 476 ' <$as_myself | 165 477 sed ' 478 s/[$]LINENO.*/&-/ 479 t lineno 480 b 481 :lineno 166 482 N 167 s,$,-, 168 : loop 169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, 483 :loop 484 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 170 485 t loop 171 s,-$,, 172 s,^['$as_cr_digits']*\n,, 486 s/-\n.*// 173 487 ' >$as_me.lineno && 174 chmod +x $as_me.lineno || 175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 176 { (exit 1); exit 1; }; } 177 488 chmod +x "$as_me.lineno" || 489 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 490 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 178 495 # Don't try to exec as it changes $[0], causing all sort of problems 179 496 # (the dirname of $[0] is not the place where we might find the 180 # original and so on. Autoconf is especially sensi ble to this).181 . ./$as_me.lineno497 # original and so on. Autoconf is especially sensitive to this). 498 . "./$as_me.lineno" 182 499 # Exit status is that of the last command. 183 500 exit 184 501 } 185 502 186 187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in 188 *c*,-n*) ECHO_N= ECHO_C=' 189 ' ECHO_T=' ' ;; 190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; 191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;; 503 ECHO_C= ECHO_N= ECHO_T= 504 case `echo -n x` in #((((( 505 -n*) 506 case `echo 'xy\c'` in 507 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 508 xy) ECHO_C='\c';; 509 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 510 ECHO_T=' ';; 511 esac;; 512 *) 513 ECHO_N='-n';; 192 514 esac 193 515 194 if expr a : '\(a\)' >/dev/null 2>&1; then195 as_expr=expr196 else197 as_expr=false198 fi199 200 516 rm -f conf$$ conf$$.exe conf$$.file 201 echo >conf$$.file 202 if ln -s conf$$.file conf$$ 2>/dev/null; then 203 # We could just check for DJGPP; but this test a) works b) is more generic 204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). 205 if test -f conf$$.exe; then 206 # Don't use ln at all; we don't have any links 207 as_ln_s='cp -p' 517 if test -d conf$$.dir; then 518 rm -f conf$$.dir/conf$$.file 519 else 520 rm -f conf$$.dir 521 mkdir conf$$.dir 2>/dev/null 522 fi 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. 529 # In both cases, we have to default to `cp -pR'. 530 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 531 as_ln_s='cp -pR' 532 elif ln conf$$.file conf$$ 2>/dev/null; then 533 as_ln_s=ln 208 534 else 209 as_ln_s=' ln -s'535 as_ln_s='cp -pR' 210 536 fi 211 elif ln conf$$.file conf$$ 2>/dev/null; then 212 as_ln_s=ln 213 else 214 as_ln_s='cp -p' 215 fi 216 rm -f conf$$ conf$$.exe conf$$.file 537 else 538 as_ln_s='cp -pR' 539 fi 540 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 541 rmdir conf$$.dir 2>/dev/null 217 542 218 543 if mkdir -p . 2>/dev/null; then 219 as_mkdir_p= :544 as_mkdir_p='mkdir -p "$as_dir"' 220 545 else 221 546 test -d ./-p && rmdir ./-p … … 223 548 fi 224 549 225 as_executable_p="test -f" 550 as_test_x='test -x' 551 as_executable_p=as_fn_executable_p 226 552 227 553 # Sed expression to map a string onto a valid CPP name. … … 232 558 233 559 234 # IFS 235 # We need space, tab and new line, in precisely that order. 236 as_nl=' 237 ' 238 IFS=" $as_nl" 239 240 # CDPATH. 241 $as_unset CDPATH 242 560 test -n "$DJDIR" || exec 7<&0 </dev/null 561 exec 6>&1 243 562 244 563 # Name of the host. 245 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,564 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 246 565 # so uname gets run too. 247 566 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 248 249 exec 6>&1250 567 251 568 # … … 253 570 # 254 571 ac_default_prefix=/usr/local 572 ac_clean_files= 255 573 ac_config_libobj_dir=. 574 LIBOBJS= 256 575 cross_compiling=no 257 576 subdirs= 258 577 MFLAGS= 259 578 MAKEFLAGS= 260 SHELL=${CONFIG_SHELL-/bin/sh}261 262 # Maximum number of lines to put in a shell here document.263 # This variable seems obsolete. It should probably be removed, and264 # only ac_max_sed_lines should be used.265 : ${ac_max_here_lines=38}266 579 267 580 # Identity of this package. 268 PACKAGE_NAME= 269 PACKAGE_TARNAME= 270 PACKAGE_VERSION= 271 PACKAGE_STRING= 272 PACKAGE_BUGREPORT= 273 274 ac_unique_file="srtp" 581 PACKAGE_NAME='libsrtp' 582 PACKAGE_TARNAME='libsrtp' 583 PACKAGE_VERSION='1.5.4' 584 PACKAGE_STRING='libsrtp 1.5.4' 585 PACKAGE_BUGREPORT='https://github.com/cisco/libsrtp/issues' 586 PACKAGE_URL='' 587 275 588 # Factoring default headers for most tests. 276 589 ac_includes_default="\ 277 590 #include <stdio.h> 278 #if HAVE_SYS_TYPES_H591 #ifdef HAVE_SYS_TYPES_H 279 592 # include <sys/types.h> 280 593 #endif 281 #if HAVE_SYS_STAT_H594 #ifdef HAVE_SYS_STAT_H 282 595 # include <sys/stat.h> 283 596 #endif 284 #if STDC_HEADERS597 #ifdef STDC_HEADERS 285 598 # include <stdlib.h> 286 599 # include <stddef.h> 287 600 #else 288 # if HAVE_STDLIB_H601 # ifdef HAVE_STDLIB_H 289 602 # include <stdlib.h> 290 603 # endif 291 604 #endif 292 #if HAVE_STRING_H293 # if ! STDC_HEADERS &&HAVE_MEMORY_H605 #ifdef HAVE_STRING_H 606 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H 294 607 # include <memory.h> 295 608 # endif 296 609 # include <string.h> 297 610 #endif 298 #if HAVE_STRINGS_H611 #ifdef HAVE_STRINGS_H 299 612 # include <strings.h> 300 613 #endif 301 #if HAVE_INTTYPES_H614 #ifdef HAVE_INTTYPES_H 302 615 # include <inttypes.h> 303 #else304 # if HAVE_STDINT_H305 # include <stdint.h>306 # endif307 616 #endif 308 #if HAVE_UNISTD_H 617 #ifdef HAVE_STDINT_H 618 # include <stdint.h> 619 #endif 620 #ifdef HAVE_UNISTD_H 309 621 # include <unistd.h> 310 622 #endif" 311 623 312 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS RANLIB ac_ct_RANLIB CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA RNG_OBJS CPP EGREP build build_cpu build_vendor build_os host host_cpu host_vendor host_os EXE GDOI_OBJS LIBOBJS LTLIBOBJS' 624 ac_subst_vars='LTLIBOBJS 625 LIBOBJS 626 HAVE_PKG_CONFIG 627 PKG_CONFIG 628 GDOI_OBJS 629 HAVE_PCAP 630 HMAC_OBJS 631 RNG_EXTRA_OBJS 632 RNG_OBJS 633 AES_ICM_OBJS 634 USE_OPENSSL 635 EXE 636 host_os 637 host_vendor 638 host_cpu 639 host 640 build_os 641 build_vendor 642 build_cpu 643 build 644 EGREP 645 GREP 646 CPP 647 INSTALL_DATA 648 INSTALL_SCRIPT 649 INSTALL_PROGRAM 650 RANLIB 651 OBJEXT 652 EXEEXT 653 ac_ct_CC 654 CPPFLAGS 655 LDFLAGS 656 CFLAGS 657 CC 658 ac_ct_AR 659 AR 660 target_alias 661 host_alias 662 build_alias 663 LIBS 664 ECHO_T 665 ECHO_N 666 ECHO_C 667 DEFS 668 mandir 669 localedir 670 libdir 671 psdir 672 pdfdir 673 dvidir 674 htmldir 675 infodir 676 docdir 677 oldincludedir 678 includedir 679 localstatedir 680 sharedstatedir 681 sysconfdir 682 datadir 683 datarootdir 684 libexecdir 685 sbindir 686 bindir 687 program_transform_name 688 prefix 689 exec_prefix 690 PACKAGE_URL 691 PACKAGE_BUGREPORT 692 PACKAGE_STRING 693 PACKAGE_VERSION 694 PACKAGE_TARNAME 695 PACKAGE_NAME 696 PATH_SEPARATOR 697 SHELL' 313 698 ac_subst_files='' 699 ac_user_opts=' 700 enable_option_checking 701 enable_kernel_linux 702 enable_debug 703 enable_generic_aesicm 704 enable_openssl 705 enable_syslog 706 enable_stdout 707 enable_console 708 enable_gdoi 709 ' 710 ac_precious_vars='build_alias 711 host_alias 712 target_alias 713 CC 714 CFLAGS 715 LDFLAGS 716 LIBS 717 CPPFLAGS 718 CPP' 719 314 720 315 721 # Initialize some variables set by options. 316 722 ac_init_help= 317 723 ac_init_version=false 724 ac_unrecognized_opts= 725 ac_unrecognized_sep= 318 726 # The variables have the same names as the options, with 319 727 # dashes changed to underlines. … … 338 746 # by default will actually change. 339 747 # Use braces instead of parens because sh, perl, etc. also accept them. 748 # (The list follows the same order as the GNU Coding Standards.) 340 749 bindir='${exec_prefix}/bin' 341 750 sbindir='${exec_prefix}/sbin' 342 751 libexecdir='${exec_prefix}/libexec' 343 datadir='${prefix}/share' 752 datarootdir='${prefix}/share' 753 datadir='${datarootdir}' 344 754 sysconfdir='${prefix}/etc' 345 755 sharedstatedir='${prefix}/com' 346 756 localstatedir='${prefix}/var' 347 libdir='${exec_prefix}/lib'348 757 includedir='${prefix}/include' 349 758 oldincludedir='/usr/include' 350 infodir='${prefix}/info' 351 mandir='${prefix}/man' 759 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 760 infodir='${datarootdir}/info' 761 htmldir='${docdir}' 762 dvidir='${docdir}' 763 pdfdir='${docdir}' 764 psdir='${docdir}' 765 libdir='${exec_prefix}/lib' 766 localedir='${datarootdir}/locale' 767 mandir='${datarootdir}/man' 352 768 353 769 ac_prev= 770 ac_dashdash= 354 771 for ac_option 355 772 do 356 773 # If the previous option needs an argument, assign it. 357 774 if test -n "$ac_prev"; then 358 eval "$ac_prev=\$ac_option"775 eval $ac_prev=\$ac_option 359 776 ac_prev= 360 777 continue 361 778 fi 362 779 363 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` 780 case $ac_option in 781 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 782 *=) ac_optarg= ;; 783 *) ac_optarg=yes ;; 784 esac 364 785 365 786 # Accept the important Cygnus configure options, so we can diagnose typos. 366 787 367 case $ac_option in 788 case $ac_dashdash$ac_option in 789 --) 790 ac_dashdash=yes ;; 368 791 369 792 -bindir | --bindir | --bindi | --bind | --bin | --bi) … … 387 810 cache_file=config.cache ;; 388 811 389 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)812 -datadir | --datadir | --datadi | --datad) 390 813 ac_prev=datadir ;; 391 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ 392 | --da=*) 814 -datadir=* | --datadir=* | --datadi=* | --datad=*) 393 815 datadir=$ac_optarg ;; 394 816 817 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 818 | --dataroo | --dataro | --datar) 819 ac_prev=datarootdir ;; 820 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 821 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 822 datarootdir=$ac_optarg ;; 823 395 824 -disable-* | --disable-*) 396 ac_ feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`825 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 397 826 # Reject names that are not valid shell variable names. 398 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && 399 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 400 { (exit 1); exit 1; }; } 401 ac_feature=`echo $ac_feature | sed 's/-/_/g'` 402 eval "enable_$ac_feature=no" ;; 827 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 828 as_fn_error $? "invalid feature name: $ac_useropt" 829 ac_useropt_orig=$ac_useropt 830 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 831 case $ac_user_opts in 832 *" 833 "enable_$ac_useropt" 834 "*) ;; 835 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 836 ac_unrecognized_sep=', ';; 837 esac 838 eval enable_$ac_useropt=no ;; 839 840 -docdir | --docdir | --docdi | --doc | --do) 841 ac_prev=docdir ;; 842 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 843 docdir=$ac_optarg ;; 844 845 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 846 ac_prev=dvidir ;; 847 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 848 dvidir=$ac_optarg ;; 403 849 404 850 -enable-* | --enable-*) 405 ac_ feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`851 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 406 852 # Reject names that are not valid shell variable names. 407 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && 408 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 409 { (exit 1); exit 1; }; } 410 ac_feature=`echo $ac_feature | sed 's/-/_/g'` 411 case $ac_option in 412 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; 413 *) ac_optarg=yes ;; 853 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 854 as_fn_error $? "invalid feature name: $ac_useropt" 855 ac_useropt_orig=$ac_useropt 856 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 857 case $ac_user_opts in 858 *" 859 "enable_$ac_useropt" 860 "*) ;; 861 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 862 ac_unrecognized_sep=', ';; 414 863 esac 415 eval "enable_$ac_feature='$ac_optarg'";;864 eval enable_$ac_useropt=\$ac_optarg ;; 416 865 417 866 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ … … 440 889 host_alias=$ac_optarg ;; 441 890 891 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 892 ac_prev=htmldir ;; 893 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 894 | --ht=*) 895 htmldir=$ac_optarg ;; 896 442 897 -includedir | --includedir | --includedi | --included | --include \ 443 898 | --includ | --inclu | --incl | --inc) … … 464 919 libexecdir=$ac_optarg ;; 465 920 921 -localedir | --localedir | --localedi | --localed | --locale) 922 ac_prev=localedir ;; 923 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 924 localedir=$ac_optarg ;; 925 466 926 -localstatedir | --localstatedir | --localstatedi | --localstated \ 467 | --localstate | --localstat | --localsta | --localst \ 468 | --locals | --local | --loca | --loc | --lo) 927 | --localstate | --localstat | --localsta | --localst | --locals) 469 928 ac_prev=localstatedir ;; 470 929 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 471 | --localstate=* | --localstat=* | --localsta=* | --localst=* \ 472 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) 930 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 473 931 localstatedir=$ac_optarg ;; 474 932 … … 535 993 program_transform_name=$ac_optarg ;; 536 994 995 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 996 ac_prev=pdfdir ;; 997 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 998 pdfdir=$ac_optarg ;; 999 1000 -psdir | --psdir | --psdi | --psd | --ps) 1001 ac_prev=psdir ;; 1002 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1003 psdir=$ac_optarg ;; 1004 537 1005 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 538 1006 | -silent | --silent | --silen | --sile | --sil) … … 585 1053 586 1054 -with-* | --with-*) 587 ac_ package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`1055 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 588 1056 # Reject names that are not valid shell variable names. 589 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && 590 { echo "$as_me: error: invalid package name: $ac_package" >&2 591 { (exit 1); exit 1; }; } 592 ac_package=`echo $ac_package| sed 's/-/_/g'` 593 case $ac_option in 594 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; 595 *) ac_optarg=yes ;; 1057 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1058 as_fn_error $? "invalid package name: $ac_useropt" 1059 ac_useropt_orig=$ac_useropt 1060 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1061 case $ac_user_opts in 1062 *" 1063 "with_$ac_useropt" 1064 "*) ;; 1065 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1066 ac_unrecognized_sep=', ';; 596 1067 esac 597 eval "with_$ac_package='$ac_optarg'";;1068 eval with_$ac_useropt=\$ac_optarg ;; 598 1069 599 1070 -without-* | --without-*) 600 ac_ package=`expr "x$ac_option" : 'x-*without-\(.*\)'`1071 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 601 1072 # Reject names that are not valid shell variable names. 602 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && 603 { echo "$as_me: error: invalid package name: $ac_package" >&2 604 { (exit 1); exit 1; }; } 605 ac_package=`echo $ac_package | sed 's/-/_/g'` 606 eval "with_$ac_package=no" ;; 1073 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1074 as_fn_error $? "invalid package name: $ac_useropt" 1075 ac_useropt_orig=$ac_useropt 1076 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1077 case $ac_user_opts in 1078 *" 1079 "with_$ac_useropt" 1080 "*) ;; 1081 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1082 ac_unrecognized_sep=', ';; 1083 esac 1084 eval with_$ac_useropt=no ;; 607 1085 608 1086 --x) … … 624 1102 x_libraries=$ac_optarg ;; 625 1103 626 -*) { echo "$as_me: error: unrecognized option: $ac_option 627 Try \`$0 --help' for more information." >&2 628 { (exit 1); exit 1; }; } 1104 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1105 Try \`$0 --help' for more information" 629 1106 ;; 630 1107 … … 632 1109 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 633 1110 # Reject names that are not valid shell variable names. 634 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&635 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2636 { (exit 1); exit 1; }; }637 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`638 eval "$ac_envvar='$ac_optarg'"1111 case $ac_envvar in #( 1112 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1113 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1114 esac 1115 eval $ac_envvar=\$ac_optarg 639 1116 export $ac_envvar ;; 640 1117 641 1118 *) 642 1119 # FIXME: should be removed in autoconf 3.0. 643 echo "$as_me: WARNING: you should use --build, --host, --target" >&21120 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 644 1121 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 645 echo "$as_me: WARNING: invalid host type: $ac_option" >&2646 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}1122 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1123 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 647 1124 ;; 648 1125 … … 652 1129 if test -n "$ac_prev"; then 653 1130 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 654 { echo "$as_me: error: missing argument to $ac_option" >&2 655 { (exit 1); exit 1; }; } 656 fi 657 658 # Be sure to have absolute paths. 659 for ac_var in exec_prefix prefix 1131 as_fn_error $? "missing argument to $ac_option" 1132 fi 1133 1134 if test -n "$ac_unrecognized_opts"; then 1135 case $enable_option_checking in 1136 no) ;; 1137 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1138 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1139 esac 1140 fi 1141 1142 # Check all directory arguments for consistency. 1143 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1144 datadir sysconfdir sharedstatedir localstatedir includedir \ 1145 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1146 libdir localedir mandir 660 1147 do 661 eval ac_val=$`echo $ac_var` 1148 eval ac_val=\$$ac_var 1149 # Remove trailing slashes. 662 1150 case $ac_val in 663 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;664 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2665 { (exit 1); exit 1; }; };;1151 */ ) 1152 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1153 eval $ac_var=\$ac_val;; 666 1154 esac 667 done 668 669 # Be sure to have absolute paths. 670 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ 671 localstatedir libdir includedir oldincludedir infodir mandir 672 do 673 eval ac_val=$`echo $ac_var` 1155 # Be sure to have absolute directory names. 674 1156 case $ac_val in 675 [\\/$]* | ?:[\\/]* ) ;; 676 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 677 { (exit 1); exit 1; }; };; 1157 [\\/$]* | ?:[\\/]* ) continue;; 1158 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 678 1159 esac 1160 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 679 1161 done 680 1162 … … 690 1172 if test "x$build_alias" = x; then 691 1173 cross_compiling=maybe 692 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.693 If a cross compiler is detected then cross compile mode will be used." >&2694 1174 elif test "x$build_alias" != "x$host_alias"; then 695 1175 cross_compiling=yes … … 703 1183 704 1184 1185 ac_pwd=`pwd` && test -n "$ac_pwd" && 1186 ac_ls_di=`ls -di .` && 1187 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1188 as_fn_error $? "working directory cannot be determined" 1189 test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1190 as_fn_error $? "pwd does not report name of working directory" 1191 1192 705 1193 # Find the source files, if location was not specified. 706 1194 if test -z "$srcdir"; then 707 1195 ac_srcdir_defaulted=yes 708 # Try the directory containing this script, then its parent. 709 ac_confdir=`(dirname "$0") 2>/dev/null || 710 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 711 X"$0" : 'X\(//\)[^/]' \| \ 712 X"$0" : 'X\(//\)$' \| \ 713 X"$0" : 'X\(/\)' \| \ 714 . : '\(.\)' 2>/dev/null || 715 echo X"$0" | 716 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 717 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 718 /^X\(\/\/\)$/{ s//\1/; q; } 719 /^X\(\/\).*/{ s//\1/; q; } 720 s/.*/./; q'` 1196 # Try the directory containing this script, then the parent directory. 1197 ac_confdir=`$as_dirname -- "$as_myself" || 1198 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1199 X"$as_myself" : 'X\(//\)[^/]' \| \ 1200 X"$as_myself" : 'X\(//\)$' \| \ 1201 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1202 $as_echo X"$as_myself" | 1203 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1204 s//\1/ 1205 q 1206 } 1207 /^X\(\/\/\)[^/].*/{ 1208 s//\1/ 1209 q 1210 } 1211 /^X\(\/\/\)$/{ 1212 s//\1/ 1213 q 1214 } 1215 /^X\(\/\).*/{ 1216 s//\1/ 1217 q 1218 } 1219 s/.*/./; q'` 721 1220 srcdir=$ac_confdir 722 if test ! -r $srcdir/$ac_unique_file; then1221 if test ! -r "$srcdir/$ac_unique_file"; then 723 1222 srcdir=.. 724 1223 fi … … 726 1225 ac_srcdir_defaulted=no 727 1226 fi 728 if test ! -r $srcdir/$ac_unique_file; then 729 if test "$ac_srcdir_defaulted" = yes; then 730 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 731 { (exit 1); exit 1; }; } 732 else 733 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 734 { (exit 1); exit 1; }; } 735 fi 736 fi 737 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null || 738 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2 739 { (exit 1); exit 1; }; } 740 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` 741 ac_env_build_alias_set=${build_alias+set} 742 ac_env_build_alias_value=$build_alias 743 ac_cv_env_build_alias_set=${build_alias+set} 744 ac_cv_env_build_alias_value=$build_alias 745 ac_env_host_alias_set=${host_alias+set} 746 ac_env_host_alias_value=$host_alias 747 ac_cv_env_host_alias_set=${host_alias+set} 748 ac_cv_env_host_alias_value=$host_alias 749 ac_env_target_alias_set=${target_alias+set} 750 ac_env_target_alias_value=$target_alias 751 ac_cv_env_target_alias_set=${target_alias+set} 752 ac_cv_env_target_alias_value=$target_alias 753 ac_env_CC_set=${CC+set} 754 ac_env_CC_value=$CC 755 ac_cv_env_CC_set=${CC+set} 756 ac_cv_env_CC_value=$CC 757 ac_env_CFLAGS_set=${CFLAGS+set} 758 ac_env_CFLAGS_value=$CFLAGS 759 ac_cv_env_CFLAGS_set=${CFLAGS+set} 760 ac_cv_env_CFLAGS_value=$CFLAGS 761 ac_env_LDFLAGS_set=${LDFLAGS+set} 762 ac_env_LDFLAGS_value=$LDFLAGS 763 ac_cv_env_LDFLAGS_set=${LDFLAGS+set} 764 ac_cv_env_LDFLAGS_value=$LDFLAGS 765 ac_env_CPPFLAGS_set=${CPPFLAGS+set} 766 ac_env_CPPFLAGS_value=$CPPFLAGS 767 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} 768 ac_cv_env_CPPFLAGS_value=$CPPFLAGS 769 ac_env_CPP_set=${CPP+set} 770 ac_env_CPP_value=$CPP 771 ac_cv_env_CPP_set=${CPP+set} 772 ac_cv_env_CPP_value=$CPP 1227 if test ! -r "$srcdir/$ac_unique_file"; then 1228 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1229 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1230 fi 1231 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1232 ac_abs_confdir=`( 1233 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1234 pwd)` 1235 # When building in place, set srcdir=. 1236 if test "$ac_abs_confdir" = "$ac_pwd"; then 1237 srcdir=. 1238 fi 1239 # Remove unnecessary trailing slashes from srcdir. 1240 # Double slashes in file names in object file debugging info 1241 # mess up M-x gdb in Emacs. 1242 case $srcdir in 1243 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1244 esac 1245 for ac_var in $ac_precious_vars; do 1246 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1247 eval ac_env_${ac_var}_value=\$${ac_var} 1248 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1249 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1250 done 773 1251 774 1252 # … … 779 1257 # This message is too long to be a string in the A/UX 3.1 sh. 780 1258 cat <<_ACEOF 781 \`configure' configures this packageto adapt to many kinds of systems.1259 \`configure' configures libsrtp 1.5.4 to adapt to many kinds of systems. 782 1260 783 1261 Usage: $0 [OPTION]... [VAR=VALUE]... … … 793 1271 --help=recursive display the short help of all the included packages 794 1272 -V, --version display version information and exit 795 -q, --quiet, --silent do not print \`checking ...' messages1273 -q, --quiet, --silent do not print \`checking ...' messages 796 1274 --cache-file=FILE cache test results in FILE [disabled] 797 1275 -C, --config-cache alias for \`--cache-file=config.cache' … … 799 1277 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 800 1278 801 _ACEOF802 803 cat <<_ACEOF804 1279 Installation directories: 805 1280 --prefix=PREFIX install architecture-independent files in PREFIX 806 1281 [$ac_default_prefix] 807 1282 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 808 1283 [PREFIX] 809 1284 810 1285 By default, \`make install' will install all the files in … … 816 1291 817 1292 Fine tuning of the installation directories: 818 --bindir=DIR user executables [EPREFIX/bin] 819 --sbindir=DIR system admin executables [EPREFIX/sbin] 820 --libexecdir=DIR program executables [EPREFIX/libexec] 821 --datadir=DIR read-only architecture-independent data [PREFIX/share] 822 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 823 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 824 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 825 --libdir=DIR object code libraries [EPREFIX/lib] 826 --includedir=DIR C header files [PREFIX/include] 827 --oldincludedir=DIR C header files for non-gcc [/usr/include] 828 --infodir=DIR info documentation [PREFIX/info] 829 --mandir=DIR man documentation [PREFIX/man] 1293 --bindir=DIR user executables [EPREFIX/bin] 1294 --sbindir=DIR system admin executables [EPREFIX/sbin] 1295 --libexecdir=DIR program executables [EPREFIX/libexec] 1296 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1297 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1298 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1299 --libdir=DIR object code libraries [EPREFIX/lib] 1300 --includedir=DIR C header files [PREFIX/include] 1301 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1302 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1303 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1304 --infodir=DIR info documentation [DATAROOTDIR/info] 1305 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1306 --mandir=DIR man documentation [DATAROOTDIR/man] 1307 --docdir=DIR documentation root [DATAROOTDIR/doc/libsrtp] 1308 --htmldir=DIR html documentation [DOCDIR] 1309 --dvidir=DIR dvi documentation [DOCDIR] 1310 --pdfdir=DIR pdf documentation [DOCDIR] 1311 --psdir=DIR ps documentation [DOCDIR] 830 1312 _ACEOF 831 1313 … … 839 1321 840 1322 if test -n "$ac_init_help"; then 841 1323 case $ac_init_help in 1324 short | recursive ) echo "Configuration of libsrtp 1.5.4:";; 1325 esac 842 1326 cat <<\_ACEOF 843 1327 844 1328 Optional Features: 1329 --disable-option-checking ignore unrecognized --enable/--with options 845 1330 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 846 1331 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] … … 848 1333 --disable-debug do not compile in dynamic debugging system 849 1334 --enable-generic-aesicm compile in changes for ISMAcryp 1335 --enable-openssl compile in OpenSSL crypto engine 850 1336 --enable-syslog use syslog for error reporting 851 1337 --disable-stdout don't use stdout for error reporting … … 858 1344 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 859 1345 nonstandard directory <lib dir> 860 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have 861 headers in a nonstandard directory <include dir> 1346 LIBS libraries to pass to the linker, e.g. -l<library> 1347 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1348 you have headers in a nonstandard directory <include dir> 862 1349 CPP C preprocessor 863 1350 … … 865 1352 it to find libraries and programs with nonstandard names/locations. 866 1353 867 _ACEOF 1354 Report bugs to <https://github.com/cisco/libsrtp/issues>. 1355 _ACEOF 1356 ac_status=$? 868 1357 fi 869 1358 870 1359 if test "$ac_init_help" = "recursive"; then 871 1360 # If there are subdirs, report their specific --help. 872 ac_popdir=`pwd`873 1361 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 874 test -d $ac_dir || continue 1362 test -d "$ac_dir" || 1363 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1364 continue 875 1365 ac_builddir=. 876 1366 877 if test "$ac_dir" != .; then 878 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 879 # A "../" for each directory in $ac_dir_suffix. 880 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 881 else 882 ac_dir_suffix= ac_top_builddir= 883 fi 1367 case "$ac_dir" in 1368 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1369 *) 1370 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1371 # A ".." for each directory in $ac_dir_suffix. 1372 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1373 case $ac_top_builddir_sub in 1374 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1375 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1376 esac ;; 1377 esac 1378 ac_abs_top_builddir=$ac_pwd 1379 ac_abs_builddir=$ac_pwd$ac_dir_suffix 1380 # for backward compatibility: 1381 ac_top_builddir=$ac_top_build_prefix 884 1382 885 1383 case $srcdir in 886 .) # No --srcdir option.We are building in place.1384 .) # We are building in place. 887 1385 ac_srcdir=. 888 if test -z "$ac_top_builddir"; then 889 ac_top_srcdir=. 1386 ac_top_srcdir=$ac_top_builddir_sub 1387 ac_abs_top_srcdir=$ac_pwd ;; 1388 [\\/]* | ?:[\\/]* ) # Absolute name. 1389 ac_srcdir=$srcdir$ac_dir_suffix; 1390 ac_top_srcdir=$srcdir 1391 ac_abs_top_srcdir=$srcdir ;; 1392 *) # Relative name. 1393 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1394 ac_top_srcdir=$ac_top_build_prefix$srcdir 1395 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1396 esac 1397 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1398 1399 cd "$ac_dir" || { ac_status=$?; continue; } 1400 # Check for guested configure. 1401 if test -f "$ac_srcdir/configure.gnu"; then 1402 echo && 1403 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1404 elif test -f "$ac_srcdir/configure"; then 1405 echo && 1406 $SHELL "$ac_srcdir/configure" --help=recursive 890 1407 else 891 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 892 fi ;; 893 [\\/]* | ?:[\\/]* ) # Absolute path. 894 ac_srcdir=$srcdir$ac_dir_suffix; 895 ac_top_srcdir=$srcdir ;; 896 *) # Relative path. 897 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 898 ac_top_srcdir=$ac_top_builddir$srcdir ;; 899 esac 900 901 # Do not use `cd foo && pwd` to compute absolute paths, because 902 # the directories may not exist. 903 case `pwd` in 904 .) ac_abs_builddir="$ac_dir";; 905 *) 906 case "$ac_dir" in 907 .) ac_abs_builddir=`pwd`;; 908 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; 909 *) ac_abs_builddir=`pwd`/"$ac_dir";; 910 esac;; 911 esac 912 case $ac_abs_builddir in 913 .) ac_abs_top_builddir=${ac_top_builddir}.;; 914 *) 915 case ${ac_top_builddir}. in 916 .) ac_abs_top_builddir=$ac_abs_builddir;; 917 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; 918 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; 919 esac;; 920 esac 921 case $ac_abs_builddir in 922 .) ac_abs_srcdir=$ac_srcdir;; 923 *) 924 case $ac_srcdir in 925 .) ac_abs_srcdir=$ac_abs_builddir;; 926 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; 927 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; 928 esac;; 929 esac 930 case $ac_abs_builddir in 931 .) ac_abs_top_srcdir=$ac_top_srcdir;; 932 *) 933 case $ac_top_srcdir in 934 .) ac_abs_top_srcdir=$ac_abs_builddir;; 935 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; 936 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; 937 esac;; 938 esac 939 940 cd $ac_dir 941 # Check for guested configure; otherwise get Cygnus style configure. 942 if test -f $ac_srcdir/configure.gnu; then 943 echo 944 $SHELL $ac_srcdir/configure.gnu --help=recursive 945 elif test -f $ac_srcdir/configure; then 946 echo 947 $SHELL $ac_srcdir/configure --help=recursive 948 elif test -f $ac_srcdir/configure.ac || 949 test -f $ac_srcdir/configure.in; then 950 echo 951 $ac_configure --help 952 else 953 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 954 fi 955 cd $ac_popdir 1408 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1409 fi || ac_status=$? 1410 cd "$ac_pwd" || { ac_status=$?; break; } 956 1411 done 957 1412 fi 958 1413 959 test -n "$ac_init_help" && exit 01414 test -n "$ac_init_help" && exit $ac_status 960 1415 if $ac_init_version; then 961 1416 cat <<\_ACEOF 962 963 Copyright (C) 2003 Free Software Foundation, Inc. 1417 libsrtp configure 1.5.4 1418 generated by GNU Autoconf 2.69 1419 1420 Copyright (C) 2012 Free Software Foundation, Inc. 964 1421 This configure script is free software; the Free Software Foundation 965 1422 gives unlimited permission to copy, distribute and modify it. 966 1423 _ACEOF 967 exit 0 968 fi 969 exec 5>config.log 970 cat >&5 <<_ACEOF 1424 exit 1425 fi 1426 1427 ## ------------------------ ## 1428 ## Autoconf initialization. ## 1429 ## ------------------------ ## 1430 1431 # ac_fn_c_try_compile LINENO 1432 # -------------------------- 1433 # Try to compile conftest.$ac_ext, and return whether this succeeded. 1434 ac_fn_c_try_compile () 1435 { 1436 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1437 rm -f conftest.$ac_objext 1438 if { { ac_try="$ac_compile" 1439 case "(($ac_try" in 1440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1441 *) ac_try_echo=$ac_try;; 1442 esac 1443 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1444 $as_echo "$ac_try_echo"; } >&5 1445 (eval "$ac_compile") 2>conftest.err 1446 ac_status=$? 1447 if test -s conftest.err; then 1448 grep -v '^ *+' conftest.err >conftest.er1 1449 cat conftest.er1 >&5 1450 mv -f conftest.er1 conftest.err 1451 fi 1452 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1453 test $ac_status = 0; } && { 1454 test -z "$ac_c_werror_flag" || 1455 test ! -s conftest.err 1456 } && test -s conftest.$ac_objext; then : 1457 ac_retval=0 1458 else 1459 $as_echo "$as_me: failed program was:" >&5 1460 sed 's/^/| /' conftest.$ac_ext >&5 1461 1462 ac_retval=1 1463 fi 1464 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1465 as_fn_set_status $ac_retval 1466 1467 } # ac_fn_c_try_compile 1468 1469 # ac_fn_c_try_run LINENO 1470 # ---------------------- 1471 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1472 # that executables *can* be run. 1473 ac_fn_c_try_run () 1474 { 1475 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1476 if { { ac_try="$ac_link" 1477 case "(($ac_try" in 1478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1479 *) ac_try_echo=$ac_try;; 1480 esac 1481 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1482 $as_echo "$ac_try_echo"; } >&5 1483 (eval "$ac_link") 2>&5 1484 ac_status=$? 1485 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1486 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1487 { { case "(($ac_try" in 1488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1489 *) ac_try_echo=$ac_try;; 1490 esac 1491 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1492 $as_echo "$ac_try_echo"; } >&5 1493 (eval "$ac_try") 2>&5 1494 ac_status=$? 1495 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1496 test $ac_status = 0; }; }; then : 1497 ac_retval=0 1498 else 1499 $as_echo "$as_me: program exited with status $ac_status" >&5 1500 $as_echo "$as_me: failed program was:" >&5 1501 sed 's/^/| /' conftest.$ac_ext >&5 1502 1503 ac_retval=$ac_status 1504 fi 1505 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1506 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1507 as_fn_set_status $ac_retval 1508 1509 } # ac_fn_c_try_run 1510 1511 # ac_fn_c_try_cpp LINENO 1512 # ---------------------- 1513 # Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1514 ac_fn_c_try_cpp () 1515 { 1516 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1517 if { { ac_try="$ac_cpp conftest.$ac_ext" 1518 case "(($ac_try" in 1519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1520 *) ac_try_echo=$ac_try;; 1521 esac 1522 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1523 $as_echo "$ac_try_echo"; } >&5 1524 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1525 ac_status=$? 1526 if test -s conftest.err; then 1527 grep -v '^ *+' conftest.err >conftest.er1 1528 cat conftest.er1 >&5 1529 mv -f conftest.er1 conftest.err 1530 fi 1531 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1532 test $ac_status = 0; } > conftest.i && { 1533 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1534 test ! -s conftest.err 1535 }; then : 1536 ac_retval=0 1537 else 1538 $as_echo "$as_me: failed program was:" >&5 1539 sed 's/^/| /' conftest.$ac_ext >&5 1540 1541 ac_retval=1 1542 fi 1543 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1544 as_fn_set_status $ac_retval 1545 1546 } # ac_fn_c_try_cpp 1547 1548 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1549 # ------------------------------------------------------- 1550 # Tests whether HEADER exists and can be compiled using the include files in 1551 # INCLUDES, setting the cache variable VAR accordingly. 1552 ac_fn_c_check_header_compile () 1553 { 1554 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1556 $as_echo_n "checking for $2... " >&6; } 1557 if eval \${$3+:} false; then : 1558 $as_echo_n "(cached) " >&6 1559 else 1560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1561 /* end confdefs.h. */ 1562 $4 1563 #include <$2> 1564 _ACEOF 1565 if ac_fn_c_try_compile "$LINENO"; then : 1566 eval "$3=yes" 1567 else 1568 eval "$3=no" 1569 fi 1570 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1571 fi 1572 eval ac_res=\$$3 1573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1574 $as_echo "$ac_res" >&6; } 1575 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1576 1577 } # ac_fn_c_check_header_compile 1578 1579 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1580 # ------------------------------------------------------- 1581 # Tests whether HEADER exists, giving a warning if it cannot be compiled using 1582 # the include files in INCLUDES and setting the cache variable VAR 1583 # accordingly. 1584 ac_fn_c_check_header_mongrel () 1585 { 1586 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1587 if eval \${$3+:} false; then : 1588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1589 $as_echo_n "checking for $2... " >&6; } 1590 if eval \${$3+:} false; then : 1591 $as_echo_n "(cached) " >&6 1592 fi 1593 eval ac_res=\$$3 1594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1595 $as_echo "$ac_res" >&6; } 1596 else 1597 # Is the header compilable? 1598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 1599 $as_echo_n "checking $2 usability... " >&6; } 1600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1601 /* end confdefs.h. */ 1602 $4 1603 #include <$2> 1604 _ACEOF 1605 if ac_fn_c_try_compile "$LINENO"; then : 1606 ac_header_compiler=yes 1607 else 1608 ac_header_compiler=no 1609 fi 1610 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 1612 $as_echo "$ac_header_compiler" >&6; } 1613 1614 # Is the header present? 1615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 1616 $as_echo_n "checking $2 presence... " >&6; } 1617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1618 /* end confdefs.h. */ 1619 #include <$2> 1620 _ACEOF 1621 if ac_fn_c_try_cpp "$LINENO"; then : 1622 ac_header_preproc=yes 1623 else 1624 ac_header_preproc=no 1625 fi 1626 rm -f conftest.err conftest.i conftest.$ac_ext 1627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 1628 $as_echo "$ac_header_preproc" >&6; } 1629 1630 # So? What about this header? 1631 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 1632 yes:no: ) 1633 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 1634 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 1635 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1636 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1637 ;; 1638 no:yes:* ) 1639 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 1640 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 1641 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 1642 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 1643 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 1644 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 1645 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 1646 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 1647 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1648 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1649 ( $as_echo "## ------------------------------------------------------ ## 1650 ## Report this to https://github.com/cisco/libsrtp/issues ## 1651 ## ------------------------------------------------------ ##" 1652 ) | sed "s/^/$as_me: WARNING: /" >&2 1653 ;; 1654 esac 1655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1656 $as_echo_n "checking for $2... " >&6; } 1657 if eval \${$3+:} false; then : 1658 $as_echo_n "(cached) " >&6 1659 else 1660 eval "$3=\$ac_header_compiler" 1661 fi 1662 eval ac_res=\$$3 1663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1664 $as_echo "$ac_res" >&6; } 1665 fi 1666 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1667 1668 } # ac_fn_c_check_header_mongrel 1669 1670 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES 1671 # ------------------------------------------- 1672 # Tests whether TYPE exists after having included INCLUDES, setting cache 1673 # variable VAR accordingly. 1674 ac_fn_c_check_type () 1675 { 1676 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1678 $as_echo_n "checking for $2... " >&6; } 1679 if eval \${$3+:} false; then : 1680 $as_echo_n "(cached) " >&6 1681 else 1682 eval "$3=no" 1683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1684 /* end confdefs.h. */ 1685 $4 1686 int 1687 main () 1688 { 1689 if (sizeof ($2)) 1690 return 0; 1691 ; 1692 return 0; 1693 } 1694 _ACEOF 1695 if ac_fn_c_try_compile "$LINENO"; then : 1696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1697 /* end confdefs.h. */ 1698 $4 1699 int 1700 main () 1701 { 1702 if (sizeof (($2))) 1703 return 0; 1704 ; 1705 return 0; 1706 } 1707 _ACEOF 1708 if ac_fn_c_try_compile "$LINENO"; then : 1709 1710 else 1711 eval "$3=yes" 1712 fi 1713 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1714 fi 1715 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1716 fi 1717 eval ac_res=\$$3 1718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1719 $as_echo "$ac_res" >&6; } 1720 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1721 1722 } # ac_fn_c_check_type 1723 1724 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES 1725 # -------------------------------------------- 1726 # Tries to find the compile-time value of EXPR in a program that includes 1727 # INCLUDES, setting VAR accordingly. Returns whether the value could be 1728 # computed 1729 ac_fn_c_compute_int () 1730 { 1731 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1732 if test "$cross_compiling" = yes; then 1733 # Depending upon the size, compute the lo and hi bounds. 1734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1735 /* end confdefs.h. */ 1736 $4 1737 int 1738 main () 1739 { 1740 static int test_array [1 - 2 * !(($2) >= 0)]; 1741 test_array [0] = 0; 1742 return test_array [0]; 1743 1744 ; 1745 return 0; 1746 } 1747 _ACEOF 1748 if ac_fn_c_try_compile "$LINENO"; then : 1749 ac_lo=0 ac_mid=0 1750 while :; do 1751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1752 /* end confdefs.h. */ 1753 $4 1754 int 1755 main () 1756 { 1757 static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 1758 test_array [0] = 0; 1759 return test_array [0]; 1760 1761 ; 1762 return 0; 1763 } 1764 _ACEOF 1765 if ac_fn_c_try_compile "$LINENO"; then : 1766 ac_hi=$ac_mid; break 1767 else 1768 as_fn_arith $ac_mid + 1 && ac_lo=$as_val 1769 if test $ac_lo -le $ac_mid; then 1770 ac_lo= ac_hi= 1771 break 1772 fi 1773 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val 1774 fi 1775 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1776 done 1777 else 1778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1779 /* end confdefs.h. */ 1780 $4 1781 int 1782 main () 1783 { 1784 static int test_array [1 - 2 * !(($2) < 0)]; 1785 test_array [0] = 0; 1786 return test_array [0]; 1787 1788 ; 1789 return 0; 1790 } 1791 _ACEOF 1792 if ac_fn_c_try_compile "$LINENO"; then : 1793 ac_hi=-1 ac_mid=-1 1794 while :; do 1795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1796 /* end confdefs.h. */ 1797 $4 1798 int 1799 main () 1800 { 1801 static int test_array [1 - 2 * !(($2) >= $ac_mid)]; 1802 test_array [0] = 0; 1803 return test_array [0]; 1804 1805 ; 1806 return 0; 1807 } 1808 _ACEOF 1809 if ac_fn_c_try_compile "$LINENO"; then : 1810 ac_lo=$ac_mid; break 1811 else 1812 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val 1813 if test $ac_mid -le $ac_hi; then 1814 ac_lo= ac_hi= 1815 break 1816 fi 1817 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val 1818 fi 1819 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1820 done 1821 else 1822 ac_lo= ac_hi= 1823 fi 1824 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1825 fi 1826 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1827 # Binary search between lo and hi bounds. 1828 while test "x$ac_lo" != "x$ac_hi"; do 1829 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val 1830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1831 /* end confdefs.h. */ 1832 $4 1833 int 1834 main () 1835 { 1836 static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 1837 test_array [0] = 0; 1838 return test_array [0]; 1839 1840 ; 1841 return 0; 1842 } 1843 _ACEOF 1844 if ac_fn_c_try_compile "$LINENO"; then : 1845 ac_hi=$ac_mid 1846 else 1847 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val 1848 fi 1849 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1850 done 1851 case $ac_lo in #(( 1852 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;; 1853 '') ac_retval=1 ;; 1854 esac 1855 else 1856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1857 /* end confdefs.h. */ 1858 $4 1859 static long int longval () { return $2; } 1860 static unsigned long int ulongval () { return $2; } 1861 #include <stdio.h> 1862 #include <stdlib.h> 1863 int 1864 main () 1865 { 1866 1867 FILE *f = fopen ("conftest.val", "w"); 1868 if (! f) 1869 return 1; 1870 if (($2) < 0) 1871 { 1872 long int i = longval (); 1873 if (i != ($2)) 1874 return 1; 1875 fprintf (f, "%ld", i); 1876 } 1877 else 1878 { 1879 unsigned long int i = ulongval (); 1880 if (i != ($2)) 1881 return 1; 1882 fprintf (f, "%lu", i); 1883 } 1884 /* Do not output a trailing newline, as this causes \r\n confusion 1885 on some platforms. */ 1886 return ferror (f) || fclose (f) != 0; 1887 1888 ; 1889 return 0; 1890 } 1891 _ACEOF 1892 if ac_fn_c_try_run "$LINENO"; then : 1893 echo >>conftest.val; read $3 <conftest.val; ac_retval=0 1894 else 1895 ac_retval=1 1896 fi 1897 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 1898 conftest.$ac_objext conftest.beam conftest.$ac_ext 1899 rm -f conftest.val 1900 1901 fi 1902 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1903 as_fn_set_status $ac_retval 1904 1905 } # ac_fn_c_compute_int 1906 1907 # ac_fn_c_try_link LINENO 1908 # ----------------------- 1909 # Try to link conftest.$ac_ext, and return whether this succeeded. 1910 ac_fn_c_try_link () 1911 { 1912 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1913 rm -f conftest.$ac_objext conftest$ac_exeext 1914 if { { ac_try="$ac_link" 1915 case "(($ac_try" in 1916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1917 *) ac_try_echo=$ac_try;; 1918 esac 1919 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1920 $as_echo "$ac_try_echo"; } >&5 1921 (eval "$ac_link") 2>conftest.err 1922 ac_status=$? 1923 if test -s conftest.err; then 1924 grep -v '^ *+' conftest.err >conftest.er1 1925 cat conftest.er1 >&5 1926 mv -f conftest.er1 conftest.err 1927 fi 1928 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1929 test $ac_status = 0; } && { 1930 test -z "$ac_c_werror_flag" || 1931 test ! -s conftest.err 1932 } && test -s conftest$ac_exeext && { 1933 test "$cross_compiling" = yes || 1934 test -x conftest$ac_exeext 1935 }; then : 1936 ac_retval=0 1937 else 1938 $as_echo "$as_me: failed program was:" >&5 1939 sed 's/^/| /' conftest.$ac_ext >&5 1940 1941 ac_retval=1 1942 fi 1943 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1944 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1945 # interfere with the next link command; also delete a directory that is 1946 # left behind by Apple's compiler. We do this before executing the actions. 1947 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1948 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1949 as_fn_set_status $ac_retval 1950 1951 } # ac_fn_c_try_link 1952 1953 # ac_fn_c_check_func LINENO FUNC VAR 1954 # ---------------------------------- 1955 # Tests whether FUNC exists, setting the cache variable VAR accordingly 1956 ac_fn_c_check_func () 1957 { 1958 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1960 $as_echo_n "checking for $2... " >&6; } 1961 if eval \${$3+:} false; then : 1962 $as_echo_n "(cached) " >&6 1963 else 1964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1965 /* end confdefs.h. */ 1966 /* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1967 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1968 #define $2 innocuous_$2 1969 1970 /* System header to define __stub macros and hopefully few prototypes, 1971 which can conflict with char $2 (); below. 1972 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1973 <limits.h> exists even on freestanding compilers. */ 1974 1975 #ifdef __STDC__ 1976 # include <limits.h> 1977 #else 1978 # include <assert.h> 1979 #endif 1980 1981 #undef $2 1982 1983 /* Override any GCC internal prototype to avoid an error. 1984 Use char because int might match the return type of a GCC 1985 builtin and then its argument prototype would still apply. */ 1986 #ifdef __cplusplus 1987 extern "C" 1988 #endif 1989 char $2 (); 1990 /* The GNU C library defines this for functions which it implements 1991 to always fail with ENOSYS. Some functions are actually named 1992 something starting with __ and the normal name is an alias. */ 1993 #if defined __stub_$2 || defined __stub___$2 1994 choke me 1995 #endif 1996 1997 int 1998 main () 1999 { 2000 return $2 (); 2001 ; 2002 return 0; 2003 } 2004 _ACEOF 2005 if ac_fn_c_try_link "$LINENO"; then : 2006 eval "$3=yes" 2007 else 2008 eval "$3=no" 2009 fi 2010 rm -f core conftest.err conftest.$ac_objext \ 2011 conftest$ac_exeext conftest.$ac_ext 2012 fi 2013 eval ac_res=\$$3 2014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2015 $as_echo "$ac_res" >&6; } 2016 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2017 2018 } # ac_fn_c_check_func 2019 cat >config.log <<_ACEOF 971 2020 This file contains any messages produced by compilers while 972 2021 running configure, to aid debugging if configure makes a mistake. 973 2022 974 It was created by $as_me, which was975 generated by GNU Autoconf 2. 59. Invocation command line was2023 It was created by libsrtp $as_me 1.5.4, which was 2024 generated by GNU Autoconf 2.69. Invocation command line was 976 2025 977 2026 $ $0 $@ 978 2027 979 2028 _ACEOF 2029 exec 5>>config.log 980 2030 { 981 2031 cat <<_ASUNAME … … 996 2046 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 997 2047 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 998 hostinfo = `(hostinfo) 2>/dev/null|| echo unknown`2048 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 999 2049 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1000 2050 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` … … 1008 2058 IFS=$as_save_IFS 1009 2059 test -z "$as_dir" && as_dir=. 1010 echo "PATH: $as_dir" 1011 done 2060 $as_echo "PATH: $as_dir" 2061 done 2062 IFS=$as_save_IFS 1012 2063 1013 2064 } >&5 … … 1031 2082 ac_configure_args0= 1032 2083 ac_configure_args1= 1033 ac_sep=1034 2084 ac_must_keep_next=false 1035 2085 for ac_pass in 1 2 … … 1042 2092 | -silent | --silent | --silen | --sile | --sil) 1043 2093 continue ;; 1044 * " "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)1045 ac_arg=` echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;2094 *\'*) 2095 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1046 2096 esac 1047 2097 case $ac_pass in 1048 1) a c_configure_args0="$ac_configure_args0'$ac_arg'" ;;2098 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 1049 2099 2) 1050 a c_configure_args1="$ac_configure_args1'$ac_arg'"2100 as_fn_append ac_configure_args1 " '$ac_arg'" 1051 2101 if test $ac_must_keep_next = true; then 1052 2102 ac_must_keep_next=false # Got value, back to normal. … … 1064 2114 esac 1065 2115 fi 1066 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" 1067 # Get rid of the leading space. 1068 ac_sep=" " 2116 as_fn_append ac_configure_args " '$ac_arg'" 1069 2117 ;; 1070 2118 esac 1071 2119 done 1072 2120 done 1073 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0;}1074 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1;}2121 { ac_configure_args0=; unset ac_configure_args0;} 2122 { ac_configure_args1=; unset ac_configure_args1;} 1075 2123 1076 2124 # When interrupted or exit'd, cleanup temporary files, and complete 1077 2125 # config.log. We remove comments because anyway the quotes in there 1078 2126 # would cause problems or look ugly. 1079 # WARNING: Be sure not to use single quotes in there, as some shells,1080 # such as our DU 5.0 friend, will then `close' the trap.2127 # WARNING: Use '\'' to represent an apostrophe within the trap. 2128 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1081 2129 trap 'exit_status=$? 1082 2130 # Save into config.log some information that might help in debugging. … … 1084 2132 echo 1085 2133 1086 cat <<\_ASBOX 1087 ## ---------------- ## 2134 $as_echo "## ---------------- ## 1088 2135 ## Cache variables. ## 1089 ## ---------------- ## 1090 _ASBOX 2136 ## ---------------- ##" 1091 2137 echo 1092 2138 # The following way of writing the cache mishandles newlines in values, 1093 { 2139 ( 2140 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2141 eval ac_val=\$$ac_var 2142 case $ac_val in #( 2143 *${as_nl}*) 2144 case $ac_var in #( 2145 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2146 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2147 esac 2148 case $ac_var in #( 2149 _ | IFS | as_nl) ;; #( 2150 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2151 *) { eval $ac_var=; unset $ac_var;} ;; 2152 esac ;; 2153 esac 2154 done 1094 2155 (set) 2>&1 | 1095 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in1096 * ac_space=\ *)2156 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2157 *${as_nl}ac_space=\ *) 1097 2158 sed -n \ 1098 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; 1099 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" 2159 "s/'\''/'\''\\\\'\'''\''/g; 2160 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2161 ;; #( 2162 *) 2163 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 1100 2164 ;; 1101 *) 1102 sed -n \ 1103 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" 1104 ;; 1105 esac; 1106 } 2165 esac | 2166 sort 2167 ) 1107 2168 echo 1108 2169 1109 cat <<\_ASBOX 1110 ## ----------------- ## 2170 $as_echo "## ----------------- ## 1111 2171 ## Output variables. ## 1112 ## ----------------- ## 1113 _ASBOX 2172 ## ----------------- ##" 1114 2173 echo 1115 2174 for ac_var in $ac_subst_vars 1116 2175 do 1117 eval ac_val=$`echo $ac_var` 1118 echo "$ac_var='"'"'$ac_val'"'"'" 2176 eval ac_val=\$$ac_var 2177 case $ac_val in 2178 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2179 esac 2180 $as_echo "$ac_var='\''$ac_val'\''" 1119 2181 done | sort 1120 2182 echo 1121 2183 1122 2184 if test -n "$ac_subst_files"; then 1123 cat <<\_ASBOX 1124 ## ------------- ## 1125 ## Output files. ## 1126 ## ------------- ## 1127 _ASBOX 2185 $as_echo "## ------------------- ## 2186 ## File substitutions. ## 2187 ## ------------------- ##" 1128 2188 echo 1129 2189 for ac_var in $ac_subst_files 1130 2190 do 1131 eval ac_val=$`echo $ac_var` 1132 echo "$ac_var='"'"'$ac_val'"'"'" 2191 eval ac_val=\$$ac_var 2192 case $ac_val in 2193 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2194 esac 2195 $as_echo "$ac_var='\''$ac_val'\''" 1133 2196 done | sort 1134 2197 echo … … 1136 2199 1137 2200 if test -s confdefs.h; then 1138 cat <<\_ASBOX 1139 ## ----------- ## 2201 $as_echo "## ----------- ## 1140 2202 ## confdefs.h. ## 1141 ## ----------- ## 1142 _ASBOX 2203 ## ----------- ##" 1143 2204 echo 1144 sed "/^$/d" confdefs.h | sort2205 cat confdefs.h 1145 2206 echo 1146 2207 fi 1147 2208 test "$ac_signal" != 0 && 1148 echo "$as_me: caught signal $ac_signal"1149 echo "$as_me: exit $exit_status"2209 $as_echo "$as_me: caught signal $ac_signal" 2210 $as_echo "$as_me: exit $exit_status" 1150 2211 } >&5 1151 rm -f core *.core &&1152 rm -rfconftest* confdefs* conf$$* $ac_clean_files &&2212 rm -f core *.core core.conftest.* && 2213 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 1153 2214 exit $exit_status 1154 2215 ' 0 1155 2216 for ac_signal in 1 2 13 15; do 1156 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal2217 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 1157 2218 done 1158 2219 ac_signal=0 1159 2220 1160 2221 # confdefs.h avoids OS command line length limits that DEFS can exceed. 1161 rm - rfconftest* confdefs.h1162 # AIX cpp loses on an empty file, so make sure it contains at least a newline. 1163 echo >confdefs.h2222 rm -f -r conftest* confdefs.h 2223 2224 $as_echo "/* confdefs.h */" > confdefs.h 1164 2225 1165 2226 # Predefined preprocessor variables. … … 1169 2230 _ACEOF 1170 2231 1171 1172 2232 cat >>confdefs.h <<_ACEOF 1173 2233 #define PACKAGE_TARNAME "$PACKAGE_TARNAME" 1174 2234 _ACEOF 1175 2235 1176 1177 2236 cat >>confdefs.h <<_ACEOF 1178 2237 #define PACKAGE_VERSION "$PACKAGE_VERSION" 1179 2238 _ACEOF 1180 2239 1181 1182 2240 cat >>confdefs.h <<_ACEOF 1183 2241 #define PACKAGE_STRING "$PACKAGE_STRING" 1184 2242 _ACEOF 1185 2243 1186 1187 2244 cat >>confdefs.h <<_ACEOF 1188 2245 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 1189 2246 _ACEOF 1190 2247 2248 cat >>confdefs.h <<_ACEOF 2249 #define PACKAGE_URL "$PACKAGE_URL" 2250 _ACEOF 2251 1191 2252 1192 2253 # Let the site file select an alternate cache file if it wants to. 1193 # Prefer explicitly selected file to automatically selected ones. 1194 if test -z "$CONFIG_SITE"; then 1195 if test "x$prefix" != xNONE; then 1196 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" 1197 else 1198 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 1199 fi 1200 fi 1201 for ac_site_file in $CONFIG_SITE; do 1202 if test -r "$ac_site_file"; then 1203 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 1204 echo "$as_me: loading site script $ac_site_file" >&6;} 2254 # Prefer an explicitly selected file to automatically selected ones. 2255 ac_site_file1=NONE 2256 ac_site_file2=NONE 2257 if test -n "$CONFIG_SITE"; then 2258 # We do not want a PATH search for config.site. 2259 case $CONFIG_SITE in #(( 2260 -*) ac_site_file1=./$CONFIG_SITE;; 2261 */*) ac_site_file1=$CONFIG_SITE;; 2262 *) ac_site_file1=./$CONFIG_SITE;; 2263 esac 2264 elif test "x$prefix" != xNONE; then 2265 ac_site_file1=$prefix/share/config.site 2266 ac_site_file2=$prefix/etc/config.site 2267 else 2268 ac_site_file1=$ac_default_prefix/share/config.site 2269 ac_site_file2=$ac_default_prefix/etc/config.site 2270 fi 2271 for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2272 do 2273 test "x$ac_site_file" = xNONE && continue 2274 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2275 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2276 $as_echo "$as_me: loading site script $ac_site_file" >&6;} 1205 2277 sed 's/^/| /' "$ac_site_file" >&5 1206 . "$ac_site_file" 2278 . "$ac_site_file" \ 2279 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2280 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2281 as_fn_error $? "failed to load site script $ac_site_file 2282 See \`config.log' for more details" "$LINENO" 5; } 1207 2283 fi 1208 2284 done 1209 2285 1210 2286 if test -r "$cache_file"; then 1211 # Some versions of bash will fail to source /dev/null (special 1212 # files actually), so we avoid doing that.1213 if test -f "$cache_file"; then1214 { echo "$as_me:$LINENO: loading cache $cache_file" >&51215 echo "$as_me: loading cache $cache_file" >&6;}2287 # Some versions of bash will fail to source /dev/null (special files 2288 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2289 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2290 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2291 $as_echo "$as_me: loading cache $cache_file" >&6;} 1216 2292 case $cache_file in 1217 [\\/]* | ?:[\\/]* ) . $cache_file;;1218 *) . ./$cache_file;;2293 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2294 *) . "./$cache_file";; 1219 2295 esac 1220 2296 fi 1221 2297 else 1222 { echo "$as_me:$LINENO: creating cache $cache_file" >&51223 echo "$as_me: creating cache $cache_file" >&6;}2298 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2299 $as_echo "$as_me: creating cache $cache_file" >&6;} 1224 2300 >$cache_file 1225 2301 fi … … 1228 2304 # value. 1229 2305 ac_cache_corrupted=false 1230 for ac_var in `(set) 2>&1 | 1231 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do 2306 for ac_var in $ac_precious_vars; do 1232 2307 eval ac_old_set=\$ac_cv_env_${ac_var}_set 1233 2308 eval ac_new_set=\$ac_env_${ac_var}_set 1234 eval ac_old_val= "\$ac_cv_env_${ac_var}_value"1235 eval ac_new_val= "\$ac_env_${ac_var}_value"2309 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2310 eval ac_new_val=\$ac_env_${ac_var}_value 1236 2311 case $ac_old_set,$ac_new_set in 1237 2312 set,) 1238 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&51239 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}2313 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2314 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 1240 2315 ac_cache_corrupted=: ;; 1241 2316 ,set) 1242 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&51243 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}2317 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2318 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 1244 2319 ac_cache_corrupted=: ;; 1245 2320 ,);; 1246 2321 *) 1247 2322 if test "x$ac_old_val" != "x$ac_new_val"; then 1248 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 1249 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 1250 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 1251 echo "$as_me: former value: $ac_old_val" >&2;} 1252 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 1253 echo "$as_me: current value: $ac_new_val" >&2;} 1254 ac_cache_corrupted=: 2323 # differences in whitespace do not lead to failure. 2324 ac_old_val_w=`echo x $ac_old_val` 2325 ac_new_val_w=`echo x $ac_new_val` 2326 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2327 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2328 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2329 ac_cache_corrupted=: 2330 else 2331 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2332 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2333 eval $ac_var=\$ac_old_val 2334 fi 2335 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2336 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2337 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2338 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 1255 2339 fi;; 1256 2340 esac … … 1258 2342 if test "$ac_new_set" = set; then 1259 2343 case $ac_new_val in 1260 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) 1261 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2344 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 1262 2345 *) ac_arg=$ac_var=$ac_new_val ;; 1263 2346 esac 1264 2347 case " $ac_configure_args " in 1265 2348 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 1266 *) a c_configure_args="$ac_configure_args'$ac_arg'" ;;2349 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 1267 2350 esac 1268 2351 fi 1269 2352 done 1270 2353 if $ac_cache_corrupted; then 1271 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 1272 echo "$as_me: error: changes in the environment can compromise the build" >&2;} 1273 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 1274 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} 1275 { (exit 1); exit 1; }; } 1276 fi 2354 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2355 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2356 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2357 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2358 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2359 fi 2360 ## -------------------- ## 2361 ## Main body of script. ## 2362 ## -------------------- ## 1277 2363 1278 2364 ac_ext=c … … 1284 2370 1285 2371 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 2372 if test -z "$CFLAGS"; then 1304 CFLAGS="-Wall -O4 -fexpensive-optimizations -funroll-loops" 1305 fi 1306 1307 if test -n "$ac_tool_prefix"; then 1308 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 1309 set dummy ${ac_tool_prefix}ranlib; ac_word=$2 1310 echo "$as_me:$LINENO: checking for $ac_word" >&5 1311 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1312 if test "${ac_cv_prog_RANLIB+set}" = set; then 1313 echo $ECHO_N "(cached) $ECHO_C" >&6 1314 else 1315 if test -n "$RANLIB"; then 1316 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 1317 else 1318 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1319 for as_dir in $PATH 1320 do 1321 IFS=$as_save_IFS 1322 test -z "$as_dir" && as_dir=. 1323 for ac_exec_ext in '' $ac_executable_extensions; do 1324 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1325 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 1326 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1327 break 2 1328 fi 1329 done 1330 done 1331 1332 fi 1333 fi 1334 RANLIB=$ac_cv_prog_RANLIB 1335 if test -n "$RANLIB"; then 1336 echo "$as_me:$LINENO: result: $RANLIB" >&5 1337 echo "${ECHO_T}$RANLIB" >&6 1338 else 1339 echo "$as_me:$LINENO: result: no" >&5 1340 echo "${ECHO_T}no" >&6 1341 fi 1342 1343 fi 1344 if test -z "$ac_cv_prog_RANLIB"; then 1345 ac_ct_RANLIB=$RANLIB 1346 # Extract the first word of "ranlib", so it can be a program name with args. 1347 set dummy ranlib; ac_word=$2 1348 echo "$as_me:$LINENO: checking for $ac_word" >&5 1349 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1350 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then 1351 echo $ECHO_N "(cached) $ECHO_C" >&6 1352 else 1353 if test -n "$ac_ct_RANLIB"; then 1354 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 1355 else 1356 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1357 for as_dir in $PATH 1358 do 1359 IFS=$as_save_IFS 1360 test -z "$as_dir" && as_dir=. 1361 for ac_exec_ext in '' $ac_executable_extensions; do 1362 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1363 ac_cv_prog_ac_ct_RANLIB="ranlib" 1364 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1365 break 2 1366 fi 1367 done 1368 done 1369 1370 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" 1371 fi 1372 fi 1373 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 1374 if test -n "$ac_ct_RANLIB"; then 1375 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 1376 echo "${ECHO_T}$ac_ct_RANLIB" >&6 1377 else 1378 echo "$as_me:$LINENO: result: no" >&5 1379 echo "${ECHO_T}no" >&6 1380 fi 1381 1382 RANLIB=$ac_ct_RANLIB 1383 else 1384 RANLIB="$ac_cv_prog_RANLIB" 1385 fi 2373 CFLAGS="-fPIC -Wall -O4 -fexpensive-optimizations -funroll-loops" 2374 fi 2375 2376 # expand $ac_aux_dir to an absolute path 2377 am_aux_dir=`cd $ac_aux_dir && pwd` 1386 2378 1387 2379 ac_ext=c … … 1393 2385 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 1394 2386 set dummy ${ac_tool_prefix}gcc; ac_word=$2 1395 echo "$as_me:$LINENO: checking for $ac_word" >&51396 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1397 if test "${ac_cv_prog_CC+set}" = set; then1398 echo $ECHO_N "(cached) $ECHO_C" >&62387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2388 $as_echo_n "checking for $ac_word... " >&6; } 2389 if ${ac_cv_prog_CC+:} false; then : 2390 $as_echo_n "(cached) " >&6 1399 2391 else 1400 2392 if test -n "$CC"; then … … 1406 2398 IFS=$as_save_IFS 1407 2399 test -z "$as_dir" && as_dir=. 1408 for ac_exec_ext in '' $ac_executable_extensions; do1409 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then2400 for ac_exec_ext in '' $ac_executable_extensions; do 2401 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1410 2402 ac_cv_prog_CC="${ac_tool_prefix}gcc" 1411 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&52403 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 1412 2404 break 2 1413 2405 fi 1414 2406 done 1415 done 2407 done 2408 IFS=$as_save_IFS 1416 2409 1417 2410 fi … … 1419 2412 CC=$ac_cv_prog_CC 1420 2413 if test -n "$CC"; then 1421 echo "$as_me:$LINENO: result: $CC" >&5 1422 echo "${ECHO_T}$CC" >&6 1423 else 1424 echo "$as_me:$LINENO: result: no" >&5 1425 echo "${ECHO_T}no" >&6 1426 fi 2414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2415 $as_echo "$CC" >&6; } 2416 else 2417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2418 $as_echo "no" >&6; } 2419 fi 2420 1427 2421 1428 2422 fi … … 1431 2425 # Extract the first word of "gcc", so it can be a program name with args. 1432 2426 set dummy gcc; ac_word=$2 1433 echo "$as_me:$LINENO: checking for $ac_word" >&51434 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1435 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then1436 echo $ECHO_N "(cached) $ECHO_C" >&62427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2428 $as_echo_n "checking for $ac_word... " >&6; } 2429 if ${ac_cv_prog_ac_ct_CC+:} false; then : 2430 $as_echo_n "(cached) " >&6 1437 2431 else 1438 2432 if test -n "$ac_ct_CC"; then … … 1444 2438 IFS=$as_save_IFS 1445 2439 test -z "$as_dir" && as_dir=. 1446 for ac_exec_ext in '' $ac_executable_extensions; do1447 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then2440 for ac_exec_ext in '' $ac_executable_extensions; do 2441 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1448 2442 ac_cv_prog_ac_ct_CC="gcc" 1449 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&52443 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 1450 2444 break 2 1451 2445 fi 1452 2446 done 1453 done 2447 done 2448 IFS=$as_save_IFS 1454 2449 1455 2450 fi … … 1457 2452 ac_ct_CC=$ac_cv_prog_ac_ct_CC 1458 2453 if test -n "$ac_ct_CC"; then 1459 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 1460 echo "${ECHO_T}$ac_ct_CC" >&6 1461 else 1462 echo "$as_me:$LINENO: result: no" >&5 1463 echo "${ECHO_T}no" >&6 1464 fi 1465 1466 CC=$ac_ct_CC 2454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2455 $as_echo "$ac_ct_CC" >&6; } 2456 else 2457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2458 $as_echo "no" >&6; } 2459 fi 2460 2461 if test "x$ac_ct_CC" = x; then 2462 CC="" 2463 else 2464 case $cross_compiling:$ac_tool_warned in 2465 yes:) 2466 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2467 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2468 ac_tool_warned=yes ;; 2469 esac 2470 CC=$ac_ct_CC 2471 fi 1467 2472 else 1468 2473 CC="$ac_cv_prog_CC" … … 1470 2475 1471 2476 if test -z "$CC"; then 1472 if test -n "$ac_tool_prefix"; then1473 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.2477 if test -n "$ac_tool_prefix"; then 2478 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 1474 2479 set dummy ${ac_tool_prefix}cc; ac_word=$2 1475 echo "$as_me:$LINENO: checking for $ac_word" >&51476 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1477 if test "${ac_cv_prog_CC+set}" = set; then1478 echo $ECHO_N "(cached) $ECHO_C" >&62480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2481 $as_echo_n "checking for $ac_word... " >&6; } 2482 if ${ac_cv_prog_CC+:} false; then : 2483 $as_echo_n "(cached) " >&6 1479 2484 else 1480 2485 if test -n "$CC"; then … … 1486 2491 IFS=$as_save_IFS 1487 2492 test -z "$as_dir" && as_dir=. 1488 for ac_exec_ext in '' $ac_executable_extensions; do1489 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then2493 for ac_exec_ext in '' $ac_executable_extensions; do 2494 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1490 2495 ac_cv_prog_CC="${ac_tool_prefix}cc" 1491 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&52496 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 1492 2497 break 2 1493 2498 fi 1494 2499 done 1495 done 2500 done 2501 IFS=$as_save_IFS 1496 2502 1497 2503 fi … … 1499 2505 CC=$ac_cv_prog_CC 1500 2506 if test -n "$CC"; then 1501 echo "$as_me:$LINENO: result: $CC" >&5 1502 echo "${ECHO_T}$CC" >&6 1503 else 1504 echo "$as_me:$LINENO: result: no" >&5 1505 echo "${ECHO_T}no" >&6 1506 fi 1507 1508 fi 1509 if test -z "$ac_cv_prog_CC"; then 1510 ac_ct_CC=$CC 1511 # Extract the first word of "cc", so it can be a program name with args. 1512 set dummy cc; ac_word=$2 1513 echo "$as_me:$LINENO: checking for $ac_word" >&5 1514 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1515 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 1516 echo $ECHO_N "(cached) $ECHO_C" >&6 1517 else 1518 if test -n "$ac_ct_CC"; then 1519 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 1520 else 1521 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1522 for as_dir in $PATH 1523 do 1524 IFS=$as_save_IFS 1525 test -z "$as_dir" && as_dir=. 1526 for ac_exec_ext in '' $ac_executable_extensions; do 1527 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1528 ac_cv_prog_ac_ct_CC="cc" 1529 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1530 break 2 2507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2508 $as_echo "$CC" >&6; } 2509 else 2510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2511 $as_echo "no" >&6; } 2512 fi 2513 2514 1531 2515 fi 1532 done1533 done1534 1535 fi1536 fi1537 ac_ct_CC=$ac_cv_prog_ac_ct_CC1538 if test -n "$ac_ct_CC"; then1539 echo "$as_me:$LINENO: result: $ac_ct_CC" >&51540 echo "${ECHO_T}$ac_ct_CC" >&61541 else1542 echo "$as_me:$LINENO: result: no" >&51543 echo "${ECHO_T}no" >&61544 fi1545 1546 CC=$ac_ct_CC1547 else1548 CC="$ac_cv_prog_CC"1549 fi1550 1551 2516 fi 1552 2517 if test -z "$CC"; then 1553 2518 # Extract the first word of "cc", so it can be a program name with args. 1554 2519 set dummy cc; ac_word=$2 1555 echo "$as_me:$LINENO: checking for $ac_word" >&51556 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1557 if test "${ac_cv_prog_CC+set}" = set; then1558 echo $ECHO_N "(cached) $ECHO_C" >&62520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2521 $as_echo_n "checking for $ac_word... " >&6; } 2522 if ${ac_cv_prog_CC+:} false; then : 2523 $as_echo_n "(cached) " >&6 1559 2524 else 1560 2525 if test -n "$CC"; then … … 1567 2532 IFS=$as_save_IFS 1568 2533 test -z "$as_dir" && as_dir=. 1569 for ac_exec_ext in '' $ac_executable_extensions; do1570 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then2534 for ac_exec_ext in '' $ac_executable_extensions; do 2535 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1571 2536 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 1572 2537 ac_prog_rejected=yes … … 1574 2539 fi 1575 2540 ac_cv_prog_CC="cc" 1576 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&52541 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 1577 2542 break 2 1578 2543 fi 1579 2544 done 1580 done 2545 done 2546 IFS=$as_save_IFS 1581 2547 1582 2548 if test $ac_prog_rejected = yes; then … … 1596 2562 CC=$ac_cv_prog_CC 1597 2563 if test -n "$CC"; then 1598 echo "$as_me:$LINENO: result: $CC" >&5 1599 echo "${ECHO_T}$CC" >&6 1600 else 1601 echo "$as_me:$LINENO: result: no" >&5 1602 echo "${ECHO_T}no" >&6 1603 fi 2564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2565 $as_echo "$CC" >&6; } 2566 else 2567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2568 $as_echo "no" >&6; } 2569 fi 2570 1604 2571 1605 2572 fi 1606 2573 if test -z "$CC"; then 1607 2574 if test -n "$ac_tool_prefix"; then 1608 for ac_prog in cl 2575 for ac_prog in cl.exe 1609 2576 do 1610 2577 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 1611 2578 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 1612 echo "$as_me:$LINENO: checking for $ac_word" >&51613 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1614 if test "${ac_cv_prog_CC+set}" = set; then1615 echo $ECHO_N "(cached) $ECHO_C" >&62579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2580 $as_echo_n "checking for $ac_word... " >&6; } 2581 if ${ac_cv_prog_CC+:} false; then : 2582 $as_echo_n "(cached) " >&6 1616 2583 else 1617 2584 if test -n "$CC"; then … … 1623 2590 IFS=$as_save_IFS 1624 2591 test -z "$as_dir" && as_dir=. 1625 for ac_exec_ext in '' $ac_executable_extensions; do1626 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then2592 for ac_exec_ext in '' $ac_executable_extensions; do 2593 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1627 2594 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 1628 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&52595 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 1629 2596 break 2 1630 2597 fi 1631 2598 done 1632 done 2599 done 2600 IFS=$as_save_IFS 1633 2601 1634 2602 fi … … 1636 2604 CC=$ac_cv_prog_CC 1637 2605 if test -n "$CC"; then 1638 echo "$as_me:$LINENO: result: $CC" >&5 1639 echo "${ECHO_T}$CC" >&6 1640 else 1641 echo "$as_me:$LINENO: result: no" >&5 1642 echo "${ECHO_T}no" >&6 1643 fi 2606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2607 $as_echo "$CC" >&6; } 2608 else 2609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2610 $as_echo "no" >&6; } 2611 fi 2612 1644 2613 1645 2614 test -n "$CC" && break … … 1648 2617 if test -z "$CC"; then 1649 2618 ac_ct_CC=$CC 1650 for ac_prog in cl 2619 for ac_prog in cl.exe 1651 2620 do 1652 2621 # Extract the first word of "$ac_prog", so it can be a program name with args. 1653 2622 set dummy $ac_prog; ac_word=$2 1654 echo "$as_me:$LINENO: checking for $ac_word" >&51655 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1656 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then1657 echo $ECHO_N "(cached) $ECHO_C" >&62623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2624 $as_echo_n "checking for $ac_word... " >&6; } 2625 if ${ac_cv_prog_ac_ct_CC+:} false; then : 2626 $as_echo_n "(cached) " >&6 1658 2627 else 1659 2628 if test -n "$ac_ct_CC"; then … … 1665 2634 IFS=$as_save_IFS 1666 2635 test -z "$as_dir" && as_dir=. 1667 for ac_exec_ext in '' $ac_executable_extensions; do1668 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then2636 for ac_exec_ext in '' $ac_executable_extensions; do 2637 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1669 2638 ac_cv_prog_ac_ct_CC="$ac_prog" 1670 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&52639 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 1671 2640 break 2 1672 2641 fi 1673 2642 done 1674 done 2643 done 2644 IFS=$as_save_IFS 1675 2645 1676 2646 fi … … 1678 2648 ac_ct_CC=$ac_cv_prog_ac_ct_CC 1679 2649 if test -n "$ac_ct_CC"; then 1680 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 1681 echo "${ECHO_T}$ac_ct_CC" >&6 1682 else 1683 echo "$as_me:$LINENO: result: no" >&5 1684 echo "${ECHO_T}no" >&6 1685 fi 2650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2651 $as_echo "$ac_ct_CC" >&6; } 2652 else 2653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2654 $as_echo "no" >&6; } 2655 fi 2656 1686 2657 1687 2658 test -n "$ac_ct_CC" && break 1688 2659 done 1689 2660 1690 CC=$ac_ct_CC 1691 fi 1692 1693 fi 1694 1695 1696 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 1697 See \`config.log' for more details." >&5 1698 echo "$as_me: error: no acceptable C compiler found in \$PATH 1699 See \`config.log' for more details." >&2;} 1700 { (exit 1); exit 1; }; } 2661 if test "x$ac_ct_CC" = x; then 2662 CC="" 2663 else 2664 case $cross_compiling:$ac_tool_warned in 2665 yes:) 2666 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2667 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2668 ac_tool_warned=yes ;; 2669 esac 2670 CC=$ac_ct_CC 2671 fi 2672 fi 2673 2674 fi 2675 2676 2677 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2678 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2679 as_fn_error $? "no acceptable C compiler found in \$PATH 2680 See \`config.log' for more details" "$LINENO" 5; } 1701 2681 1702 2682 # Provide some information about the compiler. 1703 echo "$as_me:$LINENO:" \ 1704 "checking for C compiler version" >&5 1705 ac_compiler=`set X $ac_compile; echo $2` 1706 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 1707 (eval $ac_compiler --version </dev/null >&5) 2>&5 2683 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 2684 set X $ac_compile 2685 ac_compiler=$2 2686 for ac_option in --version -v -V -qversion; do 2687 { { ac_try="$ac_compiler $ac_option >&5" 2688 case "(($ac_try" in 2689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2690 *) ac_try_echo=$ac_try;; 2691 esac 2692 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2693 $as_echo "$ac_try_echo"; } >&5 2694 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 1708 2695 ac_status=$? 1709 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1710 (exit $ac_status); } 1711 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 1712 (eval $ac_compiler -v </dev/null >&5) 2>&5 1713 ac_status=$? 1714 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1715 (exit $ac_status); } 1716 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 1717 (eval $ac_compiler -V </dev/null >&5) 2>&5 1718 ac_status=$? 1719 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1720 (exit $ac_status); } 1721 1722 cat >conftest.$ac_ext <<_ACEOF 1723 /* confdefs.h. */ 1724 _ACEOF 1725 cat confdefs.h >>conftest.$ac_ext 1726 cat >>conftest.$ac_ext <<_ACEOF 2696 if test -s conftest.err; then 2697 sed '10a\ 2698 ... rest of stderr output deleted ... 2699 10q' conftest.err >conftest.er1 2700 cat conftest.er1 >&5 2701 fi 2702 rm -f conftest.er1 conftest.err 2703 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2704 test $ac_status = 0; } 2705 done 2706 2707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1727 2708 /* end confdefs.h. */ 1728 2709 … … 1736 2717 _ACEOF 1737 2718 ac_clean_files_save=$ac_clean_files 1738 ac_clean_files="$ac_clean_files a.out a. exe b.out"2719 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 1739 2720 # Try to create an executable without -o first, disregard a.out. 1740 2721 # It will help us diagnose broken compilers, and finding out an intuition 1741 2722 # of exeext. 1742 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 1743 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6 1744 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 1745 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 1746 (eval $ac_link_default) 2>&5 2723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 2724 $as_echo_n "checking whether the C compiler works... " >&6; } 2725 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 2726 2727 # The possible output files: 2728 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 2729 2730 ac_rmfiles= 2731 for ac_file in $ac_files 2732 do 2733 case $ac_file in 2734 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 2735 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 2736 esac 2737 done 2738 rm -f $ac_rmfiles 2739 2740 if { { ac_try="$ac_link_default" 2741 case "(($ac_try" in 2742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2743 *) ac_try_echo=$ac_try;; 2744 esac 2745 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2746 $as_echo "$ac_try_echo"; } >&5 2747 (eval "$ac_link_default") 2>&5 1747 2748 ac_status=$? 1748 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1749 (exit $ac_status); }; then 1750 # Find the output, starting from the most likely. This scheme is 1751 # not robust to junk in `.', hence go to wildcards (a.*) only as a last 1752 # resort. 1753 1754 # Be careful to initialize this variable, since it used to be cached. 1755 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. 1756 ac_cv_exeext= 1757 # b.out is created by i960 compilers. 1758 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out 2749 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2750 test $ac_status = 0; }; then : 2751 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 2752 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 2753 # in a Makefile. We should not override ac_cv_exeext if it was cached, 2754 # so that the user can short-circuit this test for compilers unknown to 2755 # Autoconf. 2756 for ac_file in $ac_files '' 1759 2757 do 1760 2758 test -f "$ac_file" || continue 1761 2759 case $ac_file in 1762 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) 1763 ;; 1764 conftest.$ac_ext ) 1765 # This is the source file. 2760 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 1766 2761 ;; 1767 2762 [ab].out ) … … 1770 2765 break;; 1771 2766 *.* ) 1772 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 1773 # FIXME: I believe we export ac_cv_exeext for Libtool, 1774 # but it would be cool to find out if it's true. Does anybody 1775 # maintain Libtool? --akim. 1776 export ac_cv_exeext 2767 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 2768 then :; else 2769 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2770 fi 2771 # We set ac_cv_exeext here because the later test for it is not 2772 # safe: cross compilers may not add the suffix if given an `-o' 2773 # argument, so we may need to know it at that point already. 2774 # Even if this section looks crufty: it has the advantage of 2775 # actually working. 1777 2776 break;; 1778 2777 * ) … … 1780 2779 esac 1781 2780 done 1782 else 1783 echo "$as_me: failed program was:" >&5 2781 test "$ac_cv_exeext" = no && ac_cv_exeext= 2782 2783 else 2784 ac_file='' 2785 fi 2786 if test -z "$ac_file"; then : 2787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2788 $as_echo "no" >&6; } 2789 $as_echo "$as_me: failed program was:" >&5 1784 2790 sed 's/^/| /' conftest.$ac_ext >&5 1785 2791 1786 { { echo "$as_me:$LINENO: error: C compiler cannot create executables 1787 See \`config.log' for more details." >&5 1788 echo "$as_me: error: C compiler cannot create executables 1789 See \`config.log' for more details." >&2;} 1790 { (exit 77); exit 77; }; } 1791 fi 1792 2792 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2793 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2794 as_fn_error 77 "C compiler cannot create executables 2795 See \`config.log' for more details" "$LINENO" 5; } 2796 else 2797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2798 $as_echo "yes" >&6; } 2799 fi 2800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 2801 $as_echo_n "checking for C compiler default output file name... " >&6; } 2802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 2803 $as_echo "$ac_file" >&6; } 1793 2804 ac_exeext=$ac_cv_exeext 1794 echo "$as_me:$LINENO: result: $ac_file" >&5 1795 echo "${ECHO_T}$ac_file" >&6 1796 1797 # Check the compiler produces executables we can run. If not, either 1798 # the compiler is broken, or we cross compile. 1799 echo "$as_me:$LINENO: checking whether the C compiler works" >&5 1800 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 1801 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 1802 # If not cross compiling, check that we can run a simple program. 1803 if test "$cross_compiling" != yes; then 1804 if { ac_try='./$ac_file' 1805 { (eval echo "$as_me:$LINENO: \"$ac_try\"")>&51806 (eval $ac_try) 2>&52805 2806 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 2807 ac_clean_files=$ac_clean_files_save 2808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 2809 $as_echo_n "checking for suffix of executables... " >&6; } 2810 if { { ac_try="$ac_link" 2811 case "(($ac_try" in 2812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2813 *) ac_try_echo=$ac_try;; 2814 esac 2815 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2816 $as_echo "$ac_try_echo"; } >&5 2817 (eval "$ac_link") 2>&5 1807 2818 ac_status=$? 1808 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1809 (exit $ac_status); }; }; then 1810 cross_compiling=no 1811 else 1812 if test "$cross_compiling" = maybe; then 1813 cross_compiling=yes 1814 else 1815 { { echo "$as_me:$LINENO: error: cannot run C compiled programs. 1816 If you meant to cross compile, use \`--host'. 1817 See \`config.log' for more details." >&5 1818 echo "$as_me: error: cannot run C compiled programs. 1819 If you meant to cross compile, use \`--host'. 1820 See \`config.log' for more details." >&2;} 1821 { (exit 1); exit 1; }; } 1822 fi 1823 fi 1824 fi 1825 echo "$as_me:$LINENO: result: yes" >&5 1826 echo "${ECHO_T}yes" >&6 1827 1828 rm -f a.out a.exe conftest$ac_cv_exeext b.out 1829 ac_clean_files=$ac_clean_files_save 1830 # Check the compiler produces executables we can run. If not, either 1831 # the compiler is broken, or we cross compile. 1832 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 1833 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 1834 echo "$as_me:$LINENO: result: $cross_compiling" >&5 1835 echo "${ECHO_T}$cross_compiling" >&6 1836 1837 echo "$as_me:$LINENO: checking for suffix of executables" >&5 1838 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 1839 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 1840 (eval $ac_link) 2>&5 1841 ac_status=$? 1842 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1843 (exit $ac_status); }; then 2819 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2820 test $ac_status = 0; }; then : 1844 2821 # If both `conftest.exe' and `conftest' are `present' (well, observable) 1845 2822 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will … … 1849 2826 test -f "$ac_file" || continue 1850 2827 case $ac_file in 1851 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *. o | *.obj ) ;;2828 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 1852 2829 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 1853 export ac_cv_exeext1854 2830 break;; 1855 2831 * ) break;; … … 1857 2833 done 1858 2834 else 1859 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link 1860 See \`config.log' for more details." >&5 1861 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link 1862 See \`config.log' for more details." >&2;} 1863 { (exit 1); exit 1; }; } 1864 fi 1865 1866 rm -f conftest$ac_cv_exeext 1867 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 1868 echo "${ECHO_T}$ac_cv_exeext" >&6 2835 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2836 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2837 as_fn_error $? "cannot compute suffix of executables: cannot compile and link 2838 See \`config.log' for more details" "$LINENO" 5; } 2839 fi 2840 rm -f conftest conftest$ac_cv_exeext 2841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 2842 $as_echo "$ac_cv_exeext" >&6; } 1869 2843 1870 2844 rm -f conftest.$ac_ext 1871 2845 EXEEXT=$ac_cv_exeext 1872 2846 ac_exeext=$EXEEXT 1873 echo "$as_me:$LINENO: checking for suffix of object files" >&5 1874 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 1875 if test "${ac_cv_objext+set}" = set; then 1876 echo $ECHO_N "(cached) $ECHO_C" >&6 1877 else 1878 cat >conftest.$ac_ext <<_ACEOF 1879 /* confdefs.h. */ 1880 _ACEOF 1881 cat confdefs.h >>conftest.$ac_ext 1882 cat >>conftest.$ac_ext <<_ACEOF 2847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1883 2848 /* end confdefs.h. */ 1884 2849 #include <stdio.h> 1885 2850 int 1886 2851 main () 1887 2852 { 2853 FILE *f = fopen ("conftest.out", "w"); 2854 return ferror (f) || fclose (f) != 0; 1888 2855 1889 2856 ; … … 1891 2858 } 1892 2859 _ACEOF 2860 ac_clean_files="$ac_clean_files conftest.out" 2861 # Check that the compiler produces executables we can run. If not, either 2862 # the compiler is broken, or we cross compile. 2863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 2864 $as_echo_n "checking whether we are cross compiling... " >&6; } 2865 if test "$cross_compiling" != yes; then 2866 { { ac_try="$ac_link" 2867 case "(($ac_try" in 2868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2869 *) ac_try_echo=$ac_try;; 2870 esac 2871 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2872 $as_echo "$ac_try_echo"; } >&5 2873 (eval "$ac_link") 2>&5 2874 ac_status=$? 2875 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2876 test $ac_status = 0; } 2877 if { ac_try='./conftest$ac_cv_exeext' 2878 { { case "(($ac_try" in 2879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2880 *) ac_try_echo=$ac_try;; 2881 esac 2882 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2883 $as_echo "$ac_try_echo"; } >&5 2884 (eval "$ac_try") 2>&5 2885 ac_status=$? 2886 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2887 test $ac_status = 0; }; }; then 2888 cross_compiling=no 2889 else 2890 if test "$cross_compiling" = maybe; then 2891 cross_compiling=yes 2892 else 2893 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2894 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2895 as_fn_error $? "cannot run C compiled programs. 2896 If you meant to cross compile, use \`--host'. 2897 See \`config.log' for more details" "$LINENO" 5; } 2898 fi 2899 fi 2900 fi 2901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 2902 $as_echo "$cross_compiling" >&6; } 2903 2904 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 2905 ac_clean_files=$ac_clean_files_save 2906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 2907 $as_echo_n "checking for suffix of object files... " >&6; } 2908 if ${ac_cv_objext+:} false; then : 2909 $as_echo_n "(cached) " >&6 2910 else 2911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2912 /* end confdefs.h. */ 2913 2914 int 2915 main () 2916 { 2917 2918 ; 2919 return 0; 2920 } 2921 _ACEOF 1893 2922 rm -f conftest.o conftest.obj 1894 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 1895 (eval $ac_compile) 2>&5 2923 if { { ac_try="$ac_compile" 2924 case "(($ac_try" in 2925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2926 *) ac_try_echo=$ac_try;; 2927 esac 2928 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2929 $as_echo "$ac_try_echo"; } >&5 2930 (eval "$ac_compile") 2>&5 1896 2931 ac_status=$? 1897 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1898 (exit $ac_status); }; then 1899 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do 2932 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2933 test $ac_status = 0; }; then : 2934 for ac_file in conftest.o conftest.obj conftest.*; do 2935 test -f "$ac_file" || continue; 1900 2936 case $ac_file in 1901 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;2937 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 1902 2938 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 1903 2939 break;; … … 1905 2941 done 1906 2942 else 1907 echo "$as_me: failed program was:" >&52943 $as_echo "$as_me: failed program was:" >&5 1908 2944 sed 's/^/| /' conftest.$ac_ext >&5 1909 2945 1910 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile 1911 See \`config.log' for more details." >&5 1912 echo "$as_me: error: cannot compute suffix of object files: cannot compile 1913 See \`config.log' for more details." >&2;} 1914 { (exit 1); exit 1; }; } 1915 fi 1916 2946 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2947 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2948 as_fn_error $? "cannot compute suffix of object files: cannot compile 2949 See \`config.log' for more details" "$LINENO" 5; } 2950 fi 1917 2951 rm -f conftest.$ac_cv_objext conftest.$ac_ext 1918 2952 fi 1919 echo "$as_me:$LINENO: result: $ac_cv_objext" >&51920 echo "${ECHO_T}$ac_cv_objext" >&6 2953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 2954 $as_echo "$ac_cv_objext" >&6; } 1921 2955 OBJEXT=$ac_cv_objext 1922 2956 ac_objext=$OBJEXT 1923 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 1924 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 1925 if test "${ac_cv_c_compiler_gnu+set}" = set; then 1926 echo $ECHO_N "(cached) $ECHO_C" >&6 1927 else 1928 cat >conftest.$ac_ext <<_ACEOF 1929 /* confdefs.h. */ 1930 _ACEOF 1931 cat confdefs.h >>conftest.$ac_ext 1932 cat >>conftest.$ac_ext <<_ACEOF 2957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 2958 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 2959 if ${ac_cv_c_compiler_gnu+:} false; then : 2960 $as_echo_n "(cached) " >&6 2961 else 2962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1933 2963 /* end confdefs.h. */ 1934 2964 … … 1944 2974 } 1945 2975 _ACEOF 1946 rm -f conftest.$ac_objext 1947 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 1948 (eval $ac_compile) 2>conftest.er1 1949 ac_status=$? 1950 grep -v '^ *+' conftest.er1 >conftest.err 1951 rm -f conftest.er1 1952 cat conftest.err >&5 1953 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1954 (exit $ac_status); } && 1955 { ac_try='test -z "$ac_c_werror_flag" 1956 || test ! -s conftest.err' 1957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 1958 (eval $ac_try) 2>&5 1959 ac_status=$? 1960 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1961 (exit $ac_status); }; } && 1962 { ac_try='test -s conftest.$ac_objext' 1963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 1964 (eval $ac_try) 2>&5 1965 ac_status=$? 1966 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1967 (exit $ac_status); }; }; then 2976 if ac_fn_c_try_compile "$LINENO"; then : 1968 2977 ac_compiler_gnu=yes 1969 2978 else 1970 echo "$as_me: failed program was:" >&5 1971 sed 's/^/| /' conftest.$ac_ext >&5 1972 1973 ac_compiler_gnu=no 1974 fi 1975 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2979 ac_compiler_gnu=no 2980 fi 2981 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1976 2982 ac_cv_c_compiler_gnu=$ac_compiler_gnu 1977 2983 1978 2984 fi 1979 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 1980 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 1981 GCC=`test $ac_compiler_gnu = yes && echo yes` 2985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 2986 $as_echo "$ac_cv_c_compiler_gnu" >&6; } 2987 if test $ac_compiler_gnu = yes; then 2988 GCC=yes 2989 else 2990 GCC= 2991 fi 1982 2992 ac_test_CFLAGS=${CFLAGS+set} 1983 2993 ac_save_CFLAGS=$CFLAGS 1984 CFLAGS="-g" 1985 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 1986 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 1987 if test "${ac_cv_prog_cc_g+set}" = set; then 1988 echo $ECHO_N "(cached) $ECHO_C" >&6 1989 else 1990 cat >conftest.$ac_ext <<_ACEOF 1991 /* confdefs.h. */ 1992 _ACEOF 1993 cat confdefs.h >>conftest.$ac_ext 1994 cat >>conftest.$ac_ext <<_ACEOF 2994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 2995 $as_echo_n "checking whether $CC accepts -g... " >&6; } 2996 if ${ac_cv_prog_cc_g+:} false; then : 2997 $as_echo_n "(cached) " >&6 2998 else 2999 ac_save_c_werror_flag=$ac_c_werror_flag 3000 ac_c_werror_flag=yes 3001 ac_cv_prog_cc_g=no 3002 CFLAGS="-g" 3003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1995 3004 /* end confdefs.h. */ 1996 3005 … … 2003 3012 } 2004 3013 _ACEOF 2005 rm -f conftest.$ac_objext 2006 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2007 (eval $ac_compile) 2>conftest.er1 2008 ac_status=$? 2009 grep -v '^ *+' conftest.er1 >conftest.err 2010 rm -f conftest.er1 2011 cat conftest.err >&5 2012 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2013 (exit $ac_status); } && 2014 { ac_try='test -z "$ac_c_werror_flag" 2015 || test ! -s conftest.err' 2016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2017 (eval $ac_try) 2>&5 2018 ac_status=$? 2019 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2020 (exit $ac_status); }; } && 2021 { ac_try='test -s conftest.$ac_objext' 2022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2023 (eval $ac_try) 2>&5 2024 ac_status=$? 2025 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2026 (exit $ac_status); }; }; then 3014 if ac_fn_c_try_compile "$LINENO"; then : 2027 3015 ac_cv_prog_cc_g=yes 2028 3016 else 2029 echo "$as_me: failed program was:" >&5 2030 sed 's/^/| /' conftest.$ac_ext >&5 2031 2032 ac_cv_prog_cc_g=no 2033 fi 2034 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2035 fi 2036 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 2037 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 3017 CFLAGS="" 3018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3019 /* end confdefs.h. */ 3020 3021 int 3022 main () 3023 { 3024 3025 ; 3026 return 0; 3027 } 3028 _ACEOF 3029 if ac_fn_c_try_compile "$LINENO"; then : 3030 3031 else 3032 ac_c_werror_flag=$ac_save_c_werror_flag 3033 CFLAGS="-g" 3034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3035 /* end confdefs.h. */ 3036 3037 int 3038 main () 3039 { 3040 3041 ; 3042 return 0; 3043 } 3044 _ACEOF 3045 if ac_fn_c_try_compile "$LINENO"; then : 3046 ac_cv_prog_cc_g=yes 3047 fi 3048 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3049 fi 3050 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3051 fi 3052 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3053 ac_c_werror_flag=$ac_save_c_werror_flag 3054 fi 3055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3056 $as_echo "$ac_cv_prog_cc_g" >&6; } 2038 3057 if test "$ac_test_CFLAGS" = set; then 2039 3058 CFLAGS=$ac_save_CFLAGS … … 2051 3070 fi 2052 3071 fi 2053 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&52054 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 2055 if test "${ac_cv_prog_cc_stdc+set}" = set; then2056 echo $ECHO_N "(cached) $ECHO_C" >&62057 else 2058 ac_cv_prog_cc_ stdc=no3072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3073 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3074 if ${ac_cv_prog_cc_c89+:} false; then : 3075 $as_echo_n "(cached) " >&6 3076 else 3077 ac_cv_prog_cc_c89=no 2059 3078 ac_save_CC=$CC 2060 cat >conftest.$ac_ext <<_ACEOF 2061 /* confdefs.h. */ 2062 _ACEOF 2063 cat confdefs.h >>conftest.$ac_ext 2064 cat >>conftest.$ac_ext <<_ACEOF 3079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2065 3080 /* end confdefs.h. */ 2066 3081 #include <stdarg.h> 2067 3082 #include <stdio.h> 2068 #include <sys/types.h> 2069 #include <sys/stat.h> 3083 struct stat; 2070 3084 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 2071 3085 struct buf { int x; }; … … 2090 3104 function prototypes and stuff, but not '\xHH' hex character constants. 2091 3105 These don't provoke an error unfortunately, instead are silently treated 2092 as 'x'. The following induces an error, until -std 1is added to get3106 as 'x'. The following induces an error, until -std is added to get 2093 3107 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 2094 3108 array size at least. It's necessary to write '\x00'==0 to get something 2095 that's true only with -std 1. */3109 that's true only with -std. */ 2096 3110 int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3111 3112 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3113 inside strings and character constants. */ 3114 #define FOO(x) 'x' 3115 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 2097 3116 2098 3117 int test (int i, double x); … … 2110 3129 } 2111 3130 _ACEOF 2112 # Don't try gcc -ansi; that turns off useful extensions and 2113 # breaks some systems' header files. 2114 # AIX -qlanglvl=ansi 2115 # Ultrix and OSF/1 -std1 2116 # HP-UX 10.20 and later -Ae 2117 # HP-UX older versions -Aa -D_HPUX_SOURCE 2118 # SVR4 -Xc -D__EXTENSIONS__ 2119 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3131 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3132 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 2120 3133 do 2121 3134 CC="$ac_save_CC $ac_arg" 2122 rm -f conftest.$ac_objext 2123 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2124 (eval $ac_compile) 2>conftest.er1 2125 ac_status=$? 2126 grep -v '^ *+' conftest.er1 >conftest.err 2127 rm -f conftest.er1 2128 cat conftest.err >&5 2129 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2130 (exit $ac_status); } && 2131 { ac_try='test -z "$ac_c_werror_flag" 2132 || test ! -s conftest.err' 2133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2134 (eval $ac_try) 2>&5 2135 ac_status=$? 2136 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2137 (exit $ac_status); }; } && 2138 { ac_try='test -s conftest.$ac_objext' 2139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2140 (eval $ac_try) 2>&5 2141 ac_status=$? 2142 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2143 (exit $ac_status); }; }; then 2144 ac_cv_prog_cc_stdc=$ac_arg 2145 break 2146 else 2147 echo "$as_me: failed program was:" >&5 2148 sed 's/^/| /' conftest.$ac_ext >&5 2149 2150 fi 2151 rm -f conftest.err conftest.$ac_objext 3135 if ac_fn_c_try_compile "$LINENO"; then : 3136 ac_cv_prog_cc_c89=$ac_arg 3137 fi 3138 rm -f core conftest.err conftest.$ac_objext 3139 test "x$ac_cv_prog_cc_c89" != "xno" && break 2152 3140 done 2153 rm -f conftest.$ac_ext conftest.$ac_objext3141 rm -f conftest.$ac_ext 2154 3142 CC=$ac_save_CC 2155 3143 2156 3144 fi 2157 2158 case "x$ac_cv_prog_cc_stdc" in 2159 x|xno) 2160 echo "$as_me:$LINENO: result: none needed" >&5 2161 echo "${ECHO_T}none needed" >&6 ;; 3145 # AC_CACHE_VAL 3146 case "x$ac_cv_prog_cc_c89" in 3147 x) 3148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3149 $as_echo "none needed" >&6; } ;; 3150 xno) 3151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3152 $as_echo "unsupported" >&6; } ;; 2162 3153 *) 2163 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&52164 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 2165 CC="$CC $ac_cv_prog_cc_stdc";;3154 CC="$CC $ac_cv_prog_cc_c89" 3155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3156 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 2166 3157 esac 2167 2168 # Some people use a C++ compiler to compile C. Since we use `exit', 2169 # in C++ we need to declare it. In case someone uses the same compiler 2170 # for both compiling C and C++ we need to have the C++ compiler decide 2171 # the declaration of exit, since it's the most demanding environment. 2172 cat >conftest.$ac_ext <<_ACEOF 2173 #ifndef __cplusplus 2174 choke me 2175 #endif 2176 _ACEOF 2177 rm -f conftest.$ac_objext 2178 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2179 (eval $ac_compile) 2>conftest.er1 2180 ac_status=$? 2181 grep -v '^ *+' conftest.er1 >conftest.err 2182 rm -f conftest.er1 2183 cat conftest.err >&5 2184 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2185 (exit $ac_status); } && 2186 { ac_try='test -z "$ac_c_werror_flag" 2187 || test ! -s conftest.err' 2188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2189 (eval $ac_try) 2>&5 2190 ac_status=$? 2191 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2192 (exit $ac_status); }; } && 2193 { ac_try='test -s conftest.$ac_objext' 2194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2195 (eval $ac_try) 2>&5 2196 ac_status=$? 2197 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2198 (exit $ac_status); }; }; then 2199 for ac_declaration in \ 2200 '' \ 2201 'extern "C" void std::exit (int) throw (); using std::exit;' \ 2202 'extern "C" void std::exit (int); using std::exit;' \ 2203 'extern "C" void exit (int) throw ();' \ 2204 'extern "C" void exit (int);' \ 2205 'void exit (int);' 2206 do 2207 cat >conftest.$ac_ext <<_ACEOF 2208 /* confdefs.h. */ 2209 _ACEOF 2210 cat confdefs.h >>conftest.$ac_ext 2211 cat >>conftest.$ac_ext <<_ACEOF 2212 /* end confdefs.h. */ 2213 $ac_declaration 2214 #include <stdlib.h> 2215 int 2216 main () 2217 { 2218 exit (42); 2219 ; 2220 return 0; 2221 } 2222 _ACEOF 2223 rm -f conftest.$ac_objext 2224 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2225 (eval $ac_compile) 2>conftest.er1 2226 ac_status=$? 2227 grep -v '^ *+' conftest.er1 >conftest.err 2228 rm -f conftest.er1 2229 cat conftest.err >&5 2230 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2231 (exit $ac_status); } && 2232 { ac_try='test -z "$ac_c_werror_flag" 2233 || test ! -s conftest.err' 2234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2235 (eval $ac_try) 2>&5 2236 ac_status=$? 2237 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2238 (exit $ac_status); }; } && 2239 { ac_try='test -s conftest.$ac_objext' 2240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2241 (eval $ac_try) 2>&5 2242 ac_status=$? 2243 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2244 (exit $ac_status); }; }; then 2245 : 2246 else 2247 echo "$as_me: failed program was:" >&5 2248 sed 's/^/| /' conftest.$ac_ext >&5 2249 2250 continue 2251 fi 2252 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2253 cat >conftest.$ac_ext <<_ACEOF 2254 /* confdefs.h. */ 2255 _ACEOF 2256 cat confdefs.h >>conftest.$ac_ext 2257 cat >>conftest.$ac_ext <<_ACEOF 2258 /* end confdefs.h. */ 2259 $ac_declaration 2260 int 2261 main () 2262 { 2263 exit (42); 2264 ; 2265 return 0; 2266 } 2267 _ACEOF 2268 rm -f conftest.$ac_objext 2269 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2270 (eval $ac_compile) 2>conftest.er1 2271 ac_status=$? 2272 grep -v '^ *+' conftest.er1 >conftest.err 2273 rm -f conftest.er1 2274 cat conftest.err >&5 2275 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2276 (exit $ac_status); } && 2277 { ac_try='test -z "$ac_c_werror_flag" 2278 || test ! -s conftest.err' 2279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2280 (eval $ac_try) 2>&5 2281 ac_status=$? 2282 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2283 (exit $ac_status); }; } && 2284 { ac_try='test -s conftest.$ac_objext' 2285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2286 (eval $ac_try) 2>&5 2287 ac_status=$? 2288 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2289 (exit $ac_status); }; }; then 2290 break 2291 else 2292 echo "$as_me: failed program was:" >&5 2293 sed 's/^/| /' conftest.$ac_ext >&5 2294 2295 fi 2296 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2297 done 2298 rm -f conftest* 2299 if test -n "$ac_declaration"; then 2300 echo '#ifdef __cplusplus' >>confdefs.h 2301 echo $ac_declaration >>confdefs.h 2302 echo '#endif' >>confdefs.h 2303 fi 2304 2305 else 2306 echo "$as_me: failed program was:" >&5 2307 sed 's/^/| /' conftest.$ac_ext >&5 2308 2309 fi 2310 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3158 if test "x$ac_cv_prog_cc_c89" != xno; then : 3159 3160 fi 3161 2311 3162 ac_ext=c 2312 3163 ac_cpp='$CPP $CPPFLAGS' … … 2315 3166 ac_compiler_gnu=$ac_cv_c_compiler_gnu 2316 3167 3168 3169 if test -n "$ac_tool_prefix"; then 3170 for ac_prog in ar lib "link -lib" 3171 do 3172 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3173 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3175 $as_echo_n "checking for $ac_word... " >&6; } 3176 if ${ac_cv_prog_AR+:} false; then : 3177 $as_echo_n "(cached) " >&6 3178 else 3179 if test -n "$AR"; then 3180 ac_cv_prog_AR="$AR" # Let the user override the test. 3181 else 3182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3183 for as_dir in $PATH 3184 do 3185 IFS=$as_save_IFS 3186 test -z "$as_dir" && as_dir=. 3187 for ac_exec_ext in '' $ac_executable_extensions; do 3188 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3189 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 3190 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3191 break 2 3192 fi 3193 done 3194 done 3195 IFS=$as_save_IFS 3196 3197 fi 3198 fi 3199 AR=$ac_cv_prog_AR 3200 if test -n "$AR"; then 3201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 3202 $as_echo "$AR" >&6; } 3203 else 3204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3205 $as_echo "no" >&6; } 3206 fi 3207 3208 3209 test -n "$AR" && break 3210 done 3211 fi 3212 if test -z "$AR"; then 3213 ac_ct_AR=$AR 3214 for ac_prog in ar lib "link -lib" 3215 do 3216 # Extract the first word of "$ac_prog", so it can be a program name with args. 3217 set dummy $ac_prog; ac_word=$2 3218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3219 $as_echo_n "checking for $ac_word... " >&6; } 3220 if ${ac_cv_prog_ac_ct_AR+:} false; then : 3221 $as_echo_n "(cached) " >&6 3222 else 3223 if test -n "$ac_ct_AR"; then 3224 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 3225 else 3226 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3227 for as_dir in $PATH 3228 do 3229 IFS=$as_save_IFS 3230 test -z "$as_dir" && as_dir=. 3231 for ac_exec_ext in '' $ac_executable_extensions; do 3232 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3233 ac_cv_prog_ac_ct_AR="$ac_prog" 3234 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3235 break 2 3236 fi 3237 done 3238 done 3239 IFS=$as_save_IFS 3240 3241 fi 3242 fi 3243 ac_ct_AR=$ac_cv_prog_ac_ct_AR 3244 if test -n "$ac_ct_AR"; then 3245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 3246 $as_echo "$ac_ct_AR" >&6; } 3247 else 3248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3249 $as_echo "no" >&6; } 3250 fi 3251 3252 3253 test -n "$ac_ct_AR" && break 3254 done 3255 3256 if test "x$ac_ct_AR" = x; then 3257 AR="false" 3258 else 3259 case $cross_compiling:$ac_tool_warned in 3260 yes:) 3261 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3262 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3263 ac_tool_warned=yes ;; 3264 esac 3265 AR=$ac_ct_AR 3266 fi 3267 fi 3268 3269 : ${AR=ar} 3270 3271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5 3272 $as_echo_n "checking the archiver ($AR) interface... " >&6; } 3273 if ${am_cv_ar_interface+:} false; then : 3274 $as_echo_n "(cached) " >&6 3275 else 3276 ac_ext=c 3277 ac_cpp='$CPP $CPPFLAGS' 3278 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3279 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3280 ac_compiler_gnu=$ac_cv_c_compiler_gnu 3281 3282 am_cv_ar_interface=ar 3283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3284 /* end confdefs.h. */ 3285 int some_variable = 0; 3286 _ACEOF 3287 if ac_fn_c_try_compile "$LINENO"; then : 3288 am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5' 3289 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5 3290 (eval $am_ar_try) 2>&5 3291 ac_status=$? 3292 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3293 test $ac_status = 0; } 3294 if test "$ac_status" -eq 0; then 3295 am_cv_ar_interface=ar 3296 else 3297 am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5' 3298 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5 3299 (eval $am_ar_try) 2>&5 3300 ac_status=$? 3301 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3302 test $ac_status = 0; } 3303 if test "$ac_status" -eq 0; then 3304 am_cv_ar_interface=lib 3305 else 3306 am_cv_ar_interface=unknown 3307 fi 3308 fi 3309 rm -f conftest.lib libconftest.a 3310 3311 fi 3312 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3313 ac_ext=c 3314 ac_cpp='$CPP $CPPFLAGS' 3315 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3316 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3317 ac_compiler_gnu=$ac_cv_c_compiler_gnu 3318 3319 fi 3320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5 3321 $as_echo "$am_cv_ar_interface" >&6; } 3322 3323 case $am_cv_ar_interface in 3324 ar) 3325 ;; 3326 lib) 3327 # Microsoft lib, so override with the ar-lib wrapper script. 3328 # FIXME: It is wrong to rewrite AR. 3329 # But if we don't then we get into trouble of one sort or another. 3330 # A longer-term fix would be to have automake use am__AR in this case, 3331 # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something 3332 # similar. 3333 AR="$am_aux_dir/ar-lib $AR" 3334 ;; 3335 unknown) 3336 as_fn_error $? "could not determine $AR interface" "$LINENO" 5 3337 ;; 3338 esac 3339 3340 if test -n "$ac_tool_prefix"; then 3341 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 3342 set dummy ${ac_tool_prefix}ranlib; ac_word=$2 3343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3344 $as_echo_n "checking for $ac_word... " >&6; } 3345 if ${ac_cv_prog_RANLIB+:} false; then : 3346 $as_echo_n "(cached) " >&6 3347 else 3348 if test -n "$RANLIB"; then 3349 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 3350 else 3351 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3352 for as_dir in $PATH 3353 do 3354 IFS=$as_save_IFS 3355 test -z "$as_dir" && as_dir=. 3356 for ac_exec_ext in '' $ac_executable_extensions; do 3357 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3358 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 3359 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3360 break 2 3361 fi 3362 done 3363 done 3364 IFS=$as_save_IFS 3365 3366 fi 3367 fi 3368 RANLIB=$ac_cv_prog_RANLIB 3369 if test -n "$RANLIB"; then 3370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 3371 $as_echo "$RANLIB" >&6; } 3372 else 3373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3374 $as_echo "no" >&6; } 3375 fi 3376 3377 3378 fi 3379 if test -z "$ac_cv_prog_RANLIB"; then 3380 ac_ct_RANLIB=$RANLIB 3381 # Extract the first word of "ranlib", so it can be a program name with args. 3382 set dummy ranlib; ac_word=$2 3383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3384 $as_echo_n "checking for $ac_word... " >&6; } 3385 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 3386 $as_echo_n "(cached) " >&6 3387 else 3388 if test -n "$ac_ct_RANLIB"; then 3389 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 3390 else 3391 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3392 for as_dir in $PATH 3393 do 3394 IFS=$as_save_IFS 3395 test -z "$as_dir" && as_dir=. 3396 for ac_exec_ext in '' $ac_executable_extensions; do 3397 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3398 ac_cv_prog_ac_ct_RANLIB="ranlib" 3399 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3400 break 2 3401 fi 3402 done 3403 done 3404 IFS=$as_save_IFS 3405 3406 fi 3407 fi 3408 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 3409 if test -n "$ac_ct_RANLIB"; then 3410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 3411 $as_echo "$ac_ct_RANLIB" >&6; } 3412 else 3413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3414 $as_echo "no" >&6; } 3415 fi 3416 3417 if test "x$ac_ct_RANLIB" = x; then 3418 RANLIB=":" 3419 else 3420 case $cross_compiling:$ac_tool_warned in 3421 yes:) 3422 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3423 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3424 ac_tool_warned=yes ;; 3425 esac 3426 RANLIB=$ac_ct_RANLIB 3427 fi 3428 else 3429 RANLIB="$ac_cv_prog_RANLIB" 3430 fi 3431 3432 ac_ext=c 3433 ac_cpp='$CPP $CPPFLAGS' 3434 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3435 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3436 ac_compiler_gnu=$ac_cv_c_compiler_gnu 3437 if test -n "$ac_tool_prefix"; then 3438 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3439 set dummy ${ac_tool_prefix}gcc; ac_word=$2 3440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3441 $as_echo_n "checking for $ac_word... " >&6; } 3442 if ${ac_cv_prog_CC+:} false; then : 3443 $as_echo_n "(cached) " >&6 3444 else 3445 if test -n "$CC"; then 3446 ac_cv_prog_CC="$CC" # Let the user override the test. 3447 else 3448 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3449 for as_dir in $PATH 3450 do 3451 IFS=$as_save_IFS 3452 test -z "$as_dir" && as_dir=. 3453 for ac_exec_ext in '' $ac_executable_extensions; do 3454 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3455 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3456 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3457 break 2 3458 fi 3459 done 3460 done 3461 IFS=$as_save_IFS 3462 3463 fi 3464 fi 3465 CC=$ac_cv_prog_CC 3466 if test -n "$CC"; then 3467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3468 $as_echo "$CC" >&6; } 3469 else 3470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3471 $as_echo "no" >&6; } 3472 fi 3473 3474 3475 fi 3476 if test -z "$ac_cv_prog_CC"; then 3477 ac_ct_CC=$CC 3478 # Extract the first word of "gcc", so it can be a program name with args. 3479 set dummy gcc; ac_word=$2 3480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3481 $as_echo_n "checking for $ac_word... " >&6; } 3482 if ${ac_cv_prog_ac_ct_CC+:} false; then : 3483 $as_echo_n "(cached) " >&6 3484 else 3485 if test -n "$ac_ct_CC"; then 3486 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3487 else 3488 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3489 for as_dir in $PATH 3490 do 3491 IFS=$as_save_IFS 3492 test -z "$as_dir" && as_dir=. 3493 for ac_exec_ext in '' $ac_executable_extensions; do 3494 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3495 ac_cv_prog_ac_ct_CC="gcc" 3496 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3497 break 2 3498 fi 3499 done 3500 done 3501 IFS=$as_save_IFS 3502 3503 fi 3504 fi 3505 ac_ct_CC=$ac_cv_prog_ac_ct_CC 3506 if test -n "$ac_ct_CC"; then 3507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3508 $as_echo "$ac_ct_CC" >&6; } 3509 else 3510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3511 $as_echo "no" >&6; } 3512 fi 3513 3514 if test "x$ac_ct_CC" = x; then 3515 CC="" 3516 else 3517 case $cross_compiling:$ac_tool_warned in 3518 yes:) 3519 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3520 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3521 ac_tool_warned=yes ;; 3522 esac 3523 CC=$ac_ct_CC 3524 fi 3525 else 3526 CC="$ac_cv_prog_CC" 3527 fi 3528 3529 if test -z "$CC"; then 3530 if test -n "$ac_tool_prefix"; then 3531 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3532 set dummy ${ac_tool_prefix}cc; ac_word=$2 3533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3534 $as_echo_n "checking for $ac_word... " >&6; } 3535 if ${ac_cv_prog_CC+:} false; then : 3536 $as_echo_n "(cached) " >&6 3537 else 3538 if test -n "$CC"; then 3539 ac_cv_prog_CC="$CC" # Let the user override the test. 3540 else 3541 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3542 for as_dir in $PATH 3543 do 3544 IFS=$as_save_IFS 3545 test -z "$as_dir" && as_dir=. 3546 for ac_exec_ext in '' $ac_executable_extensions; do 3547 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3548 ac_cv_prog_CC="${ac_tool_prefix}cc" 3549 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3550 break 2 3551 fi 3552 done 3553 done 3554 IFS=$as_save_IFS 3555 3556 fi 3557 fi 3558 CC=$ac_cv_prog_CC 3559 if test -n "$CC"; then 3560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3561 $as_echo "$CC" >&6; } 3562 else 3563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3564 $as_echo "no" >&6; } 3565 fi 3566 3567 3568 fi 3569 fi 3570 if test -z "$CC"; then 3571 # Extract the first word of "cc", so it can be a program name with args. 3572 set dummy cc; ac_word=$2 3573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3574 $as_echo_n "checking for $ac_word... " >&6; } 3575 if ${ac_cv_prog_CC+:} false; then : 3576 $as_echo_n "(cached) " >&6 3577 else 3578 if test -n "$CC"; then 3579 ac_cv_prog_CC="$CC" # Let the user override the test. 3580 else 3581 ac_prog_rejected=no 3582 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3583 for as_dir in $PATH 3584 do 3585 IFS=$as_save_IFS 3586 test -z "$as_dir" && as_dir=. 3587 for ac_exec_ext in '' $ac_executable_extensions; do 3588 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3589 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3590 ac_prog_rejected=yes 3591 continue 3592 fi 3593 ac_cv_prog_CC="cc" 3594 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3595 break 2 3596 fi 3597 done 3598 done 3599 IFS=$as_save_IFS 3600 3601 if test $ac_prog_rejected = yes; then 3602 # We found a bogon in the path, so make sure we never use it. 3603 set dummy $ac_cv_prog_CC 3604 shift 3605 if test $# != 0; then 3606 # We chose a different compiler from the bogus one. 3607 # However, it has the same basename, so the bogon will be chosen 3608 # first if we set CC to just the basename; use the full file name. 3609 shift 3610 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3611 fi 3612 fi 3613 fi 3614 fi 3615 CC=$ac_cv_prog_CC 3616 if test -n "$CC"; then 3617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3618 $as_echo "$CC" >&6; } 3619 else 3620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3621 $as_echo "no" >&6; } 3622 fi 3623 3624 3625 fi 3626 if test -z "$CC"; then 3627 if test -n "$ac_tool_prefix"; then 3628 for ac_prog in cl.exe 3629 do 3630 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3631 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3633 $as_echo_n "checking for $ac_word... " >&6; } 3634 if ${ac_cv_prog_CC+:} false; then : 3635 $as_echo_n "(cached) " >&6 3636 else 3637 if test -n "$CC"; then 3638 ac_cv_prog_CC="$CC" # Let the user override the test. 3639 else 3640 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3641 for as_dir in $PATH 3642 do 3643 IFS=$as_save_IFS 3644 test -z "$as_dir" && as_dir=. 3645 for ac_exec_ext in '' $ac_executable_extensions; do 3646 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3647 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3648 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3649 break 2 3650 fi 3651 done 3652 done 3653 IFS=$as_save_IFS 3654 3655 fi 3656 fi 3657 CC=$ac_cv_prog_CC 3658 if test -n "$CC"; then 3659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3660 $as_echo "$CC" >&6; } 3661 else 3662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3663 $as_echo "no" >&6; } 3664 fi 3665 3666 3667 test -n "$CC" && break 3668 done 3669 fi 3670 if test -z "$CC"; then 3671 ac_ct_CC=$CC 3672 for ac_prog in cl.exe 3673 do 3674 # Extract the first word of "$ac_prog", so it can be a program name with args. 3675 set dummy $ac_prog; ac_word=$2 3676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3677 $as_echo_n "checking for $ac_word... " >&6; } 3678 if ${ac_cv_prog_ac_ct_CC+:} false; then : 3679 $as_echo_n "(cached) " >&6 3680 else 3681 if test -n "$ac_ct_CC"; then 3682 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3683 else 3684 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3685 for as_dir in $PATH 3686 do 3687 IFS=$as_save_IFS 3688 test -z "$as_dir" && as_dir=. 3689 for ac_exec_ext in '' $ac_executable_extensions; do 3690 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3691 ac_cv_prog_ac_ct_CC="$ac_prog" 3692 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3693 break 2 3694 fi 3695 done 3696 done 3697 IFS=$as_save_IFS 3698 3699 fi 3700 fi 3701 ac_ct_CC=$ac_cv_prog_ac_ct_CC 3702 if test -n "$ac_ct_CC"; then 3703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3704 $as_echo "$ac_ct_CC" >&6; } 3705 else 3706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3707 $as_echo "no" >&6; } 3708 fi 3709 3710 3711 test -n "$ac_ct_CC" && break 3712 done 3713 3714 if test "x$ac_ct_CC" = x; then 3715 CC="" 3716 else 3717 case $cross_compiling:$ac_tool_warned in 3718 yes:) 3719 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3720 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3721 ac_tool_warned=yes ;; 3722 esac 3723 CC=$ac_ct_CC 3724 fi 3725 fi 3726 3727 fi 3728 3729 3730 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3731 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3732 as_fn_error $? "no acceptable C compiler found in \$PATH 3733 See \`config.log' for more details" "$LINENO" 5; } 3734 3735 # Provide some information about the compiler. 3736 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3737 set X $ac_compile 3738 ac_compiler=$2 3739 for ac_option in --version -v -V -qversion; do 3740 { { ac_try="$ac_compiler $ac_option >&5" 3741 case "(($ac_try" in 3742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3743 *) ac_try_echo=$ac_try;; 3744 esac 3745 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3746 $as_echo "$ac_try_echo"; } >&5 3747 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3748 ac_status=$? 3749 if test -s conftest.err; then 3750 sed '10a\ 3751 ... rest of stderr output deleted ... 3752 10q' conftest.err >conftest.er1 3753 cat conftest.er1 >&5 3754 fi 3755 rm -f conftest.er1 conftest.err 3756 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3757 test $ac_status = 0; } 3758 done 3759 3760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3761 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3762 if ${ac_cv_c_compiler_gnu+:} false; then : 3763 $as_echo_n "(cached) " >&6 3764 else 3765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3766 /* end confdefs.h. */ 3767 3768 int 3769 main () 3770 { 3771 #ifndef __GNUC__ 3772 choke me 3773 #endif 3774 3775 ; 3776 return 0; 3777 } 3778 _ACEOF 3779 if ac_fn_c_try_compile "$LINENO"; then : 3780 ac_compiler_gnu=yes 3781 else 3782 ac_compiler_gnu=no 3783 fi 3784 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3785 ac_cv_c_compiler_gnu=$ac_compiler_gnu 3786 3787 fi 3788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3789 $as_echo "$ac_cv_c_compiler_gnu" >&6; } 3790 if test $ac_compiler_gnu = yes; then 3791 GCC=yes 3792 else 3793 GCC= 3794 fi 3795 ac_test_CFLAGS=${CFLAGS+set} 3796 ac_save_CFLAGS=$CFLAGS 3797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3798 $as_echo_n "checking whether $CC accepts -g... " >&6; } 3799 if ${ac_cv_prog_cc_g+:} false; then : 3800 $as_echo_n "(cached) " >&6 3801 else 3802 ac_save_c_werror_flag=$ac_c_werror_flag 3803 ac_c_werror_flag=yes 3804 ac_cv_prog_cc_g=no 3805 CFLAGS="-g" 3806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3807 /* end confdefs.h. */ 3808 3809 int 3810 main () 3811 { 3812 3813 ; 3814 return 0; 3815 } 3816 _ACEOF 3817 if ac_fn_c_try_compile "$LINENO"; then : 3818 ac_cv_prog_cc_g=yes 3819 else 3820 CFLAGS="" 3821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3822 /* end confdefs.h. */ 3823 3824 int 3825 main () 3826 { 3827 3828 ; 3829 return 0; 3830 } 3831 _ACEOF 3832 if ac_fn_c_try_compile "$LINENO"; then : 3833 3834 else 3835 ac_c_werror_flag=$ac_save_c_werror_flag 3836 CFLAGS="-g" 3837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3838 /* end confdefs.h. */ 3839 3840 int 3841 main () 3842 { 3843 3844 ; 3845 return 0; 3846 } 3847 _ACEOF 3848 if ac_fn_c_try_compile "$LINENO"; then : 3849 ac_cv_prog_cc_g=yes 3850 fi 3851 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3852 fi 3853 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3854 fi 3855 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3856 ac_c_werror_flag=$ac_save_c_werror_flag 3857 fi 3858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3859 $as_echo "$ac_cv_prog_cc_g" >&6; } 3860 if test "$ac_test_CFLAGS" = set; then 3861 CFLAGS=$ac_save_CFLAGS 3862 elif test $ac_cv_prog_cc_g = yes; then 3863 if test "$GCC" = yes; then 3864 CFLAGS="-g -O2" 3865 else 3866 CFLAGS="-g" 3867 fi 3868 else 3869 if test "$GCC" = yes; then 3870 CFLAGS="-O2" 3871 else 3872 CFLAGS= 3873 fi 3874 fi 3875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3876 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3877 if ${ac_cv_prog_cc_c89+:} false; then : 3878 $as_echo_n "(cached) " >&6 3879 else 3880 ac_cv_prog_cc_c89=no 3881 ac_save_CC=$CC 3882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3883 /* end confdefs.h. */ 3884 #include <stdarg.h> 3885 #include <stdio.h> 3886 struct stat; 3887 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3888 struct buf { int x; }; 3889 FILE * (*rcsopen) (struct buf *, struct stat *, int); 3890 static char *e (p, i) 3891 char **p; 3892 int i; 3893 { 3894 return p[i]; 3895 } 3896 static char *f (char * (*g) (char **, int), char **p, ...) 3897 { 3898 char *s; 3899 va_list v; 3900 va_start (v,p); 3901 s = g (p, va_arg (v,int)); 3902 va_end (v); 3903 return s; 3904 } 3905 3906 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3907 function prototypes and stuff, but not '\xHH' hex character constants. 3908 These don't provoke an error unfortunately, instead are silently treated 3909 as 'x'. The following induces an error, until -std is added to get 3910 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3911 array size at least. It's necessary to write '\x00'==0 to get something 3912 that's true only with -std. */ 3913 int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3914 3915 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3916 inside strings and character constants. */ 3917 #define FOO(x) 'x' 3918 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3919 3920 int test (int i, double x); 3921 struct s1 {int (*f) (int a);}; 3922 struct s2 {int (*f) (double a);}; 3923 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3924 int argc; 3925 char **argv; 3926 int 3927 main () 3928 { 3929 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3930 ; 3931 return 0; 3932 } 3933 _ACEOF 3934 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3935 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3936 do 3937 CC="$ac_save_CC $ac_arg" 3938 if ac_fn_c_try_compile "$LINENO"; then : 3939 ac_cv_prog_cc_c89=$ac_arg 3940 fi 3941 rm -f core conftest.err conftest.$ac_objext 3942 test "x$ac_cv_prog_cc_c89" != "xno" && break 3943 done 3944 rm -f conftest.$ac_ext 3945 CC=$ac_save_CC 3946 3947 fi 3948 # AC_CACHE_VAL 3949 case "x$ac_cv_prog_cc_c89" in 3950 x) 3951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3952 $as_echo "none needed" >&6; } ;; 3953 xno) 3954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3955 $as_echo "unsupported" >&6; } ;; 3956 *) 3957 CC="$CC $ac_cv_prog_cc_c89" 3958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3959 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3960 esac 3961 if test "x$ac_cv_prog_cc_c89" != xno; then : 3962 3963 fi 3964 3965 ac_ext=c 3966 ac_cpp='$CPP $CPPFLAGS' 3967 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3968 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3969 ac_compiler_gnu=$ac_cv_c_compiler_gnu 3970 2317 3971 ac_aux_dir= 2318 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do2319 if test -f $ac_dir/install-sh; then3972 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 3973 if test -f "$ac_dir/install-sh"; then 2320 3974 ac_aux_dir=$ac_dir 2321 3975 ac_install_sh="$ac_aux_dir/install-sh -c" 2322 3976 break 2323 elif test -f $ac_dir/install.sh; then3977 elif test -f "$ac_dir/install.sh"; then 2324 3978 ac_aux_dir=$ac_dir 2325 3979 ac_install_sh="$ac_aux_dir/install.sh -c" 2326 3980 break 2327 elif test -f $ac_dir/shtool; then3981 elif test -f "$ac_dir/shtool"; then 2328 3982 ac_aux_dir=$ac_dir 2329 3983 ac_install_sh="$ac_aux_dir/shtool install -c" … … 2332 3986 done 2333 3987 if test -z "$ac_aux_dir"; then 2334 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 2335 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} 2336 { (exit 1); exit 1; }; } 2337 fi 2338 ac_config_guess="$SHELL $ac_aux_dir/config.guess" 2339 ac_config_sub="$SHELL $ac_aux_dir/config.sub" 2340 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. 3988 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 3989 fi 3990 3991 # These three variables are undocumented and unsupported, 3992 # and are intended to be withdrawn in a future Autoconf release. 3993 # They can cause serious problems if a builder's source tree is in a directory 3994 # whose full name contains unusual characters. 3995 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 3996 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 3997 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 3998 2341 3999 2342 4000 # Find a good install program. We prefer a C program (faster), … … 2353 4011 # OS/2's system install, which has a completely different semantic 2354 4012 # ./install, which can be erroneously created by make from ./install.sh. 2355 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 2356 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 4013 # Reject install programs that cannot install multiple files. 4014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 4015 $as_echo_n "checking for a BSD-compatible install... " >&6; } 2357 4016 if test -z "$INSTALL"; then 2358 if test "${ac_cv_path_install+set}" = set; then2359 echo $ECHO_N "(cached) $ECHO_C" >&64017 if ${ac_cv_path_install+:} false; then : 4018 $as_echo_n "(cached) " >&6 2360 4019 else 2361 4020 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR … … 2364 4023 IFS=$as_save_IFS 2365 4024 test -z "$as_dir" && as_dir=. 2366 # Account for people who put trailing slashes in PATH elements.2367 case $as_dir/ in 2368 ./ | .// | / cC/* | \4025 # Account for people who put trailing slashes in PATH elements. 4026 case $as_dir/ in #(( 4027 ./ | .// | /[cC]/* | \ 2369 4028 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2370 ?: \\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \4029 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2371 4030 /usr/ucb/* ) ;; 2372 4031 *) … … 2376 4035 for ac_prog in ginstall scoinst install; do 2377 4036 for ac_exec_ext in '' $ac_executable_extensions; do 2378 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then4037 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 2379 4038 if test $ac_prog = install && 2380 4039 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then … … 2386 4045 : 2387 4046 else 2388 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2389 break 3 4047 rm -rf conftest.one conftest.two conftest.dir 4048 echo one > conftest.one 4049 echo two > conftest.two 4050 mkdir conftest.dir 4051 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 4052 test -s conftest.one && test -s conftest.two && 4053 test -s conftest.dir/conftest.one && 4054 test -s conftest.dir/conftest.two 4055 then 4056 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 4057 break 3 4058 fi 2390 4059 fi 2391 4060 fi … … 2394 4063 ;; 2395 4064 esac 2396 done 2397 4065 4066 done 4067 IFS=$as_save_IFS 4068 4069 rm -rf conftest.one conftest.two conftest.dir 2398 4070 2399 4071 fi … … 2401 4073 INSTALL=$ac_cv_path_install 2402 4074 else 2403 # As a last resort, use the slow shell script. We don't cache a2404 # pathfor INSTALL within a source directory, because that will4075 # As a last resort, use the slow shell script. Don't cache a 4076 # value for INSTALL within a source directory, because that will 2405 4077 # break other packages using the cache if that directory is 2406 # removed, or if the path is relative.4078 # removed, or if the value is a relative name. 2407 4079 INSTALL=$ac_install_sh 2408 4080 fi 2409 4081 fi 2410 echo "$as_me:$LINENO: result: $INSTALL" >&52411 echo "${ECHO_T}$INSTALL" >&6 4082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 4083 $as_echo "$INSTALL" >&6; } 2412 4084 2413 4085 # Use test -z because SunOS4 sh mishandles braces in ${var-val}. … … 2418 4090 2419 4091 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2420 2421 2422 2423 # Check whether --enable-kernel-linux or --disable-kernel-linux was given.2424 if test "${enable_kernel_linux+set}" = set; then2425 enableval="$enable_kernel_linux"2426 2427 else2428 enable_kernel_linux=no2429 fi;2430 echo "$as_me:$LINENO: checking whether to build for Linux kernel context" >&52431 echo $ECHO_N "checking whether to build for Linux kernel context... $ECHO_C" >&62432 if test "$enable_kernel_linux" = "yes"; then2433 2434 cat >>confdefs.h <<\_ACEOF2435 #define SRTP_KERNEL 12436 _ACEOF2437 2438 2439 cat >>confdefs.h <<\_ACEOF2440 #define SRTP_KERNEL_LINUX 12441 _ACEOF2442 2443 fi2444 echo "$as_me:$LINENO: result: $enable_kernel_linux" >&52445 echo "${ECHO_T}$enable_kernel_linux" >&62446 2447 if test "$cross_compiling" != yes; then2448 echo "$as_me:$LINENO: checking for /dev/urandom" >&52449 echo $ECHO_N "checking for /dev/urandom... $ECHO_C" >&62450 if test "${ac_cv_file__dev_urandom+set}" = set; then2451 echo $ECHO_N "(cached) $ECHO_C" >&62452 else2453 test "$cross_compiling" = yes &&2454 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&52455 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}2456 { (exit 1); exit 1; }; }2457 if test -r "/dev/urandom"; then2458 ac_cv_file__dev_urandom=yes2459 else2460 ac_cv_file__dev_urandom=no2461 fi2462 fi2463 echo "$as_me:$LINENO: result: $ac_cv_file__dev_urandom" >&52464 echo "${ECHO_T}$ac_cv_file__dev_urandom" >&62465 if test $ac_cv_file__dev_urandom = yes; then2466 DEV_URANDOM=/dev/urandom2467 else2468 echo "$as_me:$LINENO: checking for /dev/random" >&52469 echo $ECHO_N "checking for /dev/random... $ECHO_C" >&62470 if test "${ac_cv_file__dev_random+set}" = set; then2471 echo $ECHO_N "(cached) $ECHO_C" >&62472 else2473 test "$cross_compiling" = yes &&2474 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&52475 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}2476 { (exit 1); exit 1; }; }2477 if test -r "/dev/random"; then2478 ac_cv_file__dev_random=yes2479 else2480 ac_cv_file__dev_random=no2481 fi2482 fi2483 echo "$as_me:$LINENO: result: $ac_cv_file__dev_random" >&52484 echo "${ECHO_T}$ac_cv_file__dev_random" >&62485 if test $ac_cv_file__dev_random = yes; then2486 DEV_URANDOM=/dev/random2487 fi2488 2489 fi2490 2491 fi2492 2493 echo "$as_me:$LINENO: checking which random device to use" >&52494 echo $ECHO_N "checking which random device to use... $ECHO_C" >&62495 if test "$enable_kernel_linux" = "yes"; then2496 RNG_OBJS=rand_linux_kernel.o2497 echo "$as_me:$LINENO: result: Linux kernel builtin" >&52498 echo "${ECHO_T}Linux kernel builtin" >&62499 else2500 RNG_OBJS=rand_source.o2501 if test -n "$DEV_URANDOM"; then2502 2503 cat >>confdefs.h <<_ACEOF2504 #define DEV_URANDOM "$DEV_URANDOM"2505 _ACEOF2506 2507 echo "$as_me:$LINENO: result: $DEV_URANDOM" >&52508 echo "${ECHO_T}$DEV_URANDOM" >&62509 else2510 echo "$as_me:$LINENO: result: standard rand() function..." >&52511 echo "${ECHO_T}standard rand() function..." >&62512 fi2513 fi2514 2515 2516 4092 2517 4093 … … 2521 4097 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2522 4098 ac_compiler_gnu=$ac_cv_c_compiler_gnu 2523 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&52524 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 4099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 4100 $as_echo_n "checking how to run the C preprocessor... " >&6; } 2525 4101 # On Suns, sometimes $CPP names a directory. 2526 4102 if test -n "$CPP" && test -d "$CPP"; then … … 2528 4104 fi 2529 4105 if test -z "$CPP"; then 2530 if test "${ac_cv_prog_CPP+set}" = set; then2531 echo $ECHO_N "(cached) $ECHO_C" >&64106 if ${ac_cv_prog_CPP+:} false; then : 4107 $as_echo_n "(cached) " >&6 2532 4108 else 2533 4109 # Double quotes because CPP needs to be expanded … … 2543 4119 # On the NeXT, cc -E runs the code through the compiler's parser, 2544 4120 # not just through cpp. "Syntax error" is here to catch this case. 2545 cat >conftest.$ac_ext <<_ACEOF 2546 /* confdefs.h. */ 2547 _ACEOF 2548 cat confdefs.h >>conftest.$ac_ext 2549 cat >>conftest.$ac_ext <<_ACEOF 4121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2550 4122 /* end confdefs.h. */ 2551 4123 #ifdef __STDC__ … … 2556 4128 Syntax error 2557 4129 _ACEOF 2558 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 2559 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 2560 ac_status=$? 2561 grep -v '^ *+' conftest.er1 >conftest.err 2562 rm -f conftest.er1 2563 cat conftest.err >&5 2564 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2565 (exit $ac_status); } >/dev/null; then 2566 if test -s conftest.err; then 2567 ac_cpp_err=$ac_c_preproc_warn_flag 2568 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 2569 else 2570 ac_cpp_err= 2571 fi 2572 else 2573 ac_cpp_err=yes 2574 fi 2575 if test -z "$ac_cpp_err"; then 2576 : 2577 else 2578 echo "$as_me: failed program was:" >&5 2579 sed 's/^/| /' conftest.$ac_ext >&5 2580 4130 if ac_fn_c_try_cpp "$LINENO"; then : 4131 4132 else 2581 4133 # Broken: fails on valid input. 2582 4134 continue 2583 4135 fi 2584 rm -f conftest.err conftest. $ac_ext2585 2586 # OK, works on sane cases. Now check whether non -existent headers4136 rm -f conftest.err conftest.i conftest.$ac_ext 4137 4138 # OK, works on sane cases. Now check whether nonexistent headers 2587 4139 # can be detected and how. 2588 cat >conftest.$ac_ext <<_ACEOF 2589 /* confdefs.h. */ 2590 _ACEOF 2591 cat confdefs.h >>conftest.$ac_ext 2592 cat >>conftest.$ac_ext <<_ACEOF 4140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2593 4141 /* end confdefs.h. */ 2594 4142 #include <ac_nonexistent.h> 2595 4143 _ACEOF 2596 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 2597 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 2598 ac_status=$? 2599 grep -v '^ *+' conftest.er1 >conftest.err 2600 rm -f conftest.er1 2601 cat conftest.err >&5 2602 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2603 (exit $ac_status); } >/dev/null; then 2604 if test -s conftest.err; then 2605 ac_cpp_err=$ac_c_preproc_warn_flag 2606 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 2607 else 2608 ac_cpp_err= 2609 fi 2610 else 2611 ac_cpp_err=yes 2612 fi 2613 if test -z "$ac_cpp_err"; then 4144 if ac_fn_c_try_cpp "$LINENO"; then : 2614 4145 # Broken: success on invalid input. 2615 4146 continue 2616 4147 else 2617 echo "$as_me: failed program was:" >&52618 sed 's/^/| /' conftest.$ac_ext >&52619 2620 4148 # Passes both tests. 2621 4149 ac_preproc_ok=: 2622 4150 break 2623 4151 fi 2624 rm -f conftest.err conftest. $ac_ext4152 rm -f conftest.err conftest.i conftest.$ac_ext 2625 4153 2626 4154 done 2627 4155 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 2628 rm -f conftest. err conftest.$ac_ext2629 if $ac_preproc_ok; then 4156 rm -f conftest.i conftest.err conftest.$ac_ext 4157 if $ac_preproc_ok; then : 2630 4158 break 2631 4159 fi … … 2639 4167 ac_cv_prog_CPP=$CPP 2640 4168 fi 2641 echo "$as_me:$LINENO: result: $CPP" >&52642 echo "${ECHO_T}$CPP" >&6 4169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 4170 $as_echo "$CPP" >&6; } 2643 4171 ac_preproc_ok=false 2644 4172 for ac_c_preproc_warn_flag in '' yes … … 2650 4178 # On the NeXT, cc -E runs the code through the compiler's parser, 2651 4179 # not just through cpp. "Syntax error" is here to catch this case. 2652 cat >conftest.$ac_ext <<_ACEOF 2653 /* confdefs.h. */ 2654 _ACEOF 2655 cat confdefs.h >>conftest.$ac_ext 2656 cat >>conftest.$ac_ext <<_ACEOF 4180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2657 4181 /* end confdefs.h. */ 2658 4182 #ifdef __STDC__ … … 2663 4187 Syntax error 2664 4188 _ACEOF 2665 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 2666 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 2667 ac_status=$? 2668 grep -v '^ *+' conftest.er1 >conftest.err 2669 rm -f conftest.er1 2670 cat conftest.err >&5 2671 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2672 (exit $ac_status); } >/dev/null; then 2673 if test -s conftest.err; then 2674 ac_cpp_err=$ac_c_preproc_warn_flag 2675 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 2676 else 2677 ac_cpp_err= 2678 fi 2679 else 2680 ac_cpp_err=yes 2681 fi 2682 if test -z "$ac_cpp_err"; then 2683 : 2684 else 2685 echo "$as_me: failed program was:" >&5 2686 sed 's/^/| /' conftest.$ac_ext >&5 2687 4189 if ac_fn_c_try_cpp "$LINENO"; then : 4190 4191 else 2688 4192 # Broken: fails on valid input. 2689 4193 continue 2690 4194 fi 2691 rm -f conftest.err conftest. $ac_ext2692 2693 # OK, works on sane cases. Now check whether non -existent headers4195 rm -f conftest.err conftest.i conftest.$ac_ext 4196 4197 # OK, works on sane cases. Now check whether nonexistent headers 2694 4198 # can be detected and how. 2695 cat >conftest.$ac_ext <<_ACEOF 2696 /* confdefs.h. */ 2697 _ACEOF 2698 cat confdefs.h >>conftest.$ac_ext 2699 cat >>conftest.$ac_ext <<_ACEOF 4199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2700 4200 /* end confdefs.h. */ 2701 4201 #include <ac_nonexistent.h> 2702 4202 _ACEOF 2703 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 2704 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 2705 ac_status=$? 2706 grep -v '^ *+' conftest.er1 >conftest.err 2707 rm -f conftest.er1 2708 cat conftest.err >&5 2709 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2710 (exit $ac_status); } >/dev/null; then 2711 if test -s conftest.err; then 2712 ac_cpp_err=$ac_c_preproc_warn_flag 2713 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 2714 else 2715 ac_cpp_err= 2716 fi 2717 else 2718 ac_cpp_err=yes 2719 fi 2720 if test -z "$ac_cpp_err"; then 4203 if ac_fn_c_try_cpp "$LINENO"; then : 2721 4204 # Broken: success on invalid input. 2722 4205 continue 2723 4206 else 2724 echo "$as_me: failed program was:" >&52725 sed 's/^/| /' conftest.$ac_ext >&52726 2727 4207 # Passes both tests. 2728 4208 ac_preproc_ok=: 2729 4209 break 2730 4210 fi 2731 rm -f conftest.err conftest. $ac_ext4211 rm -f conftest.err conftest.i conftest.$ac_ext 2732 4212 2733 4213 done 2734 4214 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 2735 rm -f conftest.err conftest.$ac_ext 2736 if $ac_preproc_ok; then 2737 : 2738 else 2739 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check 2740 See \`config.log' for more details." >&5 2741 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check 2742 See \`config.log' for more details." >&2;} 2743 { (exit 1); exit 1; }; } 4215 rm -f conftest.i conftest.err conftest.$ac_ext 4216 if $ac_preproc_ok; then : 4217 4218 else 4219 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4220 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4221 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 4222 See \`config.log' for more details" "$LINENO" 5; } 2744 4223 fi 2745 4224 … … 2751 4230 2752 4231 2753 echo "$as_me:$LINENO: checking for egrep" >&5 2754 echo $ECHO_N "checking for egrep... $ECHO_C" >&6 2755 if test "${ac_cv_prog_egrep+set}" = set; then 2756 echo $ECHO_N "(cached) $ECHO_C" >&6 2757 else 2758 if echo a | (grep -E '(a|b)') >/dev/null 2>&1 2759 then ac_cv_prog_egrep='grep -E' 2760 else ac_cv_prog_egrep='egrep' 4232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4233 $as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4234 if ${ac_cv_path_GREP+:} false; then : 4235 $as_echo_n "(cached) " >&6 4236 else 4237 if test -z "$GREP"; then 4238 ac_path_GREP_found=false 4239 # Loop through the user's path and test for each of PROGNAME-LIST 4240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4241 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4242 do 4243 IFS=$as_save_IFS 4244 test -z "$as_dir" && as_dir=. 4245 for ac_prog in grep ggrep; do 4246 for ac_exec_ext in '' $ac_executable_extensions; do 4247 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4248 as_fn_executable_p "$ac_path_GREP" || continue 4249 # Check for GNU ac_path_GREP and select it if it is found. 4250 # Check for GNU $ac_path_GREP 4251 case `"$ac_path_GREP" --version 2>&1` in 4252 *GNU*) 4253 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4254 *) 4255 ac_count=0 4256 $as_echo_n 0123456789 >"conftest.in" 4257 while : 4258 do 4259 cat "conftest.in" "conftest.in" >"conftest.tmp" 4260 mv "conftest.tmp" "conftest.in" 4261 cp "conftest.in" "conftest.nl" 4262 $as_echo 'GREP' >> "conftest.nl" 4263 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4264 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4265 as_fn_arith $ac_count + 1 && ac_count=$as_val 4266 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4267 # Best one so far, save it but keep looking for a better one 4268 ac_cv_path_GREP="$ac_path_GREP" 4269 ac_path_GREP_max=$ac_count 2761 4270 fi 2762 fi 2763 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 2764 echo "${ECHO_T}$ac_cv_prog_egrep" >&6 2765 EGREP=$ac_cv_prog_egrep 2766 2767 2768 echo "$as_me:$LINENO: checking for ANSI C header files" >&5 2769 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 2770 if test "${ac_cv_header_stdc+set}" = set; then 2771 echo $ECHO_N "(cached) $ECHO_C" >&6 2772 else 2773 cat >conftest.$ac_ext <<_ACEOF 2774 /* confdefs.h. */ 2775 _ACEOF 2776 cat confdefs.h >>conftest.$ac_ext 2777 cat >>conftest.$ac_ext <<_ACEOF 4271 # 10*(2^10) chars as input seems more than enough 4272 test $ac_count -gt 10 && break 4273 done 4274 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4275 esac 4276 4277 $ac_path_GREP_found && break 3 4278 done 4279 done 4280 done 4281 IFS=$as_save_IFS 4282 if test -z "$ac_cv_path_GREP"; then 4283 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4284 fi 4285 else 4286 ac_cv_path_GREP=$GREP 4287 fi 4288 4289 fi 4290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4291 $as_echo "$ac_cv_path_GREP" >&6; } 4292 GREP="$ac_cv_path_GREP" 4293 4294 4295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4296 $as_echo_n "checking for egrep... " >&6; } 4297 if ${ac_cv_path_EGREP+:} false; then : 4298 $as_echo_n "(cached) " >&6 4299 else 4300 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4301 then ac_cv_path_EGREP="$GREP -E" 4302 else 4303 if test -z "$EGREP"; then 4304 ac_path_EGREP_found=false 4305 # Loop through the user's path and test for each of PROGNAME-LIST 4306 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4307 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4308 do 4309 IFS=$as_save_IFS 4310 test -z "$as_dir" && as_dir=. 4311 for ac_prog in egrep; do 4312 for ac_exec_ext in '' $ac_executable_extensions; do 4313 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4314 as_fn_executable_p "$ac_path_EGREP" || continue 4315 # Check for GNU ac_path_EGREP and select it if it is found. 4316 # Check for GNU $ac_path_EGREP 4317 case `"$ac_path_EGREP" --version 2>&1` in 4318 *GNU*) 4319 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4320 *) 4321 ac_count=0 4322 $as_echo_n 0123456789 >"conftest.in" 4323 while : 4324 do 4325 cat "conftest.in" "conftest.in" >"conftest.tmp" 4326 mv "conftest.tmp" "conftest.in" 4327 cp "conftest.in" "conftest.nl" 4328 $as_echo 'EGREP' >> "conftest.nl" 4329 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4330 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4331 as_fn_arith $ac_count + 1 && ac_count=$as_val 4332 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4333 # Best one so far, save it but keep looking for a better one 4334 ac_cv_path_EGREP="$ac_path_EGREP" 4335 ac_path_EGREP_max=$ac_count 4336 fi 4337 # 10*(2^10) chars as input seems more than enough 4338 test $ac_count -gt 10 && break 4339 done 4340 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4341 esac 4342 4343 $ac_path_EGREP_found && break 3 4344 done 4345 done 4346 done 4347 IFS=$as_save_IFS 4348 if test -z "$ac_cv_path_EGREP"; then 4349 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4350 fi 4351 else 4352 ac_cv_path_EGREP=$EGREP 4353 fi 4354 4355 fi 4356 fi 4357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4358 $as_echo "$ac_cv_path_EGREP" >&6; } 4359 EGREP="$ac_cv_path_EGREP" 4360 4361 4362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 4363 $as_echo_n "checking for ANSI C header files... " >&6; } 4364 if ${ac_cv_header_stdc+:} false; then : 4365 $as_echo_n "(cached) " >&6 4366 else 4367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2778 4368 /* end confdefs.h. */ 2779 4369 #include <stdlib.h> … … 2790 4380 } 2791 4381 _ACEOF 2792 rm -f conftest.$ac_objext 2793 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2794 (eval $ac_compile) 2>conftest.er1 2795 ac_status=$? 2796 grep -v '^ *+' conftest.er1 >conftest.err 2797 rm -f conftest.er1 2798 cat conftest.err >&5 2799 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2800 (exit $ac_status); } && 2801 { ac_try='test -z "$ac_c_werror_flag" 2802 || test ! -s conftest.err' 2803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2804 (eval $ac_try) 2>&5 2805 ac_status=$? 2806 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2807 (exit $ac_status); }; } && 2808 { ac_try='test -s conftest.$ac_objext' 2809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2810 (eval $ac_try) 2>&5 2811 ac_status=$? 2812 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2813 (exit $ac_status); }; }; then 4382 if ac_fn_c_try_compile "$LINENO"; then : 2814 4383 ac_cv_header_stdc=yes 2815 4384 else 2816 echo "$as_me: failed program was:" >&5 2817 sed 's/^/| /' conftest.$ac_ext >&5 2818 2819 ac_cv_header_stdc=no 2820 fi 2821 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4385 ac_cv_header_stdc=no 4386 fi 4387 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2822 4388 2823 4389 if test $ac_cv_header_stdc = yes; then 2824 4390 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 2825 cat >conftest.$ac_ext <<_ACEOF 2826 /* confdefs.h. */ 2827 _ACEOF 2828 cat confdefs.h >>conftest.$ac_ext 2829 cat >>conftest.$ac_ext <<_ACEOF 4391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2830 4392 /* end confdefs.h. */ 2831 4393 #include <string.h> … … 2833 4395 _ACEOF 2834 4396 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 2835 $EGREP "memchr" >/dev/null 2>&1; then 2836 : 4397 $EGREP "memchr" >/dev/null 2>&1; then : 4398 2837 4399 else 2838 4400 ac_cv_header_stdc=no … … 2844 4406 if test $ac_cv_header_stdc = yes; then 2845 4407 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 2846 cat >conftest.$ac_ext <<_ACEOF 2847 /* confdefs.h. */ 2848 _ACEOF 2849 cat confdefs.h >>conftest.$ac_ext 2850 cat >>conftest.$ac_ext <<_ACEOF 4408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2851 4409 /* end confdefs.h. */ 2852 4410 #include <stdlib.h> … … 2854 4412 _ACEOF 2855 4413 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 2856 $EGREP "free" >/dev/null 2>&1; then 2857 : 4414 $EGREP "free" >/dev/null 2>&1; then : 4415 2858 4416 else 2859 4417 ac_cv_header_stdc=no … … 2865 4423 if test $ac_cv_header_stdc = yes; then 2866 4424 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 2867 if test "$cross_compiling" = yes; then 4425 if test "$cross_compiling" = yes; then : 2868 4426 : 2869 4427 else 2870 cat >conftest.$ac_ext <<_ACEOF 2871 /* confdefs.h. */ 2872 _ACEOF 2873 cat confdefs.h >>conftest.$ac_ext 2874 cat >>conftest.$ac_ext <<_ACEOF 4428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2875 4429 /* end confdefs.h. */ 2876 4430 #include <ctype.h> 4431 #include <stdlib.h> 2877 4432 #if ((' ' & 0x0FF) == 0x020) 2878 4433 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') … … 2894 4449 if (XOR (islower (i), ISLOWER (i)) 2895 4450 || toupper (i) != TOUPPER (i)) 2896 exit(2);2897 exit (0);4451 return 2; 4452 return 0; 2898 4453 } 2899 4454 _ACEOF 2900 rm -f conftest$ac_exeext 2901 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 2902 (eval $ac_link) 2>&5 2903 ac_status=$? 2904 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2905 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 2906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2907 (eval $ac_try) 2>&5 2908 ac_status=$? 2909 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2910 (exit $ac_status); }; }; then 2911 : 2912 else 2913 echo "$as_me: program exited with status $ac_status" >&5 2914 echo "$as_me: failed program was:" >&5 2915 sed 's/^/| /' conftest.$ac_ext >&5 2916 2917 ( exit $ac_status ) 2918 ac_cv_header_stdc=no 2919 fi 2920 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 2921 fi 2922 fi 2923 fi 2924 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 2925 echo "${ECHO_T}$ac_cv_header_stdc" >&6 4455 if ac_fn_c_try_run "$LINENO"; then : 4456 4457 else 4458 ac_cv_header_stdc=no 4459 fi 4460 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 4461 conftest.$ac_objext conftest.beam conftest.$ac_ext 4462 fi 4463 4464 fi 4465 fi 4466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 4467 $as_echo "$ac_cv_header_stdc" >&6; } 2926 4468 if test $ac_cv_header_stdc = yes; then 2927 4469 2928 cat >>confdefs.h <<\_ACEOF 2929 #define STDC_HEADERS 1 2930 _ACEOF 4470 $as_echo "#define STDC_HEADERS 1" >>confdefs.h 2931 4471 2932 4472 fi 2933 4473 2934 4474 # On IRIX 5.3, sys/types and inttypes.h are conflicting. 2935 2936 2937 2938 2939 2940 2941 2942 2943 2944 4475 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 2945 4476 inttypes.h stdint.h unistd.h 2946 do 2947 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 2948 echo "$as_me:$LINENO: checking for $ac_header" >&5 2949 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 2950 if eval "test \"\${$as_ac_Header+set}\" = set"; then 2951 echo $ECHO_N "(cached) $ECHO_C" >&6 2952 else 2953 cat >conftest.$ac_ext <<_ACEOF 2954 /* confdefs.h. */ 2955 _ACEOF 2956 cat confdefs.h >>conftest.$ac_ext 2957 cat >>conftest.$ac_ext <<_ACEOF 4477 do : 4478 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 4479 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 4480 " 4481 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 4482 cat >>confdefs.h <<_ACEOF 4483 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 4484 _ACEOF 4485 4486 fi 4487 4488 done 4489 4490 4491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 4492 $as_echo_n "checking whether byte ordering is bigendian... " >&6; } 4493 if ${ac_cv_c_bigendian+:} false; then : 4494 $as_echo_n "(cached) " >&6 4495 else 4496 ac_cv_c_bigendian=unknown 4497 # See if we're dealing with a universal compiler. 4498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2958 4499 /* end confdefs.h. */ 2959 $ac_includes_default 2960 2961 #include <$ac_header> 2962 _ACEOF 2963 rm -f conftest.$ac_objext 2964 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2965 (eval $ac_compile) 2>conftest.er1 2966 ac_status=$? 2967 grep -v '^ *+' conftest.er1 >conftest.err 2968 rm -f conftest.er1 2969 cat conftest.err >&5 2970 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2971 (exit $ac_status); } && 2972 { ac_try='test -z "$ac_c_werror_flag" 2973 || test ! -s conftest.err' 2974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2975 (eval $ac_try) 2>&5 2976 ac_status=$? 2977 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2978 (exit $ac_status); }; } && 2979 { ac_try='test -s conftest.$ac_objext' 2980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2981 (eval $ac_try) 2>&5 2982 ac_status=$? 2983 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2984 (exit $ac_status); }; }; then 2985 eval "$as_ac_Header=yes" 2986 else 2987 echo "$as_me: failed program was:" >&5 2988 sed 's/^/| /' conftest.$ac_ext >&5 2989 2990 eval "$as_ac_Header=no" 2991 fi 2992 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2993 fi 2994 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 2995 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 2996 if test `eval echo '${'$as_ac_Header'}'` = yes; then 2997 cat >>confdefs.h <<_ACEOF 2998 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 2999 _ACEOF 3000 3001 fi 3002 3003 done 3004 3005 3006 3007 for ac_header in stdlib.h 3008 do 3009 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 3010 if eval "test \"\${$as_ac_Header+set}\" = set"; then 3011 echo "$as_me:$LINENO: checking for $ac_header" >&5 3012 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 3013 if eval "test \"\${$as_ac_Header+set}\" = set"; then 3014 echo $ECHO_N "(cached) $ECHO_C" >&6 3015 fi 3016 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 3017 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 3018 else 3019 # Is the header compilable? 3020 echo "$as_me:$LINENO: checking $ac_header usability" >&5 3021 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 3022 cat >conftest.$ac_ext <<_ACEOF 3023 /* confdefs.h. */ 3024 _ACEOF 3025 cat confdefs.h >>conftest.$ac_ext 3026 cat >>conftest.$ac_ext <<_ACEOF 4500 #ifndef __APPLE_CC__ 4501 not a universal capable compiler 4502 #endif 4503 typedef int dummy; 4504 4505 _ACEOF 4506 if ac_fn_c_try_compile "$LINENO"; then : 4507 4508 # Check for potential -arch flags. It is not universal unless 4509 # there are at least two -arch flags with different values. 4510 ac_arch= 4511 ac_prev= 4512 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do 4513 if test -n "$ac_prev"; then 4514 case $ac_word in 4515 i?86 | x86_64 | ppc | ppc64) 4516 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then 4517 ac_arch=$ac_word 4518 else 4519 ac_cv_c_bigendian=universal 4520 break 4521 fi 4522 ;; 4523 esac 4524 ac_prev= 4525 elif test "x$ac_word" = "x-arch"; then 4526 ac_prev=arch 4527 fi 4528 done 4529 fi 4530 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4531 if test $ac_cv_c_bigendian = unknown; then 4532 # See if sys/param.h defines the BYTE_ORDER macro. 4533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3027 4534 /* end confdefs.h. */ 3028 $ac_includes_default 3029 #include <$ac_header> 3030 _ACEOF 3031 rm -f conftest.$ac_objext 3032 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3033 (eval $ac_compile) 2>conftest.er1 3034 ac_status=$? 3035 grep -v '^ *+' conftest.er1 >conftest.err 3036 rm -f conftest.er1 3037 cat conftest.err >&5 3038 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3039 (exit $ac_status); } && 3040 { ac_try='test -z "$ac_c_werror_flag" 3041 || test ! -s conftest.err' 3042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3043 (eval $ac_try) 2>&5 3044 ac_status=$? 3045 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3046 (exit $ac_status); }; } && 3047 { ac_try='test -s conftest.$ac_objext' 3048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3049 (eval $ac_try) 2>&5 3050 ac_status=$? 3051 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3052 (exit $ac_status); }; }; then 3053 ac_header_compiler=yes 3054 else 3055 echo "$as_me: failed program was:" >&5 3056 sed 's/^/| /' conftest.$ac_ext >&5 3057 3058 ac_header_compiler=no 3059 fi 3060 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3061 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 3062 echo "${ECHO_T}$ac_header_compiler" >&6 3063 3064 # Is the header present? 3065 echo "$as_me:$LINENO: checking $ac_header presence" >&5 3066 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 3067 cat >conftest.$ac_ext <<_ACEOF 3068 /* confdefs.h. */ 3069 _ACEOF 3070 cat confdefs.h >>conftest.$ac_ext 3071 cat >>conftest.$ac_ext <<_ACEOF 4535 #include <sys/types.h> 4536 #include <sys/param.h> 4537 4538 int 4539 main () 4540 { 4541 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ 4542 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ 4543 && LITTLE_ENDIAN) 4544 bogus endian macros 4545 #endif 4546 4547 ; 4548 return 0; 4549 } 4550 _ACEOF 4551 if ac_fn_c_try_compile "$LINENO"; then : 4552 # It does; now see whether it defined to BIG_ENDIAN or not. 4553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3072 4554 /* end confdefs.h. */ 3073 #include <$ac_header> 3074 _ACEOF 3075 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 3076 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 3077 ac_status=$? 3078 grep -v '^ *+' conftest.er1 >conftest.err 3079 rm -f conftest.er1 3080 cat conftest.err >&5 3081 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3082 (exit $ac_status); } >/dev/null; then 3083 if test -s conftest.err; then 3084 ac_cpp_err=$ac_c_preproc_warn_flag 3085 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 3086 else 3087 ac_cpp_err= 3088 fi 3089 else 3090 ac_cpp_err=yes 3091 fi 3092 if test -z "$ac_cpp_err"; then 3093 ac_header_preproc=yes 3094 else 3095 echo "$as_me: failed program was:" >&5 3096 sed 's/^/| /' conftest.$ac_ext >&5 3097 3098 ac_header_preproc=no 3099 fi 3100 rm -f conftest.err conftest.$ac_ext 3101 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 3102 echo "${ECHO_T}$ac_header_preproc" >&6 3103 3104 # So? What about this header? 3105 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 3106 yes:no: ) 3107 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 3108 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 3109 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 3110 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 3111 ac_header_preproc=yes 3112 ;; 3113 no:yes:* ) 3114 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 3115 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 3116 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 3117 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 3118 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 3119 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 3120 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 3121 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 3122 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 3123 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 3124 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 3125 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 3126 ( 3127 cat <<\_ASBOX 3128 ## ------------------------------------------ ## 3129 ## Report this to the AC_PACKAGE_NAME lists. ## 3130 ## ------------------------------------------ ## 3131 _ASBOX 3132 ) | 3133 sed "s/^/$as_me: WARNING: /" >&2 3134 ;; 3135 esac 3136 echo "$as_me:$LINENO: checking for $ac_header" >&5 3137 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 3138 if eval "test \"\${$as_ac_Header+set}\" = set"; then 3139 echo $ECHO_N "(cached) $ECHO_C" >&6 3140 else 3141 eval "$as_ac_Header=\$ac_header_preproc" 3142 fi 3143 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 3144 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 3145 3146 fi 3147 if test `eval echo '${'$as_ac_Header'}'` = yes; then 3148 cat >>confdefs.h <<_ACEOF 3149 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 3150 _ACEOF 3151 3152 fi 3153 3154 done 3155 3156 3157 for ac_header in unistd.h 3158 do 3159 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 3160 if eval "test \"\${$as_ac_Header+set}\" = set"; then 3161 echo "$as_me:$LINENO: checking for $ac_header" >&5 3162 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 3163 if eval "test \"\${$as_ac_Header+set}\" = set"; then 3164 echo $ECHO_N "(cached) $ECHO_C" >&6 3165 fi 3166 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 3167 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 3168 else 3169 # Is the header compilable? 3170 echo "$as_me:$LINENO: checking $ac_header usability" >&5 3171 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 3172 cat >conftest.$ac_ext <<_ACEOF 3173 /* confdefs.h. */ 3174 _ACEOF 3175 cat confdefs.h >>conftest.$ac_ext 3176 cat >>conftest.$ac_ext <<_ACEOF 4555 #include <sys/types.h> 4556 #include <sys/param.h> 4557 4558 int 4559 main () 4560 { 4561 #if BYTE_ORDER != BIG_ENDIAN 4562 not big endian 4563 #endif 4564 4565 ; 4566 return 0; 4567 } 4568 _ACEOF 4569 if ac_fn_c_try_compile "$LINENO"; then : 4570 ac_cv_c_bigendian=yes 4571 else 4572 ac_cv_c_bigendian=no 4573 fi 4574 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4575 fi 4576 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4577 fi 4578 if test $ac_cv_c_bigendian = unknown; then 4579 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). 4580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3177 4581 /* end confdefs.h. */ 3178 $ac_includes_default 3179 #include <$ac_header> 3180 _ACEOF 3181 rm -f conftest.$ac_objext 3182 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3183 (eval $ac_compile) 2>conftest.er1 3184 ac_status=$? 3185 grep -v '^ *+' conftest.er1 >conftest.err 3186 rm -f conftest.er1 3187 cat conftest.err >&5 3188 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3189 (exit $ac_status); } && 3190 { ac_try='test -z "$ac_c_werror_flag" 3191 || test ! -s conftest.err' 3192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3193 (eval $ac_try) 2>&5 3194 ac_status=$? 3195 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3196 (exit $ac_status); }; } && 3197 { ac_try='test -s conftest.$ac_objext' 3198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3199 (eval $ac_try) 2>&5 3200 ac_status=$? 3201 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3202 (exit $ac_status); }; }; then 3203 ac_header_compiler=yes 3204 else 3205 echo "$as_me: failed program was:" >&5 3206 sed 's/^/| /' conftest.$ac_ext >&5 3207 3208 ac_header_compiler=no 3209 fi 3210 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3211 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 3212 echo "${ECHO_T}$ac_header_compiler" >&6 3213 3214 # Is the header present? 3215 echo "$as_me:$LINENO: checking $ac_header presence" >&5 3216 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 3217 cat >conftest.$ac_ext <<_ACEOF 3218 /* confdefs.h. */ 3219 _ACEOF 3220 cat confdefs.h >>conftest.$ac_ext 3221 cat >>conftest.$ac_ext <<_ACEOF 4582 #include <limits.h> 4583 4584 int 4585 main () 4586 { 4587 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) 4588 bogus endian macros 4589 #endif 4590 4591 ; 4592 return 0; 4593 } 4594 _ACEOF 4595 if ac_fn_c_try_compile "$LINENO"; then : 4596 # It does; now see whether it defined to _BIG_ENDIAN or not. 4597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3222 4598 /* end confdefs.h. */ 3223 #include <$ac_header> 3224 _ACEOF 3225 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 3226 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 3227 ac_status=$? 3228 grep -v '^ *+' conftest.er1 >conftest.err 3229 rm -f conftest.er1 3230 cat conftest.err >&5 3231 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3232 (exit $ac_status); } >/dev/null; then 3233 if test -s conftest.err; then 3234 ac_cpp_err=$ac_c_preproc_warn_flag 3235 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 3236 else 3237 ac_cpp_err= 3238 fi 3239 else 3240 ac_cpp_err=yes 3241 fi 3242 if test -z "$ac_cpp_err"; then 3243 ac_header_preproc=yes 3244 else 3245 echo "$as_me: failed program was:" >&5 3246 sed 's/^/| /' conftest.$ac_ext >&5 3247 3248 ac_header_preproc=no 3249 fi 3250 rm -f conftest.err conftest.$ac_ext 3251 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 3252 echo "${ECHO_T}$ac_header_preproc" >&6 3253 3254 # So? What about this header? 3255 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 3256 yes:no: ) 3257 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 3258 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 3259 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 3260 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 3261 ac_header_preproc=yes 3262 ;; 3263 no:yes:* ) 3264 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 3265 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 3266 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 3267 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 3268 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 3269 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 3270 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 3271 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 3272 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 3273 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 3274 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 3275 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 3276 ( 3277 cat <<\_ASBOX 3278 ## ------------------------------------------ ## 3279 ## Report this to the AC_PACKAGE_NAME lists. ## 3280 ## ------------------------------------------ ## 3281 _ASBOX 3282 ) | 3283 sed "s/^/$as_me: WARNING: /" >&2 3284 ;; 3285 esac 3286 echo "$as_me:$LINENO: checking for $ac_header" >&5 3287 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 3288 if eval "test \"\${$as_ac_Header+set}\" = set"; then 3289 echo $ECHO_N "(cached) $ECHO_C" >&6 3290 else 3291 eval "$as_ac_Header=\$ac_header_preproc" 3292 fi 3293 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 3294 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 3295 3296 fi 3297 if test `eval echo '${'$as_ac_Header'}'` = yes; then 3298 cat >>confdefs.h <<_ACEOF 3299 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 3300 _ACEOF 3301 3302 fi 3303 3304 done 3305 3306 3307 for ac_header in byteswap.h 3308 do 3309 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 3310 if eval "test \"\${$as_ac_Header+set}\" = set"; then 3311 echo "$as_me:$LINENO: checking for $ac_header" >&5 3312 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 3313 if eval "test \"\${$as_ac_Header+set}\" = set"; then 3314 echo $ECHO_N "(cached) $ECHO_C" >&6 3315 fi 3316 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 3317 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 3318 else 3319 # Is the header compilable? 3320 echo "$as_me:$LINENO: checking $ac_header usability" >&5 3321 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 3322 cat >conftest.$ac_ext <<_ACEOF 3323 /* confdefs.h. */ 3324 _ACEOF 3325 cat confdefs.h >>conftest.$ac_ext 3326 cat >>conftest.$ac_ext <<_ACEOF 4599 #include <limits.h> 4600 4601 int 4602 main () 4603 { 4604 #ifndef _BIG_ENDIAN 4605 not big endian 4606 #endif 4607 4608 ; 4609 return 0; 4610 } 4611 _ACEOF 4612 if ac_fn_c_try_compile "$LINENO"; then : 4613 ac_cv_c_bigendian=yes 4614 else 4615 ac_cv_c_bigendian=no 4616 fi 4617 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4618 fi 4619 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4620 fi 4621 if test $ac_cv_c_bigendian = unknown; then 4622 # Compile a test program. 4623 if test "$cross_compiling" = yes; then : 4624 # Try to guess by grepping values from an object file. 4625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3327 4626 /* end confdefs.h. */ 3328 $ac_includes_default 3329 #include <$ac_header> 3330 _ACEOF 3331 rm -f conftest.$ac_objext 3332 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3333 (eval $ac_compile) 2>conftest.er1 3334 ac_status=$? 3335 grep -v '^ *+' conftest.er1 >conftest.err 3336 rm -f conftest.er1 3337 cat conftest.err >&5 3338 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3339 (exit $ac_status); } && 3340 { ac_try='test -z "$ac_c_werror_flag" 3341 || test ! -s conftest.err' 3342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3343 (eval $ac_try) 2>&5 3344 ac_status=$? 3345 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3346 (exit $ac_status); }; } && 3347 { ac_try='test -s conftest.$ac_objext' 3348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3349 (eval $ac_try) 2>&5 3350 ac_status=$? 3351 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3352 (exit $ac_status); }; }; then 3353 ac_header_compiler=yes 3354 else 3355 echo "$as_me: failed program was:" >&5 3356 sed 's/^/| /' conftest.$ac_ext >&5 3357 3358 ac_header_compiler=no 3359 fi 3360 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3361 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 3362 echo "${ECHO_T}$ac_header_compiler" >&6 3363 3364 # Is the header present? 3365 echo "$as_me:$LINENO: checking $ac_header presence" >&5 3366 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 3367 cat >conftest.$ac_ext <<_ACEOF 3368 /* confdefs.h. */ 3369 _ACEOF 3370 cat confdefs.h >>conftest.$ac_ext 3371 cat >>conftest.$ac_ext <<_ACEOF 3372 /* end confdefs.h. */ 3373 #include <$ac_header> 3374 _ACEOF 3375 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 3376 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 3377 ac_status=$? 3378 grep -v '^ *+' conftest.er1 >conftest.err 3379 rm -f conftest.er1 3380 cat conftest.err >&5 3381 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3382 (exit $ac_status); } >/dev/null; then 3383 if test -s conftest.err; then 3384 ac_cpp_err=$ac_c_preproc_warn_flag 3385 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 3386 else 3387 ac_cpp_err= 3388 fi 3389 else 3390 ac_cpp_err=yes 3391 fi 3392 if test -z "$ac_cpp_err"; then 3393 ac_header_preproc=yes 3394 else 3395 echo "$as_me: failed program was:" >&5 3396 sed 's/^/| /' conftest.$ac_ext >&5 3397 3398 ac_header_preproc=no 3399 fi 3400 rm -f conftest.err conftest.$ac_ext 3401 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 3402 echo "${ECHO_T}$ac_header_preproc" >&6 3403 3404 # So? What about this header? 3405 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 3406 yes:no: ) 3407 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 3408 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 3409 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 3410 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 3411 ac_header_preproc=yes 3412 ;; 3413 no:yes:* ) 3414 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 3415 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 3416 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 3417 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 3418 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 3419 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 3420 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 3421 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 3422 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 3423 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 3424 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 3425 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 3426 ( 3427 cat <<\_ASBOX 3428 ## ------------------------------------------ ## 3429 ## Report this to the AC_PACKAGE_NAME lists. ## 3430 ## ------------------------------------------ ## 3431 _ASBOX 3432 ) | 3433 sed "s/^/$as_me: WARNING: /" >&2 3434 ;; 3435 esac 3436 echo "$as_me:$LINENO: checking for $ac_header" >&5 3437 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 3438 if eval "test \"\${$as_ac_Header+set}\" = set"; then 3439 echo $ECHO_N "(cached) $ECHO_C" >&6 3440 else 3441 eval "$as_ac_Header=\$ac_header_preproc" 3442 fi 3443 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 3444 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 3445 3446 fi 3447 if test `eval echo '${'$as_ac_Header'}'` = yes; then 3448 cat >>confdefs.h <<_ACEOF 3449 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 3450 _ACEOF 3451 3452 fi 3453 3454 done 3455 3456 3457 for ac_header in stdint.h 3458 do 3459 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 3460 if eval "test \"\${$as_ac_Header+set}\" = set"; then 3461 echo "$as_me:$LINENO: checking for $ac_header" >&5 3462 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 3463 if eval "test \"\${$as_ac_Header+set}\" = set"; then 3464 echo $ECHO_N "(cached) $ECHO_C" >&6 3465 fi 3466 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 3467 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 3468 else 3469 # Is the header compilable? 3470 echo "$as_me:$LINENO: checking $ac_header usability" >&5 3471 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 3472 cat >conftest.$ac_ext <<_ACEOF 3473 /* confdefs.h. */ 3474 _ACEOF 3475 cat confdefs.h >>conftest.$ac_ext 3476 cat >>conftest.$ac_ext <<_ACEOF 3477 /* end confdefs.h. */ 3478 $ac_includes_default 3479 #include <$ac_header> 3480 _ACEOF 3481 rm -f conftest.$ac_objext 3482 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3483 (eval $ac_compile) 2>conftest.er1 3484 ac_status=$? 3485 grep -v '^ *+' conftest.er1 >conftest.err 3486 rm -f conftest.er1 3487 cat conftest.err >&5 3488 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3489 (exit $ac_status); } && 3490 { ac_try='test -z "$ac_c_werror_flag" 3491 || test ! -s conftest.err' 3492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3493 (eval $ac_try) 2>&5 3494 ac_status=$? 3495 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3496 (exit $ac_status); }; } && 3497 { ac_try='test -s conftest.$ac_objext' 3498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3499 (eval $ac_try) 2>&5 3500 ac_status=$? 3501 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3502 (exit $ac_status); }; }; then 3503 ac_header_compiler=yes 3504 else 3505 echo "$as_me: failed program was:" >&5 3506 sed 's/^/| /' conftest.$ac_ext >&5 3507 3508 ac_header_compiler=no 3509 fi 3510 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3511 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 3512 echo "${ECHO_T}$ac_header_compiler" >&6 3513 3514 # Is the header present? 3515 echo "$as_me:$LINENO: checking $ac_header presence" >&5 3516 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 3517 cat >conftest.$ac_ext <<_ACEOF 3518 /* confdefs.h. */ 3519 _ACEOF 3520 cat confdefs.h >>conftest.$ac_ext 3521 cat >>conftest.$ac_ext <<_ACEOF 3522 /* end confdefs.h. */ 3523 #include <$ac_header> 3524 _ACEOF 3525 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 3526 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 3527 ac_status=$? 3528 grep -v '^ *+' conftest.er1 >conftest.err 3529 rm -f conftest.er1 3530 cat conftest.err >&5 3531 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3532 (exit $ac_status); } >/dev/null; then 3533 if test -s conftest.err; then 3534 ac_cpp_err=$ac_c_preproc_warn_flag 3535 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 3536 else 3537 ac_cpp_err= 3538 fi 3539 else 3540 ac_cpp_err=yes 3541 fi 3542 if test -z "$ac_cpp_err"; then 3543 ac_header_preproc=yes 3544 else 3545 echo "$as_me: failed program was:" >&5 3546 sed 's/^/| /' conftest.$ac_ext >&5 3547 3548 ac_header_preproc=no 3549 fi 3550 rm -f conftest.err conftest.$ac_ext 3551 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 3552 echo "${ECHO_T}$ac_header_preproc" >&6 3553 3554 # So? What about this header? 3555 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 3556 yes:no: ) 3557 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 3558 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 3559 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 3560 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 3561 ac_header_preproc=yes 3562 ;; 3563 no:yes:* ) 3564 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 3565 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 3566 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 3567 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 3568 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 3569 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 3570 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 3571 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 3572 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 3573 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}