Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1 | #! /bin/sh |
| 2 | # Guess values for system-dependent variables and create Makefiles. |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 3 | # Generated by GNU Autoconf 2.61 for pjproject 1.0. |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 4 | # |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 5 | # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
| 6 | # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7 | # This configure script is free software; the Free Software Foundation |
| 8 | # gives unlimited permission to copy, distribute and modify it. |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9 | ## --------------------- ## |
| 10 | ## M4sh Initialization. ## |
| 11 | ## --------------------- ## |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 12 | |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 13 | # Be more Bourne compatible |
| 14 | DUALCASE=1; export DUALCASE # for MKS sh |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 15 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
| 16 | emulate sh |
| 17 | NULLCMD=: |
| 18 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
| 19 | # is contrary to our usage. Disable this feature. |
| 20 | alias -g '${1+"$@"}'='"$@"' |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 21 | setopt NO_GLOB_SUBST |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 22 | else |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 23 | case `(set -o) 2>/dev/null` in |
| 24 | *posix*) set -o posix ;; |
| 25 | esac |
| 26 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 27 | fi |
| 28 | |
| 29 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 30 | |
| 31 | |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 32 | # PATH needs CR |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 33 | # Avoid depending upon Character Ranges. |
| 34 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 35 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 36 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 37 | as_cr_digits='0123456789' |
| 38 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
| 39 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 40 | # The user is always right. |
| 41 | if test "${PATH_SEPARATOR+set}" != set; then |
| 42 | echo "#! /bin/sh" >conf$$.sh |
| 43 | echo "exit 0" >>conf$$.sh |
| 44 | chmod +x conf$$.sh |
| 45 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
| 46 | PATH_SEPARATOR=';' |
| 47 | else |
| 48 | PATH_SEPARATOR=: |
| 49 | fi |
| 50 | rm -f conf$$.sh |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 51 | fi |
| 52 | |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 53 | # Support unset when possible. |
| 54 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
| 55 | as_unset=unset |
| 56 | else |
| 57 | as_unset=false |
| 58 | fi |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 59 | |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 60 | |
| 61 | # IFS |
| 62 | # We need space, tab and new line, in precisely that order. Quoting is |
| 63 | # there to prevent editors from complaining about space-tab. |
| 64 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
| 65 | # splitting by setting IFS to empty value.) |
| 66 | as_nl=' |
| 67 | ' |
| 68 | IFS=" "" $as_nl" |
| 69 | |
| 70 | # Find who we are. Look in the path if we contain no directory separator. |
| 71 | case $0 in |
| 72 | *[\\/]* ) as_myself=$0 ;; |
| 73 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 74 | for as_dir in $PATH |
| 75 | do |
| 76 | IFS=$as_save_IFS |
| 77 | test -z "$as_dir" && as_dir=. |
| 78 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 79 | done |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 80 | IFS=$as_save_IFS |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 81 | |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 82 | ;; |
| 83 | esac |
| 84 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 85 | # in which case we are not to be found in the path. |
| 86 | if test "x$as_myself" = x; then |
| 87 | as_myself=$0 |
| 88 | fi |
| 89 | if test ! -f "$as_myself"; then |
| 90 | echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
| 91 | { (exit 1); exit 1; } |
| 92 | fi |
| 93 | |
| 94 | # Work around bugs in pre-3.0 UWIN ksh. |
| 95 | for as_var in ENV MAIL MAILPATH |
| 96 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
| 97 | done |
| 98 | PS1='$ ' |
| 99 | PS2='> ' |
| 100 | PS4='+ ' |
| 101 | |
| 102 | # NLS nuisances. |
| 103 | for as_var in \ |
| 104 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
| 105 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
| 106 | LC_TELEPHONE LC_TIME |
| 107 | do |
| 108 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
| 109 | eval $as_var=C; export $as_var |
| 110 | else |
| 111 | ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 112 | fi |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 113 | done |
| 114 | |
| 115 | # Required to use basename. |
| 116 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 117 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
| 118 | as_expr=expr |
| 119 | else |
| 120 | as_expr=false |
| 121 | fi |
| 122 | |
| 123 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
| 124 | as_basename=basename |
| 125 | else |
| 126 | as_basename=false |
| 127 | fi |
| 128 | |
| 129 | |
| 130 | # Name of the executable. |
| 131 | as_me=`$as_basename -- "$0" || |
| 132 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 133 | X"$0" : 'X\(//\)$' \| \ |
| 134 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
| 135 | echo X/"$0" | |
| 136 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
| 137 | s//\1/ |
| 138 | q |
| 139 | } |
| 140 | /^X\/\(\/\/\)$/{ |
| 141 | s//\1/ |
| 142 | q |
| 143 | } |
| 144 | /^X\/\(\/\).*/{ |
| 145 | s//\1/ |
| 146 | q |
| 147 | } |
| 148 | s/.*/./; q'` |
| 149 | |
| 150 | # CDPATH. |
| 151 | $as_unset CDPATH |
| 152 | |
| 153 | |
| 154 | if test "x$CONFIG_SHELL" = x; then |
| 155 | if (eval ":") 2>/dev/null; then |
| 156 | as_have_required=yes |
| 157 | else |
| 158 | as_have_required=no |
| 159 | fi |
| 160 | |
| 161 | if test $as_have_required = yes && (eval ": |
| 162 | (as_func_return () { |
| 163 | (exit \$1) |
| 164 | } |
| 165 | as_func_success () { |
| 166 | as_func_return 0 |
| 167 | } |
| 168 | as_func_failure () { |
| 169 | as_func_return 1 |
| 170 | } |
| 171 | as_func_ret_success () { |
| 172 | return 0 |
| 173 | } |
| 174 | as_func_ret_failure () { |
| 175 | return 1 |
| 176 | } |
| 177 | |
| 178 | exitcode=0 |
| 179 | if as_func_success; then |
| 180 | : |
| 181 | else |
| 182 | exitcode=1 |
| 183 | echo as_func_success failed. |
| 184 | fi |
| 185 | |
| 186 | if as_func_failure; then |
| 187 | exitcode=1 |
| 188 | echo as_func_failure succeeded. |
| 189 | fi |
| 190 | |
| 191 | if as_func_ret_success; then |
| 192 | : |
| 193 | else |
| 194 | exitcode=1 |
| 195 | echo as_func_ret_success failed. |
| 196 | fi |
| 197 | |
| 198 | if as_func_ret_failure; then |
| 199 | exitcode=1 |
| 200 | echo as_func_ret_failure succeeded. |
| 201 | fi |
| 202 | |
| 203 | if ( set x; as_func_ret_success y && test x = \"\$1\" ); then |
| 204 | : |
| 205 | else |
| 206 | exitcode=1 |
| 207 | echo positional parameters were not saved. |
| 208 | fi |
| 209 | |
| 210 | test \$exitcode = 0) || { (exit 1); exit 1; } |
| 211 | |
| 212 | ( |
| 213 | as_lineno_1=\$LINENO |
| 214 | as_lineno_2=\$LINENO |
| 215 | test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" && |
| 216 | test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; } |
| 217 | ") 2> /dev/null; then |
| 218 | : |
| 219 | else |
| 220 | as_candidate_shells= |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 221 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 222 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
| 223 | do |
| 224 | IFS=$as_save_IFS |
| 225 | test -z "$as_dir" && as_dir=. |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 226 | case $as_dir in |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 227 | /*) |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 228 | for as_base in sh bash ksh sh5; do |
| 229 | as_candidate_shells="$as_candidate_shells $as_dir/$as_base" |
| 230 | done;; |
| 231 | esac |
| 232 | done |
| 233 | IFS=$as_save_IFS |
| 234 | |
| 235 | |
| 236 | for as_shell in $as_candidate_shells $SHELL; do |
| 237 | # Try only shells that exist, to save several forks. |
| 238 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && |
| 239 | { ("$as_shell") 2> /dev/null <<\_ASEOF |
| 240 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
| 241 | emulate sh |
| 242 | NULLCMD=: |
| 243 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
| 244 | # is contrary to our usage. Disable this feature. |
| 245 | alias -g '${1+"$@"}'='"$@"' |
| 246 | setopt NO_GLOB_SUBST |
| 247 | else |
| 248 | case `(set -o) 2>/dev/null` in |
| 249 | *posix*) set -o posix ;; |
| 250 | esac |
| 251 | |
| 252 | fi |
| 253 | |
| 254 | |
| 255 | : |
| 256 | _ASEOF |
| 257 | }; then |
| 258 | CONFIG_SHELL=$as_shell |
| 259 | as_have_required=yes |
| 260 | if { "$as_shell" 2> /dev/null <<\_ASEOF |
| 261 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
| 262 | emulate sh |
| 263 | NULLCMD=: |
| 264 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
| 265 | # is contrary to our usage. Disable this feature. |
| 266 | alias -g '${1+"$@"}'='"$@"' |
| 267 | setopt NO_GLOB_SUBST |
| 268 | else |
| 269 | case `(set -o) 2>/dev/null` in |
| 270 | *posix*) set -o posix ;; |
| 271 | esac |
| 272 | |
| 273 | fi |
| 274 | |
| 275 | |
| 276 | : |
| 277 | (as_func_return () { |
| 278 | (exit $1) |
| 279 | } |
| 280 | as_func_success () { |
| 281 | as_func_return 0 |
| 282 | } |
| 283 | as_func_failure () { |
| 284 | as_func_return 1 |
| 285 | } |
| 286 | as_func_ret_success () { |
| 287 | return 0 |
| 288 | } |
| 289 | as_func_ret_failure () { |
| 290 | return 1 |
| 291 | } |
| 292 | |
| 293 | exitcode=0 |
| 294 | if as_func_success; then |
| 295 | : |
| 296 | else |
| 297 | exitcode=1 |
| 298 | echo as_func_success failed. |
| 299 | fi |
| 300 | |
| 301 | if as_func_failure; then |
| 302 | exitcode=1 |
| 303 | echo as_func_failure succeeded. |
| 304 | fi |
| 305 | |
| 306 | if as_func_ret_success; then |
| 307 | : |
| 308 | else |
| 309 | exitcode=1 |
| 310 | echo as_func_ret_success failed. |
| 311 | fi |
| 312 | |
| 313 | if as_func_ret_failure; then |
| 314 | exitcode=1 |
| 315 | echo as_func_ret_failure succeeded. |
| 316 | fi |
| 317 | |
| 318 | if ( set x; as_func_ret_success y && test x = "$1" ); then |
| 319 | : |
| 320 | else |
| 321 | exitcode=1 |
| 322 | echo positional parameters were not saved. |
| 323 | fi |
| 324 | |
| 325 | test $exitcode = 0) || { (exit 1); exit 1; } |
| 326 | |
| 327 | ( |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 328 | as_lineno_1=$LINENO |
| 329 | as_lineno_2=$LINENO |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 330 | test "x$as_lineno_1" != "x$as_lineno_2" && |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 331 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; } |
| 332 | |
| 333 | _ASEOF |
| 334 | }; then |
| 335 | break |
| 336 | fi |
| 337 | |
| 338 | fi |
| 339 | |
| 340 | done |
| 341 | |
| 342 | if test "x$CONFIG_SHELL" != x; then |
| 343 | for as_var in BASH_ENV ENV |
| 344 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
| 345 | done |
| 346 | export CONFIG_SHELL |
| 347 | exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} |
| 348 | fi |
| 349 | |
| 350 | |
| 351 | if test $as_have_required = no; then |
| 352 | echo This script requires a shell more modern than all the |
| 353 | echo shells that I found on your system. Please install a |
| 354 | echo modern shell, or manually run the script under such a |
| 355 | echo shell if you do have one. |
| 356 | { (exit 1); exit 1; } |
| 357 | fi |
| 358 | |
| 359 | |
| 360 | fi |
| 361 | |
| 362 | fi |
| 363 | |
| 364 | |
| 365 | |
| 366 | (eval "as_func_return () { |
| 367 | (exit \$1) |
| 368 | } |
| 369 | as_func_success () { |
| 370 | as_func_return 0 |
| 371 | } |
| 372 | as_func_failure () { |
| 373 | as_func_return 1 |
| 374 | } |
| 375 | as_func_ret_success () { |
| 376 | return 0 |
| 377 | } |
| 378 | as_func_ret_failure () { |
| 379 | return 1 |
| 380 | } |
| 381 | |
| 382 | exitcode=0 |
| 383 | if as_func_success; then |
| 384 | : |
| 385 | else |
| 386 | exitcode=1 |
| 387 | echo as_func_success failed. |
| 388 | fi |
| 389 | |
| 390 | if as_func_failure; then |
| 391 | exitcode=1 |
| 392 | echo as_func_failure succeeded. |
| 393 | fi |
| 394 | |
| 395 | if as_func_ret_success; then |
| 396 | : |
| 397 | else |
| 398 | exitcode=1 |
| 399 | echo as_func_ret_success failed. |
| 400 | fi |
| 401 | |
| 402 | if as_func_ret_failure; then |
| 403 | exitcode=1 |
| 404 | echo as_func_ret_failure succeeded. |
| 405 | fi |
| 406 | |
| 407 | if ( set x; as_func_ret_success y && test x = \"\$1\" ); then |
| 408 | : |
| 409 | else |
| 410 | exitcode=1 |
| 411 | echo positional parameters were not saved. |
| 412 | fi |
| 413 | |
| 414 | test \$exitcode = 0") || { |
| 415 | echo No shell found that supports shell functions. |
| 416 | echo Please tell autoconf@gnu.org about your system, |
| 417 | echo including any error possibly output before this |
| 418 | echo message |
| 419 | } |
| 420 | |
| 421 | |
| 422 | |
| 423 | as_lineno_1=$LINENO |
| 424 | as_lineno_2=$LINENO |
| 425 | test "x$as_lineno_1" != "x$as_lineno_2" && |
| 426 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 427 | |
| 428 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
| 429 | # uniformly replaced by the line number. The first 'sed' inserts a |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 430 | # line-number line after each line using $LINENO; the second 'sed' |
| 431 | # does the real work. The second script uses 'N' to pair each |
| 432 | # line-number line with the line containing $LINENO, and appends |
| 433 | # trailing '-' during substitution so that $LINENO is not a special |
| 434 | # case at line end. |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 435 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 436 | # scripts with optimization help from Paolo Bonzini. Blame Lee |
| 437 | # E. McMahon (1931-1989) for sed's syntax. :-) |
| 438 | sed -n ' |
| 439 | p |
| 440 | /[$]LINENO/= |
| 441 | ' <$as_myself | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 442 | sed ' |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 443 | s/[$]LINENO.*/&-/ |
| 444 | t lineno |
| 445 | b |
| 446 | :lineno |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 447 | N |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 448 | :loop |
| 449 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 450 | t loop |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 451 | s/-\n.*// |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 452 | ' >$as_me.lineno && |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 453 | chmod +x "$as_me.lineno" || |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 454 | { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 |
| 455 | { (exit 1); exit 1; }; } |
| 456 | |
| 457 | # Don't try to exec as it changes $[0], causing all sort of problems |
| 458 | # (the dirname of $[0] is not the place where we might find the |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 459 | # original and so on. Autoconf is especially sensitive to this). |
| 460 | . "./$as_me.lineno" |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 461 | # Exit status is that of the last command. |
| 462 | exit |
| 463 | } |
| 464 | |
| 465 | |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 466 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
| 467 | as_dirname=dirname |
| 468 | else |
| 469 | as_dirname=false |
| 470 | fi |
| 471 | |
| 472 | ECHO_C= ECHO_N= ECHO_T= |
| 473 | case `echo -n x` in |
| 474 | -n*) |
| 475 | case `echo 'x\c'` in |
| 476 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
| 477 | *) ECHO_C='\c';; |
| 478 | esac;; |
| 479 | *) |
| 480 | ECHO_N='-n';; |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 481 | esac |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 482 | |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 483 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 484 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 485 | as_expr=expr |
| 486 | else |
| 487 | as_expr=false |
| 488 | fi |
| 489 | |
| 490 | rm -f conf$$ conf$$.exe conf$$.file |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 491 | if test -d conf$$.dir; then |
| 492 | rm -f conf$$.dir/conf$$.file |
| 493 | else |
| 494 | rm -f conf$$.dir |
| 495 | mkdir conf$$.dir |
| 496 | fi |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 497 | echo >conf$$.file |
| 498 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 499 | as_ln_s='ln -s' |
| 500 | # ... but there are two gotchas: |
| 501 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
| 502 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
| 503 | # In both cases, we have to default to `cp -p'. |
| 504 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 505 | as_ln_s='cp -p' |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 506 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 507 | as_ln_s=ln |
| 508 | else |
| 509 | as_ln_s='cp -p' |
| 510 | fi |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 511 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
| 512 | rmdir conf$$.dir 2>/dev/null |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 513 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 514 | if mkdir -p . 2>/dev/null; then |
| 515 | as_mkdir_p=: |
Benny Prijono | 39ae2da | 2006-10-13 17:57:42 +0000 | [diff] [blame] | 516 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 517 | test -d ./-p && rmdir ./-p |
| 518 | as_mkdir_p=false |
Benny Prijono | 39ae2da | 2006-10-13 17:57:42 +0000 | [diff] [blame] | 519 | fi |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 520 | |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 521 | if test -x / >/dev/null 2>&1; then |
| 522 | as_test_x='test -x' |
| 523 | else |
| 524 | if ls -dL / >/dev/null 2>&1; then |
| 525 | as_ls_L_option=L |
| 526 | else |
| 527 | as_ls_L_option= |
| 528 | fi |
| 529 | as_test_x=' |
| 530 | eval sh -c '\'' |
| 531 | if test -d "$1"; then |
| 532 | test -d "$1/."; |
| 533 | else |
| 534 | case $1 in |
| 535 | -*)set "./$1";; |
| 536 | esac; |
| 537 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in |
| 538 | ???[sx]*):;;*)false;;esac;fi |
| 539 | '\'' sh |
| 540 | ' |
| 541 | fi |
| 542 | as_executable_p=$as_test_x |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 543 | |
| 544 | # Sed expression to map a string onto a valid CPP name. |
| 545 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
| 546 | |
| 547 | # Sed expression to map a string onto a valid variable name. |
| 548 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
| 549 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 550 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 551 | |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 552 | exec 7<&0 </dev/null 6>&1 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 553 | |
| 554 | # Name of the host. |
| 555 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, |
| 556 | # so uname gets run too. |
| 557 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` |
| 558 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 559 | # |
| 560 | # Initializations. |
| 561 | # |
| 562 | ac_default_prefix=/usr/local |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 563 | ac_clean_files= |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 564 | ac_config_libobj_dir=. |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 565 | LIBOBJS= |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 566 | cross_compiling=no |
| 567 | subdirs= |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 568 | MFLAGS= |
| 569 | MAKEFLAGS= |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 570 | SHELL=${CONFIG_SHELL-/bin/sh} |
| 571 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 572 | # Identity of this package. |
| 573 | PACKAGE_NAME='pjproject' |
| 574 | PACKAGE_TARNAME='pjproject' |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 575 | PACKAGE_VERSION='1.0' |
| 576 | PACKAGE_STRING='pjproject 1.0' |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 577 | PACKAGE_BUGREPORT='' |
| 578 | |
| 579 | # Factoring default headers for most tests. |
| 580 | ac_includes_default="\ |
| 581 | #include <stdio.h> |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 582 | #ifdef HAVE_SYS_TYPES_H |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 583 | # include <sys/types.h> |
| 584 | #endif |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 585 | #ifdef HAVE_SYS_STAT_H |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 586 | # include <sys/stat.h> |
| 587 | #endif |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 588 | #ifdef STDC_HEADERS |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 589 | # include <stdlib.h> |
| 590 | # include <stddef.h> |
| 591 | #else |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 592 | # ifdef HAVE_STDLIB_H |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 593 | # include <stdlib.h> |
| 594 | # endif |
| 595 | #endif |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 596 | #ifdef HAVE_STRING_H |
| 597 | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 598 | # include <memory.h> |
| 599 | # endif |
| 600 | # include <string.h> |
| 601 | #endif |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 602 | #ifdef HAVE_STRINGS_H |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 603 | # include <strings.h> |
| 604 | #endif |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 605 | #ifdef HAVE_INTTYPES_H |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 606 | # include <inttypes.h> |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 607 | #endif |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 608 | #ifdef HAVE_STDINT_H |
| 609 | # include <stdint.h> |
| 610 | #endif |
| 611 | #ifdef HAVE_UNISTD_H |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 612 | # include <unistd.h> |
| 613 | #endif" |
| 614 | |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 615 | ac_subst_vars='SHELL |
| 616 | PATH_SEPARATOR |
| 617 | PACKAGE_NAME |
| 618 | PACKAGE_TARNAME |
| 619 | PACKAGE_VERSION |
| 620 | PACKAGE_STRING |
| 621 | PACKAGE_BUGREPORT |
| 622 | exec_prefix |
| 623 | prefix |
| 624 | program_transform_name |
| 625 | bindir |
| 626 | sbindir |
| 627 | libexecdir |
| 628 | datarootdir |
| 629 | datadir |
| 630 | sysconfdir |
| 631 | sharedstatedir |
| 632 | localstatedir |
| 633 | includedir |
| 634 | oldincludedir |
| 635 | docdir |
| 636 | infodir |
| 637 | htmldir |
| 638 | dvidir |
| 639 | pdfdir |
| 640 | psdir |
| 641 | libdir |
| 642 | localedir |
| 643 | mandir |
| 644 | DEFS |
| 645 | ECHO_C |
| 646 | ECHO_N |
| 647 | ECHO_T |
| 648 | LIBS |
| 649 | build_alias |
| 650 | host_alias |
| 651 | target_alias |
| 652 | build |
| 653 | build_cpu |
| 654 | build_vendor |
| 655 | build_os |
| 656 | host |
| 657 | host_cpu |
| 658 | host_vendor |
| 659 | host_os |
| 660 | target |
| 661 | target_cpu |
| 662 | target_vendor |
| 663 | target_os |
| 664 | CC |
| 665 | CFLAGS |
| 666 | LDFLAGS |
| 667 | CPPFLAGS |
| 668 | ac_ct_CC |
| 669 | EXEEXT |
| 670 | OBJEXT |
| 671 | CXX |
| 672 | CXXFLAGS |
| 673 | ac_ct_CXX |
| 674 | ac_pjdir |
| 675 | ac_build_mak_vars |
| 676 | CPP |
| 677 | GREP |
| 678 | EGREP |
| 679 | ac_os_objs |
| 680 | ac_pjmedia_snd |
| 681 | ac_pa_cflags |
| 682 | ac_pa_use_alsa |
| 683 | ac_pa_use_oss |
| 684 | ac_no_small_filter |
| 685 | ac_no_large_filter |
| 686 | ac_no_speex_aec |
| 687 | ac_no_g711_codec |
| 688 | ac_no_l16_codec |
| 689 | ac_no_gsm_codec |
| 690 | ac_no_g722_codec |
| 691 | ac_no_speex_codec |
| 692 | ac_no_ilbc_codec |
| 693 | ac_no_ssl |
| 694 | openssl_h_present |
| 695 | libssl_present |
| 696 | libcrypto_present |
| 697 | ac_cross_compile |
| 698 | ac_linux_poll |
| 699 | ac_host |
| 700 | ac_main_obj |
| 701 | LIBOBJS |
| 702 | LTLIBOBJS' |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 703 | ac_subst_files='' |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 704 | ac_precious_vars='build_alias |
| 705 | host_alias |
| 706 | target_alias |
| 707 | CC |
| 708 | CFLAGS |
| 709 | LDFLAGS |
| 710 | LIBS |
| 711 | CPPFLAGS |
| 712 | CXX |
| 713 | CXXFLAGS |
| 714 | CCC |
| 715 | CPP' |
| 716 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 717 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 718 | # Initialize some variables set by options. |
| 719 | ac_init_help= |
| 720 | ac_init_version=false |
| 721 | # The variables have the same names as the options, with |
| 722 | # dashes changed to underlines. |
| 723 | cache_file=/dev/null |
| 724 | exec_prefix=NONE |
| 725 | no_create= |
| 726 | no_recursion= |
| 727 | prefix=NONE |
| 728 | program_prefix=NONE |
| 729 | program_suffix=NONE |
| 730 | program_transform_name=s,x,x, |
| 731 | silent= |
| 732 | site= |
| 733 | srcdir= |
| 734 | verbose= |
| 735 | x_includes=NONE |
| 736 | x_libraries=NONE |
| 737 | |
| 738 | # Installation directory options. |
| 739 | # These are left unexpanded so users can "make install exec_prefix=/foo" |
| 740 | # and all the variables that are supposed to be based on exec_prefix |
| 741 | # by default will actually change. |
| 742 | # Use braces instead of parens because sh, perl, etc. also accept them. |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 743 | # (The list follows the same order as the GNU Coding Standards.) |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 744 | bindir='${exec_prefix}/bin' |
| 745 | sbindir='${exec_prefix}/sbin' |
| 746 | libexecdir='${exec_prefix}/libexec' |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 747 | datarootdir='${prefix}/share' |
| 748 | datadir='${datarootdir}' |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 749 | sysconfdir='${prefix}/etc' |
| 750 | sharedstatedir='${prefix}/com' |
| 751 | localstatedir='${prefix}/var' |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 752 | includedir='${prefix}/include' |
| 753 | oldincludedir='/usr/include' |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 754 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' |
| 755 | infodir='${datarootdir}/info' |
| 756 | htmldir='${docdir}' |
| 757 | dvidir='${docdir}' |
| 758 | pdfdir='${docdir}' |
| 759 | psdir='${docdir}' |
| 760 | libdir='${exec_prefix}/lib' |
| 761 | localedir='${datarootdir}/locale' |
| 762 | mandir='${datarootdir}/man' |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 763 | |
| 764 | ac_prev= |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 765 | ac_dashdash= |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 766 | for ac_option |
| 767 | do |
| 768 | # If the previous option needs an argument, assign it. |
| 769 | if test -n "$ac_prev"; then |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 770 | eval $ac_prev=\$ac_option |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 771 | ac_prev= |
| 772 | continue |
| 773 | fi |
| 774 | |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 775 | case $ac_option in |
| 776 | *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
| 777 | *) ac_optarg=yes ;; |
| 778 | esac |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 779 | |
| 780 | # Accept the important Cygnus configure options, so we can diagnose typos. |
| 781 | |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 782 | case $ac_dashdash$ac_option in |
| 783 | --) |
| 784 | ac_dashdash=yes ;; |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 785 | |
| 786 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
| 787 | ac_prev=bindir ;; |
| 788 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
| 789 | bindir=$ac_optarg ;; |
| 790 | |
| 791 | -build | --build | --buil | --bui | --bu) |
| 792 | ac_prev=build_alias ;; |
| 793 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
| 794 | build_alias=$ac_optarg ;; |
| 795 | |
| 796 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
| 797 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
| 798 | ac_prev=cache_file ;; |
| 799 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
| 800 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
| 801 | cache_file=$ac_optarg ;; |
| 802 | |
| 803 | --config-cache | -C) |
| 804 | cache_file=config.cache ;; |
| 805 | |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 806 | -datadir | --datadir | --datadi | --datad) |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 807 | ac_prev=datadir ;; |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 808 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 809 | datadir=$ac_optarg ;; |
| 810 | |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 811 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
| 812 | | --dataroo | --dataro | --datar) |
| 813 | ac_prev=datarootdir ;; |
| 814 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ |
| 815 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) |
| 816 | datarootdir=$ac_optarg ;; |
| 817 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 818 | -disable-* | --disable-*) |
| 819 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
| 820 | # Reject names that are not valid shell variable names. |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 821 | expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 822 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
| 823 | { (exit 1); exit 1; }; } |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 824 | ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` |
| 825 | eval enable_$ac_feature=no ;; |
| 826 | |
| 827 | -docdir | --docdir | --docdi | --doc | --do) |
| 828 | ac_prev=docdir ;; |
| 829 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) |
| 830 | docdir=$ac_optarg ;; |
| 831 | |
| 832 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) |
| 833 | ac_prev=dvidir ;; |
| 834 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) |
| 835 | dvidir=$ac_optarg ;; |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 836 | |
| 837 | -enable-* | --enable-*) |
| 838 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
| 839 | # Reject names that are not valid shell variable names. |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 840 | expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 841 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
| 842 | { (exit 1); exit 1; }; } |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 843 | ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` |
| 844 | eval enable_$ac_feature=\$ac_optarg ;; |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 845 | |
| 846 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
| 847 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
| 848 | | --exec | --exe | --ex) |
| 849 | ac_prev=exec_prefix ;; |
| 850 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
| 851 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
| 852 | | --exec=* | --exe=* | --ex=*) |
| 853 | exec_prefix=$ac_optarg ;; |
| 854 | |
| 855 | -gas | --gas | --ga | --g) |
| 856 | # Obsolete; use --with-gas. |
| 857 | with_gas=yes ;; |
| 858 | |
| 859 | -help | --help | --hel | --he | -h) |
| 860 | ac_init_help=long ;; |
| 861 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
| 862 | ac_init_help=recursive ;; |
| 863 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
| 864 | ac_init_help=short ;; |
| 865 | |
| 866 | -host | --host | --hos | --ho) |
| 867 | ac_prev=host_alias ;; |
| 868 | -host=* | --host=* | --hos=* | --ho=*) |
| 869 | host_alias=$ac_optarg ;; |
| 870 | |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 871 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
| 872 | ac_prev=htmldir ;; |
| 873 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ |
| 874 | | --ht=*) |
| 875 | htmldir=$ac_optarg ;; |
| 876 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 877 | -includedir | --includedir | --includedi | --included | --include \ |
| 878 | | --includ | --inclu | --incl | --inc) |
| 879 | ac_prev=includedir ;; |
| 880 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
| 881 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
| 882 | includedir=$ac_optarg ;; |
| 883 | |
| 884 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
| 885 | ac_prev=infodir ;; |
| 886 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
| 887 | infodir=$ac_optarg ;; |
| 888 | |
| 889 | -libdir | --libdir | --libdi | --libd) |
| 890 | ac_prev=libdir ;; |
| 891 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
| 892 | libdir=$ac_optarg ;; |
| 893 | |
| 894 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
| 895 | | --libexe | --libex | --libe) |
| 896 | ac_prev=libexecdir ;; |
| 897 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
| 898 | | --libexe=* | --libex=* | --libe=*) |
| 899 | libexecdir=$ac_optarg ;; |
| 900 | |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 901 | -localedir | --localedir | --localedi | --localed | --locale) |
| 902 | ac_prev=localedir ;; |
| 903 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) |
| 904 | localedir=$ac_optarg ;; |
| 905 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 906 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 907 | | --localstate | --localstat | --localsta | --localst | --locals) |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 908 | ac_prev=localstatedir ;; |
| 909 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 910 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 911 | localstatedir=$ac_optarg ;; |
| 912 | |
| 913 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
| 914 | ac_prev=mandir ;; |
| 915 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
| 916 | mandir=$ac_optarg ;; |
| 917 | |
| 918 | -nfp | --nfp | --nf) |
| 919 | # Obsolete; use --without-fp. |
| 920 | with_fp=no ;; |
| 921 | |
| 922 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 923 | | --no-cr | --no-c | -n) |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 924 | no_create=yes ;; |
| 925 | |
| 926 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
| 927 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
| 928 | no_recursion=yes ;; |
| 929 | |
| 930 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
| 931 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
| 932 | | --oldin | --oldi | --old | --ol | --o) |
| 933 | ac_prev=oldincludedir ;; |
| 934 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
| 935 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
| 936 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
| 937 | oldincludedir=$ac_optarg ;; |
| 938 | |
| 939 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
| 940 | ac_prev=prefix ;; |
| 941 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
| 942 | prefix=$ac_optarg ;; |
| 943 | |
| 944 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
| 945 | | --program-pre | --program-pr | --program-p) |
| 946 | ac_prev=program_prefix ;; |
| 947 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
| 948 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
| 949 | program_prefix=$ac_optarg ;; |
| 950 | |
| 951 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
| 952 | | --program-suf | --program-su | --program-s) |
| 953 | ac_prev=program_suffix ;; |
| 954 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
| 955 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
| 956 | program_suffix=$ac_optarg ;; |
| 957 | |
| 958 | -program-transform-name | --program-transform-name \ |
| 959 | | --program-transform-nam | --program-transform-na \ |
| 960 | | --program-transform-n | --program-transform- \ |
| 961 | | --program-transform | --program-transfor \ |
| 962 | | --program-transfo | --program-transf \ |
| 963 | | --program-trans | --program-tran \ |
| 964 | | --progr-tra | --program-tr | --program-t) |
| 965 | ac_prev=program_transform_name ;; |
| 966 | -program-transform-name=* | --program-transform-name=* \ |
| 967 | | --program-transform-nam=* | --program-transform-na=* \ |
| 968 | | --program-transform-n=* | --program-transform-=* \ |
| 969 | | --program-transform=* | --program-transfor=* \ |
| 970 | | --program-transfo=* | --program-transf=* \ |
| 971 | | --program-trans=* | --program-tran=* \ |
| 972 | | --progr-tra=* | --program-tr=* | --program-t=*) |
| 973 | program_transform_name=$ac_optarg ;; |
| 974 | |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 975 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
| 976 | ac_prev=pdfdir ;; |
| 977 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) |
| 978 | pdfdir=$ac_optarg ;; |
| 979 | |
| 980 | -psdir | --psdir | --psdi | --psd | --ps) |
| 981 | ac_prev=psdir ;; |
| 982 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) |
| 983 | psdir=$ac_optarg ;; |
| 984 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 985 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 986 | | -silent | --silent | --silen | --sile | --sil) |
| 987 | silent=yes ;; |
| 988 | |
| 989 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
| 990 | ac_prev=sbindir ;; |
| 991 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
| 992 | | --sbi=* | --sb=*) |
| 993 | sbindir=$ac_optarg ;; |
| 994 | |
| 995 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
| 996 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
| 997 | | --sharedst | --shareds | --shared | --share | --shar \ |
| 998 | | --sha | --sh) |
| 999 | ac_prev=sharedstatedir ;; |
| 1000 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
| 1001 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
| 1002 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
| 1003 | | --sha=* | --sh=*) |
| 1004 | sharedstatedir=$ac_optarg ;; |
| 1005 | |
| 1006 | -site | --site | --sit) |
| 1007 | ac_prev=site ;; |
| 1008 | -site=* | --site=* | --sit=*) |
| 1009 | site=$ac_optarg ;; |
| 1010 | |
| 1011 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
| 1012 | ac_prev=srcdir ;; |
| 1013 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
| 1014 | srcdir=$ac_optarg ;; |
| 1015 | |
| 1016 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
| 1017 | | --syscon | --sysco | --sysc | --sys | --sy) |
| 1018 | ac_prev=sysconfdir ;; |
| 1019 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
| 1020 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
| 1021 | sysconfdir=$ac_optarg ;; |
| 1022 | |
| 1023 | -target | --target | --targe | --targ | --tar | --ta | --t) |
| 1024 | ac_prev=target_alias ;; |
| 1025 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
| 1026 | target_alias=$ac_optarg ;; |
| 1027 | |
| 1028 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
| 1029 | verbose=yes ;; |
| 1030 | |
| 1031 | -version | --version | --versio | --versi | --vers | -V) |
| 1032 | ac_init_version=: ;; |
| 1033 | |
| 1034 | -with-* | --with-*) |
| 1035 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
| 1036 | # Reject names that are not valid shell variable names. |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 1037 | expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1038 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
| 1039 | { (exit 1); exit 1; }; } |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 1040 | ac_package=`echo $ac_package | sed 's/[-.]/_/g'` |
| 1041 | eval with_$ac_package=\$ac_optarg ;; |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1042 | |
| 1043 | -without-* | --without-*) |
| 1044 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
| 1045 | # Reject names that are not valid shell variable names. |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 1046 | expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1047 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
| 1048 | { (exit 1); exit 1; }; } |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 1049 | ac_package=`echo $ac_package | sed 's/[-.]/_/g'` |
| 1050 | eval with_$ac_package=no ;; |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1051 | |
| 1052 | --x) |
| 1053 | # Obsolete; use --with-x. |
| 1054 | with_x=yes ;; |
| 1055 | |
| 1056 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
| 1057 | | --x-incl | --x-inc | --x-in | --x-i) |
| 1058 | ac_prev=x_includes ;; |
| 1059 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
| 1060 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
| 1061 | x_includes=$ac_optarg ;; |
| 1062 | |
| 1063 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
| 1064 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
| 1065 | ac_prev=x_libraries ;; |
| 1066 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
| 1067 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
| 1068 | x_libraries=$ac_optarg ;; |
| 1069 | |
| 1070 | -*) { echo "$as_me: error: unrecognized option: $ac_option |
| 1071 | Try \`$0 --help' for more information." >&2 |
| 1072 | { (exit 1); exit 1; }; } |
| 1073 | ;; |
| 1074 | |
| 1075 | *=*) |
| 1076 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
| 1077 | # Reject names that are not valid shell variable names. |
| 1078 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && |
| 1079 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 |
| 1080 | { (exit 1); exit 1; }; } |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 1081 | eval $ac_envvar=\$ac_optarg |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1082 | export $ac_envvar ;; |
| 1083 | |
| 1084 | *) |
| 1085 | # FIXME: should be removed in autoconf 3.0. |
| 1086 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
| 1087 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
| 1088 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
| 1089 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} |
| 1090 | ;; |
| 1091 | |
| 1092 | esac |
| 1093 | done |
| 1094 | |
| 1095 | if test -n "$ac_prev"; then |
| 1096 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
| 1097 | { echo "$as_me: error: missing argument to $ac_option" >&2 |
| 1098 | { (exit 1); exit 1; }; } |
| 1099 | fi |
| 1100 | |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 1101 | # Be sure to have absolute directory names. |
| 1102 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
| 1103 | datadir sysconfdir sharedstatedir localstatedir includedir \ |
| 1104 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ |
| 1105 | libdir localedir mandir |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1106 | do |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 1107 | eval ac_val=\$$ac_var |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1108 | case $ac_val in |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 1109 | [\\/$]* | ?:[\\/]* ) continue;; |
| 1110 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1111 | esac |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 1112 | { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
| 1113 | { (exit 1); exit 1; }; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1114 | done |
| 1115 | |
| 1116 | # There might be people who depend on the old broken behavior: `$host' |
| 1117 | # used to hold the argument of --host etc. |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1118 | # FIXME: To remove some day. |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1119 | build=$build_alias |
| 1120 | host=$host_alias |
| 1121 | target=$target_alias |
| 1122 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1123 | # FIXME: To remove some day. |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1124 | if test "x$host_alias" != x; then |
| 1125 | if test "x$build_alias" = x; then |
| 1126 | cross_compiling=maybe |
| 1127 | echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. |
| 1128 | If a cross compiler is detected then cross compile mode will be used." >&2 |
| 1129 | elif test "x$build_alias" != "x$host_alias"; then |
| 1130 | cross_compiling=yes |
| 1131 | fi |
| 1132 | fi |
| 1133 | |
| 1134 | ac_tool_prefix= |
| 1135 | test -n "$host_alias" && ac_tool_prefix=$host_alias- |
| 1136 | |
| 1137 | test "$silent" = yes && exec 6>/dev/null |
| 1138 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1139 | |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 1140 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
| 1141 | ac_ls_di=`ls -di .` && |
| 1142 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || |
| 1143 | { echo "$as_me: error: Working directory cannot be determined" >&2 |
| 1144 | { (exit 1); exit 1; }; } |
| 1145 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
| 1146 | { echo "$as_me: error: pwd does not report name of working directory" >&2 |
| 1147 | { (exit 1); exit 1; }; } |
| 1148 | |
| 1149 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1150 | # Find the source files, if location was not specified. |
| 1151 | if test -z "$srcdir"; then |
| 1152 | ac_srcdir_defaulted=yes |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 1153 | # Try the directory containing this script, then the parent directory. |
| 1154 | ac_confdir=`$as_dirname -- "$0" || |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1155 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 1156 | X"$0" : 'X\(//\)[^/]' \| \ |
| 1157 | X"$0" : 'X\(//\)$' \| \ |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 1158 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1159 | echo X"$0" | |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 1160 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 1161 | s//\1/ |
| 1162 | q |
| 1163 | } |
| 1164 | /^X\(\/\/\)[^/].*/{ |
| 1165 | s//\1/ |
| 1166 | q |
| 1167 | } |
| 1168 | /^X\(\/\/\)$/{ |
| 1169 | s//\1/ |
| 1170 | q |
| 1171 | } |
| 1172 | /^X\(\/\).*/{ |
| 1173 | s//\1/ |
| 1174 | q |
| 1175 | } |
| 1176 | s/.*/./; q'` |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1177 | srcdir=$ac_confdir |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 1178 | if test ! -r "$srcdir/$ac_unique_file"; then |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1179 | srcdir=.. |
| 1180 | fi |
| 1181 | else |
| 1182 | ac_srcdir_defaulted=no |
| 1183 | fi |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 1184 | if test ! -r "$srcdir/$ac_unique_file"; then |
| 1185 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." |
| 1186 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1187 | { (exit 1); exit 1; }; } |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 1188 | fi |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 1189 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
| 1190 | ac_abs_confdir=`( |
| 1191 | cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2 |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 1192 | { (exit 1); exit 1; }; } |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 1193 | pwd)` |
| 1194 | # When building in place, set srcdir=. |
| 1195 | if test "$ac_abs_confdir" = "$ac_pwd"; then |
| 1196 | srcdir=. |
| 1197 | fi |
| 1198 | # Remove unnecessary trailing slashes from srcdir. |
| 1199 | # Double slashes in file names in object file debugging info |
| 1200 | # mess up M-x gdb in Emacs. |
| 1201 | case $srcdir in |
| 1202 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; |
| 1203 | esac |
| 1204 | for ac_var in $ac_precious_vars; do |
| 1205 | eval ac_env_${ac_var}_set=\${${ac_var}+set} |
| 1206 | eval ac_env_${ac_var}_value=\$${ac_var} |
| 1207 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} |
| 1208 | eval ac_cv_env_${ac_var}_value=\$${ac_var} |
| 1209 | done |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1210 | |
| 1211 | # |
| 1212 | # Report the --help message. |
| 1213 | # |
| 1214 | if test "$ac_init_help" = "long"; then |
| 1215 | # Omit some internal or obsolete options to make the list less imposing. |
| 1216 | # This message is too long to be a string in the A/UX 3.1 sh. |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1217 | cat <<_ACEOF |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 1218 | \`configure' configures pjproject 1.0 to adapt to many kinds of systems. |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1219 | |
| 1220 | Usage: $0 [OPTION]... [VAR=VALUE]... |
| 1221 | |
| 1222 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
| 1223 | VAR=VALUE. See below for descriptions of some of the useful variables. |
| 1224 | |
| 1225 | Defaults for the options are specified in brackets. |
| 1226 | |
| 1227 | Configuration: |
| 1228 | -h, --help display this help and exit |
| 1229 | --help=short display options specific to this package |
| 1230 | --help=recursive display the short help of all the included packages |
| 1231 | -V, --version display version information and exit |
| 1232 | -q, --quiet, --silent do not print \`checking...' messages |
| 1233 | --cache-file=FILE cache test results in FILE [disabled] |
| 1234 | -C, --config-cache alias for \`--cache-file=config.cache' |
| 1235 | -n, --no-create do not create output files |
| 1236 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] |
| 1237 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1238 | Installation directories: |
| 1239 | --prefix=PREFIX install architecture-independent files in PREFIX |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1240 | [$ac_default_prefix] |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1241 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1242 | [PREFIX] |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1243 | |
| 1244 | By default, \`make install' will install all the files in |
| 1245 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
| 1246 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
| 1247 | for instance \`--prefix=\$HOME'. |
| 1248 | |
| 1249 | For better control, use the options below. |
| 1250 | |
| 1251 | Fine tuning of the installation directories: |
| 1252 | --bindir=DIR user executables [EPREFIX/bin] |
| 1253 | --sbindir=DIR system admin executables [EPREFIX/sbin] |
| 1254 | --libexecdir=DIR program executables [EPREFIX/libexec] |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1255 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
| 1256 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
| 1257 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
| 1258 | --libdir=DIR object code libraries [EPREFIX/lib] |
| 1259 | --includedir=DIR C header files [PREFIX/include] |
| 1260 | --oldincludedir=DIR C header files for non-gcc [/usr/include] |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 1261 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] |
| 1262 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] |
| 1263 | --infodir=DIR info documentation [DATAROOTDIR/info] |
| 1264 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] |
| 1265 | --mandir=DIR man documentation [DATAROOTDIR/man] |
| 1266 | --docdir=DIR documentation root [DATAROOTDIR/doc/pjproject] |
| 1267 | --htmldir=DIR html documentation [DOCDIR] |
| 1268 | --dvidir=DIR dvi documentation [DOCDIR] |
| 1269 | --pdfdir=DIR pdf documentation [DOCDIR] |
| 1270 | --psdir=DIR ps documentation [DOCDIR] |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1271 | _ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1272 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1273 | cat <<\_ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1274 | |
| 1275 | System types: |
| 1276 | --build=BUILD configure for building on BUILD [guessed] |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1277 | --host=HOST cross-compile to build programs to run on HOST [BUILD] |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1278 | --target=TARGET configure for building compilers for TARGET [HOST] |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1279 | _ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1280 | fi |
| 1281 | |
| 1282 | if test -n "$ac_init_help"; then |
| 1283 | case $ac_init_help in |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 1284 | short | recursive ) echo "Configuration of pjproject 1.0:";; |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1285 | esac |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1286 | cat <<\_ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1287 | |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 1288 | Optional Features: |
| 1289 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
| 1290 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
| 1291 | --disable-floating-point |
| 1292 | Disable floating point where possible |
Benny Prijono | 1d97162 | 2006-09-10 22:27:40 +0000 | [diff] [blame] | 1293 | --disable-sound Exclude sound (i.e. use null sound) |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 1294 | --disable-oss Disable OSS audio (default: not disabled) |
| 1295 | |
Benny Prijono | ebb2c33 | 2008-07-28 23:40:58 +0000 | [diff] [blame] | 1296 | --enable-ext-sound PJMEDIA will not provide any sound device backend |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 1297 | --disable-small-filter Exclude small filter in resampling |
| 1298 | --disable-large-filter Exclude large filter in resampling |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 1299 | --disable-speex-aec Exclude Speex Acoustic Echo Canceller/AEC |
| 1300 | --disable-g711-codec Exclude G.711 codecs from the build |
| 1301 | --disable-l16-codec Exclude Linear/L16 codec family from the build |
| 1302 | --disable-gsm-codec Exclude GSM codec in the build |
Benny Prijono | 71f657d | 2008-03-17 14:24:21 +0000 | [diff] [blame] | 1303 | --disable-g722-codec Exclude G.722 codec in the build |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 1304 | --disable-speex-codec Exclude Speex codecs in the build |
| 1305 | --disable-ilbc-codec Exclude iLBC codec in the build |
Benny Prijono | 550a1a6 | 2007-10-16 08:54:00 +0000 | [diff] [blame] | 1306 | --enable-libsamplerate Link with libsamplerate when available. Note that |
| 1307 | PJMEDIA_RESAMPLE_IMP must also be configured |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 1308 | --enable-ipp Enable Intel IPP support. Specify the Intel IPP |
| 1309 | package and samples location using IPPROOT and |
| 1310 | IPPSAMPLES env var or with --with-ipp and |
| 1311 | --with-ipp-samples options |
| 1312 | --with-ipp=DIR Specify the Intel IPP location |
| 1313 | --with-ipp-samples=DIR Specify the Intel IPP samples location |
Benny Prijono | ce1db76 | 2007-02-14 02:21:08 +0000 | [diff] [blame] | 1314 | --disable-ssl Exclude SSL support the build (default: autodetect) |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1315 | |
| 1316 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1317 | Some influential environment variables: |
| 1318 | CC C compiler command |
| 1319 | CFLAGS C compiler flags |
| 1320 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
| 1321 | nonstandard directory <lib dir> |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 1322 | LIBS libraries to pass to the linker, e.g. -l<library> |
| 1323 | CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if |
| 1324 | you have headers in a nonstandard directory <include dir> |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 1325 | CXX C++ compiler command |
| 1326 | CXXFLAGS C++ compiler flags |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1327 | CPP C preprocessor |
| 1328 | |
| 1329 | Use these variables to override the choices made by `configure' or to help |
| 1330 | it to find libraries and programs with nonstandard names/locations. |
| 1331 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1332 | _ACEOF |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 1333 | ac_status=$? |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1334 | fi |
| 1335 | |
| 1336 | if test "$ac_init_help" = "recursive"; then |
| 1337 | # If there are subdirs, report their specific --help. |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1338 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 1339 | test -d "$ac_dir" || continue |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1340 | ac_builddir=. |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1341 | |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 1342 | case "$ac_dir" in |
| 1343 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 1344 | *) |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1345 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 1346 | # A ".." for each directory in $ac_dir_suffix. |
| 1347 | ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` |
| 1348 | case $ac_top_builddir_sub in |
| 1349 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 1350 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 1351 | esac ;; |
| 1352 | esac |
| 1353 | ac_abs_top_builddir=$ac_pwd |
| 1354 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 1355 | # for backward compatibility: |
| 1356 | ac_top_builddir=$ac_top_build_prefix |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1357 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1358 | case $srcdir in |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 1359 | .) # We are building in place. |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1360 | ac_srcdir=. |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 1361 | ac_top_srcdir=$ac_top_builddir_sub |
| 1362 | ac_abs_top_srcdir=$ac_pwd ;; |
| 1363 | [\\/]* | ?:[\\/]* ) # Absolute name. |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1364 | ac_srcdir=$srcdir$ac_dir_suffix; |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 1365 | ac_top_srcdir=$srcdir |
| 1366 | ac_abs_top_srcdir=$srcdir ;; |
| 1367 | *) # Relative name. |
| 1368 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 1369 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 1370 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1371 | esac |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 1372 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1373 | |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 1374 | cd "$ac_dir" || { ac_status=$?; continue; } |
| 1375 | # Check for guested configure. |
| 1376 | if test -f "$ac_srcdir/configure.gnu"; then |
| 1377 | echo && |
| 1378 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive |
| 1379 | elif test -f "$ac_srcdir/configure"; then |
| 1380 | echo && |
| 1381 | $SHELL "$ac_srcdir/configure" --help=recursive |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1382 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1383 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 1384 | fi || ac_status=$? |
| 1385 | cd "$ac_pwd" || { ac_status=$?; break; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1386 | done |
| 1387 | fi |
| 1388 | |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 1389 | test -n "$ac_init_help" && exit $ac_status |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1390 | if $ac_init_version; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1391 | cat <<\_ACEOF |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 1392 | pjproject configure 1.0 |
| 1393 | generated by GNU Autoconf 2.61 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1394 | |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 1395 | Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
| 1396 | 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1397 | This configure script is free software; the Free Software Foundation |
| 1398 | gives unlimited permission to copy, distribute and modify it. |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1399 | _ACEOF |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 1400 | exit |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1401 | fi |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 1402 | cat >config.log <<_ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1403 | This file contains any messages produced by compilers while |
| 1404 | running configure, to aid debugging if configure makes a mistake. |
| 1405 | |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 1406 | It was created by pjproject $as_me 1.0, which was |
| 1407 | generated by GNU Autoconf 2.61. Invocation command line was |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1408 | |
| 1409 | $ $0 $@ |
| 1410 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1411 | _ACEOF |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 1412 | exec 5>>config.log |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1413 | { |
| 1414 | cat <<_ASUNAME |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1415 | ## --------- ## |
| 1416 | ## Platform. ## |
| 1417 | ## --------- ## |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1418 | |
| 1419 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 1420 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
| 1421 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
| 1422 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
| 1423 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
| 1424 | |
| 1425 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
| 1426 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
| 1427 | |
| 1428 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
| 1429 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
| 1430 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 1431 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1432 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
| 1433 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
| 1434 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
| 1435 | |
| 1436 | _ASUNAME |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1437 | |
| 1438 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1439 | for as_dir in $PATH |
| 1440 | do |
| 1441 | IFS=$as_save_IFS |
| 1442 | test -z "$as_dir" && as_dir=. |
| 1443 | echo "PATH: $as_dir" |
| 1444 | done |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 1445 | IFS=$as_save_IFS |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1446 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1447 | } >&5 |
| 1448 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1449 | cat >&5 <<_ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1450 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1451 | |
| 1452 | ## ----------- ## |
| 1453 | ## Core tests. ## |
| 1454 | ## ----------- ## |
| 1455 | |
| 1456 | _ACEOF |
| 1457 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1458 | |
| 1459 | # Keep a trace of the command line. |
| 1460 | # Strip out --no-create and --no-recursion so they do not pile up. |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1461 | # Strip out --silent because we don't want to record it for future runs. |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1462 | # Also quote any args containing shell meta-characters. |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1463 | # Make two passes to allow for proper duplicate-argument suppression. |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1464 | ac_configure_args= |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1465 | ac_configure_args0= |
| 1466 | ac_configure_args1= |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1467 | ac_must_keep_next=false |
| 1468 | for ac_pass in 1 2 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1469 | do |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1470 | for ac_arg |
| 1471 | do |
| 1472 | case $ac_arg in |
| 1473 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
| 1474 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 1475 | | -silent | --silent | --silen | --sile | --sil) |
| 1476 | continue ;; |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 1477 | *\'*) |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1478 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 1479 | esac |
| 1480 | case $ac_pass in |
| 1481 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; |
| 1482 | 2) |
| 1483 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" |
| 1484 | if test $ac_must_keep_next = true; then |
| 1485 | ac_must_keep_next=false # Got value, back to normal. |
| 1486 | else |
| 1487 | case $ac_arg in |
| 1488 | *=* | --config-cache | -C | -disable-* | --disable-* \ |
| 1489 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
| 1490 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
| 1491 | | -with-* | --with-* | -without-* | --without-* | --x) |
| 1492 | case "$ac_configure_args0 " in |
| 1493 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
| 1494 | esac |
| 1495 | ;; |
| 1496 | -* ) ac_must_keep_next=true ;; |
| 1497 | esac |
| 1498 | fi |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 1499 | ac_configure_args="$ac_configure_args '$ac_arg'" |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1500 | ;; |
| 1501 | esac |
| 1502 | done |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1503 | done |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1504 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } |
| 1505 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1506 | |
| 1507 | # When interrupted or exit'd, cleanup temporary files, and complete |
| 1508 | # config.log. We remove comments because anyway the quotes in there |
| 1509 | # would cause problems or look ugly. |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 1510 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
| 1511 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1512 | trap 'exit_status=$? |
| 1513 | # Save into config.log some information that might help in debugging. |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1514 | { |
| 1515 | echo |
| 1516 | |
| 1517 | cat <<\_ASBOX |
| 1518 | ## ---------------- ## |
| 1519 | ## Cache variables. ## |
| 1520 | ## ---------------- ## |
| 1521 | _ASBOX |
| 1522 | echo |
| 1523 | # The following way of writing the cache mishandles newlines in values, |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 1524 | ( |
| 1525 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do |
| 1526 | eval ac_val=\$$ac_var |
| 1527 | case $ac_val in #( |
| 1528 | *${as_nl}*) |
| 1529 | case $ac_var in #( |
| 1530 | *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 |
| 1531 | echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; |
| 1532 | esac |
| 1533 | case $ac_var in #( |
| 1534 | _ | IFS | as_nl) ;; #( |
| 1535 | *) $as_unset $ac_var ;; |
| 1536 | esac ;; |
| 1537 | esac |
| 1538 | done |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1539 | (set) 2>&1 | |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 1540 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
| 1541 | *${as_nl}ac_space=\ *) |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1542 | sed -n \ |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 1543 | "s/'\''/'\''\\\\'\'''\''/g; |
| 1544 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" |
| 1545 | ;; #( |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 1546 | *) |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 1547 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 1548 | ;; |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 1549 | esac | |
| 1550 | sort |
| 1551 | ) |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1552 | echo |
| 1553 | |
| 1554 | cat <<\_ASBOX |
| 1555 | ## ----------------- ## |
| 1556 | ## Output variables. ## |
| 1557 | ## ----------------- ## |
| 1558 | _ASBOX |
| 1559 | echo |
| 1560 | for ac_var in $ac_subst_vars |
| 1561 | do |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 1562 | eval ac_val=\$$ac_var |
| 1563 | case $ac_val in |
| 1564 | *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
| 1565 | esac |
| 1566 | echo "$ac_var='\''$ac_val'\''" |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1567 | done | sort |
| 1568 | echo |
| 1569 | |
| 1570 | if test -n "$ac_subst_files"; then |
| 1571 | cat <<\_ASBOX |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 1572 | ## ------------------- ## |
| 1573 | ## File substitutions. ## |
| 1574 | ## ------------------- ## |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1575 | _ASBOX |
| 1576 | echo |
| 1577 | for ac_var in $ac_subst_files |
| 1578 | do |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 1579 | eval ac_val=\$$ac_var |
| 1580 | case $ac_val in |
| 1581 | *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
| 1582 | esac |
| 1583 | echo "$ac_var='\''$ac_val'\''" |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1584 | done | sort |
| 1585 | echo |
| 1586 | fi |
| 1587 | |
| 1588 | if test -s confdefs.h; then |
| 1589 | cat <<\_ASBOX |
| 1590 | ## ----------- ## |
| 1591 | ## confdefs.h. ## |
| 1592 | ## ----------- ## |
| 1593 | _ASBOX |
| 1594 | echo |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 1595 | cat confdefs.h |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1596 | echo |
| 1597 | fi |
| 1598 | test "$ac_signal" != 0 && |
| 1599 | echo "$as_me: caught signal $ac_signal" |
| 1600 | echo "$as_me: exit $exit_status" |
| 1601 | } >&5 |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 1602 | rm -f core *.core core.conftest.* && |
| 1603 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1604 | exit $exit_status |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 1605 | ' 0 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1606 | for ac_signal in 1 2 13 15; do |
| 1607 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal |
| 1608 | done |
| 1609 | ac_signal=0 |
| 1610 | |
| 1611 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 1612 | rm -f -r conftest* confdefs.h |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1613 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1614 | # Predefined preprocessor variables. |
| 1615 | |
| 1616 | cat >>confdefs.h <<_ACEOF |
| 1617 | #define PACKAGE_NAME "$PACKAGE_NAME" |
| 1618 | _ACEOF |
| 1619 | |
| 1620 | |
| 1621 | cat >>confdefs.h <<_ACEOF |
| 1622 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
| 1623 | _ACEOF |
| 1624 | |
| 1625 | |
| 1626 | cat >>confdefs.h <<_ACEOF |
| 1627 | #define PACKAGE_VERSION "$PACKAGE_VERSION" |
| 1628 | _ACEOF |
| 1629 | |
| 1630 | |
| 1631 | cat >>confdefs.h <<_ACEOF |
| 1632 | #define PACKAGE_STRING "$PACKAGE_STRING" |
| 1633 | _ACEOF |
| 1634 | |
| 1635 | |
| 1636 | cat >>confdefs.h <<_ACEOF |
| 1637 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
| 1638 | _ACEOF |
| 1639 | |
| 1640 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1641 | # Let the site file select an alternate cache file if it wants to. |
| 1642 | # Prefer explicitly selected file to automatically selected ones. |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 1643 | if test -n "$CONFIG_SITE"; then |
| 1644 | set x "$CONFIG_SITE" |
| 1645 | elif test "x$prefix" != xNONE; then |
| 1646 | set x "$prefix/share/config.site" "$prefix/etc/config.site" |
| 1647 | else |
| 1648 | set x "$ac_default_prefix/share/config.site" \ |
| 1649 | "$ac_default_prefix/etc/config.site" |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1650 | fi |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 1651 | shift |
| 1652 | for ac_site_file |
| 1653 | do |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1654 | if test -r "$ac_site_file"; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1655 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1656 | echo "$as_me: loading site script $ac_site_file" >&6;} |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1657 | sed 's/^/| /' "$ac_site_file" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1658 | . "$ac_site_file" |
| 1659 | fi |
| 1660 | done |
| 1661 | |
| 1662 | if test -r "$cache_file"; then |
| 1663 | # Some versions of bash will fail to source /dev/null (special |
| 1664 | # files actually), so we avoid doing that. |
| 1665 | if test -f "$cache_file"; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1666 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1667 | echo "$as_me: loading cache $cache_file" >&6;} |
| 1668 | case $cache_file in |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 1669 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
| 1670 | *) . "./$cache_file";; |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1671 | esac |
| 1672 | fi |
| 1673 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1674 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1675 | echo "$as_me: creating cache $cache_file" >&6;} |
| 1676 | >$cache_file |
| 1677 | fi |
| 1678 | |
| 1679 | # Check that the precious variables saved in the cache have kept the same |
| 1680 | # value. |
| 1681 | ac_cache_corrupted=false |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 1682 | for ac_var in $ac_precious_vars; do |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1683 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
| 1684 | eval ac_new_set=\$ac_env_${ac_var}_set |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 1685 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
| 1686 | eval ac_new_val=\$ac_env_${ac_var}_value |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1687 | case $ac_old_set,$ac_new_set in |
| 1688 | set,) |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1689 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1690 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
| 1691 | ac_cache_corrupted=: ;; |
| 1692 | ,set) |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1693 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1694 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
| 1695 | ac_cache_corrupted=: ;; |
| 1696 | ,);; |
| 1697 | *) |
| 1698 | if test "x$ac_old_val" != "x$ac_new_val"; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1699 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1700 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1701 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1702 | echo "$as_me: former value: $ac_old_val" >&2;} |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1703 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1704 | echo "$as_me: current value: $ac_new_val" >&2;} |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1705 | ac_cache_corrupted=: |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1706 | fi;; |
| 1707 | esac |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1708 | # Pass precious variables to config.status. |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1709 | if test "$ac_new_set" = set; then |
| 1710 | case $ac_new_val in |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 1711 | *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1712 | *) ac_arg=$ac_var=$ac_new_val ;; |
| 1713 | esac |
| 1714 | case " $ac_configure_args " in |
| 1715 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
| 1716 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1717 | esac |
| 1718 | fi |
| 1719 | done |
| 1720 | if $ac_cache_corrupted; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1721 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1722 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1723 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1724 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} |
| 1725 | { (exit 1); exit 1; }; } |
| 1726 | fi |
| 1727 | |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 1728 | |
| 1729 | |
| 1730 | |
| 1731 | |
| 1732 | |
| 1733 | |
| 1734 | |
| 1735 | |
| 1736 | |
| 1737 | |
| 1738 | |
| 1739 | |
| 1740 | |
| 1741 | |
| 1742 | |
| 1743 | |
| 1744 | |
| 1745 | |
| 1746 | |
| 1747 | |
| 1748 | |
| 1749 | |
| 1750 | |
| 1751 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1752 | ac_ext=c |
| 1753 | ac_cpp='$CPP $CPPFLAGS' |
| 1754 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 1755 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 1756 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 1757 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1758 | |
| 1759 | |
Benny Prijono | 5b818b2 | 2006-09-17 22:58:51 +0000 | [diff] [blame] | 1760 | host_orig="$host" |
| 1761 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1762 | ac_aux_dir= |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 1763 | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do |
| 1764 | if test -f "$ac_dir/install-sh"; then |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1765 | ac_aux_dir=$ac_dir |
| 1766 | ac_install_sh="$ac_aux_dir/install-sh -c" |
| 1767 | break |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 1768 | elif test -f "$ac_dir/install.sh"; then |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1769 | ac_aux_dir=$ac_dir |
| 1770 | ac_install_sh="$ac_aux_dir/install.sh -c" |
| 1771 | break |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 1772 | elif test -f "$ac_dir/shtool"; then |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1773 | ac_aux_dir=$ac_dir |
| 1774 | ac_install_sh="$ac_aux_dir/shtool install -c" |
| 1775 | break |
| 1776 | fi |
| 1777 | done |
| 1778 | if test -z "$ac_aux_dir"; then |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 1779 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5 |
| 1780 | echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;} |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1781 | { (exit 1); exit 1; }; } |
| 1782 | fi |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 1783 | |
| 1784 | # These three variables are undocumented and unsupported, |
| 1785 | # and are intended to be withdrawn in a future Autoconf release. |
| 1786 | # They can cause serious problems if a builder's source tree is in a directory |
| 1787 | # whose full name contains unusual characters. |
| 1788 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. |
| 1789 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. |
| 1790 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. |
| 1791 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1792 | |
| 1793 | # Make sure we can run config.sub. |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 1794 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || |
| 1795 | { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 |
| 1796 | echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;} |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1797 | { (exit 1); exit 1; }; } |
| 1798 | |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 1799 | { echo "$as_me:$LINENO: checking build system type" >&5 |
| 1800 | echo $ECHO_N "checking build system type... $ECHO_C" >&6; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1801 | if test "${ac_cv_build+set}" = set; then |
| 1802 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1803 | else |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 1804 | ac_build_alias=$build_alias |
| 1805 | test "x$ac_build_alias" = x && |
| 1806 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` |
| 1807 | test "x$ac_build_alias" = x && |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1808 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1809 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} |
| 1810 | { (exit 1); exit 1; }; } |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 1811 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || |
| 1812 | { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 |
| 1813 | echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;} |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1814 | { (exit 1); exit 1; }; } |
| 1815 | |
| 1816 | fi |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 1817 | { echo "$as_me:$LINENO: result: $ac_cv_build" >&5 |
| 1818 | echo "${ECHO_T}$ac_cv_build" >&6; } |
| 1819 | case $ac_cv_build in |
| 1820 | *-*-*) ;; |
| 1821 | *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 |
| 1822 | echo "$as_me: error: invalid value of canonical build" >&2;} |
| 1823 | { (exit 1); exit 1; }; };; |
| 1824 | esac |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1825 | build=$ac_cv_build |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 1826 | ac_save_IFS=$IFS; IFS='-' |
| 1827 | set x $ac_cv_build |
| 1828 | shift |
| 1829 | build_cpu=$1 |
| 1830 | build_vendor=$2 |
| 1831 | shift; shift |
| 1832 | # Remember, the first character of IFS is used to create $*, |
| 1833 | # except with old shells: |
| 1834 | build_os=$* |
| 1835 | IFS=$ac_save_IFS |
| 1836 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1837 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1838 | |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 1839 | { echo "$as_me:$LINENO: checking host system type" >&5 |
| 1840 | echo $ECHO_N "checking host system type... $ECHO_C" >&6; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1841 | if test "${ac_cv_host+set}" = set; then |
| 1842 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1843 | else |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 1844 | if test "x$host_alias" = x; then |
| 1845 | ac_cv_host=$ac_cv_build |
| 1846 | else |
| 1847 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || |
| 1848 | { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 |
| 1849 | echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;} |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1850 | { (exit 1); exit 1; }; } |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 1851 | fi |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1852 | |
| 1853 | fi |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 1854 | { echo "$as_me:$LINENO: result: $ac_cv_host" >&5 |
| 1855 | echo "${ECHO_T}$ac_cv_host" >&6; } |
| 1856 | case $ac_cv_host in |
| 1857 | *-*-*) ;; |
| 1858 | *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 |
| 1859 | echo "$as_me: error: invalid value of canonical host" >&2;} |
| 1860 | { (exit 1); exit 1; }; };; |
| 1861 | esac |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1862 | host=$ac_cv_host |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 1863 | ac_save_IFS=$IFS; IFS='-' |
| 1864 | set x $ac_cv_host |
| 1865 | shift |
| 1866 | host_cpu=$1 |
| 1867 | host_vendor=$2 |
| 1868 | shift; shift |
| 1869 | # Remember, the first character of IFS is used to create $*, |
| 1870 | # except with old shells: |
| 1871 | host_os=$* |
| 1872 | IFS=$ac_save_IFS |
| 1873 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1874 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1875 | |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 1876 | { echo "$as_me:$LINENO: checking target system type" >&5 |
| 1877 | echo $ECHO_N "checking target system type... $ECHO_C" >&6; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1878 | if test "${ac_cv_target+set}" = set; then |
| 1879 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1880 | else |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 1881 | if test "x$target_alias" = x; then |
| 1882 | ac_cv_target=$ac_cv_host |
| 1883 | else |
| 1884 | ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || |
| 1885 | { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5 |
| 1886 | echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;} |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1887 | { (exit 1); exit 1; }; } |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 1888 | fi |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1889 | |
| 1890 | fi |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 1891 | { echo "$as_me:$LINENO: result: $ac_cv_target" >&5 |
| 1892 | echo "${ECHO_T}$ac_cv_target" >&6; } |
| 1893 | case $ac_cv_target in |
| 1894 | *-*-*) ;; |
| 1895 | *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5 |
| 1896 | echo "$as_me: error: invalid value of canonical target" >&2;} |
| 1897 | { (exit 1); exit 1; }; };; |
| 1898 | esac |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1899 | target=$ac_cv_target |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 1900 | ac_save_IFS=$IFS; IFS='-' |
| 1901 | set x $ac_cv_target |
| 1902 | shift |
| 1903 | target_cpu=$1 |
| 1904 | target_vendor=$2 |
| 1905 | shift; shift |
| 1906 | # Remember, the first character of IFS is used to create $*, |
| 1907 | # except with old shells: |
| 1908 | target_os=$* |
| 1909 | IFS=$ac_save_IFS |
| 1910 | case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1911 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1912 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1913 | # The aliases save the names the user supplied, while $host etc. |
| 1914 | # will get canonicalized. |
| 1915 | test -n "$target_alias" && |
| 1916 | test "$program_prefix$program_suffix$program_transform_name" = \ |
| 1917 | NONENONEs,x,x, && |
| 1918 | program_prefix=${target_alias}- |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 1919 | ac_config_headers="$ac_config_headers pjlib/include/pj/compat/os_auto.h pjlib/include/pj/compat/m_auto.h pjmedia/include/pjmedia/config_auto.h pjmedia/include/pjmedia-codec/config_auto.h pjsip/include/pjsip/sip_autoconf.h" |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 1920 | |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 1921 | ac_config_files="$ac_config_files build.mak build/os-auto.mak pjlib/build/os-auto.mak pjlib-util/build/os-auto.mak pjmedia/build/os-auto.mak pjsip/build/os-auto.mak third_party/build/portaudio/os-auto.mak third_party/build/os-auto.mak" |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1922 | |
Benny Prijono | c1fe23d | 2006-09-13 09:38:06 +0000 | [diff] [blame] | 1923 | |
Benny Prijono | 1248311 | 2007-03-12 10:44:38 +0000 | [diff] [blame] | 1924 | |
Benny Prijono | c1fe23d | 2006-09-13 09:38:06 +0000 | [diff] [blame] | 1925 | if test "$CFLAGS" = ""; then |
Benny Prijono | d145982 | 2006-10-04 20:56:39 +0000 | [diff] [blame] | 1926 | CFLAGS="-O2" |
Benny Prijono | c1fe23d | 2006-09-13 09:38:06 +0000 | [diff] [blame] | 1927 | else |
| 1928 | CFLAGS="$CFLAGS" |
| 1929 | fi |
| 1930 | |
| 1931 | CXXFLAGS="$CFLAGS $CXXFLAGS" |
| 1932 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1933 | ac_ext=c |
| 1934 | ac_cpp='$CPP $CPPFLAGS' |
| 1935 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 1936 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 1937 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 1938 | if test -n "$ac_tool_prefix"; then |
| 1939 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
| 1940 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 1941 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1942 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1943 | if test "${ac_cv_prog_CC+set}" = set; then |
| 1944 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1945 | else |
| 1946 | if test -n "$CC"; then |
| 1947 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 1948 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1949 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1950 | for as_dir in $PATH |
| 1951 | do |
| 1952 | IFS=$as_save_IFS |
| 1953 | test -z "$as_dir" && as_dir=. |
| 1954 | for ac_exec_ext in '' $ac_executable_extensions; do |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 1955 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1956 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
| 1957 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1958 | break 2 |
| 1959 | fi |
| 1960 | done |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1961 | done |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 1962 | IFS=$as_save_IFS |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1963 | |
| 1964 | fi |
| 1965 | fi |
| 1966 | CC=$ac_cv_prog_CC |
| 1967 | if test -n "$CC"; then |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 1968 | { echo "$as_me:$LINENO: result: $CC" >&5 |
| 1969 | echo "${ECHO_T}$CC" >&6; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1970 | else |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 1971 | { echo "$as_me:$LINENO: result: no" >&5 |
| 1972 | echo "${ECHO_T}no" >&6; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1973 | fi |
| 1974 | |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 1975 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1976 | fi |
| 1977 | if test -z "$ac_cv_prog_CC"; then |
| 1978 | ac_ct_CC=$CC |
| 1979 | # Extract the first word of "gcc", so it can be a program name with args. |
| 1980 | set dummy gcc; ac_word=$2 |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 1981 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1982 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1983 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 1984 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1985 | else |
| 1986 | if test -n "$ac_ct_CC"; then |
| 1987 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 1988 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1989 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1990 | for as_dir in $PATH |
| 1991 | do |
| 1992 | IFS=$as_save_IFS |
| 1993 | test -z "$as_dir" && as_dir=. |
| 1994 | for ac_exec_ext in '' $ac_executable_extensions; do |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 1995 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1996 | ac_cv_prog_ac_ct_CC="gcc" |
| 1997 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1998 | break 2 |
| 1999 | fi |
| 2000 | done |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2001 | done |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 2002 | IFS=$as_save_IFS |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2003 | |
| 2004 | fi |
| 2005 | fi |
| 2006 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 2007 | if test -n "$ac_ct_CC"; then |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 2008 | { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 2009 | echo "${ECHO_T}$ac_ct_CC" >&6; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2010 | else |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 2011 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2012 | echo "${ECHO_T}no" >&6; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2013 | fi |
| 2014 | |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 2015 | if test "x$ac_ct_CC" = x; then |
| 2016 | CC="" |
| 2017 | else |
| 2018 | case $cross_compiling:$ac_tool_warned in |
| 2019 | yes:) |
| 2020 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 2021 | whose name does not start with the host triplet. If you think this |
| 2022 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 2023 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 2024 | whose name does not start with the host triplet. If you think this |
| 2025 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| 2026 | ac_tool_warned=yes ;; |
| 2027 | esac |
| 2028 | CC=$ac_ct_CC |
| 2029 | fi |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2030 | else |
| 2031 | CC="$ac_cv_prog_CC" |
| 2032 | fi |
| 2033 | |
| 2034 | if test -z "$CC"; then |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 2035 | if test -n "$ac_tool_prefix"; then |
| 2036 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2037 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 2038 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2039 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2040 | if test "${ac_cv_prog_CC+set}" = set; then |
| 2041 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2042 | else |
| 2043 | if test -n "$CC"; then |
| 2044 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2045 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2046 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2047 | for as_dir in $PATH |
| 2048 | do |
| 2049 | IFS=$as_save_IFS |
| 2050 | test -z "$as_dir" && as_dir=. |
| 2051 | for ac_exec_ext in '' $ac_executable_extensions; do |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 2052 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2053 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
| 2054 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2055 | break 2 |
| 2056 | fi |
| 2057 | done |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2058 | done |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 2059 | IFS=$as_save_IFS |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2060 | |
| 2061 | fi |
| 2062 | fi |
| 2063 | CC=$ac_cv_prog_CC |
| 2064 | if test -n "$CC"; then |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 2065 | { echo "$as_me:$LINENO: result: $CC" >&5 |
| 2066 | echo "${ECHO_T}$CC" >&6; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2067 | else |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 2068 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2069 | echo "${ECHO_T}no" >&6; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2070 | fi |
| 2071 | |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 2072 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2073 | fi |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2074 | fi |
| 2075 | if test -z "$CC"; then |
| 2076 | # Extract the first word of "cc", so it can be a program name with args. |
| 2077 | set dummy cc; ac_word=$2 |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 2078 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2079 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2080 | if test "${ac_cv_prog_CC+set}" = set; then |
| 2081 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2082 | else |
| 2083 | if test -n "$CC"; then |
| 2084 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2085 | else |
| 2086 | ac_prog_rejected=no |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2087 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2088 | for as_dir in $PATH |
| 2089 | do |
| 2090 | IFS=$as_save_IFS |
| 2091 | test -z "$as_dir" && as_dir=. |
| 2092 | for ac_exec_ext in '' $ac_executable_extensions; do |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 2093 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2094 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
| 2095 | ac_prog_rejected=yes |
| 2096 | continue |
| 2097 | fi |
| 2098 | ac_cv_prog_CC="cc" |
| 2099 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2100 | break 2 |
| 2101 | fi |
| 2102 | done |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2103 | done |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 2104 | IFS=$as_save_IFS |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2105 | |
| 2106 | if test $ac_prog_rejected = yes; then |
| 2107 | # We found a bogon in the path, so make sure we never use it. |
| 2108 | set dummy $ac_cv_prog_CC |
| 2109 | shift |
| 2110 | if test $# != 0; then |
| 2111 | # We chose a different compiler from the bogus one. |
| 2112 | # However, it has the same basename, so the bogon will be chosen |
| 2113 | # first if we set CC to just the basename; use the full file name. |
| 2114 | shift |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2115 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2116 | fi |
| 2117 | fi |
| 2118 | fi |
| 2119 | fi |
| 2120 | CC=$ac_cv_prog_CC |
| 2121 | if test -n "$CC"; then |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 2122 | { echo "$as_me:$LINENO: result: $CC" >&5 |
| 2123 | echo "${ECHO_T}$CC" >&6; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2124 | else |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 2125 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2126 | echo "${ECHO_T}no" >&6; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2127 | fi |
| 2128 | |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 2129 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2130 | fi |
| 2131 | if test -z "$CC"; then |
| 2132 | if test -n "$ac_tool_prefix"; then |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 2133 | for ac_prog in cl.exe |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2134 | do |
| 2135 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 2136 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 2137 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2138 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2139 | if test "${ac_cv_prog_CC+set}" = set; then |
| 2140 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2141 | else |
| 2142 | if test -n "$CC"; then |
| 2143 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2144 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2145 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2146 | for as_dir in $PATH |
| 2147 | do |
| 2148 | IFS=$as_save_IFS |
| 2149 | test -z "$as_dir" && as_dir=. |
| 2150 | for ac_exec_ext in '' $ac_executable_extensions; do |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 2151 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2152 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
| 2153 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2154 | break 2 |
| 2155 | fi |
| 2156 | done |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2157 | done |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 2158 | IFS=$as_save_IFS |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2159 | |
| 2160 | fi |
| 2161 | fi |
| 2162 | CC=$ac_cv_prog_CC |
| 2163 | if test -n "$CC"; then |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 2164 | { echo "$as_me:$LINENO: result: $CC" >&5 |
| 2165 | echo "${ECHO_T}$CC" >&6; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2166 | else |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 2167 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2168 | echo "${ECHO_T}no" >&6; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2169 | fi |
| 2170 | |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 2171 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2172 | test -n "$CC" && break |
| 2173 | done |
| 2174 | fi |
| 2175 | if test -z "$CC"; then |
| 2176 | ac_ct_CC=$CC |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 2177 | for ac_prog in cl.exe |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2178 | do |
| 2179 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 2180 | set dummy $ac_prog; ac_word=$2 |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 2181 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2182 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2183 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 2184 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2185 | else |
| 2186 | if test -n "$ac_ct_CC"; then |
| 2187 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 2188 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2189 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2190 | for as_dir in $PATH |
| 2191 | do |
| 2192 | IFS=$as_save_IFS |
| 2193 | test -z "$as_dir" && as_dir=. |
| 2194 | for ac_exec_ext in '' $ac_executable_extensions; do |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 2195 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2196 | ac_cv_prog_ac_ct_CC="$ac_prog" |
| 2197 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2198 | break 2 |
| 2199 | fi |
| 2200 | done |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2201 | done |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 2202 | IFS=$as_save_IFS |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2203 | |
| 2204 | fi |
| 2205 | fi |
| 2206 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 2207 | if test -n "$ac_ct_CC"; then |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 2208 | { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 2209 | echo "${ECHO_T}$ac_ct_CC" >&6; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2210 | else |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 2211 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2212 | echo "${ECHO_T}no" >&6; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2213 | fi |
| 2214 | |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 2215 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2216 | test -n "$ac_ct_CC" && break |
| 2217 | done |
| 2218 | |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 2219 | if test "x$ac_ct_CC" = x; then |
| 2220 | CC="" |
| 2221 | else |
| 2222 | case $cross_compiling:$ac_tool_warned in |
| 2223 | yes:) |
| 2224 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 2225 | whose name does not start with the host triplet. If you think this |
| 2226 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 2227 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 2228 | whose name does not start with the host triplet. If you think this |
| 2229 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| 2230 | ac_tool_warned=yes ;; |
| 2231 | esac |
| 2232 | CC=$ac_ct_CC |
| 2233 | fi |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2234 | fi |
| 2235 | |
| 2236 | fi |
| 2237 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2238 | |
| 2239 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH |
| 2240 | See \`config.log' for more details." >&5 |
| 2241 | echo "$as_me: error: no acceptable C compiler found in \$PATH |
| 2242 | See \`config.log' for more details." >&2;} |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2243 | { (exit 1); exit 1; }; } |
| 2244 | |
| 2245 | # Provide some information about the compiler. |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 2246 | echo "$as_me:$LINENO: checking for C compiler version" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2247 | ac_compiler=`set X $ac_compile; echo $2` |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 2248 | { (ac_try="$ac_compiler --version >&5" |
| 2249 | case "(($ac_try" in |
| 2250 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2251 | *) ac_try_echo=$ac_try;; |
| 2252 | esac |
| 2253 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2254 | (eval "$ac_compiler --version >&5") 2>&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2255 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2256 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2257 | (exit $ac_status); } |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 2258 | { (ac_try="$ac_compiler -v >&5" |
| 2259 | case "(($ac_try" in |
| 2260 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2261 | *) ac_try_echo=$ac_try;; |
| 2262 | esac |
| 2263 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2264 | (eval "$ac_compiler -v >&5") 2>&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2265 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2266 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2267 | (exit $ac_status); } |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 2268 | { (ac_try="$ac_compiler -V >&5" |
| 2269 | case "(($ac_try" in |
| 2270 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2271 | *) ac_try_echo=$ac_try;; |
| 2272 | esac |
| 2273 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2274 | (eval "$ac_compiler -V >&5") 2>&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2275 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2276 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2277 | (exit $ac_status); } |
| 2278 | |
| 2279 | cat >conftest.$ac_ext <<_ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2280 | /* confdefs.h. */ |
| 2281 | _ACEOF |
| 2282 | cat confdefs.h >>conftest.$ac_ext |
| 2283 | cat >>conftest.$ac_ext <<_ACEOF |
| 2284 | /* end confdefs.h. */ |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2285 | |
| 2286 | int |
| 2287 | main () |
| 2288 | { |
| 2289 | |
| 2290 | ; |
| 2291 | return 0; |
| 2292 | } |
| 2293 | _ACEOF |
| 2294 | ac_clean_files_save=$ac_clean_files |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2295 | ac_clean_files="$ac_clean_files a.out a.exe b.out" |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2296 | # Try to create an executable without -o first, disregard a.out. |
| 2297 | # It will help us diagnose broken compilers, and finding out an intuition |
| 2298 | # of exeext. |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 2299 | { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 |
| 2300 | echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2301 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 2302 | # |
| 2303 | # List of possible output files, starting from the most likely. |
| 2304 | # The algorithm is not robust to junk in `.', hence go to wildcards (a.*) |
| 2305 | # only as a last resort. b.out is created by i960 compilers. |
| 2306 | ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out' |
| 2307 | # |
| 2308 | # The IRIX 6 linker writes into existing files which may not be |
| 2309 | # executable, retaining their permissions. Remove them first so a |
| 2310 | # subsequent execution test works. |
| 2311 | ac_rmfiles= |
| 2312 | for ac_file in $ac_files |
| 2313 | do |
| 2314 | case $ac_file in |
| 2315 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; |
| 2316 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; |
| 2317 | esac |
| 2318 | done |
| 2319 | rm -f $ac_rmfiles |
| 2320 | |
| 2321 | if { (ac_try="$ac_link_default" |
| 2322 | case "(($ac_try" in |
| 2323 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2324 | *) ac_try_echo=$ac_try;; |
| 2325 | esac |
| 2326 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2327 | (eval "$ac_link_default") 2>&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2328 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2329 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2330 | (exit $ac_status); }; then |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 2331 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
| 2332 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' |
| 2333 | # in a Makefile. We should not override ac_cv_exeext if it was cached, |
| 2334 | # so that the user can short-circuit this test for compilers unknown to |
| 2335 | # Autoconf. |
| 2336 | for ac_file in $ac_files '' |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2337 | do |
| 2338 | test -f "$ac_file" || continue |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2339 | case $ac_file in |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 2340 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2341 | ;; |
| 2342 | [ab].out ) |
| 2343 | # We found the default executable, but exeext='' is most |
| 2344 | # certainly right. |
| 2345 | break;; |
| 2346 | *.* ) |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 2347 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
| 2348 | then :; else |
| 2349 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 2350 | fi |
| 2351 | # We set ac_cv_exeext here because the later test for it is not |
| 2352 | # safe: cross compilers may not add the suffix if given an `-o' |
| 2353 | # argument, so we may need to know it at that point already. |
| 2354 | # Even if this section looks crufty: it has the advantage of |
| 2355 | # actually working. |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2356 | break;; |
| 2357 | * ) |
| 2358 | break;; |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2359 | esac |
| 2360 | done |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 2361 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
| 2362 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2363 | else |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 2364 | ac_file='' |
| 2365 | fi |
| 2366 | |
| 2367 | { echo "$as_me:$LINENO: result: $ac_file" >&5 |
| 2368 | echo "${ECHO_T}$ac_file" >&6; } |
| 2369 | if test -z "$ac_file"; then |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2370 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2371 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2372 | |
| 2373 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables |
| 2374 | See \`config.log' for more details." >&5 |
| 2375 | echo "$as_me: error: C compiler cannot create executables |
| 2376 | See \`config.log' for more details." >&2;} |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2377 | { (exit 77); exit 77; }; } |
| 2378 | fi |
| 2379 | |
| 2380 | ac_exeext=$ac_cv_exeext |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2381 | |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 2382 | # Check that the compiler produces executables we can run. If not, either |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2383 | # the compiler is broken, or we cross compile. |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 2384 | { echo "$as_me:$LINENO: checking whether the C compiler works" >&5 |
| 2385 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2386 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
| 2387 | # If not cross compiling, check that we can run a simple program. |
| 2388 | if test "$cross_compiling" != yes; then |
| 2389 | if { ac_try='./$ac_file' |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 2390 | { (case "(($ac_try" in |
| 2391 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2392 | *) ac_try_echo=$ac_try;; |
| 2393 | esac |
| 2394 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2395 | (eval "$ac_try") 2>&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2396 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2397 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2398 | (exit $ac_status); }; }; then |
| 2399 | cross_compiling=no |
| 2400 | else |
| 2401 | if test "$cross_compiling" = maybe; then |
| 2402 | cross_compiling=yes |
| 2403 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2404 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. |
| 2405 | If you meant to cross compile, use \`--host'. |
| 2406 | See \`config.log' for more details." >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2407 | echo "$as_me: error: cannot run C compiled programs. |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2408 | If you meant to cross compile, use \`--host'. |
| 2409 | See \`config.log' for more details." >&2;} |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2410 | { (exit 1); exit 1; }; } |
| 2411 | fi |
| 2412 | fi |
| 2413 | fi |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 2414 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 2415 | echo "${ECHO_T}yes" >&6; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2416 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2417 | rm -f a.out a.exe conftest$ac_cv_exeext b.out |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2418 | ac_clean_files=$ac_clean_files_save |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 2419 | # Check that the compiler produces executables we can run. If not, either |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2420 | # the compiler is broken, or we cross compile. |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 2421 | { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
| 2422 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; } |
| 2423 | { echo "$as_me:$LINENO: result: $cross_compiling" >&5 |
| 2424 | echo "${ECHO_T}$cross_compiling" >&6; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2425 | |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 2426 | { echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
| 2427 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; } |
| 2428 | if { (ac_try="$ac_link" |
| 2429 | case "(($ac_try" in |
| 2430 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2431 | *) ac_try_echo=$ac_try;; |
| 2432 | esac |
| 2433 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2434 | (eval "$ac_link") 2>&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2435 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2436 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2437 | (exit $ac_status); }; then |
| 2438 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
| 2439 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
| 2440 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
| 2441 | # `rm'. |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2442 | for ac_file in conftest.exe conftest conftest.*; do |
| 2443 | test -f "$ac_file" || continue |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2444 | case $ac_file in |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 2445 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2446 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2447 | break;; |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2448 | * ) break;; |
| 2449 | esac |
| 2450 | done |
| 2451 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2452 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link |
| 2453 | See \`config.log' for more details." >&5 |
| 2454 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link |
| 2455 | See \`config.log' for more details." >&2;} |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2456 | { (exit 1); exit 1; }; } |
| 2457 | fi |
| 2458 | |
| 2459 | rm -f conftest$ac_cv_exeext |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 2460 | { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
| 2461 | echo "${ECHO_T}$ac_cv_exeext" >&6; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2462 | |
| 2463 | rm -f conftest.$ac_ext |
| 2464 | EXEEXT=$ac_cv_exeext |
| 2465 | ac_exeext=$EXEEXT |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 2466 | { echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
| 2467 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2468 | if test "${ac_cv_objext+set}" = set; then |
| 2469 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2470 | else |
| 2471 | cat >conftest.$ac_ext <<_ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2472 | /* confdefs.h. */ |
| 2473 | _ACEOF |
| 2474 | cat confdefs.h >>conftest.$ac_ext |
| 2475 | cat >>conftest.$ac_ext <<_ACEOF |
| 2476 | /* end confdefs.h. */ |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2477 | |
| 2478 | int |
| 2479 | main () |
| 2480 | { |
| 2481 | |
| 2482 | ; |
| 2483 | return 0; |
| 2484 | } |
| 2485 | _ACEOF |
| 2486 | rm -f conftest.o conftest.obj |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 2487 | if { (ac_try="$ac_compile" |
| 2488 | case "(($ac_try" in |
| 2489 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2490 | *) ac_try_echo=$ac_try;; |
| 2491 | esac |
| 2492 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2493 | (eval "$ac_compile") 2>&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2494 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2495 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2496 | (exit $ac_status); }; then |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 2497 | for ac_file in conftest.o conftest.obj conftest.*; do |
| 2498 | test -f "$ac_file" || continue; |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2499 | case $ac_file in |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 2500 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;; |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2501 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
| 2502 | break;; |
| 2503 | esac |
| 2504 | done |
| 2505 | else |
| 2506 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2507 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2508 | |
| 2509 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile |
| 2510 | See \`config.log' for more details." >&5 |
| 2511 | echo "$as_me: error: cannot compute suffix of object files: cannot compile |
| 2512 | See \`config.log' for more details." >&2;} |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2513 | { (exit 1); exit 1; }; } |
| 2514 | fi |
| 2515 | |
| 2516 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
| 2517 | fi |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 2518 | { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
| 2519 | echo "${ECHO_T}$ac_cv_objext" >&6; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2520 | OBJEXT=$ac_cv_objext |
| 2521 | ac_objext=$OBJEXT |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 2522 | { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
| 2523 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2524 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
| 2525 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2526 | else |
| 2527 | cat >conftest.$ac_ext <<_ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2528 | /* confdefs.h. */ |
| 2529 | _ACEOF |
| 2530 | cat confdefs.h >>conftest.$ac_ext |
| 2531 | cat >>conftest.$ac_ext <<_ACEOF |
| 2532 | /* end confdefs.h. */ |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2533 | |
| 2534 | int |
| 2535 | main () |
| 2536 | { |
| 2537 | #ifndef __GNUC__ |
| 2538 | choke me |
| 2539 | #endif |
| 2540 | |
| 2541 | ; |
| 2542 | return 0; |
| 2543 | } |
| 2544 | _ACEOF |
| 2545 | rm -f conftest.$ac_objext |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 2546 | if { (ac_try="$ac_compile" |
| 2547 | case "(($ac_try" in |
| 2548 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2549 | *) ac_try_echo=$ac_try;; |
| 2550 | esac |
| 2551 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2552 | (eval "$ac_compile") 2>conftest.er1 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2553 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2554 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2555 | rm -f conftest.er1 |
| 2556 | cat conftest.err >&5 |
| 2557 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 2558 | (exit $ac_status); } && { |
| 2559 | test -z "$ac_c_werror_flag" || |
| 2560 | test ! -s conftest.err |
| 2561 | } && test -s conftest.$ac_objext; then |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2562 | ac_compiler_gnu=yes |
| 2563 | else |
| 2564 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2565 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2566 | |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 2567 | ac_compiler_gnu=no |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2568 | fi |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 2569 | |
| 2570 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2571 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
| 2572 | |
| 2573 | fi |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 2574 | { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
| 2575 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2576 | GCC=`test $ac_compiler_gnu = yes && echo yes` |
| 2577 | ac_test_CFLAGS=${CFLAGS+set} |
| 2578 | ac_save_CFLAGS=$CFLAGS |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 2579 | { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
| 2580 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2581 | if test "${ac_cv_prog_cc_g+set}" = set; then |
| 2582 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2583 | else |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 2584 | ac_save_c_werror_flag=$ac_c_werror_flag |
| 2585 | ac_c_werror_flag=yes |
| 2586 | ac_cv_prog_cc_g=no |
| 2587 | CFLAGS="-g" |
| 2588 | cat >conftest.$ac_ext <<_ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2589 | /* confdefs.h. */ |
| 2590 | _ACEOF |
| 2591 | cat confdefs.h >>conftest.$ac_ext |
| 2592 | cat >>conftest.$ac_ext <<_ACEOF |
| 2593 | /* end confdefs.h. */ |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2594 | |
| 2595 | int |
| 2596 | main () |
| 2597 | { |
| 2598 | |
| 2599 | ; |
| 2600 | return 0; |
| 2601 | } |
| 2602 | _ACEOF |
| 2603 | rm -f conftest.$ac_objext |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 2604 | if { (ac_try="$ac_compile" |
| 2605 | case "(($ac_try" in |
| 2606 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2607 | *) ac_try_echo=$ac_try;; |
| 2608 | esac |
| 2609 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2610 | (eval "$ac_compile") 2>conftest.er1 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2611 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2612 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2613 | rm -f conftest.er1 |
| 2614 | cat conftest.err >&5 |
| 2615 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 2616 | (exit $ac_status); } && { |
| 2617 | test -z "$ac_c_werror_flag" || |
| 2618 | test ! -s conftest.err |
| 2619 | } && test -s conftest.$ac_objext; then |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2620 | ac_cv_prog_cc_g=yes |
| 2621 | else |
| 2622 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2623 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2624 | |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 2625 | CFLAGS="" |
| 2626 | cat >conftest.$ac_ext <<_ACEOF |
| 2627 | /* confdefs.h. */ |
| 2628 | _ACEOF |
| 2629 | cat confdefs.h >>conftest.$ac_ext |
| 2630 | cat >>conftest.$ac_ext <<_ACEOF |
| 2631 | /* end confdefs.h. */ |
| 2632 | |
| 2633 | int |
| 2634 | main () |
| 2635 | { |
| 2636 | |
| 2637 | ; |
| 2638 | return 0; |
| 2639 | } |
| 2640 | _ACEOF |
| 2641 | rm -f conftest.$ac_objext |
| 2642 | if { (ac_try="$ac_compile" |
| 2643 | case "(($ac_try" in |
| 2644 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2645 | *) ac_try_echo=$ac_try;; |
| 2646 | esac |
| 2647 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2648 | (eval "$ac_compile") 2>conftest.er1 |
| 2649 | ac_status=$? |
| 2650 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2651 | rm -f conftest.er1 |
| 2652 | cat conftest.err >&5 |
| 2653 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2654 | (exit $ac_status); } && { |
| 2655 | test -z "$ac_c_werror_flag" || |
| 2656 | test ! -s conftest.err |
| 2657 | } && test -s conftest.$ac_objext; then |
| 2658 | : |
| 2659 | else |
| 2660 | echo "$as_me: failed program was:" >&5 |
| 2661 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2662 | |
| 2663 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 2664 | CFLAGS="-g" |
| 2665 | cat >conftest.$ac_ext <<_ACEOF |
| 2666 | /* confdefs.h. */ |
| 2667 | _ACEOF |
| 2668 | cat confdefs.h >>conftest.$ac_ext |
| 2669 | cat >>conftest.$ac_ext <<_ACEOF |
| 2670 | /* end confdefs.h. */ |
| 2671 | |
| 2672 | int |
| 2673 | main () |
| 2674 | { |
| 2675 | |
| 2676 | ; |
| 2677 | return 0; |
| 2678 | } |
| 2679 | _ACEOF |
| 2680 | rm -f conftest.$ac_objext |
| 2681 | if { (ac_try="$ac_compile" |
| 2682 | case "(($ac_try" in |
| 2683 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2684 | *) ac_try_echo=$ac_try;; |
| 2685 | esac |
| 2686 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2687 | (eval "$ac_compile") 2>conftest.er1 |
| 2688 | ac_status=$? |
| 2689 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2690 | rm -f conftest.er1 |
| 2691 | cat conftest.err >&5 |
| 2692 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2693 | (exit $ac_status); } && { |
| 2694 | test -z "$ac_c_werror_flag" || |
| 2695 | test ! -s conftest.err |
| 2696 | } && test -s conftest.$ac_objext; then |
| 2697 | ac_cv_prog_cc_g=yes |
| 2698 | else |
| 2699 | echo "$as_me: failed program was:" >&5 |
| 2700 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2701 | |
| 2702 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2703 | fi |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 2704 | |
| 2705 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2706 | fi |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 2707 | |
| 2708 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2709 | fi |
| 2710 | |
| 2711 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2712 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 2713 | fi |
| 2714 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
| 2715 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2716 | if test "$ac_test_CFLAGS" = set; then |
| 2717 | CFLAGS=$ac_save_CFLAGS |
| 2718 | elif test $ac_cv_prog_cc_g = yes; then |
| 2719 | if test "$GCC" = yes; then |
| 2720 | CFLAGS="-g -O2" |
| 2721 | else |
| 2722 | CFLAGS="-g" |
| 2723 | fi |
| 2724 | else |
| 2725 | if test "$GCC" = yes; then |
| 2726 | CFLAGS="-O2" |
| 2727 | else |
| 2728 | CFLAGS= |
| 2729 | fi |
| 2730 | fi |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 2731 | { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 |
| 2732 | echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } |
| 2733 | if test "${ac_cv_prog_cc_c89+set}" = set; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2734 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2735 | else |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 2736 | ac_cv_prog_cc_c89=no |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2737 | ac_save_CC=$CC |
| 2738 | cat >conftest.$ac_ext <<_ACEOF |
| 2739 | /* confdefs.h. */ |
| 2740 | _ACEOF |
| 2741 | cat confdefs.h >>conftest.$ac_ext |
| 2742 | cat >>conftest.$ac_ext <<_ACEOF |
| 2743 | /* end confdefs.h. */ |
| 2744 | #include <stdarg.h> |
| 2745 | #include <stdio.h> |
| 2746 | #include <sys/types.h> |
| 2747 | #include <sys/stat.h> |
| 2748 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
| 2749 | struct buf { int x; }; |
| 2750 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
| 2751 | static char *e (p, i) |
| 2752 | char **p; |
| 2753 | int i; |
| 2754 | { |
| 2755 | return p[i]; |
| 2756 | } |
| 2757 | static char *f (char * (*g) (char **, int), char **p, ...) |
| 2758 | { |
| 2759 | char *s; |
| 2760 | va_list v; |
| 2761 | va_start (v,p); |
| 2762 | s = g (p, va_arg (v,int)); |
| 2763 | va_end (v); |
| 2764 | return s; |
| 2765 | } |
| 2766 | |
| 2767 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
| 2768 | function prototypes and stuff, but not '\xHH' hex character constants. |
| 2769 | These don't provoke an error unfortunately, instead are silently treated |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 2770 | as 'x'. The following induces an error, until -std is added to get |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2771 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
| 2772 | array size at least. It's necessary to write '\x00'==0 to get something |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 2773 | that's true only with -std. */ |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2774 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
| 2775 | |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 2776 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
| 2777 | inside strings and character constants. */ |
| 2778 | #define FOO(x) 'x' |
| 2779 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; |
| 2780 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2781 | int test (int i, double x); |
| 2782 | struct s1 {int (*f) (int a);}; |
| 2783 | struct s2 {int (*f) (double a);}; |
| 2784 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
| 2785 | int argc; |
| 2786 | char **argv; |
| 2787 | int |
| 2788 | main () |
| 2789 | { |
| 2790 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
| 2791 | ; |
| 2792 | return 0; |
| 2793 | } |
| 2794 | _ACEOF |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 2795 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
| 2796 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2797 | do |
| 2798 | CC="$ac_save_CC $ac_arg" |
| 2799 | rm -f conftest.$ac_objext |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 2800 | if { (ac_try="$ac_compile" |
| 2801 | case "(($ac_try" in |
| 2802 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2803 | *) ac_try_echo=$ac_try;; |
| 2804 | esac |
| 2805 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2806 | (eval "$ac_compile") 2>conftest.er1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2807 | ac_status=$? |
| 2808 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2809 | rm -f conftest.er1 |
| 2810 | cat conftest.err >&5 |
| 2811 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 2812 | (exit $ac_status); } && { |
| 2813 | test -z "$ac_c_werror_flag" || |
| 2814 | test ! -s conftest.err |
| 2815 | } && test -s conftest.$ac_objext; then |
| 2816 | ac_cv_prog_cc_c89=$ac_arg |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2817 | else |
| 2818 | echo "$as_me: failed program was:" >&5 |
| 2819 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2820 | |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 2821 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2822 | fi |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 2823 | |
| 2824 | rm -f core conftest.err conftest.$ac_objext |
| 2825 | test "x$ac_cv_prog_cc_c89" != "xno" && break |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2826 | done |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 2827 | rm -f conftest.$ac_ext |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2828 | CC=$ac_save_CC |
| 2829 | |
| 2830 | fi |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 2831 | # AC_CACHE_VAL |
| 2832 | case "x$ac_cv_prog_cc_c89" in |
| 2833 | x) |
| 2834 | { echo "$as_me:$LINENO: result: none needed" >&5 |
| 2835 | echo "${ECHO_T}none needed" >&6; } ;; |
| 2836 | xno) |
| 2837 | { echo "$as_me:$LINENO: result: unsupported" >&5 |
| 2838 | echo "${ECHO_T}unsupported" >&6; } ;; |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2839 | *) |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 2840 | CC="$CC $ac_cv_prog_cc_c89" |
| 2841 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 |
| 2842 | echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2843 | esac |
| 2844 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2845 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2846 | ac_ext=c |
| 2847 | ac_cpp='$CPP $CPPFLAGS' |
| 2848 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2849 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2850 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2851 | |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 2852 | ac_ext=cpp |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2853 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 2854 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2855 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2856 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 2857 | if test -z "$CXX"; then |
| 2858 | if test -n "$CCC"; then |
| 2859 | CXX=$CCC |
| 2860 | else |
| 2861 | if test -n "$ac_tool_prefix"; then |
| 2862 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2863 | do |
| 2864 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 2865 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 2866 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2867 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2868 | if test "${ac_cv_prog_CXX+set}" = set; then |
| 2869 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2870 | else |
| 2871 | if test -n "$CXX"; then |
| 2872 | ac_cv_prog_CXX="$CXX" # Let the user override the test. |
| 2873 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2874 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2875 | for as_dir in $PATH |
| 2876 | do |
| 2877 | IFS=$as_save_IFS |
| 2878 | test -z "$as_dir" && as_dir=. |
| 2879 | for ac_exec_ext in '' $ac_executable_extensions; do |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 2880 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2881 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
| 2882 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2883 | break 2 |
| 2884 | fi |
| 2885 | done |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2886 | done |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 2887 | IFS=$as_save_IFS |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2888 | |
| 2889 | fi |
| 2890 | fi |
| 2891 | CXX=$ac_cv_prog_CXX |
| 2892 | if test -n "$CXX"; then |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 2893 | { echo "$as_me:$LINENO: result: $CXX" >&5 |
| 2894 | echo "${ECHO_T}$CXX" >&6; } |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2895 | else |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 2896 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2897 | echo "${ECHO_T}no" >&6; } |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2898 | fi |
| 2899 | |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 2900 | |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2901 | test -n "$CXX" && break |
| 2902 | done |
| 2903 | fi |
| 2904 | if test -z "$CXX"; then |
| 2905 | ac_ct_CXX=$CXX |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 2906 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2907 | do |
| 2908 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 2909 | set dummy $ac_prog; ac_word=$2 |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 2910 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2911 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2912 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then |
| 2913 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2914 | else |
| 2915 | if test -n "$ac_ct_CXX"; then |
| 2916 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. |
| 2917 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2918 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2919 | for as_dir in $PATH |
| 2920 | do |
| 2921 | IFS=$as_save_IFS |
| 2922 | test -z "$as_dir" && as_dir=. |
| 2923 | for ac_exec_ext in '' $ac_executable_extensions; do |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 2924 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2925 | ac_cv_prog_ac_ct_CXX="$ac_prog" |
| 2926 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2927 | break 2 |
| 2928 | fi |
| 2929 | done |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2930 | done |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 2931 | IFS=$as_save_IFS |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2932 | |
| 2933 | fi |
| 2934 | fi |
| 2935 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX |
| 2936 | if test -n "$ac_ct_CXX"; then |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 2937 | { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 |
| 2938 | echo "${ECHO_T}$ac_ct_CXX" >&6; } |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2939 | else |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 2940 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2941 | echo "${ECHO_T}no" >&6; } |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2942 | fi |
| 2943 | |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 2944 | |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2945 | test -n "$ac_ct_CXX" && break |
| 2946 | done |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2947 | |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 2948 | if test "x$ac_ct_CXX" = x; then |
| 2949 | CXX="g++" |
| 2950 | else |
| 2951 | case $cross_compiling:$ac_tool_warned in |
| 2952 | yes:) |
| 2953 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 2954 | whose name does not start with the host triplet. If you think this |
| 2955 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 2956 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 2957 | whose name does not start with the host triplet. If you think this |
| 2958 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| 2959 | ac_tool_warned=yes ;; |
| 2960 | esac |
| 2961 | CXX=$ac_ct_CXX |
| 2962 | fi |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2963 | fi |
| 2964 | |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 2965 | fi |
| 2966 | fi |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2967 | # Provide some information about the compiler. |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 2968 | echo "$as_me:$LINENO: checking for C++ compiler version" >&5 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2969 | ac_compiler=`set X $ac_compile; echo $2` |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 2970 | { (ac_try="$ac_compiler --version >&5" |
| 2971 | case "(($ac_try" in |
| 2972 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2973 | *) ac_try_echo=$ac_try;; |
| 2974 | esac |
| 2975 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2976 | (eval "$ac_compiler --version >&5") 2>&5 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2977 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2978 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2979 | (exit $ac_status); } |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 2980 | { (ac_try="$ac_compiler -v >&5" |
| 2981 | case "(($ac_try" in |
| 2982 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2983 | *) ac_try_echo=$ac_try;; |
| 2984 | esac |
| 2985 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2986 | (eval "$ac_compiler -v >&5") 2>&5 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2987 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2988 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2989 | (exit $ac_status); } |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 2990 | { (ac_try="$ac_compiler -V >&5" |
| 2991 | case "(($ac_try" in |
| 2992 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2993 | *) ac_try_echo=$ac_try;; |
| 2994 | esac |
| 2995 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2996 | (eval "$ac_compiler -V >&5") 2>&5 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2997 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2998 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2999 | (exit $ac_status); } |
| 3000 | |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 3001 | { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 |
| 3002 | echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; } |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3003 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then |
| 3004 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3005 | else |
| 3006 | cat >conftest.$ac_ext <<_ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3007 | /* confdefs.h. */ |
| 3008 | _ACEOF |
| 3009 | cat confdefs.h >>conftest.$ac_ext |
| 3010 | cat >>conftest.$ac_ext <<_ACEOF |
| 3011 | /* end confdefs.h. */ |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3012 | |
| 3013 | int |
| 3014 | main () |
| 3015 | { |
| 3016 | #ifndef __GNUC__ |
| 3017 | choke me |
| 3018 | #endif |
| 3019 | |
| 3020 | ; |
| 3021 | return 0; |
| 3022 | } |
| 3023 | _ACEOF |
| 3024 | rm -f conftest.$ac_objext |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 3025 | if { (ac_try="$ac_compile" |
| 3026 | case "(($ac_try" in |
| 3027 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3028 | *) ac_try_echo=$ac_try;; |
| 3029 | esac |
| 3030 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3031 | (eval "$ac_compile") 2>conftest.er1 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3032 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3033 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3034 | rm -f conftest.er1 |
| 3035 | cat conftest.err >&5 |
| 3036 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 3037 | (exit $ac_status); } && { |
| 3038 | test -z "$ac_cxx_werror_flag" || |
| 3039 | test ! -s conftest.err |
| 3040 | } && test -s conftest.$ac_objext; then |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3041 | ac_compiler_gnu=yes |
| 3042 | else |
| 3043 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3044 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3045 | |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 3046 | ac_compiler_gnu=no |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3047 | fi |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 3048 | |
| 3049 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3050 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
| 3051 | |
| 3052 | fi |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 3053 | { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 |
| 3054 | echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; } |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3055 | GXX=`test $ac_compiler_gnu = yes && echo yes` |
| 3056 | ac_test_CXXFLAGS=${CXXFLAGS+set} |
| 3057 | ac_save_CXXFLAGS=$CXXFLAGS |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 3058 | { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 |
| 3059 | echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; } |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3060 | if test "${ac_cv_prog_cxx_g+set}" = set; then |
| 3061 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3062 | else |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 3063 | ac_save_cxx_werror_flag=$ac_cxx_werror_flag |
| 3064 | ac_cxx_werror_flag=yes |
| 3065 | ac_cv_prog_cxx_g=no |
| 3066 | CXXFLAGS="-g" |
| 3067 | cat >conftest.$ac_ext <<_ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3068 | /* confdefs.h. */ |
| 3069 | _ACEOF |
| 3070 | cat confdefs.h >>conftest.$ac_ext |
| 3071 | cat >>conftest.$ac_ext <<_ACEOF |
| 3072 | /* end confdefs.h. */ |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3073 | |
| 3074 | int |
| 3075 | main () |
| 3076 | { |
| 3077 | |
| 3078 | ; |
| 3079 | return 0; |
| 3080 | } |
| 3081 | _ACEOF |
| 3082 | rm -f conftest.$ac_objext |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 3083 | if { (ac_try="$ac_compile" |
| 3084 | case "(($ac_try" in |
| 3085 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3086 | *) ac_try_echo=$ac_try;; |
| 3087 | esac |
| 3088 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3089 | (eval "$ac_compile") 2>conftest.er1 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3090 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3091 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3092 | rm -f conftest.er1 |
| 3093 | cat conftest.err >&5 |
| 3094 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 3095 | (exit $ac_status); } && { |
| 3096 | test -z "$ac_cxx_werror_flag" || |
| 3097 | test ! -s conftest.err |
| 3098 | } && test -s conftest.$ac_objext; then |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3099 | ac_cv_prog_cxx_g=yes |
| 3100 | else |
| 3101 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3102 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3103 | |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 3104 | CXXFLAGS="" |
| 3105 | cat >conftest.$ac_ext <<_ACEOF |
| 3106 | /* confdefs.h. */ |
| 3107 | _ACEOF |
| 3108 | cat confdefs.h >>conftest.$ac_ext |
| 3109 | cat >>conftest.$ac_ext <<_ACEOF |
| 3110 | /* end confdefs.h. */ |
| 3111 | |
| 3112 | int |
| 3113 | main () |
| 3114 | { |
| 3115 | |
| 3116 | ; |
| 3117 | return 0; |
| 3118 | } |
| 3119 | _ACEOF |
| 3120 | rm -f conftest.$ac_objext |
| 3121 | if { (ac_try="$ac_compile" |
| 3122 | case "(($ac_try" in |
| 3123 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3124 | *) ac_try_echo=$ac_try;; |
| 3125 | esac |
| 3126 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3127 | (eval "$ac_compile") 2>conftest.er1 |
| 3128 | ac_status=$? |
| 3129 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3130 | rm -f conftest.er1 |
| 3131 | cat conftest.err >&5 |
| 3132 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3133 | (exit $ac_status); } && { |
| 3134 | test -z "$ac_cxx_werror_flag" || |
| 3135 | test ! -s conftest.err |
| 3136 | } && test -s conftest.$ac_objext; then |
| 3137 | : |
| 3138 | else |
| 3139 | echo "$as_me: failed program was:" >&5 |
| 3140 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3141 | |
| 3142 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
| 3143 | CXXFLAGS="-g" |
| 3144 | cat >conftest.$ac_ext <<_ACEOF |
| 3145 | /* confdefs.h. */ |
| 3146 | _ACEOF |
| 3147 | cat confdefs.h >>conftest.$ac_ext |
| 3148 | cat >>conftest.$ac_ext <<_ACEOF |
| 3149 | /* end confdefs.h. */ |
| 3150 | |
| 3151 | int |
| 3152 | main () |
| 3153 | { |
| 3154 | |
| 3155 | ; |
| 3156 | return 0; |
| 3157 | } |
| 3158 | _ACEOF |
| 3159 | rm -f conftest.$ac_objext |
| 3160 | if { (ac_try="$ac_compile" |
| 3161 | case "(($ac_try" in |
| 3162 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3163 | *) ac_try_echo=$ac_try;; |
| 3164 | esac |
| 3165 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3166 | (eval "$ac_compile") 2>conftest.er1 |
| 3167 | ac_status=$? |
| 3168 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3169 | rm -f conftest.er1 |
| 3170 | cat conftest.err >&5 |
| 3171 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3172 | (exit $ac_status); } && { |
| 3173 | test -z "$ac_cxx_werror_flag" || |
| 3174 | test ! -s conftest.err |
| 3175 | } && test -s conftest.$ac_objext; then |
| 3176 | ac_cv_prog_cxx_g=yes |
| 3177 | else |
| 3178 | echo "$as_me: failed program was:" >&5 |
| 3179 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3180 | |
| 3181 | |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3182 | fi |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 3183 | |
| 3184 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3185 | fi |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 3186 | |
| 3187 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3188 | fi |
| 3189 | |
| 3190 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3191 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
| 3192 | fi |
| 3193 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 |
| 3194 | echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; } |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3195 | if test "$ac_test_CXXFLAGS" = set; then |
| 3196 | CXXFLAGS=$ac_save_CXXFLAGS |
| 3197 | elif test $ac_cv_prog_cxx_g = yes; then |
| 3198 | if test "$GXX" = yes; then |
| 3199 | CXXFLAGS="-g -O2" |
| 3200 | else |
| 3201 | CXXFLAGS="-g" |
| 3202 | fi |
| 3203 | else |
| 3204 | if test "$GXX" = yes; then |
| 3205 | CXXFLAGS="-O2" |
| 3206 | else |
| 3207 | CXXFLAGS= |
| 3208 | fi |
| 3209 | fi |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 3210 | ac_ext=c |
| 3211 | ac_cpp='$CPP $CPPFLAGS' |
| 3212 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3213 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3214 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3215 | |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3216 | ac_ext=c |
| 3217 | ac_cpp='$CPP $CPPFLAGS' |
| 3218 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3219 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3220 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3221 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3222 | |
| 3223 | |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 3224 | |
Benny Prijono | 53847a3 | 2007-09-24 16:10:13 +0000 | [diff] [blame] | 3225 | case $target in |
| 3226 | *mingw* | *cygw* | *win32* | *w32* ) |
| 3227 | ac_pjdir=`pwd -W` |
| 3228 | ;; |
| 3229 | *) |
| 3230 | ac_pjdir=`pwd` |
| 3231 | ;; |
| 3232 | esac |
Benny Prijono | 1248311 | 2007-03-12 10:44:38 +0000 | [diff] [blame] | 3233 | |
| 3234 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3235 | |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 3236 | { echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5 |
| 3237 | echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; } |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3238 | if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then |
| 3239 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3240 | else |
| 3241 | ac_check_lib_save_LIBS=$LIBS |
| 3242 | LIBS="-lpthread $LIBS" |
| 3243 | cat >conftest.$ac_ext <<_ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3244 | /* confdefs.h. */ |
| 3245 | _ACEOF |
| 3246 | cat confdefs.h >>conftest.$ac_ext |
| 3247 | cat >>conftest.$ac_ext <<_ACEOF |
| 3248 | /* end confdefs.h. */ |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3249 | |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 3250 | /* Override any GCC internal prototype to avoid an error. |
| 3251 | Use char because int might match the return type of a GCC |
| 3252 | builtin and then its argument prototype would still apply. */ |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3253 | #ifdef __cplusplus |
| 3254 | extern "C" |
| 3255 | #endif |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3256 | char pthread_create (); |
| 3257 | int |
| 3258 | main () |
| 3259 | { |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 3260 | return pthread_create (); |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3261 | ; |
| 3262 | return 0; |
| 3263 | } |
| 3264 | _ACEOF |
| 3265 | rm -f conftest.$ac_objext conftest$ac_exeext |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 3266 | if { (ac_try="$ac_link" |
| 3267 | case "(($ac_try" in |
| 3268 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3269 | *) ac_try_echo=$ac_try;; |
| 3270 | esac |
| 3271 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3272 | (eval "$ac_link") 2>conftest.er1 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3273 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3274 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3275 | rm -f conftest.er1 |
| 3276 | cat conftest.err >&5 |
| 3277 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 3278 | (exit $ac_status); } && { |
| 3279 | test -z "$ac_c_werror_flag" || |
| 3280 | test ! -s conftest.err |
| 3281 | } && test -s conftest$ac_exeext && |
| 3282 | $as_test_x conftest$ac_exeext; then |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3283 | ac_cv_lib_pthread_pthread_create=yes |
| 3284 | else |
| 3285 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3286 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3287 | |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 3288 | ac_cv_lib_pthread_pthread_create=no |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3289 | fi |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 3290 | |
| 3291 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3292 | conftest$ac_exeext conftest.$ac_ext |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3293 | LIBS=$ac_check_lib_save_LIBS |
| 3294 | fi |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 3295 | { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5 |
| 3296 | echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6; } |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3297 | if test $ac_cv_lib_pthread_pthread_create = yes; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3298 | cat >>confdefs.h <<_ACEOF |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3299 | #define HAVE_LIBPTHREAD 1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3300 | _ACEOF |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3301 | |
| 3302 | LIBS="-lpthread $LIBS" |
| 3303 | |
| 3304 | fi |
| 3305 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3306 | |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 3307 | { echo "$as_me:$LINENO: checking for puts in -lwsock32" >&5 |
| 3308 | echo $ECHO_N "checking for puts in -lwsock32... $ECHO_C" >&6; } |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3309 | if test "${ac_cv_lib_wsock32_puts+set}" = set; then |
| 3310 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3311 | else |
| 3312 | ac_check_lib_save_LIBS=$LIBS |
| 3313 | LIBS="-lwsock32 $LIBS" |
| 3314 | cat >conftest.$ac_ext <<_ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3315 | /* confdefs.h. */ |
| 3316 | _ACEOF |
| 3317 | cat confdefs.h >>conftest.$ac_ext |
| 3318 | cat >>conftest.$ac_ext <<_ACEOF |
| 3319 | /* end confdefs.h. */ |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3320 | |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 3321 | /* Override any GCC internal prototype to avoid an error. |
| 3322 | Use char because int might match the return type of a GCC |
| 3323 | builtin and then its argument prototype would still apply. */ |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3324 | #ifdef __cplusplus |
| 3325 | extern "C" |
| 3326 | #endif |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3327 | char puts (); |
| 3328 | int |
| 3329 | main () |
| 3330 | { |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 3331 | return puts (); |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3332 | ; |
| 3333 | return 0; |
| 3334 | } |
| 3335 | _ACEOF |
| 3336 | rm -f conftest.$ac_objext conftest$ac_exeext |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 3337 | if { (ac_try="$ac_link" |
| 3338 | case "(($ac_try" in |
| 3339 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3340 | *) ac_try_echo=$ac_try;; |
| 3341 | esac |
| 3342 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3343 | (eval "$ac_link") 2>conftest.er1 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3344 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3345 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3346 | rm -f conftest.er1 |
| 3347 | cat conftest.err >&5 |
| 3348 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 3349 | (exit $ac_status); } && { |
| 3350 | test -z "$ac_c_werror_flag" || |
| 3351 | test ! -s conftest.err |
| 3352 | } && test -s conftest$ac_exeext && |
| 3353 | $as_test_x conftest$ac_exeext; then |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3354 | ac_cv_lib_wsock32_puts=yes |
| 3355 | else |
| 3356 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3357 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3358 | |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 3359 | ac_cv_lib_wsock32_puts=no |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3360 | fi |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 3361 | |
| 3362 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3363 | conftest$ac_exeext conftest.$ac_ext |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3364 | LIBS=$ac_check_lib_save_LIBS |
| 3365 | fi |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 3366 | { echo "$as_me:$LINENO: result: $ac_cv_lib_wsock32_puts" >&5 |
| 3367 | echo "${ECHO_T}$ac_cv_lib_wsock32_puts" >&6; } |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3368 | if test $ac_cv_lib_wsock32_puts = yes; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3369 | cat >>confdefs.h <<_ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3370 | #define HAVE_LIBWSOCK32 1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3371 | _ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3372 | |
| 3373 | LIBS="-lwsock32 $LIBS" |
| 3374 | |
| 3375 | fi |
| 3376 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3377 | |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 3378 | { echo "$as_me:$LINENO: checking for puts in -lws2_32" >&5 |
| 3379 | echo $ECHO_N "checking for puts in -lws2_32... $ECHO_C" >&6; } |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3380 | if test "${ac_cv_lib_ws2_32_puts+set}" = set; then |
| 3381 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3382 | else |
| 3383 | ac_check_lib_save_LIBS=$LIBS |
| 3384 | LIBS="-lws2_32 $LIBS" |
| 3385 | cat >conftest.$ac_ext <<_ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3386 | /* confdefs.h. */ |
| 3387 | _ACEOF |
| 3388 | cat confdefs.h >>conftest.$ac_ext |
| 3389 | cat >>conftest.$ac_ext <<_ACEOF |
| 3390 | /* end confdefs.h. */ |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3391 | |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 3392 | /* Override any GCC internal prototype to avoid an error. |
| 3393 | Use char because int might match the return type of a GCC |
| 3394 | builtin and then its argument prototype would still apply. */ |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3395 | #ifdef __cplusplus |
| 3396 | extern "C" |
| 3397 | #endif |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3398 | char puts (); |
| 3399 | int |
| 3400 | main () |
| 3401 | { |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 3402 | return puts (); |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3403 | ; |
| 3404 | return 0; |
| 3405 | } |
| 3406 | _ACEOF |
| 3407 | rm -f conftest.$ac_objext conftest$ac_exeext |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 3408 | if { (ac_try="$ac_link" |
| 3409 | case "(($ac_try" in |
| 3410 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3411 | *) ac_try_echo=$ac_try;; |
| 3412 | esac |
| 3413 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3414 | (eval "$ac_link") 2>conftest.er1 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3415 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3416 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3417 | rm -f conftest.er1 |
| 3418 | cat conftest.err >&5 |
| 3419 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 3420 | (exit $ac_status); } && { |
| 3421 | test -z "$ac_c_werror_flag" || |
| 3422 | test ! -s conftest.err |
| 3423 | } && test -s conftest$ac_exeext && |
| 3424 | $as_test_x conftest$ac_exeext; then |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3425 | ac_cv_lib_ws2_32_puts=yes |
| 3426 | else |
| 3427 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3428 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3429 | |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 3430 | ac_cv_lib_ws2_32_puts=no |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3431 | fi |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 3432 | |
| 3433 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3434 | conftest$ac_exeext conftest.$ac_ext |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3435 | LIBS=$ac_check_lib_save_LIBS |
| 3436 | fi |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 3437 | { echo "$as_me:$LINENO: result: $ac_cv_lib_ws2_32_puts" >&5 |
| 3438 | echo "${ECHO_T}$ac_cv_lib_ws2_32_puts" >&6; } |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3439 | if test $ac_cv_lib_ws2_32_puts = yes; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3440 | cat >>confdefs.h <<_ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3441 | #define HAVE_LIBWS2_32 1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3442 | _ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3443 | |
| 3444 | LIBS="-lws2_32 $LIBS" |
| 3445 | |
| 3446 | fi |
| 3447 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3448 | |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 3449 | { echo "$as_me:$LINENO: checking for puts in -lole32" >&5 |
| 3450 | echo $ECHO_N "checking for puts in -lole32... $ECHO_C" >&6; } |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3451 | if test "${ac_cv_lib_ole32_puts+set}" = set; then |
| 3452 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3453 | else |
| 3454 | ac_check_lib_save_LIBS=$LIBS |
| 3455 | LIBS="-lole32 $LIBS" |
| 3456 | cat >conftest.$ac_ext <<_ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3457 | /* confdefs.h. */ |
| 3458 | _ACEOF |
| 3459 | cat confdefs.h >>conftest.$ac_ext |
| 3460 | cat >>conftest.$ac_ext <<_ACEOF |
| 3461 | /* end confdefs.h. */ |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3462 | |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 3463 | /* Override any GCC internal prototype to avoid an error. |
| 3464 | Use char because int might match the return type of a GCC |
| 3465 | builtin and then its argument prototype would still apply. */ |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3466 | #ifdef __cplusplus |
| 3467 | extern "C" |
| 3468 | #endif |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3469 | char puts (); |
| 3470 | int |
| 3471 | main () |
| 3472 | { |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 3473 | return puts (); |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3474 | ; |
| 3475 | return 0; |
| 3476 | } |
| 3477 | _ACEOF |
| 3478 | rm -f conftest.$ac_objext conftest$ac_exeext |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 3479 | if { (ac_try="$ac_link" |
| 3480 | case "(($ac_try" in |
| 3481 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3482 | *) ac_try_echo=$ac_try;; |
| 3483 | esac |
| 3484 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3485 | (eval "$ac_link") 2>conftest.er1 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3486 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3487 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3488 | rm -f conftest.er1 |
| 3489 | cat conftest.err >&5 |
| 3490 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 3491 | (exit $ac_status); } && { |
| 3492 | test -z "$ac_c_werror_flag" || |
| 3493 | test ! -s conftest.err |
| 3494 | } && test -s conftest$ac_exeext && |
| 3495 | $as_test_x conftest$ac_exeext; then |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3496 | ac_cv_lib_ole32_puts=yes |
| 3497 | else |
| 3498 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3499 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3500 | |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 3501 | ac_cv_lib_ole32_puts=no |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3502 | fi |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 3503 | |
| 3504 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3505 | conftest$ac_exeext conftest.$ac_ext |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3506 | LIBS=$ac_check_lib_save_LIBS |
| 3507 | fi |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 3508 | { echo "$as_me:$LINENO: result: $ac_cv_lib_ole32_puts" >&5 |
| 3509 | echo "${ECHO_T}$ac_cv_lib_ole32_puts" >&6; } |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3510 | if test $ac_cv_lib_ole32_puts = yes; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3511 | cat >>confdefs.h <<_ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3512 | #define HAVE_LIBOLE32 1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3513 | _ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3514 | |
| 3515 | LIBS="-lole32 $LIBS" |
| 3516 | |
| 3517 | fi |
| 3518 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3519 | |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 3520 | { echo "$as_me:$LINENO: checking for puts in -lwinmm" >&5 |
| 3521 | echo $ECHO_N "checking for puts in -lwinmm... $ECHO_C" >&6; } |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3522 | if test "${ac_cv_lib_winmm_puts+set}" = set; then |
| 3523 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3524 | else |
| 3525 | ac_check_lib_save_LIBS=$LIBS |
| 3526 | LIBS="-lwinmm $LIBS" |
| 3527 | cat >conftest.$ac_ext <<_ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3528 | /* confdefs.h. */ |
| 3529 | _ACEOF |
| 3530 | cat confdefs.h >>conftest.$ac_ext |
| 3531 | cat >>conftest.$ac_ext <<_ACEOF |
| 3532 | /* end confdefs.h. */ |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3533 | |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 3534 | /* Override any GCC internal prototype to avoid an error. |
| 3535 | Use char because int might match the return type of a GCC |
| 3536 | builtin and then its argument prototype would still apply. */ |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3537 | #ifdef __cplusplus |
| 3538 | extern "C" |
| 3539 | #endif |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3540 | char puts (); |
| 3541 | int |
| 3542 | main () |
| 3543 | { |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 3544 | return puts (); |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3545 | ; |
| 3546 | return 0; |
| 3547 | } |
| 3548 | _ACEOF |
| 3549 | rm -f conftest.$ac_objext conftest$ac_exeext |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 3550 | if { (ac_try="$ac_link" |
| 3551 | case "(($ac_try" in |
| 3552 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3553 | *) ac_try_echo=$ac_try;; |
| 3554 | esac |
| 3555 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3556 | (eval "$ac_link") 2>conftest.er1 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3557 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3558 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3559 | rm -f conftest.er1 |
| 3560 | cat conftest.err >&5 |
| 3561 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 3562 | (exit $ac_status); } && { |
| 3563 | test -z "$ac_c_werror_flag" || |
| 3564 | test ! -s conftest.err |
| 3565 | } && test -s conftest$ac_exeext && |
| 3566 | $as_test_x conftest$ac_exeext; then |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3567 | ac_cv_lib_winmm_puts=yes |
| 3568 | else |
| 3569 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3570 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3571 | |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 3572 | ac_cv_lib_winmm_puts=no |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3573 | fi |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 3574 | |
| 3575 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3576 | conftest$ac_exeext conftest.$ac_ext |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3577 | LIBS=$ac_check_lib_save_LIBS |
| 3578 | fi |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 3579 | { echo "$as_me:$LINENO: result: $ac_cv_lib_winmm_puts" >&5 |
| 3580 | echo "${ECHO_T}$ac_cv_lib_winmm_puts" >&6; } |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3581 | if test $ac_cv_lib_winmm_puts = yes; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3582 | cat >>confdefs.h <<_ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3583 | #define HAVE_LIBWINMM 1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3584 | _ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3585 | |
| 3586 | LIBS="-lwinmm $LIBS" |
| 3587 | |
| 3588 | fi |
| 3589 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3590 | |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 3591 | { echo "$as_me:$LINENO: checking for puts in -lsocket" >&5 |
| 3592 | echo $ECHO_N "checking for puts in -lsocket... $ECHO_C" >&6; } |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3593 | if test "${ac_cv_lib_socket_puts+set}" = set; then |
| 3594 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3595 | else |
| 3596 | ac_check_lib_save_LIBS=$LIBS |
| 3597 | LIBS="-lsocket $LIBS" |
| 3598 | cat >conftest.$ac_ext <<_ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3599 | /* confdefs.h. */ |
| 3600 | _ACEOF |
| 3601 | cat confdefs.h >>conftest.$ac_ext |
| 3602 | cat >>conftest.$ac_ext <<_ACEOF |
| 3603 | /* end confdefs.h. */ |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3604 | |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 3605 | /* Override any GCC internal prototype to avoid an error. |
| 3606 | Use char because int might match the return type of a GCC |
| 3607 | builtin and then its argument prototype would still apply. */ |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3608 | #ifdef __cplusplus |
| 3609 | extern "C" |
| 3610 | #endif |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3611 | char puts (); |
| 3612 | int |
| 3613 | main () |
| 3614 | { |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 3615 | return puts (); |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3616 | ; |
| 3617 | return 0; |
| 3618 | } |
| 3619 | _ACEOF |
| 3620 | rm -f conftest.$ac_objext conftest$ac_exeext |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 3621 | if { (ac_try="$ac_link" |
| 3622 | case "(($ac_try" in |
| 3623 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3624 | *) ac_try_echo=$ac_try;; |
| 3625 | esac |
| 3626 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3627 | (eval "$ac_link") 2>conftest.er1 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3628 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3629 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3630 | rm -f conftest.er1 |
| 3631 | cat conftest.err >&5 |
| 3632 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 3633 | (exit $ac_status); } && { |
| 3634 | test -z "$ac_c_werror_flag" || |
| 3635 | test ! -s conftest.err |
| 3636 | } && test -s conftest$ac_exeext && |
| 3637 | $as_test_x conftest$ac_exeext; then |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3638 | ac_cv_lib_socket_puts=yes |
| 3639 | else |
| 3640 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3641 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3642 | |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 3643 | ac_cv_lib_socket_puts=no |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3644 | fi |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 3645 | |
| 3646 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3647 | conftest$ac_exeext conftest.$ac_ext |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3648 | LIBS=$ac_check_lib_save_LIBS |
| 3649 | fi |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 3650 | { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_puts" >&5 |
| 3651 | echo "${ECHO_T}$ac_cv_lib_socket_puts" >&6; } |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3652 | if test $ac_cv_lib_socket_puts = yes; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3653 | cat >>confdefs.h <<_ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3654 | #define HAVE_LIBSOCKET 1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3655 | _ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3656 | |
| 3657 | LIBS="-lsocket $LIBS" |
| 3658 | |
| 3659 | fi |
| 3660 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3661 | |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 3662 | { echo "$as_me:$LINENO: checking for puts in -lrt" >&5 |
| 3663 | echo $ECHO_N "checking for puts in -lrt... $ECHO_C" >&6; } |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3664 | if test "${ac_cv_lib_rt_puts+set}" = set; then |
| 3665 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3666 | else |
| 3667 | ac_check_lib_save_LIBS=$LIBS |
| 3668 | LIBS="-lrt $LIBS" |
| 3669 | cat >conftest.$ac_ext <<_ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3670 | /* confdefs.h. */ |
| 3671 | _ACEOF |
| 3672 | cat confdefs.h >>conftest.$ac_ext |
| 3673 | cat >>conftest.$ac_ext <<_ACEOF |
| 3674 | /* end confdefs.h. */ |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3675 | |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 3676 | /* Override any GCC internal prototype to avoid an error. |
| 3677 | Use char because int might match the return type of a GCC |
| 3678 | builtin and then its argument prototype would still apply. */ |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3679 | #ifdef __cplusplus |
| 3680 | extern "C" |
| 3681 | #endif |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3682 | char puts (); |
| 3683 | int |
| 3684 | main () |
| 3685 | { |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 3686 | return puts (); |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3687 | ; |
| 3688 | return 0; |
| 3689 | } |
| 3690 | _ACEOF |
| 3691 | rm -f conftest.$ac_objext conftest$ac_exeext |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 3692 | if { (ac_try="$ac_link" |
| 3693 | case "(($ac_try" in |
| 3694 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3695 | *) ac_try_echo=$ac_try;; |
| 3696 | esac |
| 3697 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3698 | (eval "$ac_link") 2>conftest.er1 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3699 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3700 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3701 | rm -f conftest.er1 |
| 3702 | cat conftest.err >&5 |
| 3703 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 3704 | (exit $ac_status); } && { |
| 3705 | test -z "$ac_c_werror_flag" || |
| 3706 | test ! -s conftest.err |
| 3707 | } && test -s conftest$ac_exeext && |
| 3708 | $as_test_x conftest$ac_exeext; then |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3709 | ac_cv_lib_rt_puts=yes |
| 3710 | else |
| 3711 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3712 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3713 | |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 3714 | ac_cv_lib_rt_puts=no |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3715 | fi |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 3716 | |
| 3717 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3718 | conftest$ac_exeext conftest.$ac_ext |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3719 | LIBS=$ac_check_lib_save_LIBS |
| 3720 | fi |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 3721 | { echo "$as_me:$LINENO: result: $ac_cv_lib_rt_puts" >&5 |
| 3722 | echo "${ECHO_T}$ac_cv_lib_rt_puts" >&6; } |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3723 | if test $ac_cv_lib_rt_puts = yes; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3724 | cat >>confdefs.h <<_ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3725 | #define HAVE_LIBRT 1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3726 | _ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3727 | |
| 3728 | LIBS="-lrt $LIBS" |
| 3729 | |
| 3730 | fi |
| 3731 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3732 | |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 3733 | { echo "$as_me:$LINENO: checking for puts in -lnsl" >&5 |
| 3734 | echo $ECHO_N "checking for puts in -lnsl... $ECHO_C" >&6; } |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3735 | if test "${ac_cv_lib_nsl_puts+set}" = set; then |
| 3736 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3737 | else |
| 3738 | ac_check_lib_save_LIBS=$LIBS |
| 3739 | LIBS="-lnsl $LIBS" |
| 3740 | cat >conftest.$ac_ext <<_ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3741 | /* confdefs.h. */ |
| 3742 | _ACEOF |
| 3743 | cat confdefs.h >>conftest.$ac_ext |
| 3744 | cat >>conftest.$ac_ext <<_ACEOF |
| 3745 | /* end confdefs.h. */ |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3746 | |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 3747 | /* Override any GCC internal prototype to avoid an error. |
| 3748 | Use char because int might match the return type of a GCC |
| 3749 | builtin and then its argument prototype would still apply. */ |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3750 | #ifdef __cplusplus |
| 3751 | extern "C" |
| 3752 | #endif |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3753 | char puts (); |
| 3754 | int |
| 3755 | main () |
| 3756 | { |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 3757 | return puts (); |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3758 | ; |
| 3759 | return 0; |
| 3760 | } |
| 3761 | _ACEOF |
| 3762 | rm -f conftest.$ac_objext conftest$ac_exeext |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 3763 | if { (ac_try="$ac_link" |
| 3764 | case "(($ac_try" in |
| 3765 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3766 | *) ac_try_echo=$ac_try;; |
| 3767 | esac |
| 3768 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3769 | (eval "$ac_link") 2>conftest.er1 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3770 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3771 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3772 | rm -f conftest.er1 |
| 3773 | cat conftest.err >&5 |
| 3774 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 3775 | (exit $ac_status); } && { |
| 3776 | test -z "$ac_c_werror_flag" || |
| 3777 | test ! -s conftest.err |
| 3778 | } && test -s conftest$ac_exeext && |
| 3779 | $as_test_x conftest$ac_exeext; then |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3780 | ac_cv_lib_nsl_puts=yes |
| 3781 | else |
| 3782 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3783 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3784 | |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 3785 | ac_cv_lib_nsl_puts=no |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3786 | fi |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 3787 | |
| 3788 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3789 | conftest$ac_exeext conftest.$ac_ext |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3790 | LIBS=$ac_check_lib_save_LIBS |
| 3791 | fi |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 3792 | { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_puts" >&5 |
| 3793 | echo "${ECHO_T}$ac_cv_lib_nsl_puts" >&6; } |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3794 | if test $ac_cv_lib_nsl_puts = yes; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3795 | cat >>confdefs.h <<_ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3796 | #define HAVE_LIBNSL 1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3797 | _ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3798 | |
| 3799 | LIBS="-lnsl $LIBS" |
| 3800 | |
| 3801 | fi |
| 3802 | |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3803 | |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 3804 | { echo "$as_me:$LINENO: checking for uuid_generate in -luuid" >&5 |
| 3805 | echo $ECHO_N "checking for uuid_generate in -luuid... $ECHO_C" >&6; } |
Benny Prijono | 4e48b51 | 2007-05-16 13:41:00 +0000 | [diff] [blame] | 3806 | if test "${ac_cv_lib_uuid_uuid_generate+set}" = set; then |
| 3807 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3808 | else |
| 3809 | ac_check_lib_save_LIBS=$LIBS |
| 3810 | LIBS="-luuid $LIBS" |
| 3811 | cat >conftest.$ac_ext <<_ACEOF |
| 3812 | /* confdefs.h. */ |
| 3813 | _ACEOF |
| 3814 | cat confdefs.h >>conftest.$ac_ext |
| 3815 | cat >>conftest.$ac_ext <<_ACEOF |
| 3816 | /* end confdefs.h. */ |
| 3817 | |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 3818 | /* Override any GCC internal prototype to avoid an error. |
| 3819 | Use char because int might match the return type of a GCC |
| 3820 | builtin and then its argument prototype would still apply. */ |
Benny Prijono | 4e48b51 | 2007-05-16 13:41:00 +0000 | [diff] [blame] | 3821 | #ifdef __cplusplus |
| 3822 | extern "C" |
| 3823 | #endif |
Benny Prijono | 4e48b51 | 2007-05-16 13:41:00 +0000 | [diff] [blame] | 3824 | char uuid_generate (); |
| 3825 | int |
| 3826 | main () |
| 3827 | { |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 3828 | return uuid_generate (); |
Benny Prijono | 4e48b51 | 2007-05-16 13:41:00 +0000 | [diff] [blame] | 3829 | ; |
| 3830 | return 0; |
| 3831 | } |
| 3832 | _ACEOF |
| 3833 | rm -f conftest.$ac_objext conftest$ac_exeext |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 3834 | if { (ac_try="$ac_link" |
| 3835 | case "(($ac_try" in |
| 3836 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3837 | *) ac_try_echo=$ac_try;; |
| 3838 | esac |
| 3839 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3840 | (eval "$ac_link") 2>conftest.er1 |
Benny Prijono | 4e48b51 | 2007-05-16 13:41:00 +0000 | [diff] [blame] | 3841 | ac_status=$? |
| 3842 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3843 | rm -f conftest.er1 |
| 3844 | cat conftest.err >&5 |
| 3845 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 3846 | (exit $ac_status); } && { |
| 3847 | test -z "$ac_c_werror_flag" || |
| 3848 | test ! -s conftest.err |
| 3849 | } && test -s conftest$ac_exeext && |
| 3850 | $as_test_x conftest$ac_exeext; then |
Benny Prijono | 4e48b51 | 2007-05-16 13:41:00 +0000 | [diff] [blame] | 3851 | ac_cv_lib_uuid_uuid_generate=yes |
| 3852 | else |
| 3853 | echo "$as_me: failed program was:" >&5 |
| 3854 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3855 | |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 3856 | ac_cv_lib_uuid_uuid_generate=no |
Benny Prijono | 4e48b51 | 2007-05-16 13:41:00 +0000 | [diff] [blame] | 3857 | fi |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 3858 | |
| 3859 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Benny Prijono | 4e48b51 | 2007-05-16 13:41:00 +0000 | [diff] [blame] | 3860 | conftest$ac_exeext conftest.$ac_ext |
| 3861 | LIBS=$ac_check_lib_save_LIBS |
| 3862 | fi |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 3863 | { echo "$as_me:$LINENO: result: $ac_cv_lib_uuid_uuid_generate" >&5 |
| 3864 | echo "${ECHO_T}$ac_cv_lib_uuid_uuid_generate" >&6; } |
Benny Prijono | 4e48b51 | 2007-05-16 13:41:00 +0000 | [diff] [blame] | 3865 | if test $ac_cv_lib_uuid_uuid_generate = yes; then |
| 3866 | cat >>confdefs.h <<_ACEOF |
| 3867 | #define HAVE_LIBUUID 1 |
| 3868 | _ACEOF |
| 3869 | |
| 3870 | LIBS="-luuid $LIBS" |
| 3871 | |
| 3872 | fi |
| 3873 | |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 3874 | { echo "$as_me:$LINENO: checking for uuid_generate in -luuid" >&5 |
| 3875 | echo $ECHO_N "checking for uuid_generate in -luuid... $ECHO_C" >&6; } |
Benny Prijono | 4e48b51 | 2007-05-16 13:41:00 +0000 | [diff] [blame] | 3876 | if test "${ac_cv_lib_uuid_uuid_generate+set}" = set; then |
| 3877 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3878 | else |
| 3879 | ac_check_lib_save_LIBS=$LIBS |
| 3880 | LIBS="-luuid $LIBS" |
| 3881 | cat >conftest.$ac_ext <<_ACEOF |
| 3882 | /* confdefs.h. */ |
| 3883 | _ACEOF |
| 3884 | cat confdefs.h >>conftest.$ac_ext |
| 3885 | cat >>conftest.$ac_ext <<_ACEOF |
| 3886 | /* end confdefs.h. */ |
| 3887 | |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 3888 | /* Override any GCC internal prototype to avoid an error. |
| 3889 | Use char because int might match the return type of a GCC |
| 3890 | builtin and then its argument prototype would still apply. */ |
Benny Prijono | 4e48b51 | 2007-05-16 13:41:00 +0000 | [diff] [blame] | 3891 | #ifdef __cplusplus |
| 3892 | extern "C" |
| 3893 | #endif |
Benny Prijono | 4e48b51 | 2007-05-16 13:41:00 +0000 | [diff] [blame] | 3894 | char uuid_generate (); |
| 3895 | int |
| 3896 | main () |
| 3897 | { |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 3898 | return uuid_generate (); |
Benny Prijono | 4e48b51 | 2007-05-16 13:41:00 +0000 | [diff] [blame] | 3899 | ; |
| 3900 | return 0; |
| 3901 | } |
| 3902 | _ACEOF |
| 3903 | rm -f conftest.$ac_objext conftest$ac_exeext |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 3904 | if { (ac_try="$ac_link" |
| 3905 | case "(($ac_try" in |
| 3906 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3907 | *) ac_try_echo=$ac_try;; |
| 3908 | esac |
| 3909 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3910 | (eval "$ac_link") 2>conftest.er1 |
Benny Prijono | 4e48b51 | 2007-05-16 13:41:00 +0000 | [diff] [blame] | 3911 | ac_status=$? |
| 3912 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3913 | rm -f conftest.er1 |
| 3914 | cat conftest.err >&5 |
| 3915 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 3916 | (exit $ac_status); } && { |
| 3917 | test -z "$ac_c_werror_flag" || |
| 3918 | test ! -s conftest.err |
| 3919 | } && test -s conftest$ac_exeext && |
| 3920 | $as_test_x conftest$ac_exeext; then |
Benny Prijono | 4e48b51 | 2007-05-16 13:41:00 +0000 | [diff] [blame] | 3921 | ac_cv_lib_uuid_uuid_generate=yes |
| 3922 | else |
| 3923 | echo "$as_me: failed program was:" >&5 |
| 3924 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3925 | |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 3926 | ac_cv_lib_uuid_uuid_generate=no |
Benny Prijono | 4e48b51 | 2007-05-16 13:41:00 +0000 | [diff] [blame] | 3927 | fi |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 3928 | |
| 3929 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Benny Prijono | 4e48b51 | 2007-05-16 13:41:00 +0000 | [diff] [blame] | 3930 | conftest$ac_exeext conftest.$ac_ext |
| 3931 | LIBS=$ac_check_lib_save_LIBS |
| 3932 | fi |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 3933 | { echo "$as_me:$LINENO: result: $ac_cv_lib_uuid_uuid_generate" >&5 |
| 3934 | echo "${ECHO_T}$ac_cv_lib_uuid_uuid_generate" >&6; } |
Benny Prijono | 4e48b51 | 2007-05-16 13:41:00 +0000 | [diff] [blame] | 3935 | if test $ac_cv_lib_uuid_uuid_generate = yes; then |
| 3936 | ac_has_uuid_lib=1 |
| 3937 | fi |
| 3938 | |
| 3939 | |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 3940 | { echo "$as_me:$LINENO: result: Setting PJ_M_NAME to $target_cpu" >&5 |
| 3941 | echo "${ECHO_T}Setting PJ_M_NAME to $target_cpu" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3942 | cat >>confdefs.h <<_ACEOF |
| 3943 | #define PJ_M_NAME "$target_cpu" |
| 3944 | _ACEOF |
| 3945 | |
| 3946 | |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 3947 | { echo "$as_me:$LINENO: checking memory alignment" >&5 |
| 3948 | echo $ECHO_N "checking memory alignment... $ECHO_C" >&6; } |
Benny Prijono | 1d97162 | 2006-09-10 22:27:40 +0000 | [diff] [blame] | 3949 | case $target in |
| 3950 | ia64-* | x86_64-* ) |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3951 | cat >>confdefs.h <<\_ACEOF |
Benny Prijono | 1d97162 | 2006-09-10 22:27:40 +0000 | [diff] [blame] | 3952 | #define PJ_POOL_ALIGNMENT 8 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3953 | _ACEOF |
Benny Prijono | 1d97162 | 2006-09-10 22:27:40 +0000 | [diff] [blame] | 3954 | |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 3955 | { echo "$as_me:$LINENO: result: 8 bytes" >&5 |
| 3956 | echo "${ECHO_T}8 bytes" >&6; } |
Benny Prijono | 1d97162 | 2006-09-10 22:27:40 +0000 | [diff] [blame] | 3957 | ;; |
| 3958 | * ) |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3959 | cat >>confdefs.h <<\_ACEOF |
Benny Prijono | 1d97162 | 2006-09-10 22:27:40 +0000 | [diff] [blame] | 3960 | #define PJ_POOL_ALIGNMENT 4 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3961 | _ACEOF |
Benny Prijono | 1d97162 | 2006-09-10 22:27:40 +0000 | [diff] [blame] | 3962 | |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 3963 | { echo "$as_me:$LINENO: result: 4 bytes (default)" >&5 |
| 3964 | echo "${ECHO_T}4 bytes (default)" >&6; } |
Benny Prijono | 1d97162 | 2006-09-10 22:27:40 +0000 | [diff] [blame] | 3965 | ;; |
| 3966 | esac |
| 3967 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3968 | |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 3969 | ac_ext=c |
| 3970 | ac_cpp='$CPP $CPPFLAGS' |
| 3971 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3972 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3973 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3974 | { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
| 3975 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; } |
| 3976 | # On Suns, sometimes $CPP names a directory. |
| 3977 | if test -n "$CPP" && test -d "$CPP"; then |
| 3978 | CPP= |
| 3979 | fi |
| 3980 | if test -z "$CPP"; then |
| 3981 | if test "${ac_cv_prog_CPP+set}" = set; then |
| 3982 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3983 | else |
| 3984 | # Double quotes because CPP needs to be expanded |
| 3985 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
| 3986 | do |
| 3987 | ac_preproc_ok=false |
| 3988 | for ac_c_preproc_warn_flag in '' yes |
| 3989 | do |
| 3990 | # Use a header file that comes with gcc, so configuring glibc |
| 3991 | # with a fresh cross-compiler works. |
| 3992 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 3993 | # <limits.h> exists even on freestanding compilers. |
| 3994 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 3995 | # not just through cpp. "Syntax error" is here to catch this case. |
| 3996 | cat >conftest.$ac_ext <<_ACEOF |
| 3997 | /* confdefs.h. */ |
| 3998 | _ACEOF |
| 3999 | cat confdefs.h >>conftest.$ac_ext |
| 4000 | cat >>conftest.$ac_ext <<_ACEOF |
| 4001 | /* end confdefs.h. */ |
| 4002 | #ifdef __STDC__ |
| 4003 | # include <limits.h> |
| 4004 | #else |
| 4005 | # include <assert.h> |
| 4006 | #endif |
| 4007 | Syntax error |
| 4008 | _ACEOF |
| 4009 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 4010 | case "(($ac_try" in |
| 4011 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4012 | *) ac_try_echo=$ac_try;; |
| 4013 | esac |
| 4014 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4015 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 4016 | ac_status=$? |
| 4017 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4018 | rm -f conftest.er1 |
| 4019 | cat conftest.err >&5 |
| 4020 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4021 | (exit $ac_status); } >/dev/null && { |
| 4022 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 4023 | test ! -s conftest.err |
| 4024 | }; then |
| 4025 | : |
| 4026 | else |
| 4027 | echo "$as_me: failed program was:" >&5 |
| 4028 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4029 | |
| 4030 | # Broken: fails on valid input. |
| 4031 | continue |
| 4032 | fi |
| 4033 | |
| 4034 | rm -f conftest.err conftest.$ac_ext |
| 4035 | |
| 4036 | # OK, works on sane cases. Now check whether nonexistent headers |
| 4037 | # can be detected and how. |
| 4038 | cat >conftest.$ac_ext <<_ACEOF |
| 4039 | /* confdefs.h. */ |
| 4040 | _ACEOF |
| 4041 | cat confdefs.h >>conftest.$ac_ext |
| 4042 | cat >>conftest.$ac_ext <<_ACEOF |
| 4043 | /* end confdefs.h. */ |
| 4044 | #include <ac_nonexistent.h> |
| 4045 | _ACEOF |
| 4046 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 4047 | case "(($ac_try" in |
| 4048 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4049 | *) ac_try_echo=$ac_try;; |
| 4050 | esac |
| 4051 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4052 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 4053 | ac_status=$? |
| 4054 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4055 | rm -f conftest.er1 |
| 4056 | cat conftest.err >&5 |
| 4057 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4058 | (exit $ac_status); } >/dev/null && { |
| 4059 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 4060 | test ! -s conftest.err |
| 4061 | }; then |
| 4062 | # Broken: success on invalid input. |
| 4063 | continue |
| 4064 | else |
| 4065 | echo "$as_me: failed program was:" >&5 |
| 4066 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4067 | |
| 4068 | # Passes both tests. |
| 4069 | ac_preproc_ok=: |
| 4070 | break |
| 4071 | fi |
| 4072 | |
| 4073 | rm -f conftest.err conftest.$ac_ext |
| 4074 | |
| 4075 | done |
| 4076 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 4077 | rm -f conftest.err conftest.$ac_ext |
| 4078 | if $ac_preproc_ok; then |
| 4079 | break |
| 4080 | fi |
| 4081 | |
| 4082 | done |
| 4083 | ac_cv_prog_CPP=$CPP |
| 4084 | |
| 4085 | fi |
| 4086 | CPP=$ac_cv_prog_CPP |
| 4087 | else |
| 4088 | ac_cv_prog_CPP=$CPP |
| 4089 | fi |
| 4090 | { echo "$as_me:$LINENO: result: $CPP" >&5 |
| 4091 | echo "${ECHO_T}$CPP" >&6; } |
| 4092 | ac_preproc_ok=false |
| 4093 | for ac_c_preproc_warn_flag in '' yes |
| 4094 | do |
| 4095 | # Use a header file that comes with gcc, so configuring glibc |
| 4096 | # with a fresh cross-compiler works. |
| 4097 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 4098 | # <limits.h> exists even on freestanding compilers. |
| 4099 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 4100 | # not just through cpp. "Syntax error" is here to catch this case. |
| 4101 | cat >conftest.$ac_ext <<_ACEOF |
| 4102 | /* confdefs.h. */ |
| 4103 | _ACEOF |
| 4104 | cat confdefs.h >>conftest.$ac_ext |
| 4105 | cat >>conftest.$ac_ext <<_ACEOF |
| 4106 | /* end confdefs.h. */ |
| 4107 | #ifdef __STDC__ |
| 4108 | # include <limits.h> |
| 4109 | #else |
| 4110 | # include <assert.h> |
| 4111 | #endif |
| 4112 | Syntax error |
| 4113 | _ACEOF |
| 4114 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 4115 | case "(($ac_try" in |
| 4116 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4117 | *) ac_try_echo=$ac_try;; |
| 4118 | esac |
| 4119 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4120 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 4121 | ac_status=$? |
| 4122 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4123 | rm -f conftest.er1 |
| 4124 | cat conftest.err >&5 |
| 4125 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4126 | (exit $ac_status); } >/dev/null && { |
| 4127 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 4128 | test ! -s conftest.err |
| 4129 | }; then |
| 4130 | : |
| 4131 | else |
| 4132 | echo "$as_me: failed program was:" >&5 |
| 4133 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4134 | |
| 4135 | # Broken: fails on valid input. |
| 4136 | continue |
| 4137 | fi |
| 4138 | |
| 4139 | rm -f conftest.err conftest.$ac_ext |
| 4140 | |
| 4141 | # OK, works on sane cases. Now check whether nonexistent headers |
| 4142 | # can be detected and how. |
| 4143 | cat >conftest.$ac_ext <<_ACEOF |
| 4144 | /* confdefs.h. */ |
| 4145 | _ACEOF |
| 4146 | cat confdefs.h >>conftest.$ac_ext |
| 4147 | cat >>conftest.$ac_ext <<_ACEOF |
| 4148 | /* end confdefs.h. */ |
| 4149 | #include <ac_nonexistent.h> |
| 4150 | _ACEOF |
| 4151 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 4152 | case "(($ac_try" in |
| 4153 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4154 | *) ac_try_echo=$ac_try;; |
| 4155 | esac |
| 4156 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4157 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 4158 | ac_status=$? |
| 4159 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4160 | rm -f conftest.er1 |
| 4161 | cat conftest.err >&5 |
| 4162 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4163 | (exit $ac_status); } >/dev/null && { |
| 4164 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 4165 | test ! -s conftest.err |
| 4166 | }; then |
| 4167 | # Broken: success on invalid input. |
| 4168 | continue |
| 4169 | else |
| 4170 | echo "$as_me: failed program was:" >&5 |
| 4171 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4172 | |
| 4173 | # Passes both tests. |
| 4174 | ac_preproc_ok=: |
| 4175 | break |
| 4176 | fi |
| 4177 | |
| 4178 | rm -f conftest.err conftest.$ac_ext |
| 4179 | |
| 4180 | done |
| 4181 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 4182 | rm -f conftest.err conftest.$ac_ext |
| 4183 | if $ac_preproc_ok; then |
| 4184 | : |
| 4185 | else |
| 4186 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check |
| 4187 | See \`config.log' for more details." >&5 |
| 4188 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check |
| 4189 | See \`config.log' for more details." >&2;} |
| 4190 | { (exit 1); exit 1; }; } |
| 4191 | fi |
| 4192 | |
| 4193 | ac_ext=c |
| 4194 | ac_cpp='$CPP $CPPFLAGS' |
| 4195 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 4196 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 4197 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 4198 | |
| 4199 | |
| 4200 | { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 |
| 4201 | echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; } |
| 4202 | if test "${ac_cv_path_GREP+set}" = set; then |
| 4203 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4204 | else |
| 4205 | # Extract the first word of "grep ggrep" to use in msg output |
| 4206 | if test -z "$GREP"; then |
| 4207 | set dummy grep ggrep; ac_prog_name=$2 |
| 4208 | if test "${ac_cv_path_GREP+set}" = set; then |
| 4209 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4210 | else |
| 4211 | ac_path_GREP_found=false |
| 4212 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 4213 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4214 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 4215 | do |
| 4216 | IFS=$as_save_IFS |
| 4217 | test -z "$as_dir" && as_dir=. |
| 4218 | for ac_prog in grep ggrep; do |
| 4219 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4220 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" |
| 4221 | { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue |
| 4222 | # Check for GNU ac_path_GREP and select it if it is found. |
| 4223 | # Check for GNU $ac_path_GREP |
| 4224 | case `"$ac_path_GREP" --version 2>&1` in |
| 4225 | *GNU*) |
| 4226 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; |
| 4227 | *) |
| 4228 | ac_count=0 |
| 4229 | echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" |
| 4230 | while : |
| 4231 | do |
| 4232 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 4233 | mv "conftest.tmp" "conftest.in" |
| 4234 | cp "conftest.in" "conftest.nl" |
| 4235 | echo 'GREP' >> "conftest.nl" |
| 4236 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 4237 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
| 4238 | ac_count=`expr $ac_count + 1` |
| 4239 | if test $ac_count -gt ${ac_path_GREP_max-0}; then |
| 4240 | # Best one so far, save it but keep looking for a better one |
| 4241 | ac_cv_path_GREP="$ac_path_GREP" |
| 4242 | ac_path_GREP_max=$ac_count |
| 4243 | fi |
| 4244 | # 10*(2^10) chars as input seems more than enough |
| 4245 | test $ac_count -gt 10 && break |
| 4246 | done |
| 4247 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 4248 | esac |
| 4249 | |
| 4250 | |
| 4251 | $ac_path_GREP_found && break 3 |
| 4252 | done |
| 4253 | done |
| 4254 | |
| 4255 | done |
| 4256 | IFS=$as_save_IFS |
| 4257 | |
| 4258 | |
| 4259 | fi |
| 4260 | |
| 4261 | GREP="$ac_cv_path_GREP" |
| 4262 | if test -z "$GREP"; then |
| 4263 | { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 |
| 4264 | echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} |
| 4265 | { (exit 1); exit 1; }; } |
| 4266 | fi |
| 4267 | |
| 4268 | else |
| 4269 | ac_cv_path_GREP=$GREP |
| 4270 | fi |
| 4271 | |
| 4272 | |
| 4273 | fi |
| 4274 | { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 |
| 4275 | echo "${ECHO_T}$ac_cv_path_GREP" >&6; } |
| 4276 | GREP="$ac_cv_path_GREP" |
| 4277 | |
| 4278 | |
| 4279 | { echo "$as_me:$LINENO: checking for egrep" >&5 |
| 4280 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6; } |
| 4281 | if test "${ac_cv_path_EGREP+set}" = set; then |
| 4282 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4283 | else |
| 4284 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
| 4285 | then ac_cv_path_EGREP="$GREP -E" |
| 4286 | else |
| 4287 | # Extract the first word of "egrep" to use in msg output |
| 4288 | if test -z "$EGREP"; then |
| 4289 | set dummy egrep; ac_prog_name=$2 |
| 4290 | if test "${ac_cv_path_EGREP+set}" = set; then |
| 4291 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4292 | else |
| 4293 | ac_path_EGREP_found=false |
| 4294 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 4295 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4296 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 4297 | do |
| 4298 | IFS=$as_save_IFS |
| 4299 | test -z "$as_dir" && as_dir=. |
| 4300 | for ac_prog in egrep; do |
| 4301 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4302 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" |
| 4303 | { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue |
| 4304 | # Check for GNU ac_path_EGREP and select it if it is found. |
| 4305 | # Check for GNU $ac_path_EGREP |
| 4306 | case `"$ac_path_EGREP" --version 2>&1` in |
| 4307 | *GNU*) |
| 4308 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; |
| 4309 | *) |
| 4310 | ac_count=0 |
| 4311 | echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" |
| 4312 | while : |
| 4313 | do |
| 4314 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 4315 | mv "conftest.tmp" "conftest.in" |
| 4316 | cp "conftest.in" "conftest.nl" |
| 4317 | echo 'EGREP' >> "conftest.nl" |
| 4318 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 4319 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
| 4320 | ac_count=`expr $ac_count + 1` |
| 4321 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then |
| 4322 | # Best one so far, save it but keep looking for a better one |
| 4323 | ac_cv_path_EGREP="$ac_path_EGREP" |
| 4324 | ac_path_EGREP_max=$ac_count |
| 4325 | fi |
| 4326 | # 10*(2^10) chars as input seems more than enough |
| 4327 | test $ac_count -gt 10 && break |
| 4328 | done |
| 4329 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 4330 | esac |
| 4331 | |
| 4332 | |
| 4333 | $ac_path_EGREP_found && break 3 |
| 4334 | done |
| 4335 | done |
| 4336 | |
| 4337 | done |
| 4338 | IFS=$as_save_IFS |
| 4339 | |
| 4340 | |
| 4341 | fi |
| 4342 | |
| 4343 | EGREP="$ac_cv_path_EGREP" |
| 4344 | if test -z "$EGREP"; then |
| 4345 | { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 |
| 4346 | echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} |
| 4347 | { (exit 1); exit 1; }; } |
| 4348 | fi |
| 4349 | |
| 4350 | else |
| 4351 | ac_cv_path_EGREP=$EGREP |
| 4352 | fi |
| 4353 | |
| 4354 | |
| 4355 | fi |
| 4356 | fi |
| 4357 | { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 |
| 4358 | echo "${ECHO_T}$ac_cv_path_EGREP" >&6; } |
| 4359 | EGREP="$ac_cv_path_EGREP" |
| 4360 | |
| 4361 | |
| 4362 | { echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
| 4363 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } |
| 4364 | if test "${ac_cv_header_stdc+set}" = set; then |
| 4365 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4366 | else |
| 4367 | cat >conftest.$ac_ext <<_ACEOF |
| 4368 | /* confdefs.h. */ |
| 4369 | _ACEOF |
| 4370 | cat confdefs.h >>conftest.$ac_ext |
| 4371 | cat >>conftest.$ac_ext <<_ACEOF |
| 4372 | /* end confdefs.h. */ |
| 4373 | #include <stdlib.h> |
| 4374 | #include <stdarg.h> |
| 4375 | #include <string.h> |
| 4376 | #include <float.h> |
| 4377 | |
| 4378 | int |
| 4379 | main () |
| 4380 | { |
| 4381 | |
| 4382 | ; |
| 4383 | return 0; |
| 4384 | } |
| 4385 | _ACEOF |
| 4386 | rm -f conftest.$ac_objext |
| 4387 | if { (ac_try="$ac_compile" |
| 4388 | case "(($ac_try" in |
| 4389 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4390 | *) ac_try_echo=$ac_try;; |
| 4391 | esac |
| 4392 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4393 | (eval "$ac_compile") 2>conftest.er1 |
| 4394 | ac_status=$? |
| 4395 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4396 | rm -f conftest.er1 |
| 4397 | cat conftest.err >&5 |
| 4398 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4399 | (exit $ac_status); } && { |
| 4400 | test -z "$ac_c_werror_flag" || |
| 4401 | test ! -s conftest.err |
| 4402 | } && test -s conftest.$ac_objext; then |
| 4403 | ac_cv_header_stdc=yes |
| 4404 | else |
| 4405 | echo "$as_me: failed program was:" >&5 |
| 4406 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4407 | |
| 4408 | ac_cv_header_stdc=no |
| 4409 | fi |
| 4410 | |
| 4411 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4412 | |
| 4413 | if test $ac_cv_header_stdc = yes; then |
| 4414 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
| 4415 | cat >conftest.$ac_ext <<_ACEOF |
| 4416 | /* confdefs.h. */ |
| 4417 | _ACEOF |
| 4418 | cat confdefs.h >>conftest.$ac_ext |
| 4419 | cat >>conftest.$ac_ext <<_ACEOF |
| 4420 | /* end confdefs.h. */ |
| 4421 | #include <string.h> |
| 4422 | |
| 4423 | _ACEOF |
| 4424 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 4425 | $EGREP "memchr" >/dev/null 2>&1; then |
| 4426 | : |
| 4427 | else |
| 4428 | ac_cv_header_stdc=no |
| 4429 | fi |
| 4430 | rm -f conftest* |
| 4431 | |
| 4432 | fi |
| 4433 | |
| 4434 | if test $ac_cv_header_stdc = yes; then |
| 4435 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
| 4436 | cat >conftest.$ac_ext <<_ACEOF |
| 4437 | /* confdefs.h. */ |
| 4438 | _ACEOF |
| 4439 | cat confdefs.h >>conftest.$ac_ext |
| 4440 | cat >>conftest.$ac_ext <<_ACEOF |
| 4441 | /* end confdefs.h. */ |
| 4442 | #include <stdlib.h> |
| 4443 | |
| 4444 | _ACEOF |
| 4445 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 4446 | $EGREP "free" >/dev/null 2>&1; then |
| 4447 | : |
| 4448 | else |
| 4449 | ac_cv_header_stdc=no |
| 4450 | fi |
| 4451 | rm -f conftest* |
| 4452 | |
| 4453 | fi |
| 4454 | |
| 4455 | if test $ac_cv_header_stdc = yes; then |
| 4456 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
| 4457 | if test "$cross_compiling" = yes; then |
| 4458 | : |
| 4459 | else |
| 4460 | cat >conftest.$ac_ext <<_ACEOF |
| 4461 | /* confdefs.h. */ |
| 4462 | _ACEOF |
| 4463 | cat confdefs.h >>conftest.$ac_ext |
| 4464 | cat >>conftest.$ac_ext <<_ACEOF |
| 4465 | /* end confdefs.h. */ |
| 4466 | #include <ctype.h> |
| 4467 | #include <stdlib.h> |
| 4468 | #if ((' ' & 0x0FF) == 0x020) |
| 4469 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 4470 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 4471 | #else |
| 4472 | # define ISLOWER(c) \ |
| 4473 | (('a' <= (c) && (c) <= 'i') \ |
| 4474 | || ('j' <= (c) && (c) <= 'r') \ |
| 4475 | || ('s' <= (c) && (c) <= 'z')) |
| 4476 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 4477 | #endif |
| 4478 | |
| 4479 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 4480 | int |
| 4481 | main () |
| 4482 | { |
| 4483 | int i; |
| 4484 | for (i = 0; i < 256; i++) |
| 4485 | if (XOR (islower (i), ISLOWER (i)) |
| 4486 | || toupper (i) != TOUPPER (i)) |
| 4487 | return 2; |
| 4488 | return 0; |
| 4489 | } |
| 4490 | _ACEOF |
| 4491 | rm -f conftest$ac_exeext |
| 4492 | if { (ac_try="$ac_link" |
| 4493 | case "(($ac_try" in |
| 4494 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4495 | *) ac_try_echo=$ac_try;; |
| 4496 | esac |
| 4497 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4498 | (eval "$ac_link") 2>&5 |
| 4499 | ac_status=$? |
| 4500 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4501 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 4502 | { (case "(($ac_try" in |
| 4503 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4504 | *) ac_try_echo=$ac_try;; |
| 4505 | esac |
| 4506 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4507 | (eval "$ac_try") 2>&5 |
| 4508 | ac_status=$? |
| 4509 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4510 | (exit $ac_status); }; }; then |
| 4511 | : |
| 4512 | else |
| 4513 | echo "$as_me: program exited with status $ac_status" >&5 |
| 4514 | echo "$as_me: failed program was:" >&5 |
| 4515 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4516 | |
| 4517 | ( exit $ac_status ) |
| 4518 | ac_cv_header_stdc=no |
| 4519 | fi |
| 4520 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 4521 | fi |
| 4522 | |
| 4523 | |
| 4524 | fi |
| 4525 | fi |
| 4526 | { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
| 4527 | echo "${ECHO_T}$ac_cv_header_stdc" >&6; } |
| 4528 | if test $ac_cv_header_stdc = yes; then |
| 4529 | |
| 4530 | cat >>confdefs.h <<\_ACEOF |
| 4531 | #define STDC_HEADERS 1 |
| 4532 | _ACEOF |
| 4533 | |
| 4534 | fi |
| 4535 | |
| 4536 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
| 4537 | |
| 4538 | |
| 4539 | |
| 4540 | |
| 4541 | |
| 4542 | |
| 4543 | |
| 4544 | |
| 4545 | |
| 4546 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
| 4547 | inttypes.h stdint.h unistd.h |
| 4548 | do |
| 4549 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 4550 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 4551 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 4552 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 4553 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4554 | else |
| 4555 | cat >conftest.$ac_ext <<_ACEOF |
| 4556 | /* confdefs.h. */ |
| 4557 | _ACEOF |
| 4558 | cat confdefs.h >>conftest.$ac_ext |
| 4559 | cat >>conftest.$ac_ext <<_ACEOF |
| 4560 | /* end confdefs.h. */ |
| 4561 | $ac_includes_default |
| 4562 | |
| 4563 | #include <$ac_header> |
| 4564 | _ACEOF |
| 4565 | rm -f conftest.$ac_objext |
| 4566 | if { (ac_try="$ac_compile" |
| 4567 | case "(($ac_try" in |
| 4568 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4569 | *) ac_try_echo=$ac_try;; |
| 4570 | esac |
| 4571 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4572 | (eval "$ac_compile") 2>conftest.er1 |
| 4573 | ac_status=$? |
| 4574 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4575 | rm -f conftest.er1 |
| 4576 | cat conftest.err >&5 |
| 4577 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4578 | (exit $ac_status); } && { |
| 4579 | test -z "$ac_c_werror_flag" || |
| 4580 | test ! -s conftest.err |
| 4581 | } && test -s conftest.$ac_objext; then |
| 4582 | eval "$as_ac_Header=yes" |
| 4583 | else |
| 4584 | echo "$as_me: failed program was:" >&5 |
| 4585 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4586 | |
| 4587 | eval "$as_ac_Header=no" |
| 4588 | fi |
| 4589 | |
| 4590 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4591 | fi |
| 4592 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 4593 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 4594 | echo "${ECHO_T}$ac_res" >&6; } |
| 4595 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 4596 | cat >>confdefs.h <<_ACEOF |
| 4597 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 4598 | _ACEOF |
| 4599 | |
| 4600 | fi |
| 4601 | |
| 4602 | done |
| 4603 | |
| 4604 | |
| 4605 | { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 |
| 4606 | echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; } |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 4607 | if test "${ac_cv_c_bigendian+set}" = set; then |
| 4608 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4609 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4610 | # See if sys/param.h defines the BYTE_ORDER macro. |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 4611 | cat >conftest.$ac_ext <<_ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4612 | /* confdefs.h. */ |
| 4613 | _ACEOF |
| 4614 | cat confdefs.h >>conftest.$ac_ext |
| 4615 | cat >>conftest.$ac_ext <<_ACEOF |
| 4616 | /* end confdefs.h. */ |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 4617 | #include <sys/types.h> |
| 4618 | #include <sys/param.h> |
| 4619 | |
| 4620 | int |
| 4621 | main () |
| 4622 | { |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 4623 | #if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \ |
| 4624 | && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN) |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 4625 | bogus endian macros |
| 4626 | #endif |
| 4627 | |
| 4628 | ; |
| 4629 | return 0; |
| 4630 | } |
| 4631 | _ACEOF |
| 4632 | rm -f conftest.$ac_objext |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 4633 | if { (ac_try="$ac_compile" |
| 4634 | case "(($ac_try" in |
| 4635 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4636 | *) ac_try_echo=$ac_try;; |
| 4637 | esac |
| 4638 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4639 | (eval "$ac_compile") 2>conftest.er1 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 4640 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4641 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4642 | rm -f conftest.er1 |
| 4643 | cat conftest.err >&5 |
| 4644 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 4645 | (exit $ac_status); } && { |
| 4646 | test -z "$ac_c_werror_flag" || |
| 4647 | test ! -s conftest.err |
| 4648 | } && test -s conftest.$ac_objext; then |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 4649 | # It does; now see whether it defined to BIG_ENDIAN or not. |
| 4650 | cat >conftest.$ac_ext <<_ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4651 | /* confdefs.h. */ |
| 4652 | _ACEOF |
| 4653 | cat confdefs.h >>conftest.$ac_ext |
| 4654 | cat >>conftest.$ac_ext <<_ACEOF |
| 4655 | /* end confdefs.h. */ |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 4656 | #include <sys/types.h> |
| 4657 | #include <sys/param.h> |
| 4658 | |
| 4659 | int |
| 4660 | main () |
| 4661 | { |
| 4662 | #if BYTE_ORDER != BIG_ENDIAN |
| 4663 | not big endian |
| 4664 | #endif |
| 4665 | |
| 4666 | ; |
| 4667 | return 0; |
| 4668 | } |
| 4669 | _ACEOF |
| 4670 | rm -f conftest.$ac_objext |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 4671 | if { (ac_try="$ac_compile" |
| 4672 | case "(($ac_try" in |
| 4673 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4674 | *) ac_try_echo=$ac_try;; |
| 4675 | esac |
| 4676 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4677 | (eval "$ac_compile") 2>conftest.er1 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 4678 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4679 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4680 | rm -f conftest.er1 |
| 4681 | cat conftest.err >&5 |
| 4682 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 4683 | (exit $ac_status); } && { |
| 4684 | test -z "$ac_c_werror_flag" || |
| 4685 | test ! -s conftest.err |
| 4686 | } && test -s conftest.$ac_objext; then |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 4687 | ac_cv_c_bigendian=yes |
| 4688 | else |
| 4689 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4690 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4691 | |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 4692 | ac_cv_c_bigendian=no |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 4693 | fi |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 4694 | |
| 4695 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 4696 | else |
| 4697 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4698 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4699 | |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 4700 | # It does not; compile a test program. |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 4701 | if test "$cross_compiling" = yes; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4702 | # try to guess the endianness by grepping values into an object file |
| 4703 | ac_cv_c_bigendian=unknown |
| 4704 | cat >conftest.$ac_ext <<_ACEOF |
| 4705 | /* confdefs.h. */ |
| 4706 | _ACEOF |
| 4707 | cat confdefs.h >>conftest.$ac_ext |
| 4708 | cat >>conftest.$ac_ext <<_ACEOF |
| 4709 | /* end confdefs.h. */ |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 4710 | short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; |
| 4711 | short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4712 | void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; } |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 4713 | short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; |
| 4714 | short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4715 | void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; } |
| 4716 | int |
| 4717 | main () |
| 4718 | { |
| 4719 | _ascii (); _ebcdic (); |
| 4720 | ; |
| 4721 | return 0; |
| 4722 | } |
| 4723 | _ACEOF |
| 4724 | rm -f conftest.$ac_objext |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 4725 | if { (ac_try="$ac_compile" |
| 4726 | case "(($ac_try" in |
| 4727 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4728 | *) ac_try_echo=$ac_try;; |
| 4729 | esac |
| 4730 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4731 | (eval "$ac_compile") 2>conftest.er1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4732 | ac_status=$? |
| 4733 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4734 | rm -f conftest.er1 |
| 4735 | cat conftest.err >&5 |
| 4736 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 4737 | (exit $ac_status); } && { |
| 4738 | test -z "$ac_c_werror_flag" || |
| 4739 | test ! -s conftest.err |
| 4740 | } && test -s conftest.$ac_objext; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4741 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then |
| 4742 | ac_cv_c_bigendian=yes |
| 4743 | fi |
| 4744 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then |
| 4745 | if test "$ac_cv_c_bigendian" = unknown; then |
| 4746 | ac_cv_c_bigendian=no |
| 4747 | else |
| 4748 | # finding both strings is unlikely to happen, but who knows? |
| 4749 | ac_cv_c_bigendian=unknown |
| 4750 | fi |
| 4751 | fi |
| 4752 | else |
| 4753 | echo "$as_me: failed program was:" >&5 |
| 4754 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4755 | |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 4756 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4757 | fi |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 4758 | |
| 4759 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 4760 | else |
| 4761 | cat >conftest.$ac_ext <<_ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4762 | /* confdefs.h. */ |
| 4763 | _ACEOF |
| 4764 | cat confdefs.h >>conftest.$ac_ext |
| 4765 | cat >>conftest.$ac_ext <<_ACEOF |
| 4766 | /* end confdefs.h. */ |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 4767 | $ac_includes_default |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 4768 | int |
| 4769 | main () |
| 4770 | { |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 4771 | |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 4772 | /* Are we little or big endian? From Harbison&Steele. */ |
| 4773 | union |
| 4774 | { |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 4775 | long int l; |
| 4776 | char c[sizeof (long int)]; |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 4777 | } u; |
| 4778 | u.l = 1; |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 4779 | return u.c[sizeof (long int) - 1] == 1; |
| 4780 | |
| 4781 | ; |
| 4782 | return 0; |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 4783 | } |
| 4784 | _ACEOF |
| 4785 | rm -f conftest$ac_exeext |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 4786 | if { (ac_try="$ac_link" |
| 4787 | case "(($ac_try" in |
| 4788 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4789 | *) ac_try_echo=$ac_try;; |
| 4790 | esac |
| 4791 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4792 | (eval "$ac_link") 2>&5 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 4793 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4794 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 4795 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 4796 | { (case "(($ac_try" in |
| 4797 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4798 | *) ac_try_echo=$ac_try;; |
| 4799 | esac |
| 4800 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4801 | (eval "$ac_try") 2>&5 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 4802 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4803 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 4804 | (exit $ac_status); }; }; then |
| 4805 | ac_cv_c_bigendian=no |
| 4806 | else |
| 4807 | echo "$as_me: program exited with status $ac_status" >&5 |
| 4808 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4809 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4810 | |
| 4811 | ( exit $ac_status ) |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 4812 | ac_cv_c_bigendian=yes |
| 4813 | fi |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 4814 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 4815 | fi |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 4816 | |
| 4817 | |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 4818 | fi |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 4819 | |
| 4820 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 4821 | fi |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 4822 | { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 |
| 4823 | echo "${ECHO_T}$ac_cv_c_bigendian" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4824 | case $ac_cv_c_bigendian in |
| 4825 | yes) |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 4826 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4827 | cat >>confdefs.h <<\_ACEOF |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame] | 4828 | #define WORDS_BIGENDIAN 1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4829 | _ACEOF |
| 4830 | ;; |
| 4831 | no) |
| 4832 | ;; |
| 4833 | *) |
| 4834 | { { echo "$as_me:$LINENO: error: unknown endianness |
| 4835 | presetting ac_cv_c_bigendian=no (or yes) will help" >&5 |
| 4836 | echo "$as_me: error: unknown endianness |
| 4837 | presetting ac_cv_c_bigendian=no (or yes) will help" >&2;} |
| 4838 | { (exit 1); exit 1; }; } ;; |
| 4839 | esac |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 4840 | |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 4841 | |
| 4842 | case $target in |
| 4843 | *mingw* | *cygw* | *win32* | *w32* ) |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4844 | cat >>confdefs.h <<\_ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 4845 | #define PJ_WIN32 1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4846 | _ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 4847 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4848 | cat >>confdefs.h <<\_ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 4849 | #define PJ_WIN32_WINNT 0x0400 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4850 | _ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 4851 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4852 | cat >>confdefs.h <<\_ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 4853 | #define WIN32_LEAN_AND_MEAN 1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4854 | _ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 4855 | |
| 4856 | ;; |
| 4857 | *darwin*) |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4858 | cat >>confdefs.h <<\_ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 4859 | #define PJ_DARWINOS 1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4860 | _ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 4861 | |
| 4862 | ;; |
| 4863 | *linux*) |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4864 | cat >>confdefs.h <<\_ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 4865 | #define PJ_LINUX 1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4866 | _ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 4867 | |
| 4868 | ;; |
| 4869 | *rtems*) |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4870 | cat >>confdefs.h <<\_ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 4871 | #define PJ_RTEMS 1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4872 | _ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 4873 | |
| 4874 | ;; |
| 4875 | *sunos* | *solaris* ) |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4876 | cat >>confdefs.h <<\_ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 4877 | #define PJ_SUNOS 1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4878 | _ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 4879 | |
| 4880 | ;; |
| 4881 | *) |
| 4882 | ;; |
| 4883 | esac |
| 4884 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4885 | |
| 4886 | |
| 4887 | |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 4888 | # Check whether --enable-floating-point was given. |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 4889 | if test "${enable_floating_point+set}" = set; then |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 4890 | enableval=$enable_floating_point; if test "$enable_floating_point" = "no"; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4891 | cat >>confdefs.h <<\_ACEOF |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 4892 | #define PJ_HAS_FLOATING_POINT 0 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4893 | _ACEOF |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 4894 | |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 4895 | { echo "$as_me:$LINENO: result: Checking if floating point is disabled... yes" >&5 |
| 4896 | echo "${ECHO_T}Checking if floating point is disabled... yes" >&6; } |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 4897 | fi |
| 4898 | else |
| 4899 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4900 | cat >>confdefs.h <<\_ACEOF |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 4901 | #define PJ_HAS_FLOATING_POINT 1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4902 | _ACEOF |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 4903 | |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 4904 | { echo "$as_me:$LINENO: result: Checking if floating point is disabled... no" >&5 |
| 4905 | echo "${ECHO_T}Checking if floating point is disabled... no" >&6; } |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 4906 | |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 4907 | { echo "$as_me:$LINENO: checking for fmod in -lm" >&5 |
| 4908 | echo $ECHO_N "checking for fmod in -lm... $ECHO_C" >&6; } |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 4909 | if test "${ac_cv_lib_m_fmod+set}" = set; then |
| 4910 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4911 | else |
| 4912 | ac_check_lib_save_LIBS=$LIBS |
| 4913 | LIBS="-lm $LIBS" |
| 4914 | cat >conftest.$ac_ext <<_ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4915 | /* confdefs.h. */ |
| 4916 | _ACEOF |
| 4917 | cat confdefs.h >>conftest.$ac_ext |
| 4918 | cat >>conftest.$ac_ext <<_ACEOF |
| 4919 | /* end confdefs.h. */ |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 4920 | |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 4921 | /* Override any GCC internal prototype to avoid an error. |
| 4922 | Use char because int might match the return type of a GCC |
| 4923 | builtin and then its argument prototype would still apply. */ |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 4924 | #ifdef __cplusplus |
| 4925 | extern "C" |
| 4926 | #endif |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 4927 | char fmod (); |
| 4928 | int |
| 4929 | main () |
| 4930 | { |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 4931 | return fmod (); |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 4932 | ; |
| 4933 | return 0; |
| 4934 | } |
| 4935 | _ACEOF |
| 4936 | rm -f conftest.$ac_objext conftest$ac_exeext |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 4937 | if { (ac_try="$ac_link" |
| 4938 | case "(($ac_try" in |
| 4939 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4940 | *) ac_try_echo=$ac_try;; |
| 4941 | esac |
| 4942 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4943 | (eval "$ac_link") 2>conftest.er1 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 4944 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4945 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4946 | rm -f conftest.er1 |
| 4947 | cat conftest.err >&5 |
| 4948 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 4949 | (exit $ac_status); } && { |
| 4950 | test -z "$ac_c_werror_flag" || |
| 4951 | test ! -s conftest.err |
| 4952 | } && test -s conftest$ac_exeext && |
| 4953 | $as_test_x conftest$ac_exeext; then |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 4954 | ac_cv_lib_m_fmod=yes |
| 4955 | else |
| 4956 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4957 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4958 | |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 4959 | ac_cv_lib_m_fmod=no |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 4960 | fi |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 4961 | |
| 4962 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4963 | conftest$ac_exeext conftest.$ac_ext |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 4964 | LIBS=$ac_check_lib_save_LIBS |
| 4965 | fi |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 4966 | { echo "$as_me:$LINENO: result: $ac_cv_lib_m_fmod" >&5 |
| 4967 | echo "${ECHO_T}$ac_cv_lib_m_fmod" >&6; } |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 4968 | if test $ac_cv_lib_m_fmod = yes; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4969 | cat >>confdefs.h <<_ACEOF |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 4970 | #define HAVE_LIBM 1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4971 | _ACEOF |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 4972 | |
| 4973 | LIBS="-lm $LIBS" |
| 4974 | |
| 4975 | fi |
| 4976 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4977 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 4978 | fi |
| 4979 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4980 | |
| 4981 | |
| 4982 | if test "${ac_cv_header_arpa_inet_h+set}" = set; then |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 4983 | { echo "$as_me:$LINENO: checking for arpa/inet.h" >&5 |
| 4984 | echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4985 | if test "${ac_cv_header_arpa_inet_h+set}" = set; then |
| 4986 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4987 | fi |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 4988 | { echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5 |
| 4989 | echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4990 | else |
| 4991 | # Is the header compilable? |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 4992 | { echo "$as_me:$LINENO: checking arpa/inet.h usability" >&5 |
| 4993 | echo $ECHO_N "checking arpa/inet.h usability... $ECHO_C" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4994 | cat >conftest.$ac_ext <<_ACEOF |
| 4995 | /* confdefs.h. */ |
| 4996 | _ACEOF |
| 4997 | cat confdefs.h >>conftest.$ac_ext |
| 4998 | cat >>conftest.$ac_ext <<_ACEOF |
| 4999 | /* end confdefs.h. */ |
| 5000 | $ac_includes_default |
| 5001 | #include <arpa/inet.h> |
| 5002 | _ACEOF |
| 5003 | rm -f conftest.$ac_objext |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 5004 | if { (ac_try="$ac_compile" |
| 5005 | case "(($ac_try" in |
| 5006 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5007 | *) ac_try_echo=$ac_try;; |
| 5008 | esac |
| 5009 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5010 | (eval "$ac_compile") 2>conftest.er1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5011 | ac_status=$? |
| 5012 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5013 | rm -f conftest.er1 |
| 5014 | cat conftest.err >&5 |
| 5015 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 5016 | (exit $ac_status); } && { |
| 5017 | test -z "$ac_c_werror_flag" || |
| 5018 | test ! -s conftest.err |
| 5019 | } && test -s conftest.$ac_objext; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5020 | ac_header_compiler=yes |
| 5021 | else |
| 5022 | echo "$as_me: failed program was:" >&5 |
| 5023 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5024 | |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 5025 | ac_header_compiler=no |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5026 | fi |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 5027 | |
| 5028 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5029 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 5030 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5031 | |
| 5032 | # Is the header present? |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 5033 | { echo "$as_me:$LINENO: checking arpa/inet.h presence" >&5 |
| 5034 | echo $ECHO_N "checking arpa/inet.h presence... $ECHO_C" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5035 | cat >conftest.$ac_ext <<_ACEOF |
| 5036 | /* confdefs.h. */ |
| 5037 | _ACEOF |
| 5038 | cat confdefs.h >>conftest.$ac_ext |
| 5039 | cat >>conftest.$ac_ext <<_ACEOF |
| 5040 | /* end confdefs.h. */ |
| 5041 | #include <arpa/inet.h> |
| 5042 | _ACEOF |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 5043 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 5044 | case "(($ac_try" in |
| 5045 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5046 | *) ac_try_echo=$ac_try;; |
| 5047 | esac |
| 5048 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5049 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5050 | ac_status=$? |
| 5051 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5052 | rm -f conftest.er1 |
| 5053 | cat conftest.err >&5 |
| 5054 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 5055 | (exit $ac_status); } >/dev/null && { |
| 5056 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 5057 | test ! -s conftest.err |
| 5058 | }; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5059 | ac_header_preproc=yes |
| 5060 | else |
| 5061 | echo "$as_me: failed program was:" >&5 |
| 5062 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5063 | |
| 5064 | ac_header_preproc=no |
| 5065 | fi |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 5066 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5067 | rm -f conftest.err conftest.$ac_ext |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 5068 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 5069 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5070 | |
| 5071 | # So? What about this header? |
| 5072 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 5073 | yes:no: ) |
| 5074 | { echo "$as_me:$LINENO: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 5075 | echo "$as_me: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 5076 | { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the compiler's result" >&5 |
| 5077 | echo "$as_me: WARNING: arpa/inet.h: proceeding with the compiler's result" >&2;} |
| 5078 | ac_header_preproc=yes |
| 5079 | ;; |
| 5080 | no:yes:* ) |
| 5081 | { echo "$as_me:$LINENO: WARNING: arpa/inet.h: present but cannot be compiled" >&5 |
| 5082 | echo "$as_me: WARNING: arpa/inet.h: present but cannot be compiled" >&2;} |
| 5083 | { echo "$as_me:$LINENO: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&5 |
| 5084 | echo "$as_me: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&2;} |
| 5085 | { echo "$as_me:$LINENO: WARNING: arpa/inet.h: see the Autoconf documentation" >&5 |
| 5086 | echo "$as_me: WARNING: arpa/inet.h: see the Autoconf documentation" >&2;} |
| 5087 | { echo "$as_me:$LINENO: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 5088 | echo "$as_me: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 5089 | { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&5 |
| 5090 | echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&2;} |
| 5091 | { echo "$as_me:$LINENO: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&5 |
| 5092 | echo "$as_me: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&2;} |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 5093 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5094 | ;; |
| 5095 | esac |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 5096 | { echo "$as_me:$LINENO: checking for arpa/inet.h" >&5 |
| 5097 | echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6; } |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 5098 | if test "${ac_cv_header_arpa_inet_h+set}" = set; then |
| 5099 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 5100 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5101 | ac_cv_header_arpa_inet_h=$ac_header_preproc |
| 5102 | fi |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 5103 | { echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5 |
| 5104 | echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5105 | |
| 5106 | fi |
| 5107 | if test $ac_cv_header_arpa_inet_h = yes; then |
| 5108 | cat >>confdefs.h <<\_ACEOF |
| 5109 | #define PJ_HAS_ARPA_INET_H 1 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 5110 | _ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5111 | |
| 5112 | fi |
| 5113 | |
| 5114 | |
| 5115 | if test "${ac_cv_header_assert_h+set}" = set; then |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 5116 | { echo "$as_me:$LINENO: checking for assert.h" >&5 |
| 5117 | echo $ECHO_N "checking for assert.h... $ECHO_C" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5118 | if test "${ac_cv_header_assert_h+set}" = set; then |
| 5119 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5120 | fi |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 5121 | { echo "$as_me:$LINENO: result: $ac_cv_header_assert_h" >&5 |
| 5122 | echo "${ECHO_T}$ac_cv_header_assert_h" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5123 | else |
| 5124 | # Is the header compilable? |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 5125 | { echo "$as_me:$LINENO: checking assert.h usability" >&5 |
| 5126 | echo $ECHO_N "checking assert.h usability... $ECHO_C" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5127 | cat >conftest.$ac_ext <<_ACEOF |
| 5128 | /* confdefs.h. */ |
| 5129 | _ACEOF |
| 5130 | cat confdefs.h >>conftest.$ac_ext |
| 5131 | cat >>conftest.$ac_ext <<_ACEOF |
| 5132 | /* end confdefs.h. */ |
| 5133 | $ac_includes_default |
| 5134 | #include <assert.h> |
| 5135 | _ACEOF |
| 5136 | rm -f conftest.$ac_objext |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 5137 | if { (ac_try="$ac_compile" |
| 5138 | case "(($ac_try" in |
| 5139 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5140 | *) ac_try_echo=$ac_try;; |
| 5141 | esac |
| 5142 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5143 | (eval "$ac_compile") 2>conftest.er1 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 5144 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5145 | grep -v '^ *+' conftest.er1 >conftest.err |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 5146 | rm -f conftest.er1 |
| 5147 | cat conftest.err >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5148 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 5149 | (exit $ac_status); } && { |
| 5150 | test -z "$ac_c_werror_flag" || |
| 5151 | test ! -s conftest.err |
| 5152 | } && test -s conftest.$ac_objext; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5153 | ac_header_compiler=yes |
| 5154 | else |
| 5155 | echo "$as_me: failed program was:" >&5 |
| 5156 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5157 | |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 5158 | ac_header_compiler=no |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5159 | fi |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 5160 | |
| 5161 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5162 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 5163 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5164 | |
| 5165 | # Is the header present? |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 5166 | { echo "$as_me:$LINENO: checking assert.h presence" >&5 |
| 5167 | echo $ECHO_N "checking assert.h presence... $ECHO_C" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5168 | cat >conftest.$ac_ext <<_ACEOF |
| 5169 | /* confdefs.h. */ |
| 5170 | _ACEOF |
| 5171 | cat confdefs.h >>conftest.$ac_ext |
| 5172 | cat >>conftest.$ac_ext <<_ACEOF |
| 5173 | /* end confdefs.h. */ |
| 5174 | #include <assert.h> |
| 5175 | _ACEOF |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 5176 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 5177 | case "(($ac_try" in |
| 5178 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5179 | *) ac_try_echo=$ac_try;; |
| 5180 | esac |
| 5181 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5182 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5183 | ac_status=$? |
| 5184 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5185 | rm -f conftest.er1 |
| 5186 | cat conftest.err >&5 |
| 5187 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 5188 | (exit $ac_status); } >/dev/null && { |
| 5189 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 5190 | test ! -s conftest.err |
| 5191 | }; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5192 | ac_header_preproc=yes |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 5193 | else |
| 5194 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5195 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5196 | |
| 5197 | ac_header_preproc=no |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 5198 | fi |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 5199 | |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 5200 | rm -f conftest.err conftest.$ac_ext |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 5201 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 5202 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 5203 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5204 | # So? What about this header? |
| 5205 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 5206 | yes:no: ) |
| 5207 | { echo "$as_me:$LINENO: WARNING: assert.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 5208 | echo "$as_me: WARNING: assert.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 5209 | { echo "$as_me:$LINENO: WARNING: assert.h: proceeding with the compiler's result" >&5 |
| 5210 | echo "$as_me: WARNING: assert.h: proceeding with the compiler's result" >&2;} |
| 5211 | ac_header_preproc=yes |
| 5212 | ;; |
| 5213 | no:yes:* ) |
| 5214 | { echo "$as_me:$LINENO: WARNING: assert.h: present but cannot be compiled" >&5 |
| 5215 | echo "$as_me: WARNING: assert.h: present but cannot be compiled" >&2;} |
| 5216 | { echo "$as_me:$LINENO: WARNING: assert.h: check for missing prerequisite headers?" >&5 |
| 5217 | echo "$as_me: WARNING: assert.h: check for missing prerequisite headers?" >&2;} |
| 5218 | { echo "$as_me:$LINENO: WARNING: assert.h: see the Autoconf documentation" >&5 |
| 5219 | echo "$as_me: WARNING: assert.h: see the Autoconf documentation" >&2;} |
| 5220 | { echo "$as_me:$LINENO: WARNING: assert.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 5221 | echo "$as_me: WARNING: assert.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 5222 | { echo "$as_me:$LINENO: WARNING: assert.h: proceeding with the preprocessor's result" >&5 |
| 5223 | echo "$as_me: WARNING: assert.h: proceeding with the preprocessor's result" >&2;} |
| 5224 | { echo "$as_me:$LINENO: WARNING: assert.h: in the future, the compiler will take precedence" >&5 |
| 5225 | echo "$as_me: WARNING: assert.h: in the future, the compiler will take precedence" >&2;} |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 5226 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5227 | ;; |
| 5228 | esac |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 5229 | { echo "$as_me:$LINENO: checking for assert.h" >&5 |
| 5230 | echo $ECHO_N "checking for assert.h... $ECHO_C" >&6; } |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 5231 | if test "${ac_cv_header_assert_h+set}" = set; then |
| 5232 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 5233 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5234 | ac_cv_header_assert_h=$ac_header_preproc |
| 5235 | fi |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 5236 | { echo "$as_me:$LINENO: result: $ac_cv_header_assert_h" >&5 |
| 5237 | echo "${ECHO_T}$ac_cv_header_assert_h" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5238 | |
| 5239 | fi |
| 5240 | if test $ac_cv_header_assert_h = yes; then |
| 5241 | cat >>confdefs.h <<\_ACEOF |
| 5242 | #define PJ_HAS_ASSERT_H 1 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 5243 | _ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5244 | |
| 5245 | fi |
| 5246 | |
| 5247 | |
| 5248 | if test "${ac_cv_header_ctype_h+set}" = set; then |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 5249 | { echo "$as_me:$LINENO: checking for ctype.h" >&5 |
| 5250 | echo $ECHO_N "checking for ctype.h... $ECHO_C" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5251 | if test "${ac_cv_header_ctype_h+set}" = set; then |
| 5252 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5253 | fi |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 5254 | { echo "$as_me:$LINENO: result: $ac_cv_header_ctype_h" >&5 |
| 5255 | echo "${ECHO_T}$ac_cv_header_ctype_h" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5256 | else |
| 5257 | # Is the header compilable? |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 5258 | { echo "$as_me:$LINENO: checking ctype.h usability" >&5 |
| 5259 | echo $ECHO_N "checking ctype.h usability... $ECHO_C" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5260 | cat >conftest.$ac_ext <<_ACEOF |
| 5261 | /* confdefs.h. */ |
| 5262 | _ACEOF |
| 5263 | cat confdefs.h >>conftest.$ac_ext |
| 5264 | cat >>conftest.$ac_ext <<_ACEOF |
| 5265 | /* end confdefs.h. */ |
| 5266 | $ac_includes_default |
| 5267 | #include <ctype.h> |
| 5268 | _ACEOF |
| 5269 | rm -f conftest.$ac_objext |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 5270 | if { (ac_try="$ac_compile" |
| 5271 | case "(($ac_try" in |
| 5272 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5273 | *) ac_try_echo=$ac_try;; |
| 5274 | esac |
| 5275 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5276 | (eval "$ac_compile") 2>conftest.er1 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 5277 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5278 | grep -v '^ *+' conftest.er1 >conftest.err |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 5279 | rm -f conftest.er1 |
| 5280 | cat conftest.err >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5281 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 5282 | (exit $ac_status); } && { |
| 5283 | test -z "$ac_c_werror_flag" || |
| 5284 | test ! -s conftest.err |
| 5285 | } && test -s conftest.$ac_objext; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5286 | ac_header_compiler=yes |
| 5287 | else |
| 5288 | echo "$as_me: failed program was:" >&5 |
| 5289 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5290 | |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 5291 | ac_header_compiler=no |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5292 | fi |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 5293 | |
| 5294 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5295 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 5296 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5297 | |
| 5298 | # Is the header present? |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 5299 | { echo "$as_me:$LINENO: checking ctype.h presence" >&5 |
| 5300 | echo $ECHO_N "checking ctype.h presence... $ECHO_C" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5301 | cat >conftest.$ac_ext <<_ACEOF |
| 5302 | /* confdefs.h. */ |
| 5303 | _ACEOF |
| 5304 | cat confdefs.h >>conftest.$ac_ext |
| 5305 | cat >>conftest.$ac_ext <<_ACEOF |
| 5306 | /* end confdefs.h. */ |
| 5307 | #include <ctype.h> |
| 5308 | _ACEOF |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 5309 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 5310 | case "(($ac_try" in |
| 5311 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5312 | *) ac_try_echo=$ac_try;; |
| 5313 | esac |
| 5314 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5315 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5316 | ac_status=$? |
| 5317 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5318 | rm -f conftest.er1 |
| 5319 | cat conftest.err >&5 |
| 5320 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 5321 | (exit $ac_status); } >/dev/null && { |
| 5322 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 5323 | test ! -s conftest.err |
| 5324 | }; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5325 | ac_header_preproc=yes |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 5326 | else |
| 5327 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5328 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5329 | |
| 5330 | ac_header_preproc=no |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 5331 | fi |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 5332 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 5333 | rm -f conftest.err conftest.$ac_ext |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 5334 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 5335 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 5336 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5337 | # So? What about this header? |
| 5338 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 5339 | yes:no: ) |
| 5340 | { echo "$as_me:$LINENO: WARNING: ctype.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 5341 | echo "$as_me: WARNING: ctype.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 5342 | { echo "$as_me:$LINENO: WARNING: ctype.h: proceeding with the compiler's result" >&5 |
| 5343 | echo "$as_me: WARNING: ctype.h: proceeding with the compiler's result" >&2;} |
| 5344 | ac_header_preproc=yes |
| 5345 | ;; |
| 5346 | no:yes:* ) |
| 5347 | { echo "$as_me:$LINENO: WARNING: ctype.h: present but cannot be compiled" >&5 |
| 5348 | echo "$as_me: WARNING: ctype.h: present but cannot be compiled" >&2;} |
| 5349 | { echo "$as_me:$LINENO: WARNING: ctype.h: check for missing prerequisite headers?" >&5 |
| 5350 | echo "$as_me: WARNING: ctype.h: check for missing prerequisite headers?" >&2;} |
| 5351 | { echo "$as_me:$LINENO: WARNING: ctype.h: see the Autoconf documentation" >&5 |
| 5352 | echo "$as_me: WARNING: ctype.h: see the Autoconf documentation" >&2;} |
| 5353 | { echo "$as_me:$LINENO: WARNING: ctype.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 5354 | echo "$as_me: WARNING: ctype.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 5355 | { echo "$as_me:$LINENO: WARNING: ctype.h: proceeding with the preprocessor's result" >&5 |
| 5356 | echo "$as_me: WARNING: ctype.h: proceeding with the preprocessor's result" >&2;} |
| 5357 | { echo "$as_me:$LINENO: WARNING: ctype.h: in the future, the compiler will take precedence" >&5 |
| 5358 | echo "$as_me: WARNING: ctype.h: in the future, the compiler will take precedence" >&2;} |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 5359 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5360 | ;; |
| 5361 | esac |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 5362 | { echo "$as_me:$LINENO: checking for ctype.h" >&5 |
| 5363 | echo $ECHO_N "checking for ctype.h... $ECHO_C" >&6; } |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 5364 | if test "${ac_cv_header_ctype_h+set}" = set; then |
| 5365 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 5366 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5367 | ac_cv_header_ctype_h=$ac_header_preproc |
| 5368 | fi |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 5369 | { echo "$as_me:$LINENO: result: $ac_cv_header_ctype_h" >&5 |
| 5370 | echo "${ECHO_T}$ac_cv_header_ctype_h" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5371 | |
| 5372 | fi |
| 5373 | if test $ac_cv_header_ctype_h = yes; then |
| 5374 | cat >>confdefs.h <<\_ACEOF |
| 5375 | #define PJ_HAS_CTYPE_H 1 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 5376 | _ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5377 | |
| 5378 | fi |
| 5379 | |
| 5380 | |
| 5381 | |
| 5382 | case $target in |
| 5383 | *mingw* | *cygw* | *win32* | *w32* ) |
| 5384 | cat >>confdefs.h <<\_ACEOF |
| 5385 | #define PJ_HAS_ERRNO_H 0 |
| 5386 | _ACEOF |
| 5387 | |
| 5388 | ;; |
| 5389 | *) |
| 5390 | if test "${ac_cv_header_errno_h+set}" = set; then |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 5391 | { echo "$as_me:$LINENO: checking for errno.h" >&5 |
| 5392 | echo $ECHO_N "checking for errno.h... $ECHO_C" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5393 | if test "${ac_cv_header_errno_h+set}" = set; then |
| 5394 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5395 | fi |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 5396 | { echo "$as_me:$LINENO: result: $ac_cv_header_errno_h" >&5 |
| 5397 | echo "${ECHO_T}$ac_cv_header_errno_h" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5398 | else |
| 5399 | # Is the header compilable? |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 5400 | { echo "$as_me:$LINENO: checking errno.h usability" >&5 |
| 5401 | echo $ECHO_N "checking errno.h usability... $ECHO_C" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5402 | cat >conftest.$ac_ext <<_ACEOF |
| 5403 | /* confdefs.h. */ |
| 5404 | _ACEOF |
| 5405 | cat confdefs.h >>conftest.$ac_ext |
| 5406 | cat >>conftest.$ac_ext <<_ACEOF |
| 5407 | /* end confdefs.h. */ |
| 5408 | $ac_includes_default |
| 5409 | #include <errno.h> |
| 5410 | _ACEOF |
| 5411 | rm -f conftest.$ac_objext |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 5412 | if { (ac_try="$ac_compile" |
| 5413 | case "(($ac_try" in |
| 5414 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5415 | *) ac_try_echo=$ac_try;; |
| 5416 | esac |
| 5417 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5418 | (eval "$ac_compile") 2>conftest.er1 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 5419 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5420 | grep -v '^ *+' conftest.er1 >conftest.err |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 5421 | rm -f conftest.er1 |
| 5422 | cat conftest.err >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5423 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 5424 | (exit $ac_status); } && { |
| 5425 | test -z "$ac_c_werror_flag" || |
| 5426 | test ! -s conftest.err |
| 5427 | } && test -s conftest.$ac_objext; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5428 | ac_header_compiler=yes |
| 5429 | else |
| 5430 | echo "$as_me: failed program was:" >&5 |
| 5431 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5432 | |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 5433 | ac_header_compiler=no |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5434 | fi |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 5435 | |
| 5436 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5437 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 5438 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5439 | |
| 5440 | # Is the header present? |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 5441 | { echo "$as_me:$LINENO: checking errno.h presence" >&5 |
| 5442 | echo $ECHO_N "checking errno.h presence... $ECHO_C" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5443 | cat >conftest.$ac_ext <<_ACEOF |
| 5444 | /* confdefs.h. */ |
| 5445 | _ACEOF |
| 5446 | cat confdefs.h >>conftest.$ac_ext |
| 5447 | cat >>conftest.$ac_ext <<_ACEOF |
| 5448 | /* end confdefs.h. */ |
| 5449 | #include <errno.h> |
| 5450 | _ACEOF |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 5451 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 5452 | case "(($ac_try" in |
| 5453 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5454 | *) ac_try_echo=$ac_try;; |
| 5455 | esac |
| 5456 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5457 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5458 | ac_status=$? |
| 5459 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5460 | rm -f conftest.er1 |
| 5461 | cat conftest.err >&5 |
| 5462 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 5463 | (exit $ac_status); } >/dev/null && { |
| 5464 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 5465 | test ! -s conftest.err |
| 5466 | }; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5467 | ac_header_preproc=yes |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 5468 | else |
| 5469 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5470 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5471 | |
| 5472 | ac_header_preproc=no |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 5473 | fi |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 5474 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 5475 | rm -f conftest.err conftest.$ac_ext |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 5476 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 5477 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 5478 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5479 | # So? What about this header? |
| 5480 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 5481 | yes:no: ) |
| 5482 | { echo "$as_me:$LINENO: WARNING: errno.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 5483 | echo "$as_me: WARNING: errno.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 5484 | { echo "$as_me:$LINENO: WARNING: errno.h: proceeding with the compiler's result" >&5 |
| 5485 | echo "$as_me: WARNING: errno.h: proceeding with the compiler's result" >&2;} |
| 5486 | ac_header_preproc=yes |
| 5487 | ;; |
| 5488 | no:yes:* ) |
| 5489 | { echo "$as_me:$LINENO: WARNING: errno.h: present but cannot be compiled" >&5 |
| 5490 | echo "$as_me: WARNING: errno.h: present but cannot be compiled" >&2;} |
| 5491 | { echo "$as_me:$LINENO: WARNING: errno.h: check for missing prerequisite headers?" >&5 |
| 5492 | echo "$as_me: WARNING: errno.h: check for missing prerequisite headers?" >&2;} |
| 5493 | { echo "$as_me:$LINENO: WARNING: errno.h: see the Autoconf documentation" >&5 |
| 5494 | echo "$as_me: WARNING: errno.h: see the Autoconf documentation" >&2;} |
| 5495 | { echo "$as_me:$LINENO: WARNING: errno.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 5496 | echo "$as_me: WARNING: errno.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 5497 | { echo "$as_me:$LINENO: WARNING: errno.h: proceeding with the preprocessor's result" >&5 |
| 5498 | echo "$as_me: WARNING: errno.h: proceeding with the preprocessor's result" >&2;} |
| 5499 | { echo "$as_me:$LINENO: WARNING: errno.h: in the future, the compiler will take precedence" >&5 |
| 5500 | echo "$as_me: WARNING: errno.h: in the future, the compiler will take precedence" >&2;} |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 5501 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5502 | ;; |
| 5503 | esac |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 5504 | { echo "$as_me:$LINENO: checking for errno.h" >&5 |
| 5505 | echo $ECHO_N "checking for errno.h... $ECHO_C" >&6; } |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 5506 | if test "${ac_cv_header_errno_h+set}" = set; then |
| 5507 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 5508 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5509 | ac_cv_header_errno_h=$ac_header_preproc |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 5510 | fi |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 5511 | { echo "$as_me:$LINENO: result: $ac_cv_header_errno_h" >&5 |
| 5512 | echo "${ECHO_T}$ac_cv_header_errno_h" >&6; } |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 5513 | |
| 5514 | fi |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5515 | if test $ac_cv_header_errno_h = yes; then |
| 5516 | cat >>confdefs.h <<\_ACEOF |
| 5517 | #define PJ_HAS_ERRNO_H 1 |
| 5518 | _ACEOF |
| 5519 | |
| 5520 | fi |
| 5521 | |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 5522 | |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 5523 | ;; |
| 5524 | esac |
| 5525 | |
Benny Prijono | 1d481ab | 2008-01-24 15:27:30 +0000 | [diff] [blame] | 5526 | if test "${ac_cv_header_fcntl_h+set}" = set; then |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 5527 | { echo "$as_me:$LINENO: checking for fcntl.h" >&5 |
| 5528 | echo $ECHO_N "checking for fcntl.h... $ECHO_C" >&6; } |
Benny Prijono | 1d481ab | 2008-01-24 15:27:30 +0000 | [diff] [blame] | 5529 | if test "${ac_cv_header_fcntl_h+set}" = set; then |
| 5530 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5531 | fi |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 5532 | { echo "$as_me:$LINENO: result: $ac_cv_header_fcntl_h" >&5 |
| 5533 | echo "${ECHO_T}$ac_cv_header_fcntl_h" >&6; } |
Benny Prijono | 1d481ab | 2008-01-24 15:27:30 +0000 | [diff] [blame] | 5534 | else |
| 5535 | # Is the header compilable? |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 5536 | { echo "$as_me:$LINENO: checking fcntl.h usability" >&5 |
| 5537 | echo $ECHO_N "checking fcntl.h usability... $ECHO_C" >&6; } |
Benny Prijono | 1d481ab | 2008-01-24 15:27:30 +0000 | [diff] [blame] | 5538 | cat >conftest.$ac_ext <<_ACEOF |
| 5539 | /* confdefs.h. */ |
| 5540 | _ACEOF |
| 5541 | cat confdefs.h >>conftest.$ac_ext |
| 5542 | cat >>conftest.$ac_ext <<_ACEOF |
| 5543 | /* end confdefs.h. */ |
| 5544 | $ac_includes_default |
| 5545 | #include <fcntl.h> |
| 5546 | _ACEOF |
| 5547 | rm -f conftest.$ac_objext |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 5548 | if { (ac_try="$ac_compile" |
| 5549 | case "(($ac_try" in |
| 5550 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5551 | *) ac_try_echo=$ac_try;; |
| 5552 | esac |
| 5553 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5554 | (eval "$ac_compile") 2>conftest.er1 |
Benny Prijono | 1d481ab | 2008-01-24 15:27:30 +0000 | [diff] [blame] | 5555 | ac_status=$? |
| 5556 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5557 | rm -f conftest.er1 |
| 5558 | cat conftest.err >&5 |
| 5559 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 5560 | (exit $ac_status); } && { |
| 5561 | test -z "$ac_c_werror_flag" || |
| 5562 | test ! -s conftest.err |
| 5563 | } && test -s conftest.$ac_objext; then |
Benny Prijono | 1d481ab | 2008-01-24 15:27:30 +0000 | [diff] [blame] | 5564 | ac_header_compiler=yes |
| 5565 | else |
| 5566 | echo "$as_me: failed program was:" >&5 |
| 5567 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5568 | |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 5569 | ac_header_compiler=no |
Benny Prijono | 1d481ab | 2008-01-24 15:27:30 +0000 | [diff] [blame] | 5570 | fi |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 5571 | |
| 5572 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5573 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 5574 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Benny Prijono | 1d481ab | 2008-01-24 15:27:30 +0000 | [diff] [blame] | 5575 | |
| 5576 | # Is the header present? |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 5577 | { echo "$as_me:$LINENO: checking fcntl.h presence" >&5 |
| 5578 | echo $ECHO_N "checking fcntl.h presence... $ECHO_C" >&6; } |
Benny Prijono | 1d481ab | 2008-01-24 15:27:30 +0000 | [diff] [blame] | 5579 | cat >conftest.$ac_ext <<_ACEOF |
| 5580 | /* confdefs.h. */ |
| 5581 | _ACEOF |
| 5582 | cat confdefs.h >>conftest.$ac_ext |
| 5583 | cat >>conftest.$ac_ext <<_ACEOF |
| 5584 | /* end confdefs.h. */ |
| 5585 | #include <fcntl.h> |
| 5586 | _ACEOF |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 5587 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 5588 | case "(($ac_try" in |
| 5589 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5590 | *) ac_try_echo=$ac_try;; |
| 5591 | esac |
| 5592 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5593 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Benny Prijono | 1d481ab | 2008-01-24 15:27:30 +0000 | [diff] [blame] | 5594 | ac_status=$? |
| 5595 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5596 | rm -f conftest.er1 |
| 5597 | cat conftest.err >&5 |
| 5598 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 5599 | (exit $ac_status); } >/dev/null && { |
| 5600 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 5601 | test ! -s conftest.err |
| 5602 | }; then |
Benny Prijono | 1d481ab | 2008-01-24 15:27:30 +0000 | [diff] [blame] | 5603 | ac_header_preproc=yes |
| 5604 | else |
| 5605 | echo "$as_me: failed program was:" >&5 |
| 5606 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5607 | |
| 5608 | ac_header_preproc=no |
| 5609 | fi |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 5610 | |
Benny Prijono | 1d481ab | 2008-01-24 15:27:30 +0000 | [diff] [blame] | 5611 | rm -f conftest.err conftest.$ac_ext |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 5612 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 5613 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Benny Prijono | 1d481ab | 2008-01-24 15:27:30 +0000 | [diff] [blame] | 5614 | |
| 5615 | # So? What about this header? |
| 5616 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 5617 | yes:no: ) |
| 5618 | { echo "$as_me:$LINENO: WARNING: fcntl.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 5619 | echo "$as_me: WARNING: fcntl.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 5620 | { echo "$as_me:$LINENO: WARNING: fcntl.h: proceeding with the compiler's result" >&5 |
| 5621 | echo "$as_me: WARNING: fcntl.h: proceeding with the compiler's result" >&2;} |
| 5622 | ac_header_preproc=yes |
| 5623 | ;; |
| 5624 | no:yes:* ) |
| 5625 | { echo "$as_me:$LINENO: WARNING: fcntl.h: present but cannot be compiled" >&5 |
| 5626 | echo "$as_me: WARNING: fcntl.h: present but cannot be compiled" >&2;} |
| 5627 | { echo "$as_me:$LINENO: WARNING: fcntl.h: check for missing prerequisite headers?" >&5 |
| 5628 | echo "$as_me: WARNING: fcntl.h: check for missing prerequisite headers?" >&2;} |
| 5629 | { echo "$as_me:$LINENO: WARNING: fcntl.h: see the Autoconf documentation" >&5 |
| 5630 | echo "$as_me: WARNING: fcntl.h: see the Autoconf documentation" >&2;} |
| 5631 | { echo "$as_me:$LINENO: WARNING: fcntl.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 5632 | echo "$as_me: WARNING: fcntl.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 5633 | { echo "$as_me:$LINENO: WARNING: fcntl.h: proceeding with the preprocessor's result" >&5 |
| 5634 | echo "$as_me: WARNING: fcntl.h: proceeding with the preprocessor's result" >&2;} |
| 5635 | { echo "$as_me:$LINENO: WARNING: fcntl.h: in the future, the compiler will take precedence" >&5 |
| 5636 | echo "$as_me: WARNING: fcntl.h: in the future, the compiler will take precedence" >&2;} |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 5637 | |
Benny Prijono | 1d481ab | 2008-01-24 15:27:30 +0000 | [diff] [blame] | 5638 | ;; |
| 5639 | esac |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 5640 | { echo "$as_me:$LINENO: checking for fcntl.h" >&5 |
| 5641 | echo $ECHO_N "checking for fcntl.h... $ECHO_C" >&6; } |
Benny Prijono | 1d481ab | 2008-01-24 15:27:30 +0000 | [diff] [blame] | 5642 | if test "${ac_cv_header_fcntl_h+set}" = set; then |
| 5643 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5644 | else |
| 5645 | ac_cv_header_fcntl_h=$ac_header_preproc |
| 5646 | fi |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 5647 | { echo "$as_me:$LINENO: result: $ac_cv_header_fcntl_h" >&5 |
| 5648 | echo "${ECHO_T}$ac_cv_header_fcntl_h" >&6; } |
Benny Prijono | 1d481ab | 2008-01-24 15:27:30 +0000 | [diff] [blame] | 5649 | |
| 5650 | fi |
| 5651 | if test $ac_cv_header_fcntl_h = yes; then |
| 5652 | cat >>confdefs.h <<\_ACEOF |
| 5653 | #define PJ_HAS_FCNTL_H 1 |
| 5654 | _ACEOF |
| 5655 | |
| 5656 | fi |
| 5657 | |
| 5658 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5659 | if test "${ac_cv_header_linux_socket_h+set}" = set; then |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 5660 | { echo "$as_me:$LINENO: checking for linux/socket.h" >&5 |
| 5661 | echo $ECHO_N "checking for linux/socket.h... $ECHO_C" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5662 | if test "${ac_cv_header_linux_socket_h+set}" = set; then |
| 5663 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5664 | fi |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 5665 | { echo "$as_me:$LINENO: result: $ac_cv_header_linux_socket_h" >&5 |
| 5666 | echo "${ECHO_T}$ac_cv_header_linux_socket_h" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5667 | else |
| 5668 | # Is the header compilable? |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 5669 | { echo "$as_me:$LINENO: checking linux/socket.h usability" >&5 |
| 5670 | echo $ECHO_N "checking linux/socket.h usability... $ECHO_C" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5671 | cat >conftest.$ac_ext <<_ACEOF |
| 5672 | /* confdefs.h. */ |
| 5673 | _ACEOF |
| 5674 | cat confdefs.h >>conftest.$ac_ext |
| 5675 | cat >>conftest.$ac_ext <<_ACEOF |
| 5676 | /* end confdefs.h. */ |
| 5677 | $ac_includes_default |
| 5678 | #include <linux/socket.h> |
| 5679 | _ACEOF |
| 5680 | rm -f conftest.$ac_objext |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 5681 | if { (ac_try="$ac_compile" |
| 5682 | case "(($ac_try" in |
| 5683 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5684 | *) ac_try_echo=$ac_try;; |
| 5685 | esac |
| 5686 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5687 | (eval "$ac_compile") 2>conftest.er1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5688 | ac_status=$? |
| 5689 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5690 | rm -f conftest.er1 |
| 5691 | cat conftest.err >&5 |
| 5692 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 5693 | (exit $ac_status); } && { |
| 5694 | test -z "$ac_c_werror_flag" || |
| 5695 | test ! -s conftest.err |
| 5696 | } && test -s conftest.$ac_objext; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5697 | ac_header_compiler=yes |
| 5698 | else |
| 5699 | echo "$as_me: failed program was:" >&5 |
| 5700 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5701 | |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 5702 | ac_header_compiler=no |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5703 | fi |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 5704 | |
| 5705 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5706 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 5707 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5708 | |
| 5709 | # Is the header present? |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 5710 | { echo "$as_me:$LINENO: checking linux/socket.h presence" >&5 |
| 5711 | echo $ECHO_N "checking linux/socket.h presence... $ECHO_C" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5712 | cat >conftest.$ac_ext <<_ACEOF |
| 5713 | /* confdefs.h. */ |
| 5714 | _ACEOF |
| 5715 | cat confdefs.h >>conftest.$ac_ext |
| 5716 | cat >>conftest.$ac_ext <<_ACEOF |
| 5717 | /* end confdefs.h. */ |
| 5718 | #include <linux/socket.h> |
| 5719 | _ACEOF |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 5720 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 5721 | case "(($ac_try" in |
| 5722 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5723 | *) ac_try_echo=$ac_try;; |
| 5724 | esac |
| 5725 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5726 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5727 | ac_status=$? |
| 5728 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5729 | rm -f conftest.er1 |
| 5730 | cat conftest.err >&5 |
| 5731 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 5732 | (exit $ac_status); } >/dev/null && { |
| 5733 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 5734 | test ! -s conftest.err |
| 5735 | }; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5736 | ac_header_preproc=yes |
| 5737 | else |
| 5738 | echo "$as_me: failed program was:" >&5 |
| 5739 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5740 | |
| 5741 | ac_header_preproc=no |
| 5742 | fi |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 5743 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5744 | rm -f conftest.err conftest.$ac_ext |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 5745 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 5746 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5747 | |
| 5748 | # So? What about this header? |
| 5749 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 5750 | yes:no: ) |
| 5751 | { echo "$as_me:$LINENO: WARNING: linux/socket.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 5752 | echo "$as_me: WARNING: linux/socket.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 5753 | { echo "$as_me:$LINENO: WARNING: linux/socket.h: proceeding with the compiler's result" >&5 |
| 5754 | echo "$as_me: WARNING: linux/socket.h: proceeding with the compiler's result" >&2;} |
| 5755 | ac_header_preproc=yes |
| 5756 | ;; |
| 5757 | no:yes:* ) |
| 5758 | { echo "$as_me:$LINENO: WARNING: linux/socket.h: present but cannot be compiled" >&5 |
| 5759 | echo "$as_me: WARNING: linux/socket.h: present but cannot be compiled" >&2;} |
| 5760 | { echo "$as_me:$LINENO: WARNING: linux/socket.h: check for missing prerequisite headers?" >&5 |
| 5761 | echo "$as_me: WARNING: linux/socket.h: check for missing prerequisite headers?" >&2;} |
| 5762 | { echo "$as_me:$LINENO: WARNING: linux/socket.h: see the Autoconf documentation" >&5 |
| 5763 | echo "$as_me: WARNING: linux/socket.h: see the Autoconf documentation" >&2;} |
| 5764 | { echo "$as_me:$LINENO: WARNING: linux/socket.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 5765 | echo "$as_me: WARNING: linux/socket.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 5766 | { echo "$as_me:$LINENO: WARNING: linux/socket.h: proceeding with the preprocessor's result" >&5 |
| 5767 | echo "$as_me: WARNING: linux/socket.h: proceeding with the preprocessor's result" >&2;} |
| 5768 | { echo "$as_me:$LINENO: WARNING: linux/socket.h: in the future, the compiler will take precedence" >&5 |
| 5769 | echo "$as_me: WARNING: linux/socket.h: in the future, the compiler will take precedence" >&2;} |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 5770 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5771 | ;; |
| 5772 | esac |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 5773 | { echo "$as_me:$LINENO: checking for linux/socket.h" >&5 |
| 5774 | echo $ECHO_N "checking for linux/socket.h... $ECHO_C" >&6; } |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 5775 | if test "${ac_cv_header_linux_socket_h+set}" = set; then |
| 5776 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 5777 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5778 | ac_cv_header_linux_socket_h=$ac_header_preproc |
| 5779 | fi |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 5780 | { echo "$as_me:$LINENO: result: $ac_cv_header_linux_socket_h" >&5 |
| 5781 | echo "${ECHO_T}$ac_cv_header_linux_socket_h" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5782 | |
| 5783 | fi |
| 5784 | if test $ac_cv_header_linux_socket_h = yes; then |
| 5785 | cat >>confdefs.h <<\_ACEOF |
| 5786 | #define PJ_HAS_LINUX_SOCKET_H 1 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 5787 | _ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5788 | |
| 5789 | fi |
| 5790 | |
| 5791 | |
| 5792 | if test "${ac_cv_header_malloc_h+set}" = set; then |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 5793 | { echo "$as_me:$LINENO: checking for malloc.h" >&5 |
| 5794 | echo $ECHO_N "checking for malloc.h... $ECHO_C" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5795 | if test "${ac_cv_header_malloc_h+set}" = set; then |
| 5796 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5797 | fi |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 5798 | { echo "$as_me:$LINENO: result: $ac_cv_header_malloc_h" >&5 |
| 5799 | echo "${ECHO_T}$ac_cv_header_malloc_h" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5800 | else |
| 5801 | # Is the header compilable? |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 5802 | { echo "$as_me:$LINENO: checking malloc.h usability" >&5 |
| 5803 | echo $ECHO_N "checking malloc.h usability... $ECHO_C" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5804 | cat >conftest.$ac_ext <<_ACEOF |
| 5805 | /* confdefs.h. */ |
| 5806 | _ACEOF |
| 5807 | cat confdefs.h >>conftest.$ac_ext |
| 5808 | cat >>conftest.$ac_ext <<_ACEOF |
| 5809 | /* end confdefs.h. */ |
| 5810 | $ac_includes_default |
| 5811 | #include <malloc.h> |
| 5812 | _ACEOF |
| 5813 | rm -f conftest.$ac_objext |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 5814 | if { (ac_try="$ac_compile" |
| 5815 | case "(($ac_try" in |
| 5816 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5817 | *) ac_try_echo=$ac_try;; |
| 5818 | esac |
| 5819 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5820 | (eval "$ac_compile") 2>conftest.er1 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 5821 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5822 | grep -v '^ *+' conftest.er1 >conftest.err |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 5823 | rm -f conftest.er1 |
| 5824 | cat conftest.err >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5825 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 5826 | (exit $ac_status); } && { |
| 5827 | test -z "$ac_c_werror_flag" || |
| 5828 | test ! -s conftest.err |
| 5829 | } && test -s conftest.$ac_objext; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5830 | ac_header_compiler=yes |
| 5831 | else |
| 5832 | echo "$as_me: failed program was:" >&5 |
| 5833 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5834 | |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 5835 | ac_header_compiler=no |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5836 | fi |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 5837 | |
| 5838 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5839 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 5840 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5841 | |
| 5842 | # Is the header present? |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 5843 | { echo "$as_me:$LINENO: checking malloc.h presence" >&5 |
| 5844 | echo $ECHO_N "checking malloc.h presence... $ECHO_C" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5845 | cat >conftest.$ac_ext <<_ACEOF |
| 5846 | /* confdefs.h. */ |
| 5847 | _ACEOF |
| 5848 | cat confdefs.h >>conftest.$ac_ext |
| 5849 | cat >>conftest.$ac_ext <<_ACEOF |
| 5850 | /* end confdefs.h. */ |
| 5851 | #include <malloc.h> |
| 5852 | _ACEOF |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 5853 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 5854 | case "(($ac_try" in |
| 5855 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5856 | *) ac_try_echo=$ac_try;; |
| 5857 | esac |
| 5858 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5859 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5860 | ac_status=$? |
| 5861 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5862 | rm -f conftest.er1 |
| 5863 | cat conftest.err >&5 |
| 5864 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 5865 | (exit $ac_status); } >/dev/null && { |
| 5866 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 5867 | test ! -s conftest.err |
| 5868 | }; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5869 | ac_header_preproc=yes |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 5870 | else |
| 5871 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5872 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5873 | |
| 5874 | ac_header_preproc=no |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 5875 | fi |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 5876 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 5877 | rm -f conftest.err conftest.$ac_ext |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 5878 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 5879 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 5880 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5881 | # So? What about this header? |
| 5882 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 5883 | yes:no: ) |
| 5884 | { echo "$as_me:$LINENO: WARNING: malloc.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 5885 | echo "$as_me: WARNING: malloc.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 5886 | { echo "$as_me:$LINENO: WARNING: malloc.h: proceeding with the compiler's result" >&5 |
| 5887 | echo "$as_me: WARNING: malloc.h: proceeding with the compiler's result" >&2;} |
| 5888 | ac_header_preproc=yes |
| 5889 | ;; |
| 5890 | no:yes:* ) |
| 5891 | { echo "$as_me:$LINENO: WARNING: malloc.h: present but cannot be compiled" >&5 |
| 5892 | echo "$as_me: WARNING: malloc.h: present but cannot be compiled" >&2;} |
| 5893 | { echo "$as_me:$LINENO: WARNING: malloc.h: check for missing prerequisite headers?" >&5 |
| 5894 | echo "$as_me: WARNING: malloc.h: check for missing prerequisite headers?" >&2;} |
| 5895 | { echo "$as_me:$LINENO: WARNING: malloc.h: see the Autoconf documentation" >&5 |
| 5896 | echo "$as_me: WARNING: malloc.h: see the Autoconf documentation" >&2;} |
| 5897 | { echo "$as_me:$LINENO: WARNING: malloc.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 5898 | echo "$as_me: WARNING: malloc.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 5899 | { echo "$as_me:$LINENO: WARNING: malloc.h: proceeding with the preprocessor's result" >&5 |
| 5900 | echo "$as_me: WARNING: malloc.h: proceeding with the preprocessor's result" >&2;} |
| 5901 | { echo "$as_me:$LINENO: WARNING: malloc.h: in the future, the compiler will take precedence" >&5 |
| 5902 | echo "$as_me: WARNING: malloc.h: in the future, the compiler will take precedence" >&2;} |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 5903 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5904 | ;; |
| 5905 | esac |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 5906 | { echo "$as_me:$LINENO: checking for malloc.h" >&5 |
| 5907 | echo $ECHO_N "checking for malloc.h... $ECHO_C" >&6; } |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 5908 | if test "${ac_cv_header_malloc_h+set}" = set; then |
| 5909 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 5910 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5911 | ac_cv_header_malloc_h=$ac_header_preproc |
| 5912 | fi |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 5913 | { echo "$as_me:$LINENO: result: $ac_cv_header_malloc_h" >&5 |
| 5914 | echo "${ECHO_T}$ac_cv_header_malloc_h" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5915 | |
| 5916 | fi |
| 5917 | if test $ac_cv_header_malloc_h = yes; then |
| 5918 | cat >>confdefs.h <<\_ACEOF |
| 5919 | #define PJ_HAS_MALLOC_H 1 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 5920 | _ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5921 | |
| 5922 | fi |
| 5923 | |
| 5924 | |
| 5925 | if test "${ac_cv_header_netdb_h+set}" = set; then |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 5926 | { echo "$as_me:$LINENO: checking for netdb.h" >&5 |
| 5927 | echo $ECHO_N "checking for netdb.h... $ECHO_C" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5928 | if test "${ac_cv_header_netdb_h+set}" = set; then |
| 5929 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5930 | fi |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 5931 | { echo "$as_me:$LINENO: result: $ac_cv_header_netdb_h" >&5 |
| 5932 | echo "${ECHO_T}$ac_cv_header_netdb_h" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5933 | else |
| 5934 | # Is the header compilable? |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 5935 | { echo "$as_me:$LINENO: checking netdb.h usability" >&5 |
| 5936 | echo $ECHO_N "checking netdb.h usability... $ECHO_C" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5937 | cat >conftest.$ac_ext <<_ACEOF |
| 5938 | /* confdefs.h. */ |
| 5939 | _ACEOF |
| 5940 | cat confdefs.h >>conftest.$ac_ext |
| 5941 | cat >>conftest.$ac_ext <<_ACEOF |
| 5942 | /* end confdefs.h. */ |
| 5943 | $ac_includes_default |
| 5944 | #include <netdb.h> |
| 5945 | _ACEOF |
| 5946 | rm -f conftest.$ac_objext |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 5947 | if { (ac_try="$ac_compile" |
| 5948 | case "(($ac_try" in |
| 5949 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5950 | *) ac_try_echo=$ac_try;; |
| 5951 | esac |
| 5952 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5953 | (eval "$ac_compile") 2>conftest.er1 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 5954 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5955 | grep -v '^ *+' conftest.er1 >conftest.err |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 5956 | rm -f conftest.er1 |
| 5957 | cat conftest.err >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5958 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 5959 | (exit $ac_status); } && { |
| 5960 | test -z "$ac_c_werror_flag" || |
| 5961 | test ! -s conftest.err |
| 5962 | } && test -s conftest.$ac_objext; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5963 | ac_header_compiler=yes |
| 5964 | else |
| 5965 | echo "$as_me: failed program was:" >&5 |
| 5966 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5967 | |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 5968 | ac_header_compiler=no |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5969 | fi |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 5970 | |
| 5971 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5972 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 5973 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5974 | |
| 5975 | # Is the header present? |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 5976 | { echo "$as_me:$LINENO: checking netdb.h presence" >&5 |
| 5977 | echo $ECHO_N "checking netdb.h presence... $ECHO_C" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5978 | cat >conftest.$ac_ext <<_ACEOF |
| 5979 | /* confdefs.h. */ |
| 5980 | _ACEOF |
| 5981 | cat confdefs.h >>conftest.$ac_ext |
| 5982 | cat >>conftest.$ac_ext <<_ACEOF |
| 5983 | /* end confdefs.h. */ |
| 5984 | #include <netdb.h> |
| 5985 | _ACEOF |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 5986 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 5987 | case "(($ac_try" in |
| 5988 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5989 | *) ac_try_echo=$ac_try;; |
| 5990 | esac |
| 5991 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5992 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5993 | ac_status=$? |
| 5994 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5995 | rm -f conftest.er1 |
| 5996 | cat conftest.err >&5 |
| 5997 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 5998 | (exit $ac_status); } >/dev/null && { |
| 5999 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 6000 | test ! -s conftest.err |
| 6001 | }; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6002 | ac_header_preproc=yes |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6003 | else |
| 6004 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6005 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6006 | |
| 6007 | ac_header_preproc=no |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6008 | fi |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 6009 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6010 | rm -f conftest.err conftest.$ac_ext |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 6011 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 6012 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 6013 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6014 | # So? What about this header? |
| 6015 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 6016 | yes:no: ) |
| 6017 | { echo "$as_me:$LINENO: WARNING: netdb.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 6018 | echo "$as_me: WARNING: netdb.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 6019 | { echo "$as_me:$LINENO: WARNING: netdb.h: proceeding with the compiler's result" >&5 |
| 6020 | echo "$as_me: WARNING: netdb.h: proceeding with the compiler's result" >&2;} |
| 6021 | ac_header_preproc=yes |
| 6022 | ;; |
| 6023 | no:yes:* ) |
| 6024 | { echo "$as_me:$LINENO: WARNING: netdb.h: present but cannot be compiled" >&5 |
| 6025 | echo "$as_me: WARNING: netdb.h: present but cannot be compiled" >&2;} |
| 6026 | { echo "$as_me:$LINENO: WARNING: netdb.h: check for missing prerequisite headers?" >&5 |
| 6027 | echo "$as_me: WARNING: netdb.h: check for missing prerequisite headers?" >&2;} |
| 6028 | { echo "$as_me:$LINENO: WARNING: netdb.h: see the Autoconf documentation" >&5 |
| 6029 | echo "$as_me: WARNING: netdb.h: see the Autoconf documentation" >&2;} |
| 6030 | { echo "$as_me:$LINENO: WARNING: netdb.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 6031 | echo "$as_me: WARNING: netdb.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 6032 | { echo "$as_me:$LINENO: WARNING: netdb.h: proceeding with the preprocessor's result" >&5 |
| 6033 | echo "$as_me: WARNING: netdb.h: proceeding with the preprocessor's result" >&2;} |
| 6034 | { echo "$as_me:$LINENO: WARNING: netdb.h: in the future, the compiler will take precedence" >&5 |
| 6035 | echo "$as_me: WARNING: netdb.h: in the future, the compiler will take precedence" >&2;} |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 6036 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6037 | ;; |
| 6038 | esac |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 6039 | { echo "$as_me:$LINENO: checking for netdb.h" >&5 |
| 6040 | echo $ECHO_N "checking for netdb.h... $ECHO_C" >&6; } |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 6041 | if test "${ac_cv_header_netdb_h+set}" = set; then |
| 6042 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 6043 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6044 | ac_cv_header_netdb_h=$ac_header_preproc |
| 6045 | fi |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 6046 | { echo "$as_me:$LINENO: result: $ac_cv_header_netdb_h" >&5 |
| 6047 | echo "${ECHO_T}$ac_cv_header_netdb_h" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6048 | |
| 6049 | fi |
| 6050 | if test $ac_cv_header_netdb_h = yes; then |
| 6051 | cat >>confdefs.h <<\_ACEOF |
| 6052 | #define PJ_HAS_NETDB_H 1 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 6053 | _ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6054 | |
| 6055 | fi |
| 6056 | |
| 6057 | |
Benny Prijono | 37fc9de | 2008-08-04 14:45:02 +0000 | [diff] [blame] | 6058 | if test "${ac_cv_header_netinet_in_systm_h+set}" = set; then |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 6059 | { echo "$as_me:$LINENO: checking for netinet/in_systm.h" >&5 |
| 6060 | echo $ECHO_N "checking for netinet/in_systm.h... $ECHO_C" >&6; } |
Benny Prijono | 37fc9de | 2008-08-04 14:45:02 +0000 | [diff] [blame] | 6061 | if test "${ac_cv_header_netinet_in_systm_h+set}" = set; then |
| 6062 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6063 | fi |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 6064 | { echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_systm_h" >&5 |
| 6065 | echo "${ECHO_T}$ac_cv_header_netinet_in_systm_h" >&6; } |
Benny Prijono | 37fc9de | 2008-08-04 14:45:02 +0000 | [diff] [blame] | 6066 | else |
| 6067 | # Is the header compilable? |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 6068 | { echo "$as_me:$LINENO: checking netinet/in_systm.h usability" >&5 |
| 6069 | echo $ECHO_N "checking netinet/in_systm.h usability... $ECHO_C" >&6; } |
Benny Prijono | 37fc9de | 2008-08-04 14:45:02 +0000 | [diff] [blame] | 6070 | cat >conftest.$ac_ext <<_ACEOF |
| 6071 | /* confdefs.h. */ |
| 6072 | _ACEOF |
| 6073 | cat confdefs.h >>conftest.$ac_ext |
| 6074 | cat >>conftest.$ac_ext <<_ACEOF |
| 6075 | /* end confdefs.h. */ |
| 6076 | $ac_includes_default |
| 6077 | #include <netinet/in_systm.h> |
| 6078 | _ACEOF |
| 6079 | rm -f conftest.$ac_objext |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 6080 | if { (ac_try="$ac_compile" |
| 6081 | case "(($ac_try" in |
| 6082 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6083 | *) ac_try_echo=$ac_try;; |
| 6084 | esac |
| 6085 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6086 | (eval "$ac_compile") 2>conftest.er1 |
Benny Prijono | 37fc9de | 2008-08-04 14:45:02 +0000 | [diff] [blame] | 6087 | ac_status=$? |
| 6088 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6089 | rm -f conftest.er1 |
| 6090 | cat conftest.err >&5 |
| 6091 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 6092 | (exit $ac_status); } && { |
| 6093 | test -z "$ac_c_werror_flag" || |
| 6094 | test ! -s conftest.err |
| 6095 | } && test -s conftest.$ac_objext; then |
Benny Prijono | 37fc9de | 2008-08-04 14:45:02 +0000 | [diff] [blame] | 6096 | ac_header_compiler=yes |
| 6097 | else |
| 6098 | echo "$as_me: failed program was:" >&5 |
| 6099 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6100 | |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 6101 | ac_header_compiler=no |
Benny Prijono | 37fc9de | 2008-08-04 14:45:02 +0000 | [diff] [blame] | 6102 | fi |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 6103 | |
| 6104 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6105 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 6106 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Benny Prijono | 37fc9de | 2008-08-04 14:45:02 +0000 | [diff] [blame] | 6107 | |
| 6108 | # Is the header present? |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 6109 | { echo "$as_me:$LINENO: checking netinet/in_systm.h presence" >&5 |
| 6110 | echo $ECHO_N "checking netinet/in_systm.h presence... $ECHO_C" >&6; } |
Benny Prijono | 37fc9de | 2008-08-04 14:45:02 +0000 | [diff] [blame] | 6111 | cat >conftest.$ac_ext <<_ACEOF |
| 6112 | /* confdefs.h. */ |
| 6113 | _ACEOF |
| 6114 | cat confdefs.h >>conftest.$ac_ext |
| 6115 | cat >>conftest.$ac_ext <<_ACEOF |
| 6116 | /* end confdefs.h. */ |
| 6117 | #include <netinet/in_systm.h> |
| 6118 | _ACEOF |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 6119 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 6120 | case "(($ac_try" in |
| 6121 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6122 | *) ac_try_echo=$ac_try;; |
| 6123 | esac |
| 6124 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6125 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Benny Prijono | 37fc9de | 2008-08-04 14:45:02 +0000 | [diff] [blame] | 6126 | ac_status=$? |
| 6127 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6128 | rm -f conftest.er1 |
| 6129 | cat conftest.err >&5 |
| 6130 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 6131 | (exit $ac_status); } >/dev/null && { |
| 6132 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 6133 | test ! -s conftest.err |
| 6134 | }; then |
Benny Prijono | 37fc9de | 2008-08-04 14:45:02 +0000 | [diff] [blame] | 6135 | ac_header_preproc=yes |
| 6136 | else |
| 6137 | echo "$as_me: failed program was:" >&5 |
| 6138 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6139 | |
| 6140 | ac_header_preproc=no |
| 6141 | fi |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 6142 | |
Benny Prijono | 37fc9de | 2008-08-04 14:45:02 +0000 | [diff] [blame] | 6143 | rm -f conftest.err conftest.$ac_ext |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 6144 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 6145 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Benny Prijono | 37fc9de | 2008-08-04 14:45:02 +0000 | [diff] [blame] | 6146 | |
| 6147 | # So? What about this header? |
| 6148 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 6149 | yes:no: ) |
| 6150 | { echo "$as_me:$LINENO: WARNING: netinet/in_systm.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 6151 | echo "$as_me: WARNING: netinet/in_systm.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 6152 | { echo "$as_me:$LINENO: WARNING: netinet/in_systm.h: proceeding with the compiler's result" >&5 |
| 6153 | echo "$as_me: WARNING: netinet/in_systm.h: proceeding with the compiler's result" >&2;} |
| 6154 | ac_header_preproc=yes |
| 6155 | ;; |
| 6156 | no:yes:* ) |
| 6157 | { echo "$as_me:$LINENO: WARNING: netinet/in_systm.h: present but cannot be compiled" >&5 |
| 6158 | echo "$as_me: WARNING: netinet/in_systm.h: present but cannot be compiled" >&2;} |
| 6159 | { echo "$as_me:$LINENO: WARNING: netinet/in_systm.h: check for missing prerequisite headers?" >&5 |
| 6160 | echo "$as_me: WARNING: netinet/in_systm.h: check for missing prerequisite headers?" >&2;} |
| 6161 | { echo "$as_me:$LINENO: WARNING: netinet/in_systm.h: see the Autoconf documentation" >&5 |
| 6162 | echo "$as_me: WARNING: netinet/in_systm.h: see the Autoconf documentation" >&2;} |
| 6163 | { echo "$as_me:$LINENO: WARNING: netinet/in_systm.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 6164 | echo "$as_me: WARNING: netinet/in_systm.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 6165 | { echo "$as_me:$LINENO: WARNING: netinet/in_systm.h: proceeding with the preprocessor's result" >&5 |
| 6166 | echo "$as_me: WARNING: netinet/in_systm.h: proceeding with the preprocessor's result" >&2;} |
| 6167 | { echo "$as_me:$LINENO: WARNING: netinet/in_systm.h: in the future, the compiler will take precedence" >&5 |
| 6168 | echo "$as_me: WARNING: netinet/in_systm.h: in the future, the compiler will take precedence" >&2;} |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 6169 | |
Benny Prijono | 37fc9de | 2008-08-04 14:45:02 +0000 | [diff] [blame] | 6170 | ;; |
| 6171 | esac |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 6172 | { echo "$as_me:$LINENO: checking for netinet/in_systm.h" >&5 |
| 6173 | echo $ECHO_N "checking for netinet/in_systm.h... $ECHO_C" >&6; } |
Benny Prijono | 37fc9de | 2008-08-04 14:45:02 +0000 | [diff] [blame] | 6174 | if test "${ac_cv_header_netinet_in_systm_h+set}" = set; then |
| 6175 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6176 | else |
| 6177 | ac_cv_header_netinet_in_systm_h=$ac_header_preproc |
| 6178 | fi |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 6179 | { echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_systm_h" >&5 |
| 6180 | echo "${ECHO_T}$ac_cv_header_netinet_in_systm_h" >&6; } |
Benny Prijono | 37fc9de | 2008-08-04 14:45:02 +0000 | [diff] [blame] | 6181 | |
| 6182 | fi |
| 6183 | if test $ac_cv_header_netinet_in_systm_h = yes; then |
| 6184 | cat >>confdefs.h <<\_ACEOF |
| 6185 | #define PJ_HAS_NETINET_IN_SYSTM_H 1 |
| 6186 | _ACEOF |
| 6187 | |
| 6188 | fi |
| 6189 | |
| 6190 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6191 | if test "${ac_cv_header_netinet_in_h+set}" = set; then |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 6192 | { echo "$as_me:$LINENO: checking for netinet/in.h" >&5 |
| 6193 | echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6194 | if test "${ac_cv_header_netinet_in_h+set}" = set; then |
| 6195 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6196 | fi |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 6197 | { echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5 |
| 6198 | echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6199 | else |
| 6200 | # Is the header compilable? |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 6201 | { echo "$as_me:$LINENO: checking netinet/in.h usability" >&5 |
| 6202 | echo $ECHO_N "checking netinet/in.h usability... $ECHO_C" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6203 | cat >conftest.$ac_ext <<_ACEOF |
| 6204 | /* confdefs.h. */ |
| 6205 | _ACEOF |
| 6206 | cat confdefs.h >>conftest.$ac_ext |
| 6207 | cat >>conftest.$ac_ext <<_ACEOF |
| 6208 | /* end confdefs.h. */ |
| 6209 | $ac_includes_default |
| 6210 | #include <netinet/in.h> |
| 6211 | _ACEOF |
| 6212 | rm -f conftest.$ac_objext |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 6213 | if { (ac_try="$ac_compile" |
| 6214 | case "(($ac_try" in |
| 6215 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6216 | *) ac_try_echo=$ac_try;; |
| 6217 | esac |
| 6218 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6219 | (eval "$ac_compile") 2>conftest.er1 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6220 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6221 | grep -v '^ *+' conftest.er1 >conftest.err |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6222 | rm -f conftest.er1 |
| 6223 | cat conftest.err >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6224 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 6225 | (exit $ac_status); } && { |
| 6226 | test -z "$ac_c_werror_flag" || |
| 6227 | test ! -s conftest.err |
| 6228 | } && test -s conftest.$ac_objext; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6229 | ac_header_compiler=yes |
| 6230 | else |
| 6231 | echo "$as_me: failed program was:" >&5 |
| 6232 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6233 | |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 6234 | ac_header_compiler=no |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6235 | fi |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 6236 | |
| 6237 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6238 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 6239 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6240 | |
| 6241 | # Is the header present? |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 6242 | { echo "$as_me:$LINENO: checking netinet/in.h presence" >&5 |
| 6243 | echo $ECHO_N "checking netinet/in.h presence... $ECHO_C" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6244 | cat >conftest.$ac_ext <<_ACEOF |
| 6245 | /* confdefs.h. */ |
| 6246 | _ACEOF |
| 6247 | cat confdefs.h >>conftest.$ac_ext |
| 6248 | cat >>conftest.$ac_ext <<_ACEOF |
| 6249 | /* end confdefs.h. */ |
| 6250 | #include <netinet/in.h> |
| 6251 | _ACEOF |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 6252 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 6253 | case "(($ac_try" in |
| 6254 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6255 | *) ac_try_echo=$ac_try;; |
| 6256 | esac |
| 6257 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6258 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6259 | ac_status=$? |
| 6260 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6261 | rm -f conftest.er1 |
| 6262 | cat conftest.err >&5 |
| 6263 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 6264 | (exit $ac_status); } >/dev/null && { |
| 6265 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 6266 | test ! -s conftest.err |
| 6267 | }; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6268 | ac_header_preproc=yes |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6269 | else |
| 6270 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6271 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6272 | |
| 6273 | ac_header_preproc=no |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6274 | fi |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 6275 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6276 | rm -f conftest.err conftest.$ac_ext |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 6277 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 6278 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 6279 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6280 | # So? What about this header? |
| 6281 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 6282 | yes:no: ) |
| 6283 | { echo "$as_me:$LINENO: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 6284 | echo "$as_me: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 6285 | { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the compiler's result" >&5 |
| 6286 | echo "$as_me: WARNING: netinet/in.h: proceeding with the compiler's result" >&2;} |
| 6287 | ac_header_preproc=yes |
| 6288 | ;; |
| 6289 | no:yes:* ) |
| 6290 | { echo "$as_me:$LINENO: WARNING: netinet/in.h: present but cannot be compiled" >&5 |
| 6291 | echo "$as_me: WARNING: netinet/in.h: present but cannot be compiled" >&2;} |
| 6292 | { echo "$as_me:$LINENO: WARNING: netinet/in.h: check for missing prerequisite headers?" >&5 |
| 6293 | echo "$as_me: WARNING: netinet/in.h: check for missing prerequisite headers?" >&2;} |
| 6294 | { echo "$as_me:$LINENO: WARNING: netinet/in.h: see the Autoconf documentation" >&5 |
| 6295 | echo "$as_me: WARNING: netinet/in.h: see the Autoconf documentation" >&2;} |
| 6296 | { echo "$as_me:$LINENO: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 6297 | echo "$as_me: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 6298 | { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&5 |
| 6299 | echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&2;} |
| 6300 | { echo "$as_me:$LINENO: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&5 |
| 6301 | echo "$as_me: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&2;} |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 6302 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6303 | ;; |
| 6304 | esac |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 6305 | { echo "$as_me:$LINENO: checking for netinet/in.h" >&5 |
| 6306 | echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6; } |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 6307 | if test "${ac_cv_header_netinet_in_h+set}" = set; then |
| 6308 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 6309 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6310 | ac_cv_header_netinet_in_h=$ac_header_preproc |
| 6311 | fi |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 6312 | { echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5 |
| 6313 | echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6314 | |
| 6315 | fi |
| 6316 | if test $ac_cv_header_netinet_in_h = yes; then |
| 6317 | cat >>confdefs.h <<\_ACEOF |
| 6318 | #define PJ_HAS_NETINET_IN_H 1 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 6319 | _ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6320 | |
| 6321 | fi |
| 6322 | |
| 6323 | |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 6324 | { echo "$as_me:$LINENO: checking for netinet/ip.h" >&5 |
| 6325 | echo $ECHO_N "checking for netinet/ip.h... $ECHO_C" >&6; } |
Benny Prijono | f63a255 | 2007-02-01 00:36:52 +0000 | [diff] [blame] | 6326 | if test "${ac_cv_header_netinet_ip_h+set}" = set; then |
| 6327 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Benny Prijono | f63a255 | 2007-02-01 00:36:52 +0000 | [diff] [blame] | 6328 | else |
Benny Prijono | 37fc9de | 2008-08-04 14:45:02 +0000 | [diff] [blame] | 6329 | cat >conftest.$ac_ext <<_ACEOF |
Benny Prijono | f63a255 | 2007-02-01 00:36:52 +0000 | [diff] [blame] | 6330 | /* confdefs.h. */ |
| 6331 | _ACEOF |
| 6332 | cat confdefs.h >>conftest.$ac_ext |
| 6333 | cat >>conftest.$ac_ext <<_ACEOF |
| 6334 | /* end confdefs.h. */ |
Benny Prijono | 37fc9de | 2008-08-04 14:45:02 +0000 | [diff] [blame] | 6335 | #if PJ_HAS_NETINET_IN_SYSTM_H |
| 6336 | # include <netinet/in_systm.h> |
| 6337 | #endif |
| 6338 | |
| 6339 | |
Benny Prijono | f63a255 | 2007-02-01 00:36:52 +0000 | [diff] [blame] | 6340 | #include <netinet/ip.h> |
| 6341 | _ACEOF |
| 6342 | rm -f conftest.$ac_objext |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 6343 | if { (ac_try="$ac_compile" |
| 6344 | case "(($ac_try" in |
| 6345 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6346 | *) ac_try_echo=$ac_try;; |
| 6347 | esac |
| 6348 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6349 | (eval "$ac_compile") 2>conftest.er1 |
Benny Prijono | f63a255 | 2007-02-01 00:36:52 +0000 | [diff] [blame] | 6350 | ac_status=$? |
| 6351 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6352 | rm -f conftest.er1 |
| 6353 | cat conftest.err >&5 |
| 6354 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 6355 | (exit $ac_status); } && { |
| 6356 | test -z "$ac_c_werror_flag" || |
| 6357 | test ! -s conftest.err |
| 6358 | } && test -s conftest.$ac_objext; then |
Benny Prijono | 37fc9de | 2008-08-04 14:45:02 +0000 | [diff] [blame] | 6359 | ac_cv_header_netinet_ip_h=yes |
Benny Prijono | f63a255 | 2007-02-01 00:36:52 +0000 | [diff] [blame] | 6360 | else |
| 6361 | echo "$as_me: failed program was:" >&5 |
| 6362 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6363 | |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 6364 | ac_cv_header_netinet_ip_h=no |
Benny Prijono | f63a255 | 2007-02-01 00:36:52 +0000 | [diff] [blame] | 6365 | fi |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 6366 | |
| 6367 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Benny Prijono | f63a255 | 2007-02-01 00:36:52 +0000 | [diff] [blame] | 6368 | fi |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 6369 | { echo "$as_me:$LINENO: result: $ac_cv_header_netinet_ip_h" >&5 |
| 6370 | echo "${ECHO_T}$ac_cv_header_netinet_ip_h" >&6; } |
Benny Prijono | f63a255 | 2007-02-01 00:36:52 +0000 | [diff] [blame] | 6371 | if test $ac_cv_header_netinet_ip_h = yes; then |
| 6372 | cat >>confdefs.h <<\_ACEOF |
| 6373 | #define PJ_HAS_NETINET_IP_H 1 |
| 6374 | _ACEOF |
| 6375 | |
| 6376 | fi |
| 6377 | |
| 6378 | |
Benny Prijono | 1d65f70 | 2007-12-03 04:03:17 +0000 | [diff] [blame] | 6379 | if test "${ac_cv_header_ifaddrs_h+set}" = set; then |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 6380 | { echo "$as_me:$LINENO: checking for ifaddrs.h" >&5 |
| 6381 | echo $ECHO_N "checking for ifaddrs.h... $ECHO_C" >&6; } |
Benny Prijono | 1d65f70 | 2007-12-03 04:03:17 +0000 | [diff] [blame] | 6382 | if test "${ac_cv_header_ifaddrs_h+set}" = set; then |
| 6383 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6384 | fi |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 6385 | { echo "$as_me:$LINENO: result: $ac_cv_header_ifaddrs_h" >&5 |
| 6386 | echo "${ECHO_T}$ac_cv_header_ifaddrs_h" >&6; } |
Benny Prijono | 1d65f70 | 2007-12-03 04:03:17 +0000 | [diff] [blame] | 6387 | else |
| 6388 | # Is the header compilable? |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 6389 | { echo "$as_me:$LINENO: checking ifaddrs.h usability" >&5 |
| 6390 | echo $ECHO_N "checking ifaddrs.h usability... $ECHO_C" >&6; } |
Benny Prijono | 1d65f70 | 2007-12-03 04:03:17 +0000 | [diff] [blame] | 6391 | cat >conftest.$ac_ext <<_ACEOF |
| 6392 | /* confdefs.h. */ |
| 6393 | _ACEOF |
| 6394 | cat confdefs.h >>conftest.$ac_ext |
| 6395 | cat >>conftest.$ac_ext <<_ACEOF |
| 6396 | /* end confdefs.h. */ |
| 6397 | $ac_includes_default |
| 6398 | #include <ifaddrs.h> |
| 6399 | _ACEOF |
| 6400 | rm -f conftest.$ac_objext |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 6401 | if { (ac_try="$ac_compile" |
| 6402 | case "(($ac_try" in |
| 6403 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6404 | *) ac_try_echo=$ac_try;; |
| 6405 | esac |
| 6406 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6407 | (eval "$ac_compile") 2>conftest.er1 |
Benny Prijono | 1d65f70 | 2007-12-03 04:03:17 +0000 | [diff] [blame] | 6408 | ac_status=$? |
| 6409 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6410 | rm -f conftest.er1 |
| 6411 | cat conftest.err >&5 |
| 6412 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 6413 | (exit $ac_status); } && { |
| 6414 | test -z "$ac_c_werror_flag" || |
| 6415 | test ! -s conftest.err |
| 6416 | } && test -s conftest.$ac_objext; then |
Benny Prijono | 1d65f70 | 2007-12-03 04:03:17 +0000 | [diff] [blame] | 6417 | ac_header_compiler=yes |
| 6418 | else |
| 6419 | echo "$as_me: failed program was:" >&5 |
| 6420 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6421 | |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 6422 | ac_header_compiler=no |
Benny Prijono | 1d65f70 | 2007-12-03 04:03:17 +0000 | [diff] [blame] | 6423 | fi |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 6424 | |
| 6425 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6426 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 6427 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Benny Prijono | 1d65f70 | 2007-12-03 04:03:17 +0000 | [diff] [blame] | 6428 | |
| 6429 | # Is the header present? |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 6430 | { echo "$as_me:$LINENO: checking ifaddrs.h presence" >&5 |
| 6431 | echo $ECHO_N "checking ifaddrs.h presence... $ECHO_C" >&6; } |
Benny Prijono | 1d65f70 | 2007-12-03 04:03:17 +0000 | [diff] [blame] | 6432 | cat >conftest.$ac_ext <<_ACEOF |
| 6433 | /* confdefs.h. */ |
| 6434 | _ACEOF |
| 6435 | cat confdefs.h >>conftest.$ac_ext |
| 6436 | cat >>conftest.$ac_ext <<_ACEOF |
| 6437 | /* end confdefs.h. */ |
| 6438 | #include <ifaddrs.h> |
| 6439 | _ACEOF |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 6440 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 6441 | case "(($ac_try" in |
| 6442 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6443 | *) ac_try_echo=$ac_try;; |
| 6444 | esac |
| 6445 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6446 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Benny Prijono | 1d65f70 | 2007-12-03 04:03:17 +0000 | [diff] [blame] | 6447 | ac_status=$? |
| 6448 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6449 | rm -f conftest.er1 |
| 6450 | cat conftest.err >&5 |
| 6451 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 6452 | (exit $ac_status); } >/dev/null && { |
| 6453 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 6454 | test ! -s conftest.err |
| 6455 | }; then |
Benny Prijono | 1d65f70 | 2007-12-03 04:03:17 +0000 | [diff] [blame] | 6456 | ac_header_preproc=yes |
| 6457 | else |
| 6458 | echo "$as_me: failed program was:" >&5 |
| 6459 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6460 | |
| 6461 | ac_header_preproc=no |
| 6462 | fi |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 6463 | |
Benny Prijono | 1d65f70 | 2007-12-03 04:03:17 +0000 | [diff] [blame] | 6464 | rm -f conftest.err conftest.$ac_ext |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 6465 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 6466 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Benny Prijono | 1d65f70 | 2007-12-03 04:03:17 +0000 | [diff] [blame] | 6467 | |
| 6468 | # So? What about this header? |
| 6469 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 6470 | yes:no: ) |
| 6471 | { echo "$as_me:$LINENO: WARNING: ifaddrs.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 6472 | echo "$as_me: WARNING: ifaddrs.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 6473 | { echo "$as_me:$LINENO: WARNING: ifaddrs.h: proceeding with the compiler's result" >&5 |
| 6474 | echo "$as_me: WARNING: ifaddrs.h: proceeding with the compiler's result" >&2;} |
| 6475 | ac_header_preproc=yes |
| 6476 | ;; |
| 6477 | no:yes:* ) |
| 6478 | { echo "$as_me:$LINENO: WARNING: ifaddrs.h: present but cannot be compiled" >&5 |
| 6479 | echo "$as_me: WARNING: ifaddrs.h: present but cannot be compiled" >&2;} |
| 6480 | { echo "$as_me:$LINENO: WARNING: ifaddrs.h: check for missing prerequisite headers?" >&5 |
| 6481 | echo "$as_me: WARNING: ifaddrs.h: check for missing prerequisite headers?" >&2;} |
| 6482 | { echo "$as_me:$LINENO: WARNING: ifaddrs.h: see the Autoconf documentation" >&5 |
| 6483 | echo "$as_me: WARNING: ifaddrs.h: see the Autoconf documentation" >&2;} |
| 6484 | { echo "$as_me:$LINENO: WARNING: ifaddrs.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 6485 | echo "$as_me: WARNING: ifaddrs.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 6486 | { echo "$as_me:$LINENO: WARNING: ifaddrs.h: proceeding with the preprocessor's result" >&5 |
| 6487 | echo "$as_me: WARNING: ifaddrs.h: proceeding with the preprocessor's result" >&2;} |
| 6488 | { echo "$as_me:$LINENO: WARNING: ifaddrs.h: in the future, the compiler will take precedence" >&5 |
| 6489 | echo "$as_me: WARNING: ifaddrs.h: in the future, the compiler will take precedence" >&2;} |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 6490 | |
Benny Prijono | 1d65f70 | 2007-12-03 04:03:17 +0000 | [diff] [blame] | 6491 | ;; |
| 6492 | esac |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 6493 | { echo "$as_me:$LINENO: checking for ifaddrs.h" >&5 |
| 6494 | echo $ECHO_N "checking for ifaddrs.h... $ECHO_C" >&6; } |
Benny Prijono | 1d65f70 | 2007-12-03 04:03:17 +0000 | [diff] [blame] | 6495 | if test "${ac_cv_header_ifaddrs_h+set}" = set; then |
| 6496 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6497 | else |
| 6498 | ac_cv_header_ifaddrs_h=$ac_header_preproc |
| 6499 | fi |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 6500 | { echo "$as_me:$LINENO: result: $ac_cv_header_ifaddrs_h" >&5 |
| 6501 | echo "${ECHO_T}$ac_cv_header_ifaddrs_h" >&6; } |
Benny Prijono | 1d65f70 | 2007-12-03 04:03:17 +0000 | [diff] [blame] | 6502 | |
| 6503 | fi |
| 6504 | if test $ac_cv_header_ifaddrs_h = yes; then |
| 6505 | cat >>confdefs.h <<\_ACEOF |
| 6506 | #define PJ_HAS_IFADDRS_H 1 |
| 6507 | _ACEOF |
| 6508 | |
| 6509 | fi |
| 6510 | |
| 6511 | |
Benny Prijono | 1c5f4e4 | 2008-02-07 13:11:39 +0000 | [diff] [blame] | 6512 | if test "${ac_cv_header_semaphore_h+set}" = set; then |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 6513 | { echo "$as_me:$LINENO: checking for semaphore.h" >&5 |
| 6514 | echo $ECHO_N "checking for semaphore.h... $ECHO_C" >&6; } |
Benny Prijono | 1c5f4e4 | 2008-02-07 13:11:39 +0000 | [diff] [blame] | 6515 | if test "${ac_cv_header_semaphore_h+set}" = set; then |
| 6516 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6517 | fi |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 6518 | { echo "$as_me:$LINENO: result: $ac_cv_header_semaphore_h" >&5 |
| 6519 | echo "${ECHO_T}$ac_cv_header_semaphore_h" >&6; } |
Benny Prijono | 1c5f4e4 | 2008-02-07 13:11:39 +0000 | [diff] [blame] | 6520 | else |
| 6521 | # Is the header compilable? |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 6522 | { echo "$as_me:$LINENO: checking semaphore.h usability" >&5 |
| 6523 | echo $ECHO_N "checking semaphore.h usability... $ECHO_C" >&6; } |
Benny Prijono | 1c5f4e4 | 2008-02-07 13:11:39 +0000 | [diff] [blame] | 6524 | cat >conftest.$ac_ext <<_ACEOF |
| 6525 | /* confdefs.h. */ |
| 6526 | _ACEOF |
| 6527 | cat confdefs.h >>conftest.$ac_ext |
| 6528 | cat >>conftest.$ac_ext <<_ACEOF |
| 6529 | /* end confdefs.h. */ |
| 6530 | $ac_includes_default |
| 6531 | #include <semaphore.h> |
| 6532 | _ACEOF |
| 6533 | rm -f conftest.$ac_objext |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 6534 | if { (ac_try="$ac_compile" |
| 6535 | case "(($ac_try" in |
| 6536 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6537 | *) ac_try_echo=$ac_try;; |
| 6538 | esac |
| 6539 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6540 | (eval "$ac_compile") 2>conftest.er1 |
Benny Prijono | 1c5f4e4 | 2008-02-07 13:11:39 +0000 | [diff] [blame] | 6541 | ac_status=$? |
| 6542 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6543 | rm -f conftest.er1 |
| 6544 | cat conftest.err >&5 |
| 6545 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 6546 | (exit $ac_status); } && { |
| 6547 | test -z "$ac_c_werror_flag" || |
| 6548 | test ! -s conftest.err |
| 6549 | } && test -s conftest.$ac_objext; then |
Benny Prijono | 1c5f4e4 | 2008-02-07 13:11:39 +0000 | [diff] [blame] | 6550 | ac_header_compiler=yes |
| 6551 | else |
| 6552 | echo "$as_me: failed program was:" >&5 |
| 6553 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6554 | |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 6555 | ac_header_compiler=no |
Benny Prijono | 1c5f4e4 | 2008-02-07 13:11:39 +0000 | [diff] [blame] | 6556 | fi |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 6557 | |
| 6558 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6559 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 6560 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Benny Prijono | 1c5f4e4 | 2008-02-07 13:11:39 +0000 | [diff] [blame] | 6561 | |
| 6562 | # Is the header present? |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 6563 | { echo "$as_me:$LINENO: checking semaphore.h presence" >&5 |
| 6564 | echo $ECHO_N "checking semaphore.h presence... $ECHO_C" >&6; } |
Benny Prijono | 1c5f4e4 | 2008-02-07 13:11:39 +0000 | [diff] [blame] | 6565 | cat >conftest.$ac_ext <<_ACEOF |
| 6566 | /* confdefs.h. */ |
| 6567 | _ACEOF |
| 6568 | cat confdefs.h >>conftest.$ac_ext |
| 6569 | cat >>conftest.$ac_ext <<_ACEOF |
| 6570 | /* end confdefs.h. */ |
| 6571 | #include <semaphore.h> |
| 6572 | _ACEOF |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 6573 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 6574 | case "(($ac_try" in |
| 6575 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6576 | *) ac_try_echo=$ac_try;; |
| 6577 | esac |
| 6578 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6579 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Benny Prijono | 1c5f4e4 | 2008-02-07 13:11:39 +0000 | [diff] [blame] | 6580 | ac_status=$? |
| 6581 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6582 | rm -f conftest.er1 |
| 6583 | cat conftest.err >&5 |
| 6584 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 6585 | (exit $ac_status); } >/dev/null && { |
| 6586 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 6587 | test ! -s conftest.err |
| 6588 | }; then |
Benny Prijono | 1c5f4e4 | 2008-02-07 13:11:39 +0000 | [diff] [blame] | 6589 | ac_header_preproc=yes |
| 6590 | else |
| 6591 | echo "$as_me: failed program was:" >&5 |
| 6592 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6593 | |
| 6594 | ac_header_preproc=no |
| 6595 | fi |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 6596 | |
Benny Prijono | 1c5f4e4 | 2008-02-07 13:11:39 +0000 | [diff] [blame] | 6597 | rm -f conftest.err conftest.$ac_ext |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 6598 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 6599 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Benny Prijono | 1c5f4e4 | 2008-02-07 13:11:39 +0000 | [diff] [blame] | 6600 | |
| 6601 | # So? What about this header? |
| 6602 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 6603 | yes:no: ) |
| 6604 | { echo "$as_me:$LINENO: WARNING: semaphore.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 6605 | echo "$as_me: WARNING: semaphore.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 6606 | { echo "$as_me:$LINENO: WARNING: semaphore.h: proceeding with the compiler's result" >&5 |
| 6607 | echo "$as_me: WARNING: semaphore.h: proceeding with the compiler's result" >&2;} |
| 6608 | ac_header_preproc=yes |
| 6609 | ;; |
| 6610 | no:yes:* ) |
| 6611 | { echo "$as_me:$LINENO: WARNING: semaphore.h: present but cannot be compiled" >&5 |
| 6612 | echo "$as_me: WARNING: semaphore.h: present but cannot be compiled" >&2;} |
| 6613 | { echo "$as_me:$LINENO: WARNING: semaphore.h: check for missing prerequisite headers?" >&5 |
| 6614 | echo "$as_me: WARNING: semaphore.h: check for missing prerequisite headers?" >&2;} |
| 6615 | { echo "$as_me:$LINENO: WARNING: semaphore.h: see the Autoconf documentation" >&5 |
| 6616 | echo "$as_me: WARNING: semaphore.h: see the Autoconf documentation" >&2;} |
| 6617 | { echo "$as_me:$LINENO: WARNING: semaphore.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 6618 | echo "$as_me: WARNING: semaphore.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 6619 | { echo "$as_me:$LINENO: WARNING: semaphore.h: proceeding with the preprocessor's result" >&5 |
| 6620 | echo "$as_me: WARNING: semaphore.h: proceeding with the preprocessor's result" >&2;} |
| 6621 | { echo "$as_me:$LINENO: WARNING: semaphore.h: in the future, the compiler will take precedence" >&5 |
| 6622 | echo "$as_me: WARNING: semaphore.h: in the future, the compiler will take precedence" >&2;} |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 6623 | |
Benny Prijono | 1c5f4e4 | 2008-02-07 13:11:39 +0000 | [diff] [blame] | 6624 | ;; |
| 6625 | esac |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 6626 | { echo "$as_me:$LINENO: checking for semaphore.h" >&5 |
| 6627 | echo $ECHO_N "checking for semaphore.h... $ECHO_C" >&6; } |
Benny Prijono | 1c5f4e4 | 2008-02-07 13:11:39 +0000 | [diff] [blame] | 6628 | if test "${ac_cv_header_semaphore_h+set}" = set; then |
| 6629 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6630 | else |
| 6631 | ac_cv_header_semaphore_h=$ac_header_preproc |
| 6632 | fi |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 6633 | { echo "$as_me:$LINENO: result: $ac_cv_header_semaphore_h" >&5 |
| 6634 | echo "${ECHO_T}$ac_cv_header_semaphore_h" >&6; } |
Benny Prijono | 1c5f4e4 | 2008-02-07 13:11:39 +0000 | [diff] [blame] | 6635 | |
| 6636 | fi |
| 6637 | if test $ac_cv_header_semaphore_h = yes; then |
| 6638 | cat >>confdefs.h <<\_ACEOF |
| 6639 | #define PJ_HAS_SEMAPHORE_H 1 |
| 6640 | _ACEOF |
| 6641 | |
| 6642 | fi |
| 6643 | |
| 6644 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6645 | if test "${ac_cv_header_setjmp_h+set}" = set; then |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 6646 | { echo "$as_me:$LINENO: checking for setjmp.h" >&5 |
| 6647 | echo $ECHO_N "checking for setjmp.h... $ECHO_C" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6648 | if test "${ac_cv_header_setjmp_h+set}" = set; then |
| 6649 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6650 | fi |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 6651 | { echo "$as_me:$LINENO: result: $ac_cv_header_setjmp_h" >&5 |
| 6652 | echo "${ECHO_T}$ac_cv_header_setjmp_h" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6653 | else |
| 6654 | # Is the header compilable? |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 6655 | { echo "$as_me:$LINENO: checking setjmp.h usability" >&5 |
| 6656 | echo $ECHO_N "checking setjmp.h usability... $ECHO_C" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6657 | cat >conftest.$ac_ext <<_ACEOF |
| 6658 | /* confdefs.h. */ |
| 6659 | _ACEOF |
| 6660 | cat confdefs.h >>conftest.$ac_ext |
| 6661 | cat >>conftest.$ac_ext <<_ACEOF |
| 6662 | /* end confdefs.h. */ |
| 6663 | $ac_includes_default |
| 6664 | #include <setjmp.h> |
| 6665 | _ACEOF |
| 6666 | rm -f conftest.$ac_objext |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 6667 | if { (ac_try="$ac_compile" |
| 6668 | case "(($ac_try" in |
| 6669 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6670 | *) ac_try_echo=$ac_try;; |
| 6671 | esac |
| 6672 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6673 | (eval "$ac_compile") 2>conftest.er1 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6674 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6675 | grep -v '^ *+' conftest.er1 >conftest.err |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6676 | rm -f conftest.er1 |
| 6677 | cat conftest.err >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6678 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 6679 | (exit $ac_status); } && { |
| 6680 | test -z "$ac_c_werror_flag" || |
| 6681 | test ! -s conftest.err |
| 6682 | } && test -s conftest.$ac_objext; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6683 | ac_header_compiler=yes |
| 6684 | else |
| 6685 | echo "$as_me: failed program was:" >&5 |
| 6686 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6687 | |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 6688 | ac_header_compiler=no |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6689 | fi |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 6690 | |
| 6691 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6692 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 6693 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6694 | |
| 6695 | # Is the header present? |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 6696 | { echo "$as_me:$LINENO: checking setjmp.h presence" >&5 |
| 6697 | echo $ECHO_N "checking setjmp.h presence... $ECHO_C" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6698 | cat >conftest.$ac_ext <<_ACEOF |
| 6699 | /* confdefs.h. */ |
| 6700 | _ACEOF |
| 6701 | cat confdefs.h >>conftest.$ac_ext |
| 6702 | cat >>conftest.$ac_ext <<_ACEOF |
| 6703 | /* end confdefs.h. */ |
| 6704 | #include <setjmp.h> |
| 6705 | _ACEOF |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 6706 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 6707 | case "(($ac_try" in |
| 6708 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6709 | *) ac_try_echo=$ac_try;; |
| 6710 | esac |
| 6711 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6712 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6713 | ac_status=$? |
| 6714 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6715 | rm -f conftest.er1 |
| 6716 | cat conftest.err >&5 |
| 6717 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 6718 | (exit $ac_status); } >/dev/null && { |
| 6719 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 6720 | test ! -s conftest.err |
| 6721 | }; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6722 | ac_header_preproc=yes |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6723 | else |
| 6724 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6725 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6726 | |
| 6727 | ac_header_preproc=no |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6728 | fi |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 6729 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6730 | rm -f conftest.err conftest.$ac_ext |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 6731 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 6732 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 6733 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6734 | # So? What about this header? |
| 6735 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 6736 | yes:no: ) |
| 6737 | { echo "$as_me:$LINENO: WARNING: setjmp.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 6738 | echo "$as_me: WARNING: setjmp.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 6739 | { echo "$as_me:$LINENO: WARNING: setjmp.h: proceeding with the compiler's result" >&5 |
| 6740 | echo "$as_me: WARNING: setjmp.h: proceeding with the compiler's result" >&2;} |
| 6741 | ac_header_preproc=yes |
| 6742 | ;; |
| 6743 | no:yes:* ) |
| 6744 | { echo "$as_me:$LINENO: WARNING: setjmp.h: present but cannot be compiled" >&5 |
| 6745 | echo "$as_me: WARNING: setjmp.h: present but cannot be compiled" >&2;} |
| 6746 | { echo "$as_me:$LINENO: WARNING: setjmp.h: check for missing prerequisite headers?" >&5 |
| 6747 | echo "$as_me: WARNING: setjmp.h: check for missing prerequisite headers?" >&2;} |
| 6748 | { echo "$as_me:$LINENO: WARNING: setjmp.h: see the Autoconf documentation" >&5 |
| 6749 | echo "$as_me: WARNING: setjmp.h: see the Autoconf documentation" >&2;} |
| 6750 | { echo "$as_me:$LINENO: WARNING: setjmp.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 6751 | echo "$as_me: WARNING: setjmp.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 6752 | { echo "$as_me:$LINENO: WARNING: setjmp.h: proceeding with the preprocessor's result" >&5 |
| 6753 | echo "$as_me: WARNING: setjmp.h: proceeding with the preprocessor's result" >&2;} |
| 6754 | { echo "$as_me:$LINENO: WARNING: setjmp.h: in the future, the compiler will take precedence" >&5 |
| 6755 | echo "$as_me: WARNING: setjmp.h: in the future, the compiler will take precedence" >&2;} |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 6756 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6757 | ;; |
| 6758 | esac |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 6759 | { echo "$as_me:$LINENO: checking for setjmp.h" >&5 |
| 6760 | echo $ECHO_N "checking for setjmp.h... $ECHO_C" >&6; } |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 6761 | if test "${ac_cv_header_setjmp_h+set}" = set; then |
| 6762 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 6763 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6764 | ac_cv_header_setjmp_h=$ac_header_preproc |
| 6765 | fi |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 6766 | { echo "$as_me:$LINENO: result: $ac_cv_header_setjmp_h" >&5 |
| 6767 | echo "${ECHO_T}$ac_cv_header_setjmp_h" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6768 | |
| 6769 | fi |
| 6770 | if test $ac_cv_header_setjmp_h = yes; then |
| 6771 | cat >>confdefs.h <<\_ACEOF |
| 6772 | #define PJ_HAS_SETJMP_H 1 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 6773 | _ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6774 | |
| 6775 | fi |
| 6776 | |
| 6777 | |
| 6778 | if test "${ac_cv_header_stdarg_h+set}" = set; then |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 6779 | { echo "$as_me:$LINENO: checking for stdarg.h" >&5 |
| 6780 | echo $ECHO_N "checking for stdarg.h... $ECHO_C" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6781 | if test "${ac_cv_header_stdarg_h+set}" = set; then |
| 6782 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6783 | fi |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 6784 | { echo "$as_me:$LINENO: result: $ac_cv_header_stdarg_h" >&5 |
| 6785 | echo "${ECHO_T}$ac_cv_header_stdarg_h" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6786 | else |
| 6787 | # Is the header compilable? |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 6788 | { echo "$as_me:$LINENO: checking stdarg.h usability" >&5 |
| 6789 | echo $ECHO_N "checking stdarg.h usability... $ECHO_C" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6790 | cat >conftest.$ac_ext <<_ACEOF |
| 6791 | /* confdefs.h. */ |
| 6792 | _ACEOF |
| 6793 | cat confdefs.h >>conftest.$ac_ext |
| 6794 | cat >>conftest.$ac_ext <<_ACEOF |
| 6795 | /* end confdefs.h. */ |
| 6796 | $ac_includes_default |
| 6797 | #include <stdarg.h> |
| 6798 | _ACEOF |
| 6799 | rm -f conftest.$ac_objext |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 6800 | if { (ac_try="$ac_compile" |
| 6801 | case "(($ac_try" in |
| 6802 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6803 | *) ac_try_echo=$ac_try;; |
| 6804 | esac |
| 6805 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6806 | (eval "$ac_compile") 2>conftest.er1 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6807 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6808 | grep -v '^ *+' conftest.er1 >conftest.err |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6809 | rm -f conftest.er1 |
| 6810 | cat conftest.err >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6811 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 6812 | (exit $ac_status); } && { |
| 6813 | test -z "$ac_c_werror_flag" || |
| 6814 | test ! -s conftest.err |
| 6815 | } && test -s conftest.$ac_objext; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6816 | ac_header_compiler=yes |
| 6817 | else |
| 6818 | echo "$as_me: failed program was:" >&5 |
| 6819 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6820 | |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 6821 | ac_header_compiler=no |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6822 | fi |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 6823 | |
| 6824 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6825 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 6826 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6827 | |
| 6828 | # Is the header present? |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 6829 | { echo "$as_me:$LINENO: checking stdarg.h presence" >&5 |
| 6830 | echo $ECHO_N "checking stdarg.h presence... $ECHO_C" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6831 | cat >conftest.$ac_ext <<_ACEOF |
| 6832 | /* confdefs.h. */ |
| 6833 | _ACEOF |
| 6834 | cat confdefs.h >>conftest.$ac_ext |
| 6835 | cat >>conftest.$ac_ext <<_ACEOF |
| 6836 | /* end confdefs.h. */ |
| 6837 | #include <stdarg.h> |
| 6838 | _ACEOF |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 6839 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 6840 | case "(($ac_try" in |
| 6841 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6842 | *) ac_try_echo=$ac_try;; |
| 6843 | esac |
| 6844 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6845 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6846 | ac_status=$? |
| 6847 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6848 | rm -f conftest.er1 |
| 6849 | cat conftest.err >&5 |
| 6850 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 6851 | (exit $ac_status); } >/dev/null && { |
| 6852 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 6853 | test ! -s conftest.err |
| 6854 | }; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6855 | ac_header_preproc=yes |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6856 | else |
| 6857 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6858 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6859 | |
| 6860 | ac_header_preproc=no |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6861 | fi |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 6862 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6863 | rm -f conftest.err conftest.$ac_ext |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 6864 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 6865 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 6866 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6867 | # So? What about this header? |
| 6868 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 6869 | yes:no: ) |
| 6870 | { echo "$as_me:$LINENO: WARNING: stdarg.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 6871 | echo "$as_me: WARNING: stdarg.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 6872 | { echo "$as_me:$LINENO: WARNING: stdarg.h: proceeding with the compiler's result" >&5 |
| 6873 | echo "$as_me: WARNING: stdarg.h: proceeding with the compiler's result" >&2;} |
| 6874 | ac_header_preproc=yes |
| 6875 | ;; |
| 6876 | no:yes:* ) |
| 6877 | { echo "$as_me:$LINENO: WARNING: stdarg.h: present but cannot be compiled" >&5 |
| 6878 | echo "$as_me: WARNING: stdarg.h: present but cannot be compiled" >&2;} |
| 6879 | { echo "$as_me:$LINENO: WARNING: stdarg.h: check for missing prerequisite headers?" >&5 |
| 6880 | echo "$as_me: WARNING: stdarg.h: check for missing prerequisite headers?" >&2;} |
| 6881 | { echo "$as_me:$LINENO: WARNING: stdarg.h: see the Autoconf documentation" >&5 |
| 6882 | echo "$as_me: WARNING: stdarg.h: see the Autoconf documentation" >&2;} |
| 6883 | { echo "$as_me:$LINENO: WARNING: stdarg.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 6884 | echo "$as_me: WARNING: stdarg.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 6885 | { echo "$as_me:$LINENO: WARNING: stdarg.h: proceeding with the preprocessor's result" >&5 |
| 6886 | echo "$as_me: WARNING: stdarg.h: proceeding with the preprocessor's result" >&2;} |
| 6887 | { echo "$as_me:$LINENO: WARNING: stdarg.h: in the future, the compiler will take precedence" >&5 |
| 6888 | echo "$as_me: WARNING: stdarg.h: in the future, the compiler will take precedence" >&2;} |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 6889 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6890 | ;; |
| 6891 | esac |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 6892 | { echo "$as_me:$LINENO: checking for stdarg.h" >&5 |
| 6893 | echo $ECHO_N "checking for stdarg.h... $ECHO_C" >&6; } |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 6894 | if test "${ac_cv_header_stdarg_h+set}" = set; then |
| 6895 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 6896 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6897 | ac_cv_header_stdarg_h=$ac_header_preproc |
| 6898 | fi |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 6899 | { echo "$as_me:$LINENO: result: $ac_cv_header_stdarg_h" >&5 |
| 6900 | echo "${ECHO_T}$ac_cv_header_stdarg_h" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6901 | |
| 6902 | fi |
| 6903 | if test $ac_cv_header_stdarg_h = yes; then |
| 6904 | cat >>confdefs.h <<\_ACEOF |
| 6905 | #define PJ_HAS_STDARG_H 1 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 6906 | _ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6907 | |
| 6908 | fi |
| 6909 | |
| 6910 | |
| 6911 | if test "${ac_cv_header_stddef_h+set}" = set; then |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 6912 | { echo "$as_me:$LINENO: checking for stddef.h" >&5 |
| 6913 | echo $ECHO_N "checking for stddef.h... $ECHO_C" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6914 | if test "${ac_cv_header_stddef_h+set}" = set; then |
| 6915 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6916 | fi |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 6917 | { echo "$as_me:$LINENO: result: $ac_cv_header_stddef_h" >&5 |
| 6918 | echo "${ECHO_T}$ac_cv_header_stddef_h" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6919 | else |
| 6920 | # Is the header compilable? |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 6921 | { echo "$as_me:$LINENO: checking stddef.h usability" >&5 |
| 6922 | echo $ECHO_N "checking stddef.h usability... $ECHO_C" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6923 | cat >conftest.$ac_ext <<_ACEOF |
| 6924 | /* confdefs.h. */ |
| 6925 | _ACEOF |
| 6926 | cat confdefs.h >>conftest.$ac_ext |
| 6927 | cat >>conftest.$ac_ext <<_ACEOF |
| 6928 | /* end confdefs.h. */ |
| 6929 | $ac_includes_default |
| 6930 | #include <stddef.h> |
| 6931 | _ACEOF |
| 6932 | rm -f conftest.$ac_objext |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 6933 | if { (ac_try="$ac_compile" |
| 6934 | case "(($ac_try" in |
| 6935 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6936 | *) ac_try_echo=$ac_try;; |
| 6937 | esac |
| 6938 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6939 | (eval "$ac_compile") 2>conftest.er1 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6940 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6941 | grep -v '^ *+' conftest.er1 >conftest.err |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6942 | rm -f conftest.er1 |
| 6943 | cat conftest.err >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6944 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 6945 | (exit $ac_status); } && { |
| 6946 | test -z "$ac_c_werror_flag" || |
| 6947 | test ! -s conftest.err |
| 6948 | } && test -s conftest.$ac_objext; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6949 | ac_header_compiler=yes |
| 6950 | else |
| 6951 | echo "$as_me: failed program was:" >&5 |
| 6952 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6953 | |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 6954 | ac_header_compiler=no |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6955 | fi |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 6956 | |
| 6957 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6958 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 6959 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6960 | |
| 6961 | # Is the header present? |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 6962 | { echo "$as_me:$LINENO: checking stddef.h presence" >&5 |
| 6963 | echo $ECHO_N "checking stddef.h presence... $ECHO_C" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6964 | cat >conftest.$ac_ext <<_ACEOF |
| 6965 | /* confdefs.h. */ |
| 6966 | _ACEOF |
| 6967 | cat confdefs.h >>conftest.$ac_ext |
| 6968 | cat >>conftest.$ac_ext <<_ACEOF |
| 6969 | /* end confdefs.h. */ |
| 6970 | #include <stddef.h> |
| 6971 | _ACEOF |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 6972 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 6973 | case "(($ac_try" in |
| 6974 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6975 | *) ac_try_echo=$ac_try;; |
| 6976 | esac |
| 6977 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6978 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6979 | ac_status=$? |
| 6980 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6981 | rm -f conftest.er1 |
| 6982 | cat conftest.err >&5 |
| 6983 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 6984 | (exit $ac_status); } >/dev/null && { |
| 6985 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 6986 | test ! -s conftest.err |
| 6987 | }; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6988 | ac_header_preproc=yes |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6989 | else |
| 6990 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6991 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6992 | |
| 6993 | ac_header_preproc=no |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6994 | fi |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 6995 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6996 | rm -f conftest.err conftest.$ac_ext |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 6997 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 6998 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 6999 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7000 | # So? What about this header? |
| 7001 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 7002 | yes:no: ) |
| 7003 | { echo "$as_me:$LINENO: WARNING: stddef.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 7004 | echo "$as_me: WARNING: stddef.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 7005 | { echo "$as_me:$LINENO: WARNING: stddef.h: proceeding with the compiler's result" >&5 |
| 7006 | echo "$as_me: WARNING: stddef.h: proceeding with the compiler's result" >&2;} |
| 7007 | ac_header_preproc=yes |
| 7008 | ;; |
| 7009 | no:yes:* ) |
| 7010 | { echo "$as_me:$LINENO: WARNING: stddef.h: present but cannot be compiled" >&5 |
| 7011 | echo "$as_me: WARNING: stddef.h: present but cannot be compiled" >&2;} |
| 7012 | { echo "$as_me:$LINENO: WARNING: stddef.h: check for missing prerequisite headers?" >&5 |
| 7013 | echo "$as_me: WARNING: stddef.h: check for missing prerequisite headers?" >&2;} |
| 7014 | { echo "$as_me:$LINENO: WARNING: stddef.h: see the Autoconf documentation" >&5 |
| 7015 | echo "$as_me: WARNING: stddef.h: see the Autoconf documentation" >&2;} |
| 7016 | { echo "$as_me:$LINENO: WARNING: stddef.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 7017 | echo "$as_me: WARNING: stddef.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 7018 | { echo "$as_me:$LINENO: WARNING: stddef.h: proceeding with the preprocessor's result" >&5 |
| 7019 | echo "$as_me: WARNING: stddef.h: proceeding with the preprocessor's result" >&2;} |
| 7020 | { echo "$as_me:$LINENO: WARNING: stddef.h: in the future, the compiler will take precedence" >&5 |
| 7021 | echo "$as_me: WARNING: stddef.h: in the future, the compiler will take precedence" >&2;} |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 7022 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7023 | ;; |
| 7024 | esac |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 7025 | { echo "$as_me:$LINENO: checking for stddef.h" >&5 |
| 7026 | echo $ECHO_N "checking for stddef.h... $ECHO_C" >&6; } |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 7027 | if test "${ac_cv_header_stddef_h+set}" = set; then |
| 7028 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 7029 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7030 | ac_cv_header_stddef_h=$ac_header_preproc |
| 7031 | fi |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 7032 | { echo "$as_me:$LINENO: result: $ac_cv_header_stddef_h" >&5 |
| 7033 | echo "${ECHO_T}$ac_cv_header_stddef_h" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7034 | |
| 7035 | fi |
| 7036 | if test $ac_cv_header_stddef_h = yes; then |
| 7037 | cat >>confdefs.h <<\_ACEOF |
| 7038 | #define PJ_HAS_STDDEF_H 1 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 7039 | _ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7040 | |
| 7041 | fi |
| 7042 | |
| 7043 | |
| 7044 | if test "${ac_cv_header_stdio_h+set}" = set; then |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 7045 | { echo "$as_me:$LINENO: checking for stdio.h" >&5 |
| 7046 | echo $ECHO_N "checking for stdio.h... $ECHO_C" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7047 | if test "${ac_cv_header_stdio_h+set}" = set; then |
| 7048 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7049 | fi |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 7050 | { echo "$as_me:$LINENO: result: $ac_cv_header_stdio_h" >&5 |
| 7051 | echo "${ECHO_T}$ac_cv_header_stdio_h" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7052 | else |
| 7053 | # Is the header compilable? |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 7054 | { echo "$as_me:$LINENO: checking stdio.h usability" >&5 |
| 7055 | echo $ECHO_N "checking stdio.h usability... $ECHO_C" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7056 | cat >conftest.$ac_ext <<_ACEOF |
| 7057 | /* confdefs.h. */ |
| 7058 | _ACEOF |
| 7059 | cat confdefs.h >>conftest.$ac_ext |
| 7060 | cat >>conftest.$ac_ext <<_ACEOF |
| 7061 | /* end confdefs.h. */ |
| 7062 | $ac_includes_default |
| 7063 | #include <stdio.h> |
| 7064 | _ACEOF |
| 7065 | rm -f conftest.$ac_objext |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 7066 | if { (ac_try="$ac_compile" |
| 7067 | case "(($ac_try" in |
| 7068 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7069 | *) ac_try_echo=$ac_try;; |
| 7070 | esac |
| 7071 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7072 | (eval "$ac_compile") 2>conftest.er1 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7073 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7074 | grep -v '^ *+' conftest.er1 >conftest.err |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7075 | rm -f conftest.er1 |
| 7076 | cat conftest.err >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7077 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 7078 | (exit $ac_status); } && { |
| 7079 | test -z "$ac_c_werror_flag" || |
| 7080 | test ! -s conftest.err |
| 7081 | } && test -s conftest.$ac_objext; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7082 | ac_header_compiler=yes |
| 7083 | else |
| 7084 | echo "$as_me: failed program was:" >&5 |
| 7085 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7086 | |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 7087 | ac_header_compiler=no |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7088 | fi |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 7089 | |
| 7090 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7091 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 7092 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7093 | |
| 7094 | # Is the header present? |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 7095 | { echo "$as_me:$LINENO: checking stdio.h presence" >&5 |
| 7096 | echo $ECHO_N "checking stdio.h presence... $ECHO_C" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7097 | cat >conftest.$ac_ext <<_ACEOF |
| 7098 | /* confdefs.h. */ |
| 7099 | _ACEOF |
| 7100 | cat confdefs.h >>conftest.$ac_ext |
| 7101 | cat >>conftest.$ac_ext <<_ACEOF |
| 7102 | /* end confdefs.h. */ |
| 7103 | #include <stdio.h> |
| 7104 | _ACEOF |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 7105 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 7106 | case "(($ac_try" in |
| 7107 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7108 | *) ac_try_echo=$ac_try;; |
| 7109 | esac |
| 7110 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7111 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7112 | ac_status=$? |
| 7113 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7114 | rm -f conftest.er1 |
| 7115 | cat conftest.err >&5 |
| 7116 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 7117 | (exit $ac_status); } >/dev/null && { |
| 7118 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 7119 | test ! -s conftest.err |
| 7120 | }; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7121 | ac_header_preproc=yes |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7122 | else |
| 7123 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7124 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7125 | |
| 7126 | ac_header_preproc=no |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7127 | fi |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 7128 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7129 | rm -f conftest.err conftest.$ac_ext |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 7130 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 7131 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 7132 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7133 | # So? What about this header? |
| 7134 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 7135 | yes:no: ) |
| 7136 | { echo "$as_me:$LINENO: WARNING: stdio.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 7137 | echo "$as_me: WARNING: stdio.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 7138 | { echo "$as_me:$LINENO: WARNING: stdio.h: proceeding with the compiler's result" >&5 |
| 7139 | echo "$as_me: WARNING: stdio.h: proceeding with the compiler's result" >&2;} |
| 7140 | ac_header_preproc=yes |
| 7141 | ;; |
| 7142 | no:yes:* ) |
| 7143 | { echo "$as_me:$LINENO: WARNING: stdio.h: present but cannot be compiled" >&5 |
| 7144 | echo "$as_me: WARNING: stdio.h: present but cannot be compiled" >&2;} |
| 7145 | { echo "$as_me:$LINENO: WARNING: stdio.h: check for missing prerequisite headers?" >&5 |
| 7146 | echo "$as_me: WARNING: stdio.h: check for missing prerequisite headers?" >&2;} |
| 7147 | { echo "$as_me:$LINENO: WARNING: stdio.h: see the Autoconf documentation" >&5 |
| 7148 | echo "$as_me: WARNING: stdio.h: see the Autoconf documentation" >&2;} |
| 7149 | { echo "$as_me:$LINENO: WARNING: stdio.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 7150 | echo "$as_me: WARNING: stdio.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 7151 | { echo "$as_me:$LINENO: WARNING: stdio.h: proceeding with the preprocessor's result" >&5 |
| 7152 | echo "$as_me: WARNING: stdio.h: proceeding with the preprocessor's result" >&2;} |
| 7153 | { echo "$as_me:$LINENO: WARNING: stdio.h: in the future, the compiler will take precedence" >&5 |
| 7154 | echo "$as_me: WARNING: stdio.h: in the future, the compiler will take precedence" >&2;} |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 7155 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7156 | ;; |
| 7157 | esac |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 7158 | { echo "$as_me:$LINENO: checking for stdio.h" >&5 |
| 7159 | echo $ECHO_N "checking for stdio.h... $ECHO_C" >&6; } |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 7160 | if test "${ac_cv_header_stdio_h+set}" = set; then |
| 7161 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 7162 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7163 | ac_cv_header_stdio_h=$ac_header_preproc |
| 7164 | fi |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 7165 | { echo "$as_me:$LINENO: result: $ac_cv_header_stdio_h" >&5 |
| 7166 | echo "${ECHO_T}$ac_cv_header_stdio_h" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7167 | |
| 7168 | fi |
| 7169 | if test $ac_cv_header_stdio_h = yes; then |
| 7170 | cat >>confdefs.h <<\_ACEOF |
| 7171 | #define PJ_HAS_STDIO_H 1 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 7172 | _ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7173 | |
| 7174 | fi |
| 7175 | |
| 7176 | |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 7177 | if test "${ac_cv_header_stdint_h+set}" = set; then |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 7178 | { echo "$as_me:$LINENO: checking for stdint.h" >&5 |
| 7179 | echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6; } |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 7180 | if test "${ac_cv_header_stdint_h+set}" = set; then |
| 7181 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7182 | fi |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 7183 | { echo "$as_me:$LINENO: result: $ac_cv_header_stdint_h" >&5 |
| 7184 | echo "${ECHO_T}$ac_cv_header_stdint_h" >&6; } |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 7185 | else |
| 7186 | # Is the header compilable? |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 7187 | { echo "$as_me:$LINENO: checking stdint.h usability" >&5 |
| 7188 | echo $ECHO_N "checking stdint.h usability... $ECHO_C" >&6; } |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 7189 | cat >conftest.$ac_ext <<_ACEOF |
| 7190 | /* confdefs.h. */ |
| 7191 | _ACEOF |
| 7192 | cat confdefs.h >>conftest.$ac_ext |
| 7193 | cat >>conftest.$ac_ext <<_ACEOF |
| 7194 | /* end confdefs.h. */ |
| 7195 | $ac_includes_default |
| 7196 | #include <stdint.h> |
| 7197 | _ACEOF |
| 7198 | rm -f conftest.$ac_objext |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 7199 | if { (ac_try="$ac_compile" |
| 7200 | case "(($ac_try" in |
| 7201 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7202 | *) ac_try_echo=$ac_try;; |
| 7203 | esac |
| 7204 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7205 | (eval "$ac_compile") 2>conftest.er1 |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 7206 | ac_status=$? |
| 7207 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7208 | rm -f conftest.er1 |
| 7209 | cat conftest.err >&5 |
| 7210 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 7211 | (exit $ac_status); } && { |
| 7212 | test -z "$ac_c_werror_flag" || |
| 7213 | test ! -s conftest.err |
| 7214 | } && test -s conftest.$ac_objext; then |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 7215 | ac_header_compiler=yes |
| 7216 | else |
| 7217 | echo "$as_me: failed program was:" >&5 |
| 7218 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7219 | |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 7220 | ac_header_compiler=no |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 7221 | fi |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 7222 | |
| 7223 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7224 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 7225 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 7226 | |
| 7227 | # Is the header present? |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 7228 | { echo "$as_me:$LINENO: checking stdint.h presence" >&5 |
| 7229 | echo $ECHO_N "checking stdint.h presence... $ECHO_C" >&6; } |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 7230 | cat >conftest.$ac_ext <<_ACEOF |
| 7231 | /* confdefs.h. */ |
| 7232 | _ACEOF |
| 7233 | cat confdefs.h >>conftest.$ac_ext |
| 7234 | cat >>conftest.$ac_ext <<_ACEOF |
| 7235 | /* end confdefs.h. */ |
| 7236 | #include <stdint.h> |
| 7237 | _ACEOF |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 7238 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 7239 | case "(($ac_try" in |
| 7240 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7241 | *) ac_try_echo=$ac_try;; |
| 7242 | esac |
| 7243 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7244 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 7245 | ac_status=$? |
| 7246 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7247 | rm -f conftest.er1 |
| 7248 | cat conftest.err >&5 |
| 7249 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 7250 | (exit $ac_status); } >/dev/null && { |
| 7251 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 7252 | test ! -s conftest.err |
| 7253 | }; then |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 7254 | ac_header_preproc=yes |
| 7255 | else |
| 7256 | echo "$as_me: failed program was:" >&5 |
| 7257 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7258 | |
| 7259 | ac_header_preproc=no |
| 7260 | fi |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 7261 | |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 7262 | rm -f conftest.err conftest.$ac_ext |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 7263 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 7264 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 7265 | |
| 7266 | # So? What about this header? |
| 7267 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 7268 | yes:no: ) |
| 7269 | { echo "$as_me:$LINENO: WARNING: stdint.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 7270 | echo "$as_me: WARNING: stdint.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 7271 | { echo "$as_me:$LINENO: WARNING: stdint.h: proceeding with the compiler's result" >&5 |
| 7272 | echo "$as_me: WARNING: stdint.h: proceeding with the compiler's result" >&2;} |
| 7273 | ac_header_preproc=yes |
| 7274 | ;; |
| 7275 | no:yes:* ) |
| 7276 | { echo "$as_me:$LINENO: WARNING: stdint.h: present but cannot be compiled" >&5 |
| 7277 | echo "$as_me: WARNING: stdint.h: present but cannot be compiled" >&2;} |
| 7278 | { echo "$as_me:$LINENO: WARNING: stdint.h: check for missing prerequisite headers?" >&5 |
| 7279 | echo "$as_me: WARNING: stdint.h: check for missing prerequisite headers?" >&2;} |
| 7280 | { echo "$as_me:$LINENO: WARNING: stdint.h: see the Autoconf documentation" >&5 |
| 7281 | echo "$as_me: WARNING: stdint.h: see the Autoconf documentation" >&2;} |
| 7282 | { echo "$as_me:$LINENO: WARNING: stdint.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 7283 | echo "$as_me: WARNING: stdint.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 7284 | { echo "$as_me:$LINENO: WARNING: stdint.h: proceeding with the preprocessor's result" >&5 |
| 7285 | echo "$as_me: WARNING: stdint.h: proceeding with the preprocessor's result" >&2;} |
| 7286 | { echo "$as_me:$LINENO: WARNING: stdint.h: in the future, the compiler will take precedence" >&5 |
| 7287 | echo "$as_me: WARNING: stdint.h: in the future, the compiler will take precedence" >&2;} |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 7288 | |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 7289 | ;; |
| 7290 | esac |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 7291 | { echo "$as_me:$LINENO: checking for stdint.h" >&5 |
| 7292 | echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6; } |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 7293 | if test "${ac_cv_header_stdint_h+set}" = set; then |
| 7294 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7295 | else |
| 7296 | ac_cv_header_stdint_h=$ac_header_preproc |
| 7297 | fi |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 7298 | { echo "$as_me:$LINENO: result: $ac_cv_header_stdint_h" >&5 |
| 7299 | echo "${ECHO_T}$ac_cv_header_stdint_h" >&6; } |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 7300 | |
| 7301 | fi |
| 7302 | if test $ac_cv_header_stdint_h = yes; then |
| 7303 | cat >>confdefs.h <<\_ACEOF |
| 7304 | #define PJ_HAS_STDINT_H 1 |
| 7305 | _ACEOF |
| 7306 | |
| 7307 | fi |
| 7308 | |
| 7309 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7310 | if test "${ac_cv_header_stdlib_h+set}" = set; then |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 7311 | { echo "$as_me:$LINENO: checking for stdlib.h" >&5 |
| 7312 | echo $ECHO_N "checking for stdlib.h... $ECHO_C" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7313 | if test "${ac_cv_header_stdlib_h+set}" = set; then |
| 7314 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7315 | fi |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 7316 | { echo "$as_me:$LINENO: result: $ac_cv_header_stdlib_h" >&5 |
| 7317 | echo "${ECHO_T}$ac_cv_header_stdlib_h" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7318 | else |
| 7319 | # Is the header compilable? |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 7320 | { echo "$as_me:$LINENO: checking stdlib.h usability" >&5 |
| 7321 | echo $ECHO_N "checking stdlib.h usability... $ECHO_C" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7322 | cat >conftest.$ac_ext <<_ACEOF |
| 7323 | /* confdefs.h. */ |
| 7324 | _ACEOF |
| 7325 | cat confdefs.h >>conftest.$ac_ext |
| 7326 | cat >>conftest.$ac_ext <<_ACEOF |
| 7327 | /* end confdefs.h. */ |
| 7328 | $ac_includes_default |
| 7329 | #include <stdlib.h> |
| 7330 | _ACEOF |
| 7331 | rm -f conftest.$ac_objext |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 7332 | if { (ac_try="$ac_compile" |
| 7333 | case "(($ac_try" in |
| 7334 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7335 | *) ac_try_echo=$ac_try;; |
| 7336 | esac |
| 7337 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7338 | (eval "$ac_compile") 2>conftest.er1 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7339 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7340 | grep -v '^ *+' conftest.er1 >conftest.err |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7341 | rm -f conftest.er1 |
| 7342 | cat conftest.err >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7343 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 7344 | (exit $ac_status); } && { |
| 7345 | test -z "$ac_c_werror_flag" || |
| 7346 | test ! -s conftest.err |
| 7347 | } && test -s conftest.$ac_objext; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7348 | ac_header_compiler=yes |
| 7349 | else |
| 7350 | echo "$as_me: failed program was:" >&5 |
| 7351 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7352 | |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 7353 | ac_header_compiler=no |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7354 | fi |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 7355 | |
| 7356 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7357 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 7358 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7359 | |
| 7360 | # Is the header present? |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 7361 | { echo "$as_me:$LINENO: checking stdlib.h presence" >&5 |
| 7362 | echo $ECHO_N "checking stdlib.h presence... $ECHO_C" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7363 | cat >conftest.$ac_ext <<_ACEOF |
| 7364 | /* confdefs.h. */ |
| 7365 | _ACEOF |
| 7366 | cat confdefs.h >>conftest.$ac_ext |
| 7367 | cat >>conftest.$ac_ext <<_ACEOF |
| 7368 | /* end confdefs.h. */ |
| 7369 | #include <stdlib.h> |
| 7370 | _ACEOF |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 7371 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 7372 | case "(($ac_try" in |
| 7373 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7374 | *) ac_try_echo=$ac_try;; |
| 7375 | esac |
| 7376 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7377 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7378 | ac_status=$? |
| 7379 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7380 | rm -f conftest.er1 |
| 7381 | cat conftest.err >&5 |
| 7382 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 7383 | (exit $ac_status); } >/dev/null && { |
| 7384 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 7385 | test ! -s conftest.err |
| 7386 | }; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7387 | ac_header_preproc=yes |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7388 | else |
| 7389 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7390 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7391 | |
| 7392 | ac_header_preproc=no |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7393 | fi |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 7394 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7395 | rm -f conftest.err conftest.$ac_ext |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 7396 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 7397 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 7398 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7399 | # So? What about this header? |
| 7400 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 7401 | yes:no: ) |
| 7402 | { echo "$as_me:$LINENO: WARNING: stdlib.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 7403 | echo "$as_me: WARNING: stdlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 7404 | { echo "$as_me:$LINENO: WARNING: stdlib.h: proceeding with the compiler's result" >&5 |
| 7405 | echo "$as_me: WARNING: stdlib.h: proceeding with the compiler's result" >&2;} |
| 7406 | ac_header_preproc=yes |
| 7407 | ;; |
| 7408 | no:yes:* ) |
| 7409 | { echo "$as_me:$LINENO: WARNING: stdlib.h: present but cannot be compiled" >&5 |
| 7410 | echo "$as_me: WARNING: stdlib.h: present but cannot be compiled" >&2;} |
| 7411 | { echo "$as_me:$LINENO: WARNING: stdlib.h: check for missing prerequisite headers?" >&5 |
| 7412 | echo "$as_me: WARNING: stdlib.h: check for missing prerequisite headers?" >&2;} |
| 7413 | { echo "$as_me:$LINENO: WARNING: stdlib.h: see the Autoconf documentation" >&5 |
| 7414 | echo "$as_me: WARNING: stdlib.h: see the Autoconf documentation" >&2;} |
| 7415 | { echo "$as_me:$LINENO: WARNING: stdlib.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 7416 | echo "$as_me: WARNING: stdlib.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 7417 | { echo "$as_me:$LINENO: WARNING: stdlib.h: proceeding with the preprocessor's result" >&5 |
| 7418 | echo "$as_me: WARNING: stdlib.h: proceeding with the preprocessor's result" >&2;} |
| 7419 | { echo "$as_me:$LINENO: WARNING: stdlib.h: in the future, the compiler will take precedence" >&5 |
| 7420 | echo "$as_me: WARNING: stdlib.h: in the future, the compiler will take precedence" >&2;} |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 7421 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7422 | ;; |
| 7423 | esac |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 7424 | { echo "$as_me:$LINENO: checking for stdlib.h" >&5 |
| 7425 | echo $ECHO_N "checking for stdlib.h... $ECHO_C" >&6; } |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 7426 | if test "${ac_cv_header_stdlib_h+set}" = set; then |
| 7427 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 7428 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7429 | ac_cv_header_stdlib_h=$ac_header_preproc |
| 7430 | fi |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 7431 | { echo "$as_me:$LINENO: result: $ac_cv_header_stdlib_h" >&5 |
| 7432 | echo "${ECHO_T}$ac_cv_header_stdlib_h" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7433 | |
| 7434 | fi |
| 7435 | if test $ac_cv_header_stdlib_h = yes; then |
| 7436 | cat >>confdefs.h <<\_ACEOF |
| 7437 | #define PJ_HAS_STDLIB_H 1 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 7438 | _ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7439 | |
| 7440 | fi |
| 7441 | |
| 7442 | |
| 7443 | if test "${ac_cv_header_string_h+set}" = set; then |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 7444 | { echo "$as_me:$LINENO: checking for string.h" >&5 |
| 7445 | echo $ECHO_N "checking for string.h... $ECHO_C" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7446 | if test "${ac_cv_header_string_h+set}" = set; then |
| 7447 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7448 | fi |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 7449 | { echo "$as_me:$LINENO: result: $ac_cv_header_string_h" >&5 |
| 7450 | echo "${ECHO_T}$ac_cv_header_string_h" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7451 | else |
| 7452 | # Is the header compilable? |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 7453 | { echo "$as_me:$LINENO: checking string.h usability" >&5 |
| 7454 | echo $ECHO_N "checking string.h usability... $ECHO_C" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7455 | cat >conftest.$ac_ext <<_ACEOF |
| 7456 | /* confdefs.h. */ |
| 7457 | _ACEOF |
| 7458 | cat confdefs.h >>conftest.$ac_ext |
| 7459 | cat >>conftest.$ac_ext <<_ACEOF |
| 7460 | /* end confdefs.h. */ |
| 7461 | $ac_includes_default |
| 7462 | #include <string.h> |
| 7463 | _ACEOF |
| 7464 | rm -f conftest.$ac_objext |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 7465 | if { (ac_try="$ac_compile" |
| 7466 | case "(($ac_try" in |
| 7467 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7468 | *) ac_try_echo=$ac_try;; |
| 7469 | esac |
| 7470 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7471 | (eval "$ac_compile") 2>conftest.er1 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7472 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7473 | grep -v '^ *+' conftest.er1 >conftest.err |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7474 | rm -f conftest.er1 |
| 7475 | cat conftest.err >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7476 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 7477 | (exit $ac_status); } && { |
| 7478 | test -z "$ac_c_werror_flag" || |
| 7479 | test ! -s conftest.err |
| 7480 | } && test -s conftest.$ac_objext; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7481 | ac_header_compiler=yes |
| 7482 | else |
| 7483 | echo "$as_me: failed program was:" >&5 |
| 7484 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7485 | |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 7486 | ac_header_compiler=no |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7487 | fi |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 7488 | |
| 7489 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7490 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 7491 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7492 | |
| 7493 | # Is the header present? |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 7494 | { echo "$as_me:$LINENO: checking string.h presence" >&5 |
| 7495 | echo $ECHO_N "checking string.h presence... $ECHO_C" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7496 | cat >conftest.$ac_ext <<_ACEOF |
| 7497 | /* confdefs.h. */ |
| 7498 | _ACEOF |
| 7499 | cat confdefs.h >>conftest.$ac_ext |
| 7500 | cat >>conftest.$ac_ext <<_ACEOF |
| 7501 | /* end confdefs.h. */ |
| 7502 | #include <string.h> |
| 7503 | _ACEOF |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 7504 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 7505 | case "(($ac_try" in |
| 7506 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7507 | *) ac_try_echo=$ac_try;; |
| 7508 | esac |
| 7509 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7510 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7511 | ac_status=$? |
| 7512 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7513 | rm -f conftest.er1 |
| 7514 | cat conftest.err >&5 |
| 7515 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 7516 | (exit $ac_status); } >/dev/null && { |
| 7517 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 7518 | test ! -s conftest.err |
| 7519 | }; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7520 | ac_header_preproc=yes |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7521 | else |
| 7522 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7523 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7524 | |
| 7525 | ac_header_preproc=no |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7526 | fi |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 7527 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7528 | rm -f conftest.err conftest.$ac_ext |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 7529 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 7530 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 7531 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7532 | # So? What about this header? |
| 7533 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 7534 | yes:no: ) |
| 7535 | { echo "$as_me:$LINENO: WARNING: string.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 7536 | echo "$as_me: WARNING: string.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 7537 | { echo "$as_me:$LINENO: WARNING: string.h: proceeding with the compiler's result" >&5 |
| 7538 | echo "$as_me: WARNING: string.h: proceeding with the compiler's result" >&2;} |
| 7539 | ac_header_preproc=yes |
| 7540 | ;; |
| 7541 | no:yes:* ) |
| 7542 | { echo "$as_me:$LINENO: WARNING: string.h: present but cannot be compiled" >&5 |
| 7543 | echo "$as_me: WARNING: string.h: present but cannot be compiled" >&2;} |
| 7544 | { echo "$as_me:$LINENO: WARNING: string.h: check for missing prerequisite headers?" >&5 |
| 7545 | echo "$as_me: WARNING: string.h: check for missing prerequisite headers?" >&2;} |
| 7546 | { echo "$as_me:$LINENO: WARNING: string.h: see the Autoconf documentation" >&5 |
| 7547 | echo "$as_me: WARNING: string.h: see the Autoconf documentation" >&2;} |
| 7548 | { echo "$as_me:$LINENO: WARNING: string.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 7549 | echo "$as_me: WARNING: string.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 7550 | { echo "$as_me:$LINENO: WARNING: string.h: proceeding with the preprocessor's result" >&5 |
| 7551 | echo "$as_me: WARNING: string.h: proceeding with the preprocessor's result" >&2;} |
| 7552 | { echo "$as_me:$LINENO: WARNING: string.h: in the future, the compiler will take precedence" >&5 |
| 7553 | echo "$as_me: WARNING: string.h: in the future, the compiler will take precedence" >&2;} |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 7554 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7555 | ;; |
| 7556 | esac |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 7557 | { echo "$as_me:$LINENO: checking for string.h" >&5 |
| 7558 | echo $ECHO_N "checking for string.h... $ECHO_C" >&6; } |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 7559 | if test "${ac_cv_header_string_h+set}" = set; then |
| 7560 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 7561 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7562 | ac_cv_header_string_h=$ac_header_preproc |
| 7563 | fi |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 7564 | { echo "$as_me:$LINENO: result: $ac_cv_header_string_h" >&5 |
| 7565 | echo "${ECHO_T}$ac_cv_header_string_h" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7566 | |
| 7567 | fi |
| 7568 | if test $ac_cv_header_string_h = yes; then |
| 7569 | cat >>confdefs.h <<\_ACEOF |
| 7570 | #define PJ_HAS_STRING_H 1 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 7571 | _ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7572 | |
| 7573 | fi |
| 7574 | |
| 7575 | |
| 7576 | if test "${ac_cv_header_sys_ioctl_h+set}" = set; then |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 7577 | { echo "$as_me:$LINENO: checking for sys/ioctl.h" >&5 |
| 7578 | echo $ECHO_N "checking for sys/ioctl.h... $ECHO_C" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7579 | if test "${ac_cv_header_sys_ioctl_h+set}" = set; then |
| 7580 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7581 | fi |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 7582 | { echo "$as_me:$LINENO: result: $ac_cv_header_sys_ioctl_h" >&5 |
| 7583 | echo "${ECHO_T}$ac_cv_header_sys_ioctl_h" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7584 | else |
| 7585 | # Is the header compilable? |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 7586 | { echo "$as_me:$LINENO: checking sys/ioctl.h usability" >&5 |
| 7587 | echo $ECHO_N "checking sys/ioctl.h usability... $ECHO_C" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7588 | cat >conftest.$ac_ext <<_ACEOF |
| 7589 | /* confdefs.h. */ |
| 7590 | _ACEOF |
| 7591 | cat confdefs.h >>conftest.$ac_ext |
| 7592 | cat >>conftest.$ac_ext <<_ACEOF |
| 7593 | /* end confdefs.h. */ |
| 7594 | $ac_includes_default |
| 7595 | #include <sys/ioctl.h> |
| 7596 | _ACEOF |
| 7597 | rm -f conftest.$ac_objext |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 7598 | if { (ac_try="$ac_compile" |
| 7599 | case "(($ac_try" in |
| 7600 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7601 | *) ac_try_echo=$ac_try;; |
| 7602 | esac |
| 7603 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7604 | (eval "$ac_compile") 2>conftest.er1 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7605 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7606 | grep -v '^ *+' conftest.er1 >conftest.err |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7607 | rm -f conftest.er1 |
| 7608 | cat conftest.err >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7609 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 7610 | (exit $ac_status); } && { |
| 7611 | test -z "$ac_c_werror_flag" || |
| 7612 | test ! -s conftest.err |
| 7613 | } && test -s conftest.$ac_objext; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7614 | ac_header_compiler=yes |
| 7615 | else |
| 7616 | echo "$as_me: failed program was:" >&5 |
| 7617 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7618 | |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 7619 | ac_header_compiler=no |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7620 | fi |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 7621 | |
| 7622 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7623 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 7624 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7625 | |
| 7626 | # Is the header present? |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 7627 | { echo "$as_me:$LINENO: checking sys/ioctl.h presence" >&5 |
| 7628 | echo $ECHO_N "checking sys/ioctl.h presence... $ECHO_C" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7629 | cat >conftest.$ac_ext <<_ACEOF |
| 7630 | /* confdefs.h. */ |
| 7631 | _ACEOF |
| 7632 | cat confdefs.h >>conftest.$ac_ext |
| 7633 | cat >>conftest.$ac_ext <<_ACEOF |
| 7634 | /* end confdefs.h. */ |
| 7635 | #include <sys/ioctl.h> |
| 7636 | _ACEOF |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 7637 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 7638 | case "(($ac_try" in |
| 7639 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7640 | *) ac_try_echo=$ac_try;; |
| 7641 | esac |
| 7642 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7643 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7644 | ac_status=$? |
| 7645 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7646 | rm -f conftest.er1 |
| 7647 | cat conftest.err >&5 |
| 7648 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 7649 | (exit $ac_status); } >/dev/null && { |
| 7650 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 7651 | test ! -s conftest.err |
| 7652 | }; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7653 | ac_header_preproc=yes |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7654 | else |
| 7655 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7656 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7657 | |
| 7658 | ac_header_preproc=no |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7659 | fi |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 7660 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7661 | rm -f conftest.err conftest.$ac_ext |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 7662 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 7663 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 7664 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7665 | # So? What about this header? |
| 7666 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 7667 | yes:no: ) |
| 7668 | { echo "$as_me:$LINENO: WARNING: sys/ioctl.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 7669 | echo "$as_me: WARNING: sys/ioctl.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 7670 | { echo "$as_me:$LINENO: WARNING: sys/ioctl.h: proceeding with the compiler's result" >&5 |
| 7671 | echo "$as_me: WARNING: sys/ioctl.h: proceeding with the compiler's result" >&2;} |
| 7672 | ac_header_preproc=yes |
| 7673 | ;; |
| 7674 | no:yes:* ) |
| 7675 | { echo "$as_me:$LINENO: WARNING: sys/ioctl.h: present but cannot be compiled" >&5 |
| 7676 | echo "$as_me: WARNING: sys/ioctl.h: present but cannot be compiled" >&2;} |
| 7677 | { echo "$as_me:$LINENO: WARNING: sys/ioctl.h: check for missing prerequisite headers?" >&5 |
| 7678 | echo "$as_me: WARNING: sys/ioctl.h: check for missing prerequisite headers?" >&2;} |
| 7679 | { echo "$as_me:$LINENO: WARNING: sys/ioctl.h: see the Autoconf documentation" >&5 |
| 7680 | echo "$as_me: WARNING: sys/ioctl.h: see the Autoconf documentation" >&2;} |
| 7681 | { echo "$as_me:$LINENO: WARNING: sys/ioctl.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 7682 | echo "$as_me: WARNING: sys/ioctl.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 7683 | { echo "$as_me:$LINENO: WARNING: sys/ioctl.h: proceeding with the preprocessor's result" >&5 |
| 7684 | echo "$as_me: WARNING: sys/ioctl.h: proceeding with the preprocessor's result" >&2;} |
| 7685 | { echo "$as_me:$LINENO: WARNING: sys/ioctl.h: in the future, the compiler will take precedence" >&5 |
| 7686 | echo "$as_me: WARNING: sys/ioctl.h: in the future, the compiler will take precedence" >&2;} |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 7687 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7688 | ;; |
| 7689 | esac |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 7690 | { echo "$as_me:$LINENO: checking for sys/ioctl.h" >&5 |
| 7691 | echo $ECHO_N "checking for sys/ioctl.h... $ECHO_C" >&6; } |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 7692 | if test "${ac_cv_header_sys_ioctl_h+set}" = set; then |
| 7693 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 7694 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7695 | ac_cv_header_sys_ioctl_h=$ac_header_preproc |
| 7696 | fi |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 7697 | { echo "$as_me:$LINENO: result: $ac_cv_header_sys_ioctl_h" >&5 |
| 7698 | echo "${ECHO_T}$ac_cv_header_sys_ioctl_h" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7699 | |
| 7700 | fi |
| 7701 | if test $ac_cv_header_sys_ioctl_h = yes; then |
| 7702 | cat >>confdefs.h <<\_ACEOF |
| 7703 | #define PJ_HAS_SYS_IOCTL_H 1 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 7704 | _ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7705 | |
| 7706 | fi |
| 7707 | |
| 7708 | |
| 7709 | if test "${ac_cv_header_sys_select_h+set}" = set; then |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 7710 | { echo "$as_me:$LINENO: checking for sys/select.h" >&5 |
| 7711 | echo $ECHO_N "checking for sys/select.h... $ECHO_C" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7712 | if test "${ac_cv_header_sys_select_h+set}" = set; then |
| 7713 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7714 | fi |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 7715 | { echo "$as_me:$LINENO: result: $ac_cv_header_sys_select_h" >&5 |
| 7716 | echo "${ECHO_T}$ac_cv_header_sys_select_h" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7717 | else |
| 7718 | # Is the header compilable? |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 7719 | { echo "$as_me:$LINENO: checking sys/select.h usability" >&5 |
| 7720 | echo $ECHO_N "checking sys/select.h usability... $ECHO_C" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7721 | cat >conftest.$ac_ext <<_ACEOF |
| 7722 | /* confdefs.h. */ |
| 7723 | _ACEOF |
| 7724 | cat confdefs.h >>conftest.$ac_ext |
| 7725 | cat >>conftest.$ac_ext <<_ACEOF |
| 7726 | /* end confdefs.h. */ |
| 7727 | $ac_includes_default |
| 7728 | #include <sys/select.h> |
| 7729 | _ACEOF |
| 7730 | rm -f conftest.$ac_objext |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 7731 | if { (ac_try="$ac_compile" |
| 7732 | case "(($ac_try" in |
| 7733 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7734 | *) ac_try_echo=$ac_try;; |
| 7735 | esac |
| 7736 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7737 | (eval "$ac_compile") 2>conftest.er1 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7738 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7739 | grep -v '^ *+' conftest.er1 >conftest.err |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7740 | rm -f conftest.er1 |
| 7741 | cat conftest.err >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7742 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 7743 | (exit $ac_status); } && { |
| 7744 | test -z "$ac_c_werror_flag" || |
| 7745 | test ! -s conftest.err |
| 7746 | } && test -s conftest.$ac_objext; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7747 | ac_header_compiler=yes |
| 7748 | else |
| 7749 | echo "$as_me: failed program was:" >&5 |
| 7750 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7751 | |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 7752 | ac_header_compiler=no |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7753 | fi |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 7754 | |
| 7755 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7756 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 7757 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7758 | |
| 7759 | # Is the header present? |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 7760 | { echo "$as_me:$LINENO: checking sys/select.h presence" >&5 |
| 7761 | echo $ECHO_N "checking sys/select.h presence... $ECHO_C" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7762 | cat >conftest.$ac_ext <<_ACEOF |
| 7763 | /* confdefs.h. */ |
| 7764 | _ACEOF |
| 7765 | cat confdefs.h >>conftest.$ac_ext |
| 7766 | cat >>conftest.$ac_ext <<_ACEOF |
| 7767 | /* end confdefs.h. */ |
| 7768 | #include <sys/select.h> |
| 7769 | _ACEOF |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 7770 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 7771 | case "(($ac_try" in |
| 7772 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7773 | *) ac_try_echo=$ac_try;; |
| 7774 | esac |
| 7775 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7776 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7777 | ac_status=$? |
| 7778 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7779 | rm -f conftest.er1 |
| 7780 | cat conftest.err >&5 |
| 7781 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 7782 | (exit $ac_status); } >/dev/null && { |
| 7783 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 7784 | test ! -s conftest.err |
| 7785 | }; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7786 | ac_header_preproc=yes |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7787 | else |
| 7788 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7789 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7790 | |
| 7791 | ac_header_preproc=no |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7792 | fi |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 7793 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7794 | rm -f conftest.err conftest.$ac_ext |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 7795 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 7796 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 7797 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7798 | # So? What about this header? |
| 7799 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 7800 | yes:no: ) |
| 7801 | { echo "$as_me:$LINENO: WARNING: sys/select.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 7802 | echo "$as_me: WARNING: sys/select.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 7803 | { echo "$as_me:$LINENO: WARNING: sys/select.h: proceeding with the compiler's result" >&5 |
| 7804 | echo "$as_me: WARNING: sys/select.h: proceeding with the compiler's result" >&2;} |
| 7805 | ac_header_preproc=yes |
| 7806 | ;; |
| 7807 | no:yes:* ) |
| 7808 | { echo "$as_me:$LINENO: WARNING: sys/select.h: present but cannot be compiled" >&5 |
| 7809 | echo "$as_me: WARNING: sys/select.h: present but cannot be compiled" >&2;} |
| 7810 | { echo "$as_me:$LINENO: WARNING: sys/select.h: check for missing prerequisite headers?" >&5 |
| 7811 | echo "$as_me: WARNING: sys/select.h: check for missing prerequisite headers?" >&2;} |
| 7812 | { echo "$as_me:$LINENO: WARNING: sys/select.h: see the Autoconf documentation" >&5 |
| 7813 | echo "$as_me: WARNING: sys/select.h: see the Autoconf documentation" >&2;} |
| 7814 | { echo "$as_me:$LINENO: WARNING: sys/select.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 7815 | echo "$as_me: WARNING: sys/select.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 7816 | { echo "$as_me:$LINENO: WARNING: sys/select.h: proceeding with the preprocessor's result" >&5 |
| 7817 | echo "$as_me: WARNING: sys/select.h: proceeding with the preprocessor's result" >&2;} |
| 7818 | { echo "$as_me:$LINENO: WARNING: sys/select.h: in the future, the compiler will take precedence" >&5 |
| 7819 | echo "$as_me: WARNING: sys/select.h: in the future, the compiler will take precedence" >&2;} |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 7820 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7821 | ;; |
| 7822 | esac |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 7823 | { echo "$as_me:$LINENO: checking for sys/select.h" >&5 |
| 7824 | echo $ECHO_N "checking for sys/select.h... $ECHO_C" >&6; } |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 7825 | if test "${ac_cv_header_sys_select_h+set}" = set; then |
| 7826 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 7827 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7828 | ac_cv_header_sys_select_h=$ac_header_preproc |
| 7829 | fi |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 7830 | { echo "$as_me:$LINENO: result: $ac_cv_header_sys_select_h" >&5 |
| 7831 | echo "${ECHO_T}$ac_cv_header_sys_select_h" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7832 | |
| 7833 | fi |
| 7834 | if test $ac_cv_header_sys_select_h = yes; then |
| 7835 | cat >>confdefs.h <<\_ACEOF |
| 7836 | #define PJ_HAS_SYS_SELECT_H 1 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 7837 | _ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7838 | |
| 7839 | fi |
| 7840 | |
| 7841 | |
| 7842 | if test "${ac_cv_header_sys_socket_h+set}" = set; then |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 7843 | { echo "$as_me:$LINENO: checking for sys/socket.h" >&5 |
| 7844 | echo $ECHO_N "checking for sys/socket.h... $ECHO_C" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7845 | if test "${ac_cv_header_sys_socket_h+set}" = set; then |
| 7846 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7847 | fi |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 7848 | { echo "$as_me:$LINENO: result: $ac_cv_header_sys_socket_h" >&5 |
| 7849 | echo "${ECHO_T}$ac_cv_header_sys_socket_h" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7850 | else |
| 7851 | # Is the header compilable? |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 7852 | { echo "$as_me:$LINENO: checking sys/socket.h usability" >&5 |
| 7853 | echo $ECHO_N "checking sys/socket.h usability... $ECHO_C" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7854 | cat >conftest.$ac_ext <<_ACEOF |
| 7855 | /* confdefs.h. */ |
| 7856 | _ACEOF |
| 7857 | cat confdefs.h >>conftest.$ac_ext |
| 7858 | cat >>conftest.$ac_ext <<_ACEOF |
| 7859 | /* end confdefs.h. */ |
| 7860 | $ac_includes_default |
| 7861 | #include <sys/socket.h> |
| 7862 | _ACEOF |
| 7863 | rm -f conftest.$ac_objext |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 7864 | if { (ac_try="$ac_compile" |
| 7865 | case "(($ac_try" in |
| 7866 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7867 | *) ac_try_echo=$ac_try;; |
| 7868 | esac |
| 7869 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7870 | (eval "$ac_compile") 2>conftest.er1 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7871 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7872 | grep -v '^ *+' conftest.er1 >conftest.err |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7873 | rm -f conftest.er1 |
| 7874 | cat conftest.err >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7875 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 7876 | (exit $ac_status); } && { |
| 7877 | test -z "$ac_c_werror_flag" || |
| 7878 | test ! -s conftest.err |
| 7879 | } && test -s conftest.$ac_objext; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7880 | ac_header_compiler=yes |
| 7881 | else |
| 7882 | echo "$as_me: failed program was:" >&5 |
| 7883 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7884 | |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 7885 | ac_header_compiler=no |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7886 | fi |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 7887 | |
| 7888 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7889 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 7890 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7891 | |
| 7892 | # Is the header present? |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 7893 | { echo "$as_me:$LINENO: checking sys/socket.h presence" >&5 |
| 7894 | echo $ECHO_N "checking sys/socket.h presence... $ECHO_C" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7895 | cat >conftest.$ac_ext <<_ACEOF |
| 7896 | /* confdefs.h. */ |
| 7897 | _ACEOF |
| 7898 | cat confdefs.h >>conftest.$ac_ext |
| 7899 | cat >>conftest.$ac_ext <<_ACEOF |
| 7900 | /* end confdefs.h. */ |
| 7901 | #include <sys/socket.h> |
| 7902 | _ACEOF |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 7903 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 7904 | case "(($ac_try" in |
| 7905 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7906 | *) ac_try_echo=$ac_try;; |
| 7907 | esac |
| 7908 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7909 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7910 | ac_status=$? |
| 7911 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7912 | rm -f conftest.er1 |
| 7913 | cat conftest.err >&5 |
| 7914 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 7915 | (exit $ac_status); } >/dev/null && { |
| 7916 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 7917 | test ! -s conftest.err |
| 7918 | }; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7919 | ac_header_preproc=yes |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7920 | else |
| 7921 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7922 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7923 | |
| 7924 | ac_header_preproc=no |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7925 | fi |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 7926 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7927 | rm -f conftest.err conftest.$ac_ext |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 7928 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 7929 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 7930 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7931 | # So? What about this header? |
| 7932 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 7933 | yes:no: ) |
| 7934 | { echo "$as_me:$LINENO: WARNING: sys/socket.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 7935 | echo "$as_me: WARNING: sys/socket.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 7936 | { echo "$as_me:$LINENO: WARNING: sys/socket.h: proceeding with the compiler's result" >&5 |
| 7937 | echo "$as_me: WARNING: sys/socket.h: proceeding with the compiler's result" >&2;} |
| 7938 | ac_header_preproc=yes |
| 7939 | ;; |
| 7940 | no:yes:* ) |
| 7941 | { echo "$as_me:$LINENO: WARNING: sys/socket.h: present but cannot be compiled" >&5 |
| 7942 | echo "$as_me: WARNING: sys/socket.h: present but cannot be compiled" >&2;} |
| 7943 | { echo "$as_me:$LINENO: WARNING: sys/socket.h: check for missing prerequisite headers?" >&5 |
| 7944 | echo "$as_me: WARNING: sys/socket.h: check for missing prerequisite headers?" >&2;} |
| 7945 | { echo "$as_me:$LINENO: WARNING: sys/socket.h: see the Autoconf documentation" >&5 |
| 7946 | echo "$as_me: WARNING: sys/socket.h: see the Autoconf documentation" >&2;} |
| 7947 | { echo "$as_me:$LINENO: WARNING: sys/socket.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 7948 | echo "$as_me: WARNING: sys/socket.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 7949 | { echo "$as_me:$LINENO: WARNING: sys/socket.h: proceeding with the preprocessor's result" >&5 |
| 7950 | echo "$as_me: WARNING: sys/socket.h: proceeding with the preprocessor's result" >&2;} |
| 7951 | { echo "$as_me:$LINENO: WARNING: sys/socket.h: in the future, the compiler will take precedence" >&5 |
| 7952 | echo "$as_me: WARNING: sys/socket.h: in the future, the compiler will take precedence" >&2;} |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 7953 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7954 | ;; |
| 7955 | esac |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 7956 | { echo "$as_me:$LINENO: checking for sys/socket.h" >&5 |
| 7957 | echo $ECHO_N "checking for sys/socket.h... $ECHO_C" >&6; } |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 7958 | if test "${ac_cv_header_sys_socket_h+set}" = set; then |
| 7959 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 7960 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7961 | ac_cv_header_sys_socket_h=$ac_header_preproc |
| 7962 | fi |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 7963 | { echo "$as_me:$LINENO: result: $ac_cv_header_sys_socket_h" >&5 |
| 7964 | echo "${ECHO_T}$ac_cv_header_sys_socket_h" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7965 | |
| 7966 | fi |
| 7967 | if test $ac_cv_header_sys_socket_h = yes; then |
| 7968 | cat >>confdefs.h <<\_ACEOF |
| 7969 | #define PJ_HAS_SYS_SOCKET_H 1 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 7970 | _ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7971 | |
| 7972 | fi |
| 7973 | |
| 7974 | |
| 7975 | if test "${ac_cv_header_sys_time_h+set}" = set; then |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 7976 | { echo "$as_me:$LINENO: checking for sys/time.h" >&5 |
| 7977 | echo $ECHO_N "checking for sys/time.h... $ECHO_C" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7978 | if test "${ac_cv_header_sys_time_h+set}" = set; then |
| 7979 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7980 | fi |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 7981 | { echo "$as_me:$LINENO: result: $ac_cv_header_sys_time_h" >&5 |
| 7982 | echo "${ECHO_T}$ac_cv_header_sys_time_h" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7983 | else |
| 7984 | # Is the header compilable? |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 7985 | { echo "$as_me:$LINENO: checking sys/time.h usability" >&5 |
| 7986 | echo $ECHO_N "checking sys/time.h usability... $ECHO_C" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7987 | cat >conftest.$ac_ext <<_ACEOF |
| 7988 | /* confdefs.h. */ |
| 7989 | _ACEOF |
| 7990 | cat confdefs.h >>conftest.$ac_ext |
| 7991 | cat >>conftest.$ac_ext <<_ACEOF |
| 7992 | /* end confdefs.h. */ |
| 7993 | $ac_includes_default |
| 7994 | #include <sys/time.h> |
| 7995 | _ACEOF |
| 7996 | rm -f conftest.$ac_objext |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 7997 | if { (ac_try="$ac_compile" |
| 7998 | case "(($ac_try" in |
| 7999 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8000 | *) ac_try_echo=$ac_try;; |
| 8001 | esac |
| 8002 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8003 | (eval "$ac_compile") 2>conftest.er1 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8004 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8005 | grep -v '^ *+' conftest.er1 >conftest.err |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8006 | rm -f conftest.er1 |
| 8007 | cat conftest.err >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8008 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 8009 | (exit $ac_status); } && { |
| 8010 | test -z "$ac_c_werror_flag" || |
| 8011 | test ! -s conftest.err |
| 8012 | } && test -s conftest.$ac_objext; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8013 | ac_header_compiler=yes |
| 8014 | else |
| 8015 | echo "$as_me: failed program was:" >&5 |
| 8016 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8017 | |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 8018 | ac_header_compiler=no |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8019 | fi |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 8020 | |
| 8021 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 8022 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 8023 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8024 | |
| 8025 | # Is the header present? |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 8026 | { echo "$as_me:$LINENO: checking sys/time.h presence" >&5 |
| 8027 | echo $ECHO_N "checking sys/time.h presence... $ECHO_C" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8028 | cat >conftest.$ac_ext <<_ACEOF |
| 8029 | /* confdefs.h. */ |
| 8030 | _ACEOF |
| 8031 | cat confdefs.h >>conftest.$ac_ext |
| 8032 | cat >>conftest.$ac_ext <<_ACEOF |
| 8033 | /* end confdefs.h. */ |
| 8034 | #include <sys/time.h> |
| 8035 | _ACEOF |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 8036 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 8037 | case "(($ac_try" in |
| 8038 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8039 | *) ac_try_echo=$ac_try;; |
| 8040 | esac |
| 8041 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8042 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8043 | ac_status=$? |
| 8044 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8045 | rm -f conftest.er1 |
| 8046 | cat conftest.err >&5 |
| 8047 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 8048 | (exit $ac_status); } >/dev/null && { |
| 8049 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 8050 | test ! -s conftest.err |
| 8051 | }; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8052 | ac_header_preproc=yes |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8053 | else |
| 8054 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8055 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8056 | |
| 8057 | ac_header_preproc=no |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8058 | fi |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 8059 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8060 | rm -f conftest.err conftest.$ac_ext |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 8061 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 8062 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 8063 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8064 | # So? What about this header? |
| 8065 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 8066 | yes:no: ) |
| 8067 | { echo "$as_me:$LINENO: WARNING: sys/time.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 8068 | echo "$as_me: WARNING: sys/time.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 8069 | { echo "$as_me:$LINENO: WARNING: sys/time.h: proceeding with the compiler's result" >&5 |
| 8070 | echo "$as_me: WARNING: sys/time.h: proceeding with the compiler's result" >&2;} |
| 8071 | ac_header_preproc=yes |
| 8072 | ;; |
| 8073 | no:yes:* ) |
| 8074 | { echo "$as_me:$LINENO: WARNING: sys/time.h: present but cannot be compiled" >&5 |
| 8075 | echo "$as_me: WARNING: sys/time.h: present but cannot be compiled" >&2;} |
| 8076 | { echo "$as_me:$LINENO: WARNING: sys/time.h: check for missing prerequisite headers?" >&5 |
| 8077 | echo "$as_me: WARNING: sys/time.h: check for missing prerequisite headers?" >&2;} |
| 8078 | { echo "$as_me:$LINENO: WARNING: sys/time.h: see the Autoconf documentation" >&5 |
| 8079 | echo "$as_me: WARNING: sys/time.h: see the Autoconf documentation" >&2;} |
| 8080 | { echo "$as_me:$LINENO: WARNING: sys/time.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 8081 | echo "$as_me: WARNING: sys/time.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 8082 | { echo "$as_me:$LINENO: WARNING: sys/time.h: proceeding with the preprocessor's result" >&5 |
| 8083 | echo "$as_me: WARNING: sys/time.h: proceeding with the preprocessor's result" >&2;} |
| 8084 | { echo "$as_me:$LINENO: WARNING: sys/time.h: in the future, the compiler will take precedence" >&5 |
| 8085 | echo "$as_me: WARNING: sys/time.h: in the future, the compiler will take precedence" >&2;} |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 8086 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8087 | ;; |
| 8088 | esac |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 8089 | { echo "$as_me:$LINENO: checking for sys/time.h" >&5 |
| 8090 | echo $ECHO_N "checking for sys/time.h... $ECHO_C" >&6; } |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 8091 | if test "${ac_cv_header_sys_time_h+set}" = set; then |
| 8092 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 8093 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8094 | ac_cv_header_sys_time_h=$ac_header_preproc |
| 8095 | fi |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 8096 | { echo "$as_me:$LINENO: result: $ac_cv_header_sys_time_h" >&5 |
| 8097 | echo "${ECHO_T}$ac_cv_header_sys_time_h" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8098 | |
| 8099 | fi |
| 8100 | if test $ac_cv_header_sys_time_h = yes; then |
| 8101 | cat >>confdefs.h <<\_ACEOF |
| 8102 | #define PJ_HAS_SYS_TIME_H 1 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 8103 | _ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8104 | |
| 8105 | fi |
| 8106 | |
| 8107 | |
| 8108 | if test "${ac_cv_header_sys_timeb_h+set}" = set; then |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 8109 | { echo "$as_me:$LINENO: checking for sys/timeb.h" >&5 |
| 8110 | echo $ECHO_N "checking for sys/timeb.h... $ECHO_C" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8111 | if test "${ac_cv_header_sys_timeb_h+set}" = set; then |
| 8112 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8113 | fi |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 8114 | { echo "$as_me:$LINENO: result: $ac_cv_header_sys_timeb_h" >&5 |
| 8115 | echo "${ECHO_T}$ac_cv_header_sys_timeb_h" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8116 | else |
| 8117 | # Is the header compilable? |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 8118 | { echo "$as_me:$LINENO: checking sys/timeb.h usability" >&5 |
| 8119 | echo $ECHO_N "checking sys/timeb.h usability... $ECHO_C" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8120 | cat >conftest.$ac_ext <<_ACEOF |
| 8121 | /* confdefs.h. */ |
| 8122 | _ACEOF |
| 8123 | cat confdefs.h >>conftest.$ac_ext |
| 8124 | cat >>conftest.$ac_ext <<_ACEOF |
| 8125 | /* end confdefs.h. */ |
| 8126 | $ac_includes_default |
| 8127 | #include <sys/timeb.h> |
| 8128 | _ACEOF |
| 8129 | rm -f conftest.$ac_objext |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 8130 | if { (ac_try="$ac_compile" |
| 8131 | case "(($ac_try" in |
| 8132 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8133 | *) ac_try_echo=$ac_try;; |
| 8134 | esac |
| 8135 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8136 | (eval "$ac_compile") 2>conftest.er1 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8137 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8138 | grep -v '^ *+' conftest.er1 >conftest.err |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8139 | rm -f conftest.er1 |
| 8140 | cat conftest.err >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8141 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 8142 | (exit $ac_status); } && { |
| 8143 | test -z "$ac_c_werror_flag" || |
| 8144 | test ! -s conftest.err |
| 8145 | } && test -s conftest.$ac_objext; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8146 | ac_header_compiler=yes |
| 8147 | else |
| 8148 | echo "$as_me: failed program was:" >&5 |
| 8149 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8150 | |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 8151 | ac_header_compiler=no |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8152 | fi |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 8153 | |
| 8154 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 8155 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 8156 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8157 | |
| 8158 | # Is the header present? |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 8159 | { echo "$as_me:$LINENO: checking sys/timeb.h presence" >&5 |
| 8160 | echo $ECHO_N "checking sys/timeb.h presence... $ECHO_C" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8161 | cat >conftest.$ac_ext <<_ACEOF |
| 8162 | /* confdefs.h. */ |
| 8163 | _ACEOF |
| 8164 | cat confdefs.h >>conftest.$ac_ext |
| 8165 | cat >>conftest.$ac_ext <<_ACEOF |
| 8166 | /* end confdefs.h. */ |
| 8167 | #include <sys/timeb.h> |
| 8168 | _ACEOF |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 8169 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 8170 | case "(($ac_try" in |
| 8171 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8172 | *) ac_try_echo=$ac_try;; |
| 8173 | esac |
| 8174 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8175 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8176 | ac_status=$? |
| 8177 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8178 | rm -f conftest.er1 |
| 8179 | cat conftest.err >&5 |
| 8180 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 8181 | (exit $ac_status); } >/dev/null && { |
| 8182 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 8183 | test ! -s conftest.err |
| 8184 | }; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8185 | ac_header_preproc=yes |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8186 | else |
| 8187 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8188 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8189 | |
| 8190 | ac_header_preproc=no |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8191 | fi |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 8192 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8193 | rm -f conftest.err conftest.$ac_ext |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 8194 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 8195 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 8196 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8197 | # So? What about this header? |
| 8198 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 8199 | yes:no: ) |
| 8200 | { echo "$as_me:$LINENO: WARNING: sys/timeb.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 8201 | echo "$as_me: WARNING: sys/timeb.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 8202 | { echo "$as_me:$LINENO: WARNING: sys/timeb.h: proceeding with the compiler's result" >&5 |
| 8203 | echo "$as_me: WARNING: sys/timeb.h: proceeding with the compiler's result" >&2;} |
| 8204 | ac_header_preproc=yes |
| 8205 | ;; |
| 8206 | no:yes:* ) |
| 8207 | { echo "$as_me:$LINENO: WARNING: sys/timeb.h: present but cannot be compiled" >&5 |
| 8208 | echo "$as_me: WARNING: sys/timeb.h: present but cannot be compiled" >&2;} |
| 8209 | { echo "$as_me:$LINENO: WARNING: sys/timeb.h: check for missing prerequisite headers?" >&5 |
| 8210 | echo "$as_me: WARNING: sys/timeb.h: check for missing prerequisite headers?" >&2;} |
| 8211 | { echo "$as_me:$LINENO: WARNING: sys/timeb.h: see the Autoconf documentation" >&5 |
| 8212 | echo "$as_me: WARNING: sys/timeb.h: see the Autoconf documentation" >&2;} |
| 8213 | { echo "$as_me:$LINENO: WARNING: sys/timeb.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 8214 | echo "$as_me: WARNING: sys/timeb.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 8215 | { echo "$as_me:$LINENO: WARNING: sys/timeb.h: proceeding with the preprocessor's result" >&5 |
| 8216 | echo "$as_me: WARNING: sys/timeb.h: proceeding with the preprocessor's result" >&2;} |
| 8217 | { echo "$as_me:$LINENO: WARNING: sys/timeb.h: in the future, the compiler will take precedence" >&5 |
| 8218 | echo "$as_me: WARNING: sys/timeb.h: in the future, the compiler will take precedence" >&2;} |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 8219 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8220 | ;; |
| 8221 | esac |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 8222 | { echo "$as_me:$LINENO: checking for sys/timeb.h" >&5 |
| 8223 | echo $ECHO_N "checking for sys/timeb.h... $ECHO_C" >&6; } |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 8224 | if test "${ac_cv_header_sys_timeb_h+set}" = set; then |
| 8225 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 8226 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8227 | ac_cv_header_sys_timeb_h=$ac_header_preproc |
| 8228 | fi |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 8229 | { echo "$as_me:$LINENO: result: $ac_cv_header_sys_timeb_h" >&5 |
| 8230 | echo "${ECHO_T}$ac_cv_header_sys_timeb_h" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8231 | |
| 8232 | fi |
| 8233 | if test $ac_cv_header_sys_timeb_h = yes; then |
| 8234 | cat >>confdefs.h <<\_ACEOF |
| 8235 | #define PJ_HAS_SYS_TIMEB_H 1 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 8236 | _ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8237 | |
| 8238 | fi |
| 8239 | |
| 8240 | |
| 8241 | if test "${ac_cv_header_sys_types_h+set}" = set; then |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 8242 | { echo "$as_me:$LINENO: checking for sys/types.h" >&5 |
| 8243 | echo $ECHO_N "checking for sys/types.h... $ECHO_C" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8244 | if test "${ac_cv_header_sys_types_h+set}" = set; then |
| 8245 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8246 | fi |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 8247 | { echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h" >&5 |
| 8248 | echo "${ECHO_T}$ac_cv_header_sys_types_h" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8249 | else |
| 8250 | # Is the header compilable? |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 8251 | { echo "$as_me:$LINENO: checking sys/types.h usability" >&5 |
| 8252 | echo $ECHO_N "checking sys/types.h usability... $ECHO_C" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8253 | cat >conftest.$ac_ext <<_ACEOF |
| 8254 | /* confdefs.h. */ |
| 8255 | _ACEOF |
| 8256 | cat confdefs.h >>conftest.$ac_ext |
| 8257 | cat >>conftest.$ac_ext <<_ACEOF |
| 8258 | /* end confdefs.h. */ |
| 8259 | $ac_includes_default |
| 8260 | #include <sys/types.h> |
| 8261 | _ACEOF |
| 8262 | rm -f conftest.$ac_objext |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 8263 | if { (ac_try="$ac_compile" |
| 8264 | case "(($ac_try" in |
| 8265 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8266 | *) ac_try_echo=$ac_try;; |
| 8267 | esac |
| 8268 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8269 | (eval "$ac_compile") 2>conftest.er1 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8270 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8271 | grep -v '^ *+' conftest.er1 >conftest.err |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8272 | rm -f conftest.er1 |
| 8273 | cat conftest.err >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8274 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 8275 | (exit $ac_status); } && { |
| 8276 | test -z "$ac_c_werror_flag" || |
| 8277 | test ! -s conftest.err |
| 8278 | } && test -s conftest.$ac_objext; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8279 | ac_header_compiler=yes |
| 8280 | else |
| 8281 | echo "$as_me: failed program was:" >&5 |
| 8282 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8283 | |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 8284 | ac_header_compiler=no |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8285 | fi |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 8286 | |
| 8287 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 8288 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 8289 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8290 | |
| 8291 | # Is the header present? |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 8292 | { echo "$as_me:$LINENO: checking sys/types.h presence" >&5 |
| 8293 | echo $ECHO_N "checking sys/types.h presence... $ECHO_C" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8294 | cat >conftest.$ac_ext <<_ACEOF |
| 8295 | /* confdefs.h. */ |
| 8296 | _ACEOF |
| 8297 | cat confdefs.h >>conftest.$ac_ext |
| 8298 | cat >>conftest.$ac_ext <<_ACEOF |
| 8299 | /* end confdefs.h. */ |
| 8300 | #include <sys/types.h> |
| 8301 | _ACEOF |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 8302 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 8303 | case "(($ac_try" in |
| 8304 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8305 | *) ac_try_echo=$ac_try;; |
| 8306 | esac |
| 8307 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8308 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8309 | ac_status=$? |
| 8310 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8311 | rm -f conftest.er1 |
| 8312 | cat conftest.err >&5 |
| 8313 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 8314 | (exit $ac_status); } >/dev/null && { |
| 8315 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 8316 | test ! -s conftest.err |
| 8317 | }; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8318 | ac_header_preproc=yes |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8319 | else |
| 8320 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8321 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8322 | |
| 8323 | ac_header_preproc=no |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8324 | fi |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 8325 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8326 | rm -f conftest.err conftest.$ac_ext |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 8327 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 8328 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 8329 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8330 | # So? What about this header? |
| 8331 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 8332 | yes:no: ) |
| 8333 | { echo "$as_me:$LINENO: WARNING: sys/types.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 8334 | echo "$as_me: WARNING: sys/types.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 8335 | { echo "$as_me:$LINENO: WARNING: sys/types.h: proceeding with the compiler's result" >&5 |
| 8336 | echo "$as_me: WARNING: sys/types.h: proceeding with the compiler's result" >&2;} |
| 8337 | ac_header_preproc=yes |
| 8338 | ;; |
| 8339 | no:yes:* ) |
| 8340 | { echo "$as_me:$LINENO: WARNING: sys/types.h: present but cannot be compiled" >&5 |
| 8341 | echo "$as_me: WARNING: sys/types.h: present but cannot be compiled" >&2;} |
| 8342 | { echo "$as_me:$LINENO: WARNING: sys/types.h: check for missing prerequisite headers?" >&5 |
| 8343 | echo "$as_me: WARNING: sys/types.h: check for missing prerequisite headers?" >&2;} |
| 8344 | { echo "$as_me:$LINENO: WARNING: sys/types.h: see the Autoconf documentation" >&5 |
| 8345 | echo "$as_me: WARNING: sys/types.h: see the Autoconf documentation" >&2;} |
| 8346 | { echo "$as_me:$LINENO: WARNING: sys/types.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 8347 | echo "$as_me: WARNING: sys/types.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 8348 | { echo "$as_me:$LINENO: WARNING: sys/types.h: proceeding with the preprocessor's result" >&5 |
| 8349 | echo "$as_me: WARNING: sys/types.h: proceeding with the preprocessor's result" >&2;} |
| 8350 | { echo "$as_me:$LINENO: WARNING: sys/types.h: in the future, the compiler will take precedence" >&5 |
| 8351 | echo "$as_me: WARNING: sys/types.h: in the future, the compiler will take precedence" >&2;} |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 8352 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8353 | ;; |
| 8354 | esac |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 8355 | { echo "$as_me:$LINENO: checking for sys/types.h" >&5 |
| 8356 | echo $ECHO_N "checking for sys/types.h... $ECHO_C" >&6; } |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 8357 | if test "${ac_cv_header_sys_types_h+set}" = set; then |
| 8358 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 8359 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8360 | ac_cv_header_sys_types_h=$ac_header_preproc |
| 8361 | fi |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 8362 | { echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h" >&5 |
| 8363 | echo "${ECHO_T}$ac_cv_header_sys_types_h" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8364 | |
| 8365 | fi |
| 8366 | if test $ac_cv_header_sys_types_h = yes; then |
| 8367 | cat >>confdefs.h <<\_ACEOF |
| 8368 | #define PJ_HAS_SYS_TYPES_H 1 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 8369 | _ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8370 | |
| 8371 | fi |
| 8372 | |
| 8373 | |
| 8374 | if test "${ac_cv_header_time_h+set}" = set; then |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 8375 | { echo "$as_me:$LINENO: checking for time.h" >&5 |
| 8376 | echo $ECHO_N "checking for time.h... $ECHO_C" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8377 | if test "${ac_cv_header_time_h+set}" = set; then |
| 8378 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8379 | fi |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 8380 | { echo "$as_me:$LINENO: result: $ac_cv_header_time_h" >&5 |
| 8381 | echo "${ECHO_T}$ac_cv_header_time_h" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8382 | else |
| 8383 | # Is the header compilable? |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 8384 | { echo "$as_me:$LINENO: checking time.h usability" >&5 |
| 8385 | echo $ECHO_N "checking time.h usability... $ECHO_C" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8386 | cat >conftest.$ac_ext <<_ACEOF |
| 8387 | /* confdefs.h. */ |
| 8388 | _ACEOF |
| 8389 | cat confdefs.h >>conftest.$ac_ext |
| 8390 | cat >>conftest.$ac_ext <<_ACEOF |
| 8391 | /* end confdefs.h. */ |
| 8392 | $ac_includes_default |
| 8393 | #include <time.h> |
| 8394 | _ACEOF |
| 8395 | rm -f conftest.$ac_objext |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 8396 | if { (ac_try="$ac_compile" |
| 8397 | case "(($ac_try" in |
| 8398 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8399 | *) ac_try_echo=$ac_try;; |
| 8400 | esac |
| 8401 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8402 | (eval "$ac_compile") 2>conftest.er1 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8403 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8404 | grep -v '^ *+' conftest.er1 >conftest.err |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8405 | rm -f conftest.er1 |
| 8406 | cat conftest.err >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8407 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 8408 | (exit $ac_status); } && { |
| 8409 | test -z "$ac_c_werror_flag" || |
| 8410 | test ! -s conftest.err |
| 8411 | } && test -s conftest.$ac_objext; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8412 | ac_header_compiler=yes |
| 8413 | else |
| 8414 | echo "$as_me: failed program was:" >&5 |
| 8415 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8416 | |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 8417 | ac_header_compiler=no |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8418 | fi |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 8419 | |
| 8420 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 8421 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 8422 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8423 | |
| 8424 | # Is the header present? |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 8425 | { echo "$as_me:$LINENO: checking time.h presence" >&5 |
| 8426 | echo $ECHO_N "checking time.h presence... $ECHO_C" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8427 | cat >conftest.$ac_ext <<_ACEOF |
| 8428 | /* confdefs.h. */ |
| 8429 | _ACEOF |
| 8430 | cat confdefs.h >>conftest.$ac_ext |
| 8431 | cat >>conftest.$ac_ext <<_ACEOF |
| 8432 | /* end confdefs.h. */ |
| 8433 | #include <time.h> |
| 8434 | _ACEOF |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 8435 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 8436 | case "(($ac_try" in |
| 8437 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8438 | *) ac_try_echo=$ac_try;; |
| 8439 | esac |
| 8440 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8441 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8442 | ac_status=$? |
| 8443 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8444 | rm -f conftest.er1 |
| 8445 | cat conftest.err >&5 |
| 8446 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 8447 | (exit $ac_status); } >/dev/null && { |
| 8448 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 8449 | test ! -s conftest.err |
| 8450 | }; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8451 | ac_header_preproc=yes |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8452 | else |
| 8453 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8454 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8455 | |
| 8456 | ac_header_preproc=no |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8457 | fi |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 8458 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8459 | rm -f conftest.err conftest.$ac_ext |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 8460 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 8461 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 8462 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8463 | # So? What about this header? |
| 8464 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 8465 | yes:no: ) |
| 8466 | { echo "$as_me:$LINENO: WARNING: time.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 8467 | echo "$as_me: WARNING: time.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 8468 | { echo "$as_me:$LINENO: WARNING: time.h: proceeding with the compiler's result" >&5 |
| 8469 | echo "$as_me: WARNING: time.h: proceeding with the compiler's result" >&2;} |
| 8470 | ac_header_preproc=yes |
| 8471 | ;; |
| 8472 | no:yes:* ) |
| 8473 | { echo "$as_me:$LINENO: WARNING: time.h: present but cannot be compiled" >&5 |
| 8474 | echo "$as_me: WARNING: time.h: present but cannot be compiled" >&2;} |
| 8475 | { echo "$as_me:$LINENO: WARNING: time.h: check for missing prerequisite headers?" >&5 |
| 8476 | echo "$as_me: WARNING: time.h: check for missing prerequisite headers?" >&2;} |
| 8477 | { echo "$as_me:$LINENO: WARNING: time.h: see the Autoconf documentation" >&5 |
| 8478 | echo "$as_me: WARNING: time.h: see the Autoconf documentation" >&2;} |
| 8479 | { echo "$as_me:$LINENO: WARNING: time.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 8480 | echo "$as_me: WARNING: time.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 8481 | { echo "$as_me:$LINENO: WARNING: time.h: proceeding with the preprocessor's result" >&5 |
| 8482 | echo "$as_me: WARNING: time.h: proceeding with the preprocessor's result" >&2;} |
| 8483 | { echo "$as_me:$LINENO: WARNING: time.h: in the future, the compiler will take precedence" >&5 |
| 8484 | echo "$as_me: WARNING: time.h: in the future, the compiler will take precedence" >&2;} |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 8485 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8486 | ;; |
| 8487 | esac |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 8488 | { echo "$as_me:$LINENO: checking for time.h" >&5 |
| 8489 | echo $ECHO_N "checking for time.h... $ECHO_C" >&6; } |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 8490 | if test "${ac_cv_header_time_h+set}" = set; then |
| 8491 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 8492 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8493 | ac_cv_header_time_h=$ac_header_preproc |
| 8494 | fi |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 8495 | { echo "$as_me:$LINENO: result: $ac_cv_header_time_h" >&5 |
| 8496 | echo "${ECHO_T}$ac_cv_header_time_h" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8497 | |
| 8498 | fi |
| 8499 | if test $ac_cv_header_time_h = yes; then |
| 8500 | cat >>confdefs.h <<\_ACEOF |
| 8501 | #define PJ_HAS_TIME_H 1 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 8502 | _ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8503 | |
| 8504 | fi |
| 8505 | |
| 8506 | |
| 8507 | if test "${ac_cv_header_unistd_h+set}" = set; then |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 8508 | { echo "$as_me:$LINENO: checking for unistd.h" >&5 |
| 8509 | echo $ECHO_N "checking for unistd.h... $ECHO_C" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8510 | if test "${ac_cv_header_unistd_h+set}" = set; then |
| 8511 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8512 | fi |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 8513 | { echo "$as_me:$LINENO: result: $ac_cv_header_unistd_h" >&5 |
| 8514 | echo "${ECHO_T}$ac_cv_header_unistd_h" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8515 | else |
| 8516 | # Is the header compilable? |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 8517 | { echo "$as_me:$LINENO: checking unistd.h usability" >&5 |
| 8518 | echo $ECHO_N "checking unistd.h usability... $ECHO_C" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8519 | cat >conftest.$ac_ext <<_ACEOF |
| 8520 | /* confdefs.h. */ |
| 8521 | _ACEOF |
| 8522 | cat confdefs.h >>conftest.$ac_ext |
| 8523 | cat >>conftest.$ac_ext <<_ACEOF |
| 8524 | /* end confdefs.h. */ |
| 8525 | $ac_includes_default |
| 8526 | #include <unistd.h> |
| 8527 | _ACEOF |
| 8528 | rm -f conftest.$ac_objext |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 8529 | if { (ac_try="$ac_compile" |
| 8530 | case "(($ac_try" in |
| 8531 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8532 | *) ac_try_echo=$ac_try;; |
| 8533 | esac |
| 8534 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8535 | (eval "$ac_compile") 2>conftest.er1 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8536 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8537 | grep -v '^ *+' conftest.er1 >conftest.err |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8538 | rm -f conftest.er1 |
| 8539 | cat conftest.err >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8540 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 8541 | (exit $ac_status); } && { |
| 8542 | test -z "$ac_c_werror_flag" || |
| 8543 | test ! -s conftest.err |
| 8544 | } && test -s conftest.$ac_objext; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8545 | ac_header_compiler=yes |
| 8546 | else |
| 8547 | echo "$as_me: failed program was:" >&5 |
| 8548 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8549 | |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 8550 | ac_header_compiler=no |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8551 | fi |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 8552 | |
| 8553 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 8554 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 8555 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8556 | |
| 8557 | # Is the header present? |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 8558 | { echo "$as_me:$LINENO: checking unistd.h presence" >&5 |
| 8559 | echo $ECHO_N "checking unistd.h presence... $ECHO_C" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8560 | cat >conftest.$ac_ext <<_ACEOF |
| 8561 | /* confdefs.h. */ |
| 8562 | _ACEOF |
| 8563 | cat confdefs.h >>conftest.$ac_ext |
| 8564 | cat >>conftest.$ac_ext <<_ACEOF |
| 8565 | /* end confdefs.h. */ |
| 8566 | #include <unistd.h> |
| 8567 | _ACEOF |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 8568 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 8569 | case "(($ac_try" in |
| 8570 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8571 | *) ac_try_echo=$ac_try;; |
| 8572 | esac |
| 8573 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8574 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8575 | ac_status=$? |
| 8576 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8577 | rm -f conftest.er1 |
| 8578 | cat conftest.err >&5 |
| 8579 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 8580 | (exit $ac_status); } >/dev/null && { |
| 8581 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 8582 | test ! -s conftest.err |
| 8583 | }; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8584 | ac_header_preproc=yes |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8585 | else |
| 8586 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8587 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8588 | |
| 8589 | ac_header_preproc=no |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8590 | fi |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 8591 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8592 | rm -f conftest.err conftest.$ac_ext |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 8593 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 8594 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 8595 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8596 | # So? What about this header? |
| 8597 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 8598 | yes:no: ) |
| 8599 | { echo "$as_me:$LINENO: WARNING: unistd.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 8600 | echo "$as_me: WARNING: unistd.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 8601 | { echo "$as_me:$LINENO: WARNING: unistd.h: proceeding with the compiler's result" >&5 |
| 8602 | echo "$as_me: WARNING: unistd.h: proceeding with the compiler's result" >&2;} |
| 8603 | ac_header_preproc=yes |
| 8604 | ;; |
| 8605 | no:yes:* ) |
| 8606 | { echo "$as_me:$LINENO: WARNING: unistd.h: present but cannot be compiled" >&5 |
| 8607 | echo "$as_me: WARNING: unistd.h: present but cannot be compiled" >&2;} |
| 8608 | { echo "$as_me:$LINENO: WARNING: unistd.h: check for missing prerequisite headers?" >&5 |
| 8609 | echo "$as_me: WARNING: unistd.h: check for missing prerequisite headers?" >&2;} |
| 8610 | { echo "$as_me:$LINENO: WARNING: unistd.h: see the Autoconf documentation" >&5 |
| 8611 | echo "$as_me: WARNING: unistd.h: see the Autoconf documentation" >&2;} |
| 8612 | { echo "$as_me:$LINENO: WARNING: unistd.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 8613 | echo "$as_me: WARNING: unistd.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 8614 | { echo "$as_me:$LINENO: WARNING: unistd.h: proceeding with the preprocessor's result" >&5 |
| 8615 | echo "$as_me: WARNING: unistd.h: proceeding with the preprocessor's result" >&2;} |
| 8616 | { echo "$as_me:$LINENO: WARNING: unistd.h: in the future, the compiler will take precedence" >&5 |
| 8617 | echo "$as_me: WARNING: unistd.h: in the future, the compiler will take precedence" >&2;} |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 8618 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8619 | ;; |
| 8620 | esac |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 8621 | { echo "$as_me:$LINENO: checking for unistd.h" >&5 |
| 8622 | echo $ECHO_N "checking for unistd.h... $ECHO_C" >&6; } |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 8623 | if test "${ac_cv_header_unistd_h+set}" = set; then |
| 8624 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 8625 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8626 | ac_cv_header_unistd_h=$ac_header_preproc |
| 8627 | fi |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 8628 | { echo "$as_me:$LINENO: result: $ac_cv_header_unistd_h" >&5 |
| 8629 | echo "${ECHO_T}$ac_cv_header_unistd_h" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8630 | |
| 8631 | fi |
| 8632 | if test $ac_cv_header_unistd_h = yes; then |
| 8633 | cat >>confdefs.h <<\_ACEOF |
| 8634 | #define PJ_HAS_UNISTD_H 1 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 8635 | _ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8636 | |
| 8637 | fi |
| 8638 | |
| 8639 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8640 | if test "${ac_cv_header_winsock_h+set}" = set; then |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 8641 | { echo "$as_me:$LINENO: checking for winsock.h" >&5 |
| 8642 | echo $ECHO_N "checking for winsock.h... $ECHO_C" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8643 | if test "${ac_cv_header_winsock_h+set}" = set; then |
| 8644 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8645 | fi |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 8646 | { echo "$as_me:$LINENO: result: $ac_cv_header_winsock_h" >&5 |
| 8647 | echo "${ECHO_T}$ac_cv_header_winsock_h" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8648 | else |
| 8649 | # Is the header compilable? |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 8650 | { echo "$as_me:$LINENO: checking winsock.h usability" >&5 |
| 8651 | echo $ECHO_N "checking winsock.h usability... $ECHO_C" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8652 | cat >conftest.$ac_ext <<_ACEOF |
| 8653 | /* confdefs.h. */ |
| 8654 | _ACEOF |
| 8655 | cat confdefs.h >>conftest.$ac_ext |
| 8656 | cat >>conftest.$ac_ext <<_ACEOF |
| 8657 | /* end confdefs.h. */ |
| 8658 | $ac_includes_default |
| 8659 | #include <winsock.h> |
| 8660 | _ACEOF |
| 8661 | rm -f conftest.$ac_objext |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 8662 | if { (ac_try="$ac_compile" |
| 8663 | case "(($ac_try" in |
| 8664 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8665 | *) ac_try_echo=$ac_try;; |
| 8666 | esac |
| 8667 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8668 | (eval "$ac_compile") 2>conftest.er1 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8669 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8670 | grep -v '^ *+' conftest.er1 >conftest.err |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8671 | rm -f conftest.er1 |
| 8672 | cat conftest.err >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8673 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 8674 | (exit $ac_status); } && { |
| 8675 | test -z "$ac_c_werror_flag" || |
| 8676 | test ! -s conftest.err |
| 8677 | } && test -s conftest.$ac_objext; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8678 | ac_header_compiler=yes |
| 8679 | else |
| 8680 | echo "$as_me: failed program was:" >&5 |
| 8681 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8682 | |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 8683 | ac_header_compiler=no |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8684 | fi |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 8685 | |
| 8686 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 8687 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 8688 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8689 | |
| 8690 | # Is the header present? |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 8691 | { echo "$as_me:$LINENO: checking winsock.h presence" >&5 |
| 8692 | echo $ECHO_N "checking winsock.h presence... $ECHO_C" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8693 | cat >conftest.$ac_ext <<_ACEOF |
| 8694 | /* confdefs.h. */ |
| 8695 | _ACEOF |
| 8696 | cat confdefs.h >>conftest.$ac_ext |
| 8697 | cat >>conftest.$ac_ext <<_ACEOF |
| 8698 | /* end confdefs.h. */ |
| 8699 | #include <winsock.h> |
| 8700 | _ACEOF |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 8701 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 8702 | case "(($ac_try" in |
| 8703 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8704 | *) ac_try_echo=$ac_try;; |
| 8705 | esac |
| 8706 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8707 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8708 | ac_status=$? |
| 8709 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8710 | rm -f conftest.er1 |
| 8711 | cat conftest.err >&5 |
| 8712 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 8713 | (exit $ac_status); } >/dev/null && { |
| 8714 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 8715 | test ! -s conftest.err |
| 8716 | }; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8717 | ac_header_preproc=yes |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8718 | else |
| 8719 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8720 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8721 | |
| 8722 | ac_header_preproc=no |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8723 | fi |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 8724 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8725 | rm -f conftest.err conftest.$ac_ext |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 8726 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 8727 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 8728 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8729 | # So? What about this header? |
| 8730 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 8731 | yes:no: ) |
| 8732 | { echo "$as_me:$LINENO: WARNING: winsock.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 8733 | echo "$as_me: WARNING: winsock.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 8734 | { echo "$as_me:$LINENO: WARNING: winsock.h: proceeding with the compiler's result" >&5 |
| 8735 | echo "$as_me: WARNING: winsock.h: proceeding with the compiler's result" >&2;} |
| 8736 | ac_header_preproc=yes |
| 8737 | ;; |
| 8738 | no:yes:* ) |
| 8739 | { echo "$as_me:$LINENO: WARNING: winsock.h: present but cannot be compiled" >&5 |
| 8740 | echo "$as_me: WARNING: winsock.h: present but cannot be compiled" >&2;} |
| 8741 | { echo "$as_me:$LINENO: WARNING: winsock.h: check for missing prerequisite headers?" >&5 |
| 8742 | echo "$as_me: WARNING: winsock.h: check for missing prerequisite headers?" >&2;} |
| 8743 | { echo "$as_me:$LINENO: WARNING: winsock.h: see the Autoconf documentation" >&5 |
| 8744 | echo "$as_me: WARNING: winsock.h: see the Autoconf documentation" >&2;} |
| 8745 | { echo "$as_me:$LINENO: WARNING: winsock.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 8746 | echo "$as_me: WARNING: winsock.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 8747 | { echo "$as_me:$LINENO: WARNING: winsock.h: proceeding with the preprocessor's result" >&5 |
| 8748 | echo "$as_me: WARNING: winsock.h: proceeding with the preprocessor's result" >&2;} |
| 8749 | { echo "$as_me:$LINENO: WARNING: winsock.h: in the future, the compiler will take precedence" >&5 |
| 8750 | echo "$as_me: WARNING: winsock.h: in the future, the compiler will take precedence" >&2;} |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 8751 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8752 | ;; |
| 8753 | esac |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 8754 | { echo "$as_me:$LINENO: checking for winsock.h" >&5 |
| 8755 | echo $ECHO_N "checking for winsock.h... $ECHO_C" >&6; } |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 8756 | if test "${ac_cv_header_winsock_h+set}" = set; then |
| 8757 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 8758 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8759 | ac_cv_header_winsock_h=$ac_header_preproc |
| 8760 | fi |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 8761 | { echo "$as_me:$LINENO: result: $ac_cv_header_winsock_h" >&5 |
| 8762 | echo "${ECHO_T}$ac_cv_header_winsock_h" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8763 | |
| 8764 | fi |
| 8765 | if test $ac_cv_header_winsock_h = yes; then |
| 8766 | cat >>confdefs.h <<\_ACEOF |
| 8767 | #define PJ_HAS_WINSOCK_H 1 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 8768 | _ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8769 | |
| 8770 | fi |
| 8771 | |
| 8772 | |
| 8773 | if test "${ac_cv_header_winsock2_h+set}" = set; then |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 8774 | { echo "$as_me:$LINENO: checking for winsock2.h" >&5 |
| 8775 | echo $ECHO_N "checking for winsock2.h... $ECHO_C" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8776 | if test "${ac_cv_header_winsock2_h+set}" = set; then |
| 8777 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8778 | fi |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 8779 | { echo "$as_me:$LINENO: result: $ac_cv_header_winsock2_h" >&5 |
| 8780 | echo "${ECHO_T}$ac_cv_header_winsock2_h" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8781 | else |
| 8782 | # Is the header compilable? |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 8783 | { echo "$as_me:$LINENO: checking winsock2.h usability" >&5 |
| 8784 | echo $ECHO_N "checking winsock2.h usability... $ECHO_C" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8785 | cat >conftest.$ac_ext <<_ACEOF |
| 8786 | /* confdefs.h. */ |
| 8787 | _ACEOF |
| 8788 | cat confdefs.h >>conftest.$ac_ext |
| 8789 | cat >>conftest.$ac_ext <<_ACEOF |
| 8790 | /* end confdefs.h. */ |
| 8791 | $ac_includes_default |
| 8792 | #include <winsock2.h> |
| 8793 | _ACEOF |
| 8794 | rm -f conftest.$ac_objext |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 8795 | if { (ac_try="$ac_compile" |
| 8796 | case "(($ac_try" in |
| 8797 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8798 | *) ac_try_echo=$ac_try;; |
| 8799 | esac |
| 8800 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8801 | (eval "$ac_compile") 2>conftest.er1 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8802 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8803 | grep -v '^ *+' conftest.er1 >conftest.err |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8804 | rm -f conftest.er1 |
| 8805 | cat conftest.err >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8806 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 8807 | (exit $ac_status); } && { |
| 8808 | test -z "$ac_c_werror_flag" || |
| 8809 | test ! -s conftest.err |
| 8810 | } && test -s conftest.$ac_objext; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8811 | ac_header_compiler=yes |
| 8812 | else |
| 8813 | echo "$as_me: failed program was:" >&5 |
| 8814 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8815 | |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 8816 | ac_header_compiler=no |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8817 | fi |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 8818 | |
| 8819 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 8820 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 8821 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8822 | |
| 8823 | # Is the header present? |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 8824 | { echo "$as_me:$LINENO: checking winsock2.h presence" >&5 |
| 8825 | echo $ECHO_N "checking winsock2.h presence... $ECHO_C" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8826 | cat >conftest.$ac_ext <<_ACEOF |
| 8827 | /* confdefs.h. */ |
| 8828 | _ACEOF |
| 8829 | cat confdefs.h >>conftest.$ac_ext |
| 8830 | cat >>conftest.$ac_ext <<_ACEOF |
| 8831 | /* end confdefs.h. */ |
| 8832 | #include <winsock2.h> |
| 8833 | _ACEOF |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 8834 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 8835 | case "(($ac_try" in |
| 8836 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8837 | *) ac_try_echo=$ac_try;; |
| 8838 | esac |
| 8839 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8840 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8841 | ac_status=$? |
| 8842 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8843 | rm -f conftest.er1 |
| 8844 | cat conftest.err >&5 |
| 8845 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 8846 | (exit $ac_status); } >/dev/null && { |
| 8847 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 8848 | test ! -s conftest.err |
| 8849 | }; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8850 | ac_header_preproc=yes |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8851 | else |
| 8852 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8853 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8854 | |
| 8855 | ac_header_preproc=no |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8856 | fi |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 8857 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8858 | rm -f conftest.err conftest.$ac_ext |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 8859 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 8860 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 8861 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8862 | # So? What about this header? |
| 8863 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 8864 | yes:no: ) |
| 8865 | { echo "$as_me:$LINENO: WARNING: winsock2.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 8866 | echo "$as_me: WARNING: winsock2.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 8867 | { echo "$as_me:$LINENO: WARNING: winsock2.h: proceeding with the compiler's result" >&5 |
| 8868 | echo "$as_me: WARNING: winsock2.h: proceeding with the compiler's result" >&2;} |
| 8869 | ac_header_preproc=yes |
| 8870 | ;; |
| 8871 | no:yes:* ) |
| 8872 | { echo "$as_me:$LINENO: WARNING: winsock2.h: present but cannot be compiled" >&5 |
| 8873 | echo "$as_me: WARNING: winsock2.h: present but cannot be compiled" >&2;} |
| 8874 | { echo "$as_me:$LINENO: WARNING: winsock2.h: check for missing prerequisite headers?" >&5 |
| 8875 | echo "$as_me: WARNING: winsock2.h: check for missing prerequisite headers?" >&2;} |
| 8876 | { echo "$as_me:$LINENO: WARNING: winsock2.h: see the Autoconf documentation" >&5 |
| 8877 | echo "$as_me: WARNING: winsock2.h: see the Autoconf documentation" >&2;} |
| 8878 | { echo "$as_me:$LINENO: WARNING: winsock2.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 8879 | echo "$as_me: WARNING: winsock2.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 8880 | { echo "$as_me:$LINENO: WARNING: winsock2.h: proceeding with the preprocessor's result" >&5 |
| 8881 | echo "$as_me: WARNING: winsock2.h: proceeding with the preprocessor's result" >&2;} |
| 8882 | { echo "$as_me:$LINENO: WARNING: winsock2.h: in the future, the compiler will take precedence" >&5 |
| 8883 | echo "$as_me: WARNING: winsock2.h: in the future, the compiler will take precedence" >&2;} |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 8884 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8885 | ;; |
| 8886 | esac |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 8887 | { echo "$as_me:$LINENO: checking for winsock2.h" >&5 |
| 8888 | echo $ECHO_N "checking for winsock2.h... $ECHO_C" >&6; } |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 8889 | if test "${ac_cv_header_winsock2_h+set}" = set; then |
| 8890 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 8891 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8892 | ac_cv_header_winsock2_h=$ac_header_preproc |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8893 | fi |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 8894 | { echo "$as_me:$LINENO: result: $ac_cv_header_winsock2_h" >&5 |
| 8895 | echo "${ECHO_T}$ac_cv_header_winsock2_h" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8896 | |
| 8897 | fi |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8898 | if test $ac_cv_header_winsock2_h = yes; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8899 | cat >>confdefs.h <<\_ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8900 | #define PJ_HAS_WINSOCK2_H 1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8901 | _ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8902 | |
| 8903 | fi |
| 8904 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8905 | |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 8906 | { echo "$as_me:$LINENO: checking for mswsock.h" >&5 |
| 8907 | echo $ECHO_N "checking for mswsock.h... $ECHO_C" >&6; } |
Benny Prijono | a9948e6 | 2008-03-25 14:03:01 +0000 | [diff] [blame] | 8908 | if test "${ac_cv_header_mswsock_h+set}" = set; then |
| 8909 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8910 | else |
| 8911 | cat >conftest.$ac_ext <<_ACEOF |
| 8912 | /* confdefs.h. */ |
| 8913 | _ACEOF |
| 8914 | cat confdefs.h >>conftest.$ac_ext |
| 8915 | cat >>conftest.$ac_ext <<_ACEOF |
| 8916 | /* end confdefs.h. */ |
| 8917 | #if PJ_HAS_WINSOCK2_H |
| 8918 | # include <winsock2.h> |
| 8919 | #elif PJ_HAS_WINSOCK_H |
| 8920 | # include <winsock.h> |
| 8921 | #endif |
| 8922 | |
| 8923 | |
| 8924 | #include <mswsock.h> |
| 8925 | _ACEOF |
| 8926 | rm -f conftest.$ac_objext |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 8927 | if { (ac_try="$ac_compile" |
| 8928 | case "(($ac_try" in |
| 8929 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8930 | *) ac_try_echo=$ac_try;; |
| 8931 | esac |
| 8932 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8933 | (eval "$ac_compile") 2>conftest.er1 |
Benny Prijono | a9948e6 | 2008-03-25 14:03:01 +0000 | [diff] [blame] | 8934 | ac_status=$? |
| 8935 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8936 | rm -f conftest.er1 |
| 8937 | cat conftest.err >&5 |
| 8938 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 8939 | (exit $ac_status); } && { |
| 8940 | test -z "$ac_c_werror_flag" || |
| 8941 | test ! -s conftest.err |
| 8942 | } && test -s conftest.$ac_objext; then |
Benny Prijono | a9948e6 | 2008-03-25 14:03:01 +0000 | [diff] [blame] | 8943 | ac_cv_header_mswsock_h=yes |
| 8944 | else |
| 8945 | echo "$as_me: failed program was:" >&5 |
| 8946 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8947 | |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 8948 | ac_cv_header_mswsock_h=no |
Benny Prijono | a9948e6 | 2008-03-25 14:03:01 +0000 | [diff] [blame] | 8949 | fi |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 8950 | |
| 8951 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Benny Prijono | a9948e6 | 2008-03-25 14:03:01 +0000 | [diff] [blame] | 8952 | fi |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 8953 | { echo "$as_me:$LINENO: result: $ac_cv_header_mswsock_h" >&5 |
| 8954 | echo "${ECHO_T}$ac_cv_header_mswsock_h" >&6; } |
Benny Prijono | a9948e6 | 2008-03-25 14:03:01 +0000 | [diff] [blame] | 8955 | if test $ac_cv_header_mswsock_h = yes; then |
| 8956 | cat >>confdefs.h <<\_ACEOF |
| 8957 | #define PJ_HAS_MSWSOCK_H 1 |
| 8958 | _ACEOF |
| 8959 | |
| 8960 | fi |
| 8961 | |
| 8962 | |
Benny Prijono | 4e48b51 | 2007-05-16 13:41:00 +0000 | [diff] [blame] | 8963 | if test "${ac_cv_header_uuid_uuid_h+set}" = set; then |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 8964 | { echo "$as_me:$LINENO: checking for uuid/uuid.h" >&5 |
| 8965 | echo $ECHO_N "checking for uuid/uuid.h... $ECHO_C" >&6; } |
Benny Prijono | 4e48b51 | 2007-05-16 13:41:00 +0000 | [diff] [blame] | 8966 | if test "${ac_cv_header_uuid_uuid_h+set}" = set; then |
| 8967 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8968 | fi |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 8969 | { echo "$as_me:$LINENO: result: $ac_cv_header_uuid_uuid_h" >&5 |
| 8970 | echo "${ECHO_T}$ac_cv_header_uuid_uuid_h" >&6; } |
Benny Prijono | 4e48b51 | 2007-05-16 13:41:00 +0000 | [diff] [blame] | 8971 | else |
| 8972 | # Is the header compilable? |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 8973 | { echo "$as_me:$LINENO: checking uuid/uuid.h usability" >&5 |
| 8974 | echo $ECHO_N "checking uuid/uuid.h usability... $ECHO_C" >&6; } |
Benny Prijono | 4e48b51 | 2007-05-16 13:41:00 +0000 | [diff] [blame] | 8975 | cat >conftest.$ac_ext <<_ACEOF |
| 8976 | /* confdefs.h. */ |
| 8977 | _ACEOF |
| 8978 | cat confdefs.h >>conftest.$ac_ext |
| 8979 | cat >>conftest.$ac_ext <<_ACEOF |
| 8980 | /* end confdefs.h. */ |
| 8981 | $ac_includes_default |
| 8982 | #include <uuid/uuid.h> |
| 8983 | _ACEOF |
| 8984 | rm -f conftest.$ac_objext |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 8985 | if { (ac_try="$ac_compile" |
| 8986 | case "(($ac_try" in |
| 8987 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8988 | *) ac_try_echo=$ac_try;; |
| 8989 | esac |
| 8990 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8991 | (eval "$ac_compile") 2>conftest.er1 |
Benny Prijono | 4e48b51 | 2007-05-16 13:41:00 +0000 | [diff] [blame] | 8992 | ac_status=$? |
| 8993 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8994 | rm -f conftest.er1 |
| 8995 | cat conftest.err >&5 |
| 8996 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 8997 | (exit $ac_status); } && { |
| 8998 | test -z "$ac_c_werror_flag" || |
| 8999 | test ! -s conftest.err |
| 9000 | } && test -s conftest.$ac_objext; then |
Benny Prijono | 4e48b51 | 2007-05-16 13:41:00 +0000 | [diff] [blame] | 9001 | ac_header_compiler=yes |
| 9002 | else |
| 9003 | echo "$as_me: failed program was:" >&5 |
| 9004 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9005 | |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 9006 | ac_header_compiler=no |
Benny Prijono | 4e48b51 | 2007-05-16 13:41:00 +0000 | [diff] [blame] | 9007 | fi |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 9008 | |
| 9009 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 9010 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 9011 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Benny Prijono | 4e48b51 | 2007-05-16 13:41:00 +0000 | [diff] [blame] | 9012 | |
| 9013 | # Is the header present? |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 9014 | { echo "$as_me:$LINENO: checking uuid/uuid.h presence" >&5 |
| 9015 | echo $ECHO_N "checking uuid/uuid.h presence... $ECHO_C" >&6; } |
Benny Prijono | 4e48b51 | 2007-05-16 13:41:00 +0000 | [diff] [blame] | 9016 | cat >conftest.$ac_ext <<_ACEOF |
| 9017 | /* confdefs.h. */ |
| 9018 | _ACEOF |
| 9019 | cat confdefs.h >>conftest.$ac_ext |
| 9020 | cat >>conftest.$ac_ext <<_ACEOF |
| 9021 | /* end confdefs.h. */ |
| 9022 | #include <uuid/uuid.h> |
| 9023 | _ACEOF |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 9024 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 9025 | case "(($ac_try" in |
| 9026 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9027 | *) ac_try_echo=$ac_try;; |
| 9028 | esac |
| 9029 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9030 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Benny Prijono | 4e48b51 | 2007-05-16 13:41:00 +0000 | [diff] [blame] | 9031 | ac_status=$? |
| 9032 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9033 | rm -f conftest.er1 |
| 9034 | cat conftest.err >&5 |
| 9035 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 9036 | (exit $ac_status); } >/dev/null && { |
| 9037 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 9038 | test ! -s conftest.err |
| 9039 | }; then |
Benny Prijono | 4e48b51 | 2007-05-16 13:41:00 +0000 | [diff] [blame] | 9040 | ac_header_preproc=yes |
| 9041 | else |
| 9042 | echo "$as_me: failed program was:" >&5 |
| 9043 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9044 | |
| 9045 | ac_header_preproc=no |
| 9046 | fi |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 9047 | |
Benny Prijono | 4e48b51 | 2007-05-16 13:41:00 +0000 | [diff] [blame] | 9048 | rm -f conftest.err conftest.$ac_ext |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 9049 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 9050 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Benny Prijono | 4e48b51 | 2007-05-16 13:41:00 +0000 | [diff] [blame] | 9051 | |
| 9052 | # So? What about this header? |
| 9053 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 9054 | yes:no: ) |
| 9055 | { echo "$as_me:$LINENO: WARNING: uuid/uuid.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 9056 | echo "$as_me: WARNING: uuid/uuid.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 9057 | { echo "$as_me:$LINENO: WARNING: uuid/uuid.h: proceeding with the compiler's result" >&5 |
| 9058 | echo "$as_me: WARNING: uuid/uuid.h: proceeding with the compiler's result" >&2;} |
| 9059 | ac_header_preproc=yes |
| 9060 | ;; |
| 9061 | no:yes:* ) |
| 9062 | { echo "$as_me:$LINENO: WARNING: uuid/uuid.h: present but cannot be compiled" >&5 |
| 9063 | echo "$as_me: WARNING: uuid/uuid.h: present but cannot be compiled" >&2;} |
| 9064 | { echo "$as_me:$LINENO: WARNING: uuid/uuid.h: check for missing prerequisite headers?" >&5 |
| 9065 | echo "$as_me: WARNING: uuid/uuid.h: check for missing prerequisite headers?" >&2;} |
| 9066 | { echo "$as_me:$LINENO: WARNING: uuid/uuid.h: see the Autoconf documentation" >&5 |
| 9067 | echo "$as_me: WARNING: uuid/uuid.h: see the Autoconf documentation" >&2;} |
| 9068 | { echo "$as_me:$LINENO: WARNING: uuid/uuid.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 9069 | echo "$as_me: WARNING: uuid/uuid.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 9070 | { echo "$as_me:$LINENO: WARNING: uuid/uuid.h: proceeding with the preprocessor's result" >&5 |
| 9071 | echo "$as_me: WARNING: uuid/uuid.h: proceeding with the preprocessor's result" >&2;} |
| 9072 | { echo "$as_me:$LINENO: WARNING: uuid/uuid.h: in the future, the compiler will take precedence" >&5 |
| 9073 | echo "$as_me: WARNING: uuid/uuid.h: in the future, the compiler will take precedence" >&2;} |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 9074 | |
Benny Prijono | 4e48b51 | 2007-05-16 13:41:00 +0000 | [diff] [blame] | 9075 | ;; |
| 9076 | esac |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 9077 | { echo "$as_me:$LINENO: checking for uuid/uuid.h" >&5 |
| 9078 | echo $ECHO_N "checking for uuid/uuid.h... $ECHO_C" >&6; } |
Benny Prijono | 4e48b51 | 2007-05-16 13:41:00 +0000 | [diff] [blame] | 9079 | if test "${ac_cv_header_uuid_uuid_h+set}" = set; then |
| 9080 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9081 | else |
| 9082 | ac_cv_header_uuid_uuid_h=$ac_header_preproc |
| 9083 | fi |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 9084 | { echo "$as_me:$LINENO: result: $ac_cv_header_uuid_uuid_h" >&5 |
| 9085 | echo "${ECHO_T}$ac_cv_header_uuid_uuid_h" >&6; } |
Benny Prijono | 4e48b51 | 2007-05-16 13:41:00 +0000 | [diff] [blame] | 9086 | |
| 9087 | fi |
| 9088 | if test $ac_cv_header_uuid_uuid_h = yes; then |
| 9089 | ac_has_uuid_h=1 |
| 9090 | fi |
| 9091 | |
| 9092 | |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 9093 | { echo "$as_me:$LINENO: checking for net/if.h" >&5 |
| 9094 | echo $ECHO_N "checking for net/if.h... $ECHO_C" >&6; } |
Benny Prijono | a9948e6 | 2008-03-25 14:03:01 +0000 | [diff] [blame] | 9095 | if test "${ac_cv_header_net_if_h+set}" = set; then |
Benny Prijono | 188ba7e | 2008-03-25 13:53:16 +0000 | [diff] [blame] | 9096 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9097 | else |
| 9098 | cat >conftest.$ac_ext <<_ACEOF |
| 9099 | /* confdefs.h. */ |
| 9100 | _ACEOF |
| 9101 | cat confdefs.h >>conftest.$ac_ext |
| 9102 | cat >>conftest.$ac_ext <<_ACEOF |
| 9103 | /* end confdefs.h. */ |
| 9104 | #if PJ_HAS_SYS_SOCKET_H |
| 9105 | # include <sys/socket.h> |
| 9106 | #endif |
| 9107 | |
| 9108 | |
Benny Prijono | a9948e6 | 2008-03-25 14:03:01 +0000 | [diff] [blame] | 9109 | #include <net/if.h> |
Benny Prijono | 188ba7e | 2008-03-25 13:53:16 +0000 | [diff] [blame] | 9110 | _ACEOF |
| 9111 | rm -f conftest.$ac_objext |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 9112 | if { (ac_try="$ac_compile" |
| 9113 | case "(($ac_try" in |
| 9114 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9115 | *) ac_try_echo=$ac_try;; |
| 9116 | esac |
| 9117 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9118 | (eval "$ac_compile") 2>conftest.er1 |
Benny Prijono | 188ba7e | 2008-03-25 13:53:16 +0000 | [diff] [blame] | 9119 | ac_status=$? |
| 9120 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9121 | rm -f conftest.er1 |
| 9122 | cat conftest.err >&5 |
| 9123 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 9124 | (exit $ac_status); } && { |
| 9125 | test -z "$ac_c_werror_flag" || |
| 9126 | test ! -s conftest.err |
| 9127 | } && test -s conftest.$ac_objext; then |
Benny Prijono | a9948e6 | 2008-03-25 14:03:01 +0000 | [diff] [blame] | 9128 | ac_cv_header_net_if_h=yes |
Benny Prijono | 188ba7e | 2008-03-25 13:53:16 +0000 | [diff] [blame] | 9129 | else |
| 9130 | echo "$as_me: failed program was:" >&5 |
| 9131 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9132 | |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 9133 | ac_cv_header_net_if_h=no |
Benny Prijono | 188ba7e | 2008-03-25 13:53:16 +0000 | [diff] [blame] | 9134 | fi |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 9135 | |
| 9136 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Benny Prijono | 188ba7e | 2008-03-25 13:53:16 +0000 | [diff] [blame] | 9137 | fi |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 9138 | { echo "$as_me:$LINENO: result: $ac_cv_header_net_if_h" >&5 |
| 9139 | echo "${ECHO_T}$ac_cv_header_net_if_h" >&6; } |
Benny Prijono | a9948e6 | 2008-03-25 14:03:01 +0000 | [diff] [blame] | 9140 | if test $ac_cv_header_net_if_h = yes; then |
| 9141 | cat >>confdefs.h <<\_ACEOF |
Benny Prijono | 188ba7e | 2008-03-25 13:53:16 +0000 | [diff] [blame] | 9142 | #define PJ_HAS_NET_IF_H 1 |
| 9143 | _ACEOF |
| 9144 | |
| 9145 | fi |
| 9146 | |
Benny Prijono | 188ba7e | 2008-03-25 13:53:16 +0000 | [diff] [blame] | 9147 | |
| 9148 | |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 9149 | { echo "$as_me:$LINENO: result: Setting PJ_OS_NAME to $target" >&5 |
| 9150 | echo "${ECHO_T}Setting PJ_OS_NAME to $target" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9151 | cat >>confdefs.h <<_ACEOF |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 9152 | #define PJ_OS_NAME "$target" |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9153 | _ACEOF |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 9154 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9155 | |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 9156 | { echo "$as_me:$LINENO: result: Setting PJ_HAS_ERRNO_VAR to 1" >&5 |
| 9157 | echo "${ECHO_T}Setting PJ_HAS_ERRNO_VAR to 1" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9158 | cat >>confdefs.h <<\_ACEOF |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 9159 | #define PJ_HAS_ERRNO_VAR 1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9160 | _ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9161 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9162 | |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 9163 | { echo "$as_me:$LINENO: result: Setting PJ_HAS_HIGH_RES_TIMER to 1" >&5 |
| 9164 | echo "${ECHO_T}Setting PJ_HAS_HIGH_RES_TIMER to 1" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9165 | cat >>confdefs.h <<\_ACEOF |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 9166 | #define PJ_HAS_HIGH_RES_TIMER 1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9167 | _ACEOF |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 9168 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9169 | |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 9170 | { echo "$as_me:$LINENO: result: Setting PJ_HAS_MALLOC to 1" >&5 |
| 9171 | echo "${ECHO_T}Setting PJ_HAS_MALLOC to 1" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9172 | cat >>confdefs.h <<\_ACEOF |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 9173 | #define PJ_HAS_MALLOC 1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9174 | _ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9175 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9176 | |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 9177 | { echo "$as_me:$LINENO: result: Setting PJ_NATIVE_STRING_IS_UNICODE to 0" >&5 |
| 9178 | echo "${ECHO_T}Setting PJ_NATIVE_STRING_IS_UNICODE to 0" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9179 | cat >>confdefs.h <<\_ACEOF |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 9180 | #define PJ_NATIVE_STRING_IS_UNICODE 0 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9181 | _ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9182 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9183 | |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 9184 | { echo "$as_me:$LINENO: result: Setting PJ_ATOMIC_VALUE_TYPE to long" >&5 |
| 9185 | echo "${ECHO_T}Setting PJ_ATOMIC_VALUE_TYPE to long" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9186 | cat >>confdefs.h <<\_ACEOF |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 9187 | #define PJ_ATOMIC_VALUE_TYPE long |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9188 | _ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9189 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9190 | |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 9191 | { echo "$as_me:$LINENO: checking if inet_aton() is available" >&5 |
| 9192 | echo $ECHO_N "checking if inet_aton() is available... $ECHO_C" >&6; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9193 | cat >conftest.$ac_ext <<_ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9194 | /* confdefs.h. */ |
| 9195 | _ACEOF |
| 9196 | cat confdefs.h >>conftest.$ac_ext |
| 9197 | cat >>conftest.$ac_ext <<_ACEOF |
| 9198 | /* end confdefs.h. */ |
Benny Prijono | c16c6e3 | 2007-11-18 14:53:47 +0000 | [diff] [blame] | 9199 | #include <sys/types.h> |
| 9200 | #include <sys/socket.h> |
| 9201 | #include <arpa/inet.h> |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9202 | int |
| 9203 | main () |
| 9204 | { |
| 9205 | inet_aton(0, 0); |
| 9206 | ; |
| 9207 | return 0; |
| 9208 | } |
| 9209 | _ACEOF |
| 9210 | rm -f conftest.$ac_objext |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 9211 | if { (ac_try="$ac_compile" |
| 9212 | case "(($ac_try" in |
| 9213 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9214 | *) ac_try_echo=$ac_try;; |
| 9215 | esac |
| 9216 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9217 | (eval "$ac_compile") 2>conftest.er1 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9218 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9219 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9220 | rm -f conftest.er1 |
| 9221 | cat conftest.err >&5 |
| 9222 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 9223 | (exit $ac_status); } && { |
| 9224 | test -z "$ac_c_werror_flag" || |
| 9225 | test ! -s conftest.err |
| 9226 | } && test -s conftest.$ac_objext; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9227 | cat >>confdefs.h <<\_ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9228 | #define PJ_SOCK_HAS_INET_ATON 1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9229 | _ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9230 | |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 9231 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 9232 | echo "${ECHO_T}yes" >&6; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9233 | else |
| 9234 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9235 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9236 | |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 9237 | { echo "$as_me:$LINENO: result: no" >&5 |
| 9238 | echo "${ECHO_T}no" >&6; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9239 | fi |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9240 | |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 9241 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 9242 | |
| 9243 | { echo "$as_me:$LINENO: checking if inet_pton() is available" >&5 |
| 9244 | echo $ECHO_N "checking if inet_pton() is available... $ECHO_C" >&6; } |
Benny Prijono | c16c6e3 | 2007-11-18 14:53:47 +0000 | [diff] [blame] | 9245 | cat >conftest.$ac_ext <<_ACEOF |
| 9246 | /* confdefs.h. */ |
| 9247 | _ACEOF |
| 9248 | cat confdefs.h >>conftest.$ac_ext |
| 9249 | cat >>conftest.$ac_ext <<_ACEOF |
| 9250 | /* end confdefs.h. */ |
| 9251 | #include <sys/types.h> |
| 9252 | #include <sys/socket.h> |
| 9253 | #include <arpa/inet.h> |
| 9254 | int |
| 9255 | main () |
| 9256 | { |
| 9257 | inet_pton(0, 0, 0); |
| 9258 | ; |
| 9259 | return 0; |
| 9260 | } |
| 9261 | _ACEOF |
| 9262 | rm -f conftest.$ac_objext |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 9263 | if { (ac_try="$ac_compile" |
| 9264 | case "(($ac_try" in |
| 9265 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9266 | *) ac_try_echo=$ac_try;; |
| 9267 | esac |
| 9268 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9269 | (eval "$ac_compile") 2>conftest.er1 |
Benny Prijono | c16c6e3 | 2007-11-18 14:53:47 +0000 | [diff] [blame] | 9270 | ac_status=$? |
| 9271 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9272 | rm -f conftest.er1 |
| 9273 | cat conftest.err >&5 |
| 9274 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 9275 | (exit $ac_status); } && { |
| 9276 | test -z "$ac_c_werror_flag" || |
| 9277 | test ! -s conftest.err |
| 9278 | } && test -s conftest.$ac_objext; then |
Benny Prijono | c16c6e3 | 2007-11-18 14:53:47 +0000 | [diff] [blame] | 9279 | cat >>confdefs.h <<\_ACEOF |
| 9280 | #define PJ_SOCK_HAS_INET_PTON 1 |
| 9281 | _ACEOF |
| 9282 | |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 9283 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 9284 | echo "${ECHO_T}yes" >&6; } |
Benny Prijono | c16c6e3 | 2007-11-18 14:53:47 +0000 | [diff] [blame] | 9285 | else |
| 9286 | echo "$as_me: failed program was:" >&5 |
| 9287 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9288 | |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 9289 | { echo "$as_me:$LINENO: result: no" >&5 |
| 9290 | echo "${ECHO_T}no" >&6; } |
Benny Prijono | c16c6e3 | 2007-11-18 14:53:47 +0000 | [diff] [blame] | 9291 | fi |
Benny Prijono | c16c6e3 | 2007-11-18 14:53:47 +0000 | [diff] [blame] | 9292 | |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 9293 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 9294 | |
| 9295 | { echo "$as_me:$LINENO: checking if inet_ntop() is available" >&5 |
| 9296 | echo $ECHO_N "checking if inet_ntop() is available... $ECHO_C" >&6; } |
Benny Prijono | c16c6e3 | 2007-11-18 14:53:47 +0000 | [diff] [blame] | 9297 | cat >conftest.$ac_ext <<_ACEOF |
| 9298 | /* confdefs.h. */ |
| 9299 | _ACEOF |
| 9300 | cat confdefs.h >>conftest.$ac_ext |
| 9301 | cat >>conftest.$ac_ext <<_ACEOF |
| 9302 | /* end confdefs.h. */ |
| 9303 | #include <sys/types.h> |
| 9304 | #include <sys/socket.h> |
| 9305 | #include <arpa/inet.h> |
| 9306 | int |
| 9307 | main () |
| 9308 | { |
| 9309 | inet_ntop(0, 0, 0, 0); |
| 9310 | ; |
| 9311 | return 0; |
| 9312 | } |
| 9313 | _ACEOF |
| 9314 | rm -f conftest.$ac_objext |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 9315 | if { (ac_try="$ac_compile" |
| 9316 | case "(($ac_try" in |
| 9317 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9318 | *) ac_try_echo=$ac_try;; |
| 9319 | esac |
| 9320 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9321 | (eval "$ac_compile") 2>conftest.er1 |
Benny Prijono | c16c6e3 | 2007-11-18 14:53:47 +0000 | [diff] [blame] | 9322 | ac_status=$? |
| 9323 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9324 | rm -f conftest.er1 |
| 9325 | cat conftest.err >&5 |
| 9326 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 9327 | (exit $ac_status); } && { |
| 9328 | test -z "$ac_c_werror_flag" || |
| 9329 | test ! -s conftest.err |
| 9330 | } && test -s conftest.$ac_objext; then |
Benny Prijono | c16c6e3 | 2007-11-18 14:53:47 +0000 | [diff] [blame] | 9331 | cat >>confdefs.h <<\_ACEOF |
| 9332 | #define PJ_SOCK_HAS_INET_NTOP 1 |
| 9333 | _ACEOF |
| 9334 | |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 9335 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 9336 | echo "${ECHO_T}yes" >&6; } |
Benny Prijono | c16c6e3 | 2007-11-18 14:53:47 +0000 | [diff] [blame] | 9337 | else |
| 9338 | echo "$as_me: failed program was:" >&5 |
| 9339 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9340 | |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 9341 | { echo "$as_me:$LINENO: result: no" >&5 |
| 9342 | echo "${ECHO_T}no" >&6; } |
Benny Prijono | c16c6e3 | 2007-11-18 14:53:47 +0000 | [diff] [blame] | 9343 | fi |
Benny Prijono | c16c6e3 | 2007-11-18 14:53:47 +0000 | [diff] [blame] | 9344 | |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 9345 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 9346 | |
| 9347 | { echo "$as_me:$LINENO: checking if getaddrinfo() is available" >&5 |
| 9348 | echo $ECHO_N "checking if getaddrinfo() is available... $ECHO_C" >&6; } |
Benny Prijono | c16c6e3 | 2007-11-18 14:53:47 +0000 | [diff] [blame] | 9349 | cat >conftest.$ac_ext <<_ACEOF |
| 9350 | /* confdefs.h. */ |
| 9351 | _ACEOF |
| 9352 | cat confdefs.h >>conftest.$ac_ext |
| 9353 | cat >>conftest.$ac_ext <<_ACEOF |
| 9354 | /* end confdefs.h. */ |
| 9355 | #include <sys/types.h> |
| 9356 | #include <sys/socket.h> |
| 9357 | #include <netdb.h> |
| 9358 | int |
| 9359 | main () |
| 9360 | { |
| 9361 | getaddrinfo(0, 0, 0, 0); |
| 9362 | ; |
| 9363 | return 0; |
| 9364 | } |
| 9365 | _ACEOF |
| 9366 | rm -f conftest.$ac_objext |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 9367 | if { (ac_try="$ac_compile" |
| 9368 | case "(($ac_try" in |
| 9369 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9370 | *) ac_try_echo=$ac_try;; |
| 9371 | esac |
| 9372 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9373 | (eval "$ac_compile") 2>conftest.er1 |
Benny Prijono | c16c6e3 | 2007-11-18 14:53:47 +0000 | [diff] [blame] | 9374 | ac_status=$? |
| 9375 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9376 | rm -f conftest.er1 |
| 9377 | cat conftest.err >&5 |
| 9378 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 9379 | (exit $ac_status); } && { |
| 9380 | test -z "$ac_c_werror_flag" || |
| 9381 | test ! -s conftest.err |
| 9382 | } && test -s conftest.$ac_objext; then |
Benny Prijono | c16c6e3 | 2007-11-18 14:53:47 +0000 | [diff] [blame] | 9383 | cat >>confdefs.h <<\_ACEOF |
| 9384 | #define PJ_SOCK_HAS_GETADDRINFO 1 |
| 9385 | _ACEOF |
| 9386 | |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 9387 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 9388 | echo "${ECHO_T}yes" >&6; } |
Benny Prijono | c16c6e3 | 2007-11-18 14:53:47 +0000 | [diff] [blame] | 9389 | else |
| 9390 | echo "$as_me: failed program was:" >&5 |
| 9391 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9392 | |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 9393 | { echo "$as_me:$LINENO: result: no" >&5 |
| 9394 | echo "${ECHO_T}no" >&6; } |
Benny Prijono | c16c6e3 | 2007-11-18 14:53:47 +0000 | [diff] [blame] | 9395 | fi |
Benny Prijono | c16c6e3 | 2007-11-18 14:53:47 +0000 | [diff] [blame] | 9396 | |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 9397 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 9398 | |
| 9399 | { echo "$as_me:$LINENO: checking if sockaddr_in has sin_len member" >&5 |
| 9400 | echo $ECHO_N "checking if sockaddr_in has sin_len member... $ECHO_C" >&6; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9401 | cat >conftest.$ac_ext <<_ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9402 | /* confdefs.h. */ |
| 9403 | _ACEOF |
| 9404 | cat confdefs.h >>conftest.$ac_ext |
| 9405 | cat >>conftest.$ac_ext <<_ACEOF |
| 9406 | /* end confdefs.h. */ |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame] | 9407 | #include <sys/types.h> |
| 9408 | #include <sys/socket.h> |
| 9409 | #include <netinet/in.h> |
| 9410 | #include <arpa/inet.h> |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9411 | int |
| 9412 | main () |
| 9413 | { |
| 9414 | struct sockaddr_in a; a.sin_len=0; |
| 9415 | ; |
| 9416 | return 0; |
| 9417 | } |
| 9418 | _ACEOF |
| 9419 | rm -f conftest.$ac_objext |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 9420 | if { (ac_try="$ac_compile" |
| 9421 | case "(($ac_try" in |
| 9422 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9423 | *) ac_try_echo=$ac_try;; |
| 9424 | esac |
| 9425 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9426 | (eval "$ac_compile") 2>conftest.er1 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9427 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9428 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9429 | rm -f conftest.er1 |
| 9430 | cat conftest.err >&5 |
| 9431 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 9432 | (exit $ac_status); } && { |
| 9433 | test -z "$ac_c_werror_flag" || |
| 9434 | test ! -s conftest.err |
| 9435 | } && test -s conftest.$ac_objext; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9436 | cat >>confdefs.h <<\_ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9437 | #define PJ_SOCKADDR_HAS_LEN 1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9438 | _ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9439 | |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 9440 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 9441 | echo "${ECHO_T}yes" >&6; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9442 | else |
| 9443 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9444 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9445 | |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 9446 | { echo "$as_me:$LINENO: result: no" >&5 |
| 9447 | echo "${ECHO_T}no" >&6; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9448 | fi |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9449 | |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 9450 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 9451 | |
| 9452 | { echo "$as_me:$LINENO: checking if socklen_t is available" >&5 |
| 9453 | echo $ECHO_N "checking if socklen_t is available... $ECHO_C" >&6; } |
Benny Prijono | 30f85c6 | 2006-09-09 20:05:33 +0000 | [diff] [blame] | 9454 | cat >conftest.$ac_ext <<_ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9455 | /* confdefs.h. */ |
| 9456 | _ACEOF |
| 9457 | cat confdefs.h >>conftest.$ac_ext |
| 9458 | cat >>conftest.$ac_ext <<_ACEOF |
| 9459 | /* end confdefs.h. */ |
Benny Prijono | 1d97162 | 2006-09-10 22:27:40 +0000 | [diff] [blame] | 9460 | #include <sys/socket.h> |
Benny Prijono | 30f85c6 | 2006-09-09 20:05:33 +0000 | [diff] [blame] | 9461 | int |
| 9462 | main () |
| 9463 | { |
| 9464 | socklen_t xxx = 0; |
| 9465 | ; |
| 9466 | return 0; |
| 9467 | } |
| 9468 | _ACEOF |
| 9469 | rm -f conftest.$ac_objext |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 9470 | if { (ac_try="$ac_compile" |
| 9471 | case "(($ac_try" in |
| 9472 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9473 | *) ac_try_echo=$ac_try;; |
| 9474 | esac |
| 9475 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9476 | (eval "$ac_compile") 2>conftest.er1 |
Benny Prijono | 30f85c6 | 2006-09-09 20:05:33 +0000 | [diff] [blame] | 9477 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9478 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9479 | rm -f conftest.er1 |
| 9480 | cat conftest.err >&5 |
| 9481 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 9482 | (exit $ac_status); } && { |
| 9483 | test -z "$ac_c_werror_flag" || |
| 9484 | test ! -s conftest.err |
| 9485 | } && test -s conftest.$ac_objext; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9486 | cat >>confdefs.h <<\_ACEOF |
Benny Prijono | 30f85c6 | 2006-09-09 20:05:33 +0000 | [diff] [blame] | 9487 | #define PJ_HAS_SOCKLEN_T 1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9488 | _ACEOF |
Benny Prijono | 30f85c6 | 2006-09-09 20:05:33 +0000 | [diff] [blame] | 9489 | |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 9490 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 9491 | echo "${ECHO_T}yes" >&6; } |
Benny Prijono | 30f85c6 | 2006-09-09 20:05:33 +0000 | [diff] [blame] | 9492 | else |
| 9493 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9494 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9495 | |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 9496 | { echo "$as_me:$LINENO: result: no" >&5 |
| 9497 | echo "${ECHO_T}no" >&6; } |
Benny Prijono | 30f85c6 | 2006-09-09 20:05:33 +0000 | [diff] [blame] | 9498 | fi |
Benny Prijono | 30f85c6 | 2006-09-09 20:05:33 +0000 | [diff] [blame] | 9499 | |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 9500 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 9501 | |
| 9502 | { echo "$as_me:$LINENO: checking if SO_ERROR is available" >&5 |
| 9503 | echo $ECHO_N "checking if SO_ERROR is available... $ECHO_C" >&6; } |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 9504 | case $target in |
| 9505 | *mingw* | *cygw* | *win32* | *w32* ) |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9506 | cat >>confdefs.h <<\_ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 9507 | #define PJ_HAS_SO_ERROR 1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9508 | _ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 9509 | |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 9510 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 9511 | echo "${ECHO_T}yes" >&6; } |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 9512 | ;; |
| 9513 | *) |
| 9514 | cat >conftest.$ac_ext <<_ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9515 | /* confdefs.h. */ |
| 9516 | _ACEOF |
| 9517 | cat confdefs.h >>conftest.$ac_ext |
| 9518 | cat >>conftest.$ac_ext <<_ACEOF |
| 9519 | /* end confdefs.h. */ |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame] | 9520 | #include <sys/types.h> |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 9521 | #include <sys/socket.h> |
| 9522 | #include <netinet/in.h> |
| 9523 | #include <arpa/inet.h> |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9524 | int |
| 9525 | main () |
| 9526 | { |
| 9527 | int i=SO_ERROR; |
| 9528 | ; |
| 9529 | return 0; |
| 9530 | } |
| 9531 | _ACEOF |
| 9532 | rm -f conftest.$ac_objext |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 9533 | if { (ac_try="$ac_compile" |
| 9534 | case "(($ac_try" in |
| 9535 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9536 | *) ac_try_echo=$ac_try;; |
| 9537 | esac |
| 9538 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9539 | (eval "$ac_compile") 2>conftest.er1 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9540 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9541 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9542 | rm -f conftest.er1 |
| 9543 | cat conftest.err >&5 |
| 9544 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 9545 | (exit $ac_status); } && { |
| 9546 | test -z "$ac_c_werror_flag" || |
| 9547 | test ! -s conftest.err |
| 9548 | } && test -s conftest.$ac_objext; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9549 | cat >>confdefs.h <<\_ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9550 | #define PJ_HAS_SO_ERROR 1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9551 | _ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9552 | |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 9553 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 9554 | echo "${ECHO_T}yes" >&6; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9555 | else |
| 9556 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9557 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9558 | |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 9559 | { echo "$as_me:$LINENO: result: no" >&5 |
| 9560 | echo "${ECHO_T}no" >&6; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9561 | fi |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 9562 | |
| 9563 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 9564 | ;; |
| 9565 | esac |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9566 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9567 | |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 9568 | { echo "$as_me:$LINENO: checking if pthread_rwlock_t is available" >&5 |
| 9569 | echo $ECHO_N "checking if pthread_rwlock_t is available... $ECHO_C" >&6; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9570 | cat >conftest.$ac_ext <<_ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9571 | /* confdefs.h. */ |
| 9572 | _ACEOF |
| 9573 | cat confdefs.h >>conftest.$ac_ext |
| 9574 | cat >>conftest.$ac_ext <<_ACEOF |
| 9575 | /* end confdefs.h. */ |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9576 | #include <pthread.h> |
| 9577 | int |
| 9578 | main () |
| 9579 | { |
| 9580 | pthread_rwlock_t *x; |
| 9581 | ; |
| 9582 | return 0; |
| 9583 | } |
| 9584 | _ACEOF |
| 9585 | rm -f conftest.$ac_objext |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 9586 | if { (ac_try="$ac_compile" |
| 9587 | case "(($ac_try" in |
| 9588 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9589 | *) ac_try_echo=$ac_try;; |
| 9590 | esac |
| 9591 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9592 | (eval "$ac_compile") 2>conftest.er1 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9593 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9594 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9595 | rm -f conftest.er1 |
| 9596 | cat conftest.err >&5 |
| 9597 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 9598 | (exit $ac_status); } && { |
| 9599 | test -z "$ac_c_werror_flag" || |
| 9600 | test ! -s conftest.err |
| 9601 | } && test -s conftest.$ac_objext; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9602 | cat >>confdefs.h <<\_ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9603 | #define PJ_EMULATE_RWMUTEX 0 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9604 | _ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9605 | |
Benny Prijono | 1c5f4e4 | 2008-02-07 13:11:39 +0000 | [diff] [blame] | 9606 | ac_rwmutex="yes" |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 9607 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 9608 | echo "${ECHO_T}yes" >&6; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9609 | else |
| 9610 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9611 | sed 's/^/| /' conftest.$ac_ext >&5 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 9612 | |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 9613 | cat >>confdefs.h <<\_ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9614 | #define PJ_EMULATE_RWMUTEX 1 |
| 9615 | _ACEOF |
| 9616 | |
Benny Prijono | 1c5f4e4 | 2008-02-07 13:11:39 +0000 | [diff] [blame] | 9617 | ac_rwmutex="no" |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 9618 | { echo "$as_me:$LINENO: result: no" >&5 |
| 9619 | echo "${ECHO_T}no" >&6; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9620 | fi |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 9621 | |
| 9622 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9623 | |
Benny Prijono | 1c5f4e4 | 2008-02-07 13:11:39 +0000 | [diff] [blame] | 9624 | if test "$ac_rwmutex" = "no"; then |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 9625 | { echo "$as_me:$LINENO: checking if pthread_rwlock_t is available with _POSIX_READER_WRITER_LOCKS" >&5 |
| 9626 | echo $ECHO_N "checking if pthread_rwlock_t is available with _POSIX_READER_WRITER_LOCKS... $ECHO_C" >&6; } |
Benny Prijono | 1c5f4e4 | 2008-02-07 13:11:39 +0000 | [diff] [blame] | 9627 | cat >conftest.$ac_ext <<_ACEOF |
| 9628 | /* confdefs.h. */ |
| 9629 | _ACEOF |
| 9630 | cat confdefs.h >>conftest.$ac_ext |
| 9631 | cat >>conftest.$ac_ext <<_ACEOF |
| 9632 | /* end confdefs.h. */ |
| 9633 | #define _POSIX_READER_WRITER_LOCKS |
| 9634 | #include <pthread.h> |
| 9635 | int |
| 9636 | main () |
| 9637 | { |
| 9638 | pthread_rwlock_t *x; |
| 9639 | ; |
| 9640 | return 0; |
| 9641 | } |
| 9642 | _ACEOF |
| 9643 | rm -f conftest.$ac_objext |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 9644 | if { (ac_try="$ac_compile" |
| 9645 | case "(($ac_try" in |
| 9646 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9647 | *) ac_try_echo=$ac_try;; |
| 9648 | esac |
| 9649 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9650 | (eval "$ac_compile") 2>conftest.er1 |
Benny Prijono | 1c5f4e4 | 2008-02-07 13:11:39 +0000 | [diff] [blame] | 9651 | ac_status=$? |
| 9652 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9653 | rm -f conftest.er1 |
| 9654 | cat conftest.err >&5 |
| 9655 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 9656 | (exit $ac_status); } && { |
| 9657 | test -z "$ac_c_werror_flag" || |
| 9658 | test ! -s conftest.err |
| 9659 | } && test -s conftest.$ac_objext; then |
Benny Prijono | 1c5f4e4 | 2008-02-07 13:11:39 +0000 | [diff] [blame] | 9660 | cat >>confdefs.h <<\_ACEOF |
| 9661 | #define PJ_EMULATE_RWMUTEX 0 |
| 9662 | _ACEOF |
| 9663 | |
| 9664 | CFLAGS="$CFLAGS -D_POSIX_THREADS -D_POSIX_READER_WRITER_LOCKS" |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 9665 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 9666 | echo "${ECHO_T}yes" >&6; } |
Benny Prijono | 1c5f4e4 | 2008-02-07 13:11:39 +0000 | [diff] [blame] | 9667 | else |
| 9668 | echo "$as_me: failed program was:" >&5 |
| 9669 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9670 | |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 9671 | cat >>confdefs.h <<\_ACEOF |
Benny Prijono | 1c5f4e4 | 2008-02-07 13:11:39 +0000 | [diff] [blame] | 9672 | #define PJ_EMULATE_RWMUTEX 1 |
| 9673 | _ACEOF |
| 9674 | |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 9675 | { echo "$as_me:$LINENO: result: no" >&5 |
| 9676 | echo "${ECHO_T}no" >&6; } |
Benny Prijono | 1c5f4e4 | 2008-02-07 13:11:39 +0000 | [diff] [blame] | 9677 | fi |
| 9678 | |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 9679 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 9680 | fi |
| 9681 | |
| 9682 | { echo "$as_me:$LINENO: checking if pthread_mutexattr_settype() is available" >&5 |
| 9683 | echo $ECHO_N "checking if pthread_mutexattr_settype() is available... $ECHO_C" >&6; } |
Benny Prijono | 1c5f4e4 | 2008-02-07 13:11:39 +0000 | [diff] [blame] | 9684 | cat >conftest.$ac_ext <<_ACEOF |
| 9685 | /* confdefs.h. */ |
| 9686 | _ACEOF |
| 9687 | cat confdefs.h >>conftest.$ac_ext |
| 9688 | cat >>conftest.$ac_ext <<_ACEOF |
| 9689 | /* end confdefs.h. */ |
| 9690 | #include <pthread.h> |
| 9691 | int |
| 9692 | main () |
| 9693 | { |
| 9694 | pthread_mutexattr_settype(0,PTHREAD_MUTEX_FAST_NP); |
| 9695 | ; |
| 9696 | return 0; |
| 9697 | } |
| 9698 | _ACEOF |
| 9699 | rm -f conftest.$ac_objext |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 9700 | if { (ac_try="$ac_compile" |
| 9701 | case "(($ac_try" in |
| 9702 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9703 | *) ac_try_echo=$ac_try;; |
| 9704 | esac |
| 9705 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9706 | (eval "$ac_compile") 2>conftest.er1 |
Benny Prijono | 1c5f4e4 | 2008-02-07 13:11:39 +0000 | [diff] [blame] | 9707 | ac_status=$? |
| 9708 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9709 | rm -f conftest.er1 |
| 9710 | cat conftest.err >&5 |
| 9711 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 9712 | (exit $ac_status); } && { |
| 9713 | test -z "$ac_c_werror_flag" || |
| 9714 | test ! -s conftest.err |
| 9715 | } && test -s conftest.$ac_objext; then |
Benny Prijono | 1c5f4e4 | 2008-02-07 13:11:39 +0000 | [diff] [blame] | 9716 | cat >>confdefs.h <<\_ACEOF |
| 9717 | #define PJ_HAS_PTHREAD_MUTEXATTR_SETTYPE 1 |
| 9718 | _ACEOF |
| 9719 | |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 9720 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 9721 | echo "${ECHO_T}yes" >&6; } |
Benny Prijono | 1c5f4e4 | 2008-02-07 13:11:39 +0000 | [diff] [blame] | 9722 | else |
| 9723 | echo "$as_me: failed program was:" >&5 |
| 9724 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9725 | |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 9726 | { echo "$as_me:$LINENO: result: no" >&5 |
| 9727 | echo "${ECHO_T}no" >&6; } |
Benny Prijono | 1c5f4e4 | 2008-02-07 13:11:39 +0000 | [diff] [blame] | 9728 | fi |
| 9729 | |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 9730 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 9731 | |
| 9732 | { echo "$as_me:$LINENO: checking if pthread_mutexattr_t has recursive member" >&5 |
| 9733 | echo $ECHO_N "checking if pthread_mutexattr_t has recursive member... $ECHO_C" >&6; } |
Benny Prijono | 1c5f4e4 | 2008-02-07 13:11:39 +0000 | [diff] [blame] | 9734 | cat >conftest.$ac_ext <<_ACEOF |
| 9735 | /* confdefs.h. */ |
| 9736 | _ACEOF |
| 9737 | cat confdefs.h >>conftest.$ac_ext |
| 9738 | cat >>conftest.$ac_ext <<_ACEOF |
| 9739 | /* end confdefs.h. */ |
| 9740 | #include <pthread.h> |
| 9741 | int |
| 9742 | main () |
| 9743 | { |
| 9744 | pthread_mutexattr_t attr; |
| 9745 | attr.recursive=1; |
| 9746 | ; |
| 9747 | return 0; |
| 9748 | } |
| 9749 | _ACEOF |
| 9750 | rm -f conftest.$ac_objext |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 9751 | if { (ac_try="$ac_compile" |
| 9752 | case "(($ac_try" in |
| 9753 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9754 | *) ac_try_echo=$ac_try;; |
| 9755 | esac |
| 9756 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9757 | (eval "$ac_compile") 2>conftest.er1 |
Benny Prijono | 1c5f4e4 | 2008-02-07 13:11:39 +0000 | [diff] [blame] | 9758 | ac_status=$? |
| 9759 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9760 | rm -f conftest.er1 |
| 9761 | cat conftest.err >&5 |
| 9762 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 9763 | (exit $ac_status); } && { |
| 9764 | test -z "$ac_c_werror_flag" || |
| 9765 | test ! -s conftest.err |
| 9766 | } && test -s conftest.$ac_objext; then |
Benny Prijono | 1c5f4e4 | 2008-02-07 13:11:39 +0000 | [diff] [blame] | 9767 | cat >>confdefs.h <<\_ACEOF |
| 9768 | #define PJ_PTHREAD_MUTEXATTR_T_HAS_RECURSIVE 1 |
| 9769 | _ACEOF |
| 9770 | |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 9771 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 9772 | echo "${ECHO_T}yes" >&6; } |
Benny Prijono | 1c5f4e4 | 2008-02-07 13:11:39 +0000 | [diff] [blame] | 9773 | else |
| 9774 | echo "$as_me: failed program was:" >&5 |
| 9775 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9776 | |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 9777 | { echo "$as_me:$LINENO: result: no" >&5 |
| 9778 | echo "${ECHO_T}no" >&6; } |
Benny Prijono | 1c5f4e4 | 2008-02-07 13:11:39 +0000 | [diff] [blame] | 9779 | fi |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 9780 | |
| 9781 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Benny Prijono | 1c5f4e4 | 2008-02-07 13:11:39 +0000 | [diff] [blame] | 9782 | |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 9783 | |
| 9784 | case $target in |
| 9785 | *mingw* | *cygw* | *win32* | *w32* ) |
Benny Prijono | ad086e0 | 2007-02-16 10:58:18 +0000 | [diff] [blame] | 9786 | ac_os_objs="file_access_win32.o file_io_win32.o os_core_win32.o os_error_win32.o os_time_win32.o os_timestamp_win32.o guid_win32.o ioqueue_select.o" |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 9787 | ;; |
| 9788 | *) |
Benny Prijono | 4e48b51 | 2007-05-16 13:41:00 +0000 | [diff] [blame] | 9789 | ac_os_objs="file_access_unistd.o file_io_ansi.o os_core_unix.o os_error_unix.o os_time_unix.o os_timestamp_posix.o ioqueue_select.o" |
| 9790 | # UUID |
| 9791 | if test "$ac_has_uuid_lib" = "1" -a "$ac_has_uuid_h" = "1"; then |
| 9792 | ac_os_objs="$ac_os_objs guid_uuid.o" |
| 9793 | else |
| 9794 | ac_os_objs="$ac_os_objs guid_simple.o" |
| 9795 | fi |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 9796 | ;; |
| 9797 | esac |
| 9798 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9799 | |
| 9800 | |
| 9801 | |
Benny Prijono | 4e48b51 | 2007-05-16 13:41:00 +0000 | [diff] [blame] | 9802 | |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 9803 | # Check whether --enable-sound was given. |
Benny Prijono | 1d97162 | 2006-09-10 22:27:40 +0000 | [diff] [blame] | 9804 | if test "${enable_sound+set}" = set; then |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 9805 | enableval=$enable_sound; if test "$enable_sound" = "no"; then |
Benny Prijono | 1d97162 | 2006-09-10 22:27:40 +0000 | [diff] [blame] | 9806 | ac_pjmedia_snd=null |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 9807 | { echo "$as_me:$LINENO: result: Checking if sound is disabled... yes" >&5 |
| 9808 | echo "${ECHO_T}Checking if sound is disabled... yes" >&6; } |
Benny Prijono | 1d97162 | 2006-09-10 22:27:40 +0000 | [diff] [blame] | 9809 | fi |
| 9810 | |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 9811 | fi |
| 9812 | |
Benny Prijono | 1d97162 | 2006-09-10 22:27:40 +0000 | [diff] [blame] | 9813 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9814 | |
Benny Prijono | 27c9872 | 2007-04-09 21:28:15 +0000 | [diff] [blame] | 9815 | if test "${ac_cv_header_sys_soundcard_h+set}" = set; then |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 9816 | { echo "$as_me:$LINENO: checking for sys/soundcard.h" >&5 |
| 9817 | echo $ECHO_N "checking for sys/soundcard.h... $ECHO_C" >&6; } |
Benny Prijono | 27c9872 | 2007-04-09 21:28:15 +0000 | [diff] [blame] | 9818 | if test "${ac_cv_header_sys_soundcard_h+set}" = set; then |
| 9819 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9820 | fi |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 9821 | { echo "$as_me:$LINENO: result: $ac_cv_header_sys_soundcard_h" >&5 |
| 9822 | echo "${ECHO_T}$ac_cv_header_sys_soundcard_h" >&6; } |
Benny Prijono | 27c9872 | 2007-04-09 21:28:15 +0000 | [diff] [blame] | 9823 | else |
| 9824 | # Is the header compilable? |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 9825 | { echo "$as_me:$LINENO: checking sys/soundcard.h usability" >&5 |
| 9826 | echo $ECHO_N "checking sys/soundcard.h usability... $ECHO_C" >&6; } |
Benny Prijono | 27c9872 | 2007-04-09 21:28:15 +0000 | [diff] [blame] | 9827 | cat >conftest.$ac_ext <<_ACEOF |
| 9828 | /* confdefs.h. */ |
| 9829 | _ACEOF |
| 9830 | cat confdefs.h >>conftest.$ac_ext |
| 9831 | cat >>conftest.$ac_ext <<_ACEOF |
| 9832 | /* end confdefs.h. */ |
| 9833 | $ac_includes_default |
| 9834 | #include <sys/soundcard.h> |
| 9835 | _ACEOF |
| 9836 | rm -f conftest.$ac_objext |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 9837 | if { (ac_try="$ac_compile" |
| 9838 | case "(($ac_try" in |
| 9839 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9840 | *) ac_try_echo=$ac_try;; |
| 9841 | esac |
| 9842 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9843 | (eval "$ac_compile") 2>conftest.er1 |
Benny Prijono | 27c9872 | 2007-04-09 21:28:15 +0000 | [diff] [blame] | 9844 | ac_status=$? |
| 9845 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9846 | rm -f conftest.er1 |
| 9847 | cat conftest.err >&5 |
| 9848 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 9849 | (exit $ac_status); } && { |
| 9850 | test -z "$ac_c_werror_flag" || |
| 9851 | test ! -s conftest.err |
| 9852 | } && test -s conftest.$ac_objext; then |
Benny Prijono | 27c9872 | 2007-04-09 21:28:15 +0000 | [diff] [blame] | 9853 | ac_header_compiler=yes |
| 9854 | else |
| 9855 | echo "$as_me: failed program was:" >&5 |
| 9856 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9857 | |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 9858 | ac_header_compiler=no |
Benny Prijono | 27c9872 | 2007-04-09 21:28:15 +0000 | [diff] [blame] | 9859 | fi |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 9860 | |
| 9861 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 9862 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 9863 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Benny Prijono | 27c9872 | 2007-04-09 21:28:15 +0000 | [diff] [blame] | 9864 | |
| 9865 | # Is the header present? |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 9866 | { echo "$as_me:$LINENO: checking sys/soundcard.h presence" >&5 |
| 9867 | echo $ECHO_N "checking sys/soundcard.h presence... $ECHO_C" >&6; } |
Benny Prijono | 27c9872 | 2007-04-09 21:28:15 +0000 | [diff] [blame] | 9868 | cat >conftest.$ac_ext <<_ACEOF |
| 9869 | /* confdefs.h. */ |
| 9870 | _ACEOF |
| 9871 | cat confdefs.h >>conftest.$ac_ext |
| 9872 | cat >>conftest.$ac_ext <<_ACEOF |
| 9873 | /* end confdefs.h. */ |
| 9874 | #include <sys/soundcard.h> |
| 9875 | _ACEOF |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 9876 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 9877 | case "(($ac_try" in |
| 9878 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9879 | *) ac_try_echo=$ac_try;; |
| 9880 | esac |
| 9881 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9882 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Benny Prijono | 27c9872 | 2007-04-09 21:28:15 +0000 | [diff] [blame] | 9883 | ac_status=$? |
| 9884 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9885 | rm -f conftest.er1 |
| 9886 | cat conftest.err >&5 |
| 9887 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 9888 | (exit $ac_status); } >/dev/null && { |
| 9889 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 9890 | test ! -s conftest.err |
| 9891 | }; then |
Benny Prijono | 27c9872 | 2007-04-09 21:28:15 +0000 | [diff] [blame] | 9892 | ac_header_preproc=yes |
| 9893 | else |
| 9894 | echo "$as_me: failed program was:" >&5 |
| 9895 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9896 | |
| 9897 | ac_header_preproc=no |
| 9898 | fi |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 9899 | |
Benny Prijono | 27c9872 | 2007-04-09 21:28:15 +0000 | [diff] [blame] | 9900 | rm -f conftest.err conftest.$ac_ext |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 9901 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 9902 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Benny Prijono | 27c9872 | 2007-04-09 21:28:15 +0000 | [diff] [blame] | 9903 | |
| 9904 | # So? What about this header? |
| 9905 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 9906 | yes:no: ) |
| 9907 | { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 9908 | echo "$as_me: WARNING: sys/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 9909 | { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: proceeding with the compiler's result" >&5 |
| 9910 | echo "$as_me: WARNING: sys/soundcard.h: proceeding with the compiler's result" >&2;} |
| 9911 | ac_header_preproc=yes |
| 9912 | ;; |
| 9913 | no:yes:* ) |
| 9914 | { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: present but cannot be compiled" >&5 |
| 9915 | echo "$as_me: WARNING: sys/soundcard.h: present but cannot be compiled" >&2;} |
| 9916 | { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: check for missing prerequisite headers?" >&5 |
| 9917 | echo "$as_me: WARNING: sys/soundcard.h: check for missing prerequisite headers?" >&2;} |
| 9918 | { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: see the Autoconf documentation" >&5 |
| 9919 | echo "$as_me: WARNING: sys/soundcard.h: see the Autoconf documentation" >&2;} |
| 9920 | { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 9921 | echo "$as_me: WARNING: sys/soundcard.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 9922 | { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: proceeding with the preprocessor's result" >&5 |
| 9923 | echo "$as_me: WARNING: sys/soundcard.h: proceeding with the preprocessor's result" >&2;} |
| 9924 | { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: in the future, the compiler will take precedence" >&5 |
| 9925 | echo "$as_me: WARNING: sys/soundcard.h: in the future, the compiler will take precedence" >&2;} |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 9926 | |
Benny Prijono | 27c9872 | 2007-04-09 21:28:15 +0000 | [diff] [blame] | 9927 | ;; |
| 9928 | esac |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 9929 | { echo "$as_me:$LINENO: checking for sys/soundcard.h" >&5 |
| 9930 | echo $ECHO_N "checking for sys/soundcard.h... $ECHO_C" >&6; } |
Benny Prijono | 27c9872 | 2007-04-09 21:28:15 +0000 | [diff] [blame] | 9931 | if test "${ac_cv_header_sys_soundcard_h+set}" = set; then |
| 9932 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9933 | else |
| 9934 | ac_cv_header_sys_soundcard_h=$ac_header_preproc |
| 9935 | fi |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 9936 | { echo "$as_me:$LINENO: result: $ac_cv_header_sys_soundcard_h" >&5 |
| 9937 | echo "${ECHO_T}$ac_cv_header_sys_soundcard_h" >&6; } |
Benny Prijono | 27c9872 | 2007-04-09 21:28:15 +0000 | [diff] [blame] | 9938 | |
| 9939 | fi |
| 9940 | if test $ac_cv_header_sys_soundcard_h = yes; then |
| 9941 | ac_pa_cflags="$ac_pa_cflags -DHAVE_SYS_SOUNDCARD_H" |
| 9942 | fi |
| 9943 | |
| 9944 | |
| 9945 | if test "${ac_cv_header_linux_soundcard_h+set}" = set; then |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 9946 | { echo "$as_me:$LINENO: checking for linux/soundcard.h" >&5 |
| 9947 | echo $ECHO_N "checking for linux/soundcard.h... $ECHO_C" >&6; } |
Benny Prijono | 27c9872 | 2007-04-09 21:28:15 +0000 | [diff] [blame] | 9948 | if test "${ac_cv_header_linux_soundcard_h+set}" = set; then |
| 9949 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9950 | fi |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 9951 | { echo "$as_me:$LINENO: result: $ac_cv_header_linux_soundcard_h" >&5 |
| 9952 | echo "${ECHO_T}$ac_cv_header_linux_soundcard_h" >&6; } |
Benny Prijono | 27c9872 | 2007-04-09 21:28:15 +0000 | [diff] [blame] | 9953 | else |
| 9954 | # Is the header compilable? |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 9955 | { echo "$as_me:$LINENO: checking linux/soundcard.h usability" >&5 |
| 9956 | echo $ECHO_N "checking linux/soundcard.h usability... $ECHO_C" >&6; } |
Benny Prijono | 27c9872 | 2007-04-09 21:28:15 +0000 | [diff] [blame] | 9957 | cat >conftest.$ac_ext <<_ACEOF |
| 9958 | /* confdefs.h. */ |
| 9959 | _ACEOF |
| 9960 | cat confdefs.h >>conftest.$ac_ext |
| 9961 | cat >>conftest.$ac_ext <<_ACEOF |
| 9962 | /* end confdefs.h. */ |
| 9963 | $ac_includes_default |
| 9964 | #include <linux/soundcard.h> |
| 9965 | _ACEOF |
| 9966 | rm -f conftest.$ac_objext |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 9967 | if { (ac_try="$ac_compile" |
| 9968 | case "(($ac_try" in |
| 9969 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9970 | *) ac_try_echo=$ac_try;; |
| 9971 | esac |
| 9972 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9973 | (eval "$ac_compile") 2>conftest.er1 |
Benny Prijono | 27c9872 | 2007-04-09 21:28:15 +0000 | [diff] [blame] | 9974 | ac_status=$? |
| 9975 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9976 | rm -f conftest.er1 |
| 9977 | cat conftest.err >&5 |
| 9978 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 9979 | (exit $ac_status); } && { |
| 9980 | test -z "$ac_c_werror_flag" || |
| 9981 | test ! -s conftest.err |
| 9982 | } && test -s conftest.$ac_objext; then |
Benny Prijono | 27c9872 | 2007-04-09 21:28:15 +0000 | [diff] [blame] | 9983 | ac_header_compiler=yes |
| 9984 | else |
| 9985 | echo "$as_me: failed program was:" >&5 |
| 9986 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9987 | |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 9988 | ac_header_compiler=no |
Benny Prijono | 27c9872 | 2007-04-09 21:28:15 +0000 | [diff] [blame] | 9989 | fi |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 9990 | |
| 9991 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 9992 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 9993 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Benny Prijono | 27c9872 | 2007-04-09 21:28:15 +0000 | [diff] [blame] | 9994 | |
| 9995 | # Is the header present? |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 9996 | { echo "$as_me:$LINENO: checking linux/soundcard.h presence" >&5 |
| 9997 | echo $ECHO_N "checking linux/soundcard.h presence... $ECHO_C" >&6; } |
Benny Prijono | 27c9872 | 2007-04-09 21:28:15 +0000 | [diff] [blame] | 9998 | cat >conftest.$ac_ext <<_ACEOF |
| 9999 | /* confdefs.h. */ |
| 10000 | _ACEOF |
| 10001 | cat confdefs.h >>conftest.$ac_ext |
| 10002 | cat >>conftest.$ac_ext <<_ACEOF |
| 10003 | /* end confdefs.h. */ |
| 10004 | #include <linux/soundcard.h> |
| 10005 | _ACEOF |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 10006 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 10007 | case "(($ac_try" in |
| 10008 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10009 | *) ac_try_echo=$ac_try;; |
| 10010 | esac |
| 10011 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10012 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Benny Prijono | 27c9872 | 2007-04-09 21:28:15 +0000 | [diff] [blame] | 10013 | ac_status=$? |
| 10014 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10015 | rm -f conftest.er1 |
| 10016 | cat conftest.err >&5 |
| 10017 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 10018 | (exit $ac_status); } >/dev/null && { |
| 10019 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 10020 | test ! -s conftest.err |
| 10021 | }; then |
Benny Prijono | 27c9872 | 2007-04-09 21:28:15 +0000 | [diff] [blame] | 10022 | ac_header_preproc=yes |
| 10023 | else |
| 10024 | echo "$as_me: failed program was:" >&5 |
| 10025 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10026 | |
| 10027 | ac_header_preproc=no |
| 10028 | fi |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 10029 | |
Benny Prijono | 27c9872 | 2007-04-09 21:28:15 +0000 | [diff] [blame] | 10030 | rm -f conftest.err conftest.$ac_ext |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 10031 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 10032 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Benny Prijono | 27c9872 | 2007-04-09 21:28:15 +0000 | [diff] [blame] | 10033 | |
| 10034 | # So? What about this header? |
| 10035 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 10036 | yes:no: ) |
| 10037 | { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 10038 | echo "$as_me: WARNING: linux/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 10039 | { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: proceeding with the compiler's result" >&5 |
| 10040 | echo "$as_me: WARNING: linux/soundcard.h: proceeding with the compiler's result" >&2;} |
| 10041 | ac_header_preproc=yes |
| 10042 | ;; |
| 10043 | no:yes:* ) |
| 10044 | { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: present but cannot be compiled" >&5 |
| 10045 | echo "$as_me: WARNING: linux/soundcard.h: present but cannot be compiled" >&2;} |
| 10046 | { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: check for missing prerequisite headers?" >&5 |
| 10047 | echo "$as_me: WARNING: linux/soundcard.h: check for missing prerequisite headers?" >&2;} |
| 10048 | { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: see the Autoconf documentation" >&5 |
| 10049 | echo "$as_me: WARNING: linux/soundcard.h: see the Autoconf documentation" >&2;} |
| 10050 | { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 10051 | echo "$as_me: WARNING: linux/soundcard.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 10052 | { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: proceeding with the preprocessor's result" >&5 |
| 10053 | echo "$as_me: WARNING: linux/soundcard.h: proceeding with the preprocessor's result" >&2;} |
| 10054 | { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: in the future, the compiler will take precedence" >&5 |
| 10055 | echo "$as_me: WARNING: linux/soundcard.h: in the future, the compiler will take precedence" >&2;} |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 10056 | |
Benny Prijono | 27c9872 | 2007-04-09 21:28:15 +0000 | [diff] [blame] | 10057 | ;; |
| 10058 | esac |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 10059 | { echo "$as_me:$LINENO: checking for linux/soundcard.h" >&5 |
| 10060 | echo $ECHO_N "checking for linux/soundcard.h... $ECHO_C" >&6; } |
Benny Prijono | 27c9872 | 2007-04-09 21:28:15 +0000 | [diff] [blame] | 10061 | if test "${ac_cv_header_linux_soundcard_h+set}" = set; then |
| 10062 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10063 | else |
| 10064 | ac_cv_header_linux_soundcard_h=$ac_header_preproc |
| 10065 | fi |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 10066 | { echo "$as_me:$LINENO: result: $ac_cv_header_linux_soundcard_h" >&5 |
| 10067 | echo "${ECHO_T}$ac_cv_header_linux_soundcard_h" >&6; } |
Benny Prijono | 27c9872 | 2007-04-09 21:28:15 +0000 | [diff] [blame] | 10068 | |
| 10069 | fi |
| 10070 | if test $ac_cv_header_linux_soundcard_h = yes; then |
| 10071 | ac_pa_cflags="$ac_pa_cflags -DHAVE_LINUX_SOUNDCARD_H" |
| 10072 | fi |
| 10073 | |
| 10074 | |
| 10075 | if test "${ac_cv_header_machine_soundcard_h+set}" = set; then |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 10076 | { echo "$as_me:$LINENO: checking for machine/soundcard.h" >&5 |
| 10077 | echo $ECHO_N "checking for machine/soundcard.h... $ECHO_C" >&6; } |
Benny Prijono | 27c9872 | 2007-04-09 21:28:15 +0000 | [diff] [blame] | 10078 | if test "${ac_cv_header_machine_soundcard_h+set}" = set; then |
| 10079 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10080 | fi |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 10081 | { echo "$as_me:$LINENO: result: $ac_cv_header_machine_soundcard_h" >&5 |
| 10082 | echo "${ECHO_T}$ac_cv_header_machine_soundcard_h" >&6; } |
Benny Prijono | 27c9872 | 2007-04-09 21:28:15 +0000 | [diff] [blame] | 10083 | else |
| 10084 | # Is the header compilable? |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 10085 | { echo "$as_me:$LINENO: checking machine/soundcard.h usability" >&5 |
| 10086 | echo $ECHO_N "checking machine/soundcard.h usability... $ECHO_C" >&6; } |
Benny Prijono | 27c9872 | 2007-04-09 21:28:15 +0000 | [diff] [blame] | 10087 | cat >conftest.$ac_ext <<_ACEOF |
| 10088 | /* confdefs.h. */ |
| 10089 | _ACEOF |
| 10090 | cat confdefs.h >>conftest.$ac_ext |
| 10091 | cat >>conftest.$ac_ext <<_ACEOF |
| 10092 | /* end confdefs.h. */ |
| 10093 | $ac_includes_default |
| 10094 | #include <machine/soundcard.h> |
| 10095 | _ACEOF |
| 10096 | rm -f conftest.$ac_objext |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 10097 | if { (ac_try="$ac_compile" |
| 10098 | case "(($ac_try" in |
| 10099 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10100 | *) ac_try_echo=$ac_try;; |
| 10101 | esac |
| 10102 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10103 | (eval "$ac_compile") 2>conftest.er1 |
Benny Prijono | 27c9872 | 2007-04-09 21:28:15 +0000 | [diff] [blame] | 10104 | ac_status=$? |
| 10105 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10106 | rm -f conftest.er1 |
| 10107 | cat conftest.err >&5 |
| 10108 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 10109 | (exit $ac_status); } && { |
| 10110 | test -z "$ac_c_werror_flag" || |
| 10111 | test ! -s conftest.err |
| 10112 | } && test -s conftest.$ac_objext; then |
Benny Prijono | 27c9872 | 2007-04-09 21:28:15 +0000 | [diff] [blame] | 10113 | ac_header_compiler=yes |
| 10114 | else |
| 10115 | echo "$as_me: failed program was:" >&5 |
| 10116 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10117 | |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 10118 | ac_header_compiler=no |
Benny Prijono | 27c9872 | 2007-04-09 21:28:15 +0000 | [diff] [blame] | 10119 | fi |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 10120 | |
| 10121 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 10122 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 10123 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Benny Prijono | 27c9872 | 2007-04-09 21:28:15 +0000 | [diff] [blame] | 10124 | |
| 10125 | # Is the header present? |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 10126 | { echo "$as_me:$LINENO: checking machine/soundcard.h presence" >&5 |
| 10127 | echo $ECHO_N "checking machine/soundcard.h presence... $ECHO_C" >&6; } |
Benny Prijono | 27c9872 | 2007-04-09 21:28:15 +0000 | [diff] [blame] | 10128 | cat >conftest.$ac_ext <<_ACEOF |
| 10129 | /* confdefs.h. */ |
| 10130 | _ACEOF |
| 10131 | cat confdefs.h >>conftest.$ac_ext |
| 10132 | cat >>conftest.$ac_ext <<_ACEOF |
| 10133 | /* end confdefs.h. */ |
| 10134 | #include <machine/soundcard.h> |
| 10135 | _ACEOF |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 10136 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 10137 | case "(($ac_try" in |
| 10138 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10139 | *) ac_try_echo=$ac_try;; |
| 10140 | esac |
| 10141 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10142 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Benny Prijono | 27c9872 | 2007-04-09 21:28:15 +0000 | [diff] [blame] | 10143 | ac_status=$? |
| 10144 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10145 | rm -f conftest.er1 |
| 10146 | cat conftest.err >&5 |
| 10147 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 10148 | (exit $ac_status); } >/dev/null && { |
| 10149 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 10150 | test ! -s conftest.err |
| 10151 | }; then |
Benny Prijono | 27c9872 | 2007-04-09 21:28:15 +0000 | [diff] [blame] | 10152 | ac_header_preproc=yes |
| 10153 | else |
| 10154 | echo "$as_me: failed program was:" >&5 |
| 10155 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10156 | |
| 10157 | ac_header_preproc=no |
| 10158 | fi |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 10159 | |
Benny Prijono | 27c9872 | 2007-04-09 21:28:15 +0000 | [diff] [blame] | 10160 | rm -f conftest.err conftest.$ac_ext |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 10161 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 10162 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Benny Prijono | 27c9872 | 2007-04-09 21:28:15 +0000 | [diff] [blame] | 10163 | |
| 10164 | # So? What about this header? |
| 10165 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 10166 | yes:no: ) |
| 10167 | { echo "$as_me:$LINENO: WARNING: machine/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 10168 | echo "$as_me: WARNING: machine/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 10169 | { echo "$as_me:$LINENO: WARNING: machine/soundcard.h: proceeding with the compiler's result" >&5 |
| 10170 | echo "$as_me: WARNING: machine/soundcard.h: proceeding with the compiler's result" >&2;} |
| 10171 | ac_header_preproc=yes |
| 10172 | ;; |
| 10173 | no:yes:* ) |
| 10174 | { echo "$as_me:$LINENO: WARNING: machine/soundcard.h: present but cannot be compiled" >&5 |
| 10175 | echo "$as_me: WARNING: machine/soundcard.h: present but cannot be compiled" >&2;} |
| 10176 | { echo "$as_me:$LINENO: WARNING: machine/soundcard.h: check for missing prerequisite headers?" >&5 |
| 10177 | echo "$as_me: WARNING: machine/soundcard.h: check for missing prerequisite headers?" >&2;} |
| 10178 | { echo "$as_me:$LINENO: WARNING: machine/soundcard.h: see the Autoconf documentation" >&5 |
| 10179 | echo "$as_me: WARNING: machine/soundcard.h: see the Autoconf documentation" >&2;} |
| 10180 | { echo "$as_me:$LINENO: WARNING: machine/soundcard.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 10181 | echo "$as_me: WARNING: machine/soundcard.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 10182 | { echo "$as_me:$LINENO: WARNING: machine/soundcard.h: proceeding with the preprocessor's result" >&5 |
| 10183 | echo "$as_me: WARNING: machine/soundcard.h: proceeding with the preprocessor's result" >&2;} |
| 10184 | { echo "$as_me:$LINENO: WARNING: machine/soundcard.h: in the future, the compiler will take precedence" >&5 |
| 10185 | echo "$as_me: WARNING: machine/soundcard.h: in the future, the compiler will take precedence" >&2;} |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 10186 | |
Benny Prijono | 27c9872 | 2007-04-09 21:28:15 +0000 | [diff] [blame] | 10187 | ;; |
| 10188 | esac |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 10189 | { echo "$as_me:$LINENO: checking for machine/soundcard.h" >&5 |
| 10190 | echo $ECHO_N "checking for machine/soundcard.h... $ECHO_C" >&6; } |
Benny Prijono | 27c9872 | 2007-04-09 21:28:15 +0000 | [diff] [blame] | 10191 | if test "${ac_cv_header_machine_soundcard_h+set}" = set; then |
| 10192 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10193 | else |
| 10194 | ac_cv_header_machine_soundcard_h=$ac_header_preproc |
| 10195 | fi |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 10196 | { echo "$as_me:$LINENO: result: $ac_cv_header_machine_soundcard_h" >&5 |
| 10197 | echo "${ECHO_T}$ac_cv_header_machine_soundcard_h" >&6; } |
Benny Prijono | 27c9872 | 2007-04-09 21:28:15 +0000 | [diff] [blame] | 10198 | |
| 10199 | fi |
| 10200 | if test $ac_cv_header_machine_soundcard_h = yes; then |
| 10201 | ac_pa_cflags="$ac_pa_cflags -DHAVE_MACHINE_SOUNDCARD_H" |
| 10202 | fi |
| 10203 | |
| 10204 | |
| 10205 | |
Benny Prijono | 3e09167 | 2008-01-09 15:43:02 +0000 | [diff] [blame] | 10206 | if test "x$ac_cv_c_bigendian" = "xyes"; then |
| 10207 | ac_pa_cflags="$ac_pa_cflags -DPA_BIG_ENDIAN" |
| 10208 | else |
| 10209 | ac_pa_cflags="$ac_pa_cflags -DPA_LITTLE_ENDIAN" |
| 10210 | fi |
| 10211 | |
Benny Prijono | 1d97162 | 2006-09-10 22:27:40 +0000 | [diff] [blame] | 10212 | if test "$enable_sound" = "no"; then |
| 10213 | true; |
| 10214 | else |
| 10215 | case $target in |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame] | 10216 | *darwin*) |
Benny Prijono | 39ae2da | 2006-10-13 17:57:42 +0000 | [diff] [blame] | 10217 | LIBS="$LIBS -framework CoreAudio -framework CoreServices -framework AudioUnit -framework AudioToolbox" |
| 10218 | if test "`uname -r`" = "6.8"; then |
Benny Prijono | 27c9872 | 2007-04-09 21:28:15 +0000 | [diff] [blame] | 10219 | #ac_pa_cflags="$ac_pa_cflags -DPA_OLD_CORE_AUDIO -DMOSX_USE_NON_ATOMIC_FLAG_BITS" |
Benny Prijono | 39ae2da | 2006-10-13 17:57:42 +0000 | [diff] [blame] | 10220 | #AC_MSG_RESULT([Setting additional PortAudio CFLAGS.. -DPA_OLD_CORE_AUDIO -DMOSX_USE_NON_ATOMIC_FLAG_BITS]) |
| 10221 | ac_pjmedia_snd=pa_old_darwinos |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 10222 | { echo "$as_me:$LINENO: result: Checking sound device backend... old coreaudio" >&5 |
| 10223 | echo "${ECHO_T}Checking sound device backend... old coreaudio" >&6; } |
Benny Prijono | 39ae2da | 2006-10-13 17:57:42 +0000 | [diff] [blame] | 10224 | else |
| 10225 | ac_pjmedia_snd=pa_darwinos |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 10226 | { echo "$as_me:$LINENO: result: Checking sound device backend... coreaudio" >&5 |
| 10227 | echo "${ECHO_T}Checking sound device backend... coreaudio" >&6; } |
Benny Prijono | 39ae2da | 2006-10-13 17:57:42 +0000 | [diff] [blame] | 10228 | fi |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame] | 10229 | ;; |
| 10230 | *cygwin* | *mingw*) |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 10231 | ac_pjmedia_snd=pa_win32 |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 10232 | { echo "$as_me:$LINENO: result: Checking sound device backend... win32 sound" >&5 |
| 10233 | echo "${ECHO_T}Checking sound device backend... win32 sound" >&6; } |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 10234 | ;; |
| 10235 | *rtems*) |
| 10236 | ac_pjmedia_snd=null |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 10237 | { echo "$as_me:$LINENO: result: Checking sound device backend... null sound" >&5 |
| 10238 | echo "${ECHO_T}Checking sound device backend... null sound" >&6; } |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 10239 | ;; |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 10240 | *) |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 10241 | ac_pjmedia_snd=pa_unix |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10242 | if test "${ac_cv_header_alsa_version_h+set}" = set; then |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 10243 | { echo "$as_me:$LINENO: checking for alsa/version.h" >&5 |
| 10244 | echo $ECHO_N "checking for alsa/version.h... $ECHO_C" >&6; } |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 10245 | if test "${ac_cv_header_alsa_version_h+set}" = set; then |
| 10246 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10247 | fi |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 10248 | { echo "$as_me:$LINENO: result: $ac_cv_header_alsa_version_h" >&5 |
| 10249 | echo "${ECHO_T}$ac_cv_header_alsa_version_h" >&6; } |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 10250 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10251 | # Is the header compilable? |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 10252 | { echo "$as_me:$LINENO: checking alsa/version.h usability" >&5 |
| 10253 | echo $ECHO_N "checking alsa/version.h usability... $ECHO_C" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10254 | cat >conftest.$ac_ext <<_ACEOF |
| 10255 | /* confdefs.h. */ |
| 10256 | _ACEOF |
| 10257 | cat confdefs.h >>conftest.$ac_ext |
| 10258 | cat >>conftest.$ac_ext <<_ACEOF |
| 10259 | /* end confdefs.h. */ |
| 10260 | $ac_includes_default |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 10261 | #include <alsa/version.h> |
| 10262 | _ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10263 | rm -f conftest.$ac_objext |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 10264 | if { (ac_try="$ac_compile" |
| 10265 | case "(($ac_try" in |
| 10266 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10267 | *) ac_try_echo=$ac_try;; |
| 10268 | esac |
| 10269 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10270 | (eval "$ac_compile") 2>conftest.er1 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 10271 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10272 | grep -v '^ *+' conftest.er1 >conftest.err |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 10273 | rm -f conftest.er1 |
| 10274 | cat conftest.err >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10275 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 10276 | (exit $ac_status); } && { |
| 10277 | test -z "$ac_c_werror_flag" || |
| 10278 | test ! -s conftest.err |
| 10279 | } && test -s conftest.$ac_objext; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10280 | ac_header_compiler=yes |
| 10281 | else |
| 10282 | echo "$as_me: failed program was:" >&5 |
| 10283 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10284 | |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 10285 | ac_header_compiler=no |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10286 | fi |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 10287 | |
| 10288 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 10289 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 10290 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10291 | |
| 10292 | # Is the header present? |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 10293 | { echo "$as_me:$LINENO: checking alsa/version.h presence" >&5 |
| 10294 | echo $ECHO_N "checking alsa/version.h presence... $ECHO_C" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10295 | cat >conftest.$ac_ext <<_ACEOF |
| 10296 | /* confdefs.h. */ |
| 10297 | _ACEOF |
| 10298 | cat confdefs.h >>conftest.$ac_ext |
| 10299 | cat >>conftest.$ac_ext <<_ACEOF |
| 10300 | /* end confdefs.h. */ |
| 10301 | #include <alsa/version.h> |
| 10302 | _ACEOF |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 10303 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 10304 | case "(($ac_try" in |
| 10305 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10306 | *) ac_try_echo=$ac_try;; |
| 10307 | esac |
| 10308 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10309 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10310 | ac_status=$? |
| 10311 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10312 | rm -f conftest.er1 |
| 10313 | cat conftest.err >&5 |
| 10314 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 10315 | (exit $ac_status); } >/dev/null && { |
| 10316 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 10317 | test ! -s conftest.err |
| 10318 | }; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10319 | ac_header_preproc=yes |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 10320 | else |
| 10321 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10322 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10323 | |
| 10324 | ac_header_preproc=no |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 10325 | fi |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 10326 | |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 10327 | rm -f conftest.err conftest.$ac_ext |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 10328 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 10329 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10330 | |
| 10331 | # So? What about this header? |
| 10332 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 10333 | yes:no: ) |
| 10334 | { echo "$as_me:$LINENO: WARNING: alsa/version.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 10335 | echo "$as_me: WARNING: alsa/version.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 10336 | { echo "$as_me:$LINENO: WARNING: alsa/version.h: proceeding with the compiler's result" >&5 |
| 10337 | echo "$as_me: WARNING: alsa/version.h: proceeding with the compiler's result" >&2;} |
| 10338 | ac_header_preproc=yes |
| 10339 | ;; |
| 10340 | no:yes:* ) |
| 10341 | { echo "$as_me:$LINENO: WARNING: alsa/version.h: present but cannot be compiled" >&5 |
| 10342 | echo "$as_me: WARNING: alsa/version.h: present but cannot be compiled" >&2;} |
| 10343 | { echo "$as_me:$LINENO: WARNING: alsa/version.h: check for missing prerequisite headers?" >&5 |
| 10344 | echo "$as_me: WARNING: alsa/version.h: check for missing prerequisite headers?" >&2;} |
| 10345 | { echo "$as_me:$LINENO: WARNING: alsa/version.h: see the Autoconf documentation" >&5 |
| 10346 | echo "$as_me: WARNING: alsa/version.h: see the Autoconf documentation" >&2;} |
| 10347 | { echo "$as_me:$LINENO: WARNING: alsa/version.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 10348 | echo "$as_me: WARNING: alsa/version.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 10349 | { echo "$as_me:$LINENO: WARNING: alsa/version.h: proceeding with the preprocessor's result" >&5 |
| 10350 | echo "$as_me: WARNING: alsa/version.h: proceeding with the preprocessor's result" >&2;} |
| 10351 | { echo "$as_me:$LINENO: WARNING: alsa/version.h: in the future, the compiler will take precedence" >&5 |
| 10352 | echo "$as_me: WARNING: alsa/version.h: in the future, the compiler will take precedence" >&2;} |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 10353 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10354 | ;; |
| 10355 | esac |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 10356 | { echo "$as_me:$LINENO: checking for alsa/version.h" >&5 |
| 10357 | echo $ECHO_N "checking for alsa/version.h... $ECHO_C" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10358 | if test "${ac_cv_header_alsa_version_h+set}" = set; then |
| 10359 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10360 | else |
| 10361 | ac_cv_header_alsa_version_h=$ac_header_preproc |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 10362 | fi |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 10363 | { echo "$as_me:$LINENO: result: $ac_cv_header_alsa_version_h" >&5 |
| 10364 | echo "${ECHO_T}$ac_cv_header_alsa_version_h" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10365 | |
| 10366 | fi |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 10367 | if test $ac_cv_header_alsa_version_h = yes; then |
| 10368 | ac_pa_use_alsa=1 |
| 10369 | |
| 10370 | LIBS="$LIBS -lasound" |
| 10371 | |
| 10372 | else |
| 10373 | ac_pa_use_alsa=0 |
| 10374 | |
| 10375 | fi |
| 10376 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10377 | |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 10378 | { echo "$as_me:$LINENO: result: Checking sound device backend... unix" >&5 |
| 10379 | echo "${ECHO_T}Checking sound device backend... unix" >&6; } |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 10380 | |
| 10381 | ac_pa_use_oss=1 |
| 10382 | |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 10383 | # Check whether --enable-oss was given. |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 10384 | if test "${enable_oss+set}" = set; then |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 10385 | enableval=$enable_oss; |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 10386 | if test "$enable_oss" = "no"; then |
| 10387 | ac_pa_use_oss=0 |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 10388 | { echo "$as_me:$LINENO: result: Checking if OSS audio is disabled... yes" >&5 |
| 10389 | echo "${ECHO_T}Checking if OSS audio is disabled... yes" >&6; } |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 10390 | fi |
| 10391 | |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 10392 | fi |
| 10393 | |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 10394 | ;; |
Benny Prijono | 1d97162 | 2006-09-10 22:27:40 +0000 | [diff] [blame] | 10395 | esac |
| 10396 | fi |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 10397 | |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 10398 | # Check whether --enable-ext_sound was given. |
Benny Prijono | ebb2c33 | 2008-07-28 23:40:58 +0000 | [diff] [blame] | 10399 | if test "${enable_ext_sound+set}" = set; then |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 10400 | enableval=$enable_ext_sound; if test "$enable_ext_sound" = "yes"; then |
Benny Prijono | ebb2c33 | 2008-07-28 23:40:58 +0000 | [diff] [blame] | 10401 | ac_pjmedia_snd=external |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 10402 | { echo "$as_me:$LINENO: result: Checking if external sound is set... yes" >&5 |
| 10403 | echo "${ECHO_T}Checking if external sound is set... yes" >&6; } |
Benny Prijono | ebb2c33 | 2008-07-28 23:40:58 +0000 | [diff] [blame] | 10404 | fi |
| 10405 | |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 10406 | fi |
Benny Prijono | ebb2c33 | 2008-07-28 23:40:58 +0000 | [diff] [blame] | 10407 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10408 | |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 10409 | |
| 10410 | # Check whether --enable-small-filter was given. |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 10411 | if test "${enable_small_filter+set}" = set; then |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 10412 | enableval=$enable_small_filter; if test "$enable_small_filter" = "no"; then |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 10413 | ac_no_small_filter='-DPJMEDIA_HAS_SMALL_FILTER=0' |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 10414 | { echo "$as_me:$LINENO: result: Checking if small filter is disabled... yes" >&5 |
| 10415 | echo "${ECHO_T}Checking if small filter is disabled... yes" >&6; } |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 10416 | fi |
| 10417 | else |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 10418 | { echo "$as_me:$LINENO: result: Checking if small filter is disabled... no" >&5 |
| 10419 | echo "${ECHO_T}Checking if small filter is disabled... no" >&6; } |
| 10420 | fi |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 10421 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10422 | |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 10423 | |
| 10424 | # Check whether --enable-large-filter was given. |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 10425 | if test "${enable_large_filter+set}" = set; then |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 10426 | enableval=$enable_large_filter; if test "$enable_large_filter" = "no"; then |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 10427 | ac_no_large_filter='-DPJMEDIA_HAS_LARGE_FILTER=0' |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 10428 | { echo "$as_me:$LINENO: result: Checking if large filter is disabled... yes" >&5 |
| 10429 | echo "${ECHO_T}Checking if large filter is disabled... yes" >&6; } |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 10430 | fi |
| 10431 | else |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 10432 | { echo "$as_me:$LINENO: result: Checking if large filter is disabled... no" >&5 |
| 10433 | echo "${ECHO_T}Checking if large filter is disabled... no" >&6; } |
| 10434 | fi |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 10435 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10436 | |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 10437 | |
| 10438 | # Check whether --enable-speex-aec was given. |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 10439 | if test "${enable_speex_aec+set}" = set; then |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 10440 | enableval=$enable_speex_aec; if test "$enable_speex_aec" = "no"; then |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 10441 | ac_no_speex_aec='-DPJMEDIA_HAS_SPEEX_AEC=0' |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 10442 | { echo "$as_me:$LINENO: result: Checking if Speex AEC is disabled...yes" >&5 |
| 10443 | echo "${ECHO_T}Checking if Speex AEC is disabled...yes" >&6; } |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 10444 | fi |
| 10445 | else |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 10446 | { echo "$as_me:$LINENO: result: Checking if Speex AEC is disabled...no" >&5 |
| 10447 | echo "${ECHO_T}Checking if Speex AEC is disabled...no" >&6; } |
| 10448 | fi |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 10449 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10450 | |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 10451 | |
| 10452 | # Check whether --enable-g711-codec was given. |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 10453 | if test "${enable_g711_codec+set}" = set; then |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 10454 | enableval=$enable_g711_codec; if test "$enable_g711_codec" = "no"; then |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 10455 | ac_no_g711_codec=1 |
Benny Prijono | 06d1d0e | 2007-01-27 18:09:28 +0000 | [diff] [blame] | 10456 | cat >>confdefs.h <<\_ACEOF |
| 10457 | #define PJMEDIA_HAS_G711_CODEC 0 |
| 10458 | _ACEOF |
| 10459 | |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 10460 | { echo "$as_me:$LINENO: result: Checking if G.711 codec is disabled...yes" >&5 |
| 10461 | echo "${ECHO_T}Checking if G.711 codec is disabled...yes" >&6; } |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 10462 | fi |
| 10463 | else |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 10464 | { echo "$as_me:$LINENO: result: Checking if G.711 codec is disabled...no" >&5 |
| 10465 | echo "${ECHO_T}Checking if G.711 codec is disabled...no" >&6; } |
| 10466 | fi |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 10467 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10468 | |
| 10469 | |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 10470 | |
| 10471 | # Check whether --enable-l16-codec was given. |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 10472 | if test "${enable_l16_codec+set}" = set; then |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 10473 | enableval=$enable_l16_codec; if test "$enable_l16_codec" = "no"; then |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 10474 | ac_no_l16_codec=1 |
Benny Prijono | 06d1d0e | 2007-01-27 18:09:28 +0000 | [diff] [blame] | 10475 | cat >>confdefs.h <<\_ACEOF |
| 10476 | #define PJMEDIA_HAS_L16_CODEC 0 |
| 10477 | _ACEOF |
| 10478 | |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 10479 | { echo "$as_me:$LINENO: result: Checking if L16 codecs are disabled...yes" >&5 |
| 10480 | echo "${ECHO_T}Checking if L16 codecs are disabled...yes" >&6; } |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 10481 | fi |
| 10482 | else |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 10483 | { echo "$as_me:$LINENO: result: Checking if L16 codec is disabled...no" >&5 |
| 10484 | echo "${ECHO_T}Checking if L16 codec is disabled...no" >&6; } |
| 10485 | fi |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 10486 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10487 | |
| 10488 | |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 10489 | |
| 10490 | # Check whether --enable-gsm-codec was given. |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 10491 | if test "${enable_gsm_codec+set}" = set; then |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 10492 | enableval=$enable_gsm_codec; if test "$enable_gsm_codec" = "no"; then |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 10493 | ac_no_gsm_codec=1 |
Benny Prijono | 06d1d0e | 2007-01-27 18:09:28 +0000 | [diff] [blame] | 10494 | cat >>confdefs.h <<\_ACEOF |
| 10495 | #define PJMEDIA_HAS_GSM_CODEC 0 |
| 10496 | _ACEOF |
| 10497 | |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 10498 | { echo "$as_me:$LINENO: result: Checking if GSM codec is disabled...yes" >&5 |
| 10499 | echo "${ECHO_T}Checking if GSM codec is disabled...yes" >&6; } |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 10500 | fi |
| 10501 | else |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 10502 | { echo "$as_me:$LINENO: result: Checking if GSM codec is disabled...no" >&5 |
| 10503 | echo "${ECHO_T}Checking if GSM codec is disabled...no" >&6; } |
| 10504 | fi |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 10505 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10506 | |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 10507 | |
| 10508 | # Check whether --enable-g722-codec was given. |
Benny Prijono | 71f657d | 2008-03-17 14:24:21 +0000 | [diff] [blame] | 10509 | if test "${enable_g722_codec+set}" = set; then |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 10510 | enableval=$enable_g722_codec; if test "$enable_g722_codec" = "no"; then |
Benny Prijono | 71f657d | 2008-03-17 14:24:21 +0000 | [diff] [blame] | 10511 | ac_no_g722_codec=1 |
| 10512 | cat >>confdefs.h <<\_ACEOF |
| 10513 | #define PJMEDIA_HAS_G722_CODEC 0 |
| 10514 | _ACEOF |
| 10515 | |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 10516 | { echo "$as_me:$LINENO: result: Checking if G.722 codec is disabled...yes" >&5 |
| 10517 | echo "${ECHO_T}Checking if G.722 codec is disabled...yes" >&6; } |
Benny Prijono | 71f657d | 2008-03-17 14:24:21 +0000 | [diff] [blame] | 10518 | fi |
| 10519 | else |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 10520 | { echo "$as_me:$LINENO: result: Checking if G.722 codec is disabled...no" >&5 |
| 10521 | echo "${ECHO_T}Checking if G.722 codec is disabled...no" >&6; } |
| 10522 | fi |
Benny Prijono | 71f657d | 2008-03-17 14:24:21 +0000 | [diff] [blame] | 10523 | |
| 10524 | |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 10525 | |
| 10526 | # Check whether --enable-speex-codec was given. |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 10527 | if test "${enable_speex_codec+set}" = set; then |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 10528 | enableval=$enable_speex_codec; if test "$enable_speex_codec" = "no"; then |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 10529 | ac_no_speex_codec=1 |
Benny Prijono | 06d1d0e | 2007-01-27 18:09:28 +0000 | [diff] [blame] | 10530 | cat >>confdefs.h <<\_ACEOF |
| 10531 | #define PJMEDIA_HAS_SPEEX_CODEC 0 |
| 10532 | _ACEOF |
| 10533 | |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 10534 | { echo "$as_me:$LINENO: result: Checking if Speex codec is disabled...yes" >&5 |
| 10535 | echo "${ECHO_T}Checking if Speex codec is disabled...yes" >&6; } |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 10536 | fi |
| 10537 | else |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 10538 | { echo "$as_me:$LINENO: result: Checking if Speex codec is disabled...no" >&5 |
| 10539 | echo "${ECHO_T}Checking if Speex codec is disabled...no" >&6; } |
| 10540 | fi |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 10541 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10542 | |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 10543 | |
| 10544 | # Check whether --enable-ilbc-codec was given. |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 10545 | if test "${enable_ilbc_codec+set}" = set; then |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 10546 | enableval=$enable_ilbc_codec; if test "$enable_ilbc_codec" = "no"; then |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 10547 | ac_no_ilbc_codec=1 |
Benny Prijono | 06d1d0e | 2007-01-27 18:09:28 +0000 | [diff] [blame] | 10548 | cat >>confdefs.h <<\_ACEOF |
| 10549 | #define PJMEDIA_HAS_ILBC_CODEC 0 |
| 10550 | _ACEOF |
| 10551 | |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 10552 | { echo "$as_me:$LINENO: result: Checking if iLBC codec is disabled...yes" >&5 |
| 10553 | echo "${ECHO_T}Checking if iLBC codec is disabled...yes" >&6; } |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 10554 | fi |
| 10555 | else |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 10556 | { echo "$as_me:$LINENO: result: Checking if iLBC codec is disabled...no" >&5 |
| 10557 | echo "${ECHO_T}Checking if iLBC codec is disabled...no" >&6; } |
| 10558 | fi |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 10559 | |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 10560 | |
| 10561 | # Check whether --enable-libsamplerate was given. |
Benny Prijono | 550a1a6 | 2007-10-16 08:54:00 +0000 | [diff] [blame] | 10562 | if test "${enable_libsamplerate+set}" = set; then |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 10563 | enableval=$enable_libsamplerate; |
| 10564 | { echo "$as_me:$LINENO: checking for src_new in -lsamplerate" >&5 |
| 10565 | echo $ECHO_N "checking for src_new in -lsamplerate... $ECHO_C" >&6; } |
Benny Prijono | 550a1a6 | 2007-10-16 08:54:00 +0000 | [diff] [blame] | 10566 | if test "${ac_cv_lib_samplerate_src_new+set}" = set; then |
| 10567 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10568 | else |
| 10569 | ac_check_lib_save_LIBS=$LIBS |
| 10570 | LIBS="-lsamplerate $LIBS" |
| 10571 | cat >conftest.$ac_ext <<_ACEOF |
| 10572 | /* confdefs.h. */ |
| 10573 | _ACEOF |
| 10574 | cat confdefs.h >>conftest.$ac_ext |
| 10575 | cat >>conftest.$ac_ext <<_ACEOF |
| 10576 | /* end confdefs.h. */ |
| 10577 | |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 10578 | /* Override any GCC internal prototype to avoid an error. |
| 10579 | Use char because int might match the return type of a GCC |
| 10580 | builtin and then its argument prototype would still apply. */ |
Benny Prijono | 550a1a6 | 2007-10-16 08:54:00 +0000 | [diff] [blame] | 10581 | #ifdef __cplusplus |
| 10582 | extern "C" |
| 10583 | #endif |
Benny Prijono | 550a1a6 | 2007-10-16 08:54:00 +0000 | [diff] [blame] | 10584 | char src_new (); |
| 10585 | int |
| 10586 | main () |
| 10587 | { |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 10588 | return src_new (); |
Benny Prijono | 550a1a6 | 2007-10-16 08:54:00 +0000 | [diff] [blame] | 10589 | ; |
| 10590 | return 0; |
| 10591 | } |
| 10592 | _ACEOF |
| 10593 | rm -f conftest.$ac_objext conftest$ac_exeext |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 10594 | if { (ac_try="$ac_link" |
| 10595 | case "(($ac_try" in |
| 10596 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10597 | *) ac_try_echo=$ac_try;; |
| 10598 | esac |
| 10599 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10600 | (eval "$ac_link") 2>conftest.er1 |
Benny Prijono | 550a1a6 | 2007-10-16 08:54:00 +0000 | [diff] [blame] | 10601 | ac_status=$? |
| 10602 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10603 | rm -f conftest.er1 |
| 10604 | cat conftest.err >&5 |
| 10605 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 10606 | (exit $ac_status); } && { |
| 10607 | test -z "$ac_c_werror_flag" || |
| 10608 | test ! -s conftest.err |
| 10609 | } && test -s conftest$ac_exeext && |
| 10610 | $as_test_x conftest$ac_exeext; then |
Benny Prijono | 550a1a6 | 2007-10-16 08:54:00 +0000 | [diff] [blame] | 10611 | ac_cv_lib_samplerate_src_new=yes |
| 10612 | else |
| 10613 | echo "$as_me: failed program was:" >&5 |
| 10614 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10615 | |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 10616 | ac_cv_lib_samplerate_src_new=no |
Benny Prijono | 550a1a6 | 2007-10-16 08:54:00 +0000 | [diff] [blame] | 10617 | fi |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 10618 | |
| 10619 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Benny Prijono | 550a1a6 | 2007-10-16 08:54:00 +0000 | [diff] [blame] | 10620 | conftest$ac_exeext conftest.$ac_ext |
| 10621 | LIBS=$ac_check_lib_save_LIBS |
| 10622 | fi |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 10623 | { echo "$as_me:$LINENO: result: $ac_cv_lib_samplerate_src_new" >&5 |
| 10624 | echo "${ECHO_T}$ac_cv_lib_samplerate_src_new" >&6; } |
Benny Prijono | 550a1a6 | 2007-10-16 08:54:00 +0000 | [diff] [blame] | 10625 | if test $ac_cv_lib_samplerate_src_new = yes; then |
| 10626 | cat >>confdefs.h <<_ACEOF |
| 10627 | #define HAVE_LIBSAMPLERATE 1 |
| 10628 | _ACEOF |
| 10629 | |
| 10630 | LIBS="-lsamplerate $LIBS" |
| 10631 | |
| 10632 | fi |
| 10633 | |
| 10634 | else |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 10635 | { echo "$as_me:$LINENO: result: Skipping libsamplerate detection" >&5 |
| 10636 | echo "${ECHO_T}Skipping libsamplerate detection" >&6; } |
Benny Prijono | 550a1a6 | 2007-10-16 08:54:00 +0000 | [diff] [blame] | 10637 | |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 10638 | fi |
| 10639 | |
| 10640 | |
| 10641 | |
| 10642 | # Check whether --enable-ipp was given. |
| 10643 | if test "${enable_ipp+set}" = set; then |
| 10644 | enableval=$enable_ipp; |
| 10645 | else |
| 10646 | enable_ipp=no |
| 10647 | |
| 10648 | fi |
| 10649 | |
| 10650 | |
| 10651 | # Check whether --enable-ipp was given. |
| 10652 | if test "${enable_ipp+set}" = set; then |
| 10653 | enableval=$enable_ipp; |
| 10654 | else |
| 10655 | with_ipp=no |
| 10656 | |
| 10657 | fi |
| 10658 | |
| 10659 | |
| 10660 | # Check whether --enable-ipp-samples was given. |
| 10661 | if test "${enable_ipp_samples+set}" = set; then |
| 10662 | enableval=$enable_ipp_samples; |
| 10663 | else |
| 10664 | with_ipp_samples=no |
| 10665 | |
| 10666 | fi |
| 10667 | |
| 10668 | |
| 10669 | if test "x$enable_ipp" != "xno"; then |
| 10670 | { echo "$as_me:$LINENO: checking Intel IPP location" >&5 |
| 10671 | echo $ECHO_N "checking Intel IPP location... $ECHO_C" >&6; } |
| 10672 | |
| 10673 | if test "x$with_ipp" != "xno" -a "x$with_ipp" != "x"; then |
| 10674 | { echo "$as_me:$LINENO: result: $with_ipp" >&5 |
| 10675 | echo "${ECHO_T}$with_ipp" >&6; } |
| 10676 | IPPROOT=$with_ipp |
| 10677 | elif test "x$IPPROOT" = "x"; then |
| 10678 | if test -d /opt/intel/ipp; then |
| 10679 | IPPROOT=`ls -d /opt/intel/ipp/*/* | head -1` |
| 10680 | { echo "$as_me:$LINENO: result: autodetected in $IPPROOT" >&5 |
| 10681 | echo "${ECHO_T}autodetected in $IPPROOT" >&6; } |
| 10682 | fi |
| 10683 | else |
| 10684 | { echo "$as_me:$LINENO: result: $IPPROOT" >&5 |
| 10685 | echo "${ECHO_T}$IPPROOT" >&6; } |
| 10686 | fi |
| 10687 | |
| 10688 | if test x$IPPROOT = x; then |
| 10689 | { { echo "$as_me:$LINENO: error: the location is neither specified nor can be guessed. Please specify with IPPROOT env var or with --with-ipp option" >&5 |
| 10690 | echo "$as_me: error: the location is neither specified nor can be guessed. Please specify with IPPROOT env var or with --with-ipp option" >&2;} |
| 10691 | { (exit 1); exit 1; }; } |
| 10692 | elif test ! -d $IPPROOT; then |
| 10693 | { { echo "$as_me:$LINENO: error: not found" >&5 |
| 10694 | echo "$as_me: error: not found" >&2;} |
| 10695 | { (exit 1); exit 1; }; } |
| 10696 | elif test ! -d $IPPROOT/include; then |
| 10697 | { { echo "$as_me:$LINENO: error: directory doesn't seem to be valid" >&5 |
| 10698 | echo "$as_me: error: directory doesn't seem to be valid" >&2;} |
| 10699 | { (exit 1); exit 1; }; } |
| 10700 | else |
| 10701 | # IPP directory looks okay. |
| 10702 | # Remove trailing backslash |
| 10703 | IPPROOT=`echo $IPPROOT/ | sed 's/\/$//'` |
| 10704 | |
| 10705 | SAVED_CFLAGS="$CFLAGS" |
| 10706 | SAVED_LDFLAGS="$LDFLAGS" |
| 10707 | SAVED_LIBS="$LIBS" |
| 10708 | |
| 10709 | IPP_CFLAGS="-I$IPPROOT/include" |
| 10710 | IPP_LDFLAGS="-L$IPPROOT/sharedlib" |
| 10711 | IPP_LIBS="-lippsc -lipps -lippsr -lippcore -lguide" |
| 10712 | #IPP_LDFLAGS="-L$IPPROOT/sharedlib" |
| 10713 | #IPP_LIBS="-lippscmerged -lippsrmerged -lippsmerged -lippcore" |
| 10714 | |
| 10715 | CFLAGS="$CFLAGS $IPP_CFLAGS" |
| 10716 | LDFLAGS="$LDFLAGS $IPP_LDFLAGS" |
| 10717 | LIBS="$IPP_LIBS $LIBS" |
| 10718 | |
| 10719 | |
| 10720 | { echo "$as_me:$LINENO: checking Intel IPP usability" >&5 |
| 10721 | echo $ECHO_N "checking Intel IPP usability... $ECHO_C" >&6; } |
| 10722 | cat >conftest.$ac_ext <<_ACEOF |
| 10723 | /* confdefs.h. */ |
| 10724 | _ACEOF |
| 10725 | cat confdefs.h >>conftest.$ac_ext |
| 10726 | cat >>conftest.$ac_ext <<_ACEOF |
| 10727 | /* end confdefs.h. */ |
| 10728 | #include <ippcore.h> |
| 10729 | |
| 10730 | int |
| 10731 | main () |
| 10732 | { |
| 10733 | ippStaticInit(); |
| 10734 | ; |
| 10735 | return 0; |
| 10736 | } |
| 10737 | _ACEOF |
| 10738 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10739 | if { (ac_try="$ac_link" |
| 10740 | case "(($ac_try" in |
| 10741 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10742 | *) ac_try_echo=$ac_try;; |
| 10743 | esac |
| 10744 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10745 | (eval "$ac_link") 2>conftest.er1 |
| 10746 | ac_status=$? |
| 10747 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10748 | rm -f conftest.er1 |
| 10749 | cat conftest.err >&5 |
| 10750 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10751 | (exit $ac_status); } && { |
| 10752 | test -z "$ac_c_werror_flag" || |
| 10753 | test ! -s conftest.err |
| 10754 | } && test -s conftest$ac_exeext && |
| 10755 | $as_test_x conftest$ac_exeext; then |
| 10756 | { echo "$as_me:$LINENO: result: ok" >&5 |
| 10757 | echo "${ECHO_T}ok" >&6; } |
| 10758 | else |
| 10759 | echo "$as_me: failed program was:" >&5 |
| 10760 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10761 | |
| 10762 | { { echo "$as_me:$LINENO: error: failed |
| 10763 | See \`config.log' for more details." >&5 |
| 10764 | echo "$as_me: error: failed |
| 10765 | See \`config.log' for more details." >&2;} |
| 10766 | { (exit 1); exit 1; }; } |
| 10767 | fi |
| 10768 | |
| 10769 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 10770 | conftest$ac_exeext conftest.$ac_ext |
| 10771 | |
| 10772 | CFLAGS="$SAVED_CFLAGS" |
| 10773 | LDFLAGS="$SAVED_LDFLAGS" |
| 10774 | LIBS="$SAVED_LIBS" |
| 10775 | fi |
| 10776 | |
| 10777 | { echo "$as_me:$LINENO: checking Intel IPP samples location" >&5 |
| 10778 | echo $ECHO_N "checking Intel IPP samples location... $ECHO_C" >&6; } |
| 10779 | |
| 10780 | if test "x$with_ipp_samples" != "xno" -a "x$with_ipp_samples" != "x"; then |
| 10781 | { echo "$as_me:$LINENO: result: $with_ipp_samples" >&5 |
| 10782 | echo "${ECHO_T}$with_ipp_samples" >&6; } |
| 10783 | IPPSAMPLES=$with_ipp_samples |
| 10784 | elif test "x$IPPSAMPLES" = "x"; then |
| 10785 | if test -d /opt/intel/ipp-samples; then |
| 10786 | IPPSAMPLES=/opt/intel/ipp-samples |
| 10787 | { echo "$as_me:$LINENO: result: autodetected in $IPPSAMPLES" >&5 |
| 10788 | echo "${ECHO_T}autodetected in $IPPSAMPLES" >&6; } |
| 10789 | fi |
| 10790 | else |
| 10791 | { echo "$as_me:$LINENO: result: $IPPSAMPLES" >&5 |
| 10792 | echo "${ECHO_T}$IPPSAMPLES" >&6; } |
| 10793 | fi |
| 10794 | |
| 10795 | if test x$IPPSAMPLES = x; then |
| 10796 | { { echo "$as_me:$LINENO: error: the location is neither specified nor can be guessed. Please specify with IPPSAMPLES env var or with --with-ipp-samples option" >&5 |
| 10797 | echo "$as_me: error: the location is neither specified nor can be guessed. Please specify with IPPSAMPLES env var or with --with-ipp-samples option" >&2;} |
| 10798 | { (exit 1); exit 1; }; } |
| 10799 | elif test ! -d $IPPSAMPLES; then |
| 10800 | { { echo "$as_me:$LINENO: error: not found" >&5 |
| 10801 | echo "$as_me: error: not found" >&2;} |
| 10802 | { (exit 1); exit 1; }; } |
| 10803 | elif test ! -d $IPPSAMPLES/speech-codecs; then |
| 10804 | { { echo "$as_me:$LINENO: error: directory doesn't seem to be valid" >&5 |
| 10805 | echo "$as_me: error: directory doesn't seem to be valid" >&2;} |
| 10806 | { (exit 1); exit 1; }; } |
| 10807 | else |
| 10808 | # Remove trailing backslash |
| 10809 | IPPSAMPLES=`echo $IPPSAMPLES | sed 's/\/$//'` |
| 10810 | |
| 10811 | # Guess the libusc.a build location |
| 10812 | { echo "$as_me:$LINENO: checking Intel IPP USC build location" >&5 |
| 10813 | echo $ECHO_N "checking Intel IPP USC build location... $ECHO_C" >&6; } |
| 10814 | IPPSAMPLESLIB=`ls -d $IPPSAMPLES/speech-codecs/bin/*gcc*/lib | head -1` |
| 10815 | if test ! -d $IPPSAMPLESLIB; then |
| 10816 | { { echo "$as_me:$LINENO: error: the $IPPSAMPLES/speech-codecs/bin/*gcc*/lib directory not found. Have you built the samples? |
| 10817 | See \`config.log' for more details." >&5 |
| 10818 | echo "$as_me: error: the $IPPSAMPLES/speech-codecs/bin/*gcc*/lib directory not found. Have you built the samples? |
| 10819 | See \`config.log' for more details." >&2;} |
| 10820 | { (exit 1); exit 1; }; } |
| 10821 | fi |
| 10822 | if test ! -f $IPPSAMPLESLIB/libusc.a; then |
| 10823 | { { echo "$as_me:$LINENO: error: libusc.a doesn't exist in $IPPSAMPLESLIB |
| 10824 | See \`config.log' for more details." >&5 |
| 10825 | echo "$as_me: error: libusc.a doesn't exist in $IPPSAMPLESLIB |
| 10826 | See \`config.log' for more details." >&2;} |
| 10827 | { (exit 1); exit 1; }; } |
| 10828 | fi |
| 10829 | { echo "$as_me:$LINENO: result: $IPPSAMPLESLIB" >&5 |
| 10830 | echo "${ECHO_T}$IPPSAMPLESLIB" >&6; } |
| 10831 | |
| 10832 | SAVED_CFLAGS="$CFLAGS" |
| 10833 | SAVED_LDFLAGS="$LDFLAGS" |
| 10834 | SAVED_LIBS="$LIBS" |
| 10835 | |
| 10836 | IPPSAMPLESINC="-I$IPPSAMPLES/speech-codecs/core/usc/include" |
| 10837 | CFLAGS="$CFLAGS $IPPSAMPLESINC" |
| 10838 | LDFLAGS="$LDFLAGS -L$IPPSAMPLESLIB" |
| 10839 | LIBS="-lusc $LIBS" |
| 10840 | |
| 10841 | { echo "$as_me:$LINENO: checking Intel IPP USC usability" >&5 |
| 10842 | echo $ECHO_N "checking Intel IPP USC usability... $ECHO_C" >&6; } |
| 10843 | cat >conftest.$ac_ext <<_ACEOF |
| 10844 | /* confdefs.h. */ |
| 10845 | _ACEOF |
| 10846 | cat confdefs.h >>conftest.$ac_ext |
| 10847 | cat >>conftest.$ac_ext <<_ACEOF |
| 10848 | /* end confdefs.h. */ |
| 10849 | #include <usc.h> |
| 10850 | |
| 10851 | int |
| 10852 | main () |
| 10853 | { |
| 10854 | extern USC_Fxns USC_G729AFP_Fxns; |
| 10855 | ; |
| 10856 | return 0; |
| 10857 | } |
| 10858 | _ACEOF |
| 10859 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10860 | if { (ac_try="$ac_link" |
| 10861 | case "(($ac_try" in |
| 10862 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10863 | *) ac_try_echo=$ac_try;; |
| 10864 | esac |
| 10865 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10866 | (eval "$ac_link") 2>conftest.er1 |
| 10867 | ac_status=$? |
| 10868 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10869 | rm -f conftest.er1 |
| 10870 | cat conftest.err >&5 |
| 10871 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10872 | (exit $ac_status); } && { |
| 10873 | test -z "$ac_c_werror_flag" || |
| 10874 | test ! -s conftest.err |
| 10875 | } && test -s conftest$ac_exeext && |
| 10876 | $as_test_x conftest$ac_exeext; then |
| 10877 | { echo "$as_me:$LINENO: result: ok" >&5 |
| 10878 | echo "${ECHO_T}ok" >&6; } |
| 10879 | else |
| 10880 | echo "$as_me: failed program was:" >&5 |
| 10881 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10882 | |
| 10883 | { { echo "$as_me:$LINENO: error: failed |
| 10884 | See \`config.log' for more details." >&5 |
| 10885 | echo "$as_me: error: failed |
| 10886 | See \`config.log' for more details." >&2;} |
| 10887 | { (exit 1); exit 1; }; } |
| 10888 | fi |
| 10889 | |
| 10890 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 10891 | conftest$ac_exeext conftest.$ac_ext |
| 10892 | |
| 10893 | CFLAGS="$SAVED_CFLAGS" |
| 10894 | LDFLAGS="\$(IPP_LDFLAGS) $SAVED_LDFLAGS" |
| 10895 | LIBS="\$(IPP_LIBS) $SAVED_LIBS" |
| 10896 | |
| 10897 | IPP_CFLAGS="$IPP_CFLAGS $IPPSAMPLESINC" |
| 10898 | IPP_LDFLAGS="$IPP_LDFLAGS -L$IPPSAMPLESLIB" |
| 10899 | IPP_LIBS="-lusc $IPP_LIBS" |
| 10900 | fi |
| 10901 | |
| 10902 | ac_build_mak_vars="$ac_build_mak_vars\n\ |
| 10903 | export IPP_CFLAGS=$IPP_CFLAGS\n\ |
| 10904 | export IPP_LDFLAGS=$IPP_LDFLAGS\n\ |
| 10905 | export IPP_LIBS=$IPP_LIBS" |
| 10906 | else |
| 10907 | { echo "$as_me:$LINENO: result: Skipping Intel IPP settings (not wanted)" >&5 |
| 10908 | echo "${ECHO_T}Skipping Intel IPP settings (not wanted)" >&6; } |
| 10909 | fi |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10910 | |
| 10911 | |
| 10912 | |
| 10913 | |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 10914 | # Check whether --enable-ssl was given. |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10915 | if test "${enable_ssl+set}" = set; then |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 10916 | enableval=$enable_ssl; |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10917 | if test "$enable_ssl" = "no"; then |
| 10918 | ac_no_ssl=1 |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 10919 | { echo "$as_me:$LINENO: result: Checking if SSL support is disabled... yes" >&5 |
| 10920 | echo "${ECHO_T}Checking if SSL support is disabled... yes" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10921 | fi |
| 10922 | |
| 10923 | else |
| 10924 | |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 10925 | { echo "$as_me:$LINENO: result: checking for OpenSSL installations.." >&5 |
| 10926 | echo "${ECHO_T}checking for OpenSSL installations.." >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10927 | |
| 10928 | |
| 10929 | |
| 10930 | if test "${ac_cv_header_openssl_ssl_h+set}" = set; then |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 10931 | { echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5 |
| 10932 | echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10933 | if test "${ac_cv_header_openssl_ssl_h+set}" = set; then |
| 10934 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10935 | fi |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 10936 | { echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5 |
| 10937 | echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10938 | else |
| 10939 | # Is the header compilable? |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 10940 | { echo "$as_me:$LINENO: checking openssl/ssl.h usability" >&5 |
| 10941 | echo $ECHO_N "checking openssl/ssl.h usability... $ECHO_C" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10942 | cat >conftest.$ac_ext <<_ACEOF |
| 10943 | /* confdefs.h. */ |
| 10944 | _ACEOF |
| 10945 | cat confdefs.h >>conftest.$ac_ext |
| 10946 | cat >>conftest.$ac_ext <<_ACEOF |
| 10947 | /* end confdefs.h. */ |
| 10948 | $ac_includes_default |
| 10949 | #include <openssl/ssl.h> |
| 10950 | _ACEOF |
| 10951 | rm -f conftest.$ac_objext |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 10952 | if { (ac_try="$ac_compile" |
| 10953 | case "(($ac_try" in |
| 10954 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10955 | *) ac_try_echo=$ac_try;; |
| 10956 | esac |
| 10957 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10958 | (eval "$ac_compile") 2>conftest.er1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10959 | ac_status=$? |
| 10960 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10961 | rm -f conftest.er1 |
| 10962 | cat conftest.err >&5 |
| 10963 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 10964 | (exit $ac_status); } && { |
| 10965 | test -z "$ac_c_werror_flag" || |
| 10966 | test ! -s conftest.err |
| 10967 | } && test -s conftest.$ac_objext; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10968 | ac_header_compiler=yes |
| 10969 | else |
| 10970 | echo "$as_me: failed program was:" >&5 |
| 10971 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10972 | |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 10973 | ac_header_compiler=no |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10974 | fi |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 10975 | |
| 10976 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 10977 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 10978 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10979 | |
| 10980 | # Is the header present? |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 10981 | { echo "$as_me:$LINENO: checking openssl/ssl.h presence" >&5 |
| 10982 | echo $ECHO_N "checking openssl/ssl.h presence... $ECHO_C" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10983 | cat >conftest.$ac_ext <<_ACEOF |
| 10984 | /* confdefs.h. */ |
| 10985 | _ACEOF |
| 10986 | cat confdefs.h >>conftest.$ac_ext |
| 10987 | cat >>conftest.$ac_ext <<_ACEOF |
| 10988 | /* end confdefs.h. */ |
| 10989 | #include <openssl/ssl.h> |
| 10990 | _ACEOF |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 10991 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 10992 | case "(($ac_try" in |
| 10993 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10994 | *) ac_try_echo=$ac_try;; |
| 10995 | esac |
| 10996 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10997 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10998 | ac_status=$? |
| 10999 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11000 | rm -f conftest.er1 |
| 11001 | cat conftest.err >&5 |
| 11002 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 11003 | (exit $ac_status); } >/dev/null && { |
| 11004 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 11005 | test ! -s conftest.err |
| 11006 | }; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11007 | ac_header_preproc=yes |
| 11008 | else |
| 11009 | echo "$as_me: failed program was:" >&5 |
| 11010 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11011 | |
| 11012 | ac_header_preproc=no |
| 11013 | fi |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 11014 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11015 | rm -f conftest.err conftest.$ac_ext |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 11016 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 11017 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11018 | |
| 11019 | # So? What about this header? |
| 11020 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 11021 | yes:no: ) |
| 11022 | { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 11023 | echo "$as_me: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 11024 | { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the compiler's result" >&5 |
| 11025 | echo "$as_me: WARNING: openssl/ssl.h: proceeding with the compiler's result" >&2;} |
| 11026 | ac_header_preproc=yes |
| 11027 | ;; |
| 11028 | no:yes:* ) |
| 11029 | { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: present but cannot be compiled" >&5 |
| 11030 | echo "$as_me: WARNING: openssl/ssl.h: present but cannot be compiled" >&2;} |
| 11031 | { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&5 |
| 11032 | echo "$as_me: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&2;} |
| 11033 | { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: see the Autoconf documentation" >&5 |
| 11034 | echo "$as_me: WARNING: openssl/ssl.h: see the Autoconf documentation" >&2;} |
| 11035 | { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 11036 | echo "$as_me: WARNING: openssl/ssl.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 11037 | { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&5 |
| 11038 | echo "$as_me: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&2;} |
| 11039 | { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: in the future, the compiler will take precedence" >&5 |
| 11040 | echo "$as_me: WARNING: openssl/ssl.h: in the future, the compiler will take precedence" >&2;} |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 11041 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11042 | ;; |
| 11043 | esac |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 11044 | { echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5 |
| 11045 | echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11046 | if test "${ac_cv_header_openssl_ssl_h+set}" = set; then |
| 11047 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11048 | else |
| 11049 | ac_cv_header_openssl_ssl_h=$ac_header_preproc |
| 11050 | fi |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 11051 | { echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5 |
| 11052 | echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11053 | |
| 11054 | fi |
| 11055 | if test $ac_cv_header_openssl_ssl_h = yes; then |
| 11056 | openssl_h_present=1 |
| 11057 | fi |
| 11058 | |
| 11059 | |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 11060 | { echo "$as_me:$LINENO: checking for SSL_library_init in -lssl" >&5 |
| 11061 | echo $ECHO_N "checking for SSL_library_init in -lssl... $ECHO_C" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11062 | if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then |
| 11063 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11064 | else |
| 11065 | ac_check_lib_save_LIBS=$LIBS |
| 11066 | LIBS="-lssl $LIBS" |
| 11067 | cat >conftest.$ac_ext <<_ACEOF |
| 11068 | /* confdefs.h. */ |
| 11069 | _ACEOF |
| 11070 | cat confdefs.h >>conftest.$ac_ext |
| 11071 | cat >>conftest.$ac_ext <<_ACEOF |
| 11072 | /* end confdefs.h. */ |
| 11073 | |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 11074 | /* Override any GCC internal prototype to avoid an error. |
| 11075 | Use char because int might match the return type of a GCC |
| 11076 | builtin and then its argument prototype would still apply. */ |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11077 | #ifdef __cplusplus |
| 11078 | extern "C" |
| 11079 | #endif |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11080 | char SSL_library_init (); |
| 11081 | int |
| 11082 | main () |
| 11083 | { |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 11084 | return SSL_library_init (); |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11085 | ; |
| 11086 | return 0; |
| 11087 | } |
| 11088 | _ACEOF |
| 11089 | rm -f conftest.$ac_objext conftest$ac_exeext |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 11090 | if { (ac_try="$ac_link" |
| 11091 | case "(($ac_try" in |
| 11092 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11093 | *) ac_try_echo=$ac_try;; |
| 11094 | esac |
| 11095 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11096 | (eval "$ac_link") 2>conftest.er1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11097 | ac_status=$? |
| 11098 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11099 | rm -f conftest.er1 |
| 11100 | cat conftest.err >&5 |
| 11101 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 11102 | (exit $ac_status); } && { |
| 11103 | test -z "$ac_c_werror_flag" || |
| 11104 | test ! -s conftest.err |
| 11105 | } && test -s conftest$ac_exeext && |
| 11106 | $as_test_x conftest$ac_exeext; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11107 | ac_cv_lib_ssl_SSL_library_init=yes |
| 11108 | else |
| 11109 | echo "$as_me: failed program was:" >&5 |
| 11110 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11111 | |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 11112 | ac_cv_lib_ssl_SSL_library_init=no |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11113 | fi |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 11114 | |
| 11115 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11116 | conftest$ac_exeext conftest.$ac_ext |
| 11117 | LIBS=$ac_check_lib_save_LIBS |
| 11118 | fi |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 11119 | { echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_library_init" >&5 |
| 11120 | echo "${ECHO_T}$ac_cv_lib_ssl_SSL_library_init" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11121 | if test $ac_cv_lib_ssl_SSL_library_init = yes; then |
| 11122 | libssl_present=1 && LIBS="$LIBS -lssl" |
| 11123 | fi |
| 11124 | |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 11125 | { echo "$as_me:$LINENO: checking for ERR_load_BIO_strings in -lcrypto" >&5 |
| 11126 | echo $ECHO_N "checking for ERR_load_BIO_strings in -lcrypto... $ECHO_C" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11127 | if test "${ac_cv_lib_crypto_ERR_load_BIO_strings+set}" = set; then |
| 11128 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11129 | else |
| 11130 | ac_check_lib_save_LIBS=$LIBS |
| 11131 | LIBS="-lcrypto $LIBS" |
| 11132 | cat >conftest.$ac_ext <<_ACEOF |
| 11133 | /* confdefs.h. */ |
| 11134 | _ACEOF |
| 11135 | cat confdefs.h >>conftest.$ac_ext |
| 11136 | cat >>conftest.$ac_ext <<_ACEOF |
| 11137 | /* end confdefs.h. */ |
| 11138 | |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 11139 | /* Override any GCC internal prototype to avoid an error. |
| 11140 | Use char because int might match the return type of a GCC |
| 11141 | builtin and then its argument prototype would still apply. */ |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11142 | #ifdef __cplusplus |
| 11143 | extern "C" |
| 11144 | #endif |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11145 | char ERR_load_BIO_strings (); |
| 11146 | int |
| 11147 | main () |
| 11148 | { |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 11149 | return ERR_load_BIO_strings (); |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11150 | ; |
| 11151 | return 0; |
| 11152 | } |
| 11153 | _ACEOF |
| 11154 | rm -f conftest.$ac_objext conftest$ac_exeext |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 11155 | if { (ac_try="$ac_link" |
| 11156 | case "(($ac_try" in |
| 11157 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11158 | *) ac_try_echo=$ac_try;; |
| 11159 | esac |
| 11160 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11161 | (eval "$ac_link") 2>conftest.er1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11162 | ac_status=$? |
| 11163 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11164 | rm -f conftest.er1 |
| 11165 | cat conftest.err >&5 |
| 11166 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 11167 | (exit $ac_status); } && { |
| 11168 | test -z "$ac_c_werror_flag" || |
| 11169 | test ! -s conftest.err |
| 11170 | } && test -s conftest$ac_exeext && |
| 11171 | $as_test_x conftest$ac_exeext; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11172 | ac_cv_lib_crypto_ERR_load_BIO_strings=yes |
| 11173 | else |
| 11174 | echo "$as_me: failed program was:" >&5 |
| 11175 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11176 | |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 11177 | ac_cv_lib_crypto_ERR_load_BIO_strings=no |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11178 | fi |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 11179 | |
| 11180 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11181 | conftest$ac_exeext conftest.$ac_ext |
| 11182 | LIBS=$ac_check_lib_save_LIBS |
| 11183 | fi |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 11184 | { echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_ERR_load_BIO_strings" >&5 |
| 11185 | echo "${ECHO_T}$ac_cv_lib_crypto_ERR_load_BIO_strings" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11186 | if test $ac_cv_lib_crypto_ERR_load_BIO_strings = yes; then |
| 11187 | libcrypto_present=1 && LIBS="$LIBS -lcrypto" |
| 11188 | fi |
| 11189 | |
| 11190 | if test "x$openssl_h_present" = "x1" -a "x$libssl_present" = "x1" -a "x$libcrypto_present" = "x1"; then |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 11191 | { echo "$as_me:$LINENO: result: OpenSSL library found, SSL support enabled" >&5 |
| 11192 | echo "${ECHO_T}OpenSSL library found, SSL support enabled" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11193 | cat >>confdefs.h <<\_ACEOF |
| 11194 | #define PJSIP_HAS_TLS_TRANSPORT 1 |
| 11195 | _ACEOF |
| 11196 | |
| 11197 | else |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 11198 | { echo "$as_me:$LINENO: result: ** OpenSSL libraries not found, disabling SSL support **" >&5 |
| 11199 | echo "${ECHO_T}** OpenSSL libraries not found, disabling SSL support **" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11200 | fi |
| 11201 | |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 11202 | fi |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11203 | |
| 11204 | |
| 11205 | |
| 11206 | |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 11207 | |
| 11208 | { echo "$as_me:$LINENO: checking if select() needs correct nfds" >&5 |
| 11209 | echo $ECHO_N "checking if select() needs correct nfds... $ECHO_C" >&6; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11210 | case $target in |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11211 | *rtems*) cat >>confdefs.h <<\_ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11212 | #define PJ_SELECT_NEEDS_NFDS 1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11213 | _ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11214 | |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 11215 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 11216 | echo "${ECHO_T}yes" >&6; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11217 | ;; |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11218 | *) cat >>confdefs.h <<\_ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11219 | #define PJ_SELECT_NEEDS_NFDS 0 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11220 | _ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11221 | |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 11222 | { echo "$as_me:$LINENO: result: no (default)" >&5 |
| 11223 | echo "${ECHO_T}no (default)" >&6; } |
| 11224 | { echo "$as_me:$LINENO: result: ** Decided that select() doesn't need correct nfds (please check)" >&5 |
| 11225 | echo "${ECHO_T}** Decided that select() doesn't need correct nfds (please check)" >&6; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11226 | ;; |
| 11227 | esac |
| 11228 | |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 11229 | { echo "$as_me:$LINENO: checking if pj_thread_create() should enforce stack size" >&5 |
| 11230 | echo $ECHO_N "checking if pj_thread_create() should enforce stack size... $ECHO_C" >&6; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11231 | case $target in |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11232 | *rtems*) cat >>confdefs.h <<\_ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11233 | #define PJ_THREAD_SET_STACK_SIZE 1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11234 | _ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11235 | |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 11236 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 11237 | echo "${ECHO_T}yes" >&6; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11238 | ;; |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11239 | *) cat >>confdefs.h <<\_ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11240 | #define PJ_THREAD_SET_STACK_SIZE 0 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11241 | _ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11242 | |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 11243 | { echo "$as_me:$LINENO: result: no (default)" >&5 |
| 11244 | echo "${ECHO_T}no (default)" >&6; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11245 | ;; |
| 11246 | esac |
| 11247 | |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 11248 | { echo "$as_me:$LINENO: checking if pj_thread_create() should allocate stack" >&5 |
| 11249 | echo $ECHO_N "checking if pj_thread_create() should allocate stack... $ECHO_C" >&6; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11250 | case $target in |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11251 | *rtems*) cat >>confdefs.h <<\_ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11252 | #define PJ_THREAD_ALLOCATE_STACK 1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11253 | _ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11254 | |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 11255 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 11256 | echo "${ECHO_T}yes" >&6; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11257 | ;; |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11258 | *) cat >>confdefs.h <<\_ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11259 | #define PJ_THREAD_ALLOCATE_STACK 0 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11260 | _ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11261 | |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 11262 | { echo "$as_me:$LINENO: result: no (default)" >&5 |
| 11263 | echo "${ECHO_T}no (default)" >&6; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11264 | ;; |
| 11265 | esac |
| 11266 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11267 | case $target in |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 11268 | *mingw* | *cygw* | *win32* | *w32* ) |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11269 | cat >>confdefs.h <<\_ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 11270 | #define PJ_BLOCKING_ERROR_VAL WSAEWOULDBLOCK |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11271 | _ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11272 | |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 11273 | ;; |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11274 | *) cat >>confdefs.h <<\_ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 11275 | #define PJ_BLOCKING_ERROR_VAL EAGAIN |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11276 | _ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 11277 | |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 11278 | { echo "$as_me:$LINENO: result: ** Setting non-blocking recv() retval to EAGAIN (please check)" >&5 |
| 11279 | echo "${ECHO_T}** Setting non-blocking recv() retval to EAGAIN (please check)" >&6; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11280 | ;; |
| 11281 | esac |
| 11282 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11283 | case $target in |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 11284 | *mingw* | *cygw* | *win32* | *w32* ) |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11285 | cat >>confdefs.h <<\_ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 11286 | #define PJ_BLOCKING_CONNECT_ERROR_VAL WSAEWOULDBLOCK |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11287 | _ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11288 | |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 11289 | ;; |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11290 | *) cat >>confdefs.h <<\_ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 11291 | #define PJ_BLOCKING_CONNECT_ERROR_VAL EINPROGRESS |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11292 | _ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 11293 | |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 11294 | { echo "$as_me:$LINENO: result: ** Setting non-blocking connect() retval to EINPROGRESS (please check)" >&5 |
| 11295 | echo "${ECHO_T}** Setting non-blocking connect() retval to EINPROGRESS (please check)" >&6; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11296 | ;; |
| 11297 | esac |
| 11298 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11299 | |
| 11300 | |
| 11301 | |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 11302 | if test "$build" = "$host"; then |
| 11303 | ac_cross_compile= |
| 11304 | else |
Benny Prijono | 5b818b2 | 2006-09-17 22:58:51 +0000 | [diff] [blame] | 11305 | ac_cross_compile=${host_orig}- |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 11306 | fi |
| 11307 | ac_linux_poll=select |
| 11308 | |
| 11309 | ac_host=unix |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11310 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11311 | |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 11312 | case $target in |
| 11313 | *rtems*) |
| 11314 | ac_main_obj=main_rtems.o |
| 11315 | ;; |
| 11316 | *) |
| 11317 | ac_main_obj=main.o |
| 11318 | ;; |
| 11319 | esac |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11320 | |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 11321 | |
| 11322 | ac_build_mak_vars=`echo $ac_build_mak_vars | sed 's/\\\\n/\n/g'` |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11323 | cat >confcache <<\_ACEOF |
| 11324 | # This file is a shell script that caches the results of configure |
| 11325 | # tests run on this system so they can be shared between configure |
| 11326 | # scripts and configure runs, see configure's option --config-cache. |
| 11327 | # It is not useful on other systems. If it contains results you don't |
| 11328 | # want to keep, you may remove or edit it. |
| 11329 | # |
| 11330 | # config.status only pays attention to the cache file if you give it |
| 11331 | # the --recheck option to rerun configure. |
| 11332 | # |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11333 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11334 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
| 11335 | # following values. |
| 11336 | |
| 11337 | _ACEOF |
| 11338 | |
| 11339 | # The following way of writing the cache mishandles newlines in values, |
| 11340 | # but we know of no workaround that is simple, portable, and efficient. |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 11341 | # So, we kill variables containing newlines. |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11342 | # Ultrix sh set writes to stderr and can't be redirected directly, |
| 11343 | # and sets the high bit in the cache file unless we assign to the vars. |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 11344 | ( |
| 11345 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do |
| 11346 | eval ac_val=\$$ac_var |
| 11347 | case $ac_val in #( |
| 11348 | *${as_nl}*) |
| 11349 | case $ac_var in #( |
| 11350 | *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 |
| 11351 | echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; |
| 11352 | esac |
| 11353 | case $ac_var in #( |
| 11354 | _ | IFS | as_nl) ;; #( |
| 11355 | *) $as_unset $ac_var ;; |
| 11356 | esac ;; |
| 11357 | esac |
| 11358 | done |
| 11359 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11360 | (set) 2>&1 | |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 11361 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
| 11362 | *${as_nl}ac_space=\ *) |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11363 | # `set' does not quote correctly, so add quotes (double-quote |
| 11364 | # substitution turns \\\\ into \\, and sed turns \\ into \). |
| 11365 | sed -n \ |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11366 | "s/'/'\\\\''/g; |
| 11367 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 11368 | ;; #( |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11369 | *) |
| 11370 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 11371 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11372 | ;; |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 11373 | esac | |
| 11374 | sort |
| 11375 | ) | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11376 | sed ' |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 11377 | /^ac_cv_env_/b end |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11378 | t clear |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 11379 | :clear |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11380 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
| 11381 | t end |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 11382 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
| 11383 | :end' >>confcache |
| 11384 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else |
| 11385 | if test -w "$cache_file"; then |
| 11386 | test "x$cache_file" != "x/dev/null" && |
| 11387 | { echo "$as_me:$LINENO: updating cache $cache_file" >&5 |
| 11388 | echo "$as_me: updating cache $cache_file" >&6;} |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11389 | cat confcache >$cache_file |
| 11390 | else |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 11391 | { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 |
| 11392 | echo "$as_me: not updating unwritable cache $cache_file" >&6;} |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11393 | fi |
| 11394 | fi |
| 11395 | rm -f confcache |
| 11396 | |
| 11397 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
| 11398 | # Let make expand exec_prefix. |
| 11399 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
| 11400 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11401 | DEFS=-DHAVE_CONFIG_H |
| 11402 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11403 | ac_libobjs= |
| 11404 | ac_ltlibobjs= |
| 11405 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
| 11406 | # 1. Remove the extension, and $U if already installed. |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 11407 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
| 11408 | ac_i=`echo "$ac_i" | sed "$ac_script"` |
| 11409 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
| 11410 | # will be set to the directory where LIBOBJS objects are built. |
| 11411 | ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" |
| 11412 | ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11413 | done |
| 11414 | LIBOBJS=$ac_libobjs |
| 11415 | |
| 11416 | LTLIBOBJS=$ac_ltlibobjs |
| 11417 | |
| 11418 | |
| 11419 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11420 | : ${CONFIG_STATUS=./config.status} |
| 11421 | ac_clean_files_save=$ac_clean_files |
| 11422 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11423 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11424 | echo "$as_me: creating $CONFIG_STATUS" >&6;} |
| 11425 | cat >$CONFIG_STATUS <<_ACEOF |
| 11426 | #! $SHELL |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11427 | # Generated by $as_me. |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11428 | # Run this file to recreate the current configuration. |
| 11429 | # Compiler output produced by configure, useful for debugging |
| 11430 | # configure, is in config.log if it exists. |
| 11431 | |
| 11432 | debug=false |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11433 | ac_cs_recheck=false |
| 11434 | ac_cs_silent=false |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11435 | SHELL=\${CONFIG_SHELL-$SHELL} |
| 11436 | _ACEOF |
| 11437 | |
| 11438 | cat >>$CONFIG_STATUS <<\_ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11439 | ## --------------------- ## |
| 11440 | ## M4sh Initialization. ## |
| 11441 | ## --------------------- ## |
| 11442 | |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 11443 | # Be more Bourne compatible |
| 11444 | DUALCASE=1; export DUALCASE # for MKS sh |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11445 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
| 11446 | emulate sh |
| 11447 | NULLCMD=: |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11448 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
| 11449 | # is contrary to our usage. Disable this feature. |
| 11450 | alias -g '${1+"$@"}'='"$@"' |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 11451 | setopt NO_GLOB_SUBST |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 11452 | else |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 11453 | case `(set -o) 2>/dev/null` in |
| 11454 | *posix*) set -o posix ;; |
| 11455 | esac |
| 11456 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11457 | fi |
| 11458 | |
| 11459 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11460 | |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 11461 | |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 11462 | # PATH needs CR |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11463 | # Avoid depending upon Character Ranges. |
| 11464 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 11465 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 11466 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 11467 | as_cr_digits='0123456789' |
| 11468 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
| 11469 | |
| 11470 | # The user is always right. |
| 11471 | if test "${PATH_SEPARATOR+set}" != set; then |
| 11472 | echo "#! /bin/sh" >conf$$.sh |
| 11473 | echo "exit 0" >>conf$$.sh |
| 11474 | chmod +x conf$$.sh |
| 11475 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
| 11476 | PATH_SEPARATOR=';' |
| 11477 | else |
| 11478 | PATH_SEPARATOR=: |
| 11479 | fi |
| 11480 | rm -f conf$$.sh |
| 11481 | fi |
| 11482 | |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 11483 | # Support unset when possible. |
| 11484 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
| 11485 | as_unset=unset |
| 11486 | else |
| 11487 | as_unset=false |
| 11488 | fi |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11489 | |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 11490 | |
| 11491 | # IFS |
| 11492 | # We need space, tab and new line, in precisely that order. Quoting is |
| 11493 | # there to prevent editors from complaining about space-tab. |
| 11494 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
| 11495 | # splitting by setting IFS to empty value.) |
| 11496 | as_nl=' |
| 11497 | ' |
| 11498 | IFS=" "" $as_nl" |
| 11499 | |
| 11500 | # Find who we are. Look in the path if we contain no directory separator. |
| 11501 | case $0 in |
| 11502 | *[\\/]* ) as_myself=$0 ;; |
| 11503 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11504 | for as_dir in $PATH |
| 11505 | do |
| 11506 | IFS=$as_save_IFS |
| 11507 | test -z "$as_dir" && as_dir=. |
| 11508 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 11509 | done |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 11510 | IFS=$as_save_IFS |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11511 | |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 11512 | ;; |
| 11513 | esac |
| 11514 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 11515 | # in which case we are not to be found in the path. |
| 11516 | if test "x$as_myself" = x; then |
| 11517 | as_myself=$0 |
| 11518 | fi |
| 11519 | if test ! -f "$as_myself"; then |
| 11520 | echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
| 11521 | { (exit 1); exit 1; } |
| 11522 | fi |
| 11523 | |
| 11524 | # Work around bugs in pre-3.0 UWIN ksh. |
| 11525 | for as_var in ENV MAIL MAILPATH |
| 11526 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
| 11527 | done |
| 11528 | PS1='$ ' |
| 11529 | PS2='> ' |
| 11530 | PS4='+ ' |
| 11531 | |
| 11532 | # NLS nuisances. |
| 11533 | for as_var in \ |
| 11534 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
| 11535 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
| 11536 | LC_TELEPHONE LC_TIME |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 11537 | do |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 11538 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
| 11539 | eval $as_var=C; export $as_var |
| 11540 | else |
| 11541 | ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
| 11542 | fi |
| 11543 | done |
| 11544 | |
| 11545 | # Required to use basename. |
| 11546 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 11547 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
| 11548 | as_expr=expr |
| 11549 | else |
| 11550 | as_expr=false |
| 11551 | fi |
| 11552 | |
| 11553 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
| 11554 | as_basename=basename |
| 11555 | else |
| 11556 | as_basename=false |
| 11557 | fi |
| 11558 | |
| 11559 | |
| 11560 | # Name of the executable. |
| 11561 | as_me=`$as_basename -- "$0" || |
| 11562 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 11563 | X"$0" : 'X\(//\)$' \| \ |
| 11564 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
| 11565 | echo X/"$0" | |
| 11566 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
| 11567 | s//\1/ |
| 11568 | q |
| 11569 | } |
| 11570 | /^X\/\(\/\/\)$/{ |
| 11571 | s//\1/ |
| 11572 | q |
| 11573 | } |
| 11574 | /^X\/\(\/\).*/{ |
| 11575 | s//\1/ |
| 11576 | q |
| 11577 | } |
| 11578 | s/.*/./; q'` |
| 11579 | |
| 11580 | # CDPATH. |
| 11581 | $as_unset CDPATH |
| 11582 | |
| 11583 | |
| 11584 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11585 | as_lineno_1=$LINENO |
| 11586 | as_lineno_2=$LINENO |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11587 | test "x$as_lineno_1" != "x$as_lineno_2" && |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 11588 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11589 | |
| 11590 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
| 11591 | # uniformly replaced by the line number. The first 'sed' inserts a |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 11592 | # line-number line after each line using $LINENO; the second 'sed' |
| 11593 | # does the real work. The second script uses 'N' to pair each |
| 11594 | # line-number line with the line containing $LINENO, and appends |
| 11595 | # trailing '-' during substitution so that $LINENO is not a special |
| 11596 | # case at line end. |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11597 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 11598 | # scripts with optimization help from Paolo Bonzini. Blame Lee |
| 11599 | # E. McMahon (1931-1989) for sed's syntax. :-) |
| 11600 | sed -n ' |
| 11601 | p |
| 11602 | /[$]LINENO/= |
| 11603 | ' <$as_myself | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11604 | sed ' |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 11605 | s/[$]LINENO.*/&-/ |
| 11606 | t lineno |
| 11607 | b |
| 11608 | :lineno |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11609 | N |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 11610 | :loop |
| 11611 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11612 | t loop |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 11613 | s/-\n.*// |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11614 | ' >$as_me.lineno && |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 11615 | chmod +x "$as_me.lineno" || |
| 11616 | { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11617 | { (exit 1); exit 1; }; } |
| 11618 | |
| 11619 | # Don't try to exec as it changes $[0], causing all sort of problems |
| 11620 | # (the dirname of $[0] is not the place where we might find the |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 11621 | # original and so on. Autoconf is especially sensitive to this). |
| 11622 | . "./$as_me.lineno" |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11623 | # Exit status is that of the last command. |
| 11624 | exit |
| 11625 | } |
| 11626 | |
| 11627 | |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 11628 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
| 11629 | as_dirname=dirname |
| 11630 | else |
| 11631 | as_dirname=false |
| 11632 | fi |
| 11633 | |
| 11634 | ECHO_C= ECHO_N= ECHO_T= |
| 11635 | case `echo -n x` in |
| 11636 | -n*) |
| 11637 | case `echo 'x\c'` in |
| 11638 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
| 11639 | *) ECHO_C='\c';; |
| 11640 | esac;; |
| 11641 | *) |
| 11642 | ECHO_N='-n';; |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11643 | esac |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11644 | |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 11645 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 11646 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11647 | as_expr=expr |
| 11648 | else |
| 11649 | as_expr=false |
| 11650 | fi |
| 11651 | |
| 11652 | rm -f conf$$ conf$$.exe conf$$.file |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 11653 | if test -d conf$$.dir; then |
| 11654 | rm -f conf$$.dir/conf$$.file |
| 11655 | else |
| 11656 | rm -f conf$$.dir |
| 11657 | mkdir conf$$.dir |
| 11658 | fi |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11659 | echo >conf$$.file |
| 11660 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 11661 | as_ln_s='ln -s' |
| 11662 | # ... but there are two gotchas: |
| 11663 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
| 11664 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
| 11665 | # In both cases, we have to default to `cp -p'. |
| 11666 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11667 | as_ln_s='cp -p' |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11668 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 11669 | as_ln_s=ln |
| 11670 | else |
| 11671 | as_ln_s='cp -p' |
| 11672 | fi |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 11673 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
| 11674 | rmdir conf$$.dir 2>/dev/null |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11675 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11676 | if mkdir -p . 2>/dev/null; then |
| 11677 | as_mkdir_p=: |
Benny Prijono | 39ae2da | 2006-10-13 17:57:42 +0000 | [diff] [blame] | 11678 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11679 | test -d ./-p && rmdir ./-p |
| 11680 | as_mkdir_p=false |
Benny Prijono | 39ae2da | 2006-10-13 17:57:42 +0000 | [diff] [blame] | 11681 | fi |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 11682 | |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 11683 | if test -x / >/dev/null 2>&1; then |
| 11684 | as_test_x='test -x' |
| 11685 | else |
| 11686 | if ls -dL / >/dev/null 2>&1; then |
| 11687 | as_ls_L_option=L |
| 11688 | else |
| 11689 | as_ls_L_option= |
| 11690 | fi |
| 11691 | as_test_x=' |
| 11692 | eval sh -c '\'' |
| 11693 | if test -d "$1"; then |
| 11694 | test -d "$1/."; |
| 11695 | else |
| 11696 | case $1 in |
| 11697 | -*)set "./$1";; |
| 11698 | esac; |
| 11699 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in |
| 11700 | ???[sx]*):;;*)false;;esac;fi |
| 11701 | '\'' sh |
| 11702 | ' |
| 11703 | fi |
| 11704 | as_executable_p=$as_test_x |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11705 | |
| 11706 | # Sed expression to map a string onto a valid CPP name. |
| 11707 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
| 11708 | |
| 11709 | # Sed expression to map a string onto a valid variable name. |
| 11710 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
| 11711 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11712 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11713 | exec 6>&1 |
| 11714 | |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 11715 | # Save the log message, to keep $[0] and so on meaningful, and to |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11716 | # report actual input values of CONFIG_FILES etc. instead of their |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 11717 | # values after options handling. |
| 11718 | ac_log=" |
| 11719 | This file was extended by pjproject $as_me 1.0, which was |
| 11720 | generated by GNU Autoconf 2.61. Invocation command line was |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11721 | |
| 11722 | CONFIG_FILES = $CONFIG_FILES |
| 11723 | CONFIG_HEADERS = $CONFIG_HEADERS |
| 11724 | CONFIG_LINKS = $CONFIG_LINKS |
| 11725 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
| 11726 | $ $0 $@ |
| 11727 | |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 11728 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 11729 | " |
| 11730 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11731 | _ACEOF |
| 11732 | |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 11733 | cat >>$CONFIG_STATUS <<_ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11734 | # Files that config.status was made for. |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 11735 | config_files="$ac_config_files" |
| 11736 | config_headers="$ac_config_headers" |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11737 | |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 11738 | _ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11739 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11740 | cat >>$CONFIG_STATUS <<\_ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11741 | ac_cs_usage="\ |
| 11742 | \`$as_me' instantiates files from templates according to the |
| 11743 | current configuration. |
| 11744 | |
| 11745 | Usage: $0 [OPTIONS] [FILE]... |
| 11746 | |
| 11747 | -h, --help print this help, then exit |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 11748 | -V, --version print version number and configuration settings, then exit |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11749 | -q, --quiet do not print progress messages |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11750 | -d, --debug don't remove temporary files |
| 11751 | --recheck update $as_me by reconfiguring in the same conditions |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 11752 | --file=FILE[:TEMPLATE] |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11753 | instantiate the configuration file FILE |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11754 | --header=FILE[:TEMPLATE] |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11755 | instantiate the configuration header FILE |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11756 | |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 11757 | Configuration files: |
| 11758 | $config_files |
| 11759 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11760 | Configuration headers: |
| 11761 | $config_headers |
| 11762 | |
| 11763 | Report bugs to <bug-autoconf@gnu.org>." |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 11764 | |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 11765 | _ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11766 | cat >>$CONFIG_STATUS <<_ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11767 | ac_cs_version="\\ |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 11768 | pjproject config.status 1.0 |
| 11769 | configured by $0, generated by GNU Autoconf 2.61, |
| 11770 | with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11771 | |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 11772 | Copyright (C) 2006 Free Software Foundation, Inc. |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11773 | This config.status script is free software; the Free Software Foundation |
| 11774 | gives unlimited permission to copy, distribute and modify it." |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 11775 | |
| 11776 | ac_pwd='$ac_pwd' |
| 11777 | srcdir='$srcdir' |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11778 | _ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11779 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11780 | cat >>$CONFIG_STATUS <<\_ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11781 | # If no file are specified by the user, then we need to provide default |
| 11782 | # value. By we need to know if files were specified by the user. |
| 11783 | ac_need_defaults=: |
| 11784 | while test $# != 0 |
| 11785 | do |
| 11786 | case $1 in |
| 11787 | --*=*) |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 11788 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
| 11789 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11790 | ac_shift=: |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11791 | ;; |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 11792 | *) |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11793 | ac_option=$1 |
| 11794 | ac_optarg=$2 |
| 11795 | ac_shift=shift |
| 11796 | ;; |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11797 | esac |
| 11798 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11799 | case $ac_option in |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11800 | # Handling of the options. |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11801 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11802 | ac_cs_recheck=: ;; |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 11803 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
| 11804 | echo "$ac_cs_version"; exit ;; |
| 11805 | --debug | --debu | --deb | --de | --d | -d ) |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11806 | debug=: ;; |
| 11807 | --file | --fil | --fi | --f ) |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11808 | $ac_shift |
| 11809 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11810 | ac_need_defaults=false;; |
| 11811 | --header | --heade | --head | --hea ) |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11812 | $ac_shift |
| 11813 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11814 | ac_need_defaults=false;; |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 11815 | --he | --h) |
| 11816 | # Conflict between --help and --header |
| 11817 | { echo "$as_me: error: ambiguous option: $1 |
| 11818 | Try \`$0 --help' for more information." >&2 |
| 11819 | { (exit 1); exit 1; }; };; |
| 11820 | --help | --hel | -h ) |
| 11821 | echo "$ac_cs_usage"; exit ;; |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11822 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 11823 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
| 11824 | ac_cs_silent=: ;; |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11825 | |
| 11826 | # This is an error. |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 11827 | -*) { echo "$as_me: error: unrecognized option: $1 |
| 11828 | Try \`$0 --help' for more information." >&2 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11829 | { (exit 1); exit 1; }; } ;; |
| 11830 | |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 11831 | *) ac_config_targets="$ac_config_targets $1" |
| 11832 | ac_need_defaults=false ;; |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11833 | |
| 11834 | esac |
| 11835 | shift |
| 11836 | done |
| 11837 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11838 | ac_configure_extra_args= |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11839 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11840 | if $ac_cs_silent; then |
| 11841 | exec 6>/dev/null |
| 11842 | ac_configure_extra_args="$ac_configure_extra_args --silent" |
| 11843 | fi |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11844 | |
| 11845 | _ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11846 | cat >>$CONFIG_STATUS <<_ACEOF |
| 11847 | if \$ac_cs_recheck; then |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 11848 | echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 |
| 11849 | CONFIG_SHELL=$SHELL |
| 11850 | export CONFIG_SHELL |
| 11851 | exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11852 | fi |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11853 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11854 | _ACEOF |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 11855 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 11856 | exec 5>>config.log |
| 11857 | { |
| 11858 | echo |
| 11859 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
| 11860 | ## Running $as_me. ## |
| 11861 | _ASBOX |
| 11862 | echo "$ac_log" |
| 11863 | } >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11864 | |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 11865 | _ACEOF |
| 11866 | cat >>$CONFIG_STATUS <<_ACEOF |
| 11867 | _ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11868 | |
| 11869 | cat >>$CONFIG_STATUS <<\_ACEOF |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 11870 | |
| 11871 | # Handling of arguments. |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11872 | for ac_config_target in $ac_config_targets |
| 11873 | do |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 11874 | case $ac_config_target in |
| 11875 | "pjlib/include/pj/compat/os_auto.h") CONFIG_HEADERS="$CONFIG_HEADERS pjlib/include/pj/compat/os_auto.h" ;; |
| 11876 | "pjlib/include/pj/compat/m_auto.h") CONFIG_HEADERS="$CONFIG_HEADERS pjlib/include/pj/compat/m_auto.h" ;; |
| 11877 | "pjmedia/include/pjmedia/config_auto.h") CONFIG_HEADERS="$CONFIG_HEADERS pjmedia/include/pjmedia/config_auto.h" ;; |
| 11878 | "pjmedia/include/pjmedia-codec/config_auto.h") CONFIG_HEADERS="$CONFIG_HEADERS pjmedia/include/pjmedia-codec/config_auto.h" ;; |
| 11879 | "pjsip/include/pjsip/sip_autoconf.h") CONFIG_HEADERS="$CONFIG_HEADERS pjsip/include/pjsip/sip_autoconf.h" ;; |
| 11880 | "build.mak") CONFIG_FILES="$CONFIG_FILES build.mak" ;; |
| 11881 | "build/os-auto.mak") CONFIG_FILES="$CONFIG_FILES build/os-auto.mak" ;; |
| 11882 | "pjlib/build/os-auto.mak") CONFIG_FILES="$CONFIG_FILES pjlib/build/os-auto.mak" ;; |
| 11883 | "pjlib-util/build/os-auto.mak") CONFIG_FILES="$CONFIG_FILES pjlib-util/build/os-auto.mak" ;; |
| 11884 | "pjmedia/build/os-auto.mak") CONFIG_FILES="$CONFIG_FILES pjmedia/build/os-auto.mak" ;; |
| 11885 | "pjsip/build/os-auto.mak") CONFIG_FILES="$CONFIG_FILES pjsip/build/os-auto.mak" ;; |
| 11886 | "third_party/build/portaudio/os-auto.mak") CONFIG_FILES="$CONFIG_FILES third_party/build/portaudio/os-auto.mak" ;; |
| 11887 | "third_party/build/os-auto.mak") CONFIG_FILES="$CONFIG_FILES third_party/build/os-auto.mak" ;; |
| 11888 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11889 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11890 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
| 11891 | { (exit 1); exit 1; }; };; |
| 11892 | esac |
| 11893 | done |
| 11894 | |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 11895 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11896 | # If the user did not use the arguments to specify the items to instantiate, |
| 11897 | # then the envvar interface is used. Set only those that are not. |
| 11898 | # We use the long form for the default assignment because of an extremely |
| 11899 | # bizarre bug on SunOS 4.1.3. |
| 11900 | if $ac_need_defaults; then |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 11901 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11902 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
| 11903 | fi |
| 11904 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11905 | # Have a temporary directory for convenience. Make it in the build tree |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 11906 | # simply because there is no reason against having it here, and in addition, |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11907 | # creating and moving files from /tmp can sometimes cause problems. |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 11908 | # Hook for its removal unless debugging. |
| 11909 | # Note that there is a small window in which the directory will not be cleaned: |
| 11910 | # after its creation but before its name has been assigned to `$tmp'. |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11911 | $debug || |
| 11912 | { |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 11913 | tmp= |
| 11914 | trap 'exit_status=$? |
| 11915 | { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status |
| 11916 | ' 0 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11917 | trap '{ (exit 1); exit 1; }' 1 2 13 15 |
| 11918 | } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11919 | # Create a (secure) tmp directory for tmp files. |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11920 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11921 | { |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 11922 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11923 | test -n "$tmp" && test -d "$tmp" |
| 11924 | } || |
| 11925 | { |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 11926 | tmp=./conf$$-$RANDOM |
| 11927 | (umask 077 && mkdir "$tmp") |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11928 | } || |
| 11929 | { |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11930 | echo "$me: cannot create a temporary directory in ." >&2 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11931 | { (exit 1); exit 1; } |
| 11932 | } |
| 11933 | |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 11934 | # |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 11935 | # Set up the sed scripts for CONFIG_FILES section. |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 11936 | # |
| 11937 | |
| 11938 | # No need to generate the scripts if there are no CONFIG_FILES. |
| 11939 | # This happens for instance when ./config.status config.h |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 11940 | if test -n "$CONFIG_FILES"; then |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 11941 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11942 | _ACEOF |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 11943 | |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 11944 | |
| 11945 | |
| 11946 | ac_delim='%!_!# ' |
| 11947 | for ac_last_try in false false false false false :; do |
| 11948 | cat >conf$$subs.sed <<_ACEOF |
| 11949 | SHELL!$SHELL$ac_delim |
| 11950 | PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim |
| 11951 | PACKAGE_NAME!$PACKAGE_NAME$ac_delim |
| 11952 | PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim |
| 11953 | PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim |
| 11954 | PACKAGE_STRING!$PACKAGE_STRING$ac_delim |
| 11955 | PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim |
| 11956 | exec_prefix!$exec_prefix$ac_delim |
| 11957 | prefix!$prefix$ac_delim |
| 11958 | program_transform_name!$program_transform_name$ac_delim |
| 11959 | bindir!$bindir$ac_delim |
| 11960 | sbindir!$sbindir$ac_delim |
| 11961 | libexecdir!$libexecdir$ac_delim |
| 11962 | datarootdir!$datarootdir$ac_delim |
| 11963 | datadir!$datadir$ac_delim |
| 11964 | sysconfdir!$sysconfdir$ac_delim |
| 11965 | sharedstatedir!$sharedstatedir$ac_delim |
| 11966 | localstatedir!$localstatedir$ac_delim |
| 11967 | includedir!$includedir$ac_delim |
| 11968 | oldincludedir!$oldincludedir$ac_delim |
| 11969 | docdir!$docdir$ac_delim |
| 11970 | infodir!$infodir$ac_delim |
| 11971 | htmldir!$htmldir$ac_delim |
| 11972 | dvidir!$dvidir$ac_delim |
| 11973 | pdfdir!$pdfdir$ac_delim |
| 11974 | psdir!$psdir$ac_delim |
| 11975 | libdir!$libdir$ac_delim |
| 11976 | localedir!$localedir$ac_delim |
| 11977 | mandir!$mandir$ac_delim |
| 11978 | DEFS!$DEFS$ac_delim |
| 11979 | ECHO_C!$ECHO_C$ac_delim |
| 11980 | ECHO_N!$ECHO_N$ac_delim |
| 11981 | ECHO_T!$ECHO_T$ac_delim |
| 11982 | LIBS!$LIBS$ac_delim |
| 11983 | build_alias!$build_alias$ac_delim |
| 11984 | host_alias!$host_alias$ac_delim |
| 11985 | target_alias!$target_alias$ac_delim |
| 11986 | build!$build$ac_delim |
| 11987 | build_cpu!$build_cpu$ac_delim |
| 11988 | build_vendor!$build_vendor$ac_delim |
| 11989 | build_os!$build_os$ac_delim |
| 11990 | host!$host$ac_delim |
| 11991 | host_cpu!$host_cpu$ac_delim |
| 11992 | host_vendor!$host_vendor$ac_delim |
| 11993 | host_os!$host_os$ac_delim |
| 11994 | target!$target$ac_delim |
| 11995 | target_cpu!$target_cpu$ac_delim |
| 11996 | target_vendor!$target_vendor$ac_delim |
| 11997 | target_os!$target_os$ac_delim |
| 11998 | CC!$CC$ac_delim |
| 11999 | CFLAGS!$CFLAGS$ac_delim |
| 12000 | LDFLAGS!$LDFLAGS$ac_delim |
| 12001 | CPPFLAGS!$CPPFLAGS$ac_delim |
| 12002 | ac_ct_CC!$ac_ct_CC$ac_delim |
| 12003 | EXEEXT!$EXEEXT$ac_delim |
| 12004 | OBJEXT!$OBJEXT$ac_delim |
| 12005 | CXX!$CXX$ac_delim |
| 12006 | CXXFLAGS!$CXXFLAGS$ac_delim |
| 12007 | ac_ct_CXX!$ac_ct_CXX$ac_delim |
| 12008 | ac_pjdir!$ac_pjdir$ac_delim |
| 12009 | ac_build_mak_vars!$ac_build_mak_vars$ac_delim |
| 12010 | CPP!$CPP$ac_delim |
| 12011 | GREP!$GREP$ac_delim |
| 12012 | EGREP!$EGREP$ac_delim |
| 12013 | ac_os_objs!$ac_os_objs$ac_delim |
| 12014 | ac_pjmedia_snd!$ac_pjmedia_snd$ac_delim |
| 12015 | ac_pa_cflags!$ac_pa_cflags$ac_delim |
| 12016 | ac_pa_use_alsa!$ac_pa_use_alsa$ac_delim |
| 12017 | ac_pa_use_oss!$ac_pa_use_oss$ac_delim |
| 12018 | ac_no_small_filter!$ac_no_small_filter$ac_delim |
| 12019 | ac_no_large_filter!$ac_no_large_filter$ac_delim |
| 12020 | ac_no_speex_aec!$ac_no_speex_aec$ac_delim |
| 12021 | ac_no_g711_codec!$ac_no_g711_codec$ac_delim |
| 12022 | ac_no_l16_codec!$ac_no_l16_codec$ac_delim |
| 12023 | ac_no_gsm_codec!$ac_no_gsm_codec$ac_delim |
| 12024 | ac_no_g722_codec!$ac_no_g722_codec$ac_delim |
| 12025 | ac_no_speex_codec!$ac_no_speex_codec$ac_delim |
| 12026 | ac_no_ilbc_codec!$ac_no_ilbc_codec$ac_delim |
| 12027 | ac_no_ssl!$ac_no_ssl$ac_delim |
| 12028 | openssl_h_present!$openssl_h_present$ac_delim |
| 12029 | libssl_present!$libssl_present$ac_delim |
| 12030 | libcrypto_present!$libcrypto_present$ac_delim |
| 12031 | ac_cross_compile!$ac_cross_compile$ac_delim |
| 12032 | ac_linux_poll!$ac_linux_poll$ac_delim |
| 12033 | ac_host!$ac_host$ac_delim |
| 12034 | ac_main_obj!$ac_main_obj$ac_delim |
| 12035 | LIBOBJS!$LIBOBJS$ac_delim |
| 12036 | LTLIBOBJS!$LTLIBOBJS$ac_delim |
| 12037 | _ACEOF |
| 12038 | |
| 12039 | if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 88; then |
| 12040 | break |
| 12041 | elif $ac_last_try; then |
| 12042 | { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |
| 12043 | echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} |
| 12044 | { (exit 1); exit 1; }; } |
| 12045 | else |
| 12046 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 12047 | fi |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 12048 | done |
| 12049 | |
| 12050 | ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` |
| 12051 | if test -n "$ac_eof"; then |
| 12052 | ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` |
| 12053 | ac_eof=`expr $ac_eof + 1` |
| 12054 | fi |
| 12055 | |
| 12056 | cat >>$CONFIG_STATUS <<_ACEOF |
| 12057 | cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof |
| 12058 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end |
| 12059 | _ACEOF |
| 12060 | sed ' |
| 12061 | s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g |
| 12062 | s/^/s,@/; s/!/@,|#_!!_#|/ |
| 12063 | :n |
| 12064 | t n |
| 12065 | s/'"$ac_delim"'$/,g/; t |
| 12066 | s/$/\\/; p |
| 12067 | N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n |
| 12068 | ' >>$CONFIG_STATUS <conf$$subs.sed |
| 12069 | rm -f conf$$subs.sed |
| 12070 | cat >>$CONFIG_STATUS <<_ACEOF |
| 12071 | :end |
| 12072 | s/|#_!!_#|//g |
| 12073 | CEOF$ac_eof |
| 12074 | _ACEOF |
| 12075 | |
| 12076 | |
| 12077 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
| 12078 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and |
| 12079 | # trailing colons and then remove the whole line if VPATH becomes empty |
| 12080 | # (actually we leave an empty line to preserve line numbers). |
| 12081 | if test "x$srcdir" = x.; then |
| 12082 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
| 12083 | s/:*\$(srcdir):*/:/ |
| 12084 | s/:*\${srcdir}:*/:/ |
| 12085 | s/:*@srcdir@:*/:/ |
| 12086 | s/^\([^=]*=[ ]*\):*/\1/ |
| 12087 | s/:*$// |
| 12088 | s/^[^=]*=[ ]*$// |
| 12089 | }' |
| 12090 | fi |
| 12091 | |
| 12092 | cat >>$CONFIG_STATUS <<\_ACEOF |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 12093 | fi # test -n "$CONFIG_FILES" |
| 12094 | |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 12095 | |
| 12096 | for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS |
| 12097 | do |
| 12098 | case $ac_tag in |
| 12099 | :[FHLC]) ac_mode=$ac_tag; continue;; |
| 12100 | esac |
| 12101 | case $ac_mode$ac_tag in |
| 12102 | :[FHL]*:*);; |
| 12103 | :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5 |
| 12104 | echo "$as_me: error: Invalid tag $ac_tag." >&2;} |
| 12105 | { (exit 1); exit 1; }; };; |
| 12106 | :[FH]-) ac_tag=-:-;; |
| 12107 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; |
| 12108 | esac |
| 12109 | ac_save_IFS=$IFS |
| 12110 | IFS=: |
| 12111 | set x $ac_tag |
| 12112 | IFS=$ac_save_IFS |
| 12113 | shift |
| 12114 | ac_file=$1 |
| 12115 | shift |
| 12116 | |
| 12117 | case $ac_mode in |
| 12118 | :L) ac_source=$1;; |
| 12119 | :[FH]) |
| 12120 | ac_file_inputs= |
| 12121 | for ac_f |
| 12122 | do |
| 12123 | case $ac_f in |
| 12124 | -) ac_f="$tmp/stdin";; |
| 12125 | *) # Look for the file first in the build tree, then in the source tree |
| 12126 | # (if the path is not absolute). The absolute path cannot be DOS-style, |
| 12127 | # because $ac_f cannot contain `:'. |
| 12128 | test -f "$ac_f" || |
| 12129 | case $ac_f in |
| 12130 | [\\/$]*) false;; |
| 12131 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; |
| 12132 | esac || |
| 12133 | { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 |
| 12134 | echo "$as_me: error: cannot find input file: $ac_f" >&2;} |
| 12135 | { (exit 1); exit 1; }; };; |
| 12136 | esac |
| 12137 | ac_file_inputs="$ac_file_inputs $ac_f" |
| 12138 | done |
| 12139 | |
| 12140 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
| 12141 | # use $as_me), people would be surprised to read: |
| 12142 | # /* config.h. Generated by config.status. */ |
| 12143 | configure_input="Generated from "`IFS=: |
| 12144 | echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure." |
| 12145 | if test x"$ac_file" != x-; then |
| 12146 | configure_input="$ac_file. $configure_input" |
| 12147 | { echo "$as_me:$LINENO: creating $ac_file" >&5 |
| 12148 | echo "$as_me: creating $ac_file" >&6;} |
| 12149 | fi |
| 12150 | |
| 12151 | case $ac_tag in |
| 12152 | *:-:* | *:-) cat >"$tmp/stdin";; |
| 12153 | esac |
| 12154 | ;; |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 12155 | esac |
| 12156 | |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 12157 | ac_dir=`$as_dirname -- "$ac_file" || |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 12158 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 12159 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 12160 | X"$ac_file" : 'X\(//\)$' \| \ |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 12161 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 12162 | echo X"$ac_file" | |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 12163 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 12164 | s//\1/ |
| 12165 | q |
| 12166 | } |
| 12167 | /^X\(\/\/\)[^/].*/{ |
| 12168 | s//\1/ |
| 12169 | q |
| 12170 | } |
| 12171 | /^X\(\/\/\)$/{ |
| 12172 | s//\1/ |
| 12173 | q |
| 12174 | } |
| 12175 | /^X\(\/\).*/{ |
| 12176 | s//\1/ |
| 12177 | q |
| 12178 | } |
| 12179 | s/.*/./; q'` |
| 12180 | { as_dir="$ac_dir" |
| 12181 | case $as_dir in #( |
| 12182 | -*) as_dir=./$as_dir;; |
| 12183 | esac |
| 12184 | test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 12185 | as_dirs= |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 12186 | while :; do |
| 12187 | case $as_dir in #( |
| 12188 | *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( |
| 12189 | *) as_qdir=$as_dir;; |
| 12190 | esac |
| 12191 | as_dirs="'$as_qdir' $as_dirs" |
| 12192 | as_dir=`$as_dirname -- "$as_dir" || |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 12193 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 12194 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 12195 | X"$as_dir" : 'X\(//\)$' \| \ |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 12196 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 12197 | echo X"$as_dir" | |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 12198 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 12199 | s//\1/ |
| 12200 | q |
| 12201 | } |
| 12202 | /^X\(\/\/\)[^/].*/{ |
| 12203 | s//\1/ |
| 12204 | q |
| 12205 | } |
| 12206 | /^X\(\/\/\)$/{ |
| 12207 | s//\1/ |
| 12208 | q |
| 12209 | } |
| 12210 | /^X\(\/\).*/{ |
| 12211 | s//\1/ |
| 12212 | q |
| 12213 | } |
| 12214 | s/.*/./; q'` |
| 12215 | test -d "$as_dir" && break |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 12216 | done |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 12217 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
| 12218 | } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 |
| 12219 | echo "$as_me: error: cannot create directory $as_dir" >&2;} |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 12220 | { (exit 1); exit 1; }; }; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 12221 | ac_builddir=. |
| 12222 | |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 12223 | case "$ac_dir" in |
| 12224 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 12225 | *) |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 12226 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 12227 | # A ".." for each directory in $ac_dir_suffix. |
| 12228 | ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` |
| 12229 | case $ac_top_builddir_sub in |
| 12230 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 12231 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 12232 | esac ;; |
| 12233 | esac |
| 12234 | ac_abs_top_builddir=$ac_pwd |
| 12235 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 12236 | # for backward compatibility: |
| 12237 | ac_top_builddir=$ac_top_build_prefix |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 12238 | |
| 12239 | case $srcdir in |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 12240 | .) # We are building in place. |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 12241 | ac_srcdir=. |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 12242 | ac_top_srcdir=$ac_top_builddir_sub |
| 12243 | ac_abs_top_srcdir=$ac_pwd ;; |
| 12244 | [\\/]* | ?:[\\/]* ) # Absolute name. |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 12245 | ac_srcdir=$srcdir$ac_dir_suffix; |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 12246 | ac_top_srcdir=$srcdir |
| 12247 | ac_abs_top_srcdir=$srcdir ;; |
| 12248 | *) # Relative name. |
| 12249 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 12250 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 12251 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 12252 | esac |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 12253 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 12254 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 12255 | |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 12256 | case $ac_mode in |
| 12257 | :F) |
| 12258 | # |
| 12259 | # CONFIG_FILE |
| 12260 | # |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 12261 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 12262 | _ACEOF |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 12263 | |
| 12264 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 12265 | # If the template does not know about datarootdir, expand it. |
| 12266 | # FIXME: This hack should be removed a few years after 2.60. |
| 12267 | ac_datarootdir_hack=; ac_datarootdir_seen= |
| 12268 | |
| 12269 | case `sed -n '/datarootdir/ { |
| 12270 | p |
| 12271 | q |
| 12272 | } |
| 12273 | /@datadir@/p |
| 12274 | /@docdir@/p |
| 12275 | /@infodir@/p |
| 12276 | /@localedir@/p |
| 12277 | /@mandir@/p |
| 12278 | ' $ac_file_inputs` in |
| 12279 | *datarootdir*) ac_datarootdir_seen=yes;; |
| 12280 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) |
| 12281 | { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 |
| 12282 | echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} |
| 12283 | _ACEOF |
| 12284 | cat >>$CONFIG_STATUS <<_ACEOF |
| 12285 | ac_datarootdir_hack=' |
| 12286 | s&@datadir@&$datadir&g |
| 12287 | s&@docdir@&$docdir&g |
| 12288 | s&@infodir@&$infodir&g |
| 12289 | s&@localedir@&$localedir&g |
| 12290 | s&@mandir@&$mandir&g |
| 12291 | s&\\\${datarootdir}&$datarootdir&g' ;; |
| 12292 | esac |
| 12293 | _ACEOF |
| 12294 | |
| 12295 | # Neutralize VPATH when `$srcdir' = `.'. |
| 12296 | # Shell code in configure.ac might set extrasub. |
| 12297 | # FIXME: do we really want to maintain this feature? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 12298 | cat >>$CONFIG_STATUS <<_ACEOF |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 12299 | sed "$ac_vpsub |
| 12300 | $extrasub |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 12301 | _ACEOF |
| 12302 | cat >>$CONFIG_STATUS <<\_ACEOF |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 12303 | :t |
| 12304 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 12305 | s&@configure_input@&$configure_input&;t t |
| 12306 | s&@top_builddir@&$ac_top_builddir_sub&;t t |
| 12307 | s&@srcdir@&$ac_srcdir&;t t |
| 12308 | s&@abs_srcdir@&$ac_abs_srcdir&;t t |
| 12309 | s&@top_srcdir@&$ac_top_srcdir&;t t |
| 12310 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t |
| 12311 | s&@builddir@&$ac_builddir&;t t |
| 12312 | s&@abs_builddir@&$ac_abs_builddir&;t t |
| 12313 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t |
| 12314 | $ac_datarootdir_hack |
| 12315 | " $ac_file_inputs | sed -f "$tmp/subs-1.sed" >$tmp/out |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 12316 | |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 12317 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && |
| 12318 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && |
| 12319 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && |
| 12320 | { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
| 12321 | which seems to be undefined. Please make sure it is defined." >&5 |
| 12322 | echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
| 12323 | which seems to be undefined. Please make sure it is defined." >&2;} |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 12324 | |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 12325 | rm -f "$tmp/stdin" |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 12326 | case $ac_file in |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 12327 | -) cat "$tmp/out"; rm -f "$tmp/out";; |
| 12328 | *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;; |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 12329 | esac |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 12330 | ;; |
| 12331 | :H) |
| 12332 | # |
| 12333 | # CONFIG_HEADER |
| 12334 | # |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 12335 | _ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 12336 | |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 12337 | # Transform confdefs.h into a sed script `conftest.defines', that |
| 12338 | # substitutes the proper values into config.h.in to produce config.h. |
| 12339 | rm -f conftest.defines conftest.tail |
| 12340 | # First, append a space to every undef/define line, to ease matching. |
| 12341 | echo 's/$/ /' >conftest.defines |
| 12342 | # Then, protect against being on the right side of a sed subst, or in |
| 12343 | # an unquoted here document, in config.status. If some macros were |
| 12344 | # called several times there might be several #defines for the same |
| 12345 | # symbol, which is useless. But do not sort them, since the last |
| 12346 | # AC_DEFINE must be honored. |
| 12347 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* |
| 12348 | # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where |
| 12349 | # NAME is the cpp macro being defined, VALUE is the value it is being given. |
| 12350 | # PARAMS is the parameter list in the macro definition--in most cases, it's |
| 12351 | # just an empty string. |
| 12352 | ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*' |
| 12353 | ac_dB='\\)[ (].*,\\1define\\2' |
| 12354 | ac_dC=' ' |
| 12355 | ac_dD=' ,' |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 12356 | |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 12357 | uniq confdefs.h | |
| 12358 | sed -n ' |
| 12359 | t rset |
| 12360 | :rset |
| 12361 | s/^[ ]*#[ ]*define[ ][ ]*// |
| 12362 | t ok |
| 12363 | d |
| 12364 | :ok |
| 12365 | s/[\\&,]/\\&/g |
| 12366 | s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p |
| 12367 | s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p |
| 12368 | ' >>conftest.defines |
| 12369 | |
| 12370 | # Remove the space that was appended to ease matching. |
| 12371 | # Then replace #undef with comments. This is necessary, for |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 12372 | # example, in the case of _POSIX_SOURCE, which is predefined and required |
| 12373 | # on some systems where configure will not decide to define it. |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 12374 | # (The regexp can be short, since the line contains either #define or #undef.) |
| 12375 | echo 's/ $// |
| 12376 | s,^[ #]*u.*,/* & */,' >>conftest.defines |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 12377 | |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 12378 | # Break up conftest.defines: |
| 12379 | ac_max_sed_lines=50 |
| 12380 | |
| 12381 | # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1" |
| 12382 | # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2" |
| 12383 | # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1" |
| 12384 | # et cetera. |
| 12385 | ac_in='$ac_file_inputs' |
| 12386 | ac_out='"$tmp/out1"' |
| 12387 | ac_nxt='"$tmp/out2"' |
| 12388 | |
| 12389 | while : |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 12390 | do |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 12391 | # Write a here document: |
| 12392 | cat >>$CONFIG_STATUS <<_ACEOF |
| 12393 | # First, check the format of the line: |
| 12394 | cat >"\$tmp/defines.sed" <<\\CEOF |
| 12395 | /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def |
| 12396 | /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def |
| 12397 | b |
| 12398 | :def |
| 12399 | _ACEOF |
| 12400 | sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 12401 | echo 'CEOF |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 12402 | sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS |
| 12403 | ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in |
| 12404 | sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail |
| 12405 | grep . conftest.tail >/dev/null || break |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 12406 | rm -f conftest.defines |
| 12407 | mv conftest.tail conftest.defines |
| 12408 | done |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 12409 | rm -f conftest.defines conftest.tail |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 12410 | |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 12411 | echo "ac_result=$ac_in" >>$CONFIG_STATUS |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 12412 | cat >>$CONFIG_STATUS <<\_ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 12413 | if test x"$ac_file" != x-; then |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 12414 | echo "/* $configure_input */" >"$tmp/config.h" |
| 12415 | cat "$ac_result" >>"$tmp/config.h" |
| 12416 | if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 12417 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 12418 | echo "$as_me: $ac_file is unchanged" >&6;} |
| 12419 | else |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 12420 | rm -f $ac_file |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 12421 | mv "$tmp/config.h" $ac_file |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 12422 | fi |
| 12423 | else |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 12424 | echo "/* $configure_input */" |
| 12425 | cat "$ac_result" |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 12426 | fi |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 12427 | rm -f "$tmp/out12" |
| 12428 | ;; |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 12429 | |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 12430 | |
| 12431 | esac |
| 12432 | |
| 12433 | done # for ac_tag |
| 12434 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 12435 | |
| 12436 | { (exit 0); exit 0; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 12437 | _ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 12438 | chmod +x $CONFIG_STATUS |
| 12439 | ac_clean_files=$ac_clean_files_save |
| 12440 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 12441 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 12442 | # configure is writing to config.log, and then calls config.status. |
| 12443 | # config.status does its own redirection, appending to config.log. |
| 12444 | # Unfortunately, on DOS this fails, as config.log is still kept open |
| 12445 | # by configure, so config.status won't be able to write to it; its |
| 12446 | # output is simply discarded. So we exec the FD to /dev/null, |
| 12447 | # effectively closing config.log, so it can be properly (re)opened and |
| 12448 | # appended to by config.status. When coming back to configure, we |
| 12449 | # need to make the FD available again. |
| 12450 | if test "$no_create" != yes; then |
| 12451 | ac_cs_success=: |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 12452 | ac_config_status_args= |
| 12453 | test "$silent" = yes && |
| 12454 | ac_config_status_args="$ac_config_status_args --quiet" |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 12455 | exec 5>/dev/null |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 12456 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 12457 | exec 5>>config.log |
| 12458 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
| 12459 | # would make configure fail if this is the last instruction. |
| 12460 | $ac_cs_success || { (exit 1); exit 1; } |
| 12461 | fi |
| 12462 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 12463 | |
Benny Prijono | d962784 | 2007-04-18 09:24:31 +0000 | [diff] [blame] | 12464 | |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 12465 | { echo "$as_me:$LINENO: result: |
Benny Prijono | d962784 | 2007-04-18 09:24:31 +0000 | [diff] [blame] | 12466 | |
Benny Prijono | c16c6e3 | 2007-11-18 14:53:47 +0000 | [diff] [blame] | 12467 | Configurations for current target have been written to 'build.mak', and 'os-auto.mak' in various build directories, and pjlib/include/pj/compat/os_auto.h. |
Benny Prijono | d962784 | 2007-04-18 09:24:31 +0000 | [diff] [blame] | 12468 | |
Benny Prijono | c16c6e3 | 2007-11-18 14:53:47 +0000 | [diff] [blame] | 12469 | Further customizations can be put in: |
Benny Prijono | d962784 | 2007-04-18 09:24:31 +0000 | [diff] [blame] | 12470 | - 'user.mak' |
| 12471 | - 'pjlib/include/pj/config_site.h' |
| 12472 | |
| 12473 | The next step now is to run 'make dep' and 'make'. |
| 12474 | " >&5 |
| 12475 | echo "${ECHO_T} |
| 12476 | |
Benny Prijono | c16c6e3 | 2007-11-18 14:53:47 +0000 | [diff] [blame] | 12477 | Configurations for current target have been written to 'build.mak', and 'os-auto.mak' in various build directories, and pjlib/include/pj/compat/os_auto.h. |
Benny Prijono | d962784 | 2007-04-18 09:24:31 +0000 | [diff] [blame] | 12478 | |
Benny Prijono | c16c6e3 | 2007-11-18 14:53:47 +0000 | [diff] [blame] | 12479 | Further customizations can be put in: |
Benny Prijono | d962784 | 2007-04-18 09:24:31 +0000 | [diff] [blame] | 12480 | - 'user.mak' |
| 12481 | - 'pjlib/include/pj/config_site.h' |
| 12482 | |
| 12483 | The next step now is to run 'make dep' and 'make'. |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 12484 | " >&6; } |
Benny Prijono | d962784 | 2007-04-18 09:24:31 +0000 | [diff] [blame] | 12485 | |