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 | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 3 | # Generated by GNU Autoconf 2.61 for pjproject 0.7. |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 4 | # |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +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 | fdafd40 | 2008-01-23 14:34:46 +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 | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 21 | setopt NO_GLOB_SUBST |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 22 | else |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +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 | fdafd40 | 2008-01-23 14:34:46 +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 | fdafd40 | 2008-01-23 14:34:46 +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 | fdafd40 | 2008-01-23 14:34:46 +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 | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 80 | IFS=$as_save_IFS |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 81 | |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +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 | fdafd40 | 2008-01-23 14:34:46 +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 | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 226 | case $as_dir in |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 227 | /*) |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +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 | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 328 | as_lineno_1=$LINENO |
| 329 | as_lineno_2=$LINENO |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 330 | test "x$as_lineno_1" != "x$as_lineno_2" && |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +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 | fdafd40 | 2008-01-23 14:34:46 +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 | fdafd40 | 2008-01-23 14:34:46 +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 | fdafd40 | 2008-01-23 14:34:46 +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 | fdafd40 | 2008-01-23 14:34:46 +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 | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 451 | s/-\n.*// |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 452 | ' >$as_me.lineno && |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +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 | fdafd40 | 2008-01-23 14:34:46 +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 | fdafd40 | 2008-01-23 14:34:46 +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 | fdafd40 | 2008-01-23 14:34:46 +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 | fdafd40 | 2008-01-23 14:34:46 +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 | fdafd40 | 2008-01-23 14:34:46 +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 | fdafd40 | 2008-01-23 14:34:46 +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 | fdafd40 | 2008-01-23 14:34:46 +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 | fdafd40 | 2008-01-23 14:34:46 +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 | fdafd40 | 2008-01-23 14:34:46 +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 | fdafd40 | 2008-01-23 14:34:46 +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 | abcf49c | 2007-05-15 21:02:54 +0000 | [diff] [blame] | 575 | PACKAGE_VERSION='0.7' |
| 576 | PACKAGE_STRING='pjproject 0.7' |
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 | fdafd40 | 2008-01-23 14:34:46 +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 | fdafd40 | 2008-01-23 14:34:46 +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 | fdafd40 | 2008-01-23 14:34:46 +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 | fdafd40 | 2008-01-23 14:34:46 +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 | fdafd40 | 2008-01-23 14:34:46 +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 | fdafd40 | 2008-01-23 14:34:46 +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 | fdafd40 | 2008-01-23 14:34:46 +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 | fdafd40 | 2008-01-23 14:34:46 +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 | fdafd40 | 2008-01-23 14:34:46 +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 | CPP |
| 676 | GREP |
| 677 | EGREP |
| 678 | ac_os_objs |
| 679 | ac_pjmedia_snd |
| 680 | ac_pa_cflags |
| 681 | ac_pa_use_alsa |
| 682 | ac_no_small_filter |
| 683 | ac_no_large_filter |
| 684 | ac_no_speex_aec |
| 685 | ac_no_g711_codec |
| 686 | ac_no_l16_codec |
| 687 | ac_no_gsm_codec |
| 688 | ac_no_speex_codec |
| 689 | ac_no_ilbc_codec |
| 690 | ac_no_ssl |
| 691 | openssl_h_present |
| 692 | libssl_present |
| 693 | libcrypto_present |
| 694 | ac_cross_compile |
| 695 | ac_linux_poll |
| 696 | ac_host |
| 697 | ac_main_obj |
| 698 | LIBOBJS |
| 699 | LTLIBOBJS' |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 700 | ac_subst_files='' |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 701 | ac_precious_vars='build_alias |
| 702 | host_alias |
| 703 | target_alias |
| 704 | CC |
| 705 | CFLAGS |
| 706 | LDFLAGS |
| 707 | LIBS |
| 708 | CPPFLAGS |
| 709 | CXX |
| 710 | CXXFLAGS |
| 711 | CCC |
| 712 | CPP' |
| 713 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 714 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 715 | # Initialize some variables set by options. |
| 716 | ac_init_help= |
| 717 | ac_init_version=false |
| 718 | # The variables have the same names as the options, with |
| 719 | # dashes changed to underlines. |
| 720 | cache_file=/dev/null |
| 721 | exec_prefix=NONE |
| 722 | no_create= |
| 723 | no_recursion= |
| 724 | prefix=NONE |
| 725 | program_prefix=NONE |
| 726 | program_suffix=NONE |
| 727 | program_transform_name=s,x,x, |
| 728 | silent= |
| 729 | site= |
| 730 | srcdir= |
| 731 | verbose= |
| 732 | x_includes=NONE |
| 733 | x_libraries=NONE |
| 734 | |
| 735 | # Installation directory options. |
| 736 | # These are left unexpanded so users can "make install exec_prefix=/foo" |
| 737 | # and all the variables that are supposed to be based on exec_prefix |
| 738 | # by default will actually change. |
| 739 | # Use braces instead of parens because sh, perl, etc. also accept them. |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 740 | # (The list follows the same order as the GNU Coding Standards.) |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 741 | bindir='${exec_prefix}/bin' |
| 742 | sbindir='${exec_prefix}/sbin' |
| 743 | libexecdir='${exec_prefix}/libexec' |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 744 | datarootdir='${prefix}/share' |
| 745 | datadir='${datarootdir}' |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 746 | sysconfdir='${prefix}/etc' |
| 747 | sharedstatedir='${prefix}/com' |
| 748 | localstatedir='${prefix}/var' |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 749 | includedir='${prefix}/include' |
| 750 | oldincludedir='/usr/include' |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 751 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' |
| 752 | infodir='${datarootdir}/info' |
| 753 | htmldir='${docdir}' |
| 754 | dvidir='${docdir}' |
| 755 | pdfdir='${docdir}' |
| 756 | psdir='${docdir}' |
| 757 | libdir='${exec_prefix}/lib' |
| 758 | localedir='${datarootdir}/locale' |
| 759 | mandir='${datarootdir}/man' |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 760 | |
| 761 | ac_prev= |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 762 | ac_dashdash= |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 763 | for ac_option |
| 764 | do |
| 765 | # If the previous option needs an argument, assign it. |
| 766 | if test -n "$ac_prev"; then |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 767 | eval $ac_prev=\$ac_option |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 768 | ac_prev= |
| 769 | continue |
| 770 | fi |
| 771 | |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 772 | case $ac_option in |
| 773 | *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
| 774 | *) ac_optarg=yes ;; |
| 775 | esac |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 776 | |
| 777 | # Accept the important Cygnus configure options, so we can diagnose typos. |
| 778 | |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 779 | case $ac_dashdash$ac_option in |
| 780 | --) |
| 781 | ac_dashdash=yes ;; |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 782 | |
| 783 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
| 784 | ac_prev=bindir ;; |
| 785 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
| 786 | bindir=$ac_optarg ;; |
| 787 | |
| 788 | -build | --build | --buil | --bui | --bu) |
| 789 | ac_prev=build_alias ;; |
| 790 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
| 791 | build_alias=$ac_optarg ;; |
| 792 | |
| 793 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
| 794 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
| 795 | ac_prev=cache_file ;; |
| 796 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
| 797 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
| 798 | cache_file=$ac_optarg ;; |
| 799 | |
| 800 | --config-cache | -C) |
| 801 | cache_file=config.cache ;; |
| 802 | |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 803 | -datadir | --datadir | --datadi | --datad) |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 804 | ac_prev=datadir ;; |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 805 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 806 | datadir=$ac_optarg ;; |
| 807 | |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 808 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
| 809 | | --dataroo | --dataro | --datar) |
| 810 | ac_prev=datarootdir ;; |
| 811 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ |
| 812 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) |
| 813 | datarootdir=$ac_optarg ;; |
| 814 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 815 | -disable-* | --disable-*) |
| 816 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
| 817 | # Reject names that are not valid shell variable names. |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 818 | expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 819 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
| 820 | { (exit 1); exit 1; }; } |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 821 | ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` |
| 822 | eval enable_$ac_feature=no ;; |
| 823 | |
| 824 | -docdir | --docdir | --docdi | --doc | --do) |
| 825 | ac_prev=docdir ;; |
| 826 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) |
| 827 | docdir=$ac_optarg ;; |
| 828 | |
| 829 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) |
| 830 | ac_prev=dvidir ;; |
| 831 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) |
| 832 | dvidir=$ac_optarg ;; |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 833 | |
| 834 | -enable-* | --enable-*) |
| 835 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
| 836 | # Reject names that are not valid shell variable names. |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 837 | expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 838 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
| 839 | { (exit 1); exit 1; }; } |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 840 | ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` |
| 841 | eval enable_$ac_feature=\$ac_optarg ;; |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 842 | |
| 843 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
| 844 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
| 845 | | --exec | --exe | --ex) |
| 846 | ac_prev=exec_prefix ;; |
| 847 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
| 848 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
| 849 | | --exec=* | --exe=* | --ex=*) |
| 850 | exec_prefix=$ac_optarg ;; |
| 851 | |
| 852 | -gas | --gas | --ga | --g) |
| 853 | # Obsolete; use --with-gas. |
| 854 | with_gas=yes ;; |
| 855 | |
| 856 | -help | --help | --hel | --he | -h) |
| 857 | ac_init_help=long ;; |
| 858 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
| 859 | ac_init_help=recursive ;; |
| 860 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
| 861 | ac_init_help=short ;; |
| 862 | |
| 863 | -host | --host | --hos | --ho) |
| 864 | ac_prev=host_alias ;; |
| 865 | -host=* | --host=* | --hos=* | --ho=*) |
| 866 | host_alias=$ac_optarg ;; |
| 867 | |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 868 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
| 869 | ac_prev=htmldir ;; |
| 870 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ |
| 871 | | --ht=*) |
| 872 | htmldir=$ac_optarg ;; |
| 873 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 874 | -includedir | --includedir | --includedi | --included | --include \ |
| 875 | | --includ | --inclu | --incl | --inc) |
| 876 | ac_prev=includedir ;; |
| 877 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
| 878 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
| 879 | includedir=$ac_optarg ;; |
| 880 | |
| 881 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
| 882 | ac_prev=infodir ;; |
| 883 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
| 884 | infodir=$ac_optarg ;; |
| 885 | |
| 886 | -libdir | --libdir | --libdi | --libd) |
| 887 | ac_prev=libdir ;; |
| 888 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
| 889 | libdir=$ac_optarg ;; |
| 890 | |
| 891 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
| 892 | | --libexe | --libex | --libe) |
| 893 | ac_prev=libexecdir ;; |
| 894 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
| 895 | | --libexe=* | --libex=* | --libe=*) |
| 896 | libexecdir=$ac_optarg ;; |
| 897 | |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 898 | -localedir | --localedir | --localedi | --localed | --locale) |
| 899 | ac_prev=localedir ;; |
| 900 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) |
| 901 | localedir=$ac_optarg ;; |
| 902 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 903 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 904 | | --localstate | --localstat | --localsta | --localst | --locals) |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 905 | ac_prev=localstatedir ;; |
| 906 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 907 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 908 | localstatedir=$ac_optarg ;; |
| 909 | |
| 910 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
| 911 | ac_prev=mandir ;; |
| 912 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
| 913 | mandir=$ac_optarg ;; |
| 914 | |
| 915 | -nfp | --nfp | --nf) |
| 916 | # Obsolete; use --without-fp. |
| 917 | with_fp=no ;; |
| 918 | |
| 919 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 920 | | --no-cr | --no-c | -n) |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 921 | no_create=yes ;; |
| 922 | |
| 923 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
| 924 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
| 925 | no_recursion=yes ;; |
| 926 | |
| 927 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
| 928 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
| 929 | | --oldin | --oldi | --old | --ol | --o) |
| 930 | ac_prev=oldincludedir ;; |
| 931 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
| 932 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
| 933 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
| 934 | oldincludedir=$ac_optarg ;; |
| 935 | |
| 936 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
| 937 | ac_prev=prefix ;; |
| 938 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
| 939 | prefix=$ac_optarg ;; |
| 940 | |
| 941 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
| 942 | | --program-pre | --program-pr | --program-p) |
| 943 | ac_prev=program_prefix ;; |
| 944 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
| 945 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
| 946 | program_prefix=$ac_optarg ;; |
| 947 | |
| 948 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
| 949 | | --program-suf | --program-su | --program-s) |
| 950 | ac_prev=program_suffix ;; |
| 951 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
| 952 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
| 953 | program_suffix=$ac_optarg ;; |
| 954 | |
| 955 | -program-transform-name | --program-transform-name \ |
| 956 | | --program-transform-nam | --program-transform-na \ |
| 957 | | --program-transform-n | --program-transform- \ |
| 958 | | --program-transform | --program-transfor \ |
| 959 | | --program-transfo | --program-transf \ |
| 960 | | --program-trans | --program-tran \ |
| 961 | | --progr-tra | --program-tr | --program-t) |
| 962 | ac_prev=program_transform_name ;; |
| 963 | -program-transform-name=* | --program-transform-name=* \ |
| 964 | | --program-transform-nam=* | --program-transform-na=* \ |
| 965 | | --program-transform-n=* | --program-transform-=* \ |
| 966 | | --program-transform=* | --program-transfor=* \ |
| 967 | | --program-transfo=* | --program-transf=* \ |
| 968 | | --program-trans=* | --program-tran=* \ |
| 969 | | --progr-tra=* | --program-tr=* | --program-t=*) |
| 970 | program_transform_name=$ac_optarg ;; |
| 971 | |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 972 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
| 973 | ac_prev=pdfdir ;; |
| 974 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) |
| 975 | pdfdir=$ac_optarg ;; |
| 976 | |
| 977 | -psdir | --psdir | --psdi | --psd | --ps) |
| 978 | ac_prev=psdir ;; |
| 979 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) |
| 980 | psdir=$ac_optarg ;; |
| 981 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 982 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 983 | | -silent | --silent | --silen | --sile | --sil) |
| 984 | silent=yes ;; |
| 985 | |
| 986 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
| 987 | ac_prev=sbindir ;; |
| 988 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
| 989 | | --sbi=* | --sb=*) |
| 990 | sbindir=$ac_optarg ;; |
| 991 | |
| 992 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
| 993 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
| 994 | | --sharedst | --shareds | --shared | --share | --shar \ |
| 995 | | --sha | --sh) |
| 996 | ac_prev=sharedstatedir ;; |
| 997 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
| 998 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
| 999 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
| 1000 | | --sha=* | --sh=*) |
| 1001 | sharedstatedir=$ac_optarg ;; |
| 1002 | |
| 1003 | -site | --site | --sit) |
| 1004 | ac_prev=site ;; |
| 1005 | -site=* | --site=* | --sit=*) |
| 1006 | site=$ac_optarg ;; |
| 1007 | |
| 1008 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
| 1009 | ac_prev=srcdir ;; |
| 1010 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
| 1011 | srcdir=$ac_optarg ;; |
| 1012 | |
| 1013 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
| 1014 | | --syscon | --sysco | --sysc | --sys | --sy) |
| 1015 | ac_prev=sysconfdir ;; |
| 1016 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
| 1017 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
| 1018 | sysconfdir=$ac_optarg ;; |
| 1019 | |
| 1020 | -target | --target | --targe | --targ | --tar | --ta | --t) |
| 1021 | ac_prev=target_alias ;; |
| 1022 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
| 1023 | target_alias=$ac_optarg ;; |
| 1024 | |
| 1025 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
| 1026 | verbose=yes ;; |
| 1027 | |
| 1028 | -version | --version | --versio | --versi | --vers | -V) |
| 1029 | ac_init_version=: ;; |
| 1030 | |
| 1031 | -with-* | --with-*) |
| 1032 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
| 1033 | # Reject names that are not valid shell variable names. |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 1034 | expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1035 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
| 1036 | { (exit 1); exit 1; }; } |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 1037 | ac_package=`echo $ac_package | sed 's/[-.]/_/g'` |
| 1038 | eval with_$ac_package=\$ac_optarg ;; |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1039 | |
| 1040 | -without-* | --without-*) |
| 1041 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
| 1042 | # Reject names that are not valid shell variable names. |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 1043 | expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1044 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
| 1045 | { (exit 1); exit 1; }; } |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 1046 | ac_package=`echo $ac_package | sed 's/[-.]/_/g'` |
| 1047 | eval with_$ac_package=no ;; |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1048 | |
| 1049 | --x) |
| 1050 | # Obsolete; use --with-x. |
| 1051 | with_x=yes ;; |
| 1052 | |
| 1053 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
| 1054 | | --x-incl | --x-inc | --x-in | --x-i) |
| 1055 | ac_prev=x_includes ;; |
| 1056 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
| 1057 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
| 1058 | x_includes=$ac_optarg ;; |
| 1059 | |
| 1060 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
| 1061 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
| 1062 | ac_prev=x_libraries ;; |
| 1063 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
| 1064 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
| 1065 | x_libraries=$ac_optarg ;; |
| 1066 | |
| 1067 | -*) { echo "$as_me: error: unrecognized option: $ac_option |
| 1068 | Try \`$0 --help' for more information." >&2 |
| 1069 | { (exit 1); exit 1; }; } |
| 1070 | ;; |
| 1071 | |
| 1072 | *=*) |
| 1073 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
| 1074 | # Reject names that are not valid shell variable names. |
| 1075 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && |
| 1076 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 |
| 1077 | { (exit 1); exit 1; }; } |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 1078 | eval $ac_envvar=\$ac_optarg |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1079 | export $ac_envvar ;; |
| 1080 | |
| 1081 | *) |
| 1082 | # FIXME: should be removed in autoconf 3.0. |
| 1083 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
| 1084 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
| 1085 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
| 1086 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} |
| 1087 | ;; |
| 1088 | |
| 1089 | esac |
| 1090 | done |
| 1091 | |
| 1092 | if test -n "$ac_prev"; then |
| 1093 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
| 1094 | { echo "$as_me: error: missing argument to $ac_option" >&2 |
| 1095 | { (exit 1); exit 1; }; } |
| 1096 | fi |
| 1097 | |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 1098 | # Be sure to have absolute directory names. |
| 1099 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
| 1100 | datadir sysconfdir sharedstatedir localstatedir includedir \ |
| 1101 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ |
| 1102 | libdir localedir mandir |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1103 | do |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 1104 | eval ac_val=\$$ac_var |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1105 | case $ac_val in |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 1106 | [\\/$]* | ?:[\\/]* ) continue;; |
| 1107 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1108 | esac |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 1109 | { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
| 1110 | { (exit 1); exit 1; }; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1111 | done |
| 1112 | |
| 1113 | # There might be people who depend on the old broken behavior: `$host' |
| 1114 | # used to hold the argument of --host etc. |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1115 | # FIXME: To remove some day. |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1116 | build=$build_alias |
| 1117 | host=$host_alias |
| 1118 | target=$target_alias |
| 1119 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1120 | # FIXME: To remove some day. |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1121 | if test "x$host_alias" != x; then |
| 1122 | if test "x$build_alias" = x; then |
| 1123 | cross_compiling=maybe |
| 1124 | echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. |
| 1125 | If a cross compiler is detected then cross compile mode will be used." >&2 |
| 1126 | elif test "x$build_alias" != "x$host_alias"; then |
| 1127 | cross_compiling=yes |
| 1128 | fi |
| 1129 | fi |
| 1130 | |
| 1131 | ac_tool_prefix= |
| 1132 | test -n "$host_alias" && ac_tool_prefix=$host_alias- |
| 1133 | |
| 1134 | test "$silent" = yes && exec 6>/dev/null |
| 1135 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1136 | |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 1137 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
| 1138 | ac_ls_di=`ls -di .` && |
| 1139 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || |
| 1140 | { echo "$as_me: error: Working directory cannot be determined" >&2 |
| 1141 | { (exit 1); exit 1; }; } |
| 1142 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
| 1143 | { echo "$as_me: error: pwd does not report name of working directory" >&2 |
| 1144 | { (exit 1); exit 1; }; } |
| 1145 | |
| 1146 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1147 | # Find the source files, if location was not specified. |
| 1148 | if test -z "$srcdir"; then |
| 1149 | ac_srcdir_defaulted=yes |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 1150 | # Try the directory containing this script, then the parent directory. |
| 1151 | ac_confdir=`$as_dirname -- "$0" || |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1152 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 1153 | X"$0" : 'X\(//\)[^/]' \| \ |
| 1154 | X"$0" : 'X\(//\)$' \| \ |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 1155 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1156 | echo X"$0" | |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 1157 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 1158 | s//\1/ |
| 1159 | q |
| 1160 | } |
| 1161 | /^X\(\/\/\)[^/].*/{ |
| 1162 | s//\1/ |
| 1163 | q |
| 1164 | } |
| 1165 | /^X\(\/\/\)$/{ |
| 1166 | s//\1/ |
| 1167 | q |
| 1168 | } |
| 1169 | /^X\(\/\).*/{ |
| 1170 | s//\1/ |
| 1171 | q |
| 1172 | } |
| 1173 | s/.*/./; q'` |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1174 | srcdir=$ac_confdir |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 1175 | if test ! -r "$srcdir/$ac_unique_file"; then |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1176 | srcdir=.. |
| 1177 | fi |
| 1178 | else |
| 1179 | ac_srcdir_defaulted=no |
| 1180 | fi |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 1181 | if test ! -r "$srcdir/$ac_unique_file"; then |
| 1182 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." |
| 1183 | { 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] | 1184 | { (exit 1); exit 1; }; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1185 | fi |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 1186 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
| 1187 | ac_abs_confdir=`( |
| 1188 | cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1189 | { (exit 1); exit 1; }; } |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 1190 | pwd)` |
| 1191 | # When building in place, set srcdir=. |
| 1192 | if test "$ac_abs_confdir" = "$ac_pwd"; then |
| 1193 | srcdir=. |
| 1194 | fi |
| 1195 | # Remove unnecessary trailing slashes from srcdir. |
| 1196 | # Double slashes in file names in object file debugging info |
| 1197 | # mess up M-x gdb in Emacs. |
| 1198 | case $srcdir in |
| 1199 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; |
| 1200 | esac |
| 1201 | for ac_var in $ac_precious_vars; do |
| 1202 | eval ac_env_${ac_var}_set=\${${ac_var}+set} |
| 1203 | eval ac_env_${ac_var}_value=\$${ac_var} |
| 1204 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} |
| 1205 | eval ac_cv_env_${ac_var}_value=\$${ac_var} |
| 1206 | done |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1207 | |
| 1208 | # |
| 1209 | # Report the --help message. |
| 1210 | # |
| 1211 | if test "$ac_init_help" = "long"; then |
| 1212 | # Omit some internal or obsolete options to make the list less imposing. |
| 1213 | # 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] | 1214 | cat <<_ACEOF |
Benny Prijono | abcf49c | 2007-05-15 21:02:54 +0000 | [diff] [blame] | 1215 | \`configure' configures pjproject 0.7 to adapt to many kinds of systems. |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1216 | |
| 1217 | Usage: $0 [OPTION]... [VAR=VALUE]... |
| 1218 | |
| 1219 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
| 1220 | VAR=VALUE. See below for descriptions of some of the useful variables. |
| 1221 | |
| 1222 | Defaults for the options are specified in brackets. |
| 1223 | |
| 1224 | Configuration: |
| 1225 | -h, --help display this help and exit |
| 1226 | --help=short display options specific to this package |
| 1227 | --help=recursive display the short help of all the included packages |
| 1228 | -V, --version display version information and exit |
| 1229 | -q, --quiet, --silent do not print \`checking...' messages |
| 1230 | --cache-file=FILE cache test results in FILE [disabled] |
| 1231 | -C, --config-cache alias for \`--cache-file=config.cache' |
| 1232 | -n, --no-create do not create output files |
| 1233 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] |
| 1234 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1235 | Installation directories: |
| 1236 | --prefix=PREFIX install architecture-independent files in PREFIX |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1237 | [$ac_default_prefix] |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1238 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1239 | [PREFIX] |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1240 | |
| 1241 | By default, \`make install' will install all the files in |
| 1242 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
| 1243 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
| 1244 | for instance \`--prefix=\$HOME'. |
| 1245 | |
| 1246 | For better control, use the options below. |
| 1247 | |
| 1248 | Fine tuning of the installation directories: |
| 1249 | --bindir=DIR user executables [EPREFIX/bin] |
| 1250 | --sbindir=DIR system admin executables [EPREFIX/sbin] |
| 1251 | --libexecdir=DIR program executables [EPREFIX/libexec] |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1252 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
| 1253 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
| 1254 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
| 1255 | --libdir=DIR object code libraries [EPREFIX/lib] |
| 1256 | --includedir=DIR C header files [PREFIX/include] |
| 1257 | --oldincludedir=DIR C header files for non-gcc [/usr/include] |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 1258 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] |
| 1259 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] |
| 1260 | --infodir=DIR info documentation [DATAROOTDIR/info] |
| 1261 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] |
| 1262 | --mandir=DIR man documentation [DATAROOTDIR/man] |
| 1263 | --docdir=DIR documentation root [DATAROOTDIR/doc/pjproject] |
| 1264 | --htmldir=DIR html documentation [DOCDIR] |
| 1265 | --dvidir=DIR dvi documentation [DOCDIR] |
| 1266 | --pdfdir=DIR pdf documentation [DOCDIR] |
| 1267 | --psdir=DIR ps documentation [DOCDIR] |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1268 | _ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1269 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1270 | cat <<\_ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1271 | |
| 1272 | System types: |
| 1273 | --build=BUILD configure for building on BUILD [guessed] |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1274 | --host=HOST cross-compile to build programs to run on HOST [BUILD] |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1275 | --target=TARGET configure for building compilers for TARGET [HOST] |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1276 | _ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1277 | fi |
| 1278 | |
| 1279 | if test -n "$ac_init_help"; then |
| 1280 | case $ac_init_help in |
Benny Prijono | abcf49c | 2007-05-15 21:02:54 +0000 | [diff] [blame] | 1281 | short | recursive ) echo "Configuration of pjproject 0.7:";; |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1282 | esac |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1283 | cat <<\_ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1284 | |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 1285 | Optional Features: |
| 1286 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
| 1287 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
| 1288 | --disable-floating-point |
| 1289 | Disable floating point where possible |
Benny Prijono | 1d97162 | 2006-09-10 22:27:40 +0000 | [diff] [blame] | 1290 | --disable-sound Exclude sound (i.e. use null sound) |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 1291 | --disable-small-filter Exclude small filter in resampling |
| 1292 | --disable-large-filter Exclude large filter in resampling |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 1293 | --disable-speex-aec Exclude Speex Acoustic Echo Canceller/AEC |
| 1294 | --disable-g711-codec Exclude G.711 codecs from the build |
| 1295 | --disable-l16-codec Exclude Linear/L16 codec family from the build |
| 1296 | --disable-gsm-codec Exclude GSM codec in the build |
| 1297 | --disable-speex-codec Exclude Speex codecs in the build |
| 1298 | --disable-ilbc-codec Exclude iLBC codec in the build |
Benny Prijono | 550a1a6 | 2007-10-16 08:54:00 +0000 | [diff] [blame] | 1299 | --enable-libsamplerate Link with libsamplerate when available. Note that |
| 1300 | PJMEDIA_RESAMPLE_IMP must also be configured |
Benny Prijono | ce1db76 | 2007-02-14 02:21:08 +0000 | [diff] [blame] | 1301 | --disable-ssl Exclude SSL support the build (default: autodetect) |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1302 | |
| 1303 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1304 | Some influential environment variables: |
| 1305 | CC C compiler command |
| 1306 | CFLAGS C compiler flags |
| 1307 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
| 1308 | nonstandard directory <lib dir> |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 1309 | LIBS libraries to pass to the linker, e.g. -l<library> |
| 1310 | CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if |
| 1311 | you have headers in a nonstandard directory <include dir> |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 1312 | CXX C++ compiler command |
| 1313 | CXXFLAGS C++ compiler flags |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1314 | CPP C preprocessor |
| 1315 | |
| 1316 | Use these variables to override the choices made by `configure' or to help |
| 1317 | it to find libraries and programs with nonstandard names/locations. |
| 1318 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1319 | _ACEOF |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 1320 | ac_status=$? |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1321 | fi |
| 1322 | |
| 1323 | if test "$ac_init_help" = "recursive"; then |
| 1324 | # If there are subdirs, report their specific --help. |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1325 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 1326 | test -d "$ac_dir" || continue |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1327 | ac_builddir=. |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1328 | |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 1329 | case "$ac_dir" in |
| 1330 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 1331 | *) |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1332 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 1333 | # A ".." for each directory in $ac_dir_suffix. |
| 1334 | ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` |
| 1335 | case $ac_top_builddir_sub in |
| 1336 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 1337 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 1338 | esac ;; |
| 1339 | esac |
| 1340 | ac_abs_top_builddir=$ac_pwd |
| 1341 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 1342 | # for backward compatibility: |
| 1343 | ac_top_builddir=$ac_top_build_prefix |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1344 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1345 | case $srcdir in |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 1346 | .) # We are building in place. |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1347 | ac_srcdir=. |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 1348 | ac_top_srcdir=$ac_top_builddir_sub |
| 1349 | ac_abs_top_srcdir=$ac_pwd ;; |
| 1350 | [\\/]* | ?:[\\/]* ) # Absolute name. |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1351 | ac_srcdir=$srcdir$ac_dir_suffix; |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 1352 | ac_top_srcdir=$srcdir |
| 1353 | ac_abs_top_srcdir=$srcdir ;; |
| 1354 | *) # Relative name. |
| 1355 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 1356 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 1357 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1358 | esac |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 1359 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1360 | |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 1361 | cd "$ac_dir" || { ac_status=$?; continue; } |
| 1362 | # Check for guested configure. |
| 1363 | if test -f "$ac_srcdir/configure.gnu"; then |
| 1364 | echo && |
| 1365 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive |
| 1366 | elif test -f "$ac_srcdir/configure"; then |
| 1367 | echo && |
| 1368 | $SHELL "$ac_srcdir/configure" --help=recursive |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1369 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1370 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 1371 | fi || ac_status=$? |
| 1372 | cd "$ac_pwd" || { ac_status=$?; break; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1373 | done |
| 1374 | fi |
| 1375 | |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 1376 | test -n "$ac_init_help" && exit $ac_status |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1377 | if $ac_init_version; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1378 | cat <<\_ACEOF |
Benny Prijono | abcf49c | 2007-05-15 21:02:54 +0000 | [diff] [blame] | 1379 | pjproject configure 0.7 |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 1380 | generated by GNU Autoconf 2.61 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1381 | |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 1382 | Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
| 1383 | 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1384 | This configure script is free software; the Free Software Foundation |
| 1385 | gives unlimited permission to copy, distribute and modify it. |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1386 | _ACEOF |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 1387 | exit |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1388 | fi |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 1389 | cat >config.log <<_ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1390 | This file contains any messages produced by compilers while |
| 1391 | running configure, to aid debugging if configure makes a mistake. |
| 1392 | |
Benny Prijono | abcf49c | 2007-05-15 21:02:54 +0000 | [diff] [blame] | 1393 | It was created by pjproject $as_me 0.7, which was |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 1394 | generated by GNU Autoconf 2.61. Invocation command line was |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1395 | |
| 1396 | $ $0 $@ |
| 1397 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1398 | _ACEOF |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 1399 | exec 5>>config.log |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1400 | { |
| 1401 | cat <<_ASUNAME |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1402 | ## --------- ## |
| 1403 | ## Platform. ## |
| 1404 | ## --------- ## |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1405 | |
| 1406 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 1407 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
| 1408 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
| 1409 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
| 1410 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
| 1411 | |
| 1412 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
| 1413 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
| 1414 | |
| 1415 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
| 1416 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
| 1417 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 1418 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1419 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
| 1420 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
| 1421 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
| 1422 | |
| 1423 | _ASUNAME |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1424 | |
| 1425 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1426 | for as_dir in $PATH |
| 1427 | do |
| 1428 | IFS=$as_save_IFS |
| 1429 | test -z "$as_dir" && as_dir=. |
| 1430 | echo "PATH: $as_dir" |
| 1431 | done |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 1432 | IFS=$as_save_IFS |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1433 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1434 | } >&5 |
| 1435 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1436 | cat >&5 <<_ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1437 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1438 | |
| 1439 | ## ----------- ## |
| 1440 | ## Core tests. ## |
| 1441 | ## ----------- ## |
| 1442 | |
| 1443 | _ACEOF |
| 1444 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1445 | |
| 1446 | # Keep a trace of the command line. |
| 1447 | # 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] | 1448 | # 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] | 1449 | # Also quote any args containing shell meta-characters. |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1450 | # Make two passes to allow for proper duplicate-argument suppression. |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1451 | ac_configure_args= |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1452 | ac_configure_args0= |
| 1453 | ac_configure_args1= |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1454 | ac_must_keep_next=false |
| 1455 | for ac_pass in 1 2 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1456 | do |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1457 | for ac_arg |
| 1458 | do |
| 1459 | case $ac_arg in |
| 1460 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
| 1461 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 1462 | | -silent | --silent | --silen | --sile | --sil) |
| 1463 | continue ;; |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 1464 | *\'*) |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1465 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 1466 | esac |
| 1467 | case $ac_pass in |
| 1468 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; |
| 1469 | 2) |
| 1470 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" |
| 1471 | if test $ac_must_keep_next = true; then |
| 1472 | ac_must_keep_next=false # Got value, back to normal. |
| 1473 | else |
| 1474 | case $ac_arg in |
| 1475 | *=* | --config-cache | -C | -disable-* | --disable-* \ |
| 1476 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
| 1477 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
| 1478 | | -with-* | --with-* | -without-* | --without-* | --x) |
| 1479 | case "$ac_configure_args0 " in |
| 1480 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
| 1481 | esac |
| 1482 | ;; |
| 1483 | -* ) ac_must_keep_next=true ;; |
| 1484 | esac |
| 1485 | fi |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 1486 | ac_configure_args="$ac_configure_args '$ac_arg'" |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1487 | ;; |
| 1488 | esac |
| 1489 | done |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1490 | done |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1491 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } |
| 1492 | $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] | 1493 | |
| 1494 | # When interrupted or exit'd, cleanup temporary files, and complete |
| 1495 | # config.log. We remove comments because anyway the quotes in there |
| 1496 | # would cause problems or look ugly. |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 1497 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
| 1498 | # 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] | 1499 | trap 'exit_status=$? |
| 1500 | # Save into config.log some information that might help in debugging. |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1501 | { |
| 1502 | echo |
| 1503 | |
| 1504 | cat <<\_ASBOX |
| 1505 | ## ---------------- ## |
| 1506 | ## Cache variables. ## |
| 1507 | ## ---------------- ## |
| 1508 | _ASBOX |
| 1509 | echo |
| 1510 | # The following way of writing the cache mishandles newlines in values, |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 1511 | ( |
| 1512 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do |
| 1513 | eval ac_val=\$$ac_var |
| 1514 | case $ac_val in #( |
| 1515 | *${as_nl}*) |
| 1516 | case $ac_var in #( |
| 1517 | *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 |
| 1518 | echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; |
| 1519 | esac |
| 1520 | case $ac_var in #( |
| 1521 | _ | IFS | as_nl) ;; #( |
| 1522 | *) $as_unset $ac_var ;; |
| 1523 | esac ;; |
| 1524 | esac |
| 1525 | done |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1526 | (set) 2>&1 | |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 1527 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
| 1528 | *${as_nl}ac_space=\ *) |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1529 | sed -n \ |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 1530 | "s/'\''/'\''\\\\'\'''\''/g; |
| 1531 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" |
| 1532 | ;; #( |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1533 | *) |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 1534 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1535 | ;; |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 1536 | esac | |
| 1537 | sort |
| 1538 | ) |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1539 | echo |
| 1540 | |
| 1541 | cat <<\_ASBOX |
| 1542 | ## ----------------- ## |
| 1543 | ## Output variables. ## |
| 1544 | ## ----------------- ## |
| 1545 | _ASBOX |
| 1546 | echo |
| 1547 | for ac_var in $ac_subst_vars |
| 1548 | do |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 1549 | eval ac_val=\$$ac_var |
| 1550 | case $ac_val in |
| 1551 | *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
| 1552 | esac |
| 1553 | echo "$ac_var='\''$ac_val'\''" |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1554 | done | sort |
| 1555 | echo |
| 1556 | |
| 1557 | if test -n "$ac_subst_files"; then |
| 1558 | cat <<\_ASBOX |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 1559 | ## ------------------- ## |
| 1560 | ## File substitutions. ## |
| 1561 | ## ------------------- ## |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1562 | _ASBOX |
| 1563 | echo |
| 1564 | for ac_var in $ac_subst_files |
| 1565 | do |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 1566 | eval ac_val=\$$ac_var |
| 1567 | case $ac_val in |
| 1568 | *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
| 1569 | esac |
| 1570 | echo "$ac_var='\''$ac_val'\''" |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1571 | done | sort |
| 1572 | echo |
| 1573 | fi |
| 1574 | |
| 1575 | if test -s confdefs.h; then |
| 1576 | cat <<\_ASBOX |
| 1577 | ## ----------- ## |
| 1578 | ## confdefs.h. ## |
| 1579 | ## ----------- ## |
| 1580 | _ASBOX |
| 1581 | echo |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 1582 | cat confdefs.h |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1583 | echo |
| 1584 | fi |
| 1585 | test "$ac_signal" != 0 && |
| 1586 | echo "$as_me: caught signal $ac_signal" |
| 1587 | echo "$as_me: exit $exit_status" |
| 1588 | } >&5 |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 1589 | rm -f core *.core core.conftest.* && |
| 1590 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1591 | exit $exit_status |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 1592 | ' 0 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1593 | for ac_signal in 1 2 13 15; do |
| 1594 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal |
| 1595 | done |
| 1596 | ac_signal=0 |
| 1597 | |
| 1598 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 1599 | rm -f -r conftest* confdefs.h |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1600 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1601 | # Predefined preprocessor variables. |
| 1602 | |
| 1603 | cat >>confdefs.h <<_ACEOF |
| 1604 | #define PACKAGE_NAME "$PACKAGE_NAME" |
| 1605 | _ACEOF |
| 1606 | |
| 1607 | |
| 1608 | cat >>confdefs.h <<_ACEOF |
| 1609 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
| 1610 | _ACEOF |
| 1611 | |
| 1612 | |
| 1613 | cat >>confdefs.h <<_ACEOF |
| 1614 | #define PACKAGE_VERSION "$PACKAGE_VERSION" |
| 1615 | _ACEOF |
| 1616 | |
| 1617 | |
| 1618 | cat >>confdefs.h <<_ACEOF |
| 1619 | #define PACKAGE_STRING "$PACKAGE_STRING" |
| 1620 | _ACEOF |
| 1621 | |
| 1622 | |
| 1623 | cat >>confdefs.h <<_ACEOF |
| 1624 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
| 1625 | _ACEOF |
| 1626 | |
| 1627 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1628 | # Let the site file select an alternate cache file if it wants to. |
| 1629 | # Prefer explicitly selected file to automatically selected ones. |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 1630 | if test -n "$CONFIG_SITE"; then |
| 1631 | set x "$CONFIG_SITE" |
| 1632 | elif test "x$prefix" != xNONE; then |
| 1633 | set x "$prefix/share/config.site" "$prefix/etc/config.site" |
| 1634 | else |
| 1635 | set x "$ac_default_prefix/share/config.site" \ |
| 1636 | "$ac_default_prefix/etc/config.site" |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1637 | fi |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 1638 | shift |
| 1639 | for ac_site_file |
| 1640 | do |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1641 | if test -r "$ac_site_file"; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1642 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1643 | echo "$as_me: loading site script $ac_site_file" >&6;} |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1644 | sed 's/^/| /' "$ac_site_file" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1645 | . "$ac_site_file" |
| 1646 | fi |
| 1647 | done |
| 1648 | |
| 1649 | if test -r "$cache_file"; then |
| 1650 | # Some versions of bash will fail to source /dev/null (special |
| 1651 | # files actually), so we avoid doing that. |
| 1652 | if test -f "$cache_file"; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1653 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1654 | echo "$as_me: loading cache $cache_file" >&6;} |
| 1655 | case $cache_file in |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 1656 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
| 1657 | *) . "./$cache_file";; |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1658 | esac |
| 1659 | fi |
| 1660 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1661 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1662 | echo "$as_me: creating cache $cache_file" >&6;} |
| 1663 | >$cache_file |
| 1664 | fi |
| 1665 | |
| 1666 | # Check that the precious variables saved in the cache have kept the same |
| 1667 | # value. |
| 1668 | ac_cache_corrupted=false |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 1669 | for ac_var in $ac_precious_vars; do |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1670 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
| 1671 | eval ac_new_set=\$ac_env_${ac_var}_set |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 1672 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
| 1673 | eval ac_new_val=\$ac_env_${ac_var}_value |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1674 | case $ac_old_set,$ac_new_set in |
| 1675 | set,) |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1676 | { 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] | 1677 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
| 1678 | ac_cache_corrupted=: ;; |
| 1679 | ,set) |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1680 | { 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] | 1681 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
| 1682 | ac_cache_corrupted=: ;; |
| 1683 | ,);; |
| 1684 | *) |
| 1685 | if test "x$ac_old_val" != "x$ac_new_val"; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1686 | { 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] | 1687 | 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] | 1688 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1689 | echo "$as_me: former value: $ac_old_val" >&2;} |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1690 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1691 | echo "$as_me: current value: $ac_new_val" >&2;} |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1692 | ac_cache_corrupted=: |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1693 | fi;; |
| 1694 | esac |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1695 | # Pass precious variables to config.status. |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1696 | if test "$ac_new_set" = set; then |
| 1697 | case $ac_new_val in |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 1698 | *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1699 | *) ac_arg=$ac_var=$ac_new_val ;; |
| 1700 | esac |
| 1701 | case " $ac_configure_args " in |
| 1702 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
| 1703 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1704 | esac |
| 1705 | fi |
| 1706 | done |
| 1707 | if $ac_cache_corrupted; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1708 | { 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] | 1709 | 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] | 1710 | { { 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] | 1711 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} |
| 1712 | { (exit 1); exit 1; }; } |
| 1713 | fi |
| 1714 | |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 1715 | |
| 1716 | |
| 1717 | |
| 1718 | |
| 1719 | |
| 1720 | |
| 1721 | |
| 1722 | |
| 1723 | |
| 1724 | |
| 1725 | |
| 1726 | |
| 1727 | |
| 1728 | |
| 1729 | |
| 1730 | |
| 1731 | |
| 1732 | |
| 1733 | |
| 1734 | |
| 1735 | |
| 1736 | |
| 1737 | |
| 1738 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1739 | ac_ext=c |
| 1740 | ac_cpp='$CPP $CPPFLAGS' |
| 1741 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 1742 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 1743 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 1744 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1745 | |
| 1746 | |
Benny Prijono | 5b818b2 | 2006-09-17 22:58:51 +0000 | [diff] [blame] | 1747 | host_orig="$host" |
| 1748 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1749 | ac_aux_dir= |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 1750 | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do |
| 1751 | if test -f "$ac_dir/install-sh"; then |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1752 | ac_aux_dir=$ac_dir |
| 1753 | ac_install_sh="$ac_aux_dir/install-sh -c" |
| 1754 | break |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 1755 | elif test -f "$ac_dir/install.sh"; then |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1756 | ac_aux_dir=$ac_dir |
| 1757 | ac_install_sh="$ac_aux_dir/install.sh -c" |
| 1758 | break |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 1759 | elif test -f "$ac_dir/shtool"; then |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1760 | ac_aux_dir=$ac_dir |
| 1761 | ac_install_sh="$ac_aux_dir/shtool install -c" |
| 1762 | break |
| 1763 | fi |
| 1764 | done |
| 1765 | if test -z "$ac_aux_dir"; then |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 1766 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5 |
| 1767 | 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] | 1768 | { (exit 1); exit 1; }; } |
| 1769 | fi |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 1770 | |
| 1771 | # These three variables are undocumented and unsupported, |
| 1772 | # and are intended to be withdrawn in a future Autoconf release. |
| 1773 | # They can cause serious problems if a builder's source tree is in a directory |
| 1774 | # whose full name contains unusual characters. |
| 1775 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. |
| 1776 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. |
| 1777 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. |
| 1778 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1779 | |
| 1780 | # Make sure we can run config.sub. |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 1781 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || |
| 1782 | { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 |
| 1783 | 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] | 1784 | { (exit 1); exit 1; }; } |
| 1785 | |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 1786 | { echo "$as_me:$LINENO: checking build system type" >&5 |
| 1787 | echo $ECHO_N "checking build system type... $ECHO_C" >&6; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1788 | if test "${ac_cv_build+set}" = set; then |
| 1789 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1790 | else |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 1791 | ac_build_alias=$build_alias |
| 1792 | test "x$ac_build_alias" = x && |
| 1793 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` |
| 1794 | test "x$ac_build_alias" = x && |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1795 | { { 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] | 1796 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} |
| 1797 | { (exit 1); exit 1; }; } |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 1798 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || |
| 1799 | { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 |
| 1800 | 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] | 1801 | { (exit 1); exit 1; }; } |
| 1802 | |
| 1803 | fi |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 1804 | { echo "$as_me:$LINENO: result: $ac_cv_build" >&5 |
| 1805 | echo "${ECHO_T}$ac_cv_build" >&6; } |
| 1806 | case $ac_cv_build in |
| 1807 | *-*-*) ;; |
| 1808 | *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 |
| 1809 | echo "$as_me: error: invalid value of canonical build" >&2;} |
| 1810 | { (exit 1); exit 1; }; };; |
| 1811 | esac |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1812 | build=$ac_cv_build |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 1813 | ac_save_IFS=$IFS; IFS='-' |
| 1814 | set x $ac_cv_build |
| 1815 | shift |
| 1816 | build_cpu=$1 |
| 1817 | build_vendor=$2 |
| 1818 | shift; shift |
| 1819 | # Remember, the first character of IFS is used to create $*, |
| 1820 | # except with old shells: |
| 1821 | build_os=$* |
| 1822 | IFS=$ac_save_IFS |
| 1823 | 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] | 1824 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1825 | |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 1826 | { echo "$as_me:$LINENO: checking host system type" >&5 |
| 1827 | echo $ECHO_N "checking host system type... $ECHO_C" >&6; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1828 | if test "${ac_cv_host+set}" = set; then |
| 1829 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1830 | else |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 1831 | if test "x$host_alias" = x; then |
| 1832 | ac_cv_host=$ac_cv_build |
| 1833 | else |
| 1834 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || |
| 1835 | { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 |
| 1836 | 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] | 1837 | { (exit 1); exit 1; }; } |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 1838 | fi |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1839 | |
| 1840 | fi |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 1841 | { echo "$as_me:$LINENO: result: $ac_cv_host" >&5 |
| 1842 | echo "${ECHO_T}$ac_cv_host" >&6; } |
| 1843 | case $ac_cv_host in |
| 1844 | *-*-*) ;; |
| 1845 | *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 |
| 1846 | echo "$as_me: error: invalid value of canonical host" >&2;} |
| 1847 | { (exit 1); exit 1; }; };; |
| 1848 | esac |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1849 | host=$ac_cv_host |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 1850 | ac_save_IFS=$IFS; IFS='-' |
| 1851 | set x $ac_cv_host |
| 1852 | shift |
| 1853 | host_cpu=$1 |
| 1854 | host_vendor=$2 |
| 1855 | shift; shift |
| 1856 | # Remember, the first character of IFS is used to create $*, |
| 1857 | # except with old shells: |
| 1858 | host_os=$* |
| 1859 | IFS=$ac_save_IFS |
| 1860 | 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] | 1861 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1862 | |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 1863 | { echo "$as_me:$LINENO: checking target system type" >&5 |
| 1864 | echo $ECHO_N "checking target system type... $ECHO_C" >&6; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1865 | if test "${ac_cv_target+set}" = set; then |
| 1866 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1867 | else |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 1868 | if test "x$target_alias" = x; then |
| 1869 | ac_cv_target=$ac_cv_host |
| 1870 | else |
| 1871 | ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || |
| 1872 | { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5 |
| 1873 | 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] | 1874 | { (exit 1); exit 1; }; } |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 1875 | fi |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1876 | |
| 1877 | fi |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 1878 | { echo "$as_me:$LINENO: result: $ac_cv_target" >&5 |
| 1879 | echo "${ECHO_T}$ac_cv_target" >&6; } |
| 1880 | case $ac_cv_target in |
| 1881 | *-*-*) ;; |
| 1882 | *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5 |
| 1883 | echo "$as_me: error: invalid value of canonical target" >&2;} |
| 1884 | { (exit 1); exit 1; }; };; |
| 1885 | esac |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1886 | target=$ac_cv_target |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 1887 | ac_save_IFS=$IFS; IFS='-' |
| 1888 | set x $ac_cv_target |
| 1889 | shift |
| 1890 | target_cpu=$1 |
| 1891 | target_vendor=$2 |
| 1892 | shift; shift |
| 1893 | # Remember, the first character of IFS is used to create $*, |
| 1894 | # except with old shells: |
| 1895 | target_os=$* |
| 1896 | IFS=$ac_save_IFS |
| 1897 | 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] | 1898 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1899 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1900 | # The aliases save the names the user supplied, while $host etc. |
| 1901 | # will get canonicalized. |
| 1902 | test -n "$target_alias" && |
| 1903 | test "$program_prefix$program_suffix$program_transform_name" = \ |
| 1904 | NONENONEs,x,x, && |
| 1905 | program_prefix=${target_alias}- |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 1906 | 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] | 1907 | |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 1908 | 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] | 1909 | |
Benny Prijono | c1fe23d | 2006-09-13 09:38:06 +0000 | [diff] [blame] | 1910 | |
Benny Prijono | 1248311 | 2007-03-12 10:44:38 +0000 | [diff] [blame] | 1911 | |
Benny Prijono | c1fe23d | 2006-09-13 09:38:06 +0000 | [diff] [blame] | 1912 | if test "$CFLAGS" = ""; then |
Benny Prijono | d145982 | 2006-10-04 20:56:39 +0000 | [diff] [blame] | 1913 | CFLAGS="-O2" |
Benny Prijono | c1fe23d | 2006-09-13 09:38:06 +0000 | [diff] [blame] | 1914 | else |
| 1915 | CFLAGS="$CFLAGS" |
| 1916 | fi |
| 1917 | |
| 1918 | CXXFLAGS="$CFLAGS $CXXFLAGS" |
| 1919 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1920 | ac_ext=c |
| 1921 | ac_cpp='$CPP $CPPFLAGS' |
| 1922 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 1923 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 1924 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 1925 | if test -n "$ac_tool_prefix"; then |
| 1926 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
| 1927 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 1928 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1929 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1930 | if test "${ac_cv_prog_CC+set}" = set; then |
| 1931 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1932 | else |
| 1933 | if test -n "$CC"; then |
| 1934 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 1935 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1936 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1937 | for as_dir in $PATH |
| 1938 | do |
| 1939 | IFS=$as_save_IFS |
| 1940 | test -z "$as_dir" && as_dir=. |
| 1941 | for ac_exec_ext in '' $ac_executable_extensions; do |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 1942 | 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] | 1943 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
| 1944 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1945 | break 2 |
| 1946 | fi |
| 1947 | done |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1948 | done |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 1949 | IFS=$as_save_IFS |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1950 | |
| 1951 | fi |
| 1952 | fi |
| 1953 | CC=$ac_cv_prog_CC |
| 1954 | if test -n "$CC"; then |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 1955 | { echo "$as_me:$LINENO: result: $CC" >&5 |
| 1956 | echo "${ECHO_T}$CC" >&6; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1957 | else |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 1958 | { echo "$as_me:$LINENO: result: no" >&5 |
| 1959 | echo "${ECHO_T}no" >&6; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1960 | fi |
| 1961 | |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 1962 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1963 | fi |
| 1964 | if test -z "$ac_cv_prog_CC"; then |
| 1965 | ac_ct_CC=$CC |
| 1966 | # Extract the first word of "gcc", so it can be a program name with args. |
| 1967 | set dummy gcc; ac_word=$2 |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 1968 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1969 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1970 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 1971 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1972 | else |
| 1973 | if test -n "$ac_ct_CC"; then |
| 1974 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 1975 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1976 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1977 | for as_dir in $PATH |
| 1978 | do |
| 1979 | IFS=$as_save_IFS |
| 1980 | test -z "$as_dir" && as_dir=. |
| 1981 | for ac_exec_ext in '' $ac_executable_extensions; do |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 1982 | 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] | 1983 | ac_cv_prog_ac_ct_CC="gcc" |
| 1984 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1985 | break 2 |
| 1986 | fi |
| 1987 | done |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1988 | done |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 1989 | IFS=$as_save_IFS |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1990 | |
| 1991 | fi |
| 1992 | fi |
| 1993 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 1994 | if test -n "$ac_ct_CC"; then |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 1995 | { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 1996 | echo "${ECHO_T}$ac_ct_CC" >&6; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1997 | else |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 1998 | { echo "$as_me:$LINENO: result: no" >&5 |
| 1999 | echo "${ECHO_T}no" >&6; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2000 | fi |
| 2001 | |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 2002 | if test "x$ac_ct_CC" = x; then |
| 2003 | CC="" |
| 2004 | else |
| 2005 | case $cross_compiling:$ac_tool_warned in |
| 2006 | yes:) |
| 2007 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 2008 | whose name does not start with the host triplet. If you think this |
| 2009 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 2010 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 2011 | whose name does not start with the host triplet. If you think this |
| 2012 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| 2013 | ac_tool_warned=yes ;; |
| 2014 | esac |
| 2015 | CC=$ac_ct_CC |
| 2016 | fi |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2017 | else |
| 2018 | CC="$ac_cv_prog_CC" |
| 2019 | fi |
| 2020 | |
| 2021 | if test -z "$CC"; then |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 2022 | if test -n "$ac_tool_prefix"; then |
| 2023 | # 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] | 2024 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 2025 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2026 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2027 | if test "${ac_cv_prog_CC+set}" = set; then |
| 2028 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2029 | else |
| 2030 | if test -n "$CC"; then |
| 2031 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2032 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2033 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2034 | for as_dir in $PATH |
| 2035 | do |
| 2036 | IFS=$as_save_IFS |
| 2037 | test -z "$as_dir" && as_dir=. |
| 2038 | for ac_exec_ext in '' $ac_executable_extensions; do |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 2039 | 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] | 2040 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
| 2041 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2042 | break 2 |
| 2043 | fi |
| 2044 | done |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2045 | done |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 2046 | IFS=$as_save_IFS |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2047 | |
| 2048 | fi |
| 2049 | fi |
| 2050 | CC=$ac_cv_prog_CC |
| 2051 | if test -n "$CC"; then |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 2052 | { echo "$as_me:$LINENO: result: $CC" >&5 |
| 2053 | echo "${ECHO_T}$CC" >&6; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2054 | else |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 2055 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2056 | echo "${ECHO_T}no" >&6; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2057 | fi |
| 2058 | |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 2059 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2060 | fi |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2061 | fi |
| 2062 | if test -z "$CC"; then |
| 2063 | # Extract the first word of "cc", so it can be a program name with args. |
| 2064 | set dummy cc; ac_word=$2 |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 2065 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2066 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2067 | if test "${ac_cv_prog_CC+set}" = set; then |
| 2068 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2069 | else |
| 2070 | if test -n "$CC"; then |
| 2071 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2072 | else |
| 2073 | ac_prog_rejected=no |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2074 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2075 | for as_dir in $PATH |
| 2076 | do |
| 2077 | IFS=$as_save_IFS |
| 2078 | test -z "$as_dir" && as_dir=. |
| 2079 | for ac_exec_ext in '' $ac_executable_extensions; do |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 2080 | 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] | 2081 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
| 2082 | ac_prog_rejected=yes |
| 2083 | continue |
| 2084 | fi |
| 2085 | ac_cv_prog_CC="cc" |
| 2086 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2087 | break 2 |
| 2088 | fi |
| 2089 | done |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2090 | done |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 2091 | IFS=$as_save_IFS |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2092 | |
| 2093 | if test $ac_prog_rejected = yes; then |
| 2094 | # We found a bogon in the path, so make sure we never use it. |
| 2095 | set dummy $ac_cv_prog_CC |
| 2096 | shift |
| 2097 | if test $# != 0; then |
| 2098 | # We chose a different compiler from the bogus one. |
| 2099 | # However, it has the same basename, so the bogon will be chosen |
| 2100 | # first if we set CC to just the basename; use the full file name. |
| 2101 | shift |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2102 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2103 | fi |
| 2104 | fi |
| 2105 | fi |
| 2106 | fi |
| 2107 | CC=$ac_cv_prog_CC |
| 2108 | if test -n "$CC"; then |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 2109 | { echo "$as_me:$LINENO: result: $CC" >&5 |
| 2110 | echo "${ECHO_T}$CC" >&6; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2111 | else |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 2112 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2113 | echo "${ECHO_T}no" >&6; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2114 | fi |
| 2115 | |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 2116 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2117 | fi |
| 2118 | if test -z "$CC"; then |
| 2119 | if test -n "$ac_tool_prefix"; then |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 2120 | for ac_prog in cl.exe |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2121 | do |
| 2122 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 2123 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 2124 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2125 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2126 | if test "${ac_cv_prog_CC+set}" = set; then |
| 2127 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2128 | else |
| 2129 | if test -n "$CC"; then |
| 2130 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2131 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2132 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2133 | for as_dir in $PATH |
| 2134 | do |
| 2135 | IFS=$as_save_IFS |
| 2136 | test -z "$as_dir" && as_dir=. |
| 2137 | for ac_exec_ext in '' $ac_executable_extensions; do |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 2138 | 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] | 2139 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
| 2140 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2141 | break 2 |
| 2142 | fi |
| 2143 | done |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2144 | done |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 2145 | IFS=$as_save_IFS |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2146 | |
| 2147 | fi |
| 2148 | fi |
| 2149 | CC=$ac_cv_prog_CC |
| 2150 | if test -n "$CC"; then |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 2151 | { echo "$as_me:$LINENO: result: $CC" >&5 |
| 2152 | echo "${ECHO_T}$CC" >&6; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2153 | else |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 2154 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2155 | echo "${ECHO_T}no" >&6; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2156 | fi |
| 2157 | |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 2158 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2159 | test -n "$CC" && break |
| 2160 | done |
| 2161 | fi |
| 2162 | if test -z "$CC"; then |
| 2163 | ac_ct_CC=$CC |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 2164 | for ac_prog in cl.exe |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2165 | do |
| 2166 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 2167 | set dummy $ac_prog; ac_word=$2 |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 2168 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2169 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2170 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 2171 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2172 | else |
| 2173 | if test -n "$ac_ct_CC"; then |
| 2174 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 2175 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2176 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2177 | for as_dir in $PATH |
| 2178 | do |
| 2179 | IFS=$as_save_IFS |
| 2180 | test -z "$as_dir" && as_dir=. |
| 2181 | for ac_exec_ext in '' $ac_executable_extensions; do |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 2182 | 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] | 2183 | ac_cv_prog_ac_ct_CC="$ac_prog" |
| 2184 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2185 | break 2 |
| 2186 | fi |
| 2187 | done |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2188 | done |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 2189 | IFS=$as_save_IFS |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2190 | |
| 2191 | fi |
| 2192 | fi |
| 2193 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 2194 | if test -n "$ac_ct_CC"; then |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 2195 | { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 2196 | echo "${ECHO_T}$ac_ct_CC" >&6; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2197 | else |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 2198 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2199 | echo "${ECHO_T}no" >&6; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2200 | fi |
| 2201 | |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 2202 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2203 | test -n "$ac_ct_CC" && break |
| 2204 | done |
| 2205 | |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 2206 | if test "x$ac_ct_CC" = x; then |
| 2207 | CC="" |
| 2208 | else |
| 2209 | case $cross_compiling:$ac_tool_warned in |
| 2210 | yes:) |
| 2211 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 2212 | whose name does not start with the host triplet. If you think this |
| 2213 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 2214 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 2215 | whose name does not start with the host triplet. If you think this |
| 2216 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| 2217 | ac_tool_warned=yes ;; |
| 2218 | esac |
| 2219 | CC=$ac_ct_CC |
| 2220 | fi |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2221 | fi |
| 2222 | |
| 2223 | fi |
| 2224 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2225 | |
| 2226 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH |
| 2227 | See \`config.log' for more details." >&5 |
| 2228 | echo "$as_me: error: no acceptable C compiler found in \$PATH |
| 2229 | See \`config.log' for more details." >&2;} |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2230 | { (exit 1); exit 1; }; } |
| 2231 | |
| 2232 | # Provide some information about the compiler. |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 2233 | echo "$as_me:$LINENO: checking for C compiler version" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2234 | ac_compiler=`set X $ac_compile; echo $2` |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 2235 | { (ac_try="$ac_compiler --version >&5" |
| 2236 | case "(($ac_try" in |
| 2237 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2238 | *) ac_try_echo=$ac_try;; |
| 2239 | esac |
| 2240 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2241 | (eval "$ac_compiler --version >&5") 2>&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2242 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2243 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2244 | (exit $ac_status); } |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 2245 | { (ac_try="$ac_compiler -v >&5" |
| 2246 | case "(($ac_try" in |
| 2247 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2248 | *) ac_try_echo=$ac_try;; |
| 2249 | esac |
| 2250 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2251 | (eval "$ac_compiler -v >&5") 2>&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2252 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2253 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2254 | (exit $ac_status); } |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 2255 | { (ac_try="$ac_compiler -V >&5" |
| 2256 | case "(($ac_try" in |
| 2257 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2258 | *) ac_try_echo=$ac_try;; |
| 2259 | esac |
| 2260 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2261 | (eval "$ac_compiler -V >&5") 2>&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2262 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2263 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2264 | (exit $ac_status); } |
| 2265 | |
| 2266 | cat >conftest.$ac_ext <<_ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2267 | /* confdefs.h. */ |
| 2268 | _ACEOF |
| 2269 | cat confdefs.h >>conftest.$ac_ext |
| 2270 | cat >>conftest.$ac_ext <<_ACEOF |
| 2271 | /* end confdefs.h. */ |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2272 | |
| 2273 | int |
| 2274 | main () |
| 2275 | { |
| 2276 | |
| 2277 | ; |
| 2278 | return 0; |
| 2279 | } |
| 2280 | _ACEOF |
| 2281 | ac_clean_files_save=$ac_clean_files |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2282 | ac_clean_files="$ac_clean_files a.out a.exe b.out" |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2283 | # Try to create an executable without -o first, disregard a.out. |
| 2284 | # It will help us diagnose broken compilers, and finding out an intuition |
| 2285 | # of exeext. |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 2286 | { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 |
| 2287 | 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] | 2288 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 2289 | # |
| 2290 | # List of possible output files, starting from the most likely. |
| 2291 | # The algorithm is not robust to junk in `.', hence go to wildcards (a.*) |
| 2292 | # only as a last resort. b.out is created by i960 compilers. |
| 2293 | ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out' |
| 2294 | # |
| 2295 | # The IRIX 6 linker writes into existing files which may not be |
| 2296 | # executable, retaining their permissions. Remove them first so a |
| 2297 | # subsequent execution test works. |
| 2298 | ac_rmfiles= |
| 2299 | for ac_file in $ac_files |
| 2300 | do |
| 2301 | case $ac_file in |
| 2302 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; |
| 2303 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; |
| 2304 | esac |
| 2305 | done |
| 2306 | rm -f $ac_rmfiles |
| 2307 | |
| 2308 | if { (ac_try="$ac_link_default" |
| 2309 | case "(($ac_try" in |
| 2310 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2311 | *) ac_try_echo=$ac_try;; |
| 2312 | esac |
| 2313 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2314 | (eval "$ac_link_default") 2>&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2315 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2316 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2317 | (exit $ac_status); }; then |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 2318 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
| 2319 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' |
| 2320 | # in a Makefile. We should not override ac_cv_exeext if it was cached, |
| 2321 | # so that the user can short-circuit this test for compilers unknown to |
| 2322 | # Autoconf. |
| 2323 | for ac_file in $ac_files '' |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2324 | do |
| 2325 | test -f "$ac_file" || continue |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2326 | case $ac_file in |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 2327 | *.$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] | 2328 | ;; |
| 2329 | [ab].out ) |
| 2330 | # We found the default executable, but exeext='' is most |
| 2331 | # certainly right. |
| 2332 | break;; |
| 2333 | *.* ) |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 2334 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
| 2335 | then :; else |
| 2336 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 2337 | fi |
| 2338 | # We set ac_cv_exeext here because the later test for it is not |
| 2339 | # safe: cross compilers may not add the suffix if given an `-o' |
| 2340 | # argument, so we may need to know it at that point already. |
| 2341 | # Even if this section looks crufty: it has the advantage of |
| 2342 | # actually working. |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2343 | break;; |
| 2344 | * ) |
| 2345 | break;; |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2346 | esac |
| 2347 | done |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 2348 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
| 2349 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2350 | else |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 2351 | ac_file='' |
| 2352 | fi |
| 2353 | |
| 2354 | { echo "$as_me:$LINENO: result: $ac_file" >&5 |
| 2355 | echo "${ECHO_T}$ac_file" >&6; } |
| 2356 | if test -z "$ac_file"; then |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2357 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2358 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2359 | |
| 2360 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables |
| 2361 | See \`config.log' for more details." >&5 |
| 2362 | echo "$as_me: error: C compiler cannot create executables |
| 2363 | See \`config.log' for more details." >&2;} |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2364 | { (exit 77); exit 77; }; } |
| 2365 | fi |
| 2366 | |
| 2367 | ac_exeext=$ac_cv_exeext |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2368 | |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 2369 | # Check that the compiler produces executables we can run. If not, either |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2370 | # the compiler is broken, or we cross compile. |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 2371 | { echo "$as_me:$LINENO: checking whether the C compiler works" >&5 |
| 2372 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2373 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
| 2374 | # If not cross compiling, check that we can run a simple program. |
| 2375 | if test "$cross_compiling" != yes; then |
| 2376 | if { ac_try='./$ac_file' |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 2377 | { (case "(($ac_try" in |
| 2378 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2379 | *) ac_try_echo=$ac_try;; |
| 2380 | esac |
| 2381 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2382 | (eval "$ac_try") 2>&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2383 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2384 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2385 | (exit $ac_status); }; }; then |
| 2386 | cross_compiling=no |
| 2387 | else |
| 2388 | if test "$cross_compiling" = maybe; then |
| 2389 | cross_compiling=yes |
| 2390 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2391 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. |
| 2392 | If you meant to cross compile, use \`--host'. |
| 2393 | See \`config.log' for more details." >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2394 | echo "$as_me: error: cannot run C compiled programs. |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2395 | If you meant to cross compile, use \`--host'. |
| 2396 | See \`config.log' for more details." >&2;} |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2397 | { (exit 1); exit 1; }; } |
| 2398 | fi |
| 2399 | fi |
| 2400 | fi |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 2401 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 2402 | echo "${ECHO_T}yes" >&6; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2403 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2404 | rm -f a.out a.exe conftest$ac_cv_exeext b.out |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2405 | ac_clean_files=$ac_clean_files_save |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 2406 | # Check that the compiler produces executables we can run. If not, either |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2407 | # the compiler is broken, or we cross compile. |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 2408 | { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
| 2409 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; } |
| 2410 | { echo "$as_me:$LINENO: result: $cross_compiling" >&5 |
| 2411 | echo "${ECHO_T}$cross_compiling" >&6; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2412 | |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 2413 | { echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
| 2414 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; } |
| 2415 | if { (ac_try="$ac_link" |
| 2416 | case "(($ac_try" in |
| 2417 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2418 | *) ac_try_echo=$ac_try;; |
| 2419 | esac |
| 2420 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2421 | (eval "$ac_link") 2>&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2422 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2423 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2424 | (exit $ac_status); }; then |
| 2425 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
| 2426 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
| 2427 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
| 2428 | # `rm'. |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2429 | for ac_file in conftest.exe conftest conftest.*; do |
| 2430 | test -f "$ac_file" || continue |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2431 | case $ac_file in |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 2432 | *.$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] | 2433 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2434 | break;; |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2435 | * ) break;; |
| 2436 | esac |
| 2437 | done |
| 2438 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2439 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link |
| 2440 | See \`config.log' for more details." >&5 |
| 2441 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link |
| 2442 | See \`config.log' for more details." >&2;} |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2443 | { (exit 1); exit 1; }; } |
| 2444 | fi |
| 2445 | |
| 2446 | rm -f conftest$ac_cv_exeext |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 2447 | { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
| 2448 | echo "${ECHO_T}$ac_cv_exeext" >&6; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2449 | |
| 2450 | rm -f conftest.$ac_ext |
| 2451 | EXEEXT=$ac_cv_exeext |
| 2452 | ac_exeext=$EXEEXT |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 2453 | { echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
| 2454 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2455 | if test "${ac_cv_objext+set}" = set; then |
| 2456 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2457 | else |
| 2458 | cat >conftest.$ac_ext <<_ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2459 | /* confdefs.h. */ |
| 2460 | _ACEOF |
| 2461 | cat confdefs.h >>conftest.$ac_ext |
| 2462 | cat >>conftest.$ac_ext <<_ACEOF |
| 2463 | /* end confdefs.h. */ |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2464 | |
| 2465 | int |
| 2466 | main () |
| 2467 | { |
| 2468 | |
| 2469 | ; |
| 2470 | return 0; |
| 2471 | } |
| 2472 | _ACEOF |
| 2473 | rm -f conftest.o conftest.obj |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 2474 | if { (ac_try="$ac_compile" |
| 2475 | case "(($ac_try" in |
| 2476 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2477 | *) ac_try_echo=$ac_try;; |
| 2478 | esac |
| 2479 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2480 | (eval "$ac_compile") 2>&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2481 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2482 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2483 | (exit $ac_status); }; then |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 2484 | for ac_file in conftest.o conftest.obj conftest.*; do |
| 2485 | test -f "$ac_file" || continue; |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2486 | case $ac_file in |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 2487 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;; |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2488 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
| 2489 | break;; |
| 2490 | esac |
| 2491 | done |
| 2492 | else |
| 2493 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2494 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2495 | |
| 2496 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile |
| 2497 | See \`config.log' for more details." >&5 |
| 2498 | echo "$as_me: error: cannot compute suffix of object files: cannot compile |
| 2499 | See \`config.log' for more details." >&2;} |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2500 | { (exit 1); exit 1; }; } |
| 2501 | fi |
| 2502 | |
| 2503 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
| 2504 | fi |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 2505 | { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
| 2506 | echo "${ECHO_T}$ac_cv_objext" >&6; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2507 | OBJEXT=$ac_cv_objext |
| 2508 | ac_objext=$OBJEXT |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 2509 | { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
| 2510 | 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] | 2511 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
| 2512 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2513 | else |
| 2514 | cat >conftest.$ac_ext <<_ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2515 | /* confdefs.h. */ |
| 2516 | _ACEOF |
| 2517 | cat confdefs.h >>conftest.$ac_ext |
| 2518 | cat >>conftest.$ac_ext <<_ACEOF |
| 2519 | /* end confdefs.h. */ |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2520 | |
| 2521 | int |
| 2522 | main () |
| 2523 | { |
| 2524 | #ifndef __GNUC__ |
| 2525 | choke me |
| 2526 | #endif |
| 2527 | |
| 2528 | ; |
| 2529 | return 0; |
| 2530 | } |
| 2531 | _ACEOF |
| 2532 | rm -f conftest.$ac_objext |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 2533 | if { (ac_try="$ac_compile" |
| 2534 | case "(($ac_try" in |
| 2535 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2536 | *) ac_try_echo=$ac_try;; |
| 2537 | esac |
| 2538 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2539 | (eval "$ac_compile") 2>conftest.er1 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2540 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2541 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2542 | rm -f conftest.er1 |
| 2543 | cat conftest.err >&5 |
| 2544 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 2545 | (exit $ac_status); } && { |
| 2546 | test -z "$ac_c_werror_flag" || |
| 2547 | test ! -s conftest.err |
| 2548 | } && test -s conftest.$ac_objext; then |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2549 | ac_compiler_gnu=yes |
| 2550 | else |
| 2551 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2552 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2553 | |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 2554 | ac_compiler_gnu=no |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2555 | fi |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 2556 | |
| 2557 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2558 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
| 2559 | |
| 2560 | fi |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 2561 | { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
| 2562 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2563 | GCC=`test $ac_compiler_gnu = yes && echo yes` |
| 2564 | ac_test_CFLAGS=${CFLAGS+set} |
| 2565 | ac_save_CFLAGS=$CFLAGS |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 2566 | { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
| 2567 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2568 | if test "${ac_cv_prog_cc_g+set}" = set; then |
| 2569 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2570 | else |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 2571 | ac_save_c_werror_flag=$ac_c_werror_flag |
| 2572 | ac_c_werror_flag=yes |
| 2573 | ac_cv_prog_cc_g=no |
| 2574 | CFLAGS="-g" |
| 2575 | cat >conftest.$ac_ext <<_ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2576 | /* confdefs.h. */ |
| 2577 | _ACEOF |
| 2578 | cat confdefs.h >>conftest.$ac_ext |
| 2579 | cat >>conftest.$ac_ext <<_ACEOF |
| 2580 | /* end confdefs.h. */ |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2581 | |
| 2582 | int |
| 2583 | main () |
| 2584 | { |
| 2585 | |
| 2586 | ; |
| 2587 | return 0; |
| 2588 | } |
| 2589 | _ACEOF |
| 2590 | rm -f conftest.$ac_objext |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 2591 | if { (ac_try="$ac_compile" |
| 2592 | case "(($ac_try" in |
| 2593 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2594 | *) ac_try_echo=$ac_try;; |
| 2595 | esac |
| 2596 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2597 | (eval "$ac_compile") 2>conftest.er1 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2598 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2599 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2600 | rm -f conftest.er1 |
| 2601 | cat conftest.err >&5 |
| 2602 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 2603 | (exit $ac_status); } && { |
| 2604 | test -z "$ac_c_werror_flag" || |
| 2605 | test ! -s conftest.err |
| 2606 | } && test -s conftest.$ac_objext; then |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2607 | ac_cv_prog_cc_g=yes |
| 2608 | else |
| 2609 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2610 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2611 | |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 2612 | CFLAGS="" |
| 2613 | cat >conftest.$ac_ext <<_ACEOF |
| 2614 | /* confdefs.h. */ |
| 2615 | _ACEOF |
| 2616 | cat confdefs.h >>conftest.$ac_ext |
| 2617 | cat >>conftest.$ac_ext <<_ACEOF |
| 2618 | /* end confdefs.h. */ |
| 2619 | |
| 2620 | int |
| 2621 | main () |
| 2622 | { |
| 2623 | |
| 2624 | ; |
| 2625 | return 0; |
| 2626 | } |
| 2627 | _ACEOF |
| 2628 | rm -f conftest.$ac_objext |
| 2629 | if { (ac_try="$ac_compile" |
| 2630 | case "(($ac_try" in |
| 2631 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2632 | *) ac_try_echo=$ac_try;; |
| 2633 | esac |
| 2634 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2635 | (eval "$ac_compile") 2>conftest.er1 |
| 2636 | ac_status=$? |
| 2637 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2638 | rm -f conftest.er1 |
| 2639 | cat conftest.err >&5 |
| 2640 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2641 | (exit $ac_status); } && { |
| 2642 | test -z "$ac_c_werror_flag" || |
| 2643 | test ! -s conftest.err |
| 2644 | } && test -s conftest.$ac_objext; then |
| 2645 | : |
| 2646 | else |
| 2647 | echo "$as_me: failed program was:" >&5 |
| 2648 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2649 | |
| 2650 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 2651 | CFLAGS="-g" |
| 2652 | cat >conftest.$ac_ext <<_ACEOF |
| 2653 | /* confdefs.h. */ |
| 2654 | _ACEOF |
| 2655 | cat confdefs.h >>conftest.$ac_ext |
| 2656 | cat >>conftest.$ac_ext <<_ACEOF |
| 2657 | /* end confdefs.h. */ |
| 2658 | |
| 2659 | int |
| 2660 | main () |
| 2661 | { |
| 2662 | |
| 2663 | ; |
| 2664 | return 0; |
| 2665 | } |
| 2666 | _ACEOF |
| 2667 | rm -f conftest.$ac_objext |
| 2668 | if { (ac_try="$ac_compile" |
| 2669 | case "(($ac_try" in |
| 2670 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2671 | *) ac_try_echo=$ac_try;; |
| 2672 | esac |
| 2673 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2674 | (eval "$ac_compile") 2>conftest.er1 |
| 2675 | ac_status=$? |
| 2676 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2677 | rm -f conftest.er1 |
| 2678 | cat conftest.err >&5 |
| 2679 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2680 | (exit $ac_status); } && { |
| 2681 | test -z "$ac_c_werror_flag" || |
| 2682 | test ! -s conftest.err |
| 2683 | } && test -s conftest.$ac_objext; then |
| 2684 | ac_cv_prog_cc_g=yes |
| 2685 | else |
| 2686 | echo "$as_me: failed program was:" >&5 |
| 2687 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2688 | |
| 2689 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2690 | fi |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 2691 | |
| 2692 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2693 | fi |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 2694 | |
| 2695 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2696 | fi |
| 2697 | |
| 2698 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2699 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 2700 | fi |
| 2701 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
| 2702 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2703 | if test "$ac_test_CFLAGS" = set; then |
| 2704 | CFLAGS=$ac_save_CFLAGS |
| 2705 | elif test $ac_cv_prog_cc_g = yes; then |
| 2706 | if test "$GCC" = yes; then |
| 2707 | CFLAGS="-g -O2" |
| 2708 | else |
| 2709 | CFLAGS="-g" |
| 2710 | fi |
| 2711 | else |
| 2712 | if test "$GCC" = yes; then |
| 2713 | CFLAGS="-O2" |
| 2714 | else |
| 2715 | CFLAGS= |
| 2716 | fi |
| 2717 | fi |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 2718 | { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 |
| 2719 | echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } |
| 2720 | if test "${ac_cv_prog_cc_c89+set}" = set; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2721 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2722 | else |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 2723 | ac_cv_prog_cc_c89=no |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2724 | ac_save_CC=$CC |
| 2725 | cat >conftest.$ac_ext <<_ACEOF |
| 2726 | /* confdefs.h. */ |
| 2727 | _ACEOF |
| 2728 | cat confdefs.h >>conftest.$ac_ext |
| 2729 | cat >>conftest.$ac_ext <<_ACEOF |
| 2730 | /* end confdefs.h. */ |
| 2731 | #include <stdarg.h> |
| 2732 | #include <stdio.h> |
| 2733 | #include <sys/types.h> |
| 2734 | #include <sys/stat.h> |
| 2735 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
| 2736 | struct buf { int x; }; |
| 2737 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
| 2738 | static char *e (p, i) |
| 2739 | char **p; |
| 2740 | int i; |
| 2741 | { |
| 2742 | return p[i]; |
| 2743 | } |
| 2744 | static char *f (char * (*g) (char **, int), char **p, ...) |
| 2745 | { |
| 2746 | char *s; |
| 2747 | va_list v; |
| 2748 | va_start (v,p); |
| 2749 | s = g (p, va_arg (v,int)); |
| 2750 | va_end (v); |
| 2751 | return s; |
| 2752 | } |
| 2753 | |
| 2754 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
| 2755 | function prototypes and stuff, but not '\xHH' hex character constants. |
| 2756 | These don't provoke an error unfortunately, instead are silently treated |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 2757 | 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] | 2758 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
| 2759 | array size at least. It's necessary to write '\x00'==0 to get something |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 2760 | that's true only with -std. */ |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2761 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
| 2762 | |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 2763 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
| 2764 | inside strings and character constants. */ |
| 2765 | #define FOO(x) 'x' |
| 2766 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; |
| 2767 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2768 | int test (int i, double x); |
| 2769 | struct s1 {int (*f) (int a);}; |
| 2770 | struct s2 {int (*f) (double a);}; |
| 2771 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
| 2772 | int argc; |
| 2773 | char **argv; |
| 2774 | int |
| 2775 | main () |
| 2776 | { |
| 2777 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
| 2778 | ; |
| 2779 | return 0; |
| 2780 | } |
| 2781 | _ACEOF |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 2782 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
| 2783 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2784 | do |
| 2785 | CC="$ac_save_CC $ac_arg" |
| 2786 | rm -f conftest.$ac_objext |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 2787 | if { (ac_try="$ac_compile" |
| 2788 | case "(($ac_try" in |
| 2789 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2790 | *) ac_try_echo=$ac_try;; |
| 2791 | esac |
| 2792 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2793 | (eval "$ac_compile") 2>conftest.er1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2794 | ac_status=$? |
| 2795 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2796 | rm -f conftest.er1 |
| 2797 | cat conftest.err >&5 |
| 2798 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 2799 | (exit $ac_status); } && { |
| 2800 | test -z "$ac_c_werror_flag" || |
| 2801 | test ! -s conftest.err |
| 2802 | } && test -s conftest.$ac_objext; then |
| 2803 | ac_cv_prog_cc_c89=$ac_arg |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2804 | else |
| 2805 | echo "$as_me: failed program was:" >&5 |
| 2806 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2807 | |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 2808 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2809 | fi |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 2810 | |
| 2811 | rm -f core conftest.err conftest.$ac_objext |
| 2812 | test "x$ac_cv_prog_cc_c89" != "xno" && break |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2813 | done |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 2814 | rm -f conftest.$ac_ext |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2815 | CC=$ac_save_CC |
| 2816 | |
| 2817 | fi |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 2818 | # AC_CACHE_VAL |
| 2819 | case "x$ac_cv_prog_cc_c89" in |
| 2820 | x) |
| 2821 | { echo "$as_me:$LINENO: result: none needed" >&5 |
| 2822 | echo "${ECHO_T}none needed" >&6; } ;; |
| 2823 | xno) |
| 2824 | { echo "$as_me:$LINENO: result: unsupported" >&5 |
| 2825 | echo "${ECHO_T}unsupported" >&6; } ;; |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2826 | *) |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 2827 | CC="$CC $ac_cv_prog_cc_c89" |
| 2828 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 |
| 2829 | echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2830 | esac |
| 2831 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2832 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2833 | ac_ext=c |
| 2834 | ac_cpp='$CPP $CPPFLAGS' |
| 2835 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2836 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2837 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2838 | |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 2839 | ac_ext=cpp |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2840 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 2841 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2842 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2843 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 2844 | if test -z "$CXX"; then |
| 2845 | if test -n "$CCC"; then |
| 2846 | CXX=$CCC |
| 2847 | else |
| 2848 | if test -n "$ac_tool_prefix"; then |
| 2849 | 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] | 2850 | do |
| 2851 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 2852 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 2853 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2854 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2855 | if test "${ac_cv_prog_CXX+set}" = set; then |
| 2856 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2857 | else |
| 2858 | if test -n "$CXX"; then |
| 2859 | ac_cv_prog_CXX="$CXX" # Let the user override the test. |
| 2860 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2861 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2862 | for as_dir in $PATH |
| 2863 | do |
| 2864 | IFS=$as_save_IFS |
| 2865 | test -z "$as_dir" && as_dir=. |
| 2866 | for ac_exec_ext in '' $ac_executable_extensions; do |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 2867 | 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] | 2868 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
| 2869 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2870 | break 2 |
| 2871 | fi |
| 2872 | done |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2873 | done |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 2874 | IFS=$as_save_IFS |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2875 | |
| 2876 | fi |
| 2877 | fi |
| 2878 | CXX=$ac_cv_prog_CXX |
| 2879 | if test -n "$CXX"; then |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 2880 | { echo "$as_me:$LINENO: result: $CXX" >&5 |
| 2881 | echo "${ECHO_T}$CXX" >&6; } |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2882 | else |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 2883 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2884 | echo "${ECHO_T}no" >&6; } |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2885 | fi |
| 2886 | |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 2887 | |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2888 | test -n "$CXX" && break |
| 2889 | done |
| 2890 | fi |
| 2891 | if test -z "$CXX"; then |
| 2892 | ac_ct_CXX=$CXX |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 2893 | 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] | 2894 | do |
| 2895 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 2896 | set dummy $ac_prog; ac_word=$2 |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 2897 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2898 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2899 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then |
| 2900 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2901 | else |
| 2902 | if test -n "$ac_ct_CXX"; then |
| 2903 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. |
| 2904 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2905 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2906 | for as_dir in $PATH |
| 2907 | do |
| 2908 | IFS=$as_save_IFS |
| 2909 | test -z "$as_dir" && as_dir=. |
| 2910 | for ac_exec_ext in '' $ac_executable_extensions; do |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 2911 | 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] | 2912 | ac_cv_prog_ac_ct_CXX="$ac_prog" |
| 2913 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2914 | break 2 |
| 2915 | fi |
| 2916 | done |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2917 | done |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 2918 | IFS=$as_save_IFS |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2919 | |
| 2920 | fi |
| 2921 | fi |
| 2922 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX |
| 2923 | if test -n "$ac_ct_CXX"; then |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 2924 | { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 |
| 2925 | echo "${ECHO_T}$ac_ct_CXX" >&6; } |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2926 | else |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 2927 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2928 | echo "${ECHO_T}no" >&6; } |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2929 | fi |
| 2930 | |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 2931 | |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2932 | test -n "$ac_ct_CXX" && break |
| 2933 | done |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2934 | |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 2935 | if test "x$ac_ct_CXX" = x; then |
| 2936 | CXX="g++" |
| 2937 | else |
| 2938 | case $cross_compiling:$ac_tool_warned in |
| 2939 | yes:) |
| 2940 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 2941 | whose name does not start with the host triplet. If you think this |
| 2942 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 2943 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 2944 | whose name does not start with the host triplet. If you think this |
| 2945 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| 2946 | ac_tool_warned=yes ;; |
| 2947 | esac |
| 2948 | CXX=$ac_ct_CXX |
| 2949 | fi |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2950 | fi |
| 2951 | |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 2952 | fi |
| 2953 | fi |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2954 | # Provide some information about the compiler. |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 2955 | echo "$as_me:$LINENO: checking for C++ compiler version" >&5 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2956 | ac_compiler=`set X $ac_compile; echo $2` |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 2957 | { (ac_try="$ac_compiler --version >&5" |
| 2958 | case "(($ac_try" in |
| 2959 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2960 | *) ac_try_echo=$ac_try;; |
| 2961 | esac |
| 2962 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2963 | (eval "$ac_compiler --version >&5") 2>&5 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2964 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2965 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2966 | (exit $ac_status); } |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 2967 | { (ac_try="$ac_compiler -v >&5" |
| 2968 | case "(($ac_try" in |
| 2969 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2970 | *) ac_try_echo=$ac_try;; |
| 2971 | esac |
| 2972 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2973 | (eval "$ac_compiler -v >&5") 2>&5 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2974 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2975 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2976 | (exit $ac_status); } |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 2977 | { (ac_try="$ac_compiler -V >&5" |
| 2978 | case "(($ac_try" in |
| 2979 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2980 | *) ac_try_echo=$ac_try;; |
| 2981 | esac |
| 2982 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2983 | (eval "$ac_compiler -V >&5") 2>&5 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2984 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2985 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2986 | (exit $ac_status); } |
| 2987 | |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 2988 | { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 |
| 2989 | 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] | 2990 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then |
| 2991 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2992 | else |
| 2993 | cat >conftest.$ac_ext <<_ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2994 | /* confdefs.h. */ |
| 2995 | _ACEOF |
| 2996 | cat confdefs.h >>conftest.$ac_ext |
| 2997 | cat >>conftest.$ac_ext <<_ACEOF |
| 2998 | /* end confdefs.h. */ |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2999 | |
| 3000 | int |
| 3001 | main () |
| 3002 | { |
| 3003 | #ifndef __GNUC__ |
| 3004 | choke me |
| 3005 | #endif |
| 3006 | |
| 3007 | ; |
| 3008 | return 0; |
| 3009 | } |
| 3010 | _ACEOF |
| 3011 | rm -f conftest.$ac_objext |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 3012 | if { (ac_try="$ac_compile" |
| 3013 | case "(($ac_try" in |
| 3014 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3015 | *) ac_try_echo=$ac_try;; |
| 3016 | esac |
| 3017 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3018 | (eval "$ac_compile") 2>conftest.er1 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3019 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3020 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3021 | rm -f conftest.er1 |
| 3022 | cat conftest.err >&5 |
| 3023 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 3024 | (exit $ac_status); } && { |
| 3025 | test -z "$ac_cxx_werror_flag" || |
| 3026 | test ! -s conftest.err |
| 3027 | } && test -s conftest.$ac_objext; then |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3028 | ac_compiler_gnu=yes |
| 3029 | else |
| 3030 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3031 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3032 | |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 3033 | ac_compiler_gnu=no |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3034 | fi |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 3035 | |
| 3036 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3037 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
| 3038 | |
| 3039 | fi |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 3040 | { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 |
| 3041 | echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; } |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3042 | GXX=`test $ac_compiler_gnu = yes && echo yes` |
| 3043 | ac_test_CXXFLAGS=${CXXFLAGS+set} |
| 3044 | ac_save_CXXFLAGS=$CXXFLAGS |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 3045 | { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 |
| 3046 | echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; } |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3047 | if test "${ac_cv_prog_cxx_g+set}" = set; then |
| 3048 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3049 | else |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 3050 | ac_save_cxx_werror_flag=$ac_cxx_werror_flag |
| 3051 | ac_cxx_werror_flag=yes |
| 3052 | ac_cv_prog_cxx_g=no |
| 3053 | CXXFLAGS="-g" |
| 3054 | cat >conftest.$ac_ext <<_ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3055 | /* confdefs.h. */ |
| 3056 | _ACEOF |
| 3057 | cat confdefs.h >>conftest.$ac_ext |
| 3058 | cat >>conftest.$ac_ext <<_ACEOF |
| 3059 | /* end confdefs.h. */ |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3060 | |
| 3061 | int |
| 3062 | main () |
| 3063 | { |
| 3064 | |
| 3065 | ; |
| 3066 | return 0; |
| 3067 | } |
| 3068 | _ACEOF |
| 3069 | rm -f conftest.$ac_objext |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 3070 | if { (ac_try="$ac_compile" |
| 3071 | case "(($ac_try" in |
| 3072 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3073 | *) ac_try_echo=$ac_try;; |
| 3074 | esac |
| 3075 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3076 | (eval "$ac_compile") 2>conftest.er1 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3077 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3078 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3079 | rm -f conftest.er1 |
| 3080 | cat conftest.err >&5 |
| 3081 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 3082 | (exit $ac_status); } && { |
| 3083 | test -z "$ac_cxx_werror_flag" || |
| 3084 | test ! -s conftest.err |
| 3085 | } && test -s conftest.$ac_objext; then |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3086 | ac_cv_prog_cxx_g=yes |
| 3087 | else |
| 3088 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3089 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3090 | |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 3091 | CXXFLAGS="" |
| 3092 | cat >conftest.$ac_ext <<_ACEOF |
| 3093 | /* confdefs.h. */ |
| 3094 | _ACEOF |
| 3095 | cat confdefs.h >>conftest.$ac_ext |
| 3096 | cat >>conftest.$ac_ext <<_ACEOF |
| 3097 | /* end confdefs.h. */ |
| 3098 | |
| 3099 | int |
| 3100 | main () |
| 3101 | { |
| 3102 | |
| 3103 | ; |
| 3104 | return 0; |
| 3105 | } |
| 3106 | _ACEOF |
| 3107 | rm -f conftest.$ac_objext |
| 3108 | if { (ac_try="$ac_compile" |
| 3109 | case "(($ac_try" in |
| 3110 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3111 | *) ac_try_echo=$ac_try;; |
| 3112 | esac |
| 3113 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3114 | (eval "$ac_compile") 2>conftest.er1 |
| 3115 | ac_status=$? |
| 3116 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3117 | rm -f conftest.er1 |
| 3118 | cat conftest.err >&5 |
| 3119 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3120 | (exit $ac_status); } && { |
| 3121 | test -z "$ac_cxx_werror_flag" || |
| 3122 | test ! -s conftest.err |
| 3123 | } && test -s conftest.$ac_objext; then |
| 3124 | : |
| 3125 | else |
| 3126 | echo "$as_me: failed program was:" >&5 |
| 3127 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3128 | |
| 3129 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
| 3130 | CXXFLAGS="-g" |
| 3131 | cat >conftest.$ac_ext <<_ACEOF |
| 3132 | /* confdefs.h. */ |
| 3133 | _ACEOF |
| 3134 | cat confdefs.h >>conftest.$ac_ext |
| 3135 | cat >>conftest.$ac_ext <<_ACEOF |
| 3136 | /* end confdefs.h. */ |
| 3137 | |
| 3138 | int |
| 3139 | main () |
| 3140 | { |
| 3141 | |
| 3142 | ; |
| 3143 | return 0; |
| 3144 | } |
| 3145 | _ACEOF |
| 3146 | rm -f conftest.$ac_objext |
| 3147 | if { (ac_try="$ac_compile" |
| 3148 | case "(($ac_try" in |
| 3149 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3150 | *) ac_try_echo=$ac_try;; |
| 3151 | esac |
| 3152 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3153 | (eval "$ac_compile") 2>conftest.er1 |
| 3154 | ac_status=$? |
| 3155 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3156 | rm -f conftest.er1 |
| 3157 | cat conftest.err >&5 |
| 3158 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3159 | (exit $ac_status); } && { |
| 3160 | test -z "$ac_cxx_werror_flag" || |
| 3161 | test ! -s conftest.err |
| 3162 | } && test -s conftest.$ac_objext; then |
| 3163 | ac_cv_prog_cxx_g=yes |
| 3164 | else |
| 3165 | echo "$as_me: failed program was:" >&5 |
| 3166 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3167 | |
| 3168 | |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3169 | fi |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 3170 | |
| 3171 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3172 | fi |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 3173 | |
| 3174 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3175 | fi |
| 3176 | |
| 3177 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3178 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
| 3179 | fi |
| 3180 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 |
| 3181 | echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; } |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3182 | if test "$ac_test_CXXFLAGS" = set; then |
| 3183 | CXXFLAGS=$ac_save_CXXFLAGS |
| 3184 | elif test $ac_cv_prog_cxx_g = yes; then |
| 3185 | if test "$GXX" = yes; then |
| 3186 | CXXFLAGS="-g -O2" |
| 3187 | else |
| 3188 | CXXFLAGS="-g" |
| 3189 | fi |
| 3190 | else |
| 3191 | if test "$GXX" = yes; then |
| 3192 | CXXFLAGS="-O2" |
| 3193 | else |
| 3194 | CXXFLAGS= |
| 3195 | fi |
| 3196 | fi |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 3197 | ac_ext=c |
| 3198 | ac_cpp='$CPP $CPPFLAGS' |
| 3199 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3200 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3201 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3202 | |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3203 | ac_ext=c |
| 3204 | ac_cpp='$CPP $CPPFLAGS' |
| 3205 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3206 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3207 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3208 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3209 | |
| 3210 | |
Benny Prijono | 53847a3 | 2007-09-24 16:10:13 +0000 | [diff] [blame] | 3211 | case $target in |
| 3212 | *mingw* | *cygw* | *win32* | *w32* ) |
| 3213 | ac_pjdir=`pwd -W` |
| 3214 | ;; |
| 3215 | *) |
| 3216 | ac_pjdir=`pwd` |
| 3217 | ;; |
| 3218 | esac |
Benny Prijono | 1248311 | 2007-03-12 10:44:38 +0000 | [diff] [blame] | 3219 | |
| 3220 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3221 | |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 3222 | { echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5 |
| 3223 | echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; } |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3224 | if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then |
| 3225 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3226 | else |
| 3227 | ac_check_lib_save_LIBS=$LIBS |
| 3228 | LIBS="-lpthread $LIBS" |
| 3229 | cat >conftest.$ac_ext <<_ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3230 | /* confdefs.h. */ |
| 3231 | _ACEOF |
| 3232 | cat confdefs.h >>conftest.$ac_ext |
| 3233 | cat >>conftest.$ac_ext <<_ACEOF |
| 3234 | /* end confdefs.h. */ |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3235 | |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 3236 | /* Override any GCC internal prototype to avoid an error. |
| 3237 | Use char because int might match the return type of a GCC |
| 3238 | builtin and then its argument prototype would still apply. */ |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3239 | #ifdef __cplusplus |
| 3240 | extern "C" |
| 3241 | #endif |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3242 | char pthread_create (); |
| 3243 | int |
| 3244 | main () |
| 3245 | { |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 3246 | return pthread_create (); |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3247 | ; |
| 3248 | return 0; |
| 3249 | } |
| 3250 | _ACEOF |
| 3251 | rm -f conftest.$ac_objext conftest$ac_exeext |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 3252 | if { (ac_try="$ac_link" |
| 3253 | case "(($ac_try" in |
| 3254 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3255 | *) ac_try_echo=$ac_try;; |
| 3256 | esac |
| 3257 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3258 | (eval "$ac_link") 2>conftest.er1 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3259 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3260 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3261 | rm -f conftest.er1 |
| 3262 | cat conftest.err >&5 |
| 3263 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 3264 | (exit $ac_status); } && { |
| 3265 | test -z "$ac_c_werror_flag" || |
| 3266 | test ! -s conftest.err |
| 3267 | } && test -s conftest$ac_exeext && |
| 3268 | $as_test_x conftest$ac_exeext; then |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3269 | ac_cv_lib_pthread_pthread_create=yes |
| 3270 | else |
| 3271 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3272 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3273 | |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 3274 | ac_cv_lib_pthread_pthread_create=no |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3275 | fi |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 3276 | |
| 3277 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3278 | conftest$ac_exeext conftest.$ac_ext |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3279 | LIBS=$ac_check_lib_save_LIBS |
| 3280 | fi |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 3281 | { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5 |
| 3282 | echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6; } |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3283 | if test $ac_cv_lib_pthread_pthread_create = yes; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3284 | cat >>confdefs.h <<_ACEOF |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3285 | #define HAVE_LIBPTHREAD 1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3286 | _ACEOF |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3287 | |
| 3288 | LIBS="-lpthread $LIBS" |
| 3289 | |
| 3290 | fi |
| 3291 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3292 | |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 3293 | { echo "$as_me:$LINENO: checking for puts in -lwsock32" >&5 |
| 3294 | echo $ECHO_N "checking for puts in -lwsock32... $ECHO_C" >&6; } |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3295 | if test "${ac_cv_lib_wsock32_puts+set}" = set; then |
| 3296 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3297 | else |
| 3298 | ac_check_lib_save_LIBS=$LIBS |
| 3299 | LIBS="-lwsock32 $LIBS" |
| 3300 | cat >conftest.$ac_ext <<_ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3301 | /* confdefs.h. */ |
| 3302 | _ACEOF |
| 3303 | cat confdefs.h >>conftest.$ac_ext |
| 3304 | cat >>conftest.$ac_ext <<_ACEOF |
| 3305 | /* end confdefs.h. */ |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3306 | |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 3307 | /* Override any GCC internal prototype to avoid an error. |
| 3308 | Use char because int might match the return type of a GCC |
| 3309 | builtin and then its argument prototype would still apply. */ |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3310 | #ifdef __cplusplus |
| 3311 | extern "C" |
| 3312 | #endif |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3313 | char puts (); |
| 3314 | int |
| 3315 | main () |
| 3316 | { |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 3317 | return puts (); |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3318 | ; |
| 3319 | return 0; |
| 3320 | } |
| 3321 | _ACEOF |
| 3322 | rm -f conftest.$ac_objext conftest$ac_exeext |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 3323 | if { (ac_try="$ac_link" |
| 3324 | case "(($ac_try" in |
| 3325 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3326 | *) ac_try_echo=$ac_try;; |
| 3327 | esac |
| 3328 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3329 | (eval "$ac_link") 2>conftest.er1 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3330 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3331 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3332 | rm -f conftest.er1 |
| 3333 | cat conftest.err >&5 |
| 3334 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 3335 | (exit $ac_status); } && { |
| 3336 | test -z "$ac_c_werror_flag" || |
| 3337 | test ! -s conftest.err |
| 3338 | } && test -s conftest$ac_exeext && |
| 3339 | $as_test_x conftest$ac_exeext; then |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3340 | ac_cv_lib_wsock32_puts=yes |
| 3341 | else |
| 3342 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3343 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3344 | |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 3345 | ac_cv_lib_wsock32_puts=no |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3346 | fi |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 3347 | |
| 3348 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3349 | conftest$ac_exeext conftest.$ac_ext |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3350 | LIBS=$ac_check_lib_save_LIBS |
| 3351 | fi |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 3352 | { echo "$as_me:$LINENO: result: $ac_cv_lib_wsock32_puts" >&5 |
| 3353 | echo "${ECHO_T}$ac_cv_lib_wsock32_puts" >&6; } |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3354 | if test $ac_cv_lib_wsock32_puts = yes; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3355 | cat >>confdefs.h <<_ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3356 | #define HAVE_LIBWSOCK32 1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3357 | _ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3358 | |
| 3359 | LIBS="-lwsock32 $LIBS" |
| 3360 | |
| 3361 | fi |
| 3362 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3363 | |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 3364 | { echo "$as_me:$LINENO: checking for puts in -lws2_32" >&5 |
| 3365 | echo $ECHO_N "checking for puts in -lws2_32... $ECHO_C" >&6; } |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3366 | if test "${ac_cv_lib_ws2_32_puts+set}" = set; then |
| 3367 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3368 | else |
| 3369 | ac_check_lib_save_LIBS=$LIBS |
| 3370 | LIBS="-lws2_32 $LIBS" |
| 3371 | cat >conftest.$ac_ext <<_ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3372 | /* confdefs.h. */ |
| 3373 | _ACEOF |
| 3374 | cat confdefs.h >>conftest.$ac_ext |
| 3375 | cat >>conftest.$ac_ext <<_ACEOF |
| 3376 | /* end confdefs.h. */ |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3377 | |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 3378 | /* Override any GCC internal prototype to avoid an error. |
| 3379 | Use char because int might match the return type of a GCC |
| 3380 | builtin and then its argument prototype would still apply. */ |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3381 | #ifdef __cplusplus |
| 3382 | extern "C" |
| 3383 | #endif |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3384 | char puts (); |
| 3385 | int |
| 3386 | main () |
| 3387 | { |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 3388 | return puts (); |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3389 | ; |
| 3390 | return 0; |
| 3391 | } |
| 3392 | _ACEOF |
| 3393 | rm -f conftest.$ac_objext conftest$ac_exeext |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 3394 | if { (ac_try="$ac_link" |
| 3395 | case "(($ac_try" in |
| 3396 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3397 | *) ac_try_echo=$ac_try;; |
| 3398 | esac |
| 3399 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3400 | (eval "$ac_link") 2>conftest.er1 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3401 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3402 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3403 | rm -f conftest.er1 |
| 3404 | cat conftest.err >&5 |
| 3405 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 3406 | (exit $ac_status); } && { |
| 3407 | test -z "$ac_c_werror_flag" || |
| 3408 | test ! -s conftest.err |
| 3409 | } && test -s conftest$ac_exeext && |
| 3410 | $as_test_x conftest$ac_exeext; then |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3411 | ac_cv_lib_ws2_32_puts=yes |
| 3412 | else |
| 3413 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3414 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3415 | |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 3416 | ac_cv_lib_ws2_32_puts=no |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3417 | fi |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 3418 | |
| 3419 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3420 | conftest$ac_exeext conftest.$ac_ext |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3421 | LIBS=$ac_check_lib_save_LIBS |
| 3422 | fi |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 3423 | { echo "$as_me:$LINENO: result: $ac_cv_lib_ws2_32_puts" >&5 |
| 3424 | echo "${ECHO_T}$ac_cv_lib_ws2_32_puts" >&6; } |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3425 | if test $ac_cv_lib_ws2_32_puts = yes; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3426 | cat >>confdefs.h <<_ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3427 | #define HAVE_LIBWS2_32 1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3428 | _ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3429 | |
| 3430 | LIBS="-lws2_32 $LIBS" |
| 3431 | |
| 3432 | fi |
| 3433 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3434 | |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 3435 | { echo "$as_me:$LINENO: checking for puts in -lole32" >&5 |
| 3436 | echo $ECHO_N "checking for puts in -lole32... $ECHO_C" >&6; } |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3437 | if test "${ac_cv_lib_ole32_puts+set}" = set; then |
| 3438 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3439 | else |
| 3440 | ac_check_lib_save_LIBS=$LIBS |
| 3441 | LIBS="-lole32 $LIBS" |
| 3442 | cat >conftest.$ac_ext <<_ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3443 | /* confdefs.h. */ |
| 3444 | _ACEOF |
| 3445 | cat confdefs.h >>conftest.$ac_ext |
| 3446 | cat >>conftest.$ac_ext <<_ACEOF |
| 3447 | /* end confdefs.h. */ |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3448 | |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 3449 | /* Override any GCC internal prototype to avoid an error. |
| 3450 | Use char because int might match the return type of a GCC |
| 3451 | builtin and then its argument prototype would still apply. */ |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3452 | #ifdef __cplusplus |
| 3453 | extern "C" |
| 3454 | #endif |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3455 | char puts (); |
| 3456 | int |
| 3457 | main () |
| 3458 | { |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 3459 | return puts (); |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3460 | ; |
| 3461 | return 0; |
| 3462 | } |
| 3463 | _ACEOF |
| 3464 | rm -f conftest.$ac_objext conftest$ac_exeext |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 3465 | if { (ac_try="$ac_link" |
| 3466 | case "(($ac_try" in |
| 3467 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3468 | *) ac_try_echo=$ac_try;; |
| 3469 | esac |
| 3470 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3471 | (eval "$ac_link") 2>conftest.er1 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3472 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3473 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3474 | rm -f conftest.er1 |
| 3475 | cat conftest.err >&5 |
| 3476 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 3477 | (exit $ac_status); } && { |
| 3478 | test -z "$ac_c_werror_flag" || |
| 3479 | test ! -s conftest.err |
| 3480 | } && test -s conftest$ac_exeext && |
| 3481 | $as_test_x conftest$ac_exeext; then |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3482 | ac_cv_lib_ole32_puts=yes |
| 3483 | else |
| 3484 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3485 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3486 | |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 3487 | ac_cv_lib_ole32_puts=no |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3488 | fi |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 3489 | |
| 3490 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3491 | conftest$ac_exeext conftest.$ac_ext |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3492 | LIBS=$ac_check_lib_save_LIBS |
| 3493 | fi |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 3494 | { echo "$as_me:$LINENO: result: $ac_cv_lib_ole32_puts" >&5 |
| 3495 | echo "${ECHO_T}$ac_cv_lib_ole32_puts" >&6; } |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3496 | if test $ac_cv_lib_ole32_puts = yes; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3497 | cat >>confdefs.h <<_ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3498 | #define HAVE_LIBOLE32 1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3499 | _ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3500 | |
| 3501 | LIBS="-lole32 $LIBS" |
| 3502 | |
| 3503 | fi |
| 3504 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3505 | |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 3506 | { echo "$as_me:$LINENO: checking for puts in -lwinmm" >&5 |
| 3507 | echo $ECHO_N "checking for puts in -lwinmm... $ECHO_C" >&6; } |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3508 | if test "${ac_cv_lib_winmm_puts+set}" = set; then |
| 3509 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3510 | else |
| 3511 | ac_check_lib_save_LIBS=$LIBS |
| 3512 | LIBS="-lwinmm $LIBS" |
| 3513 | cat >conftest.$ac_ext <<_ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3514 | /* confdefs.h. */ |
| 3515 | _ACEOF |
| 3516 | cat confdefs.h >>conftest.$ac_ext |
| 3517 | cat >>conftest.$ac_ext <<_ACEOF |
| 3518 | /* end confdefs.h. */ |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3519 | |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 3520 | /* Override any GCC internal prototype to avoid an error. |
| 3521 | Use char because int might match the return type of a GCC |
| 3522 | builtin and then its argument prototype would still apply. */ |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3523 | #ifdef __cplusplus |
| 3524 | extern "C" |
| 3525 | #endif |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3526 | char puts (); |
| 3527 | int |
| 3528 | main () |
| 3529 | { |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 3530 | return puts (); |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3531 | ; |
| 3532 | return 0; |
| 3533 | } |
| 3534 | _ACEOF |
| 3535 | rm -f conftest.$ac_objext conftest$ac_exeext |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 3536 | if { (ac_try="$ac_link" |
| 3537 | case "(($ac_try" in |
| 3538 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3539 | *) ac_try_echo=$ac_try;; |
| 3540 | esac |
| 3541 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3542 | (eval "$ac_link") 2>conftest.er1 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3543 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3544 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3545 | rm -f conftest.er1 |
| 3546 | cat conftest.err >&5 |
| 3547 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 3548 | (exit $ac_status); } && { |
| 3549 | test -z "$ac_c_werror_flag" || |
| 3550 | test ! -s conftest.err |
| 3551 | } && test -s conftest$ac_exeext && |
| 3552 | $as_test_x conftest$ac_exeext; then |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3553 | ac_cv_lib_winmm_puts=yes |
| 3554 | else |
| 3555 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3556 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3557 | |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 3558 | ac_cv_lib_winmm_puts=no |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3559 | fi |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 3560 | |
| 3561 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3562 | conftest$ac_exeext conftest.$ac_ext |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3563 | LIBS=$ac_check_lib_save_LIBS |
| 3564 | fi |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 3565 | { echo "$as_me:$LINENO: result: $ac_cv_lib_winmm_puts" >&5 |
| 3566 | echo "${ECHO_T}$ac_cv_lib_winmm_puts" >&6; } |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3567 | if test $ac_cv_lib_winmm_puts = yes; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3568 | cat >>confdefs.h <<_ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3569 | #define HAVE_LIBWINMM 1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3570 | _ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3571 | |
| 3572 | LIBS="-lwinmm $LIBS" |
| 3573 | |
| 3574 | fi |
| 3575 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3576 | |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 3577 | { echo "$as_me:$LINENO: checking for puts in -lsocket" >&5 |
| 3578 | echo $ECHO_N "checking for puts in -lsocket... $ECHO_C" >&6; } |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3579 | if test "${ac_cv_lib_socket_puts+set}" = set; then |
| 3580 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3581 | else |
| 3582 | ac_check_lib_save_LIBS=$LIBS |
| 3583 | LIBS="-lsocket $LIBS" |
| 3584 | cat >conftest.$ac_ext <<_ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3585 | /* confdefs.h. */ |
| 3586 | _ACEOF |
| 3587 | cat confdefs.h >>conftest.$ac_ext |
| 3588 | cat >>conftest.$ac_ext <<_ACEOF |
| 3589 | /* end confdefs.h. */ |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3590 | |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 3591 | /* Override any GCC internal prototype to avoid an error. |
| 3592 | Use char because int might match the return type of a GCC |
| 3593 | builtin and then its argument prototype would still apply. */ |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3594 | #ifdef __cplusplus |
| 3595 | extern "C" |
| 3596 | #endif |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3597 | char puts (); |
| 3598 | int |
| 3599 | main () |
| 3600 | { |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 3601 | return puts (); |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3602 | ; |
| 3603 | return 0; |
| 3604 | } |
| 3605 | _ACEOF |
| 3606 | rm -f conftest.$ac_objext conftest$ac_exeext |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 3607 | if { (ac_try="$ac_link" |
| 3608 | case "(($ac_try" in |
| 3609 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3610 | *) ac_try_echo=$ac_try;; |
| 3611 | esac |
| 3612 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3613 | (eval "$ac_link") 2>conftest.er1 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3614 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3615 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3616 | rm -f conftest.er1 |
| 3617 | cat conftest.err >&5 |
| 3618 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 3619 | (exit $ac_status); } && { |
| 3620 | test -z "$ac_c_werror_flag" || |
| 3621 | test ! -s conftest.err |
| 3622 | } && test -s conftest$ac_exeext && |
| 3623 | $as_test_x conftest$ac_exeext; then |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3624 | ac_cv_lib_socket_puts=yes |
| 3625 | else |
| 3626 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3627 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3628 | |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 3629 | ac_cv_lib_socket_puts=no |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3630 | fi |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 3631 | |
| 3632 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3633 | conftest$ac_exeext conftest.$ac_ext |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3634 | LIBS=$ac_check_lib_save_LIBS |
| 3635 | fi |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 3636 | { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_puts" >&5 |
| 3637 | echo "${ECHO_T}$ac_cv_lib_socket_puts" >&6; } |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3638 | if test $ac_cv_lib_socket_puts = yes; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3639 | cat >>confdefs.h <<_ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3640 | #define HAVE_LIBSOCKET 1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3641 | _ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3642 | |
| 3643 | LIBS="-lsocket $LIBS" |
| 3644 | |
| 3645 | fi |
| 3646 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3647 | |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 3648 | { echo "$as_me:$LINENO: checking for puts in -lrt" >&5 |
| 3649 | echo $ECHO_N "checking for puts in -lrt... $ECHO_C" >&6; } |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3650 | if test "${ac_cv_lib_rt_puts+set}" = set; then |
| 3651 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3652 | else |
| 3653 | ac_check_lib_save_LIBS=$LIBS |
| 3654 | LIBS="-lrt $LIBS" |
| 3655 | cat >conftest.$ac_ext <<_ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3656 | /* confdefs.h. */ |
| 3657 | _ACEOF |
| 3658 | cat confdefs.h >>conftest.$ac_ext |
| 3659 | cat >>conftest.$ac_ext <<_ACEOF |
| 3660 | /* end confdefs.h. */ |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3661 | |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 3662 | /* Override any GCC internal prototype to avoid an error. |
| 3663 | Use char because int might match the return type of a GCC |
| 3664 | builtin and then its argument prototype would still apply. */ |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3665 | #ifdef __cplusplus |
| 3666 | extern "C" |
| 3667 | #endif |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3668 | char puts (); |
| 3669 | int |
| 3670 | main () |
| 3671 | { |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 3672 | return puts (); |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3673 | ; |
| 3674 | return 0; |
| 3675 | } |
| 3676 | _ACEOF |
| 3677 | rm -f conftest.$ac_objext conftest$ac_exeext |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 3678 | if { (ac_try="$ac_link" |
| 3679 | case "(($ac_try" in |
| 3680 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3681 | *) ac_try_echo=$ac_try;; |
| 3682 | esac |
| 3683 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3684 | (eval "$ac_link") 2>conftest.er1 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3685 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3686 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3687 | rm -f conftest.er1 |
| 3688 | cat conftest.err >&5 |
| 3689 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 3690 | (exit $ac_status); } && { |
| 3691 | test -z "$ac_c_werror_flag" || |
| 3692 | test ! -s conftest.err |
| 3693 | } && test -s conftest$ac_exeext && |
| 3694 | $as_test_x conftest$ac_exeext; then |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3695 | ac_cv_lib_rt_puts=yes |
| 3696 | else |
| 3697 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3698 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3699 | |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 3700 | ac_cv_lib_rt_puts=no |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3701 | fi |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 3702 | |
| 3703 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3704 | conftest$ac_exeext conftest.$ac_ext |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3705 | LIBS=$ac_check_lib_save_LIBS |
| 3706 | fi |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 3707 | { echo "$as_me:$LINENO: result: $ac_cv_lib_rt_puts" >&5 |
| 3708 | echo "${ECHO_T}$ac_cv_lib_rt_puts" >&6; } |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3709 | if test $ac_cv_lib_rt_puts = yes; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3710 | cat >>confdefs.h <<_ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3711 | #define HAVE_LIBRT 1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3712 | _ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3713 | |
| 3714 | LIBS="-lrt $LIBS" |
| 3715 | |
| 3716 | fi |
| 3717 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3718 | |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 3719 | { echo "$as_me:$LINENO: checking for puts in -lnsl" >&5 |
| 3720 | echo $ECHO_N "checking for puts in -lnsl... $ECHO_C" >&6; } |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3721 | if test "${ac_cv_lib_nsl_puts+set}" = set; then |
| 3722 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3723 | else |
| 3724 | ac_check_lib_save_LIBS=$LIBS |
| 3725 | LIBS="-lnsl $LIBS" |
| 3726 | cat >conftest.$ac_ext <<_ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3727 | /* confdefs.h. */ |
| 3728 | _ACEOF |
| 3729 | cat confdefs.h >>conftest.$ac_ext |
| 3730 | cat >>conftest.$ac_ext <<_ACEOF |
| 3731 | /* end confdefs.h. */ |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3732 | |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 3733 | /* Override any GCC internal prototype to avoid an error. |
| 3734 | Use char because int might match the return type of a GCC |
| 3735 | builtin and then its argument prototype would still apply. */ |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3736 | #ifdef __cplusplus |
| 3737 | extern "C" |
| 3738 | #endif |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3739 | char puts (); |
| 3740 | int |
| 3741 | main () |
| 3742 | { |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 3743 | return puts (); |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3744 | ; |
| 3745 | return 0; |
| 3746 | } |
| 3747 | _ACEOF |
| 3748 | rm -f conftest.$ac_objext conftest$ac_exeext |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 3749 | if { (ac_try="$ac_link" |
| 3750 | case "(($ac_try" in |
| 3751 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3752 | *) ac_try_echo=$ac_try;; |
| 3753 | esac |
| 3754 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3755 | (eval "$ac_link") 2>conftest.er1 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3756 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3757 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3758 | rm -f conftest.er1 |
| 3759 | cat conftest.err >&5 |
| 3760 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 3761 | (exit $ac_status); } && { |
| 3762 | test -z "$ac_c_werror_flag" || |
| 3763 | test ! -s conftest.err |
| 3764 | } && test -s conftest$ac_exeext && |
| 3765 | $as_test_x conftest$ac_exeext; then |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3766 | ac_cv_lib_nsl_puts=yes |
| 3767 | else |
| 3768 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3769 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3770 | |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 3771 | ac_cv_lib_nsl_puts=no |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3772 | fi |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 3773 | |
| 3774 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3775 | conftest$ac_exeext conftest.$ac_ext |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3776 | LIBS=$ac_check_lib_save_LIBS |
| 3777 | fi |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 3778 | { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_puts" >&5 |
| 3779 | echo "${ECHO_T}$ac_cv_lib_nsl_puts" >&6; } |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3780 | if test $ac_cv_lib_nsl_puts = yes; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3781 | cat >>confdefs.h <<_ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3782 | #define HAVE_LIBNSL 1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3783 | _ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3784 | |
| 3785 | LIBS="-lnsl $LIBS" |
| 3786 | |
| 3787 | fi |
| 3788 | |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3789 | |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 3790 | { echo "$as_me:$LINENO: checking for uuid_generate in -luuid" >&5 |
| 3791 | echo $ECHO_N "checking for uuid_generate in -luuid... $ECHO_C" >&6; } |
Benny Prijono | 4e48b51 | 2007-05-16 13:41:00 +0000 | [diff] [blame] | 3792 | if test "${ac_cv_lib_uuid_uuid_generate+set}" = set; then |
| 3793 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3794 | else |
| 3795 | ac_check_lib_save_LIBS=$LIBS |
| 3796 | LIBS="-luuid $LIBS" |
| 3797 | cat >conftest.$ac_ext <<_ACEOF |
| 3798 | /* confdefs.h. */ |
| 3799 | _ACEOF |
| 3800 | cat confdefs.h >>conftest.$ac_ext |
| 3801 | cat >>conftest.$ac_ext <<_ACEOF |
| 3802 | /* end confdefs.h. */ |
| 3803 | |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 3804 | /* Override any GCC internal prototype to avoid an error. |
| 3805 | Use char because int might match the return type of a GCC |
| 3806 | builtin and then its argument prototype would still apply. */ |
Benny Prijono | 4e48b51 | 2007-05-16 13:41:00 +0000 | [diff] [blame] | 3807 | #ifdef __cplusplus |
| 3808 | extern "C" |
| 3809 | #endif |
Benny Prijono | 4e48b51 | 2007-05-16 13:41:00 +0000 | [diff] [blame] | 3810 | char uuid_generate (); |
| 3811 | int |
| 3812 | main () |
| 3813 | { |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 3814 | return uuid_generate (); |
Benny Prijono | 4e48b51 | 2007-05-16 13:41:00 +0000 | [diff] [blame] | 3815 | ; |
| 3816 | return 0; |
| 3817 | } |
| 3818 | _ACEOF |
| 3819 | rm -f conftest.$ac_objext conftest$ac_exeext |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 3820 | if { (ac_try="$ac_link" |
| 3821 | case "(($ac_try" in |
| 3822 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3823 | *) ac_try_echo=$ac_try;; |
| 3824 | esac |
| 3825 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3826 | (eval "$ac_link") 2>conftest.er1 |
Benny Prijono | 4e48b51 | 2007-05-16 13:41:00 +0000 | [diff] [blame] | 3827 | ac_status=$? |
| 3828 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3829 | rm -f conftest.er1 |
| 3830 | cat conftest.err >&5 |
| 3831 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 3832 | (exit $ac_status); } && { |
| 3833 | test -z "$ac_c_werror_flag" || |
| 3834 | test ! -s conftest.err |
| 3835 | } && test -s conftest$ac_exeext && |
| 3836 | $as_test_x conftest$ac_exeext; then |
Benny Prijono | 4e48b51 | 2007-05-16 13:41:00 +0000 | [diff] [blame] | 3837 | ac_cv_lib_uuid_uuid_generate=yes |
| 3838 | else |
| 3839 | echo "$as_me: failed program was:" >&5 |
| 3840 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3841 | |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 3842 | ac_cv_lib_uuid_uuid_generate=no |
Benny Prijono | 4e48b51 | 2007-05-16 13:41:00 +0000 | [diff] [blame] | 3843 | fi |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 3844 | |
| 3845 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Benny Prijono | 4e48b51 | 2007-05-16 13:41:00 +0000 | [diff] [blame] | 3846 | conftest$ac_exeext conftest.$ac_ext |
| 3847 | LIBS=$ac_check_lib_save_LIBS |
| 3848 | fi |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 3849 | { echo "$as_me:$LINENO: result: $ac_cv_lib_uuid_uuid_generate" >&5 |
| 3850 | echo "${ECHO_T}$ac_cv_lib_uuid_uuid_generate" >&6; } |
Benny Prijono | 4e48b51 | 2007-05-16 13:41:00 +0000 | [diff] [blame] | 3851 | if test $ac_cv_lib_uuid_uuid_generate = yes; then |
| 3852 | cat >>confdefs.h <<_ACEOF |
| 3853 | #define HAVE_LIBUUID 1 |
| 3854 | _ACEOF |
| 3855 | |
| 3856 | LIBS="-luuid $LIBS" |
| 3857 | |
| 3858 | fi |
| 3859 | |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 3860 | { echo "$as_me:$LINENO: checking for uuid_generate in -luuid" >&5 |
| 3861 | echo $ECHO_N "checking for uuid_generate in -luuid... $ECHO_C" >&6; } |
Benny Prijono | 4e48b51 | 2007-05-16 13:41:00 +0000 | [diff] [blame] | 3862 | if test "${ac_cv_lib_uuid_uuid_generate+set}" = set; then |
| 3863 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3864 | else |
| 3865 | ac_check_lib_save_LIBS=$LIBS |
| 3866 | LIBS="-luuid $LIBS" |
| 3867 | cat >conftest.$ac_ext <<_ACEOF |
| 3868 | /* confdefs.h. */ |
| 3869 | _ACEOF |
| 3870 | cat confdefs.h >>conftest.$ac_ext |
| 3871 | cat >>conftest.$ac_ext <<_ACEOF |
| 3872 | /* end confdefs.h. */ |
| 3873 | |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 3874 | /* Override any GCC internal prototype to avoid an error. |
| 3875 | Use char because int might match the return type of a GCC |
| 3876 | builtin and then its argument prototype would still apply. */ |
Benny Prijono | 4e48b51 | 2007-05-16 13:41:00 +0000 | [diff] [blame] | 3877 | #ifdef __cplusplus |
| 3878 | extern "C" |
| 3879 | #endif |
Benny Prijono | 4e48b51 | 2007-05-16 13:41:00 +0000 | [diff] [blame] | 3880 | char uuid_generate (); |
| 3881 | int |
| 3882 | main () |
| 3883 | { |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 3884 | return uuid_generate (); |
Benny Prijono | 4e48b51 | 2007-05-16 13:41:00 +0000 | [diff] [blame] | 3885 | ; |
| 3886 | return 0; |
| 3887 | } |
| 3888 | _ACEOF |
| 3889 | rm -f conftest.$ac_objext conftest$ac_exeext |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 3890 | if { (ac_try="$ac_link" |
| 3891 | case "(($ac_try" in |
| 3892 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3893 | *) ac_try_echo=$ac_try;; |
| 3894 | esac |
| 3895 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3896 | (eval "$ac_link") 2>conftest.er1 |
Benny Prijono | 4e48b51 | 2007-05-16 13:41:00 +0000 | [diff] [blame] | 3897 | ac_status=$? |
| 3898 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3899 | rm -f conftest.er1 |
| 3900 | cat conftest.err >&5 |
| 3901 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 3902 | (exit $ac_status); } && { |
| 3903 | test -z "$ac_c_werror_flag" || |
| 3904 | test ! -s conftest.err |
| 3905 | } && test -s conftest$ac_exeext && |
| 3906 | $as_test_x conftest$ac_exeext; then |
Benny Prijono | 4e48b51 | 2007-05-16 13:41:00 +0000 | [diff] [blame] | 3907 | ac_cv_lib_uuid_uuid_generate=yes |
| 3908 | else |
| 3909 | echo "$as_me: failed program was:" >&5 |
| 3910 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3911 | |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 3912 | ac_cv_lib_uuid_uuid_generate=no |
Benny Prijono | 4e48b51 | 2007-05-16 13:41:00 +0000 | [diff] [blame] | 3913 | fi |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 3914 | |
| 3915 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Benny Prijono | 4e48b51 | 2007-05-16 13:41:00 +0000 | [diff] [blame] | 3916 | conftest$ac_exeext conftest.$ac_ext |
| 3917 | LIBS=$ac_check_lib_save_LIBS |
| 3918 | fi |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 3919 | { echo "$as_me:$LINENO: result: $ac_cv_lib_uuid_uuid_generate" >&5 |
| 3920 | echo "${ECHO_T}$ac_cv_lib_uuid_uuid_generate" >&6; } |
Benny Prijono | 4e48b51 | 2007-05-16 13:41:00 +0000 | [diff] [blame] | 3921 | if test $ac_cv_lib_uuid_uuid_generate = yes; then |
| 3922 | ac_has_uuid_lib=1 |
| 3923 | fi |
| 3924 | |
| 3925 | |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 3926 | { echo "$as_me:$LINENO: result: Setting PJ_M_NAME to $target_cpu" >&5 |
| 3927 | echo "${ECHO_T}Setting PJ_M_NAME to $target_cpu" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3928 | cat >>confdefs.h <<_ACEOF |
| 3929 | #define PJ_M_NAME "$target_cpu" |
| 3930 | _ACEOF |
| 3931 | |
| 3932 | |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 3933 | { echo "$as_me:$LINENO: checking memory alignment" >&5 |
| 3934 | echo $ECHO_N "checking memory alignment... $ECHO_C" >&6; } |
Benny Prijono | 1d97162 | 2006-09-10 22:27:40 +0000 | [diff] [blame] | 3935 | case $target in |
| 3936 | ia64-* | x86_64-* ) |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3937 | cat >>confdefs.h <<\_ACEOF |
Benny Prijono | 1d97162 | 2006-09-10 22:27:40 +0000 | [diff] [blame] | 3938 | #define PJ_POOL_ALIGNMENT 8 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3939 | _ACEOF |
Benny Prijono | 1d97162 | 2006-09-10 22:27:40 +0000 | [diff] [blame] | 3940 | |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 3941 | { echo "$as_me:$LINENO: result: 8 bytes" >&5 |
| 3942 | echo "${ECHO_T}8 bytes" >&6; } |
Benny Prijono | 1d97162 | 2006-09-10 22:27:40 +0000 | [diff] [blame] | 3943 | ;; |
| 3944 | * ) |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3945 | cat >>confdefs.h <<\_ACEOF |
Benny Prijono | 1d97162 | 2006-09-10 22:27:40 +0000 | [diff] [blame] | 3946 | #define PJ_POOL_ALIGNMENT 4 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3947 | _ACEOF |
Benny Prijono | 1d97162 | 2006-09-10 22:27:40 +0000 | [diff] [blame] | 3948 | |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 3949 | { echo "$as_me:$LINENO: result: 4 bytes (default)" >&5 |
| 3950 | echo "${ECHO_T}4 bytes (default)" >&6; } |
Benny Prijono | 1d97162 | 2006-09-10 22:27:40 +0000 | [diff] [blame] | 3951 | ;; |
| 3952 | esac |
| 3953 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3954 | |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 3955 | ac_ext=c |
| 3956 | ac_cpp='$CPP $CPPFLAGS' |
| 3957 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3958 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3959 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3960 | { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
| 3961 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; } |
| 3962 | # On Suns, sometimes $CPP names a directory. |
| 3963 | if test -n "$CPP" && test -d "$CPP"; then |
| 3964 | CPP= |
| 3965 | fi |
| 3966 | if test -z "$CPP"; then |
| 3967 | if test "${ac_cv_prog_CPP+set}" = set; then |
| 3968 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3969 | else |
| 3970 | # Double quotes because CPP needs to be expanded |
| 3971 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
| 3972 | do |
| 3973 | ac_preproc_ok=false |
| 3974 | for ac_c_preproc_warn_flag in '' yes |
| 3975 | do |
| 3976 | # Use a header file that comes with gcc, so configuring glibc |
| 3977 | # with a fresh cross-compiler works. |
| 3978 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 3979 | # <limits.h> exists even on freestanding compilers. |
| 3980 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 3981 | # not just through cpp. "Syntax error" is here to catch this case. |
| 3982 | cat >conftest.$ac_ext <<_ACEOF |
| 3983 | /* confdefs.h. */ |
| 3984 | _ACEOF |
| 3985 | cat confdefs.h >>conftest.$ac_ext |
| 3986 | cat >>conftest.$ac_ext <<_ACEOF |
| 3987 | /* end confdefs.h. */ |
| 3988 | #ifdef __STDC__ |
| 3989 | # include <limits.h> |
| 3990 | #else |
| 3991 | # include <assert.h> |
| 3992 | #endif |
| 3993 | Syntax error |
| 3994 | _ACEOF |
| 3995 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 3996 | case "(($ac_try" in |
| 3997 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3998 | *) ac_try_echo=$ac_try;; |
| 3999 | esac |
| 4000 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4001 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 4002 | ac_status=$? |
| 4003 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4004 | rm -f conftest.er1 |
| 4005 | cat conftest.err >&5 |
| 4006 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4007 | (exit $ac_status); } >/dev/null && { |
| 4008 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 4009 | test ! -s conftest.err |
| 4010 | }; then |
| 4011 | : |
| 4012 | else |
| 4013 | echo "$as_me: failed program was:" >&5 |
| 4014 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4015 | |
| 4016 | # Broken: fails on valid input. |
| 4017 | continue |
| 4018 | fi |
| 4019 | |
| 4020 | rm -f conftest.err conftest.$ac_ext |
| 4021 | |
| 4022 | # OK, works on sane cases. Now check whether nonexistent headers |
| 4023 | # can be detected and how. |
| 4024 | cat >conftest.$ac_ext <<_ACEOF |
| 4025 | /* confdefs.h. */ |
| 4026 | _ACEOF |
| 4027 | cat confdefs.h >>conftest.$ac_ext |
| 4028 | cat >>conftest.$ac_ext <<_ACEOF |
| 4029 | /* end confdefs.h. */ |
| 4030 | #include <ac_nonexistent.h> |
| 4031 | _ACEOF |
| 4032 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 4033 | case "(($ac_try" in |
| 4034 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4035 | *) ac_try_echo=$ac_try;; |
| 4036 | esac |
| 4037 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4038 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 4039 | ac_status=$? |
| 4040 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4041 | rm -f conftest.er1 |
| 4042 | cat conftest.err >&5 |
| 4043 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4044 | (exit $ac_status); } >/dev/null && { |
| 4045 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 4046 | test ! -s conftest.err |
| 4047 | }; then |
| 4048 | # Broken: success on invalid input. |
| 4049 | continue |
| 4050 | else |
| 4051 | echo "$as_me: failed program was:" >&5 |
| 4052 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4053 | |
| 4054 | # Passes both tests. |
| 4055 | ac_preproc_ok=: |
| 4056 | break |
| 4057 | fi |
| 4058 | |
| 4059 | rm -f conftest.err conftest.$ac_ext |
| 4060 | |
| 4061 | done |
| 4062 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 4063 | rm -f conftest.err conftest.$ac_ext |
| 4064 | if $ac_preproc_ok; then |
| 4065 | break |
| 4066 | fi |
| 4067 | |
| 4068 | done |
| 4069 | ac_cv_prog_CPP=$CPP |
| 4070 | |
| 4071 | fi |
| 4072 | CPP=$ac_cv_prog_CPP |
| 4073 | else |
| 4074 | ac_cv_prog_CPP=$CPP |
| 4075 | fi |
| 4076 | { echo "$as_me:$LINENO: result: $CPP" >&5 |
| 4077 | echo "${ECHO_T}$CPP" >&6; } |
| 4078 | ac_preproc_ok=false |
| 4079 | for ac_c_preproc_warn_flag in '' yes |
| 4080 | do |
| 4081 | # Use a header file that comes with gcc, so configuring glibc |
| 4082 | # with a fresh cross-compiler works. |
| 4083 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 4084 | # <limits.h> exists even on freestanding compilers. |
| 4085 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 4086 | # not just through cpp. "Syntax error" is here to catch this case. |
| 4087 | cat >conftest.$ac_ext <<_ACEOF |
| 4088 | /* confdefs.h. */ |
| 4089 | _ACEOF |
| 4090 | cat confdefs.h >>conftest.$ac_ext |
| 4091 | cat >>conftest.$ac_ext <<_ACEOF |
| 4092 | /* end confdefs.h. */ |
| 4093 | #ifdef __STDC__ |
| 4094 | # include <limits.h> |
| 4095 | #else |
| 4096 | # include <assert.h> |
| 4097 | #endif |
| 4098 | Syntax error |
| 4099 | _ACEOF |
| 4100 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 4101 | case "(($ac_try" in |
| 4102 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4103 | *) ac_try_echo=$ac_try;; |
| 4104 | esac |
| 4105 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4106 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 4107 | ac_status=$? |
| 4108 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4109 | rm -f conftest.er1 |
| 4110 | cat conftest.err >&5 |
| 4111 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4112 | (exit $ac_status); } >/dev/null && { |
| 4113 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 4114 | test ! -s conftest.err |
| 4115 | }; then |
| 4116 | : |
| 4117 | else |
| 4118 | echo "$as_me: failed program was:" >&5 |
| 4119 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4120 | |
| 4121 | # Broken: fails on valid input. |
| 4122 | continue |
| 4123 | fi |
| 4124 | |
| 4125 | rm -f conftest.err conftest.$ac_ext |
| 4126 | |
| 4127 | # OK, works on sane cases. Now check whether nonexistent headers |
| 4128 | # can be detected and how. |
| 4129 | cat >conftest.$ac_ext <<_ACEOF |
| 4130 | /* confdefs.h. */ |
| 4131 | _ACEOF |
| 4132 | cat confdefs.h >>conftest.$ac_ext |
| 4133 | cat >>conftest.$ac_ext <<_ACEOF |
| 4134 | /* end confdefs.h. */ |
| 4135 | #include <ac_nonexistent.h> |
| 4136 | _ACEOF |
| 4137 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 4138 | case "(($ac_try" in |
| 4139 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4140 | *) ac_try_echo=$ac_try;; |
| 4141 | esac |
| 4142 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4143 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 4144 | ac_status=$? |
| 4145 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4146 | rm -f conftest.er1 |
| 4147 | cat conftest.err >&5 |
| 4148 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4149 | (exit $ac_status); } >/dev/null && { |
| 4150 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 4151 | test ! -s conftest.err |
| 4152 | }; then |
| 4153 | # Broken: success on invalid input. |
| 4154 | continue |
| 4155 | else |
| 4156 | echo "$as_me: failed program was:" >&5 |
| 4157 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4158 | |
| 4159 | # Passes both tests. |
| 4160 | ac_preproc_ok=: |
| 4161 | break |
| 4162 | fi |
| 4163 | |
| 4164 | rm -f conftest.err conftest.$ac_ext |
| 4165 | |
| 4166 | done |
| 4167 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 4168 | rm -f conftest.err conftest.$ac_ext |
| 4169 | if $ac_preproc_ok; then |
| 4170 | : |
| 4171 | else |
| 4172 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check |
| 4173 | See \`config.log' for more details." >&5 |
| 4174 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check |
| 4175 | See \`config.log' for more details." >&2;} |
| 4176 | { (exit 1); exit 1; }; } |
| 4177 | fi |
| 4178 | |
| 4179 | ac_ext=c |
| 4180 | ac_cpp='$CPP $CPPFLAGS' |
| 4181 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 4182 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 4183 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 4184 | |
| 4185 | |
| 4186 | { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 |
| 4187 | echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; } |
| 4188 | if test "${ac_cv_path_GREP+set}" = set; then |
| 4189 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4190 | else |
| 4191 | # Extract the first word of "grep ggrep" to use in msg output |
| 4192 | if test -z "$GREP"; then |
| 4193 | set dummy grep ggrep; ac_prog_name=$2 |
| 4194 | if test "${ac_cv_path_GREP+set}" = set; then |
| 4195 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4196 | else |
| 4197 | ac_path_GREP_found=false |
| 4198 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 4199 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4200 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 4201 | do |
| 4202 | IFS=$as_save_IFS |
| 4203 | test -z "$as_dir" && as_dir=. |
| 4204 | for ac_prog in grep ggrep; do |
| 4205 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4206 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" |
| 4207 | { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue |
| 4208 | # Check for GNU ac_path_GREP and select it if it is found. |
| 4209 | # Check for GNU $ac_path_GREP |
| 4210 | case `"$ac_path_GREP" --version 2>&1` in |
| 4211 | *GNU*) |
| 4212 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; |
| 4213 | *) |
| 4214 | ac_count=0 |
| 4215 | echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" |
| 4216 | while : |
| 4217 | do |
| 4218 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 4219 | mv "conftest.tmp" "conftest.in" |
| 4220 | cp "conftest.in" "conftest.nl" |
| 4221 | echo 'GREP' >> "conftest.nl" |
| 4222 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 4223 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
| 4224 | ac_count=`expr $ac_count + 1` |
| 4225 | if test $ac_count -gt ${ac_path_GREP_max-0}; then |
| 4226 | # Best one so far, save it but keep looking for a better one |
| 4227 | ac_cv_path_GREP="$ac_path_GREP" |
| 4228 | ac_path_GREP_max=$ac_count |
| 4229 | fi |
| 4230 | # 10*(2^10) chars as input seems more than enough |
| 4231 | test $ac_count -gt 10 && break |
| 4232 | done |
| 4233 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 4234 | esac |
| 4235 | |
| 4236 | |
| 4237 | $ac_path_GREP_found && break 3 |
| 4238 | done |
| 4239 | done |
| 4240 | |
| 4241 | done |
| 4242 | IFS=$as_save_IFS |
| 4243 | |
| 4244 | |
| 4245 | fi |
| 4246 | |
| 4247 | GREP="$ac_cv_path_GREP" |
| 4248 | if test -z "$GREP"; then |
| 4249 | { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 |
| 4250 | echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} |
| 4251 | { (exit 1); exit 1; }; } |
| 4252 | fi |
| 4253 | |
| 4254 | else |
| 4255 | ac_cv_path_GREP=$GREP |
| 4256 | fi |
| 4257 | |
| 4258 | |
| 4259 | fi |
| 4260 | { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 |
| 4261 | echo "${ECHO_T}$ac_cv_path_GREP" >&6; } |
| 4262 | GREP="$ac_cv_path_GREP" |
| 4263 | |
| 4264 | |
| 4265 | { echo "$as_me:$LINENO: checking for egrep" >&5 |
| 4266 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6; } |
| 4267 | if test "${ac_cv_path_EGREP+set}" = set; then |
| 4268 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4269 | else |
| 4270 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
| 4271 | then ac_cv_path_EGREP="$GREP -E" |
| 4272 | else |
| 4273 | # Extract the first word of "egrep" to use in msg output |
| 4274 | if test -z "$EGREP"; then |
| 4275 | set dummy egrep; ac_prog_name=$2 |
| 4276 | if test "${ac_cv_path_EGREP+set}" = set; then |
| 4277 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4278 | else |
| 4279 | ac_path_EGREP_found=false |
| 4280 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 4281 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4282 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 4283 | do |
| 4284 | IFS=$as_save_IFS |
| 4285 | test -z "$as_dir" && as_dir=. |
| 4286 | for ac_prog in egrep; do |
| 4287 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4288 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" |
| 4289 | { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue |
| 4290 | # Check for GNU ac_path_EGREP and select it if it is found. |
| 4291 | # Check for GNU $ac_path_EGREP |
| 4292 | case `"$ac_path_EGREP" --version 2>&1` in |
| 4293 | *GNU*) |
| 4294 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; |
| 4295 | *) |
| 4296 | ac_count=0 |
| 4297 | echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" |
| 4298 | while : |
| 4299 | do |
| 4300 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 4301 | mv "conftest.tmp" "conftest.in" |
| 4302 | cp "conftest.in" "conftest.nl" |
| 4303 | echo 'EGREP' >> "conftest.nl" |
| 4304 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 4305 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
| 4306 | ac_count=`expr $ac_count + 1` |
| 4307 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then |
| 4308 | # Best one so far, save it but keep looking for a better one |
| 4309 | ac_cv_path_EGREP="$ac_path_EGREP" |
| 4310 | ac_path_EGREP_max=$ac_count |
| 4311 | fi |
| 4312 | # 10*(2^10) chars as input seems more than enough |
| 4313 | test $ac_count -gt 10 && break |
| 4314 | done |
| 4315 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 4316 | esac |
| 4317 | |
| 4318 | |
| 4319 | $ac_path_EGREP_found && break 3 |
| 4320 | done |
| 4321 | done |
| 4322 | |
| 4323 | done |
| 4324 | IFS=$as_save_IFS |
| 4325 | |
| 4326 | |
| 4327 | fi |
| 4328 | |
| 4329 | EGREP="$ac_cv_path_EGREP" |
| 4330 | if test -z "$EGREP"; then |
| 4331 | { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 |
| 4332 | echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} |
| 4333 | { (exit 1); exit 1; }; } |
| 4334 | fi |
| 4335 | |
| 4336 | else |
| 4337 | ac_cv_path_EGREP=$EGREP |
| 4338 | fi |
| 4339 | |
| 4340 | |
| 4341 | fi |
| 4342 | fi |
| 4343 | { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 |
| 4344 | echo "${ECHO_T}$ac_cv_path_EGREP" >&6; } |
| 4345 | EGREP="$ac_cv_path_EGREP" |
| 4346 | |
| 4347 | |
| 4348 | { echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
| 4349 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } |
| 4350 | if test "${ac_cv_header_stdc+set}" = set; then |
| 4351 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4352 | else |
| 4353 | cat >conftest.$ac_ext <<_ACEOF |
| 4354 | /* confdefs.h. */ |
| 4355 | _ACEOF |
| 4356 | cat confdefs.h >>conftest.$ac_ext |
| 4357 | cat >>conftest.$ac_ext <<_ACEOF |
| 4358 | /* end confdefs.h. */ |
| 4359 | #include <stdlib.h> |
| 4360 | #include <stdarg.h> |
| 4361 | #include <string.h> |
| 4362 | #include <float.h> |
| 4363 | |
| 4364 | int |
| 4365 | main () |
| 4366 | { |
| 4367 | |
| 4368 | ; |
| 4369 | return 0; |
| 4370 | } |
| 4371 | _ACEOF |
| 4372 | rm -f conftest.$ac_objext |
| 4373 | if { (ac_try="$ac_compile" |
| 4374 | case "(($ac_try" in |
| 4375 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4376 | *) ac_try_echo=$ac_try;; |
| 4377 | esac |
| 4378 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4379 | (eval "$ac_compile") 2>conftest.er1 |
| 4380 | ac_status=$? |
| 4381 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4382 | rm -f conftest.er1 |
| 4383 | cat conftest.err >&5 |
| 4384 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4385 | (exit $ac_status); } && { |
| 4386 | test -z "$ac_c_werror_flag" || |
| 4387 | test ! -s conftest.err |
| 4388 | } && test -s conftest.$ac_objext; then |
| 4389 | ac_cv_header_stdc=yes |
| 4390 | else |
| 4391 | echo "$as_me: failed program was:" >&5 |
| 4392 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4393 | |
| 4394 | ac_cv_header_stdc=no |
| 4395 | fi |
| 4396 | |
| 4397 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4398 | |
| 4399 | if test $ac_cv_header_stdc = yes; then |
| 4400 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
| 4401 | cat >conftest.$ac_ext <<_ACEOF |
| 4402 | /* confdefs.h. */ |
| 4403 | _ACEOF |
| 4404 | cat confdefs.h >>conftest.$ac_ext |
| 4405 | cat >>conftest.$ac_ext <<_ACEOF |
| 4406 | /* end confdefs.h. */ |
| 4407 | #include <string.h> |
| 4408 | |
| 4409 | _ACEOF |
| 4410 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 4411 | $EGREP "memchr" >/dev/null 2>&1; then |
| 4412 | : |
| 4413 | else |
| 4414 | ac_cv_header_stdc=no |
| 4415 | fi |
| 4416 | rm -f conftest* |
| 4417 | |
| 4418 | fi |
| 4419 | |
| 4420 | if test $ac_cv_header_stdc = yes; then |
| 4421 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
| 4422 | cat >conftest.$ac_ext <<_ACEOF |
| 4423 | /* confdefs.h. */ |
| 4424 | _ACEOF |
| 4425 | cat confdefs.h >>conftest.$ac_ext |
| 4426 | cat >>conftest.$ac_ext <<_ACEOF |
| 4427 | /* end confdefs.h. */ |
| 4428 | #include <stdlib.h> |
| 4429 | |
| 4430 | _ACEOF |
| 4431 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 4432 | $EGREP "free" >/dev/null 2>&1; then |
| 4433 | : |
| 4434 | else |
| 4435 | ac_cv_header_stdc=no |
| 4436 | fi |
| 4437 | rm -f conftest* |
| 4438 | |
| 4439 | fi |
| 4440 | |
| 4441 | if test $ac_cv_header_stdc = yes; then |
| 4442 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
| 4443 | if test "$cross_compiling" = yes; then |
| 4444 | : |
| 4445 | else |
| 4446 | cat >conftest.$ac_ext <<_ACEOF |
| 4447 | /* confdefs.h. */ |
| 4448 | _ACEOF |
| 4449 | cat confdefs.h >>conftest.$ac_ext |
| 4450 | cat >>conftest.$ac_ext <<_ACEOF |
| 4451 | /* end confdefs.h. */ |
| 4452 | #include <ctype.h> |
| 4453 | #include <stdlib.h> |
| 4454 | #if ((' ' & 0x0FF) == 0x020) |
| 4455 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 4456 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 4457 | #else |
| 4458 | # define ISLOWER(c) \ |
| 4459 | (('a' <= (c) && (c) <= 'i') \ |
| 4460 | || ('j' <= (c) && (c) <= 'r') \ |
| 4461 | || ('s' <= (c) && (c) <= 'z')) |
| 4462 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 4463 | #endif |
| 4464 | |
| 4465 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 4466 | int |
| 4467 | main () |
| 4468 | { |
| 4469 | int i; |
| 4470 | for (i = 0; i < 256; i++) |
| 4471 | if (XOR (islower (i), ISLOWER (i)) |
| 4472 | || toupper (i) != TOUPPER (i)) |
| 4473 | return 2; |
| 4474 | return 0; |
| 4475 | } |
| 4476 | _ACEOF |
| 4477 | rm -f conftest$ac_exeext |
| 4478 | if { (ac_try="$ac_link" |
| 4479 | case "(($ac_try" in |
| 4480 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4481 | *) ac_try_echo=$ac_try;; |
| 4482 | esac |
| 4483 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4484 | (eval "$ac_link") 2>&5 |
| 4485 | ac_status=$? |
| 4486 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4487 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 4488 | { (case "(($ac_try" in |
| 4489 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4490 | *) ac_try_echo=$ac_try;; |
| 4491 | esac |
| 4492 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4493 | (eval "$ac_try") 2>&5 |
| 4494 | ac_status=$? |
| 4495 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4496 | (exit $ac_status); }; }; then |
| 4497 | : |
| 4498 | else |
| 4499 | echo "$as_me: program exited with status $ac_status" >&5 |
| 4500 | echo "$as_me: failed program was:" >&5 |
| 4501 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4502 | |
| 4503 | ( exit $ac_status ) |
| 4504 | ac_cv_header_stdc=no |
| 4505 | fi |
| 4506 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 4507 | fi |
| 4508 | |
| 4509 | |
| 4510 | fi |
| 4511 | fi |
| 4512 | { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
| 4513 | echo "${ECHO_T}$ac_cv_header_stdc" >&6; } |
| 4514 | if test $ac_cv_header_stdc = yes; then |
| 4515 | |
| 4516 | cat >>confdefs.h <<\_ACEOF |
| 4517 | #define STDC_HEADERS 1 |
| 4518 | _ACEOF |
| 4519 | |
| 4520 | fi |
| 4521 | |
| 4522 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
| 4523 | |
| 4524 | |
| 4525 | |
| 4526 | |
| 4527 | |
| 4528 | |
| 4529 | |
| 4530 | |
| 4531 | |
| 4532 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
| 4533 | inttypes.h stdint.h unistd.h |
| 4534 | do |
| 4535 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 4536 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 4537 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 4538 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 4539 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4540 | else |
| 4541 | cat >conftest.$ac_ext <<_ACEOF |
| 4542 | /* confdefs.h. */ |
| 4543 | _ACEOF |
| 4544 | cat confdefs.h >>conftest.$ac_ext |
| 4545 | cat >>conftest.$ac_ext <<_ACEOF |
| 4546 | /* end confdefs.h. */ |
| 4547 | $ac_includes_default |
| 4548 | |
| 4549 | #include <$ac_header> |
| 4550 | _ACEOF |
| 4551 | rm -f conftest.$ac_objext |
| 4552 | if { (ac_try="$ac_compile" |
| 4553 | case "(($ac_try" in |
| 4554 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4555 | *) ac_try_echo=$ac_try;; |
| 4556 | esac |
| 4557 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4558 | (eval "$ac_compile") 2>conftest.er1 |
| 4559 | ac_status=$? |
| 4560 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4561 | rm -f conftest.er1 |
| 4562 | cat conftest.err >&5 |
| 4563 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4564 | (exit $ac_status); } && { |
| 4565 | test -z "$ac_c_werror_flag" || |
| 4566 | test ! -s conftest.err |
| 4567 | } && test -s conftest.$ac_objext; then |
| 4568 | eval "$as_ac_Header=yes" |
| 4569 | else |
| 4570 | echo "$as_me: failed program was:" >&5 |
| 4571 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4572 | |
| 4573 | eval "$as_ac_Header=no" |
| 4574 | fi |
| 4575 | |
| 4576 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4577 | fi |
| 4578 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 4579 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 4580 | echo "${ECHO_T}$ac_res" >&6; } |
| 4581 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 4582 | cat >>confdefs.h <<_ACEOF |
| 4583 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 4584 | _ACEOF |
| 4585 | |
| 4586 | fi |
| 4587 | |
| 4588 | done |
| 4589 | |
| 4590 | |
| 4591 | { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 |
| 4592 | echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; } |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 4593 | if test "${ac_cv_c_bigendian+set}" = set; then |
| 4594 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4595 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4596 | # See if sys/param.h defines the BYTE_ORDER macro. |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 4597 | cat >conftest.$ac_ext <<_ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4598 | /* confdefs.h. */ |
| 4599 | _ACEOF |
| 4600 | cat confdefs.h >>conftest.$ac_ext |
| 4601 | cat >>conftest.$ac_ext <<_ACEOF |
| 4602 | /* end confdefs.h. */ |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 4603 | #include <sys/types.h> |
| 4604 | #include <sys/param.h> |
| 4605 | |
| 4606 | int |
| 4607 | main () |
| 4608 | { |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 4609 | #if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \ |
| 4610 | && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN) |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 4611 | bogus endian macros |
| 4612 | #endif |
| 4613 | |
| 4614 | ; |
| 4615 | return 0; |
| 4616 | } |
| 4617 | _ACEOF |
| 4618 | rm -f conftest.$ac_objext |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 4619 | if { (ac_try="$ac_compile" |
| 4620 | case "(($ac_try" in |
| 4621 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4622 | *) ac_try_echo=$ac_try;; |
| 4623 | esac |
| 4624 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4625 | (eval "$ac_compile") 2>conftest.er1 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 4626 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4627 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4628 | rm -f conftest.er1 |
| 4629 | cat conftest.err >&5 |
| 4630 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 4631 | (exit $ac_status); } && { |
| 4632 | test -z "$ac_c_werror_flag" || |
| 4633 | test ! -s conftest.err |
| 4634 | } && test -s conftest.$ac_objext; then |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 4635 | # It does; now see whether it defined to BIG_ENDIAN or not. |
| 4636 | cat >conftest.$ac_ext <<_ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4637 | /* confdefs.h. */ |
| 4638 | _ACEOF |
| 4639 | cat confdefs.h >>conftest.$ac_ext |
| 4640 | cat >>conftest.$ac_ext <<_ACEOF |
| 4641 | /* end confdefs.h. */ |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 4642 | #include <sys/types.h> |
| 4643 | #include <sys/param.h> |
| 4644 | |
| 4645 | int |
| 4646 | main () |
| 4647 | { |
| 4648 | #if BYTE_ORDER != BIG_ENDIAN |
| 4649 | not big endian |
| 4650 | #endif |
| 4651 | |
| 4652 | ; |
| 4653 | return 0; |
| 4654 | } |
| 4655 | _ACEOF |
| 4656 | rm -f conftest.$ac_objext |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 4657 | if { (ac_try="$ac_compile" |
| 4658 | case "(($ac_try" in |
| 4659 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4660 | *) ac_try_echo=$ac_try;; |
| 4661 | esac |
| 4662 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4663 | (eval "$ac_compile") 2>conftest.er1 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 4664 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4665 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4666 | rm -f conftest.er1 |
| 4667 | cat conftest.err >&5 |
| 4668 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 4669 | (exit $ac_status); } && { |
| 4670 | test -z "$ac_c_werror_flag" || |
| 4671 | test ! -s conftest.err |
| 4672 | } && test -s conftest.$ac_objext; then |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 4673 | ac_cv_c_bigendian=yes |
| 4674 | else |
| 4675 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4676 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4677 | |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 4678 | ac_cv_c_bigendian=no |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 4679 | fi |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 4680 | |
| 4681 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 4682 | else |
| 4683 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4684 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4685 | |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 4686 | # It does not; compile a test program. |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 4687 | if test "$cross_compiling" = yes; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4688 | # try to guess the endianness by grepping values into an object file |
| 4689 | ac_cv_c_bigendian=unknown |
| 4690 | cat >conftest.$ac_ext <<_ACEOF |
| 4691 | /* confdefs.h. */ |
| 4692 | _ACEOF |
| 4693 | cat confdefs.h >>conftest.$ac_ext |
| 4694 | cat >>conftest.$ac_ext <<_ACEOF |
| 4695 | /* end confdefs.h. */ |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 4696 | short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; |
| 4697 | short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4698 | void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; } |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 4699 | short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; |
| 4700 | short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4701 | void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; } |
| 4702 | int |
| 4703 | main () |
| 4704 | { |
| 4705 | _ascii (); _ebcdic (); |
| 4706 | ; |
| 4707 | return 0; |
| 4708 | } |
| 4709 | _ACEOF |
| 4710 | rm -f conftest.$ac_objext |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 4711 | if { (ac_try="$ac_compile" |
| 4712 | case "(($ac_try" in |
| 4713 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4714 | *) ac_try_echo=$ac_try;; |
| 4715 | esac |
| 4716 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4717 | (eval "$ac_compile") 2>conftest.er1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4718 | ac_status=$? |
| 4719 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4720 | rm -f conftest.er1 |
| 4721 | cat conftest.err >&5 |
| 4722 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 4723 | (exit $ac_status); } && { |
| 4724 | test -z "$ac_c_werror_flag" || |
| 4725 | test ! -s conftest.err |
| 4726 | } && test -s conftest.$ac_objext; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4727 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then |
| 4728 | ac_cv_c_bigendian=yes |
| 4729 | fi |
| 4730 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then |
| 4731 | if test "$ac_cv_c_bigendian" = unknown; then |
| 4732 | ac_cv_c_bigendian=no |
| 4733 | else |
| 4734 | # finding both strings is unlikely to happen, but who knows? |
| 4735 | ac_cv_c_bigendian=unknown |
| 4736 | fi |
| 4737 | fi |
| 4738 | else |
| 4739 | echo "$as_me: failed program was:" >&5 |
| 4740 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4741 | |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 4742 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4743 | fi |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 4744 | |
| 4745 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 4746 | else |
| 4747 | cat >conftest.$ac_ext <<_ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4748 | /* confdefs.h. */ |
| 4749 | _ACEOF |
| 4750 | cat confdefs.h >>conftest.$ac_ext |
| 4751 | cat >>conftest.$ac_ext <<_ACEOF |
| 4752 | /* end confdefs.h. */ |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 4753 | $ac_includes_default |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 4754 | int |
| 4755 | main () |
| 4756 | { |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 4757 | |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 4758 | /* Are we little or big endian? From Harbison&Steele. */ |
| 4759 | union |
| 4760 | { |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 4761 | long int l; |
| 4762 | char c[sizeof (long int)]; |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 4763 | } u; |
| 4764 | u.l = 1; |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 4765 | return u.c[sizeof (long int) - 1] == 1; |
| 4766 | |
| 4767 | ; |
| 4768 | return 0; |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 4769 | } |
| 4770 | _ACEOF |
| 4771 | rm -f conftest$ac_exeext |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 4772 | if { (ac_try="$ac_link" |
| 4773 | case "(($ac_try" in |
| 4774 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4775 | *) ac_try_echo=$ac_try;; |
| 4776 | esac |
| 4777 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4778 | (eval "$ac_link") 2>&5 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 4779 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4780 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 4781 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 4782 | { (case "(($ac_try" in |
| 4783 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4784 | *) ac_try_echo=$ac_try;; |
| 4785 | esac |
| 4786 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4787 | (eval "$ac_try") 2>&5 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 4788 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4789 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 4790 | (exit $ac_status); }; }; then |
| 4791 | ac_cv_c_bigendian=no |
| 4792 | else |
| 4793 | echo "$as_me: program exited with status $ac_status" >&5 |
| 4794 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4795 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4796 | |
| 4797 | ( exit $ac_status ) |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 4798 | ac_cv_c_bigendian=yes |
| 4799 | fi |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 4800 | 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] | 4801 | fi |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 4802 | |
| 4803 | |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 4804 | fi |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 4805 | |
| 4806 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 4807 | fi |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 4808 | { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 |
| 4809 | echo "${ECHO_T}$ac_cv_c_bigendian" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4810 | case $ac_cv_c_bigendian in |
| 4811 | yes) |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 4812 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4813 | cat >>confdefs.h <<\_ACEOF |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame] | 4814 | #define WORDS_BIGENDIAN 1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4815 | _ACEOF |
| 4816 | ;; |
| 4817 | no) |
| 4818 | ;; |
| 4819 | *) |
| 4820 | { { echo "$as_me:$LINENO: error: unknown endianness |
| 4821 | presetting ac_cv_c_bigendian=no (or yes) will help" >&5 |
| 4822 | echo "$as_me: error: unknown endianness |
| 4823 | presetting ac_cv_c_bigendian=no (or yes) will help" >&2;} |
| 4824 | { (exit 1); exit 1; }; } ;; |
| 4825 | esac |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 4826 | |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 4827 | |
| 4828 | case $target in |
| 4829 | *mingw* | *cygw* | *win32* | *w32* ) |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4830 | cat >>confdefs.h <<\_ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 4831 | #define PJ_WIN32 1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4832 | _ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 4833 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4834 | cat >>confdefs.h <<\_ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 4835 | #define PJ_WIN32_WINNT 0x0400 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4836 | _ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 4837 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4838 | cat >>confdefs.h <<\_ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 4839 | #define WIN32_LEAN_AND_MEAN 1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4840 | _ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 4841 | |
| 4842 | ;; |
| 4843 | *darwin*) |
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_DARWINOS 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 | |
| 4848 | ;; |
| 4849 | *linux*) |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4850 | cat >>confdefs.h <<\_ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 4851 | #define PJ_LINUX 1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4852 | _ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 4853 | |
| 4854 | ;; |
| 4855 | *rtems*) |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4856 | cat >>confdefs.h <<\_ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 4857 | #define PJ_RTEMS 1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4858 | _ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 4859 | |
| 4860 | ;; |
| 4861 | *sunos* | *solaris* ) |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4862 | cat >>confdefs.h <<\_ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 4863 | #define PJ_SUNOS 1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4864 | _ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 4865 | |
| 4866 | ;; |
| 4867 | *) |
| 4868 | ;; |
| 4869 | esac |
| 4870 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4871 | |
| 4872 | |
| 4873 | |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 4874 | # Check whether --enable-floating-point was given. |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 4875 | if test "${enable_floating_point+set}" = set; then |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 4876 | enableval=$enable_floating_point; if test "$enable_floating_point" = "no"; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4877 | cat >>confdefs.h <<\_ACEOF |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 4878 | #define PJ_HAS_FLOATING_POINT 0 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4879 | _ACEOF |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 4880 | |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 4881 | { echo "$as_me:$LINENO: result: Checking if floating point is disabled... yes" >&5 |
| 4882 | echo "${ECHO_T}Checking if floating point is disabled... yes" >&6; } |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 4883 | fi |
| 4884 | else |
| 4885 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4886 | cat >>confdefs.h <<\_ACEOF |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 4887 | #define PJ_HAS_FLOATING_POINT 1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4888 | _ACEOF |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 4889 | |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 4890 | { echo "$as_me:$LINENO: result: Checking if floating point is disabled... no" >&5 |
| 4891 | echo "${ECHO_T}Checking if floating point is disabled... no" >&6; } |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 4892 | |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 4893 | { echo "$as_me:$LINENO: checking for fmod in -lm" >&5 |
| 4894 | echo $ECHO_N "checking for fmod in -lm... $ECHO_C" >&6; } |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 4895 | if test "${ac_cv_lib_m_fmod+set}" = set; then |
| 4896 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4897 | else |
| 4898 | ac_check_lib_save_LIBS=$LIBS |
| 4899 | LIBS="-lm $LIBS" |
| 4900 | cat >conftest.$ac_ext <<_ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4901 | /* confdefs.h. */ |
| 4902 | _ACEOF |
| 4903 | cat confdefs.h >>conftest.$ac_ext |
| 4904 | cat >>conftest.$ac_ext <<_ACEOF |
| 4905 | /* end confdefs.h. */ |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 4906 | |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 4907 | /* Override any GCC internal prototype to avoid an error. |
| 4908 | Use char because int might match the return type of a GCC |
| 4909 | builtin and then its argument prototype would still apply. */ |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 4910 | #ifdef __cplusplus |
| 4911 | extern "C" |
| 4912 | #endif |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 4913 | char fmod (); |
| 4914 | int |
| 4915 | main () |
| 4916 | { |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 4917 | return fmod (); |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 4918 | ; |
| 4919 | return 0; |
| 4920 | } |
| 4921 | _ACEOF |
| 4922 | rm -f conftest.$ac_objext conftest$ac_exeext |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 4923 | if { (ac_try="$ac_link" |
| 4924 | case "(($ac_try" in |
| 4925 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4926 | *) ac_try_echo=$ac_try;; |
| 4927 | esac |
| 4928 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4929 | (eval "$ac_link") 2>conftest.er1 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 4930 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4931 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4932 | rm -f conftest.er1 |
| 4933 | cat conftest.err >&5 |
| 4934 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 4935 | (exit $ac_status); } && { |
| 4936 | test -z "$ac_c_werror_flag" || |
| 4937 | test ! -s conftest.err |
| 4938 | } && test -s conftest$ac_exeext && |
| 4939 | $as_test_x conftest$ac_exeext; then |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 4940 | ac_cv_lib_m_fmod=yes |
| 4941 | else |
| 4942 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4943 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4944 | |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 4945 | ac_cv_lib_m_fmod=no |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 4946 | fi |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 4947 | |
| 4948 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4949 | conftest$ac_exeext conftest.$ac_ext |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 4950 | LIBS=$ac_check_lib_save_LIBS |
| 4951 | fi |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 4952 | { echo "$as_me:$LINENO: result: $ac_cv_lib_m_fmod" >&5 |
| 4953 | echo "${ECHO_T}$ac_cv_lib_m_fmod" >&6; } |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 4954 | if test $ac_cv_lib_m_fmod = yes; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4955 | cat >>confdefs.h <<_ACEOF |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 4956 | #define HAVE_LIBM 1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4957 | _ACEOF |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 4958 | |
| 4959 | LIBS="-lm $LIBS" |
| 4960 | |
| 4961 | fi |
| 4962 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4963 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 4964 | fi |
| 4965 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4966 | |
| 4967 | |
| 4968 | if test "${ac_cv_header_arpa_inet_h+set}" = set; then |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 4969 | { echo "$as_me:$LINENO: checking for arpa/inet.h" >&5 |
| 4970 | echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4971 | if test "${ac_cv_header_arpa_inet_h+set}" = set; then |
| 4972 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4973 | fi |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 4974 | { echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5 |
| 4975 | echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4976 | else |
| 4977 | # Is the header compilable? |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 4978 | { echo "$as_me:$LINENO: checking arpa/inet.h usability" >&5 |
| 4979 | echo $ECHO_N "checking arpa/inet.h usability... $ECHO_C" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4980 | cat >conftest.$ac_ext <<_ACEOF |
| 4981 | /* confdefs.h. */ |
| 4982 | _ACEOF |
| 4983 | cat confdefs.h >>conftest.$ac_ext |
| 4984 | cat >>conftest.$ac_ext <<_ACEOF |
| 4985 | /* end confdefs.h. */ |
| 4986 | $ac_includes_default |
| 4987 | #include <arpa/inet.h> |
| 4988 | _ACEOF |
| 4989 | rm -f conftest.$ac_objext |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 4990 | if { (ac_try="$ac_compile" |
| 4991 | case "(($ac_try" in |
| 4992 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4993 | *) ac_try_echo=$ac_try;; |
| 4994 | esac |
| 4995 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4996 | (eval "$ac_compile") 2>conftest.er1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4997 | ac_status=$? |
| 4998 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4999 | rm -f conftest.er1 |
| 5000 | cat conftest.err >&5 |
| 5001 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 5002 | (exit $ac_status); } && { |
| 5003 | test -z "$ac_c_werror_flag" || |
| 5004 | test ! -s conftest.err |
| 5005 | } && test -s conftest.$ac_objext; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5006 | ac_header_compiler=yes |
| 5007 | else |
| 5008 | echo "$as_me: failed program was:" >&5 |
| 5009 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5010 | |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 5011 | ac_header_compiler=no |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5012 | fi |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 5013 | |
| 5014 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5015 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 5016 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5017 | |
| 5018 | # Is the header present? |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 5019 | { echo "$as_me:$LINENO: checking arpa/inet.h presence" >&5 |
| 5020 | echo $ECHO_N "checking arpa/inet.h presence... $ECHO_C" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5021 | cat >conftest.$ac_ext <<_ACEOF |
| 5022 | /* confdefs.h. */ |
| 5023 | _ACEOF |
| 5024 | cat confdefs.h >>conftest.$ac_ext |
| 5025 | cat >>conftest.$ac_ext <<_ACEOF |
| 5026 | /* end confdefs.h. */ |
| 5027 | #include <arpa/inet.h> |
| 5028 | _ACEOF |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 5029 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 5030 | case "(($ac_try" in |
| 5031 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5032 | *) ac_try_echo=$ac_try;; |
| 5033 | esac |
| 5034 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5035 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5036 | ac_status=$? |
| 5037 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5038 | rm -f conftest.er1 |
| 5039 | cat conftest.err >&5 |
| 5040 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 5041 | (exit $ac_status); } >/dev/null && { |
| 5042 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 5043 | test ! -s conftest.err |
| 5044 | }; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5045 | ac_header_preproc=yes |
| 5046 | else |
| 5047 | echo "$as_me: failed program was:" >&5 |
| 5048 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5049 | |
| 5050 | ac_header_preproc=no |
| 5051 | fi |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 5052 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5053 | rm -f conftest.err conftest.$ac_ext |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 5054 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 5055 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5056 | |
| 5057 | # So? What about this header? |
| 5058 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 5059 | yes:no: ) |
| 5060 | { echo "$as_me:$LINENO: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 5061 | echo "$as_me: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 5062 | { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the compiler's result" >&5 |
| 5063 | echo "$as_me: WARNING: arpa/inet.h: proceeding with the compiler's result" >&2;} |
| 5064 | ac_header_preproc=yes |
| 5065 | ;; |
| 5066 | no:yes:* ) |
| 5067 | { echo "$as_me:$LINENO: WARNING: arpa/inet.h: present but cannot be compiled" >&5 |
| 5068 | echo "$as_me: WARNING: arpa/inet.h: present but cannot be compiled" >&2;} |
| 5069 | { echo "$as_me:$LINENO: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&5 |
| 5070 | echo "$as_me: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&2;} |
| 5071 | { echo "$as_me:$LINENO: WARNING: arpa/inet.h: see the Autoconf documentation" >&5 |
| 5072 | echo "$as_me: WARNING: arpa/inet.h: see the Autoconf documentation" >&2;} |
| 5073 | { echo "$as_me:$LINENO: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 5074 | echo "$as_me: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 5075 | { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&5 |
| 5076 | echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&2;} |
| 5077 | { echo "$as_me:$LINENO: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&5 |
| 5078 | echo "$as_me: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&2;} |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 5079 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5080 | ;; |
| 5081 | esac |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 5082 | { echo "$as_me:$LINENO: checking for arpa/inet.h" >&5 |
| 5083 | echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6; } |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 5084 | if test "${ac_cv_header_arpa_inet_h+set}" = set; then |
| 5085 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 5086 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5087 | ac_cv_header_arpa_inet_h=$ac_header_preproc |
| 5088 | fi |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 5089 | { echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5 |
| 5090 | echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5091 | |
| 5092 | fi |
| 5093 | if test $ac_cv_header_arpa_inet_h = yes; then |
| 5094 | cat >>confdefs.h <<\_ACEOF |
| 5095 | #define PJ_HAS_ARPA_INET_H 1 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 5096 | _ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5097 | |
| 5098 | fi |
| 5099 | |
| 5100 | |
| 5101 | if test "${ac_cv_header_assert_h+set}" = set; then |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 5102 | { echo "$as_me:$LINENO: checking for assert.h" >&5 |
| 5103 | echo $ECHO_N "checking for assert.h... $ECHO_C" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5104 | if test "${ac_cv_header_assert_h+set}" = set; then |
| 5105 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5106 | fi |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 5107 | { echo "$as_me:$LINENO: result: $ac_cv_header_assert_h" >&5 |
| 5108 | echo "${ECHO_T}$ac_cv_header_assert_h" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5109 | else |
| 5110 | # Is the header compilable? |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 5111 | { echo "$as_me:$LINENO: checking assert.h usability" >&5 |
| 5112 | echo $ECHO_N "checking assert.h usability... $ECHO_C" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5113 | cat >conftest.$ac_ext <<_ACEOF |
| 5114 | /* confdefs.h. */ |
| 5115 | _ACEOF |
| 5116 | cat confdefs.h >>conftest.$ac_ext |
| 5117 | cat >>conftest.$ac_ext <<_ACEOF |
| 5118 | /* end confdefs.h. */ |
| 5119 | $ac_includes_default |
| 5120 | #include <assert.h> |
| 5121 | _ACEOF |
| 5122 | rm -f conftest.$ac_objext |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 5123 | if { (ac_try="$ac_compile" |
| 5124 | case "(($ac_try" in |
| 5125 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5126 | *) ac_try_echo=$ac_try;; |
| 5127 | esac |
| 5128 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5129 | (eval "$ac_compile") 2>conftest.er1 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 5130 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5131 | grep -v '^ *+' conftest.er1 >conftest.err |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 5132 | rm -f conftest.er1 |
| 5133 | cat conftest.err >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5134 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 5135 | (exit $ac_status); } && { |
| 5136 | test -z "$ac_c_werror_flag" || |
| 5137 | test ! -s conftest.err |
| 5138 | } && test -s conftest.$ac_objext; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5139 | ac_header_compiler=yes |
| 5140 | else |
| 5141 | echo "$as_me: failed program was:" >&5 |
| 5142 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5143 | |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 5144 | ac_header_compiler=no |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5145 | fi |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 5146 | |
| 5147 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5148 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 5149 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5150 | |
| 5151 | # Is the header present? |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 5152 | { echo "$as_me:$LINENO: checking assert.h presence" >&5 |
| 5153 | echo $ECHO_N "checking assert.h presence... $ECHO_C" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5154 | cat >conftest.$ac_ext <<_ACEOF |
| 5155 | /* confdefs.h. */ |
| 5156 | _ACEOF |
| 5157 | cat confdefs.h >>conftest.$ac_ext |
| 5158 | cat >>conftest.$ac_ext <<_ACEOF |
| 5159 | /* end confdefs.h. */ |
| 5160 | #include <assert.h> |
| 5161 | _ACEOF |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 5162 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 5163 | case "(($ac_try" in |
| 5164 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5165 | *) ac_try_echo=$ac_try;; |
| 5166 | esac |
| 5167 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5168 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5169 | ac_status=$? |
| 5170 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5171 | rm -f conftest.er1 |
| 5172 | cat conftest.err >&5 |
| 5173 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 5174 | (exit $ac_status); } >/dev/null && { |
| 5175 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 5176 | test ! -s conftest.err |
| 5177 | }; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5178 | ac_header_preproc=yes |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 5179 | else |
| 5180 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5181 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5182 | |
| 5183 | ac_header_preproc=no |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 5184 | fi |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 5185 | |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 5186 | rm -f conftest.err conftest.$ac_ext |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 5187 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 5188 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 5189 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5190 | # So? What about this header? |
| 5191 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 5192 | yes:no: ) |
| 5193 | { echo "$as_me:$LINENO: WARNING: assert.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 5194 | echo "$as_me: WARNING: assert.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 5195 | { echo "$as_me:$LINENO: WARNING: assert.h: proceeding with the compiler's result" >&5 |
| 5196 | echo "$as_me: WARNING: assert.h: proceeding with the compiler's result" >&2;} |
| 5197 | ac_header_preproc=yes |
| 5198 | ;; |
| 5199 | no:yes:* ) |
| 5200 | { echo "$as_me:$LINENO: WARNING: assert.h: present but cannot be compiled" >&5 |
| 5201 | echo "$as_me: WARNING: assert.h: present but cannot be compiled" >&2;} |
| 5202 | { echo "$as_me:$LINENO: WARNING: assert.h: check for missing prerequisite headers?" >&5 |
| 5203 | echo "$as_me: WARNING: assert.h: check for missing prerequisite headers?" >&2;} |
| 5204 | { echo "$as_me:$LINENO: WARNING: assert.h: see the Autoconf documentation" >&5 |
| 5205 | echo "$as_me: WARNING: assert.h: see the Autoconf documentation" >&2;} |
| 5206 | { echo "$as_me:$LINENO: WARNING: assert.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 5207 | echo "$as_me: WARNING: assert.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 5208 | { echo "$as_me:$LINENO: WARNING: assert.h: proceeding with the preprocessor's result" >&5 |
| 5209 | echo "$as_me: WARNING: assert.h: proceeding with the preprocessor's result" >&2;} |
| 5210 | { echo "$as_me:$LINENO: WARNING: assert.h: in the future, the compiler will take precedence" >&5 |
| 5211 | echo "$as_me: WARNING: assert.h: in the future, the compiler will take precedence" >&2;} |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 5212 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5213 | ;; |
| 5214 | esac |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 5215 | { echo "$as_me:$LINENO: checking for assert.h" >&5 |
| 5216 | echo $ECHO_N "checking for assert.h... $ECHO_C" >&6; } |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 5217 | if test "${ac_cv_header_assert_h+set}" = set; then |
| 5218 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 5219 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5220 | ac_cv_header_assert_h=$ac_header_preproc |
| 5221 | fi |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 5222 | { echo "$as_me:$LINENO: result: $ac_cv_header_assert_h" >&5 |
| 5223 | echo "${ECHO_T}$ac_cv_header_assert_h" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5224 | |
| 5225 | fi |
| 5226 | if test $ac_cv_header_assert_h = yes; then |
| 5227 | cat >>confdefs.h <<\_ACEOF |
| 5228 | #define PJ_HAS_ASSERT_H 1 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 5229 | _ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5230 | |
| 5231 | fi |
| 5232 | |
| 5233 | |
| 5234 | if test "${ac_cv_header_ctype_h+set}" = set; then |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 5235 | { echo "$as_me:$LINENO: checking for ctype.h" >&5 |
| 5236 | echo $ECHO_N "checking for ctype.h... $ECHO_C" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5237 | if test "${ac_cv_header_ctype_h+set}" = set; then |
| 5238 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5239 | fi |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 5240 | { echo "$as_me:$LINENO: result: $ac_cv_header_ctype_h" >&5 |
| 5241 | echo "${ECHO_T}$ac_cv_header_ctype_h" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5242 | else |
| 5243 | # Is the header compilable? |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 5244 | { echo "$as_me:$LINENO: checking ctype.h usability" >&5 |
| 5245 | echo $ECHO_N "checking ctype.h usability... $ECHO_C" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5246 | cat >conftest.$ac_ext <<_ACEOF |
| 5247 | /* confdefs.h. */ |
| 5248 | _ACEOF |
| 5249 | cat confdefs.h >>conftest.$ac_ext |
| 5250 | cat >>conftest.$ac_ext <<_ACEOF |
| 5251 | /* end confdefs.h. */ |
| 5252 | $ac_includes_default |
| 5253 | #include <ctype.h> |
| 5254 | _ACEOF |
| 5255 | rm -f conftest.$ac_objext |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 5256 | if { (ac_try="$ac_compile" |
| 5257 | case "(($ac_try" in |
| 5258 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5259 | *) ac_try_echo=$ac_try;; |
| 5260 | esac |
| 5261 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5262 | (eval "$ac_compile") 2>conftest.er1 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 5263 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5264 | grep -v '^ *+' conftest.er1 >conftest.err |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 5265 | rm -f conftest.er1 |
| 5266 | cat conftest.err >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5267 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 5268 | (exit $ac_status); } && { |
| 5269 | test -z "$ac_c_werror_flag" || |
| 5270 | test ! -s conftest.err |
| 5271 | } && test -s conftest.$ac_objext; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5272 | ac_header_compiler=yes |
| 5273 | else |
| 5274 | echo "$as_me: failed program was:" >&5 |
| 5275 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5276 | |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 5277 | ac_header_compiler=no |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5278 | fi |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 5279 | |
| 5280 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5281 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 5282 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5283 | |
| 5284 | # Is the header present? |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 5285 | { echo "$as_me:$LINENO: checking ctype.h presence" >&5 |
| 5286 | echo $ECHO_N "checking ctype.h presence... $ECHO_C" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5287 | cat >conftest.$ac_ext <<_ACEOF |
| 5288 | /* confdefs.h. */ |
| 5289 | _ACEOF |
| 5290 | cat confdefs.h >>conftest.$ac_ext |
| 5291 | cat >>conftest.$ac_ext <<_ACEOF |
| 5292 | /* end confdefs.h. */ |
| 5293 | #include <ctype.h> |
| 5294 | _ACEOF |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 5295 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 5296 | case "(($ac_try" in |
| 5297 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5298 | *) ac_try_echo=$ac_try;; |
| 5299 | esac |
| 5300 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5301 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5302 | ac_status=$? |
| 5303 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5304 | rm -f conftest.er1 |
| 5305 | cat conftest.err >&5 |
| 5306 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 5307 | (exit $ac_status); } >/dev/null && { |
| 5308 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 5309 | test ! -s conftest.err |
| 5310 | }; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5311 | ac_header_preproc=yes |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 5312 | else |
| 5313 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5314 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5315 | |
| 5316 | ac_header_preproc=no |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 5317 | fi |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 5318 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 5319 | rm -f conftest.err conftest.$ac_ext |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 5320 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 5321 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 5322 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5323 | # So? What about this header? |
| 5324 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 5325 | yes:no: ) |
| 5326 | { echo "$as_me:$LINENO: WARNING: ctype.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 5327 | echo "$as_me: WARNING: ctype.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 5328 | { echo "$as_me:$LINENO: WARNING: ctype.h: proceeding with the compiler's result" >&5 |
| 5329 | echo "$as_me: WARNING: ctype.h: proceeding with the compiler's result" >&2;} |
| 5330 | ac_header_preproc=yes |
| 5331 | ;; |
| 5332 | no:yes:* ) |
| 5333 | { echo "$as_me:$LINENO: WARNING: ctype.h: present but cannot be compiled" >&5 |
| 5334 | echo "$as_me: WARNING: ctype.h: present but cannot be compiled" >&2;} |
| 5335 | { echo "$as_me:$LINENO: WARNING: ctype.h: check for missing prerequisite headers?" >&5 |
| 5336 | echo "$as_me: WARNING: ctype.h: check for missing prerequisite headers?" >&2;} |
| 5337 | { echo "$as_me:$LINENO: WARNING: ctype.h: see the Autoconf documentation" >&5 |
| 5338 | echo "$as_me: WARNING: ctype.h: see the Autoconf documentation" >&2;} |
| 5339 | { echo "$as_me:$LINENO: WARNING: ctype.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 5340 | echo "$as_me: WARNING: ctype.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 5341 | { echo "$as_me:$LINENO: WARNING: ctype.h: proceeding with the preprocessor's result" >&5 |
| 5342 | echo "$as_me: WARNING: ctype.h: proceeding with the preprocessor's result" >&2;} |
| 5343 | { echo "$as_me:$LINENO: WARNING: ctype.h: in the future, the compiler will take precedence" >&5 |
| 5344 | echo "$as_me: WARNING: ctype.h: in the future, the compiler will take precedence" >&2;} |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 5345 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5346 | ;; |
| 5347 | esac |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 5348 | { echo "$as_me:$LINENO: checking for ctype.h" >&5 |
| 5349 | echo $ECHO_N "checking for ctype.h... $ECHO_C" >&6; } |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 5350 | if test "${ac_cv_header_ctype_h+set}" = set; then |
| 5351 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 5352 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5353 | ac_cv_header_ctype_h=$ac_header_preproc |
| 5354 | fi |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 5355 | { echo "$as_me:$LINENO: result: $ac_cv_header_ctype_h" >&5 |
| 5356 | echo "${ECHO_T}$ac_cv_header_ctype_h" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5357 | |
| 5358 | fi |
| 5359 | if test $ac_cv_header_ctype_h = yes; then |
| 5360 | cat >>confdefs.h <<\_ACEOF |
| 5361 | #define PJ_HAS_CTYPE_H 1 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 5362 | _ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5363 | |
| 5364 | fi |
| 5365 | |
| 5366 | |
| 5367 | |
| 5368 | case $target in |
| 5369 | *mingw* | *cygw* | *win32* | *w32* ) |
| 5370 | cat >>confdefs.h <<\_ACEOF |
| 5371 | #define PJ_HAS_ERRNO_H 0 |
| 5372 | _ACEOF |
| 5373 | |
| 5374 | ;; |
| 5375 | *) |
| 5376 | if test "${ac_cv_header_errno_h+set}" = set; then |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 5377 | { echo "$as_me:$LINENO: checking for errno.h" >&5 |
| 5378 | echo $ECHO_N "checking for errno.h... $ECHO_C" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5379 | if test "${ac_cv_header_errno_h+set}" = set; then |
| 5380 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5381 | fi |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 5382 | { echo "$as_me:$LINENO: result: $ac_cv_header_errno_h" >&5 |
| 5383 | echo "${ECHO_T}$ac_cv_header_errno_h" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5384 | else |
| 5385 | # Is the header compilable? |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 5386 | { echo "$as_me:$LINENO: checking errno.h usability" >&5 |
| 5387 | echo $ECHO_N "checking errno.h usability... $ECHO_C" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5388 | cat >conftest.$ac_ext <<_ACEOF |
| 5389 | /* confdefs.h. */ |
| 5390 | _ACEOF |
| 5391 | cat confdefs.h >>conftest.$ac_ext |
| 5392 | cat >>conftest.$ac_ext <<_ACEOF |
| 5393 | /* end confdefs.h. */ |
| 5394 | $ac_includes_default |
| 5395 | #include <errno.h> |
| 5396 | _ACEOF |
| 5397 | rm -f conftest.$ac_objext |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 5398 | if { (ac_try="$ac_compile" |
| 5399 | case "(($ac_try" in |
| 5400 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5401 | *) ac_try_echo=$ac_try;; |
| 5402 | esac |
| 5403 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5404 | (eval "$ac_compile") 2>conftest.er1 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 5405 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5406 | grep -v '^ *+' conftest.er1 >conftest.err |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 5407 | rm -f conftest.er1 |
| 5408 | cat conftest.err >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5409 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 5410 | (exit $ac_status); } && { |
| 5411 | test -z "$ac_c_werror_flag" || |
| 5412 | test ! -s conftest.err |
| 5413 | } && test -s conftest.$ac_objext; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5414 | ac_header_compiler=yes |
| 5415 | else |
| 5416 | echo "$as_me: failed program was:" >&5 |
| 5417 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5418 | |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 5419 | ac_header_compiler=no |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5420 | fi |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 5421 | |
| 5422 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5423 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 5424 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5425 | |
| 5426 | # Is the header present? |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 5427 | { echo "$as_me:$LINENO: checking errno.h presence" >&5 |
| 5428 | echo $ECHO_N "checking errno.h presence... $ECHO_C" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5429 | cat >conftest.$ac_ext <<_ACEOF |
| 5430 | /* confdefs.h. */ |
| 5431 | _ACEOF |
| 5432 | cat confdefs.h >>conftest.$ac_ext |
| 5433 | cat >>conftest.$ac_ext <<_ACEOF |
| 5434 | /* end confdefs.h. */ |
| 5435 | #include <errno.h> |
| 5436 | _ACEOF |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 5437 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 5438 | case "(($ac_try" in |
| 5439 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5440 | *) ac_try_echo=$ac_try;; |
| 5441 | esac |
| 5442 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5443 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5444 | ac_status=$? |
| 5445 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5446 | rm -f conftest.er1 |
| 5447 | cat conftest.err >&5 |
| 5448 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 5449 | (exit $ac_status); } >/dev/null && { |
| 5450 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 5451 | test ! -s conftest.err |
| 5452 | }; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5453 | ac_header_preproc=yes |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 5454 | else |
| 5455 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5456 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5457 | |
| 5458 | ac_header_preproc=no |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 5459 | fi |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 5460 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 5461 | rm -f conftest.err conftest.$ac_ext |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 5462 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 5463 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 5464 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5465 | # So? What about this header? |
| 5466 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 5467 | yes:no: ) |
| 5468 | { echo "$as_me:$LINENO: WARNING: errno.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 5469 | echo "$as_me: WARNING: errno.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 5470 | { echo "$as_me:$LINENO: WARNING: errno.h: proceeding with the compiler's result" >&5 |
| 5471 | echo "$as_me: WARNING: errno.h: proceeding with the compiler's result" >&2;} |
| 5472 | ac_header_preproc=yes |
| 5473 | ;; |
| 5474 | no:yes:* ) |
| 5475 | { echo "$as_me:$LINENO: WARNING: errno.h: present but cannot be compiled" >&5 |
| 5476 | echo "$as_me: WARNING: errno.h: present but cannot be compiled" >&2;} |
| 5477 | { echo "$as_me:$LINENO: WARNING: errno.h: check for missing prerequisite headers?" >&5 |
| 5478 | echo "$as_me: WARNING: errno.h: check for missing prerequisite headers?" >&2;} |
| 5479 | { echo "$as_me:$LINENO: WARNING: errno.h: see the Autoconf documentation" >&5 |
| 5480 | echo "$as_me: WARNING: errno.h: see the Autoconf documentation" >&2;} |
| 5481 | { echo "$as_me:$LINENO: WARNING: errno.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 5482 | echo "$as_me: WARNING: errno.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 5483 | { echo "$as_me:$LINENO: WARNING: errno.h: proceeding with the preprocessor's result" >&5 |
| 5484 | echo "$as_me: WARNING: errno.h: proceeding with the preprocessor's result" >&2;} |
| 5485 | { echo "$as_me:$LINENO: WARNING: errno.h: in the future, the compiler will take precedence" >&5 |
| 5486 | echo "$as_me: WARNING: errno.h: in the future, the compiler will take precedence" >&2;} |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 5487 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5488 | ;; |
| 5489 | esac |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 5490 | { echo "$as_me:$LINENO: checking for errno.h" >&5 |
| 5491 | echo $ECHO_N "checking for errno.h... $ECHO_C" >&6; } |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 5492 | if test "${ac_cv_header_errno_h+set}" = set; then |
| 5493 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 5494 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5495 | ac_cv_header_errno_h=$ac_header_preproc |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 5496 | fi |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 5497 | { echo "$as_me:$LINENO: result: $ac_cv_header_errno_h" >&5 |
| 5498 | echo "${ECHO_T}$ac_cv_header_errno_h" >&6; } |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 5499 | |
| 5500 | fi |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5501 | if test $ac_cv_header_errno_h = yes; then |
| 5502 | cat >>confdefs.h <<\_ACEOF |
| 5503 | #define PJ_HAS_ERRNO_H 1 |
| 5504 | _ACEOF |
| 5505 | |
| 5506 | fi |
| 5507 | |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 5508 | |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 5509 | ;; |
| 5510 | esac |
| 5511 | |
Benny Prijono | 1d481ab | 2008-01-24 15:27:30 +0000 | [diff] [blame] | 5512 | if test "${ac_cv_header_fcntl_h+set}" = set; then |
| 5513 | { echo "$as_me:$LINENO: checking for fcntl.h" >&5 |
| 5514 | echo $ECHO_N "checking for fcntl.h... $ECHO_C" >&6; } |
| 5515 | if test "${ac_cv_header_fcntl_h+set}" = set; then |
| 5516 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5517 | fi |
| 5518 | { echo "$as_me:$LINENO: result: $ac_cv_header_fcntl_h" >&5 |
| 5519 | echo "${ECHO_T}$ac_cv_header_fcntl_h" >&6; } |
| 5520 | else |
| 5521 | # Is the header compilable? |
| 5522 | { echo "$as_me:$LINENO: checking fcntl.h usability" >&5 |
| 5523 | echo $ECHO_N "checking fcntl.h usability... $ECHO_C" >&6; } |
| 5524 | cat >conftest.$ac_ext <<_ACEOF |
| 5525 | /* confdefs.h. */ |
| 5526 | _ACEOF |
| 5527 | cat confdefs.h >>conftest.$ac_ext |
| 5528 | cat >>conftest.$ac_ext <<_ACEOF |
| 5529 | /* end confdefs.h. */ |
| 5530 | $ac_includes_default |
| 5531 | #include <fcntl.h> |
| 5532 | _ACEOF |
| 5533 | rm -f conftest.$ac_objext |
| 5534 | if { (ac_try="$ac_compile" |
| 5535 | case "(($ac_try" in |
| 5536 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5537 | *) ac_try_echo=$ac_try;; |
| 5538 | esac |
| 5539 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5540 | (eval "$ac_compile") 2>conftest.er1 |
| 5541 | ac_status=$? |
| 5542 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5543 | rm -f conftest.er1 |
| 5544 | cat conftest.err >&5 |
| 5545 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5546 | (exit $ac_status); } && { |
| 5547 | test -z "$ac_c_werror_flag" || |
| 5548 | test ! -s conftest.err |
| 5549 | } && test -s conftest.$ac_objext; then |
| 5550 | ac_header_compiler=yes |
| 5551 | else |
| 5552 | echo "$as_me: failed program was:" >&5 |
| 5553 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5554 | |
| 5555 | ac_header_compiler=no |
| 5556 | fi |
| 5557 | |
| 5558 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5559 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 5560 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 5561 | |
| 5562 | # Is the header present? |
| 5563 | { echo "$as_me:$LINENO: checking fcntl.h presence" >&5 |
| 5564 | echo $ECHO_N "checking fcntl.h presence... $ECHO_C" >&6; } |
| 5565 | cat >conftest.$ac_ext <<_ACEOF |
| 5566 | /* confdefs.h. */ |
| 5567 | _ACEOF |
| 5568 | cat confdefs.h >>conftest.$ac_ext |
| 5569 | cat >>conftest.$ac_ext <<_ACEOF |
| 5570 | /* end confdefs.h. */ |
| 5571 | #include <fcntl.h> |
| 5572 | _ACEOF |
| 5573 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 5574 | case "(($ac_try" in |
| 5575 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5576 | *) ac_try_echo=$ac_try;; |
| 5577 | esac |
| 5578 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5579 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 5580 | ac_status=$? |
| 5581 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5582 | rm -f conftest.er1 |
| 5583 | cat conftest.err >&5 |
| 5584 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5585 | (exit $ac_status); } >/dev/null && { |
| 5586 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 5587 | test ! -s conftest.err |
| 5588 | }; then |
| 5589 | ac_header_preproc=yes |
| 5590 | else |
| 5591 | echo "$as_me: failed program was:" >&5 |
| 5592 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5593 | |
| 5594 | ac_header_preproc=no |
| 5595 | fi |
| 5596 | |
| 5597 | rm -f conftest.err conftest.$ac_ext |
| 5598 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 5599 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 5600 | |
| 5601 | # So? What about this header? |
| 5602 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 5603 | yes:no: ) |
| 5604 | { echo "$as_me:$LINENO: WARNING: fcntl.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 5605 | echo "$as_me: WARNING: fcntl.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 5606 | { echo "$as_me:$LINENO: WARNING: fcntl.h: proceeding with the compiler's result" >&5 |
| 5607 | echo "$as_me: WARNING: fcntl.h: proceeding with the compiler's result" >&2;} |
| 5608 | ac_header_preproc=yes |
| 5609 | ;; |
| 5610 | no:yes:* ) |
| 5611 | { echo "$as_me:$LINENO: WARNING: fcntl.h: present but cannot be compiled" >&5 |
| 5612 | echo "$as_me: WARNING: fcntl.h: present but cannot be compiled" >&2;} |
| 5613 | { echo "$as_me:$LINENO: WARNING: fcntl.h: check for missing prerequisite headers?" >&5 |
| 5614 | echo "$as_me: WARNING: fcntl.h: check for missing prerequisite headers?" >&2;} |
| 5615 | { echo "$as_me:$LINENO: WARNING: fcntl.h: see the Autoconf documentation" >&5 |
| 5616 | echo "$as_me: WARNING: fcntl.h: see the Autoconf documentation" >&2;} |
| 5617 | { echo "$as_me:$LINENO: WARNING: fcntl.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 5618 | echo "$as_me: WARNING: fcntl.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 5619 | { echo "$as_me:$LINENO: WARNING: fcntl.h: proceeding with the preprocessor's result" >&5 |
| 5620 | echo "$as_me: WARNING: fcntl.h: proceeding with the preprocessor's result" >&2;} |
| 5621 | { echo "$as_me:$LINENO: WARNING: fcntl.h: in the future, the compiler will take precedence" >&5 |
| 5622 | echo "$as_me: WARNING: fcntl.h: in the future, the compiler will take precedence" >&2;} |
| 5623 | |
| 5624 | ;; |
| 5625 | esac |
| 5626 | { echo "$as_me:$LINENO: checking for fcntl.h" >&5 |
| 5627 | echo $ECHO_N "checking for fcntl.h... $ECHO_C" >&6; } |
| 5628 | if test "${ac_cv_header_fcntl_h+set}" = set; then |
| 5629 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5630 | else |
| 5631 | ac_cv_header_fcntl_h=$ac_header_preproc |
| 5632 | fi |
| 5633 | { echo "$as_me:$LINENO: result: $ac_cv_header_fcntl_h" >&5 |
| 5634 | echo "${ECHO_T}$ac_cv_header_fcntl_h" >&6; } |
| 5635 | |
| 5636 | fi |
| 5637 | if test $ac_cv_header_fcntl_h = yes; then |
| 5638 | cat >>confdefs.h <<\_ACEOF |
| 5639 | #define PJ_HAS_FCNTL_H 1 |
| 5640 | _ACEOF |
| 5641 | |
| 5642 | fi |
| 5643 | |
| 5644 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5645 | if test "${ac_cv_header_linux_socket_h+set}" = set; then |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 5646 | { echo "$as_me:$LINENO: checking for linux/socket.h" >&5 |
| 5647 | echo $ECHO_N "checking for linux/socket.h... $ECHO_C" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5648 | if test "${ac_cv_header_linux_socket_h+set}" = set; then |
| 5649 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5650 | fi |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 5651 | { echo "$as_me:$LINENO: result: $ac_cv_header_linux_socket_h" >&5 |
| 5652 | echo "${ECHO_T}$ac_cv_header_linux_socket_h" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5653 | else |
| 5654 | # Is the header compilable? |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 5655 | { echo "$as_me:$LINENO: checking linux/socket.h usability" >&5 |
| 5656 | echo $ECHO_N "checking linux/socket.h usability... $ECHO_C" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5657 | cat >conftest.$ac_ext <<_ACEOF |
| 5658 | /* confdefs.h. */ |
| 5659 | _ACEOF |
| 5660 | cat confdefs.h >>conftest.$ac_ext |
| 5661 | cat >>conftest.$ac_ext <<_ACEOF |
| 5662 | /* end confdefs.h. */ |
| 5663 | $ac_includes_default |
| 5664 | #include <linux/socket.h> |
| 5665 | _ACEOF |
| 5666 | rm -f conftest.$ac_objext |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 5667 | if { (ac_try="$ac_compile" |
| 5668 | case "(($ac_try" in |
| 5669 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5670 | *) ac_try_echo=$ac_try;; |
| 5671 | esac |
| 5672 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5673 | (eval "$ac_compile") 2>conftest.er1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5674 | ac_status=$? |
| 5675 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5676 | rm -f conftest.er1 |
| 5677 | cat conftest.err >&5 |
| 5678 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 5679 | (exit $ac_status); } && { |
| 5680 | test -z "$ac_c_werror_flag" || |
| 5681 | test ! -s conftest.err |
| 5682 | } && test -s conftest.$ac_objext; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5683 | ac_header_compiler=yes |
| 5684 | else |
| 5685 | echo "$as_me: failed program was:" >&5 |
| 5686 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5687 | |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 5688 | ac_header_compiler=no |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5689 | fi |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 5690 | |
| 5691 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5692 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 5693 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5694 | |
| 5695 | # Is the header present? |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 5696 | { echo "$as_me:$LINENO: checking linux/socket.h presence" >&5 |
| 5697 | echo $ECHO_N "checking linux/socket.h presence... $ECHO_C" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5698 | cat >conftest.$ac_ext <<_ACEOF |
| 5699 | /* confdefs.h. */ |
| 5700 | _ACEOF |
| 5701 | cat confdefs.h >>conftest.$ac_ext |
| 5702 | cat >>conftest.$ac_ext <<_ACEOF |
| 5703 | /* end confdefs.h. */ |
| 5704 | #include <linux/socket.h> |
| 5705 | _ACEOF |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 5706 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 5707 | case "(($ac_try" in |
| 5708 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5709 | *) ac_try_echo=$ac_try;; |
| 5710 | esac |
| 5711 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5712 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5713 | ac_status=$? |
| 5714 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5715 | rm -f conftest.er1 |
| 5716 | cat conftest.err >&5 |
| 5717 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 5718 | (exit $ac_status); } >/dev/null && { |
| 5719 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 5720 | test ! -s conftest.err |
| 5721 | }; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5722 | ac_header_preproc=yes |
| 5723 | else |
| 5724 | echo "$as_me: failed program was:" >&5 |
| 5725 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5726 | |
| 5727 | ac_header_preproc=no |
| 5728 | fi |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 5729 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5730 | rm -f conftest.err conftest.$ac_ext |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 5731 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 5732 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5733 | |
| 5734 | # So? What about this header? |
| 5735 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 5736 | yes:no: ) |
| 5737 | { echo "$as_me:$LINENO: WARNING: linux/socket.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 5738 | echo "$as_me: WARNING: linux/socket.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 5739 | { echo "$as_me:$LINENO: WARNING: linux/socket.h: proceeding with the compiler's result" >&5 |
| 5740 | echo "$as_me: WARNING: linux/socket.h: proceeding with the compiler's result" >&2;} |
| 5741 | ac_header_preproc=yes |
| 5742 | ;; |
| 5743 | no:yes:* ) |
| 5744 | { echo "$as_me:$LINENO: WARNING: linux/socket.h: present but cannot be compiled" >&5 |
| 5745 | echo "$as_me: WARNING: linux/socket.h: present but cannot be compiled" >&2;} |
| 5746 | { echo "$as_me:$LINENO: WARNING: linux/socket.h: check for missing prerequisite headers?" >&5 |
| 5747 | echo "$as_me: WARNING: linux/socket.h: check for missing prerequisite headers?" >&2;} |
| 5748 | { echo "$as_me:$LINENO: WARNING: linux/socket.h: see the Autoconf documentation" >&5 |
| 5749 | echo "$as_me: WARNING: linux/socket.h: see the Autoconf documentation" >&2;} |
| 5750 | { echo "$as_me:$LINENO: WARNING: linux/socket.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 5751 | echo "$as_me: WARNING: linux/socket.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 5752 | { echo "$as_me:$LINENO: WARNING: linux/socket.h: proceeding with the preprocessor's result" >&5 |
| 5753 | echo "$as_me: WARNING: linux/socket.h: proceeding with the preprocessor's result" >&2;} |
| 5754 | { echo "$as_me:$LINENO: WARNING: linux/socket.h: in the future, the compiler will take precedence" >&5 |
| 5755 | echo "$as_me: WARNING: linux/socket.h: in the future, the compiler will take precedence" >&2;} |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 5756 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5757 | ;; |
| 5758 | esac |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 5759 | { echo "$as_me:$LINENO: checking for linux/socket.h" >&5 |
| 5760 | echo $ECHO_N "checking for linux/socket.h... $ECHO_C" >&6; } |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 5761 | if test "${ac_cv_header_linux_socket_h+set}" = set; then |
| 5762 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 5763 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5764 | ac_cv_header_linux_socket_h=$ac_header_preproc |
| 5765 | fi |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 5766 | { echo "$as_me:$LINENO: result: $ac_cv_header_linux_socket_h" >&5 |
| 5767 | echo "${ECHO_T}$ac_cv_header_linux_socket_h" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5768 | |
| 5769 | fi |
| 5770 | if test $ac_cv_header_linux_socket_h = yes; then |
| 5771 | cat >>confdefs.h <<\_ACEOF |
| 5772 | #define PJ_HAS_LINUX_SOCKET_H 1 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 5773 | _ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5774 | |
| 5775 | fi |
| 5776 | |
| 5777 | |
| 5778 | if test "${ac_cv_header_malloc_h+set}" = set; then |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 5779 | { echo "$as_me:$LINENO: checking for malloc.h" >&5 |
| 5780 | echo $ECHO_N "checking for malloc.h... $ECHO_C" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5781 | if test "${ac_cv_header_malloc_h+set}" = set; then |
| 5782 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5783 | fi |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 5784 | { echo "$as_me:$LINENO: result: $ac_cv_header_malloc_h" >&5 |
| 5785 | echo "${ECHO_T}$ac_cv_header_malloc_h" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5786 | else |
| 5787 | # Is the header compilable? |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 5788 | { echo "$as_me:$LINENO: checking malloc.h usability" >&5 |
| 5789 | echo $ECHO_N "checking malloc.h usability... $ECHO_C" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5790 | cat >conftest.$ac_ext <<_ACEOF |
| 5791 | /* confdefs.h. */ |
| 5792 | _ACEOF |
| 5793 | cat confdefs.h >>conftest.$ac_ext |
| 5794 | cat >>conftest.$ac_ext <<_ACEOF |
| 5795 | /* end confdefs.h. */ |
| 5796 | $ac_includes_default |
| 5797 | #include <malloc.h> |
| 5798 | _ACEOF |
| 5799 | rm -f conftest.$ac_objext |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 5800 | if { (ac_try="$ac_compile" |
| 5801 | case "(($ac_try" in |
| 5802 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5803 | *) ac_try_echo=$ac_try;; |
| 5804 | esac |
| 5805 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5806 | (eval "$ac_compile") 2>conftest.er1 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 5807 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5808 | grep -v '^ *+' conftest.er1 >conftest.err |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 5809 | rm -f conftest.er1 |
| 5810 | cat conftest.err >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5811 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 5812 | (exit $ac_status); } && { |
| 5813 | test -z "$ac_c_werror_flag" || |
| 5814 | test ! -s conftest.err |
| 5815 | } && test -s conftest.$ac_objext; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5816 | ac_header_compiler=yes |
| 5817 | else |
| 5818 | echo "$as_me: failed program was:" >&5 |
| 5819 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5820 | |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 5821 | ac_header_compiler=no |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5822 | fi |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 5823 | |
| 5824 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5825 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 5826 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5827 | |
| 5828 | # Is the header present? |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 5829 | { echo "$as_me:$LINENO: checking malloc.h presence" >&5 |
| 5830 | echo $ECHO_N "checking malloc.h presence... $ECHO_C" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5831 | cat >conftest.$ac_ext <<_ACEOF |
| 5832 | /* confdefs.h. */ |
| 5833 | _ACEOF |
| 5834 | cat confdefs.h >>conftest.$ac_ext |
| 5835 | cat >>conftest.$ac_ext <<_ACEOF |
| 5836 | /* end confdefs.h. */ |
| 5837 | #include <malloc.h> |
| 5838 | _ACEOF |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 5839 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 5840 | case "(($ac_try" in |
| 5841 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5842 | *) ac_try_echo=$ac_try;; |
| 5843 | esac |
| 5844 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5845 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5846 | ac_status=$? |
| 5847 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5848 | rm -f conftest.er1 |
| 5849 | cat conftest.err >&5 |
| 5850 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 5851 | (exit $ac_status); } >/dev/null && { |
| 5852 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 5853 | test ! -s conftest.err |
| 5854 | }; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5855 | ac_header_preproc=yes |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 5856 | else |
| 5857 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5858 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5859 | |
| 5860 | ac_header_preproc=no |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 5861 | fi |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 5862 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 5863 | rm -f conftest.err conftest.$ac_ext |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 5864 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 5865 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 5866 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5867 | # So? What about this header? |
| 5868 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 5869 | yes:no: ) |
| 5870 | { echo "$as_me:$LINENO: WARNING: malloc.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 5871 | echo "$as_me: WARNING: malloc.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 5872 | { echo "$as_me:$LINENO: WARNING: malloc.h: proceeding with the compiler's result" >&5 |
| 5873 | echo "$as_me: WARNING: malloc.h: proceeding with the compiler's result" >&2;} |
| 5874 | ac_header_preproc=yes |
| 5875 | ;; |
| 5876 | no:yes:* ) |
| 5877 | { echo "$as_me:$LINENO: WARNING: malloc.h: present but cannot be compiled" >&5 |
| 5878 | echo "$as_me: WARNING: malloc.h: present but cannot be compiled" >&2;} |
| 5879 | { echo "$as_me:$LINENO: WARNING: malloc.h: check for missing prerequisite headers?" >&5 |
| 5880 | echo "$as_me: WARNING: malloc.h: check for missing prerequisite headers?" >&2;} |
| 5881 | { echo "$as_me:$LINENO: WARNING: malloc.h: see the Autoconf documentation" >&5 |
| 5882 | echo "$as_me: WARNING: malloc.h: see the Autoconf documentation" >&2;} |
| 5883 | { echo "$as_me:$LINENO: WARNING: malloc.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 5884 | echo "$as_me: WARNING: malloc.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 5885 | { echo "$as_me:$LINENO: WARNING: malloc.h: proceeding with the preprocessor's result" >&5 |
| 5886 | echo "$as_me: WARNING: malloc.h: proceeding with the preprocessor's result" >&2;} |
| 5887 | { echo "$as_me:$LINENO: WARNING: malloc.h: in the future, the compiler will take precedence" >&5 |
| 5888 | echo "$as_me: WARNING: malloc.h: in the future, the compiler will take precedence" >&2;} |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 5889 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5890 | ;; |
| 5891 | esac |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 5892 | { echo "$as_me:$LINENO: checking for malloc.h" >&5 |
| 5893 | echo $ECHO_N "checking for malloc.h... $ECHO_C" >&6; } |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 5894 | if test "${ac_cv_header_malloc_h+set}" = set; then |
| 5895 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 5896 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5897 | ac_cv_header_malloc_h=$ac_header_preproc |
| 5898 | fi |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 5899 | { echo "$as_me:$LINENO: result: $ac_cv_header_malloc_h" >&5 |
| 5900 | echo "${ECHO_T}$ac_cv_header_malloc_h" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5901 | |
| 5902 | fi |
| 5903 | if test $ac_cv_header_malloc_h = yes; then |
| 5904 | cat >>confdefs.h <<\_ACEOF |
| 5905 | #define PJ_HAS_MALLOC_H 1 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 5906 | _ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5907 | |
| 5908 | fi |
| 5909 | |
| 5910 | |
| 5911 | if test "${ac_cv_header_netdb_h+set}" = set; then |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 5912 | { echo "$as_me:$LINENO: checking for netdb.h" >&5 |
| 5913 | echo $ECHO_N "checking for netdb.h... $ECHO_C" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5914 | if test "${ac_cv_header_netdb_h+set}" = set; then |
| 5915 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5916 | fi |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 5917 | { echo "$as_me:$LINENO: result: $ac_cv_header_netdb_h" >&5 |
| 5918 | echo "${ECHO_T}$ac_cv_header_netdb_h" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5919 | else |
| 5920 | # Is the header compilable? |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 5921 | { echo "$as_me:$LINENO: checking netdb.h usability" >&5 |
| 5922 | echo $ECHO_N "checking netdb.h usability... $ECHO_C" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5923 | cat >conftest.$ac_ext <<_ACEOF |
| 5924 | /* confdefs.h. */ |
| 5925 | _ACEOF |
| 5926 | cat confdefs.h >>conftest.$ac_ext |
| 5927 | cat >>conftest.$ac_ext <<_ACEOF |
| 5928 | /* end confdefs.h. */ |
| 5929 | $ac_includes_default |
| 5930 | #include <netdb.h> |
| 5931 | _ACEOF |
| 5932 | rm -f conftest.$ac_objext |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 5933 | if { (ac_try="$ac_compile" |
| 5934 | case "(($ac_try" in |
| 5935 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5936 | *) ac_try_echo=$ac_try;; |
| 5937 | esac |
| 5938 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5939 | (eval "$ac_compile") 2>conftest.er1 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 5940 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5941 | grep -v '^ *+' conftest.er1 >conftest.err |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 5942 | rm -f conftest.er1 |
| 5943 | cat conftest.err >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5944 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 5945 | (exit $ac_status); } && { |
| 5946 | test -z "$ac_c_werror_flag" || |
| 5947 | test ! -s conftest.err |
| 5948 | } && test -s conftest.$ac_objext; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5949 | ac_header_compiler=yes |
| 5950 | else |
| 5951 | echo "$as_me: failed program was:" >&5 |
| 5952 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5953 | |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 5954 | ac_header_compiler=no |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5955 | fi |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 5956 | |
| 5957 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5958 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 5959 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5960 | |
| 5961 | # Is the header present? |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 5962 | { echo "$as_me:$LINENO: checking netdb.h presence" >&5 |
| 5963 | echo $ECHO_N "checking netdb.h presence... $ECHO_C" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5964 | cat >conftest.$ac_ext <<_ACEOF |
| 5965 | /* confdefs.h. */ |
| 5966 | _ACEOF |
| 5967 | cat confdefs.h >>conftest.$ac_ext |
| 5968 | cat >>conftest.$ac_ext <<_ACEOF |
| 5969 | /* end confdefs.h. */ |
| 5970 | #include <netdb.h> |
| 5971 | _ACEOF |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 5972 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 5973 | case "(($ac_try" in |
| 5974 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5975 | *) ac_try_echo=$ac_try;; |
| 5976 | esac |
| 5977 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5978 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5979 | ac_status=$? |
| 5980 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5981 | rm -f conftest.er1 |
| 5982 | cat conftest.err >&5 |
| 5983 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 5984 | (exit $ac_status); } >/dev/null && { |
| 5985 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 5986 | test ! -s conftest.err |
| 5987 | }; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5988 | ac_header_preproc=yes |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 5989 | else |
| 5990 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5991 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5992 | |
| 5993 | ac_header_preproc=no |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 5994 | fi |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 5995 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 5996 | rm -f conftest.err conftest.$ac_ext |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 5997 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 5998 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 5999 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6000 | # So? What about this header? |
| 6001 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 6002 | yes:no: ) |
| 6003 | { echo "$as_me:$LINENO: WARNING: netdb.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 6004 | echo "$as_me: WARNING: netdb.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 6005 | { echo "$as_me:$LINENO: WARNING: netdb.h: proceeding with the compiler's result" >&5 |
| 6006 | echo "$as_me: WARNING: netdb.h: proceeding with the compiler's result" >&2;} |
| 6007 | ac_header_preproc=yes |
| 6008 | ;; |
| 6009 | no:yes:* ) |
| 6010 | { echo "$as_me:$LINENO: WARNING: netdb.h: present but cannot be compiled" >&5 |
| 6011 | echo "$as_me: WARNING: netdb.h: present but cannot be compiled" >&2;} |
| 6012 | { echo "$as_me:$LINENO: WARNING: netdb.h: check for missing prerequisite headers?" >&5 |
| 6013 | echo "$as_me: WARNING: netdb.h: check for missing prerequisite headers?" >&2;} |
| 6014 | { echo "$as_me:$LINENO: WARNING: netdb.h: see the Autoconf documentation" >&5 |
| 6015 | echo "$as_me: WARNING: netdb.h: see the Autoconf documentation" >&2;} |
| 6016 | { echo "$as_me:$LINENO: WARNING: netdb.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 6017 | echo "$as_me: WARNING: netdb.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 6018 | { echo "$as_me:$LINENO: WARNING: netdb.h: proceeding with the preprocessor's result" >&5 |
| 6019 | echo "$as_me: WARNING: netdb.h: proceeding with the preprocessor's result" >&2;} |
| 6020 | { echo "$as_me:$LINENO: WARNING: netdb.h: in the future, the compiler will take precedence" >&5 |
| 6021 | echo "$as_me: WARNING: netdb.h: in the future, the compiler will take precedence" >&2;} |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 6022 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6023 | ;; |
| 6024 | esac |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 6025 | { echo "$as_me:$LINENO: checking for netdb.h" >&5 |
| 6026 | echo $ECHO_N "checking for netdb.h... $ECHO_C" >&6; } |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 6027 | if test "${ac_cv_header_netdb_h+set}" = set; then |
| 6028 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 6029 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6030 | ac_cv_header_netdb_h=$ac_header_preproc |
| 6031 | fi |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 6032 | { echo "$as_me:$LINENO: result: $ac_cv_header_netdb_h" >&5 |
| 6033 | echo "${ECHO_T}$ac_cv_header_netdb_h" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6034 | |
| 6035 | fi |
| 6036 | if test $ac_cv_header_netdb_h = yes; then |
| 6037 | cat >>confdefs.h <<\_ACEOF |
| 6038 | #define PJ_HAS_NETDB_H 1 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 6039 | _ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6040 | |
| 6041 | fi |
| 6042 | |
| 6043 | |
| 6044 | if test "${ac_cv_header_netinet_in_h+set}" = set; then |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 6045 | { echo "$as_me:$LINENO: checking for netinet/in.h" >&5 |
| 6046 | echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6047 | if test "${ac_cv_header_netinet_in_h+set}" = set; then |
| 6048 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6049 | fi |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 6050 | { echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5 |
| 6051 | echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6052 | else |
| 6053 | # Is the header compilable? |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 6054 | { echo "$as_me:$LINENO: checking netinet/in.h usability" >&5 |
| 6055 | echo $ECHO_N "checking netinet/in.h usability... $ECHO_C" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6056 | cat >conftest.$ac_ext <<_ACEOF |
| 6057 | /* confdefs.h. */ |
| 6058 | _ACEOF |
| 6059 | cat confdefs.h >>conftest.$ac_ext |
| 6060 | cat >>conftest.$ac_ext <<_ACEOF |
| 6061 | /* end confdefs.h. */ |
| 6062 | $ac_includes_default |
| 6063 | #include <netinet/in.h> |
| 6064 | _ACEOF |
| 6065 | rm -f conftest.$ac_objext |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 6066 | if { (ac_try="$ac_compile" |
| 6067 | case "(($ac_try" in |
| 6068 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6069 | *) ac_try_echo=$ac_try;; |
| 6070 | esac |
| 6071 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6072 | (eval "$ac_compile") 2>conftest.er1 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6073 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6074 | grep -v '^ *+' conftest.er1 >conftest.err |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6075 | rm -f conftest.er1 |
| 6076 | cat conftest.err >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6077 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 6078 | (exit $ac_status); } && { |
| 6079 | test -z "$ac_c_werror_flag" || |
| 6080 | test ! -s conftest.err |
| 6081 | } && test -s conftest.$ac_objext; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6082 | ac_header_compiler=yes |
| 6083 | else |
| 6084 | echo "$as_me: failed program was:" >&5 |
| 6085 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6086 | |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 6087 | ac_header_compiler=no |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6088 | fi |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 6089 | |
| 6090 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6091 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 6092 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6093 | |
| 6094 | # Is the header present? |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 6095 | { echo "$as_me:$LINENO: checking netinet/in.h presence" >&5 |
| 6096 | echo $ECHO_N "checking netinet/in.h presence... $ECHO_C" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6097 | cat >conftest.$ac_ext <<_ACEOF |
| 6098 | /* confdefs.h. */ |
| 6099 | _ACEOF |
| 6100 | cat confdefs.h >>conftest.$ac_ext |
| 6101 | cat >>conftest.$ac_ext <<_ACEOF |
| 6102 | /* end confdefs.h. */ |
| 6103 | #include <netinet/in.h> |
| 6104 | _ACEOF |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 6105 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 6106 | case "(($ac_try" in |
| 6107 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6108 | *) ac_try_echo=$ac_try;; |
| 6109 | esac |
| 6110 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6111 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6112 | ac_status=$? |
| 6113 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6114 | rm -f conftest.er1 |
| 6115 | cat conftest.err >&5 |
| 6116 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 6117 | (exit $ac_status); } >/dev/null && { |
| 6118 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 6119 | test ! -s conftest.err |
| 6120 | }; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6121 | ac_header_preproc=yes |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6122 | else |
| 6123 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6124 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6125 | |
| 6126 | ac_header_preproc=no |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6127 | fi |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 6128 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6129 | rm -f conftest.err conftest.$ac_ext |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 6130 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 6131 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 6132 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6133 | # So? What about this header? |
| 6134 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 6135 | yes:no: ) |
| 6136 | { echo "$as_me:$LINENO: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 6137 | echo "$as_me: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 6138 | { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the compiler's result" >&5 |
| 6139 | echo "$as_me: WARNING: netinet/in.h: proceeding with the compiler's result" >&2;} |
| 6140 | ac_header_preproc=yes |
| 6141 | ;; |
| 6142 | no:yes:* ) |
| 6143 | { echo "$as_me:$LINENO: WARNING: netinet/in.h: present but cannot be compiled" >&5 |
| 6144 | echo "$as_me: WARNING: netinet/in.h: present but cannot be compiled" >&2;} |
| 6145 | { echo "$as_me:$LINENO: WARNING: netinet/in.h: check for missing prerequisite headers?" >&5 |
| 6146 | echo "$as_me: WARNING: netinet/in.h: check for missing prerequisite headers?" >&2;} |
| 6147 | { echo "$as_me:$LINENO: WARNING: netinet/in.h: see the Autoconf documentation" >&5 |
| 6148 | echo "$as_me: WARNING: netinet/in.h: see the Autoconf documentation" >&2;} |
| 6149 | { echo "$as_me:$LINENO: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 6150 | echo "$as_me: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 6151 | { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&5 |
| 6152 | echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&2;} |
| 6153 | { echo "$as_me:$LINENO: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&5 |
| 6154 | echo "$as_me: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&2;} |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 6155 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6156 | ;; |
| 6157 | esac |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 6158 | { echo "$as_me:$LINENO: checking for netinet/in.h" >&5 |
| 6159 | echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6; } |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 6160 | if test "${ac_cv_header_netinet_in_h+set}" = set; then |
| 6161 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 6162 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6163 | ac_cv_header_netinet_in_h=$ac_header_preproc |
| 6164 | fi |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 6165 | { echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5 |
| 6166 | echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6167 | |
| 6168 | fi |
| 6169 | if test $ac_cv_header_netinet_in_h = yes; then |
| 6170 | cat >>confdefs.h <<\_ACEOF |
| 6171 | #define PJ_HAS_NETINET_IN_H 1 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 6172 | _ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6173 | |
| 6174 | fi |
| 6175 | |
| 6176 | |
Benny Prijono | f63a255 | 2007-02-01 00:36:52 +0000 | [diff] [blame] | 6177 | if test "${ac_cv_header_netinet_ip_h+set}" = set; then |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 6178 | { echo "$as_me:$LINENO: checking for netinet/ip.h" >&5 |
| 6179 | echo $ECHO_N "checking for netinet/ip.h... $ECHO_C" >&6; } |
Benny Prijono | f63a255 | 2007-02-01 00:36:52 +0000 | [diff] [blame] | 6180 | if test "${ac_cv_header_netinet_ip_h+set}" = set; then |
| 6181 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6182 | fi |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 6183 | { echo "$as_me:$LINENO: result: $ac_cv_header_netinet_ip_h" >&5 |
| 6184 | echo "${ECHO_T}$ac_cv_header_netinet_ip_h" >&6; } |
Benny Prijono | f63a255 | 2007-02-01 00:36:52 +0000 | [diff] [blame] | 6185 | else |
| 6186 | # Is the header compilable? |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 6187 | { echo "$as_me:$LINENO: checking netinet/ip.h usability" >&5 |
| 6188 | echo $ECHO_N "checking netinet/ip.h usability... $ECHO_C" >&6; } |
Benny Prijono | f63a255 | 2007-02-01 00:36:52 +0000 | [diff] [blame] | 6189 | cat >conftest.$ac_ext <<_ACEOF |
| 6190 | /* confdefs.h. */ |
| 6191 | _ACEOF |
| 6192 | cat confdefs.h >>conftest.$ac_ext |
| 6193 | cat >>conftest.$ac_ext <<_ACEOF |
| 6194 | /* end confdefs.h. */ |
| 6195 | $ac_includes_default |
| 6196 | #include <netinet/ip.h> |
| 6197 | _ACEOF |
| 6198 | rm -f conftest.$ac_objext |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 6199 | if { (ac_try="$ac_compile" |
| 6200 | case "(($ac_try" in |
| 6201 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6202 | *) ac_try_echo=$ac_try;; |
| 6203 | esac |
| 6204 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6205 | (eval "$ac_compile") 2>conftest.er1 |
Benny Prijono | f63a255 | 2007-02-01 00:36:52 +0000 | [diff] [blame] | 6206 | ac_status=$? |
| 6207 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6208 | rm -f conftest.er1 |
| 6209 | cat conftest.err >&5 |
| 6210 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 6211 | (exit $ac_status); } && { |
| 6212 | test -z "$ac_c_werror_flag" || |
| 6213 | test ! -s conftest.err |
| 6214 | } && test -s conftest.$ac_objext; then |
Benny Prijono | f63a255 | 2007-02-01 00:36:52 +0000 | [diff] [blame] | 6215 | ac_header_compiler=yes |
| 6216 | else |
| 6217 | echo "$as_me: failed program was:" >&5 |
| 6218 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6219 | |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 6220 | ac_header_compiler=no |
Benny Prijono | f63a255 | 2007-02-01 00:36:52 +0000 | [diff] [blame] | 6221 | fi |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 6222 | |
| 6223 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6224 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 6225 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Benny Prijono | f63a255 | 2007-02-01 00:36:52 +0000 | [diff] [blame] | 6226 | |
| 6227 | # Is the header present? |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 6228 | { echo "$as_me:$LINENO: checking netinet/ip.h presence" >&5 |
| 6229 | echo $ECHO_N "checking netinet/ip.h presence... $ECHO_C" >&6; } |
Benny Prijono | f63a255 | 2007-02-01 00:36:52 +0000 | [diff] [blame] | 6230 | cat >conftest.$ac_ext <<_ACEOF |
| 6231 | /* confdefs.h. */ |
| 6232 | _ACEOF |
| 6233 | cat confdefs.h >>conftest.$ac_ext |
| 6234 | cat >>conftest.$ac_ext <<_ACEOF |
| 6235 | /* end confdefs.h. */ |
| 6236 | #include <netinet/ip.h> |
| 6237 | _ACEOF |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 6238 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 6239 | case "(($ac_try" in |
| 6240 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6241 | *) ac_try_echo=$ac_try;; |
| 6242 | esac |
| 6243 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6244 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Benny Prijono | f63a255 | 2007-02-01 00:36:52 +0000 | [diff] [blame] | 6245 | ac_status=$? |
| 6246 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6247 | rm -f conftest.er1 |
| 6248 | cat conftest.err >&5 |
| 6249 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 6250 | (exit $ac_status); } >/dev/null && { |
| 6251 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 6252 | test ! -s conftest.err |
| 6253 | }; then |
Benny Prijono | f63a255 | 2007-02-01 00:36:52 +0000 | [diff] [blame] | 6254 | ac_header_preproc=yes |
| 6255 | else |
| 6256 | echo "$as_me: failed program was:" >&5 |
| 6257 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6258 | |
| 6259 | ac_header_preproc=no |
| 6260 | fi |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 6261 | |
Benny Prijono | f63a255 | 2007-02-01 00:36:52 +0000 | [diff] [blame] | 6262 | rm -f conftest.err conftest.$ac_ext |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 6263 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 6264 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Benny Prijono | f63a255 | 2007-02-01 00:36:52 +0000 | [diff] [blame] | 6265 | |
| 6266 | # So? What about this header? |
| 6267 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 6268 | yes:no: ) |
| 6269 | { echo "$as_me:$LINENO: WARNING: netinet/ip.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 6270 | echo "$as_me: WARNING: netinet/ip.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 6271 | { echo "$as_me:$LINENO: WARNING: netinet/ip.h: proceeding with the compiler's result" >&5 |
| 6272 | echo "$as_me: WARNING: netinet/ip.h: proceeding with the compiler's result" >&2;} |
| 6273 | ac_header_preproc=yes |
| 6274 | ;; |
| 6275 | no:yes:* ) |
| 6276 | { echo "$as_me:$LINENO: WARNING: netinet/ip.h: present but cannot be compiled" >&5 |
| 6277 | echo "$as_me: WARNING: netinet/ip.h: present but cannot be compiled" >&2;} |
| 6278 | { echo "$as_me:$LINENO: WARNING: netinet/ip.h: check for missing prerequisite headers?" >&5 |
| 6279 | echo "$as_me: WARNING: netinet/ip.h: check for missing prerequisite headers?" >&2;} |
| 6280 | { echo "$as_me:$LINENO: WARNING: netinet/ip.h: see the Autoconf documentation" >&5 |
| 6281 | echo "$as_me: WARNING: netinet/ip.h: see the Autoconf documentation" >&2;} |
| 6282 | { echo "$as_me:$LINENO: WARNING: netinet/ip.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 6283 | echo "$as_me: WARNING: netinet/ip.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 6284 | { echo "$as_me:$LINENO: WARNING: netinet/ip.h: proceeding with the preprocessor's result" >&5 |
| 6285 | echo "$as_me: WARNING: netinet/ip.h: proceeding with the preprocessor's result" >&2;} |
| 6286 | { echo "$as_me:$LINENO: WARNING: netinet/ip.h: in the future, the compiler will take precedence" >&5 |
| 6287 | echo "$as_me: WARNING: netinet/ip.h: in the future, the compiler will take precedence" >&2;} |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 6288 | |
Benny Prijono | f63a255 | 2007-02-01 00:36:52 +0000 | [diff] [blame] | 6289 | ;; |
| 6290 | esac |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 6291 | { echo "$as_me:$LINENO: checking for netinet/ip.h" >&5 |
| 6292 | echo $ECHO_N "checking for netinet/ip.h... $ECHO_C" >&6; } |
Benny Prijono | f63a255 | 2007-02-01 00:36:52 +0000 | [diff] [blame] | 6293 | if test "${ac_cv_header_netinet_ip_h+set}" = set; then |
| 6294 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6295 | else |
| 6296 | ac_cv_header_netinet_ip_h=$ac_header_preproc |
| 6297 | fi |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 6298 | { echo "$as_me:$LINENO: result: $ac_cv_header_netinet_ip_h" >&5 |
| 6299 | echo "${ECHO_T}$ac_cv_header_netinet_ip_h" >&6; } |
Benny Prijono | f63a255 | 2007-02-01 00:36:52 +0000 | [diff] [blame] | 6300 | |
| 6301 | fi |
| 6302 | if test $ac_cv_header_netinet_ip_h = yes; then |
| 6303 | cat >>confdefs.h <<\_ACEOF |
| 6304 | #define PJ_HAS_NETINET_IP_H 1 |
| 6305 | _ACEOF |
| 6306 | |
| 6307 | fi |
| 6308 | |
| 6309 | |
Benny Prijono | 0ae59ae | 2007-11-17 10:27:34 +0000 | [diff] [blame] | 6310 | if test "${ac_cv_header_net_if_h+set}" = set; then |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 6311 | { echo "$as_me:$LINENO: checking for net/if.h" >&5 |
| 6312 | echo $ECHO_N "checking for net/if.h... $ECHO_C" >&6; } |
Benny Prijono | 0ae59ae | 2007-11-17 10:27:34 +0000 | [diff] [blame] | 6313 | if test "${ac_cv_header_net_if_h+set}" = set; then |
| 6314 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6315 | fi |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 6316 | { echo "$as_me:$LINENO: result: $ac_cv_header_net_if_h" >&5 |
| 6317 | echo "${ECHO_T}$ac_cv_header_net_if_h" >&6; } |
Benny Prijono | 0ae59ae | 2007-11-17 10:27:34 +0000 | [diff] [blame] | 6318 | else |
| 6319 | # Is the header compilable? |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 6320 | { echo "$as_me:$LINENO: checking net/if.h usability" >&5 |
| 6321 | echo $ECHO_N "checking net/if.h usability... $ECHO_C" >&6; } |
Benny Prijono | 0ae59ae | 2007-11-17 10:27:34 +0000 | [diff] [blame] | 6322 | cat >conftest.$ac_ext <<_ACEOF |
| 6323 | /* confdefs.h. */ |
| 6324 | _ACEOF |
| 6325 | cat confdefs.h >>conftest.$ac_ext |
| 6326 | cat >>conftest.$ac_ext <<_ACEOF |
| 6327 | /* end confdefs.h. */ |
| 6328 | $ac_includes_default |
| 6329 | #include <net/if.h> |
| 6330 | _ACEOF |
| 6331 | rm -f conftest.$ac_objext |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 6332 | if { (ac_try="$ac_compile" |
| 6333 | case "(($ac_try" in |
| 6334 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6335 | *) ac_try_echo=$ac_try;; |
| 6336 | esac |
| 6337 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6338 | (eval "$ac_compile") 2>conftest.er1 |
Benny Prijono | 0ae59ae | 2007-11-17 10:27:34 +0000 | [diff] [blame] | 6339 | ac_status=$? |
| 6340 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6341 | rm -f conftest.er1 |
| 6342 | cat conftest.err >&5 |
| 6343 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 6344 | (exit $ac_status); } && { |
| 6345 | test -z "$ac_c_werror_flag" || |
| 6346 | test ! -s conftest.err |
| 6347 | } && test -s conftest.$ac_objext; then |
Benny Prijono | 0ae59ae | 2007-11-17 10:27:34 +0000 | [diff] [blame] | 6348 | ac_header_compiler=yes |
| 6349 | else |
| 6350 | echo "$as_me: failed program was:" >&5 |
| 6351 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6352 | |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 6353 | ac_header_compiler=no |
Benny Prijono | 0ae59ae | 2007-11-17 10:27:34 +0000 | [diff] [blame] | 6354 | fi |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 6355 | |
| 6356 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6357 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 6358 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Benny Prijono | 0ae59ae | 2007-11-17 10:27:34 +0000 | [diff] [blame] | 6359 | |
| 6360 | # Is the header present? |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 6361 | { echo "$as_me:$LINENO: checking net/if.h presence" >&5 |
| 6362 | echo $ECHO_N "checking net/if.h presence... $ECHO_C" >&6; } |
Benny Prijono | 0ae59ae | 2007-11-17 10:27:34 +0000 | [diff] [blame] | 6363 | cat >conftest.$ac_ext <<_ACEOF |
| 6364 | /* confdefs.h. */ |
| 6365 | _ACEOF |
| 6366 | cat confdefs.h >>conftest.$ac_ext |
| 6367 | cat >>conftest.$ac_ext <<_ACEOF |
| 6368 | /* end confdefs.h. */ |
| 6369 | #include <net/if.h> |
| 6370 | _ACEOF |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 6371 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 6372 | case "(($ac_try" in |
| 6373 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6374 | *) ac_try_echo=$ac_try;; |
| 6375 | esac |
| 6376 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6377 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Benny Prijono | 0ae59ae | 2007-11-17 10:27:34 +0000 | [diff] [blame] | 6378 | ac_status=$? |
| 6379 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6380 | rm -f conftest.er1 |
| 6381 | cat conftest.err >&5 |
| 6382 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 6383 | (exit $ac_status); } >/dev/null && { |
| 6384 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 6385 | test ! -s conftest.err |
| 6386 | }; then |
Benny Prijono | 0ae59ae | 2007-11-17 10:27:34 +0000 | [diff] [blame] | 6387 | ac_header_preproc=yes |
| 6388 | else |
| 6389 | echo "$as_me: failed program was:" >&5 |
| 6390 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6391 | |
| 6392 | ac_header_preproc=no |
| 6393 | fi |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 6394 | |
Benny Prijono | 0ae59ae | 2007-11-17 10:27:34 +0000 | [diff] [blame] | 6395 | rm -f conftest.err conftest.$ac_ext |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 6396 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 6397 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Benny Prijono | 0ae59ae | 2007-11-17 10:27:34 +0000 | [diff] [blame] | 6398 | |
| 6399 | # So? What about this header? |
| 6400 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 6401 | yes:no: ) |
| 6402 | { echo "$as_me:$LINENO: WARNING: net/if.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 6403 | echo "$as_me: WARNING: net/if.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 6404 | { echo "$as_me:$LINENO: WARNING: net/if.h: proceeding with the compiler's result" >&5 |
| 6405 | echo "$as_me: WARNING: net/if.h: proceeding with the compiler's result" >&2;} |
| 6406 | ac_header_preproc=yes |
| 6407 | ;; |
| 6408 | no:yes:* ) |
| 6409 | { echo "$as_me:$LINENO: WARNING: net/if.h: present but cannot be compiled" >&5 |
| 6410 | echo "$as_me: WARNING: net/if.h: present but cannot be compiled" >&2;} |
| 6411 | { echo "$as_me:$LINENO: WARNING: net/if.h: check for missing prerequisite headers?" >&5 |
| 6412 | echo "$as_me: WARNING: net/if.h: check for missing prerequisite headers?" >&2;} |
| 6413 | { echo "$as_me:$LINENO: WARNING: net/if.h: see the Autoconf documentation" >&5 |
| 6414 | echo "$as_me: WARNING: net/if.h: see the Autoconf documentation" >&2;} |
| 6415 | { echo "$as_me:$LINENO: WARNING: net/if.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 6416 | echo "$as_me: WARNING: net/if.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 6417 | { echo "$as_me:$LINENO: WARNING: net/if.h: proceeding with the preprocessor's result" >&5 |
| 6418 | echo "$as_me: WARNING: net/if.h: proceeding with the preprocessor's result" >&2;} |
| 6419 | { echo "$as_me:$LINENO: WARNING: net/if.h: in the future, the compiler will take precedence" >&5 |
| 6420 | echo "$as_me: WARNING: net/if.h: in the future, the compiler will take precedence" >&2;} |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 6421 | |
Benny Prijono | 0ae59ae | 2007-11-17 10:27:34 +0000 | [diff] [blame] | 6422 | ;; |
| 6423 | esac |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 6424 | { echo "$as_me:$LINENO: checking for net/if.h" >&5 |
| 6425 | echo $ECHO_N "checking for net/if.h... $ECHO_C" >&6; } |
Benny Prijono | 0ae59ae | 2007-11-17 10:27:34 +0000 | [diff] [blame] | 6426 | if test "${ac_cv_header_net_if_h+set}" = set; then |
| 6427 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6428 | else |
| 6429 | ac_cv_header_net_if_h=$ac_header_preproc |
| 6430 | fi |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 6431 | { echo "$as_me:$LINENO: result: $ac_cv_header_net_if_h" >&5 |
| 6432 | echo "${ECHO_T}$ac_cv_header_net_if_h" >&6; } |
Benny Prijono | 0ae59ae | 2007-11-17 10:27:34 +0000 | [diff] [blame] | 6433 | |
| 6434 | fi |
| 6435 | if test $ac_cv_header_net_if_h = yes; then |
| 6436 | cat >>confdefs.h <<\_ACEOF |
| 6437 | #define PJ_HAS_NET_IF_H 1 |
| 6438 | _ACEOF |
| 6439 | |
| 6440 | fi |
| 6441 | |
| 6442 | |
Benny Prijono | 1d65f70 | 2007-12-03 04:03:17 +0000 | [diff] [blame] | 6443 | if test "${ac_cv_header_ifaddrs_h+set}" = set; then |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 6444 | { echo "$as_me:$LINENO: checking for ifaddrs.h" >&5 |
| 6445 | echo $ECHO_N "checking for ifaddrs.h... $ECHO_C" >&6; } |
Benny Prijono | 1d65f70 | 2007-12-03 04:03:17 +0000 | [diff] [blame] | 6446 | if test "${ac_cv_header_ifaddrs_h+set}" = set; then |
| 6447 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6448 | fi |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 6449 | { echo "$as_me:$LINENO: result: $ac_cv_header_ifaddrs_h" >&5 |
| 6450 | echo "${ECHO_T}$ac_cv_header_ifaddrs_h" >&6; } |
Benny Prijono | 1d65f70 | 2007-12-03 04:03:17 +0000 | [diff] [blame] | 6451 | else |
| 6452 | # Is the header compilable? |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 6453 | { echo "$as_me:$LINENO: checking ifaddrs.h usability" >&5 |
| 6454 | echo $ECHO_N "checking ifaddrs.h usability... $ECHO_C" >&6; } |
Benny Prijono | 1d65f70 | 2007-12-03 04:03:17 +0000 | [diff] [blame] | 6455 | cat >conftest.$ac_ext <<_ACEOF |
| 6456 | /* confdefs.h. */ |
| 6457 | _ACEOF |
| 6458 | cat confdefs.h >>conftest.$ac_ext |
| 6459 | cat >>conftest.$ac_ext <<_ACEOF |
| 6460 | /* end confdefs.h. */ |
| 6461 | $ac_includes_default |
| 6462 | #include <ifaddrs.h> |
| 6463 | _ACEOF |
| 6464 | rm -f conftest.$ac_objext |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 6465 | if { (ac_try="$ac_compile" |
| 6466 | case "(($ac_try" in |
| 6467 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6468 | *) ac_try_echo=$ac_try;; |
| 6469 | esac |
| 6470 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6471 | (eval "$ac_compile") 2>conftest.er1 |
Benny Prijono | 1d65f70 | 2007-12-03 04:03:17 +0000 | [diff] [blame] | 6472 | ac_status=$? |
| 6473 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6474 | rm -f conftest.er1 |
| 6475 | cat conftest.err >&5 |
| 6476 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 6477 | (exit $ac_status); } && { |
| 6478 | test -z "$ac_c_werror_flag" || |
| 6479 | test ! -s conftest.err |
| 6480 | } && test -s conftest.$ac_objext; then |
Benny Prijono | 1d65f70 | 2007-12-03 04:03:17 +0000 | [diff] [blame] | 6481 | ac_header_compiler=yes |
| 6482 | else |
| 6483 | echo "$as_me: failed program was:" >&5 |
| 6484 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6485 | |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 6486 | ac_header_compiler=no |
Benny Prijono | 1d65f70 | 2007-12-03 04:03:17 +0000 | [diff] [blame] | 6487 | fi |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 6488 | |
| 6489 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6490 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 6491 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Benny Prijono | 1d65f70 | 2007-12-03 04:03:17 +0000 | [diff] [blame] | 6492 | |
| 6493 | # Is the header present? |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 6494 | { echo "$as_me:$LINENO: checking ifaddrs.h presence" >&5 |
| 6495 | echo $ECHO_N "checking ifaddrs.h presence... $ECHO_C" >&6; } |
Benny Prijono | 1d65f70 | 2007-12-03 04:03:17 +0000 | [diff] [blame] | 6496 | cat >conftest.$ac_ext <<_ACEOF |
| 6497 | /* confdefs.h. */ |
| 6498 | _ACEOF |
| 6499 | cat confdefs.h >>conftest.$ac_ext |
| 6500 | cat >>conftest.$ac_ext <<_ACEOF |
| 6501 | /* end confdefs.h. */ |
| 6502 | #include <ifaddrs.h> |
| 6503 | _ACEOF |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 6504 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 6505 | case "(($ac_try" in |
| 6506 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6507 | *) ac_try_echo=$ac_try;; |
| 6508 | esac |
| 6509 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6510 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Benny Prijono | 1d65f70 | 2007-12-03 04:03:17 +0000 | [diff] [blame] | 6511 | ac_status=$? |
| 6512 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6513 | rm -f conftest.er1 |
| 6514 | cat conftest.err >&5 |
| 6515 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 6516 | (exit $ac_status); } >/dev/null && { |
| 6517 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 6518 | test ! -s conftest.err |
| 6519 | }; then |
Benny Prijono | 1d65f70 | 2007-12-03 04:03:17 +0000 | [diff] [blame] | 6520 | ac_header_preproc=yes |
| 6521 | else |
| 6522 | echo "$as_me: failed program was:" >&5 |
| 6523 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6524 | |
| 6525 | ac_header_preproc=no |
| 6526 | fi |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 6527 | |
Benny Prijono | 1d65f70 | 2007-12-03 04:03:17 +0000 | [diff] [blame] | 6528 | rm -f conftest.err conftest.$ac_ext |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 6529 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 6530 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Benny Prijono | 1d65f70 | 2007-12-03 04:03:17 +0000 | [diff] [blame] | 6531 | |
| 6532 | # So? What about this header? |
| 6533 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 6534 | yes:no: ) |
| 6535 | { echo "$as_me:$LINENO: WARNING: ifaddrs.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 6536 | echo "$as_me: WARNING: ifaddrs.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 6537 | { echo "$as_me:$LINENO: WARNING: ifaddrs.h: proceeding with the compiler's result" >&5 |
| 6538 | echo "$as_me: WARNING: ifaddrs.h: proceeding with the compiler's result" >&2;} |
| 6539 | ac_header_preproc=yes |
| 6540 | ;; |
| 6541 | no:yes:* ) |
| 6542 | { echo "$as_me:$LINENO: WARNING: ifaddrs.h: present but cannot be compiled" >&5 |
| 6543 | echo "$as_me: WARNING: ifaddrs.h: present but cannot be compiled" >&2;} |
| 6544 | { echo "$as_me:$LINENO: WARNING: ifaddrs.h: check for missing prerequisite headers?" >&5 |
| 6545 | echo "$as_me: WARNING: ifaddrs.h: check for missing prerequisite headers?" >&2;} |
| 6546 | { echo "$as_me:$LINENO: WARNING: ifaddrs.h: see the Autoconf documentation" >&5 |
| 6547 | echo "$as_me: WARNING: ifaddrs.h: see the Autoconf documentation" >&2;} |
| 6548 | { echo "$as_me:$LINENO: WARNING: ifaddrs.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 6549 | echo "$as_me: WARNING: ifaddrs.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 6550 | { echo "$as_me:$LINENO: WARNING: ifaddrs.h: proceeding with the preprocessor's result" >&5 |
| 6551 | echo "$as_me: WARNING: ifaddrs.h: proceeding with the preprocessor's result" >&2;} |
| 6552 | { echo "$as_me:$LINENO: WARNING: ifaddrs.h: in the future, the compiler will take precedence" >&5 |
| 6553 | echo "$as_me: WARNING: ifaddrs.h: in the future, the compiler will take precedence" >&2;} |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 6554 | |
Benny Prijono | 1d65f70 | 2007-12-03 04:03:17 +0000 | [diff] [blame] | 6555 | ;; |
| 6556 | esac |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 6557 | { echo "$as_me:$LINENO: checking for ifaddrs.h" >&5 |
| 6558 | echo $ECHO_N "checking for ifaddrs.h... $ECHO_C" >&6; } |
Benny Prijono | 1d65f70 | 2007-12-03 04:03:17 +0000 | [diff] [blame] | 6559 | if test "${ac_cv_header_ifaddrs_h+set}" = set; then |
| 6560 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6561 | else |
| 6562 | ac_cv_header_ifaddrs_h=$ac_header_preproc |
| 6563 | fi |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 6564 | { echo "$as_me:$LINENO: result: $ac_cv_header_ifaddrs_h" >&5 |
| 6565 | echo "${ECHO_T}$ac_cv_header_ifaddrs_h" >&6; } |
Benny Prijono | 1d65f70 | 2007-12-03 04:03:17 +0000 | [diff] [blame] | 6566 | |
| 6567 | fi |
| 6568 | if test $ac_cv_header_ifaddrs_h = yes; then |
| 6569 | cat >>confdefs.h <<\_ACEOF |
| 6570 | #define PJ_HAS_IFADDRS_H 1 |
| 6571 | _ACEOF |
| 6572 | |
| 6573 | fi |
| 6574 | |
| 6575 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6576 | if test "${ac_cv_header_setjmp_h+set}" = set; then |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 6577 | { echo "$as_me:$LINENO: checking for setjmp.h" >&5 |
| 6578 | echo $ECHO_N "checking for setjmp.h... $ECHO_C" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6579 | if test "${ac_cv_header_setjmp_h+set}" = set; then |
| 6580 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6581 | fi |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 6582 | { echo "$as_me:$LINENO: result: $ac_cv_header_setjmp_h" >&5 |
| 6583 | echo "${ECHO_T}$ac_cv_header_setjmp_h" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6584 | else |
| 6585 | # Is the header compilable? |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 6586 | { echo "$as_me:$LINENO: checking setjmp.h usability" >&5 |
| 6587 | echo $ECHO_N "checking setjmp.h usability... $ECHO_C" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6588 | cat >conftest.$ac_ext <<_ACEOF |
| 6589 | /* confdefs.h. */ |
| 6590 | _ACEOF |
| 6591 | cat confdefs.h >>conftest.$ac_ext |
| 6592 | cat >>conftest.$ac_ext <<_ACEOF |
| 6593 | /* end confdefs.h. */ |
| 6594 | $ac_includes_default |
| 6595 | #include <setjmp.h> |
| 6596 | _ACEOF |
| 6597 | rm -f conftest.$ac_objext |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 6598 | if { (ac_try="$ac_compile" |
| 6599 | case "(($ac_try" in |
| 6600 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6601 | *) ac_try_echo=$ac_try;; |
| 6602 | esac |
| 6603 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6604 | (eval "$ac_compile") 2>conftest.er1 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6605 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6606 | grep -v '^ *+' conftest.er1 >conftest.err |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6607 | rm -f conftest.er1 |
| 6608 | cat conftest.err >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6609 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 6610 | (exit $ac_status); } && { |
| 6611 | test -z "$ac_c_werror_flag" || |
| 6612 | test ! -s conftest.err |
| 6613 | } && test -s conftest.$ac_objext; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6614 | ac_header_compiler=yes |
| 6615 | else |
| 6616 | echo "$as_me: failed program was:" >&5 |
| 6617 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6618 | |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 6619 | ac_header_compiler=no |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6620 | fi |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 6621 | |
| 6622 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6623 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 6624 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6625 | |
| 6626 | # Is the header present? |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 6627 | { echo "$as_me:$LINENO: checking setjmp.h presence" >&5 |
| 6628 | echo $ECHO_N "checking setjmp.h presence... $ECHO_C" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6629 | cat >conftest.$ac_ext <<_ACEOF |
| 6630 | /* confdefs.h. */ |
| 6631 | _ACEOF |
| 6632 | cat confdefs.h >>conftest.$ac_ext |
| 6633 | cat >>conftest.$ac_ext <<_ACEOF |
| 6634 | /* end confdefs.h. */ |
| 6635 | #include <setjmp.h> |
| 6636 | _ACEOF |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 6637 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 6638 | case "(($ac_try" in |
| 6639 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6640 | *) ac_try_echo=$ac_try;; |
| 6641 | esac |
| 6642 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6643 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6644 | ac_status=$? |
| 6645 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6646 | rm -f conftest.er1 |
| 6647 | cat conftest.err >&5 |
| 6648 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 6649 | (exit $ac_status); } >/dev/null && { |
| 6650 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 6651 | test ! -s conftest.err |
| 6652 | }; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6653 | ac_header_preproc=yes |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6654 | else |
| 6655 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6656 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6657 | |
| 6658 | ac_header_preproc=no |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6659 | fi |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 6660 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6661 | rm -f conftest.err conftest.$ac_ext |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 6662 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 6663 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 6664 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6665 | # So? What about this header? |
| 6666 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 6667 | yes:no: ) |
| 6668 | { echo "$as_me:$LINENO: WARNING: setjmp.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 6669 | echo "$as_me: WARNING: setjmp.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 6670 | { echo "$as_me:$LINENO: WARNING: setjmp.h: proceeding with the compiler's result" >&5 |
| 6671 | echo "$as_me: WARNING: setjmp.h: proceeding with the compiler's result" >&2;} |
| 6672 | ac_header_preproc=yes |
| 6673 | ;; |
| 6674 | no:yes:* ) |
| 6675 | { echo "$as_me:$LINENO: WARNING: setjmp.h: present but cannot be compiled" >&5 |
| 6676 | echo "$as_me: WARNING: setjmp.h: present but cannot be compiled" >&2;} |
| 6677 | { echo "$as_me:$LINENO: WARNING: setjmp.h: check for missing prerequisite headers?" >&5 |
| 6678 | echo "$as_me: WARNING: setjmp.h: check for missing prerequisite headers?" >&2;} |
| 6679 | { echo "$as_me:$LINENO: WARNING: setjmp.h: see the Autoconf documentation" >&5 |
| 6680 | echo "$as_me: WARNING: setjmp.h: see the Autoconf documentation" >&2;} |
| 6681 | { echo "$as_me:$LINENO: WARNING: setjmp.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 6682 | echo "$as_me: WARNING: setjmp.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 6683 | { echo "$as_me:$LINENO: WARNING: setjmp.h: proceeding with the preprocessor's result" >&5 |
| 6684 | echo "$as_me: WARNING: setjmp.h: proceeding with the preprocessor's result" >&2;} |
| 6685 | { echo "$as_me:$LINENO: WARNING: setjmp.h: in the future, the compiler will take precedence" >&5 |
| 6686 | echo "$as_me: WARNING: setjmp.h: in the future, the compiler will take precedence" >&2;} |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 6687 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6688 | ;; |
| 6689 | esac |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 6690 | { echo "$as_me:$LINENO: checking for setjmp.h" >&5 |
| 6691 | echo $ECHO_N "checking for setjmp.h... $ECHO_C" >&6; } |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 6692 | if test "${ac_cv_header_setjmp_h+set}" = set; then |
| 6693 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 6694 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6695 | ac_cv_header_setjmp_h=$ac_header_preproc |
| 6696 | fi |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 6697 | { echo "$as_me:$LINENO: result: $ac_cv_header_setjmp_h" >&5 |
| 6698 | echo "${ECHO_T}$ac_cv_header_setjmp_h" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6699 | |
| 6700 | fi |
| 6701 | if test $ac_cv_header_setjmp_h = yes; then |
| 6702 | cat >>confdefs.h <<\_ACEOF |
| 6703 | #define PJ_HAS_SETJMP_H 1 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 6704 | _ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6705 | |
| 6706 | fi |
| 6707 | |
| 6708 | |
| 6709 | if test "${ac_cv_header_stdarg_h+set}" = set; then |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 6710 | { echo "$as_me:$LINENO: checking for stdarg.h" >&5 |
| 6711 | echo $ECHO_N "checking for stdarg.h... $ECHO_C" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6712 | if test "${ac_cv_header_stdarg_h+set}" = set; then |
| 6713 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6714 | fi |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 6715 | { echo "$as_me:$LINENO: result: $ac_cv_header_stdarg_h" >&5 |
| 6716 | echo "${ECHO_T}$ac_cv_header_stdarg_h" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6717 | else |
| 6718 | # Is the header compilable? |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 6719 | { echo "$as_me:$LINENO: checking stdarg.h usability" >&5 |
| 6720 | echo $ECHO_N "checking stdarg.h usability... $ECHO_C" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6721 | cat >conftest.$ac_ext <<_ACEOF |
| 6722 | /* confdefs.h. */ |
| 6723 | _ACEOF |
| 6724 | cat confdefs.h >>conftest.$ac_ext |
| 6725 | cat >>conftest.$ac_ext <<_ACEOF |
| 6726 | /* end confdefs.h. */ |
| 6727 | $ac_includes_default |
| 6728 | #include <stdarg.h> |
| 6729 | _ACEOF |
| 6730 | rm -f conftest.$ac_objext |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 6731 | if { (ac_try="$ac_compile" |
| 6732 | case "(($ac_try" in |
| 6733 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6734 | *) ac_try_echo=$ac_try;; |
| 6735 | esac |
| 6736 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6737 | (eval "$ac_compile") 2>conftest.er1 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6738 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6739 | grep -v '^ *+' conftest.er1 >conftest.err |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6740 | rm -f conftest.er1 |
| 6741 | cat conftest.err >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6742 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 6743 | (exit $ac_status); } && { |
| 6744 | test -z "$ac_c_werror_flag" || |
| 6745 | test ! -s conftest.err |
| 6746 | } && test -s conftest.$ac_objext; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6747 | ac_header_compiler=yes |
| 6748 | else |
| 6749 | echo "$as_me: failed program was:" >&5 |
| 6750 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6751 | |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 6752 | ac_header_compiler=no |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6753 | fi |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 6754 | |
| 6755 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6756 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 6757 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6758 | |
| 6759 | # Is the header present? |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 6760 | { echo "$as_me:$LINENO: checking stdarg.h presence" >&5 |
| 6761 | echo $ECHO_N "checking stdarg.h presence... $ECHO_C" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6762 | cat >conftest.$ac_ext <<_ACEOF |
| 6763 | /* confdefs.h. */ |
| 6764 | _ACEOF |
| 6765 | cat confdefs.h >>conftest.$ac_ext |
| 6766 | cat >>conftest.$ac_ext <<_ACEOF |
| 6767 | /* end confdefs.h. */ |
| 6768 | #include <stdarg.h> |
| 6769 | _ACEOF |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 6770 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 6771 | case "(($ac_try" in |
| 6772 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6773 | *) ac_try_echo=$ac_try;; |
| 6774 | esac |
| 6775 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6776 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6777 | ac_status=$? |
| 6778 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6779 | rm -f conftest.er1 |
| 6780 | cat conftest.err >&5 |
| 6781 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 6782 | (exit $ac_status); } >/dev/null && { |
| 6783 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 6784 | test ! -s conftest.err |
| 6785 | }; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6786 | ac_header_preproc=yes |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6787 | else |
| 6788 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6789 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6790 | |
| 6791 | ac_header_preproc=no |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6792 | fi |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 6793 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6794 | rm -f conftest.err conftest.$ac_ext |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 6795 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 6796 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 6797 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6798 | # So? What about this header? |
| 6799 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 6800 | yes:no: ) |
| 6801 | { echo "$as_me:$LINENO: WARNING: stdarg.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 6802 | echo "$as_me: WARNING: stdarg.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 6803 | { echo "$as_me:$LINENO: WARNING: stdarg.h: proceeding with the compiler's result" >&5 |
| 6804 | echo "$as_me: WARNING: stdarg.h: proceeding with the compiler's result" >&2;} |
| 6805 | ac_header_preproc=yes |
| 6806 | ;; |
| 6807 | no:yes:* ) |
| 6808 | { echo "$as_me:$LINENO: WARNING: stdarg.h: present but cannot be compiled" >&5 |
| 6809 | echo "$as_me: WARNING: stdarg.h: present but cannot be compiled" >&2;} |
| 6810 | { echo "$as_me:$LINENO: WARNING: stdarg.h: check for missing prerequisite headers?" >&5 |
| 6811 | echo "$as_me: WARNING: stdarg.h: check for missing prerequisite headers?" >&2;} |
| 6812 | { echo "$as_me:$LINENO: WARNING: stdarg.h: see the Autoconf documentation" >&5 |
| 6813 | echo "$as_me: WARNING: stdarg.h: see the Autoconf documentation" >&2;} |
| 6814 | { echo "$as_me:$LINENO: WARNING: stdarg.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 6815 | echo "$as_me: WARNING: stdarg.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 6816 | { echo "$as_me:$LINENO: WARNING: stdarg.h: proceeding with the preprocessor's result" >&5 |
| 6817 | echo "$as_me: WARNING: stdarg.h: proceeding with the preprocessor's result" >&2;} |
| 6818 | { echo "$as_me:$LINENO: WARNING: stdarg.h: in the future, the compiler will take precedence" >&5 |
| 6819 | echo "$as_me: WARNING: stdarg.h: in the future, the compiler will take precedence" >&2;} |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 6820 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6821 | ;; |
| 6822 | esac |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 6823 | { echo "$as_me:$LINENO: checking for stdarg.h" >&5 |
| 6824 | echo $ECHO_N "checking for stdarg.h... $ECHO_C" >&6; } |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 6825 | if test "${ac_cv_header_stdarg_h+set}" = set; then |
| 6826 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 6827 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6828 | ac_cv_header_stdarg_h=$ac_header_preproc |
| 6829 | fi |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 6830 | { echo "$as_me:$LINENO: result: $ac_cv_header_stdarg_h" >&5 |
| 6831 | echo "${ECHO_T}$ac_cv_header_stdarg_h" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6832 | |
| 6833 | fi |
| 6834 | if test $ac_cv_header_stdarg_h = yes; then |
| 6835 | cat >>confdefs.h <<\_ACEOF |
| 6836 | #define PJ_HAS_STDARG_H 1 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 6837 | _ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6838 | |
| 6839 | fi |
| 6840 | |
| 6841 | |
| 6842 | if test "${ac_cv_header_stddef_h+set}" = set; then |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 6843 | { echo "$as_me:$LINENO: checking for stddef.h" >&5 |
| 6844 | echo $ECHO_N "checking for stddef.h... $ECHO_C" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6845 | if test "${ac_cv_header_stddef_h+set}" = set; then |
| 6846 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6847 | fi |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 6848 | { echo "$as_me:$LINENO: result: $ac_cv_header_stddef_h" >&5 |
| 6849 | echo "${ECHO_T}$ac_cv_header_stddef_h" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6850 | else |
| 6851 | # Is the header compilable? |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 6852 | { echo "$as_me:$LINENO: checking stddef.h usability" >&5 |
| 6853 | echo $ECHO_N "checking stddef.h usability... $ECHO_C" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6854 | cat >conftest.$ac_ext <<_ACEOF |
| 6855 | /* confdefs.h. */ |
| 6856 | _ACEOF |
| 6857 | cat confdefs.h >>conftest.$ac_ext |
| 6858 | cat >>conftest.$ac_ext <<_ACEOF |
| 6859 | /* end confdefs.h. */ |
| 6860 | $ac_includes_default |
| 6861 | #include <stddef.h> |
| 6862 | _ACEOF |
| 6863 | rm -f conftest.$ac_objext |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 6864 | if { (ac_try="$ac_compile" |
| 6865 | case "(($ac_try" in |
| 6866 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6867 | *) ac_try_echo=$ac_try;; |
| 6868 | esac |
| 6869 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6870 | (eval "$ac_compile") 2>conftest.er1 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6871 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6872 | grep -v '^ *+' conftest.er1 >conftest.err |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6873 | rm -f conftest.er1 |
| 6874 | cat conftest.err >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6875 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 6876 | (exit $ac_status); } && { |
| 6877 | test -z "$ac_c_werror_flag" || |
| 6878 | test ! -s conftest.err |
| 6879 | } && test -s conftest.$ac_objext; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6880 | ac_header_compiler=yes |
| 6881 | else |
| 6882 | echo "$as_me: failed program was:" >&5 |
| 6883 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6884 | |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 6885 | ac_header_compiler=no |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6886 | fi |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 6887 | |
| 6888 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6889 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 6890 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6891 | |
| 6892 | # Is the header present? |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 6893 | { echo "$as_me:$LINENO: checking stddef.h presence" >&5 |
| 6894 | echo $ECHO_N "checking stddef.h presence... $ECHO_C" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6895 | cat >conftest.$ac_ext <<_ACEOF |
| 6896 | /* confdefs.h. */ |
| 6897 | _ACEOF |
| 6898 | cat confdefs.h >>conftest.$ac_ext |
| 6899 | cat >>conftest.$ac_ext <<_ACEOF |
| 6900 | /* end confdefs.h. */ |
| 6901 | #include <stddef.h> |
| 6902 | _ACEOF |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 6903 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 6904 | case "(($ac_try" in |
| 6905 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6906 | *) ac_try_echo=$ac_try;; |
| 6907 | esac |
| 6908 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6909 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6910 | ac_status=$? |
| 6911 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6912 | rm -f conftest.er1 |
| 6913 | cat conftest.err >&5 |
| 6914 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 6915 | (exit $ac_status); } >/dev/null && { |
| 6916 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 6917 | test ! -s conftest.err |
| 6918 | }; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6919 | ac_header_preproc=yes |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6920 | else |
| 6921 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6922 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6923 | |
| 6924 | ac_header_preproc=no |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6925 | fi |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 6926 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6927 | rm -f conftest.err conftest.$ac_ext |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 6928 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 6929 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 6930 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6931 | # So? What about this header? |
| 6932 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 6933 | yes:no: ) |
| 6934 | { echo "$as_me:$LINENO: WARNING: stddef.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 6935 | echo "$as_me: WARNING: stddef.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 6936 | { echo "$as_me:$LINENO: WARNING: stddef.h: proceeding with the compiler's result" >&5 |
| 6937 | echo "$as_me: WARNING: stddef.h: proceeding with the compiler's result" >&2;} |
| 6938 | ac_header_preproc=yes |
| 6939 | ;; |
| 6940 | no:yes:* ) |
| 6941 | { echo "$as_me:$LINENO: WARNING: stddef.h: present but cannot be compiled" >&5 |
| 6942 | echo "$as_me: WARNING: stddef.h: present but cannot be compiled" >&2;} |
| 6943 | { echo "$as_me:$LINENO: WARNING: stddef.h: check for missing prerequisite headers?" >&5 |
| 6944 | echo "$as_me: WARNING: stddef.h: check for missing prerequisite headers?" >&2;} |
| 6945 | { echo "$as_me:$LINENO: WARNING: stddef.h: see the Autoconf documentation" >&5 |
| 6946 | echo "$as_me: WARNING: stddef.h: see the Autoconf documentation" >&2;} |
| 6947 | { echo "$as_me:$LINENO: WARNING: stddef.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 6948 | echo "$as_me: WARNING: stddef.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 6949 | { echo "$as_me:$LINENO: WARNING: stddef.h: proceeding with the preprocessor's result" >&5 |
| 6950 | echo "$as_me: WARNING: stddef.h: proceeding with the preprocessor's result" >&2;} |
| 6951 | { echo "$as_me:$LINENO: WARNING: stddef.h: in the future, the compiler will take precedence" >&5 |
| 6952 | echo "$as_me: WARNING: stddef.h: in the future, the compiler will take precedence" >&2;} |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 6953 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6954 | ;; |
| 6955 | esac |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 6956 | { echo "$as_me:$LINENO: checking for stddef.h" >&5 |
| 6957 | echo $ECHO_N "checking for stddef.h... $ECHO_C" >&6; } |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 6958 | if test "${ac_cv_header_stddef_h+set}" = set; then |
| 6959 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 6960 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6961 | ac_cv_header_stddef_h=$ac_header_preproc |
| 6962 | fi |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 6963 | { echo "$as_me:$LINENO: result: $ac_cv_header_stddef_h" >&5 |
| 6964 | echo "${ECHO_T}$ac_cv_header_stddef_h" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6965 | |
| 6966 | fi |
| 6967 | if test $ac_cv_header_stddef_h = yes; then |
| 6968 | cat >>confdefs.h <<\_ACEOF |
| 6969 | #define PJ_HAS_STDDEF_H 1 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 6970 | _ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6971 | |
| 6972 | fi |
| 6973 | |
| 6974 | |
| 6975 | if test "${ac_cv_header_stdio_h+set}" = set; then |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 6976 | { echo "$as_me:$LINENO: checking for stdio.h" >&5 |
| 6977 | echo $ECHO_N "checking for stdio.h... $ECHO_C" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6978 | if test "${ac_cv_header_stdio_h+set}" = set; then |
| 6979 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6980 | fi |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 6981 | { echo "$as_me:$LINENO: result: $ac_cv_header_stdio_h" >&5 |
| 6982 | echo "${ECHO_T}$ac_cv_header_stdio_h" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6983 | else |
| 6984 | # Is the header compilable? |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 6985 | { echo "$as_me:$LINENO: checking stdio.h usability" >&5 |
| 6986 | echo $ECHO_N "checking stdio.h usability... $ECHO_C" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6987 | cat >conftest.$ac_ext <<_ACEOF |
| 6988 | /* confdefs.h. */ |
| 6989 | _ACEOF |
| 6990 | cat confdefs.h >>conftest.$ac_ext |
| 6991 | cat >>conftest.$ac_ext <<_ACEOF |
| 6992 | /* end confdefs.h. */ |
| 6993 | $ac_includes_default |
| 6994 | #include <stdio.h> |
| 6995 | _ACEOF |
| 6996 | rm -f conftest.$ac_objext |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 6997 | if { (ac_try="$ac_compile" |
| 6998 | case "(($ac_try" in |
| 6999 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7000 | *) ac_try_echo=$ac_try;; |
| 7001 | esac |
| 7002 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7003 | (eval "$ac_compile") 2>conftest.er1 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7004 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7005 | grep -v '^ *+' conftest.er1 >conftest.err |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7006 | rm -f conftest.er1 |
| 7007 | cat conftest.err >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7008 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 7009 | (exit $ac_status); } && { |
| 7010 | test -z "$ac_c_werror_flag" || |
| 7011 | test ! -s conftest.err |
| 7012 | } && test -s conftest.$ac_objext; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7013 | ac_header_compiler=yes |
| 7014 | else |
| 7015 | echo "$as_me: failed program was:" >&5 |
| 7016 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7017 | |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 7018 | ac_header_compiler=no |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7019 | fi |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 7020 | |
| 7021 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7022 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 7023 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7024 | |
| 7025 | # Is the header present? |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 7026 | { echo "$as_me:$LINENO: checking stdio.h presence" >&5 |
| 7027 | echo $ECHO_N "checking stdio.h presence... $ECHO_C" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7028 | cat >conftest.$ac_ext <<_ACEOF |
| 7029 | /* confdefs.h. */ |
| 7030 | _ACEOF |
| 7031 | cat confdefs.h >>conftest.$ac_ext |
| 7032 | cat >>conftest.$ac_ext <<_ACEOF |
| 7033 | /* end confdefs.h. */ |
| 7034 | #include <stdio.h> |
| 7035 | _ACEOF |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 7036 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 7037 | case "(($ac_try" in |
| 7038 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7039 | *) ac_try_echo=$ac_try;; |
| 7040 | esac |
| 7041 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7042 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7043 | ac_status=$? |
| 7044 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7045 | rm -f conftest.er1 |
| 7046 | cat conftest.err >&5 |
| 7047 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 7048 | (exit $ac_status); } >/dev/null && { |
| 7049 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 7050 | test ! -s conftest.err |
| 7051 | }; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7052 | ac_header_preproc=yes |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7053 | else |
| 7054 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7055 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7056 | |
| 7057 | ac_header_preproc=no |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7058 | fi |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 7059 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7060 | rm -f conftest.err conftest.$ac_ext |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 7061 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 7062 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 7063 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7064 | # So? What about this header? |
| 7065 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 7066 | yes:no: ) |
| 7067 | { echo "$as_me:$LINENO: WARNING: stdio.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 7068 | echo "$as_me: WARNING: stdio.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 7069 | { echo "$as_me:$LINENO: WARNING: stdio.h: proceeding with the compiler's result" >&5 |
| 7070 | echo "$as_me: WARNING: stdio.h: proceeding with the compiler's result" >&2;} |
| 7071 | ac_header_preproc=yes |
| 7072 | ;; |
| 7073 | no:yes:* ) |
| 7074 | { echo "$as_me:$LINENO: WARNING: stdio.h: present but cannot be compiled" >&5 |
| 7075 | echo "$as_me: WARNING: stdio.h: present but cannot be compiled" >&2;} |
| 7076 | { echo "$as_me:$LINENO: WARNING: stdio.h: check for missing prerequisite headers?" >&5 |
| 7077 | echo "$as_me: WARNING: stdio.h: check for missing prerequisite headers?" >&2;} |
| 7078 | { echo "$as_me:$LINENO: WARNING: stdio.h: see the Autoconf documentation" >&5 |
| 7079 | echo "$as_me: WARNING: stdio.h: see the Autoconf documentation" >&2;} |
| 7080 | { echo "$as_me:$LINENO: WARNING: stdio.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 7081 | echo "$as_me: WARNING: stdio.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 7082 | { echo "$as_me:$LINENO: WARNING: stdio.h: proceeding with the preprocessor's result" >&5 |
| 7083 | echo "$as_me: WARNING: stdio.h: proceeding with the preprocessor's result" >&2;} |
| 7084 | { echo "$as_me:$LINENO: WARNING: stdio.h: in the future, the compiler will take precedence" >&5 |
| 7085 | echo "$as_me: WARNING: stdio.h: in the future, the compiler will take precedence" >&2;} |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 7086 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7087 | ;; |
| 7088 | esac |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 7089 | { echo "$as_me:$LINENO: checking for stdio.h" >&5 |
| 7090 | echo $ECHO_N "checking for stdio.h... $ECHO_C" >&6; } |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 7091 | if test "${ac_cv_header_stdio_h+set}" = set; then |
| 7092 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 7093 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7094 | ac_cv_header_stdio_h=$ac_header_preproc |
| 7095 | fi |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 7096 | { echo "$as_me:$LINENO: result: $ac_cv_header_stdio_h" >&5 |
| 7097 | echo "${ECHO_T}$ac_cv_header_stdio_h" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7098 | |
| 7099 | fi |
| 7100 | if test $ac_cv_header_stdio_h = yes; then |
| 7101 | cat >>confdefs.h <<\_ACEOF |
| 7102 | #define PJ_HAS_STDIO_H 1 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 7103 | _ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7104 | |
| 7105 | fi |
| 7106 | |
| 7107 | |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 7108 | if test "${ac_cv_header_stdint_h+set}" = set; then |
| 7109 | { echo "$as_me:$LINENO: checking for stdint.h" >&5 |
| 7110 | echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6; } |
| 7111 | if test "${ac_cv_header_stdint_h+set}" = set; then |
| 7112 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7113 | fi |
| 7114 | { echo "$as_me:$LINENO: result: $ac_cv_header_stdint_h" >&5 |
| 7115 | echo "${ECHO_T}$ac_cv_header_stdint_h" >&6; } |
| 7116 | else |
| 7117 | # Is the header compilable? |
| 7118 | { echo "$as_me:$LINENO: checking stdint.h usability" >&5 |
| 7119 | echo $ECHO_N "checking stdint.h usability... $ECHO_C" >&6; } |
| 7120 | cat >conftest.$ac_ext <<_ACEOF |
| 7121 | /* confdefs.h. */ |
| 7122 | _ACEOF |
| 7123 | cat confdefs.h >>conftest.$ac_ext |
| 7124 | cat >>conftest.$ac_ext <<_ACEOF |
| 7125 | /* end confdefs.h. */ |
| 7126 | $ac_includes_default |
| 7127 | #include <stdint.h> |
| 7128 | _ACEOF |
| 7129 | rm -f conftest.$ac_objext |
| 7130 | if { (ac_try="$ac_compile" |
| 7131 | case "(($ac_try" in |
| 7132 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7133 | *) ac_try_echo=$ac_try;; |
| 7134 | esac |
| 7135 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7136 | (eval "$ac_compile") 2>conftest.er1 |
| 7137 | ac_status=$? |
| 7138 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7139 | rm -f conftest.er1 |
| 7140 | cat conftest.err >&5 |
| 7141 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7142 | (exit $ac_status); } && { |
| 7143 | test -z "$ac_c_werror_flag" || |
| 7144 | test ! -s conftest.err |
| 7145 | } && test -s conftest.$ac_objext; then |
| 7146 | ac_header_compiler=yes |
| 7147 | else |
| 7148 | echo "$as_me: failed program was:" >&5 |
| 7149 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7150 | |
| 7151 | ac_header_compiler=no |
| 7152 | fi |
| 7153 | |
| 7154 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7155 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 7156 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 7157 | |
| 7158 | # Is the header present? |
| 7159 | { echo "$as_me:$LINENO: checking stdint.h presence" >&5 |
| 7160 | echo $ECHO_N "checking stdint.h presence... $ECHO_C" >&6; } |
| 7161 | cat >conftest.$ac_ext <<_ACEOF |
| 7162 | /* confdefs.h. */ |
| 7163 | _ACEOF |
| 7164 | cat confdefs.h >>conftest.$ac_ext |
| 7165 | cat >>conftest.$ac_ext <<_ACEOF |
| 7166 | /* end confdefs.h. */ |
| 7167 | #include <stdint.h> |
| 7168 | _ACEOF |
| 7169 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 7170 | case "(($ac_try" in |
| 7171 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7172 | *) ac_try_echo=$ac_try;; |
| 7173 | esac |
| 7174 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7175 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 7176 | ac_status=$? |
| 7177 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7178 | rm -f conftest.er1 |
| 7179 | cat conftest.err >&5 |
| 7180 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7181 | (exit $ac_status); } >/dev/null && { |
| 7182 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 7183 | test ! -s conftest.err |
| 7184 | }; then |
| 7185 | ac_header_preproc=yes |
| 7186 | else |
| 7187 | echo "$as_me: failed program was:" >&5 |
| 7188 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7189 | |
| 7190 | ac_header_preproc=no |
| 7191 | fi |
| 7192 | |
| 7193 | rm -f conftest.err conftest.$ac_ext |
| 7194 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 7195 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 7196 | |
| 7197 | # So? What about this header? |
| 7198 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 7199 | yes:no: ) |
| 7200 | { echo "$as_me:$LINENO: WARNING: stdint.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 7201 | echo "$as_me: WARNING: stdint.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 7202 | { echo "$as_me:$LINENO: WARNING: stdint.h: proceeding with the compiler's result" >&5 |
| 7203 | echo "$as_me: WARNING: stdint.h: proceeding with the compiler's result" >&2;} |
| 7204 | ac_header_preproc=yes |
| 7205 | ;; |
| 7206 | no:yes:* ) |
| 7207 | { echo "$as_me:$LINENO: WARNING: stdint.h: present but cannot be compiled" >&5 |
| 7208 | echo "$as_me: WARNING: stdint.h: present but cannot be compiled" >&2;} |
| 7209 | { echo "$as_me:$LINENO: WARNING: stdint.h: check for missing prerequisite headers?" >&5 |
| 7210 | echo "$as_me: WARNING: stdint.h: check for missing prerequisite headers?" >&2;} |
| 7211 | { echo "$as_me:$LINENO: WARNING: stdint.h: see the Autoconf documentation" >&5 |
| 7212 | echo "$as_me: WARNING: stdint.h: see the Autoconf documentation" >&2;} |
| 7213 | { echo "$as_me:$LINENO: WARNING: stdint.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 7214 | echo "$as_me: WARNING: stdint.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 7215 | { echo "$as_me:$LINENO: WARNING: stdint.h: proceeding with the preprocessor's result" >&5 |
| 7216 | echo "$as_me: WARNING: stdint.h: proceeding with the preprocessor's result" >&2;} |
| 7217 | { echo "$as_me:$LINENO: WARNING: stdint.h: in the future, the compiler will take precedence" >&5 |
| 7218 | echo "$as_me: WARNING: stdint.h: in the future, the compiler will take precedence" >&2;} |
| 7219 | |
| 7220 | ;; |
| 7221 | esac |
| 7222 | { echo "$as_me:$LINENO: checking for stdint.h" >&5 |
| 7223 | echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6; } |
| 7224 | if test "${ac_cv_header_stdint_h+set}" = set; then |
| 7225 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7226 | else |
| 7227 | ac_cv_header_stdint_h=$ac_header_preproc |
| 7228 | fi |
| 7229 | { echo "$as_me:$LINENO: result: $ac_cv_header_stdint_h" >&5 |
| 7230 | echo "${ECHO_T}$ac_cv_header_stdint_h" >&6; } |
| 7231 | |
| 7232 | fi |
| 7233 | if test $ac_cv_header_stdint_h = yes; then |
| 7234 | cat >>confdefs.h <<\_ACEOF |
| 7235 | #define PJ_HAS_STDINT_H 1 |
| 7236 | _ACEOF |
| 7237 | |
| 7238 | fi |
| 7239 | |
| 7240 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7241 | if test "${ac_cv_header_stdlib_h+set}" = set; then |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 7242 | { echo "$as_me:$LINENO: checking for stdlib.h" >&5 |
| 7243 | echo $ECHO_N "checking for stdlib.h... $ECHO_C" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7244 | if test "${ac_cv_header_stdlib_h+set}" = set; then |
| 7245 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7246 | fi |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 7247 | { echo "$as_me:$LINENO: result: $ac_cv_header_stdlib_h" >&5 |
| 7248 | echo "${ECHO_T}$ac_cv_header_stdlib_h" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7249 | else |
| 7250 | # Is the header compilable? |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 7251 | { echo "$as_me:$LINENO: checking stdlib.h usability" >&5 |
| 7252 | echo $ECHO_N "checking stdlib.h usability... $ECHO_C" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7253 | cat >conftest.$ac_ext <<_ACEOF |
| 7254 | /* confdefs.h. */ |
| 7255 | _ACEOF |
| 7256 | cat confdefs.h >>conftest.$ac_ext |
| 7257 | cat >>conftest.$ac_ext <<_ACEOF |
| 7258 | /* end confdefs.h. */ |
| 7259 | $ac_includes_default |
| 7260 | #include <stdlib.h> |
| 7261 | _ACEOF |
| 7262 | rm -f conftest.$ac_objext |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 7263 | if { (ac_try="$ac_compile" |
| 7264 | case "(($ac_try" in |
| 7265 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7266 | *) ac_try_echo=$ac_try;; |
| 7267 | esac |
| 7268 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7269 | (eval "$ac_compile") 2>conftest.er1 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7270 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7271 | grep -v '^ *+' conftest.er1 >conftest.err |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7272 | rm -f conftest.er1 |
| 7273 | cat conftest.err >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7274 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 7275 | (exit $ac_status); } && { |
| 7276 | test -z "$ac_c_werror_flag" || |
| 7277 | test ! -s conftest.err |
| 7278 | } && test -s conftest.$ac_objext; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7279 | ac_header_compiler=yes |
| 7280 | else |
| 7281 | echo "$as_me: failed program was:" >&5 |
| 7282 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7283 | |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 7284 | ac_header_compiler=no |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7285 | fi |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 7286 | |
| 7287 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7288 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 7289 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7290 | |
| 7291 | # Is the header present? |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 7292 | { echo "$as_me:$LINENO: checking stdlib.h presence" >&5 |
| 7293 | echo $ECHO_N "checking stdlib.h presence... $ECHO_C" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7294 | cat >conftest.$ac_ext <<_ACEOF |
| 7295 | /* confdefs.h. */ |
| 7296 | _ACEOF |
| 7297 | cat confdefs.h >>conftest.$ac_ext |
| 7298 | cat >>conftest.$ac_ext <<_ACEOF |
| 7299 | /* end confdefs.h. */ |
| 7300 | #include <stdlib.h> |
| 7301 | _ACEOF |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 7302 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 7303 | case "(($ac_try" in |
| 7304 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7305 | *) ac_try_echo=$ac_try;; |
| 7306 | esac |
| 7307 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7308 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7309 | ac_status=$? |
| 7310 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7311 | rm -f conftest.er1 |
| 7312 | cat conftest.err >&5 |
| 7313 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 7314 | (exit $ac_status); } >/dev/null && { |
| 7315 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 7316 | test ! -s conftest.err |
| 7317 | }; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7318 | ac_header_preproc=yes |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7319 | else |
| 7320 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7321 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7322 | |
| 7323 | ac_header_preproc=no |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7324 | fi |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 7325 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7326 | rm -f conftest.err conftest.$ac_ext |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 7327 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 7328 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 7329 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7330 | # So? What about this header? |
| 7331 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 7332 | yes:no: ) |
| 7333 | { echo "$as_me:$LINENO: WARNING: stdlib.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 7334 | echo "$as_me: WARNING: stdlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 7335 | { echo "$as_me:$LINENO: WARNING: stdlib.h: proceeding with the compiler's result" >&5 |
| 7336 | echo "$as_me: WARNING: stdlib.h: proceeding with the compiler's result" >&2;} |
| 7337 | ac_header_preproc=yes |
| 7338 | ;; |
| 7339 | no:yes:* ) |
| 7340 | { echo "$as_me:$LINENO: WARNING: stdlib.h: present but cannot be compiled" >&5 |
| 7341 | echo "$as_me: WARNING: stdlib.h: present but cannot be compiled" >&2;} |
| 7342 | { echo "$as_me:$LINENO: WARNING: stdlib.h: check for missing prerequisite headers?" >&5 |
| 7343 | echo "$as_me: WARNING: stdlib.h: check for missing prerequisite headers?" >&2;} |
| 7344 | { echo "$as_me:$LINENO: WARNING: stdlib.h: see the Autoconf documentation" >&5 |
| 7345 | echo "$as_me: WARNING: stdlib.h: see the Autoconf documentation" >&2;} |
| 7346 | { echo "$as_me:$LINENO: WARNING: stdlib.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 7347 | echo "$as_me: WARNING: stdlib.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 7348 | { echo "$as_me:$LINENO: WARNING: stdlib.h: proceeding with the preprocessor's result" >&5 |
| 7349 | echo "$as_me: WARNING: stdlib.h: proceeding with the preprocessor's result" >&2;} |
| 7350 | { echo "$as_me:$LINENO: WARNING: stdlib.h: in the future, the compiler will take precedence" >&5 |
| 7351 | echo "$as_me: WARNING: stdlib.h: in the future, the compiler will take precedence" >&2;} |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 7352 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7353 | ;; |
| 7354 | esac |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 7355 | { echo "$as_me:$LINENO: checking for stdlib.h" >&5 |
| 7356 | echo $ECHO_N "checking for stdlib.h... $ECHO_C" >&6; } |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 7357 | if test "${ac_cv_header_stdlib_h+set}" = set; then |
| 7358 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 7359 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7360 | ac_cv_header_stdlib_h=$ac_header_preproc |
| 7361 | fi |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 7362 | { echo "$as_me:$LINENO: result: $ac_cv_header_stdlib_h" >&5 |
| 7363 | echo "${ECHO_T}$ac_cv_header_stdlib_h" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7364 | |
| 7365 | fi |
| 7366 | if test $ac_cv_header_stdlib_h = yes; then |
| 7367 | cat >>confdefs.h <<\_ACEOF |
| 7368 | #define PJ_HAS_STDLIB_H 1 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 7369 | _ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7370 | |
| 7371 | fi |
| 7372 | |
| 7373 | |
| 7374 | if test "${ac_cv_header_string_h+set}" = set; then |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 7375 | { echo "$as_me:$LINENO: checking for string.h" >&5 |
| 7376 | echo $ECHO_N "checking for string.h... $ECHO_C" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7377 | if test "${ac_cv_header_string_h+set}" = set; then |
| 7378 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7379 | fi |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 7380 | { echo "$as_me:$LINENO: result: $ac_cv_header_string_h" >&5 |
| 7381 | echo "${ECHO_T}$ac_cv_header_string_h" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7382 | else |
| 7383 | # Is the header compilable? |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 7384 | { echo "$as_me:$LINENO: checking string.h usability" >&5 |
| 7385 | echo $ECHO_N "checking string.h usability... $ECHO_C" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7386 | cat >conftest.$ac_ext <<_ACEOF |
| 7387 | /* confdefs.h. */ |
| 7388 | _ACEOF |
| 7389 | cat confdefs.h >>conftest.$ac_ext |
| 7390 | cat >>conftest.$ac_ext <<_ACEOF |
| 7391 | /* end confdefs.h. */ |
| 7392 | $ac_includes_default |
| 7393 | #include <string.h> |
| 7394 | _ACEOF |
| 7395 | rm -f conftest.$ac_objext |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 7396 | if { (ac_try="$ac_compile" |
| 7397 | case "(($ac_try" in |
| 7398 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7399 | *) ac_try_echo=$ac_try;; |
| 7400 | esac |
| 7401 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7402 | (eval "$ac_compile") 2>conftest.er1 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7403 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7404 | grep -v '^ *+' conftest.er1 >conftest.err |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7405 | rm -f conftest.er1 |
| 7406 | cat conftest.err >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7407 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 7408 | (exit $ac_status); } && { |
| 7409 | test -z "$ac_c_werror_flag" || |
| 7410 | test ! -s conftest.err |
| 7411 | } && test -s conftest.$ac_objext; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7412 | ac_header_compiler=yes |
| 7413 | else |
| 7414 | echo "$as_me: failed program was:" >&5 |
| 7415 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7416 | |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 7417 | ac_header_compiler=no |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7418 | fi |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 7419 | |
| 7420 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7421 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 7422 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7423 | |
| 7424 | # Is the header present? |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 7425 | { echo "$as_me:$LINENO: checking string.h presence" >&5 |
| 7426 | echo $ECHO_N "checking string.h presence... $ECHO_C" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7427 | cat >conftest.$ac_ext <<_ACEOF |
| 7428 | /* confdefs.h. */ |
| 7429 | _ACEOF |
| 7430 | cat confdefs.h >>conftest.$ac_ext |
| 7431 | cat >>conftest.$ac_ext <<_ACEOF |
| 7432 | /* end confdefs.h. */ |
| 7433 | #include <string.h> |
| 7434 | _ACEOF |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 7435 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 7436 | case "(($ac_try" in |
| 7437 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7438 | *) ac_try_echo=$ac_try;; |
| 7439 | esac |
| 7440 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7441 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7442 | ac_status=$? |
| 7443 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7444 | rm -f conftest.er1 |
| 7445 | cat conftest.err >&5 |
| 7446 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 7447 | (exit $ac_status); } >/dev/null && { |
| 7448 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 7449 | test ! -s conftest.err |
| 7450 | }; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7451 | ac_header_preproc=yes |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7452 | else |
| 7453 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7454 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7455 | |
| 7456 | ac_header_preproc=no |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7457 | fi |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 7458 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7459 | rm -f conftest.err conftest.$ac_ext |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 7460 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 7461 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 7462 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7463 | # So? What about this header? |
| 7464 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 7465 | yes:no: ) |
| 7466 | { echo "$as_me:$LINENO: WARNING: string.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 7467 | echo "$as_me: WARNING: string.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 7468 | { echo "$as_me:$LINENO: WARNING: string.h: proceeding with the compiler's result" >&5 |
| 7469 | echo "$as_me: WARNING: string.h: proceeding with the compiler's result" >&2;} |
| 7470 | ac_header_preproc=yes |
| 7471 | ;; |
| 7472 | no:yes:* ) |
| 7473 | { echo "$as_me:$LINENO: WARNING: string.h: present but cannot be compiled" >&5 |
| 7474 | echo "$as_me: WARNING: string.h: present but cannot be compiled" >&2;} |
| 7475 | { echo "$as_me:$LINENO: WARNING: string.h: check for missing prerequisite headers?" >&5 |
| 7476 | echo "$as_me: WARNING: string.h: check for missing prerequisite headers?" >&2;} |
| 7477 | { echo "$as_me:$LINENO: WARNING: string.h: see the Autoconf documentation" >&5 |
| 7478 | echo "$as_me: WARNING: string.h: see the Autoconf documentation" >&2;} |
| 7479 | { echo "$as_me:$LINENO: WARNING: string.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 7480 | echo "$as_me: WARNING: string.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 7481 | { echo "$as_me:$LINENO: WARNING: string.h: proceeding with the preprocessor's result" >&5 |
| 7482 | echo "$as_me: WARNING: string.h: proceeding with the preprocessor's result" >&2;} |
| 7483 | { echo "$as_me:$LINENO: WARNING: string.h: in the future, the compiler will take precedence" >&5 |
| 7484 | echo "$as_me: WARNING: string.h: in the future, the compiler will take precedence" >&2;} |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 7485 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7486 | ;; |
| 7487 | esac |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 7488 | { echo "$as_me:$LINENO: checking for string.h" >&5 |
| 7489 | echo $ECHO_N "checking for string.h... $ECHO_C" >&6; } |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 7490 | if test "${ac_cv_header_string_h+set}" = set; then |
| 7491 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 7492 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7493 | ac_cv_header_string_h=$ac_header_preproc |
| 7494 | fi |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 7495 | { echo "$as_me:$LINENO: result: $ac_cv_header_string_h" >&5 |
| 7496 | echo "${ECHO_T}$ac_cv_header_string_h" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7497 | |
| 7498 | fi |
| 7499 | if test $ac_cv_header_string_h = yes; then |
| 7500 | cat >>confdefs.h <<\_ACEOF |
| 7501 | #define PJ_HAS_STRING_H 1 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 7502 | _ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7503 | |
| 7504 | fi |
| 7505 | |
| 7506 | |
| 7507 | if test "${ac_cv_header_sys_ioctl_h+set}" = set; then |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 7508 | { echo "$as_me:$LINENO: checking for sys/ioctl.h" >&5 |
| 7509 | echo $ECHO_N "checking for sys/ioctl.h... $ECHO_C" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7510 | if test "${ac_cv_header_sys_ioctl_h+set}" = set; then |
| 7511 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7512 | fi |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 7513 | { echo "$as_me:$LINENO: result: $ac_cv_header_sys_ioctl_h" >&5 |
| 7514 | echo "${ECHO_T}$ac_cv_header_sys_ioctl_h" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7515 | else |
| 7516 | # Is the header compilable? |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 7517 | { echo "$as_me:$LINENO: checking sys/ioctl.h usability" >&5 |
| 7518 | echo $ECHO_N "checking sys/ioctl.h usability... $ECHO_C" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7519 | cat >conftest.$ac_ext <<_ACEOF |
| 7520 | /* confdefs.h. */ |
| 7521 | _ACEOF |
| 7522 | cat confdefs.h >>conftest.$ac_ext |
| 7523 | cat >>conftest.$ac_ext <<_ACEOF |
| 7524 | /* end confdefs.h. */ |
| 7525 | $ac_includes_default |
| 7526 | #include <sys/ioctl.h> |
| 7527 | _ACEOF |
| 7528 | rm -f conftest.$ac_objext |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 7529 | if { (ac_try="$ac_compile" |
| 7530 | case "(($ac_try" in |
| 7531 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7532 | *) ac_try_echo=$ac_try;; |
| 7533 | esac |
| 7534 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7535 | (eval "$ac_compile") 2>conftest.er1 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7536 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7537 | grep -v '^ *+' conftest.er1 >conftest.err |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7538 | rm -f conftest.er1 |
| 7539 | cat conftest.err >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7540 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 7541 | (exit $ac_status); } && { |
| 7542 | test -z "$ac_c_werror_flag" || |
| 7543 | test ! -s conftest.err |
| 7544 | } && test -s conftest.$ac_objext; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7545 | ac_header_compiler=yes |
| 7546 | else |
| 7547 | echo "$as_me: failed program was:" >&5 |
| 7548 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7549 | |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 7550 | ac_header_compiler=no |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7551 | fi |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 7552 | |
| 7553 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7554 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 7555 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7556 | |
| 7557 | # Is the header present? |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 7558 | { echo "$as_me:$LINENO: checking sys/ioctl.h presence" >&5 |
| 7559 | echo $ECHO_N "checking sys/ioctl.h presence... $ECHO_C" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7560 | cat >conftest.$ac_ext <<_ACEOF |
| 7561 | /* confdefs.h. */ |
| 7562 | _ACEOF |
| 7563 | cat confdefs.h >>conftest.$ac_ext |
| 7564 | cat >>conftest.$ac_ext <<_ACEOF |
| 7565 | /* end confdefs.h. */ |
| 7566 | #include <sys/ioctl.h> |
| 7567 | _ACEOF |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 7568 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 7569 | case "(($ac_try" in |
| 7570 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7571 | *) ac_try_echo=$ac_try;; |
| 7572 | esac |
| 7573 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7574 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7575 | ac_status=$? |
| 7576 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7577 | rm -f conftest.er1 |
| 7578 | cat conftest.err >&5 |
| 7579 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 7580 | (exit $ac_status); } >/dev/null && { |
| 7581 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 7582 | test ! -s conftest.err |
| 7583 | }; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7584 | ac_header_preproc=yes |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7585 | else |
| 7586 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7587 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7588 | |
| 7589 | ac_header_preproc=no |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7590 | fi |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 7591 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7592 | rm -f conftest.err conftest.$ac_ext |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 7593 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 7594 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 7595 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7596 | # So? What about this header? |
| 7597 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 7598 | yes:no: ) |
| 7599 | { echo "$as_me:$LINENO: WARNING: sys/ioctl.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 7600 | echo "$as_me: WARNING: sys/ioctl.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 7601 | { echo "$as_me:$LINENO: WARNING: sys/ioctl.h: proceeding with the compiler's result" >&5 |
| 7602 | echo "$as_me: WARNING: sys/ioctl.h: proceeding with the compiler's result" >&2;} |
| 7603 | ac_header_preproc=yes |
| 7604 | ;; |
| 7605 | no:yes:* ) |
| 7606 | { echo "$as_me:$LINENO: WARNING: sys/ioctl.h: present but cannot be compiled" >&5 |
| 7607 | echo "$as_me: WARNING: sys/ioctl.h: present but cannot be compiled" >&2;} |
| 7608 | { echo "$as_me:$LINENO: WARNING: sys/ioctl.h: check for missing prerequisite headers?" >&5 |
| 7609 | echo "$as_me: WARNING: sys/ioctl.h: check for missing prerequisite headers?" >&2;} |
| 7610 | { echo "$as_me:$LINENO: WARNING: sys/ioctl.h: see the Autoconf documentation" >&5 |
| 7611 | echo "$as_me: WARNING: sys/ioctl.h: see the Autoconf documentation" >&2;} |
| 7612 | { echo "$as_me:$LINENO: WARNING: sys/ioctl.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 7613 | echo "$as_me: WARNING: sys/ioctl.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 7614 | { echo "$as_me:$LINENO: WARNING: sys/ioctl.h: proceeding with the preprocessor's result" >&5 |
| 7615 | echo "$as_me: WARNING: sys/ioctl.h: proceeding with the preprocessor's result" >&2;} |
| 7616 | { echo "$as_me:$LINENO: WARNING: sys/ioctl.h: in the future, the compiler will take precedence" >&5 |
| 7617 | echo "$as_me: WARNING: sys/ioctl.h: in the future, the compiler will take precedence" >&2;} |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 7618 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7619 | ;; |
| 7620 | esac |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 7621 | { echo "$as_me:$LINENO: checking for sys/ioctl.h" >&5 |
| 7622 | echo $ECHO_N "checking for sys/ioctl.h... $ECHO_C" >&6; } |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 7623 | if test "${ac_cv_header_sys_ioctl_h+set}" = set; then |
| 7624 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 7625 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7626 | ac_cv_header_sys_ioctl_h=$ac_header_preproc |
| 7627 | fi |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 7628 | { echo "$as_me:$LINENO: result: $ac_cv_header_sys_ioctl_h" >&5 |
| 7629 | echo "${ECHO_T}$ac_cv_header_sys_ioctl_h" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7630 | |
| 7631 | fi |
| 7632 | if test $ac_cv_header_sys_ioctl_h = yes; then |
| 7633 | cat >>confdefs.h <<\_ACEOF |
| 7634 | #define PJ_HAS_SYS_IOCTL_H 1 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 7635 | _ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7636 | |
| 7637 | fi |
| 7638 | |
| 7639 | |
| 7640 | if test "${ac_cv_header_sys_select_h+set}" = set; then |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 7641 | { echo "$as_me:$LINENO: checking for sys/select.h" >&5 |
| 7642 | echo $ECHO_N "checking for sys/select.h... $ECHO_C" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7643 | if test "${ac_cv_header_sys_select_h+set}" = set; then |
| 7644 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7645 | fi |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 7646 | { echo "$as_me:$LINENO: result: $ac_cv_header_sys_select_h" >&5 |
| 7647 | echo "${ECHO_T}$ac_cv_header_sys_select_h" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7648 | else |
| 7649 | # Is the header compilable? |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 7650 | { echo "$as_me:$LINENO: checking sys/select.h usability" >&5 |
| 7651 | echo $ECHO_N "checking sys/select.h usability... $ECHO_C" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7652 | cat >conftest.$ac_ext <<_ACEOF |
| 7653 | /* confdefs.h. */ |
| 7654 | _ACEOF |
| 7655 | cat confdefs.h >>conftest.$ac_ext |
| 7656 | cat >>conftest.$ac_ext <<_ACEOF |
| 7657 | /* end confdefs.h. */ |
| 7658 | $ac_includes_default |
| 7659 | #include <sys/select.h> |
| 7660 | _ACEOF |
| 7661 | rm -f conftest.$ac_objext |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 7662 | if { (ac_try="$ac_compile" |
| 7663 | case "(($ac_try" in |
| 7664 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7665 | *) ac_try_echo=$ac_try;; |
| 7666 | esac |
| 7667 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7668 | (eval "$ac_compile") 2>conftest.er1 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7669 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7670 | grep -v '^ *+' conftest.er1 >conftest.err |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7671 | rm -f conftest.er1 |
| 7672 | cat conftest.err >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7673 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 7674 | (exit $ac_status); } && { |
| 7675 | test -z "$ac_c_werror_flag" || |
| 7676 | test ! -s conftest.err |
| 7677 | } && test -s conftest.$ac_objext; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7678 | ac_header_compiler=yes |
| 7679 | else |
| 7680 | echo "$as_me: failed program was:" >&5 |
| 7681 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7682 | |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 7683 | ac_header_compiler=no |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7684 | fi |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 7685 | |
| 7686 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7687 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 7688 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7689 | |
| 7690 | # Is the header present? |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 7691 | { echo "$as_me:$LINENO: checking sys/select.h presence" >&5 |
| 7692 | echo $ECHO_N "checking sys/select.h presence... $ECHO_C" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7693 | cat >conftest.$ac_ext <<_ACEOF |
| 7694 | /* confdefs.h. */ |
| 7695 | _ACEOF |
| 7696 | cat confdefs.h >>conftest.$ac_ext |
| 7697 | cat >>conftest.$ac_ext <<_ACEOF |
| 7698 | /* end confdefs.h. */ |
| 7699 | #include <sys/select.h> |
| 7700 | _ACEOF |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 7701 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 7702 | case "(($ac_try" in |
| 7703 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7704 | *) ac_try_echo=$ac_try;; |
| 7705 | esac |
| 7706 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7707 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7708 | ac_status=$? |
| 7709 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7710 | rm -f conftest.er1 |
| 7711 | cat conftest.err >&5 |
| 7712 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 7713 | (exit $ac_status); } >/dev/null && { |
| 7714 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 7715 | test ! -s conftest.err |
| 7716 | }; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7717 | ac_header_preproc=yes |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7718 | else |
| 7719 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7720 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7721 | |
| 7722 | ac_header_preproc=no |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7723 | fi |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 7724 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7725 | rm -f conftest.err conftest.$ac_ext |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 7726 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 7727 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 7728 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7729 | # So? What about this header? |
| 7730 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 7731 | yes:no: ) |
| 7732 | { echo "$as_me:$LINENO: WARNING: sys/select.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 7733 | echo "$as_me: WARNING: sys/select.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 7734 | { echo "$as_me:$LINENO: WARNING: sys/select.h: proceeding with the compiler's result" >&5 |
| 7735 | echo "$as_me: WARNING: sys/select.h: proceeding with the compiler's result" >&2;} |
| 7736 | ac_header_preproc=yes |
| 7737 | ;; |
| 7738 | no:yes:* ) |
| 7739 | { echo "$as_me:$LINENO: WARNING: sys/select.h: present but cannot be compiled" >&5 |
| 7740 | echo "$as_me: WARNING: sys/select.h: present but cannot be compiled" >&2;} |
| 7741 | { echo "$as_me:$LINENO: WARNING: sys/select.h: check for missing prerequisite headers?" >&5 |
| 7742 | echo "$as_me: WARNING: sys/select.h: check for missing prerequisite headers?" >&2;} |
| 7743 | { echo "$as_me:$LINENO: WARNING: sys/select.h: see the Autoconf documentation" >&5 |
| 7744 | echo "$as_me: WARNING: sys/select.h: see the Autoconf documentation" >&2;} |
| 7745 | { echo "$as_me:$LINENO: WARNING: sys/select.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 7746 | echo "$as_me: WARNING: sys/select.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 7747 | { echo "$as_me:$LINENO: WARNING: sys/select.h: proceeding with the preprocessor's result" >&5 |
| 7748 | echo "$as_me: WARNING: sys/select.h: proceeding with the preprocessor's result" >&2;} |
| 7749 | { echo "$as_me:$LINENO: WARNING: sys/select.h: in the future, the compiler will take precedence" >&5 |
| 7750 | echo "$as_me: WARNING: sys/select.h: in the future, the compiler will take precedence" >&2;} |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 7751 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7752 | ;; |
| 7753 | esac |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 7754 | { echo "$as_me:$LINENO: checking for sys/select.h" >&5 |
| 7755 | echo $ECHO_N "checking for sys/select.h... $ECHO_C" >&6; } |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 7756 | if test "${ac_cv_header_sys_select_h+set}" = set; then |
| 7757 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 7758 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7759 | ac_cv_header_sys_select_h=$ac_header_preproc |
| 7760 | fi |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 7761 | { echo "$as_me:$LINENO: result: $ac_cv_header_sys_select_h" >&5 |
| 7762 | echo "${ECHO_T}$ac_cv_header_sys_select_h" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7763 | |
| 7764 | fi |
| 7765 | if test $ac_cv_header_sys_select_h = yes; then |
| 7766 | cat >>confdefs.h <<\_ACEOF |
| 7767 | #define PJ_HAS_SYS_SELECT_H 1 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 7768 | _ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7769 | |
| 7770 | fi |
| 7771 | |
| 7772 | |
| 7773 | if test "${ac_cv_header_sys_socket_h+set}" = set; then |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 7774 | { echo "$as_me:$LINENO: checking for sys/socket.h" >&5 |
| 7775 | echo $ECHO_N "checking for sys/socket.h... $ECHO_C" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7776 | if test "${ac_cv_header_sys_socket_h+set}" = set; then |
| 7777 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7778 | fi |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 7779 | { echo "$as_me:$LINENO: result: $ac_cv_header_sys_socket_h" >&5 |
| 7780 | echo "${ECHO_T}$ac_cv_header_sys_socket_h" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7781 | else |
| 7782 | # Is the header compilable? |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 7783 | { echo "$as_me:$LINENO: checking sys/socket.h usability" >&5 |
| 7784 | echo $ECHO_N "checking sys/socket.h usability... $ECHO_C" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7785 | cat >conftest.$ac_ext <<_ACEOF |
| 7786 | /* confdefs.h. */ |
| 7787 | _ACEOF |
| 7788 | cat confdefs.h >>conftest.$ac_ext |
| 7789 | cat >>conftest.$ac_ext <<_ACEOF |
| 7790 | /* end confdefs.h. */ |
| 7791 | $ac_includes_default |
| 7792 | #include <sys/socket.h> |
| 7793 | _ACEOF |
| 7794 | rm -f conftest.$ac_objext |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 7795 | if { (ac_try="$ac_compile" |
| 7796 | case "(($ac_try" in |
| 7797 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7798 | *) ac_try_echo=$ac_try;; |
| 7799 | esac |
| 7800 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7801 | (eval "$ac_compile") 2>conftest.er1 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7802 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7803 | grep -v '^ *+' conftest.er1 >conftest.err |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7804 | rm -f conftest.er1 |
| 7805 | cat conftest.err >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7806 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 7807 | (exit $ac_status); } && { |
| 7808 | test -z "$ac_c_werror_flag" || |
| 7809 | test ! -s conftest.err |
| 7810 | } && test -s conftest.$ac_objext; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7811 | ac_header_compiler=yes |
| 7812 | else |
| 7813 | echo "$as_me: failed program was:" >&5 |
| 7814 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7815 | |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 7816 | ac_header_compiler=no |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7817 | fi |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 7818 | |
| 7819 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7820 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 7821 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7822 | |
| 7823 | # Is the header present? |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 7824 | { echo "$as_me:$LINENO: checking sys/socket.h presence" >&5 |
| 7825 | echo $ECHO_N "checking sys/socket.h presence... $ECHO_C" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7826 | cat >conftest.$ac_ext <<_ACEOF |
| 7827 | /* confdefs.h. */ |
| 7828 | _ACEOF |
| 7829 | cat confdefs.h >>conftest.$ac_ext |
| 7830 | cat >>conftest.$ac_ext <<_ACEOF |
| 7831 | /* end confdefs.h. */ |
| 7832 | #include <sys/socket.h> |
| 7833 | _ACEOF |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 7834 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 7835 | case "(($ac_try" in |
| 7836 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7837 | *) ac_try_echo=$ac_try;; |
| 7838 | esac |
| 7839 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7840 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7841 | ac_status=$? |
| 7842 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7843 | rm -f conftest.er1 |
| 7844 | cat conftest.err >&5 |
| 7845 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 7846 | (exit $ac_status); } >/dev/null && { |
| 7847 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 7848 | test ! -s conftest.err |
| 7849 | }; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7850 | ac_header_preproc=yes |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7851 | else |
| 7852 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7853 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7854 | |
| 7855 | ac_header_preproc=no |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7856 | fi |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 7857 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7858 | rm -f conftest.err conftest.$ac_ext |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 7859 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 7860 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 7861 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7862 | # So? What about this header? |
| 7863 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 7864 | yes:no: ) |
| 7865 | { echo "$as_me:$LINENO: WARNING: sys/socket.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 7866 | echo "$as_me: WARNING: sys/socket.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 7867 | { echo "$as_me:$LINENO: WARNING: sys/socket.h: proceeding with the compiler's result" >&5 |
| 7868 | echo "$as_me: WARNING: sys/socket.h: proceeding with the compiler's result" >&2;} |
| 7869 | ac_header_preproc=yes |
| 7870 | ;; |
| 7871 | no:yes:* ) |
| 7872 | { echo "$as_me:$LINENO: WARNING: sys/socket.h: present but cannot be compiled" >&5 |
| 7873 | echo "$as_me: WARNING: sys/socket.h: present but cannot be compiled" >&2;} |
| 7874 | { echo "$as_me:$LINENO: WARNING: sys/socket.h: check for missing prerequisite headers?" >&5 |
| 7875 | echo "$as_me: WARNING: sys/socket.h: check for missing prerequisite headers?" >&2;} |
| 7876 | { echo "$as_me:$LINENO: WARNING: sys/socket.h: see the Autoconf documentation" >&5 |
| 7877 | echo "$as_me: WARNING: sys/socket.h: see the Autoconf documentation" >&2;} |
| 7878 | { echo "$as_me:$LINENO: WARNING: sys/socket.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 7879 | echo "$as_me: WARNING: sys/socket.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 7880 | { echo "$as_me:$LINENO: WARNING: sys/socket.h: proceeding with the preprocessor's result" >&5 |
| 7881 | echo "$as_me: WARNING: sys/socket.h: proceeding with the preprocessor's result" >&2;} |
| 7882 | { echo "$as_me:$LINENO: WARNING: sys/socket.h: in the future, the compiler will take precedence" >&5 |
| 7883 | echo "$as_me: WARNING: sys/socket.h: in the future, the compiler will take precedence" >&2;} |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 7884 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7885 | ;; |
| 7886 | esac |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 7887 | { echo "$as_me:$LINENO: checking for sys/socket.h" >&5 |
| 7888 | echo $ECHO_N "checking for sys/socket.h... $ECHO_C" >&6; } |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 7889 | if test "${ac_cv_header_sys_socket_h+set}" = set; then |
| 7890 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 7891 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7892 | ac_cv_header_sys_socket_h=$ac_header_preproc |
| 7893 | fi |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 7894 | { echo "$as_me:$LINENO: result: $ac_cv_header_sys_socket_h" >&5 |
| 7895 | echo "${ECHO_T}$ac_cv_header_sys_socket_h" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7896 | |
| 7897 | fi |
| 7898 | if test $ac_cv_header_sys_socket_h = yes; then |
| 7899 | cat >>confdefs.h <<\_ACEOF |
| 7900 | #define PJ_HAS_SYS_SOCKET_H 1 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 7901 | _ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7902 | |
| 7903 | fi |
| 7904 | |
| 7905 | |
| 7906 | if test "${ac_cv_header_sys_time_h+set}" = set; then |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 7907 | { echo "$as_me:$LINENO: checking for sys/time.h" >&5 |
| 7908 | echo $ECHO_N "checking for sys/time.h... $ECHO_C" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7909 | if test "${ac_cv_header_sys_time_h+set}" = set; then |
| 7910 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7911 | fi |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 7912 | { echo "$as_me:$LINENO: result: $ac_cv_header_sys_time_h" >&5 |
| 7913 | echo "${ECHO_T}$ac_cv_header_sys_time_h" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7914 | else |
| 7915 | # Is the header compilable? |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 7916 | { echo "$as_me:$LINENO: checking sys/time.h usability" >&5 |
| 7917 | echo $ECHO_N "checking sys/time.h usability... $ECHO_C" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7918 | cat >conftest.$ac_ext <<_ACEOF |
| 7919 | /* confdefs.h. */ |
| 7920 | _ACEOF |
| 7921 | cat confdefs.h >>conftest.$ac_ext |
| 7922 | cat >>conftest.$ac_ext <<_ACEOF |
| 7923 | /* end confdefs.h. */ |
| 7924 | $ac_includes_default |
| 7925 | #include <sys/time.h> |
| 7926 | _ACEOF |
| 7927 | rm -f conftest.$ac_objext |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 7928 | if { (ac_try="$ac_compile" |
| 7929 | case "(($ac_try" in |
| 7930 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7931 | *) ac_try_echo=$ac_try;; |
| 7932 | esac |
| 7933 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7934 | (eval "$ac_compile") 2>conftest.er1 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7935 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7936 | grep -v '^ *+' conftest.er1 >conftest.err |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7937 | rm -f conftest.er1 |
| 7938 | cat conftest.err >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7939 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 7940 | (exit $ac_status); } && { |
| 7941 | test -z "$ac_c_werror_flag" || |
| 7942 | test ! -s conftest.err |
| 7943 | } && test -s conftest.$ac_objext; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7944 | ac_header_compiler=yes |
| 7945 | else |
| 7946 | echo "$as_me: failed program was:" >&5 |
| 7947 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7948 | |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 7949 | ac_header_compiler=no |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7950 | fi |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 7951 | |
| 7952 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7953 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 7954 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7955 | |
| 7956 | # Is the header present? |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 7957 | { echo "$as_me:$LINENO: checking sys/time.h presence" >&5 |
| 7958 | echo $ECHO_N "checking sys/time.h presence... $ECHO_C" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7959 | cat >conftest.$ac_ext <<_ACEOF |
| 7960 | /* confdefs.h. */ |
| 7961 | _ACEOF |
| 7962 | cat confdefs.h >>conftest.$ac_ext |
| 7963 | cat >>conftest.$ac_ext <<_ACEOF |
| 7964 | /* end confdefs.h. */ |
| 7965 | #include <sys/time.h> |
| 7966 | _ACEOF |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 7967 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 7968 | case "(($ac_try" in |
| 7969 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7970 | *) ac_try_echo=$ac_try;; |
| 7971 | esac |
| 7972 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7973 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7974 | ac_status=$? |
| 7975 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7976 | rm -f conftest.er1 |
| 7977 | cat conftest.err >&5 |
| 7978 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 7979 | (exit $ac_status); } >/dev/null && { |
| 7980 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 7981 | test ! -s conftest.err |
| 7982 | }; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7983 | ac_header_preproc=yes |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7984 | else |
| 7985 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7986 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7987 | |
| 7988 | ac_header_preproc=no |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7989 | fi |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 7990 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7991 | rm -f conftest.err conftest.$ac_ext |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 7992 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 7993 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 7994 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7995 | # So? What about this header? |
| 7996 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 7997 | yes:no: ) |
| 7998 | { echo "$as_me:$LINENO: WARNING: sys/time.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 7999 | echo "$as_me: WARNING: sys/time.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 8000 | { echo "$as_me:$LINENO: WARNING: sys/time.h: proceeding with the compiler's result" >&5 |
| 8001 | echo "$as_me: WARNING: sys/time.h: proceeding with the compiler's result" >&2;} |
| 8002 | ac_header_preproc=yes |
| 8003 | ;; |
| 8004 | no:yes:* ) |
| 8005 | { echo "$as_me:$LINENO: WARNING: sys/time.h: present but cannot be compiled" >&5 |
| 8006 | echo "$as_me: WARNING: sys/time.h: present but cannot be compiled" >&2;} |
| 8007 | { echo "$as_me:$LINENO: WARNING: sys/time.h: check for missing prerequisite headers?" >&5 |
| 8008 | echo "$as_me: WARNING: sys/time.h: check for missing prerequisite headers?" >&2;} |
| 8009 | { echo "$as_me:$LINENO: WARNING: sys/time.h: see the Autoconf documentation" >&5 |
| 8010 | echo "$as_me: WARNING: sys/time.h: see the Autoconf documentation" >&2;} |
| 8011 | { echo "$as_me:$LINENO: WARNING: sys/time.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 8012 | echo "$as_me: WARNING: sys/time.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 8013 | { echo "$as_me:$LINENO: WARNING: sys/time.h: proceeding with the preprocessor's result" >&5 |
| 8014 | echo "$as_me: WARNING: sys/time.h: proceeding with the preprocessor's result" >&2;} |
| 8015 | { echo "$as_me:$LINENO: WARNING: sys/time.h: in the future, the compiler will take precedence" >&5 |
| 8016 | echo "$as_me: WARNING: sys/time.h: in the future, the compiler will take precedence" >&2;} |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 8017 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8018 | ;; |
| 8019 | esac |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 8020 | { echo "$as_me:$LINENO: checking for sys/time.h" >&5 |
| 8021 | echo $ECHO_N "checking for sys/time.h... $ECHO_C" >&6; } |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 8022 | if test "${ac_cv_header_sys_time_h+set}" = set; then |
| 8023 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 8024 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8025 | ac_cv_header_sys_time_h=$ac_header_preproc |
| 8026 | fi |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 8027 | { echo "$as_me:$LINENO: result: $ac_cv_header_sys_time_h" >&5 |
| 8028 | echo "${ECHO_T}$ac_cv_header_sys_time_h" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8029 | |
| 8030 | fi |
| 8031 | if test $ac_cv_header_sys_time_h = yes; then |
| 8032 | cat >>confdefs.h <<\_ACEOF |
| 8033 | #define PJ_HAS_SYS_TIME_H 1 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 8034 | _ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8035 | |
| 8036 | fi |
| 8037 | |
| 8038 | |
| 8039 | if test "${ac_cv_header_sys_timeb_h+set}" = set; then |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 8040 | { echo "$as_me:$LINENO: checking for sys/timeb.h" >&5 |
| 8041 | echo $ECHO_N "checking for sys/timeb.h... $ECHO_C" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8042 | if test "${ac_cv_header_sys_timeb_h+set}" = set; then |
| 8043 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8044 | fi |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 8045 | { echo "$as_me:$LINENO: result: $ac_cv_header_sys_timeb_h" >&5 |
| 8046 | echo "${ECHO_T}$ac_cv_header_sys_timeb_h" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8047 | else |
| 8048 | # Is the header compilable? |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 8049 | { echo "$as_me:$LINENO: checking sys/timeb.h usability" >&5 |
| 8050 | echo $ECHO_N "checking sys/timeb.h usability... $ECHO_C" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8051 | cat >conftest.$ac_ext <<_ACEOF |
| 8052 | /* confdefs.h. */ |
| 8053 | _ACEOF |
| 8054 | cat confdefs.h >>conftest.$ac_ext |
| 8055 | cat >>conftest.$ac_ext <<_ACEOF |
| 8056 | /* end confdefs.h. */ |
| 8057 | $ac_includes_default |
| 8058 | #include <sys/timeb.h> |
| 8059 | _ACEOF |
| 8060 | rm -f conftest.$ac_objext |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 8061 | if { (ac_try="$ac_compile" |
| 8062 | case "(($ac_try" in |
| 8063 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8064 | *) ac_try_echo=$ac_try;; |
| 8065 | esac |
| 8066 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8067 | (eval "$ac_compile") 2>conftest.er1 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8068 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8069 | grep -v '^ *+' conftest.er1 >conftest.err |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8070 | rm -f conftest.er1 |
| 8071 | cat conftest.err >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8072 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 8073 | (exit $ac_status); } && { |
| 8074 | test -z "$ac_c_werror_flag" || |
| 8075 | test ! -s conftest.err |
| 8076 | } && test -s conftest.$ac_objext; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8077 | ac_header_compiler=yes |
| 8078 | else |
| 8079 | echo "$as_me: failed program was:" >&5 |
| 8080 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8081 | |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 8082 | ac_header_compiler=no |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8083 | fi |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 8084 | |
| 8085 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 8086 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 8087 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8088 | |
| 8089 | # Is the header present? |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 8090 | { echo "$as_me:$LINENO: checking sys/timeb.h presence" >&5 |
| 8091 | echo $ECHO_N "checking sys/timeb.h presence... $ECHO_C" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8092 | cat >conftest.$ac_ext <<_ACEOF |
| 8093 | /* confdefs.h. */ |
| 8094 | _ACEOF |
| 8095 | cat confdefs.h >>conftest.$ac_ext |
| 8096 | cat >>conftest.$ac_ext <<_ACEOF |
| 8097 | /* end confdefs.h. */ |
| 8098 | #include <sys/timeb.h> |
| 8099 | _ACEOF |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 8100 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 8101 | case "(($ac_try" in |
| 8102 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8103 | *) ac_try_echo=$ac_try;; |
| 8104 | esac |
| 8105 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8106 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8107 | ac_status=$? |
| 8108 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8109 | rm -f conftest.er1 |
| 8110 | cat conftest.err >&5 |
| 8111 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 8112 | (exit $ac_status); } >/dev/null && { |
| 8113 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 8114 | test ! -s conftest.err |
| 8115 | }; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8116 | ac_header_preproc=yes |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8117 | else |
| 8118 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8119 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8120 | |
| 8121 | ac_header_preproc=no |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8122 | fi |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 8123 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8124 | rm -f conftest.err conftest.$ac_ext |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 8125 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 8126 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 8127 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8128 | # So? What about this header? |
| 8129 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 8130 | yes:no: ) |
| 8131 | { echo "$as_me:$LINENO: WARNING: sys/timeb.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 8132 | echo "$as_me: WARNING: sys/timeb.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 8133 | { echo "$as_me:$LINENO: WARNING: sys/timeb.h: proceeding with the compiler's result" >&5 |
| 8134 | echo "$as_me: WARNING: sys/timeb.h: proceeding with the compiler's result" >&2;} |
| 8135 | ac_header_preproc=yes |
| 8136 | ;; |
| 8137 | no:yes:* ) |
| 8138 | { echo "$as_me:$LINENO: WARNING: sys/timeb.h: present but cannot be compiled" >&5 |
| 8139 | echo "$as_me: WARNING: sys/timeb.h: present but cannot be compiled" >&2;} |
| 8140 | { echo "$as_me:$LINENO: WARNING: sys/timeb.h: check for missing prerequisite headers?" >&5 |
| 8141 | echo "$as_me: WARNING: sys/timeb.h: check for missing prerequisite headers?" >&2;} |
| 8142 | { echo "$as_me:$LINENO: WARNING: sys/timeb.h: see the Autoconf documentation" >&5 |
| 8143 | echo "$as_me: WARNING: sys/timeb.h: see the Autoconf documentation" >&2;} |
| 8144 | { echo "$as_me:$LINENO: WARNING: sys/timeb.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 8145 | echo "$as_me: WARNING: sys/timeb.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 8146 | { echo "$as_me:$LINENO: WARNING: sys/timeb.h: proceeding with the preprocessor's result" >&5 |
| 8147 | echo "$as_me: WARNING: sys/timeb.h: proceeding with the preprocessor's result" >&2;} |
| 8148 | { echo "$as_me:$LINENO: WARNING: sys/timeb.h: in the future, the compiler will take precedence" >&5 |
| 8149 | echo "$as_me: WARNING: sys/timeb.h: in the future, the compiler will take precedence" >&2;} |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 8150 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8151 | ;; |
| 8152 | esac |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 8153 | { echo "$as_me:$LINENO: checking for sys/timeb.h" >&5 |
| 8154 | echo $ECHO_N "checking for sys/timeb.h... $ECHO_C" >&6; } |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 8155 | if test "${ac_cv_header_sys_timeb_h+set}" = set; then |
| 8156 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 8157 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8158 | ac_cv_header_sys_timeb_h=$ac_header_preproc |
| 8159 | fi |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 8160 | { echo "$as_me:$LINENO: result: $ac_cv_header_sys_timeb_h" >&5 |
| 8161 | echo "${ECHO_T}$ac_cv_header_sys_timeb_h" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8162 | |
| 8163 | fi |
| 8164 | if test $ac_cv_header_sys_timeb_h = yes; then |
| 8165 | cat >>confdefs.h <<\_ACEOF |
| 8166 | #define PJ_HAS_SYS_TIMEB_H 1 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 8167 | _ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8168 | |
| 8169 | fi |
| 8170 | |
| 8171 | |
| 8172 | if test "${ac_cv_header_sys_types_h+set}" = set; then |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 8173 | { echo "$as_me:$LINENO: checking for sys/types.h" >&5 |
| 8174 | echo $ECHO_N "checking for sys/types.h... $ECHO_C" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8175 | if test "${ac_cv_header_sys_types_h+set}" = set; then |
| 8176 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8177 | fi |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 8178 | { echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h" >&5 |
| 8179 | echo "${ECHO_T}$ac_cv_header_sys_types_h" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8180 | else |
| 8181 | # Is the header compilable? |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 8182 | { echo "$as_me:$LINENO: checking sys/types.h usability" >&5 |
| 8183 | echo $ECHO_N "checking sys/types.h usability... $ECHO_C" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8184 | cat >conftest.$ac_ext <<_ACEOF |
| 8185 | /* confdefs.h. */ |
| 8186 | _ACEOF |
| 8187 | cat confdefs.h >>conftest.$ac_ext |
| 8188 | cat >>conftest.$ac_ext <<_ACEOF |
| 8189 | /* end confdefs.h. */ |
| 8190 | $ac_includes_default |
| 8191 | #include <sys/types.h> |
| 8192 | _ACEOF |
| 8193 | rm -f conftest.$ac_objext |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 8194 | if { (ac_try="$ac_compile" |
| 8195 | case "(($ac_try" in |
| 8196 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8197 | *) ac_try_echo=$ac_try;; |
| 8198 | esac |
| 8199 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8200 | (eval "$ac_compile") 2>conftest.er1 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8201 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8202 | grep -v '^ *+' conftest.er1 >conftest.err |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8203 | rm -f conftest.er1 |
| 8204 | cat conftest.err >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8205 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 8206 | (exit $ac_status); } && { |
| 8207 | test -z "$ac_c_werror_flag" || |
| 8208 | test ! -s conftest.err |
| 8209 | } && test -s conftest.$ac_objext; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8210 | ac_header_compiler=yes |
| 8211 | else |
| 8212 | echo "$as_me: failed program was:" >&5 |
| 8213 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8214 | |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 8215 | ac_header_compiler=no |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8216 | fi |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 8217 | |
| 8218 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 8219 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 8220 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8221 | |
| 8222 | # Is the header present? |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 8223 | { echo "$as_me:$LINENO: checking sys/types.h presence" >&5 |
| 8224 | echo $ECHO_N "checking sys/types.h presence... $ECHO_C" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8225 | cat >conftest.$ac_ext <<_ACEOF |
| 8226 | /* confdefs.h. */ |
| 8227 | _ACEOF |
| 8228 | cat confdefs.h >>conftest.$ac_ext |
| 8229 | cat >>conftest.$ac_ext <<_ACEOF |
| 8230 | /* end confdefs.h. */ |
| 8231 | #include <sys/types.h> |
| 8232 | _ACEOF |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 8233 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 8234 | case "(($ac_try" in |
| 8235 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8236 | *) ac_try_echo=$ac_try;; |
| 8237 | esac |
| 8238 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8239 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8240 | ac_status=$? |
| 8241 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8242 | rm -f conftest.er1 |
| 8243 | cat conftest.err >&5 |
| 8244 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 8245 | (exit $ac_status); } >/dev/null && { |
| 8246 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 8247 | test ! -s conftest.err |
| 8248 | }; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8249 | ac_header_preproc=yes |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8250 | else |
| 8251 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8252 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8253 | |
| 8254 | ac_header_preproc=no |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8255 | fi |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 8256 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8257 | rm -f conftest.err conftest.$ac_ext |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 8258 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 8259 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 8260 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8261 | # So? What about this header? |
| 8262 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 8263 | yes:no: ) |
| 8264 | { echo "$as_me:$LINENO: WARNING: sys/types.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 8265 | echo "$as_me: WARNING: sys/types.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 8266 | { echo "$as_me:$LINENO: WARNING: sys/types.h: proceeding with the compiler's result" >&5 |
| 8267 | echo "$as_me: WARNING: sys/types.h: proceeding with the compiler's result" >&2;} |
| 8268 | ac_header_preproc=yes |
| 8269 | ;; |
| 8270 | no:yes:* ) |
| 8271 | { echo "$as_me:$LINENO: WARNING: sys/types.h: present but cannot be compiled" >&5 |
| 8272 | echo "$as_me: WARNING: sys/types.h: present but cannot be compiled" >&2;} |
| 8273 | { echo "$as_me:$LINENO: WARNING: sys/types.h: check for missing prerequisite headers?" >&5 |
| 8274 | echo "$as_me: WARNING: sys/types.h: check for missing prerequisite headers?" >&2;} |
| 8275 | { echo "$as_me:$LINENO: WARNING: sys/types.h: see the Autoconf documentation" >&5 |
| 8276 | echo "$as_me: WARNING: sys/types.h: see the Autoconf documentation" >&2;} |
| 8277 | { echo "$as_me:$LINENO: WARNING: sys/types.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 8278 | echo "$as_me: WARNING: sys/types.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 8279 | { echo "$as_me:$LINENO: WARNING: sys/types.h: proceeding with the preprocessor's result" >&5 |
| 8280 | echo "$as_me: WARNING: sys/types.h: proceeding with the preprocessor's result" >&2;} |
| 8281 | { echo "$as_me:$LINENO: WARNING: sys/types.h: in the future, the compiler will take precedence" >&5 |
| 8282 | echo "$as_me: WARNING: sys/types.h: in the future, the compiler will take precedence" >&2;} |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 8283 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8284 | ;; |
| 8285 | esac |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 8286 | { echo "$as_me:$LINENO: checking for sys/types.h" >&5 |
| 8287 | echo $ECHO_N "checking for sys/types.h... $ECHO_C" >&6; } |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 8288 | if test "${ac_cv_header_sys_types_h+set}" = set; then |
| 8289 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 8290 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8291 | ac_cv_header_sys_types_h=$ac_header_preproc |
| 8292 | fi |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 8293 | { echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h" >&5 |
| 8294 | echo "${ECHO_T}$ac_cv_header_sys_types_h" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8295 | |
| 8296 | fi |
| 8297 | if test $ac_cv_header_sys_types_h = yes; then |
| 8298 | cat >>confdefs.h <<\_ACEOF |
| 8299 | #define PJ_HAS_SYS_TYPES_H 1 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 8300 | _ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8301 | |
| 8302 | fi |
| 8303 | |
| 8304 | |
| 8305 | if test "${ac_cv_header_time_h+set}" = set; then |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 8306 | { echo "$as_me:$LINENO: checking for time.h" >&5 |
| 8307 | echo $ECHO_N "checking for time.h... $ECHO_C" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8308 | if test "${ac_cv_header_time_h+set}" = set; then |
| 8309 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8310 | fi |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 8311 | { echo "$as_me:$LINENO: result: $ac_cv_header_time_h" >&5 |
| 8312 | echo "${ECHO_T}$ac_cv_header_time_h" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8313 | else |
| 8314 | # Is the header compilable? |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 8315 | { echo "$as_me:$LINENO: checking time.h usability" >&5 |
| 8316 | echo $ECHO_N "checking time.h usability... $ECHO_C" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8317 | cat >conftest.$ac_ext <<_ACEOF |
| 8318 | /* confdefs.h. */ |
| 8319 | _ACEOF |
| 8320 | cat confdefs.h >>conftest.$ac_ext |
| 8321 | cat >>conftest.$ac_ext <<_ACEOF |
| 8322 | /* end confdefs.h. */ |
| 8323 | $ac_includes_default |
| 8324 | #include <time.h> |
| 8325 | _ACEOF |
| 8326 | rm -f conftest.$ac_objext |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 8327 | if { (ac_try="$ac_compile" |
| 8328 | case "(($ac_try" in |
| 8329 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8330 | *) ac_try_echo=$ac_try;; |
| 8331 | esac |
| 8332 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8333 | (eval "$ac_compile") 2>conftest.er1 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8334 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8335 | grep -v '^ *+' conftest.er1 >conftest.err |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8336 | rm -f conftest.er1 |
| 8337 | cat conftest.err >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8338 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 8339 | (exit $ac_status); } && { |
| 8340 | test -z "$ac_c_werror_flag" || |
| 8341 | test ! -s conftest.err |
| 8342 | } && test -s conftest.$ac_objext; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8343 | ac_header_compiler=yes |
| 8344 | else |
| 8345 | echo "$as_me: failed program was:" >&5 |
| 8346 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8347 | |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 8348 | ac_header_compiler=no |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8349 | fi |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 8350 | |
| 8351 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 8352 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 8353 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8354 | |
| 8355 | # Is the header present? |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 8356 | { echo "$as_me:$LINENO: checking time.h presence" >&5 |
| 8357 | echo $ECHO_N "checking time.h presence... $ECHO_C" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8358 | cat >conftest.$ac_ext <<_ACEOF |
| 8359 | /* confdefs.h. */ |
| 8360 | _ACEOF |
| 8361 | cat confdefs.h >>conftest.$ac_ext |
| 8362 | cat >>conftest.$ac_ext <<_ACEOF |
| 8363 | /* end confdefs.h. */ |
| 8364 | #include <time.h> |
| 8365 | _ACEOF |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 8366 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 8367 | case "(($ac_try" in |
| 8368 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8369 | *) ac_try_echo=$ac_try;; |
| 8370 | esac |
| 8371 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8372 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8373 | ac_status=$? |
| 8374 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8375 | rm -f conftest.er1 |
| 8376 | cat conftest.err >&5 |
| 8377 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 8378 | (exit $ac_status); } >/dev/null && { |
| 8379 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 8380 | test ! -s conftest.err |
| 8381 | }; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8382 | ac_header_preproc=yes |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8383 | else |
| 8384 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8385 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8386 | |
| 8387 | ac_header_preproc=no |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8388 | fi |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 8389 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8390 | rm -f conftest.err conftest.$ac_ext |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 8391 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 8392 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 8393 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8394 | # So? What about this header? |
| 8395 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 8396 | yes:no: ) |
| 8397 | { echo "$as_me:$LINENO: WARNING: time.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 8398 | echo "$as_me: WARNING: time.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 8399 | { echo "$as_me:$LINENO: WARNING: time.h: proceeding with the compiler's result" >&5 |
| 8400 | echo "$as_me: WARNING: time.h: proceeding with the compiler's result" >&2;} |
| 8401 | ac_header_preproc=yes |
| 8402 | ;; |
| 8403 | no:yes:* ) |
| 8404 | { echo "$as_me:$LINENO: WARNING: time.h: present but cannot be compiled" >&5 |
| 8405 | echo "$as_me: WARNING: time.h: present but cannot be compiled" >&2;} |
| 8406 | { echo "$as_me:$LINENO: WARNING: time.h: check for missing prerequisite headers?" >&5 |
| 8407 | echo "$as_me: WARNING: time.h: check for missing prerequisite headers?" >&2;} |
| 8408 | { echo "$as_me:$LINENO: WARNING: time.h: see the Autoconf documentation" >&5 |
| 8409 | echo "$as_me: WARNING: time.h: see the Autoconf documentation" >&2;} |
| 8410 | { echo "$as_me:$LINENO: WARNING: time.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 8411 | echo "$as_me: WARNING: time.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 8412 | { echo "$as_me:$LINENO: WARNING: time.h: proceeding with the preprocessor's result" >&5 |
| 8413 | echo "$as_me: WARNING: time.h: proceeding with the preprocessor's result" >&2;} |
| 8414 | { echo "$as_me:$LINENO: WARNING: time.h: in the future, the compiler will take precedence" >&5 |
| 8415 | echo "$as_me: WARNING: time.h: in the future, the compiler will take precedence" >&2;} |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 8416 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8417 | ;; |
| 8418 | esac |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 8419 | { echo "$as_me:$LINENO: checking for time.h" >&5 |
| 8420 | echo $ECHO_N "checking for time.h... $ECHO_C" >&6; } |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 8421 | if test "${ac_cv_header_time_h+set}" = set; then |
| 8422 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 8423 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8424 | ac_cv_header_time_h=$ac_header_preproc |
| 8425 | fi |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 8426 | { echo "$as_me:$LINENO: result: $ac_cv_header_time_h" >&5 |
| 8427 | echo "${ECHO_T}$ac_cv_header_time_h" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8428 | |
| 8429 | fi |
| 8430 | if test $ac_cv_header_time_h = yes; then |
| 8431 | cat >>confdefs.h <<\_ACEOF |
| 8432 | #define PJ_HAS_TIME_H 1 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 8433 | _ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8434 | |
| 8435 | fi |
| 8436 | |
| 8437 | |
| 8438 | if test "${ac_cv_header_unistd_h+set}" = set; then |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 8439 | { echo "$as_me:$LINENO: checking for unistd.h" >&5 |
| 8440 | echo $ECHO_N "checking for unistd.h... $ECHO_C" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8441 | if test "${ac_cv_header_unistd_h+set}" = set; then |
| 8442 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8443 | fi |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 8444 | { echo "$as_me:$LINENO: result: $ac_cv_header_unistd_h" >&5 |
| 8445 | echo "${ECHO_T}$ac_cv_header_unistd_h" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8446 | else |
| 8447 | # Is the header compilable? |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 8448 | { echo "$as_me:$LINENO: checking unistd.h usability" >&5 |
| 8449 | echo $ECHO_N "checking unistd.h usability... $ECHO_C" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8450 | cat >conftest.$ac_ext <<_ACEOF |
| 8451 | /* confdefs.h. */ |
| 8452 | _ACEOF |
| 8453 | cat confdefs.h >>conftest.$ac_ext |
| 8454 | cat >>conftest.$ac_ext <<_ACEOF |
| 8455 | /* end confdefs.h. */ |
| 8456 | $ac_includes_default |
| 8457 | #include <unistd.h> |
| 8458 | _ACEOF |
| 8459 | rm -f conftest.$ac_objext |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 8460 | if { (ac_try="$ac_compile" |
| 8461 | case "(($ac_try" in |
| 8462 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8463 | *) ac_try_echo=$ac_try;; |
| 8464 | esac |
| 8465 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8466 | (eval "$ac_compile") 2>conftest.er1 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8467 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8468 | grep -v '^ *+' conftest.er1 >conftest.err |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8469 | rm -f conftest.er1 |
| 8470 | cat conftest.err >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8471 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 8472 | (exit $ac_status); } && { |
| 8473 | test -z "$ac_c_werror_flag" || |
| 8474 | test ! -s conftest.err |
| 8475 | } && test -s conftest.$ac_objext; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8476 | ac_header_compiler=yes |
| 8477 | else |
| 8478 | echo "$as_me: failed program was:" >&5 |
| 8479 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8480 | |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 8481 | ac_header_compiler=no |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8482 | fi |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 8483 | |
| 8484 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 8485 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 8486 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8487 | |
| 8488 | # Is the header present? |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 8489 | { echo "$as_me:$LINENO: checking unistd.h presence" >&5 |
| 8490 | echo $ECHO_N "checking unistd.h presence... $ECHO_C" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8491 | cat >conftest.$ac_ext <<_ACEOF |
| 8492 | /* confdefs.h. */ |
| 8493 | _ACEOF |
| 8494 | cat confdefs.h >>conftest.$ac_ext |
| 8495 | cat >>conftest.$ac_ext <<_ACEOF |
| 8496 | /* end confdefs.h. */ |
| 8497 | #include <unistd.h> |
| 8498 | _ACEOF |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 8499 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 8500 | case "(($ac_try" in |
| 8501 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8502 | *) ac_try_echo=$ac_try;; |
| 8503 | esac |
| 8504 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8505 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8506 | ac_status=$? |
| 8507 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8508 | rm -f conftest.er1 |
| 8509 | cat conftest.err >&5 |
| 8510 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 8511 | (exit $ac_status); } >/dev/null && { |
| 8512 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 8513 | test ! -s conftest.err |
| 8514 | }; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8515 | ac_header_preproc=yes |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8516 | else |
| 8517 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8518 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8519 | |
| 8520 | ac_header_preproc=no |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8521 | fi |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 8522 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8523 | rm -f conftest.err conftest.$ac_ext |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 8524 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 8525 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 8526 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8527 | # So? What about this header? |
| 8528 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 8529 | yes:no: ) |
| 8530 | { echo "$as_me:$LINENO: WARNING: unistd.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 8531 | echo "$as_me: WARNING: unistd.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 8532 | { echo "$as_me:$LINENO: WARNING: unistd.h: proceeding with the compiler's result" >&5 |
| 8533 | echo "$as_me: WARNING: unistd.h: proceeding with the compiler's result" >&2;} |
| 8534 | ac_header_preproc=yes |
| 8535 | ;; |
| 8536 | no:yes:* ) |
| 8537 | { echo "$as_me:$LINENO: WARNING: unistd.h: present but cannot be compiled" >&5 |
| 8538 | echo "$as_me: WARNING: unistd.h: present but cannot be compiled" >&2;} |
| 8539 | { echo "$as_me:$LINENO: WARNING: unistd.h: check for missing prerequisite headers?" >&5 |
| 8540 | echo "$as_me: WARNING: unistd.h: check for missing prerequisite headers?" >&2;} |
| 8541 | { echo "$as_me:$LINENO: WARNING: unistd.h: see the Autoconf documentation" >&5 |
| 8542 | echo "$as_me: WARNING: unistd.h: see the Autoconf documentation" >&2;} |
| 8543 | { echo "$as_me:$LINENO: WARNING: unistd.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 8544 | echo "$as_me: WARNING: unistd.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 8545 | { echo "$as_me:$LINENO: WARNING: unistd.h: proceeding with the preprocessor's result" >&5 |
| 8546 | echo "$as_me: WARNING: unistd.h: proceeding with the preprocessor's result" >&2;} |
| 8547 | { echo "$as_me:$LINENO: WARNING: unistd.h: in the future, the compiler will take precedence" >&5 |
| 8548 | echo "$as_me: WARNING: unistd.h: in the future, the compiler will take precedence" >&2;} |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 8549 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8550 | ;; |
| 8551 | esac |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 8552 | { echo "$as_me:$LINENO: checking for unistd.h" >&5 |
| 8553 | echo $ECHO_N "checking for unistd.h... $ECHO_C" >&6; } |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 8554 | if test "${ac_cv_header_unistd_h+set}" = set; then |
| 8555 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 8556 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8557 | ac_cv_header_unistd_h=$ac_header_preproc |
| 8558 | fi |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 8559 | { echo "$as_me:$LINENO: result: $ac_cv_header_unistd_h" >&5 |
| 8560 | echo "${ECHO_T}$ac_cv_header_unistd_h" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8561 | |
| 8562 | fi |
| 8563 | if test $ac_cv_header_unistd_h = yes; then |
| 8564 | cat >>confdefs.h <<\_ACEOF |
| 8565 | #define PJ_HAS_UNISTD_H 1 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 8566 | _ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8567 | |
| 8568 | fi |
| 8569 | |
| 8570 | |
| 8571 | if test "${ac_cv_header_mswsock_h+set}" = set; then |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 8572 | { echo "$as_me:$LINENO: checking for mswsock.h" >&5 |
| 8573 | echo $ECHO_N "checking for mswsock.h... $ECHO_C" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8574 | if test "${ac_cv_header_mswsock_h+set}" = set; then |
| 8575 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8576 | fi |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 8577 | { echo "$as_me:$LINENO: result: $ac_cv_header_mswsock_h" >&5 |
| 8578 | echo "${ECHO_T}$ac_cv_header_mswsock_h" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8579 | else |
| 8580 | # Is the header compilable? |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 8581 | { echo "$as_me:$LINENO: checking mswsock.h usability" >&5 |
| 8582 | echo $ECHO_N "checking mswsock.h usability... $ECHO_C" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8583 | cat >conftest.$ac_ext <<_ACEOF |
| 8584 | /* confdefs.h. */ |
| 8585 | _ACEOF |
| 8586 | cat confdefs.h >>conftest.$ac_ext |
| 8587 | cat >>conftest.$ac_ext <<_ACEOF |
| 8588 | /* end confdefs.h. */ |
| 8589 | $ac_includes_default |
| 8590 | #include <mswsock.h> |
| 8591 | _ACEOF |
| 8592 | rm -f conftest.$ac_objext |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 8593 | if { (ac_try="$ac_compile" |
| 8594 | case "(($ac_try" in |
| 8595 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8596 | *) ac_try_echo=$ac_try;; |
| 8597 | esac |
| 8598 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8599 | (eval "$ac_compile") 2>conftest.er1 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8600 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8601 | grep -v '^ *+' conftest.er1 >conftest.err |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8602 | rm -f conftest.er1 |
| 8603 | cat conftest.err >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8604 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 8605 | (exit $ac_status); } && { |
| 8606 | test -z "$ac_c_werror_flag" || |
| 8607 | test ! -s conftest.err |
| 8608 | } && test -s conftest.$ac_objext; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8609 | ac_header_compiler=yes |
| 8610 | else |
| 8611 | echo "$as_me: failed program was:" >&5 |
| 8612 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8613 | |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 8614 | ac_header_compiler=no |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8615 | fi |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 8616 | |
| 8617 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 8618 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 8619 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8620 | |
| 8621 | # Is the header present? |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 8622 | { echo "$as_me:$LINENO: checking mswsock.h presence" >&5 |
| 8623 | echo $ECHO_N "checking mswsock.h presence... $ECHO_C" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8624 | cat >conftest.$ac_ext <<_ACEOF |
| 8625 | /* confdefs.h. */ |
| 8626 | _ACEOF |
| 8627 | cat confdefs.h >>conftest.$ac_ext |
| 8628 | cat >>conftest.$ac_ext <<_ACEOF |
| 8629 | /* end confdefs.h. */ |
| 8630 | #include <mswsock.h> |
| 8631 | _ACEOF |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 8632 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 8633 | case "(($ac_try" in |
| 8634 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8635 | *) ac_try_echo=$ac_try;; |
| 8636 | esac |
| 8637 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8638 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8639 | ac_status=$? |
| 8640 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8641 | rm -f conftest.er1 |
| 8642 | cat conftest.err >&5 |
| 8643 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 8644 | (exit $ac_status); } >/dev/null && { |
| 8645 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 8646 | test ! -s conftest.err |
| 8647 | }; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8648 | ac_header_preproc=yes |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8649 | else |
| 8650 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8651 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8652 | |
| 8653 | ac_header_preproc=no |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8654 | fi |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 8655 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8656 | rm -f conftest.err conftest.$ac_ext |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 8657 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 8658 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 8659 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8660 | # So? What about this header? |
| 8661 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 8662 | yes:no: ) |
| 8663 | { echo "$as_me:$LINENO: WARNING: mswsock.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 8664 | echo "$as_me: WARNING: mswsock.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 8665 | { echo "$as_me:$LINENO: WARNING: mswsock.h: proceeding with the compiler's result" >&5 |
| 8666 | echo "$as_me: WARNING: mswsock.h: proceeding with the compiler's result" >&2;} |
| 8667 | ac_header_preproc=yes |
| 8668 | ;; |
| 8669 | no:yes:* ) |
| 8670 | { echo "$as_me:$LINENO: WARNING: mswsock.h: present but cannot be compiled" >&5 |
| 8671 | echo "$as_me: WARNING: mswsock.h: present but cannot be compiled" >&2;} |
| 8672 | { echo "$as_me:$LINENO: WARNING: mswsock.h: check for missing prerequisite headers?" >&5 |
| 8673 | echo "$as_me: WARNING: mswsock.h: check for missing prerequisite headers?" >&2;} |
| 8674 | { echo "$as_me:$LINENO: WARNING: mswsock.h: see the Autoconf documentation" >&5 |
| 8675 | echo "$as_me: WARNING: mswsock.h: see the Autoconf documentation" >&2;} |
| 8676 | { echo "$as_me:$LINENO: WARNING: mswsock.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 8677 | echo "$as_me: WARNING: mswsock.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 8678 | { echo "$as_me:$LINENO: WARNING: mswsock.h: proceeding with the preprocessor's result" >&5 |
| 8679 | echo "$as_me: WARNING: mswsock.h: proceeding with the preprocessor's result" >&2;} |
| 8680 | { echo "$as_me:$LINENO: WARNING: mswsock.h: in the future, the compiler will take precedence" >&5 |
| 8681 | echo "$as_me: WARNING: mswsock.h: in the future, the compiler will take precedence" >&2;} |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 8682 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8683 | ;; |
| 8684 | esac |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 8685 | { echo "$as_me:$LINENO: checking for mswsock.h" >&5 |
| 8686 | echo $ECHO_N "checking for mswsock.h... $ECHO_C" >&6; } |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 8687 | if test "${ac_cv_header_mswsock_h+set}" = set; then |
| 8688 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 8689 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8690 | ac_cv_header_mswsock_h=$ac_header_preproc |
| 8691 | fi |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 8692 | { echo "$as_me:$LINENO: result: $ac_cv_header_mswsock_h" >&5 |
| 8693 | echo "${ECHO_T}$ac_cv_header_mswsock_h" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8694 | |
| 8695 | fi |
| 8696 | if test $ac_cv_header_mswsock_h = yes; then |
| 8697 | cat >>confdefs.h <<\_ACEOF |
| 8698 | #define PJ_HAS_MSWSOCK_H 1 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 8699 | _ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8700 | |
| 8701 | fi |
| 8702 | |
| 8703 | |
| 8704 | if test "${ac_cv_header_winsock_h+set}" = set; then |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 8705 | { echo "$as_me:$LINENO: checking for winsock.h" >&5 |
| 8706 | echo $ECHO_N "checking for winsock.h... $ECHO_C" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8707 | if test "${ac_cv_header_winsock_h+set}" = set; then |
| 8708 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8709 | fi |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 8710 | { echo "$as_me:$LINENO: result: $ac_cv_header_winsock_h" >&5 |
| 8711 | echo "${ECHO_T}$ac_cv_header_winsock_h" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8712 | else |
| 8713 | # Is the header compilable? |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 8714 | { echo "$as_me:$LINENO: checking winsock.h usability" >&5 |
| 8715 | echo $ECHO_N "checking winsock.h usability... $ECHO_C" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8716 | cat >conftest.$ac_ext <<_ACEOF |
| 8717 | /* confdefs.h. */ |
| 8718 | _ACEOF |
| 8719 | cat confdefs.h >>conftest.$ac_ext |
| 8720 | cat >>conftest.$ac_ext <<_ACEOF |
| 8721 | /* end confdefs.h. */ |
| 8722 | $ac_includes_default |
| 8723 | #include <winsock.h> |
| 8724 | _ACEOF |
| 8725 | rm -f conftest.$ac_objext |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 8726 | if { (ac_try="$ac_compile" |
| 8727 | case "(($ac_try" in |
| 8728 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8729 | *) ac_try_echo=$ac_try;; |
| 8730 | esac |
| 8731 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8732 | (eval "$ac_compile") 2>conftest.er1 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8733 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8734 | grep -v '^ *+' conftest.er1 >conftest.err |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8735 | rm -f conftest.er1 |
| 8736 | cat conftest.err >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8737 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 8738 | (exit $ac_status); } && { |
| 8739 | test -z "$ac_c_werror_flag" || |
| 8740 | test ! -s conftest.err |
| 8741 | } && test -s conftest.$ac_objext; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8742 | ac_header_compiler=yes |
| 8743 | else |
| 8744 | echo "$as_me: failed program was:" >&5 |
| 8745 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8746 | |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 8747 | ac_header_compiler=no |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8748 | fi |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 8749 | |
| 8750 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 8751 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 8752 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8753 | |
| 8754 | # Is the header present? |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 8755 | { echo "$as_me:$LINENO: checking winsock.h presence" >&5 |
| 8756 | echo $ECHO_N "checking winsock.h presence... $ECHO_C" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8757 | cat >conftest.$ac_ext <<_ACEOF |
| 8758 | /* confdefs.h. */ |
| 8759 | _ACEOF |
| 8760 | cat confdefs.h >>conftest.$ac_ext |
| 8761 | cat >>conftest.$ac_ext <<_ACEOF |
| 8762 | /* end confdefs.h. */ |
| 8763 | #include <winsock.h> |
| 8764 | _ACEOF |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 8765 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 8766 | case "(($ac_try" in |
| 8767 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8768 | *) ac_try_echo=$ac_try;; |
| 8769 | esac |
| 8770 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8771 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8772 | ac_status=$? |
| 8773 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8774 | rm -f conftest.er1 |
| 8775 | cat conftest.err >&5 |
| 8776 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 8777 | (exit $ac_status); } >/dev/null && { |
| 8778 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 8779 | test ! -s conftest.err |
| 8780 | }; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8781 | ac_header_preproc=yes |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8782 | else |
| 8783 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8784 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8785 | |
| 8786 | ac_header_preproc=no |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8787 | fi |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 8788 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8789 | rm -f conftest.err conftest.$ac_ext |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 8790 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 8791 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 8792 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8793 | # So? What about this header? |
| 8794 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 8795 | yes:no: ) |
| 8796 | { echo "$as_me:$LINENO: WARNING: winsock.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 8797 | echo "$as_me: WARNING: winsock.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 8798 | { echo "$as_me:$LINENO: WARNING: winsock.h: proceeding with the compiler's result" >&5 |
| 8799 | echo "$as_me: WARNING: winsock.h: proceeding with the compiler's result" >&2;} |
| 8800 | ac_header_preproc=yes |
| 8801 | ;; |
| 8802 | no:yes:* ) |
| 8803 | { echo "$as_me:$LINENO: WARNING: winsock.h: present but cannot be compiled" >&5 |
| 8804 | echo "$as_me: WARNING: winsock.h: present but cannot be compiled" >&2;} |
| 8805 | { echo "$as_me:$LINENO: WARNING: winsock.h: check for missing prerequisite headers?" >&5 |
| 8806 | echo "$as_me: WARNING: winsock.h: check for missing prerequisite headers?" >&2;} |
| 8807 | { echo "$as_me:$LINENO: WARNING: winsock.h: see the Autoconf documentation" >&5 |
| 8808 | echo "$as_me: WARNING: winsock.h: see the Autoconf documentation" >&2;} |
| 8809 | { echo "$as_me:$LINENO: WARNING: winsock.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 8810 | echo "$as_me: WARNING: winsock.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 8811 | { echo "$as_me:$LINENO: WARNING: winsock.h: proceeding with the preprocessor's result" >&5 |
| 8812 | echo "$as_me: WARNING: winsock.h: proceeding with the preprocessor's result" >&2;} |
| 8813 | { echo "$as_me:$LINENO: WARNING: winsock.h: in the future, the compiler will take precedence" >&5 |
| 8814 | echo "$as_me: WARNING: winsock.h: in the future, the compiler will take precedence" >&2;} |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 8815 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8816 | ;; |
| 8817 | esac |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 8818 | { echo "$as_me:$LINENO: checking for winsock.h" >&5 |
| 8819 | echo $ECHO_N "checking for winsock.h... $ECHO_C" >&6; } |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 8820 | if test "${ac_cv_header_winsock_h+set}" = set; then |
| 8821 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 8822 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8823 | ac_cv_header_winsock_h=$ac_header_preproc |
| 8824 | fi |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 8825 | { echo "$as_me:$LINENO: result: $ac_cv_header_winsock_h" >&5 |
| 8826 | echo "${ECHO_T}$ac_cv_header_winsock_h" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8827 | |
| 8828 | fi |
| 8829 | if test $ac_cv_header_winsock_h = yes; then |
| 8830 | cat >>confdefs.h <<\_ACEOF |
| 8831 | #define PJ_HAS_WINSOCK_H 1 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 8832 | _ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8833 | |
| 8834 | fi |
| 8835 | |
| 8836 | |
| 8837 | if test "${ac_cv_header_winsock2_h+set}" = set; then |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 8838 | { echo "$as_me:$LINENO: checking for winsock2.h" >&5 |
| 8839 | echo $ECHO_N "checking for winsock2.h... $ECHO_C" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8840 | if test "${ac_cv_header_winsock2_h+set}" = set; then |
| 8841 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8842 | fi |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 8843 | { echo "$as_me:$LINENO: result: $ac_cv_header_winsock2_h" >&5 |
| 8844 | echo "${ECHO_T}$ac_cv_header_winsock2_h" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8845 | else |
| 8846 | # Is the header compilable? |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 8847 | { echo "$as_me:$LINENO: checking winsock2.h usability" >&5 |
| 8848 | echo $ECHO_N "checking winsock2.h usability... $ECHO_C" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8849 | cat >conftest.$ac_ext <<_ACEOF |
| 8850 | /* confdefs.h. */ |
| 8851 | _ACEOF |
| 8852 | cat confdefs.h >>conftest.$ac_ext |
| 8853 | cat >>conftest.$ac_ext <<_ACEOF |
| 8854 | /* end confdefs.h. */ |
| 8855 | $ac_includes_default |
| 8856 | #include <winsock2.h> |
| 8857 | _ACEOF |
| 8858 | rm -f conftest.$ac_objext |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 8859 | if { (ac_try="$ac_compile" |
| 8860 | case "(($ac_try" in |
| 8861 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8862 | *) ac_try_echo=$ac_try;; |
| 8863 | esac |
| 8864 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8865 | (eval "$ac_compile") 2>conftest.er1 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8866 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8867 | grep -v '^ *+' conftest.er1 >conftest.err |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8868 | rm -f conftest.er1 |
| 8869 | cat conftest.err >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8870 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 8871 | (exit $ac_status); } && { |
| 8872 | test -z "$ac_c_werror_flag" || |
| 8873 | test ! -s conftest.err |
| 8874 | } && test -s conftest.$ac_objext; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8875 | ac_header_compiler=yes |
| 8876 | else |
| 8877 | echo "$as_me: failed program was:" >&5 |
| 8878 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8879 | |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 8880 | ac_header_compiler=no |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8881 | fi |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 8882 | |
| 8883 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 8884 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 8885 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8886 | |
| 8887 | # Is the header present? |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 8888 | { echo "$as_me:$LINENO: checking winsock2.h presence" >&5 |
| 8889 | echo $ECHO_N "checking winsock2.h presence... $ECHO_C" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8890 | cat >conftest.$ac_ext <<_ACEOF |
| 8891 | /* confdefs.h. */ |
| 8892 | _ACEOF |
| 8893 | cat confdefs.h >>conftest.$ac_ext |
| 8894 | cat >>conftest.$ac_ext <<_ACEOF |
| 8895 | /* end confdefs.h. */ |
| 8896 | #include <winsock2.h> |
| 8897 | _ACEOF |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 8898 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 8899 | case "(($ac_try" in |
| 8900 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8901 | *) ac_try_echo=$ac_try;; |
| 8902 | esac |
| 8903 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8904 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8905 | ac_status=$? |
| 8906 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8907 | rm -f conftest.er1 |
| 8908 | cat conftest.err >&5 |
| 8909 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 8910 | (exit $ac_status); } >/dev/null && { |
| 8911 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 8912 | test ! -s conftest.err |
| 8913 | }; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8914 | ac_header_preproc=yes |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8915 | else |
| 8916 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8917 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8918 | |
| 8919 | ac_header_preproc=no |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8920 | fi |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 8921 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8922 | rm -f conftest.err conftest.$ac_ext |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 8923 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 8924 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 8925 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8926 | # So? What about this header? |
| 8927 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 8928 | yes:no: ) |
| 8929 | { echo "$as_me:$LINENO: WARNING: winsock2.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 8930 | echo "$as_me: WARNING: winsock2.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 8931 | { echo "$as_me:$LINENO: WARNING: winsock2.h: proceeding with the compiler's result" >&5 |
| 8932 | echo "$as_me: WARNING: winsock2.h: proceeding with the compiler's result" >&2;} |
| 8933 | ac_header_preproc=yes |
| 8934 | ;; |
| 8935 | no:yes:* ) |
| 8936 | { echo "$as_me:$LINENO: WARNING: winsock2.h: present but cannot be compiled" >&5 |
| 8937 | echo "$as_me: WARNING: winsock2.h: present but cannot be compiled" >&2;} |
| 8938 | { echo "$as_me:$LINENO: WARNING: winsock2.h: check for missing prerequisite headers?" >&5 |
| 8939 | echo "$as_me: WARNING: winsock2.h: check for missing prerequisite headers?" >&2;} |
| 8940 | { echo "$as_me:$LINENO: WARNING: winsock2.h: see the Autoconf documentation" >&5 |
| 8941 | echo "$as_me: WARNING: winsock2.h: see the Autoconf documentation" >&2;} |
| 8942 | { echo "$as_me:$LINENO: WARNING: winsock2.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 8943 | echo "$as_me: WARNING: winsock2.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 8944 | { echo "$as_me:$LINENO: WARNING: winsock2.h: proceeding with the preprocessor's result" >&5 |
| 8945 | echo "$as_me: WARNING: winsock2.h: proceeding with the preprocessor's result" >&2;} |
| 8946 | { echo "$as_me:$LINENO: WARNING: winsock2.h: in the future, the compiler will take precedence" >&5 |
| 8947 | echo "$as_me: WARNING: winsock2.h: in the future, the compiler will take precedence" >&2;} |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 8948 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8949 | ;; |
| 8950 | esac |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 8951 | { echo "$as_me:$LINENO: checking for winsock2.h" >&5 |
| 8952 | echo $ECHO_N "checking for winsock2.h... $ECHO_C" >&6; } |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 8953 | if test "${ac_cv_header_winsock2_h+set}" = set; then |
| 8954 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 8955 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8956 | ac_cv_header_winsock2_h=$ac_header_preproc |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8957 | fi |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 8958 | { echo "$as_me:$LINENO: result: $ac_cv_header_winsock2_h" >&5 |
| 8959 | echo "${ECHO_T}$ac_cv_header_winsock2_h" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8960 | |
| 8961 | fi |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8962 | if test $ac_cv_header_winsock2_h = yes; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8963 | cat >>confdefs.h <<\_ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8964 | #define PJ_HAS_WINSOCK2_H 1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8965 | _ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8966 | |
| 8967 | fi |
| 8968 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8969 | |
Benny Prijono | 4e48b51 | 2007-05-16 13:41:00 +0000 | [diff] [blame] | 8970 | if test "${ac_cv_header_uuid_uuid_h+set}" = set; then |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 8971 | { echo "$as_me:$LINENO: checking for uuid/uuid.h" >&5 |
| 8972 | echo $ECHO_N "checking for uuid/uuid.h... $ECHO_C" >&6; } |
Benny Prijono | 4e48b51 | 2007-05-16 13:41:00 +0000 | [diff] [blame] | 8973 | if test "${ac_cv_header_uuid_uuid_h+set}" = set; then |
| 8974 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8975 | fi |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 8976 | { echo "$as_me:$LINENO: result: $ac_cv_header_uuid_uuid_h" >&5 |
| 8977 | echo "${ECHO_T}$ac_cv_header_uuid_uuid_h" >&6; } |
Benny Prijono | 4e48b51 | 2007-05-16 13:41:00 +0000 | [diff] [blame] | 8978 | else |
| 8979 | # Is the header compilable? |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 8980 | { echo "$as_me:$LINENO: checking uuid/uuid.h usability" >&5 |
| 8981 | echo $ECHO_N "checking uuid/uuid.h usability... $ECHO_C" >&6; } |
Benny Prijono | 4e48b51 | 2007-05-16 13:41:00 +0000 | [diff] [blame] | 8982 | cat >conftest.$ac_ext <<_ACEOF |
| 8983 | /* confdefs.h. */ |
| 8984 | _ACEOF |
| 8985 | cat confdefs.h >>conftest.$ac_ext |
| 8986 | cat >>conftest.$ac_ext <<_ACEOF |
| 8987 | /* end confdefs.h. */ |
| 8988 | $ac_includes_default |
| 8989 | #include <uuid/uuid.h> |
| 8990 | _ACEOF |
| 8991 | rm -f conftest.$ac_objext |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 8992 | if { (ac_try="$ac_compile" |
| 8993 | case "(($ac_try" in |
| 8994 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8995 | *) ac_try_echo=$ac_try;; |
| 8996 | esac |
| 8997 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8998 | (eval "$ac_compile") 2>conftest.er1 |
Benny Prijono | 4e48b51 | 2007-05-16 13:41:00 +0000 | [diff] [blame] | 8999 | ac_status=$? |
| 9000 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9001 | rm -f conftest.er1 |
| 9002 | cat conftest.err >&5 |
| 9003 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 9004 | (exit $ac_status); } && { |
| 9005 | test -z "$ac_c_werror_flag" || |
| 9006 | test ! -s conftest.err |
| 9007 | } && test -s conftest.$ac_objext; then |
Benny Prijono | 4e48b51 | 2007-05-16 13:41:00 +0000 | [diff] [blame] | 9008 | ac_header_compiler=yes |
| 9009 | else |
| 9010 | echo "$as_me: failed program was:" >&5 |
| 9011 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9012 | |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 9013 | ac_header_compiler=no |
Benny Prijono | 4e48b51 | 2007-05-16 13:41:00 +0000 | [diff] [blame] | 9014 | fi |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 9015 | |
| 9016 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 9017 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 9018 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Benny Prijono | 4e48b51 | 2007-05-16 13:41:00 +0000 | [diff] [blame] | 9019 | |
| 9020 | # Is the header present? |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 9021 | { echo "$as_me:$LINENO: checking uuid/uuid.h presence" >&5 |
| 9022 | echo $ECHO_N "checking uuid/uuid.h presence... $ECHO_C" >&6; } |
Benny Prijono | 4e48b51 | 2007-05-16 13:41:00 +0000 | [diff] [blame] | 9023 | cat >conftest.$ac_ext <<_ACEOF |
| 9024 | /* confdefs.h. */ |
| 9025 | _ACEOF |
| 9026 | cat confdefs.h >>conftest.$ac_ext |
| 9027 | cat >>conftest.$ac_ext <<_ACEOF |
| 9028 | /* end confdefs.h. */ |
| 9029 | #include <uuid/uuid.h> |
| 9030 | _ACEOF |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 9031 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 9032 | case "(($ac_try" in |
| 9033 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9034 | *) ac_try_echo=$ac_try;; |
| 9035 | esac |
| 9036 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9037 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Benny Prijono | 4e48b51 | 2007-05-16 13:41:00 +0000 | [diff] [blame] | 9038 | ac_status=$? |
| 9039 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9040 | rm -f conftest.er1 |
| 9041 | cat conftest.err >&5 |
| 9042 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 9043 | (exit $ac_status); } >/dev/null && { |
| 9044 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 9045 | test ! -s conftest.err |
| 9046 | }; then |
Benny Prijono | 4e48b51 | 2007-05-16 13:41:00 +0000 | [diff] [blame] | 9047 | ac_header_preproc=yes |
| 9048 | else |
| 9049 | echo "$as_me: failed program was:" >&5 |
| 9050 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9051 | |
| 9052 | ac_header_preproc=no |
| 9053 | fi |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 9054 | |
Benny Prijono | 4e48b51 | 2007-05-16 13:41:00 +0000 | [diff] [blame] | 9055 | rm -f conftest.err conftest.$ac_ext |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 9056 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 9057 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Benny Prijono | 4e48b51 | 2007-05-16 13:41:00 +0000 | [diff] [blame] | 9058 | |
| 9059 | # So? What about this header? |
| 9060 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 9061 | yes:no: ) |
| 9062 | { echo "$as_me:$LINENO: WARNING: uuid/uuid.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 9063 | echo "$as_me: WARNING: uuid/uuid.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 9064 | { echo "$as_me:$LINENO: WARNING: uuid/uuid.h: proceeding with the compiler's result" >&5 |
| 9065 | echo "$as_me: WARNING: uuid/uuid.h: proceeding with the compiler's result" >&2;} |
| 9066 | ac_header_preproc=yes |
| 9067 | ;; |
| 9068 | no:yes:* ) |
| 9069 | { echo "$as_me:$LINENO: WARNING: uuid/uuid.h: present but cannot be compiled" >&5 |
| 9070 | echo "$as_me: WARNING: uuid/uuid.h: present but cannot be compiled" >&2;} |
| 9071 | { echo "$as_me:$LINENO: WARNING: uuid/uuid.h: check for missing prerequisite headers?" >&5 |
| 9072 | echo "$as_me: WARNING: uuid/uuid.h: check for missing prerequisite headers?" >&2;} |
| 9073 | { echo "$as_me:$LINENO: WARNING: uuid/uuid.h: see the Autoconf documentation" >&5 |
| 9074 | echo "$as_me: WARNING: uuid/uuid.h: see the Autoconf documentation" >&2;} |
| 9075 | { echo "$as_me:$LINENO: WARNING: uuid/uuid.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 9076 | echo "$as_me: WARNING: uuid/uuid.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 9077 | { echo "$as_me:$LINENO: WARNING: uuid/uuid.h: proceeding with the preprocessor's result" >&5 |
| 9078 | echo "$as_me: WARNING: uuid/uuid.h: proceeding with the preprocessor's result" >&2;} |
| 9079 | { echo "$as_me:$LINENO: WARNING: uuid/uuid.h: in the future, the compiler will take precedence" >&5 |
| 9080 | echo "$as_me: WARNING: uuid/uuid.h: in the future, the compiler will take precedence" >&2;} |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 9081 | |
Benny Prijono | 4e48b51 | 2007-05-16 13:41:00 +0000 | [diff] [blame] | 9082 | ;; |
| 9083 | esac |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 9084 | { echo "$as_me:$LINENO: checking for uuid/uuid.h" >&5 |
| 9085 | echo $ECHO_N "checking for uuid/uuid.h... $ECHO_C" >&6; } |
Benny Prijono | 4e48b51 | 2007-05-16 13:41:00 +0000 | [diff] [blame] | 9086 | if test "${ac_cv_header_uuid_uuid_h+set}" = set; then |
| 9087 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9088 | else |
| 9089 | ac_cv_header_uuid_uuid_h=$ac_header_preproc |
| 9090 | fi |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 9091 | { echo "$as_me:$LINENO: result: $ac_cv_header_uuid_uuid_h" >&5 |
| 9092 | echo "${ECHO_T}$ac_cv_header_uuid_uuid_h" >&6; } |
Benny Prijono | 4e48b51 | 2007-05-16 13:41:00 +0000 | [diff] [blame] | 9093 | |
| 9094 | fi |
| 9095 | if test $ac_cv_header_uuid_uuid_h = yes; then |
| 9096 | ac_has_uuid_h=1 |
| 9097 | fi |
| 9098 | |
| 9099 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9100 | |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 9101 | { echo "$as_me:$LINENO: result: Setting PJ_OS_NAME to $target" >&5 |
| 9102 | echo "${ECHO_T}Setting PJ_OS_NAME to $target" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9103 | cat >>confdefs.h <<_ACEOF |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 9104 | #define PJ_OS_NAME "$target" |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9105 | _ACEOF |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 9106 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9107 | |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 9108 | { echo "$as_me:$LINENO: result: Setting PJ_HAS_ERRNO_VAR to 1" >&5 |
| 9109 | echo "${ECHO_T}Setting PJ_HAS_ERRNO_VAR to 1" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9110 | cat >>confdefs.h <<\_ACEOF |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 9111 | #define PJ_HAS_ERRNO_VAR 1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9112 | _ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9113 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9114 | |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 9115 | { echo "$as_me:$LINENO: result: Setting PJ_HAS_HIGH_RES_TIMER to 1" >&5 |
| 9116 | echo "${ECHO_T}Setting PJ_HAS_HIGH_RES_TIMER to 1" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9117 | cat >>confdefs.h <<\_ACEOF |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 9118 | #define PJ_HAS_HIGH_RES_TIMER 1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9119 | _ACEOF |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 9120 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9121 | |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 9122 | { echo "$as_me:$LINENO: result: Setting PJ_HAS_MALLOC to 1" >&5 |
| 9123 | echo "${ECHO_T}Setting PJ_HAS_MALLOC to 1" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9124 | cat >>confdefs.h <<\_ACEOF |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 9125 | #define PJ_HAS_MALLOC 1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9126 | _ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9127 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9128 | |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 9129 | { echo "$as_me:$LINENO: result: Setting PJ_NATIVE_STRING_IS_UNICODE to 0" >&5 |
| 9130 | echo "${ECHO_T}Setting PJ_NATIVE_STRING_IS_UNICODE to 0" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9131 | cat >>confdefs.h <<\_ACEOF |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 9132 | #define PJ_NATIVE_STRING_IS_UNICODE 0 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9133 | _ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9134 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9135 | |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 9136 | { echo "$as_me:$LINENO: result: Setting PJ_ATOMIC_VALUE_TYPE to long" >&5 |
| 9137 | echo "${ECHO_T}Setting PJ_ATOMIC_VALUE_TYPE to long" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9138 | cat >>confdefs.h <<\_ACEOF |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 9139 | #define PJ_ATOMIC_VALUE_TYPE long |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9140 | _ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9141 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9142 | |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 9143 | { echo "$as_me:$LINENO: checking if inet_aton() is available" >&5 |
| 9144 | echo $ECHO_N "checking if inet_aton() is available... $ECHO_C" >&6; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9145 | cat >conftest.$ac_ext <<_ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9146 | /* confdefs.h. */ |
| 9147 | _ACEOF |
| 9148 | cat confdefs.h >>conftest.$ac_ext |
| 9149 | cat >>conftest.$ac_ext <<_ACEOF |
| 9150 | /* end confdefs.h. */ |
Benny Prijono | c16c6e3 | 2007-11-18 14:53:47 +0000 | [diff] [blame] | 9151 | #include <sys/types.h> |
| 9152 | #include <sys/socket.h> |
| 9153 | #include <arpa/inet.h> |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9154 | int |
| 9155 | main () |
| 9156 | { |
| 9157 | inet_aton(0, 0); |
| 9158 | ; |
| 9159 | return 0; |
| 9160 | } |
| 9161 | _ACEOF |
| 9162 | rm -f conftest.$ac_objext |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 9163 | if { (ac_try="$ac_compile" |
| 9164 | case "(($ac_try" in |
| 9165 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9166 | *) ac_try_echo=$ac_try;; |
| 9167 | esac |
| 9168 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9169 | (eval "$ac_compile") 2>conftest.er1 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9170 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9171 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9172 | rm -f conftest.er1 |
| 9173 | cat conftest.err >&5 |
| 9174 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 9175 | (exit $ac_status); } && { |
| 9176 | test -z "$ac_c_werror_flag" || |
| 9177 | test ! -s conftest.err |
| 9178 | } && test -s conftest.$ac_objext; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9179 | cat >>confdefs.h <<\_ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9180 | #define PJ_SOCK_HAS_INET_ATON 1 |
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 | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 9183 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 9184 | echo "${ECHO_T}yes" >&6; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9185 | else |
| 9186 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9187 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9188 | |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 9189 | { echo "$as_me:$LINENO: result: no" >&5 |
| 9190 | echo "${ECHO_T}no" >&6; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9191 | fi |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9192 | |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 9193 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 9194 | |
| 9195 | { echo "$as_me:$LINENO: checking if inet_pton() is available" >&5 |
| 9196 | echo $ECHO_N "checking if inet_pton() is available... $ECHO_C" >&6; } |
Benny Prijono | c16c6e3 | 2007-11-18 14:53:47 +0000 | [diff] [blame] | 9197 | cat >conftest.$ac_ext <<_ACEOF |
| 9198 | /* confdefs.h. */ |
| 9199 | _ACEOF |
| 9200 | cat confdefs.h >>conftest.$ac_ext |
| 9201 | cat >>conftest.$ac_ext <<_ACEOF |
| 9202 | /* end confdefs.h. */ |
| 9203 | #include <sys/types.h> |
| 9204 | #include <sys/socket.h> |
| 9205 | #include <arpa/inet.h> |
| 9206 | int |
| 9207 | main () |
| 9208 | { |
| 9209 | inet_pton(0, 0, 0); |
| 9210 | ; |
| 9211 | return 0; |
| 9212 | } |
| 9213 | _ACEOF |
| 9214 | rm -f conftest.$ac_objext |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 9215 | if { (ac_try="$ac_compile" |
| 9216 | case "(($ac_try" in |
| 9217 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9218 | *) ac_try_echo=$ac_try;; |
| 9219 | esac |
| 9220 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9221 | (eval "$ac_compile") 2>conftest.er1 |
Benny Prijono | c16c6e3 | 2007-11-18 14:53:47 +0000 | [diff] [blame] | 9222 | ac_status=$? |
| 9223 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9224 | rm -f conftest.er1 |
| 9225 | cat conftest.err >&5 |
| 9226 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 9227 | (exit $ac_status); } && { |
| 9228 | test -z "$ac_c_werror_flag" || |
| 9229 | test ! -s conftest.err |
| 9230 | } && test -s conftest.$ac_objext; then |
Benny Prijono | c16c6e3 | 2007-11-18 14:53:47 +0000 | [diff] [blame] | 9231 | cat >>confdefs.h <<\_ACEOF |
| 9232 | #define PJ_SOCK_HAS_INET_PTON 1 |
| 9233 | _ACEOF |
| 9234 | |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 9235 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 9236 | echo "${ECHO_T}yes" >&6; } |
Benny Prijono | c16c6e3 | 2007-11-18 14:53:47 +0000 | [diff] [blame] | 9237 | else |
| 9238 | echo "$as_me: failed program was:" >&5 |
| 9239 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9240 | |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 9241 | { echo "$as_me:$LINENO: result: no" >&5 |
| 9242 | echo "${ECHO_T}no" >&6; } |
Benny Prijono | c16c6e3 | 2007-11-18 14:53:47 +0000 | [diff] [blame] | 9243 | fi |
Benny Prijono | c16c6e3 | 2007-11-18 14:53:47 +0000 | [diff] [blame] | 9244 | |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 9245 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 9246 | |
| 9247 | { echo "$as_me:$LINENO: checking if inet_ntop() is available" >&5 |
| 9248 | echo $ECHO_N "checking if inet_ntop() is available... $ECHO_C" >&6; } |
Benny Prijono | c16c6e3 | 2007-11-18 14:53:47 +0000 | [diff] [blame] | 9249 | cat >conftest.$ac_ext <<_ACEOF |
| 9250 | /* confdefs.h. */ |
| 9251 | _ACEOF |
| 9252 | cat confdefs.h >>conftest.$ac_ext |
| 9253 | cat >>conftest.$ac_ext <<_ACEOF |
| 9254 | /* end confdefs.h. */ |
| 9255 | #include <sys/types.h> |
| 9256 | #include <sys/socket.h> |
| 9257 | #include <arpa/inet.h> |
| 9258 | int |
| 9259 | main () |
| 9260 | { |
| 9261 | inet_ntop(0, 0, 0, 0); |
| 9262 | ; |
| 9263 | return 0; |
| 9264 | } |
| 9265 | _ACEOF |
| 9266 | rm -f conftest.$ac_objext |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 9267 | if { (ac_try="$ac_compile" |
| 9268 | case "(($ac_try" in |
| 9269 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9270 | *) ac_try_echo=$ac_try;; |
| 9271 | esac |
| 9272 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9273 | (eval "$ac_compile") 2>conftest.er1 |
Benny Prijono | c16c6e3 | 2007-11-18 14:53:47 +0000 | [diff] [blame] | 9274 | ac_status=$? |
| 9275 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9276 | rm -f conftest.er1 |
| 9277 | cat conftest.err >&5 |
| 9278 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 9279 | (exit $ac_status); } && { |
| 9280 | test -z "$ac_c_werror_flag" || |
| 9281 | test ! -s conftest.err |
| 9282 | } && test -s conftest.$ac_objext; then |
Benny Prijono | c16c6e3 | 2007-11-18 14:53:47 +0000 | [diff] [blame] | 9283 | cat >>confdefs.h <<\_ACEOF |
| 9284 | #define PJ_SOCK_HAS_INET_NTOP 1 |
| 9285 | _ACEOF |
| 9286 | |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 9287 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 9288 | echo "${ECHO_T}yes" >&6; } |
Benny Prijono | c16c6e3 | 2007-11-18 14:53:47 +0000 | [diff] [blame] | 9289 | else |
| 9290 | echo "$as_me: failed program was:" >&5 |
| 9291 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9292 | |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 9293 | { echo "$as_me:$LINENO: result: no" >&5 |
| 9294 | echo "${ECHO_T}no" >&6; } |
Benny Prijono | c16c6e3 | 2007-11-18 14:53:47 +0000 | [diff] [blame] | 9295 | fi |
Benny Prijono | c16c6e3 | 2007-11-18 14:53:47 +0000 | [diff] [blame] | 9296 | |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 9297 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 9298 | |
| 9299 | { echo "$as_me:$LINENO: checking if getaddrinfo() is available" >&5 |
| 9300 | echo $ECHO_N "checking if getaddrinfo() is available... $ECHO_C" >&6; } |
Benny Prijono | c16c6e3 | 2007-11-18 14:53:47 +0000 | [diff] [blame] | 9301 | cat >conftest.$ac_ext <<_ACEOF |
| 9302 | /* confdefs.h. */ |
| 9303 | _ACEOF |
| 9304 | cat confdefs.h >>conftest.$ac_ext |
| 9305 | cat >>conftest.$ac_ext <<_ACEOF |
| 9306 | /* end confdefs.h. */ |
| 9307 | #include <sys/types.h> |
| 9308 | #include <sys/socket.h> |
| 9309 | #include <netdb.h> |
| 9310 | int |
| 9311 | main () |
| 9312 | { |
| 9313 | getaddrinfo(0, 0, 0, 0); |
| 9314 | ; |
| 9315 | return 0; |
| 9316 | } |
| 9317 | _ACEOF |
| 9318 | rm -f conftest.$ac_objext |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 9319 | if { (ac_try="$ac_compile" |
| 9320 | case "(($ac_try" in |
| 9321 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9322 | *) ac_try_echo=$ac_try;; |
| 9323 | esac |
| 9324 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9325 | (eval "$ac_compile") 2>conftest.er1 |
Benny Prijono | c16c6e3 | 2007-11-18 14:53:47 +0000 | [diff] [blame] | 9326 | ac_status=$? |
| 9327 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9328 | rm -f conftest.er1 |
| 9329 | cat conftest.err >&5 |
| 9330 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 9331 | (exit $ac_status); } && { |
| 9332 | test -z "$ac_c_werror_flag" || |
| 9333 | test ! -s conftest.err |
| 9334 | } && test -s conftest.$ac_objext; then |
Benny Prijono | c16c6e3 | 2007-11-18 14:53:47 +0000 | [diff] [blame] | 9335 | cat >>confdefs.h <<\_ACEOF |
| 9336 | #define PJ_SOCK_HAS_GETADDRINFO 1 |
| 9337 | _ACEOF |
| 9338 | |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 9339 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 9340 | echo "${ECHO_T}yes" >&6; } |
Benny Prijono | c16c6e3 | 2007-11-18 14:53:47 +0000 | [diff] [blame] | 9341 | else |
| 9342 | echo "$as_me: failed program was:" >&5 |
| 9343 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9344 | |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 9345 | { echo "$as_me:$LINENO: result: no" >&5 |
| 9346 | echo "${ECHO_T}no" >&6; } |
Benny Prijono | c16c6e3 | 2007-11-18 14:53:47 +0000 | [diff] [blame] | 9347 | fi |
Benny Prijono | c16c6e3 | 2007-11-18 14:53:47 +0000 | [diff] [blame] | 9348 | |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 9349 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 9350 | |
| 9351 | { echo "$as_me:$LINENO: checking if sockaddr_in has sin_len member" >&5 |
| 9352 | 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] | 9353 | cat >conftest.$ac_ext <<_ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9354 | /* confdefs.h. */ |
| 9355 | _ACEOF |
| 9356 | cat confdefs.h >>conftest.$ac_ext |
| 9357 | cat >>conftest.$ac_ext <<_ACEOF |
| 9358 | /* end confdefs.h. */ |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame] | 9359 | #include <sys/types.h> |
| 9360 | #include <sys/socket.h> |
| 9361 | #include <netinet/in.h> |
| 9362 | #include <arpa/inet.h> |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9363 | int |
| 9364 | main () |
| 9365 | { |
| 9366 | struct sockaddr_in a; a.sin_len=0; |
| 9367 | ; |
| 9368 | return 0; |
| 9369 | } |
| 9370 | _ACEOF |
| 9371 | rm -f conftest.$ac_objext |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 9372 | if { (ac_try="$ac_compile" |
| 9373 | case "(($ac_try" in |
| 9374 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9375 | *) ac_try_echo=$ac_try;; |
| 9376 | esac |
| 9377 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9378 | (eval "$ac_compile") 2>conftest.er1 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9379 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9380 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9381 | rm -f conftest.er1 |
| 9382 | cat conftest.err >&5 |
| 9383 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 9384 | (exit $ac_status); } && { |
| 9385 | test -z "$ac_c_werror_flag" || |
| 9386 | test ! -s conftest.err |
| 9387 | } && test -s conftest.$ac_objext; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9388 | cat >>confdefs.h <<\_ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9389 | #define PJ_SOCKADDR_HAS_LEN 1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9390 | _ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9391 | |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 9392 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 9393 | echo "${ECHO_T}yes" >&6; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9394 | else |
| 9395 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9396 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9397 | |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 9398 | { echo "$as_me:$LINENO: result: no" >&5 |
| 9399 | echo "${ECHO_T}no" >&6; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9400 | fi |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9401 | |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 9402 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 9403 | |
| 9404 | { echo "$as_me:$LINENO: checking if socklen_t is available" >&5 |
| 9405 | echo $ECHO_N "checking if socklen_t is available... $ECHO_C" >&6; } |
Benny Prijono | 30f85c6 | 2006-09-09 20:05:33 +0000 | [diff] [blame] | 9406 | cat >conftest.$ac_ext <<_ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9407 | /* confdefs.h. */ |
| 9408 | _ACEOF |
| 9409 | cat confdefs.h >>conftest.$ac_ext |
| 9410 | cat >>conftest.$ac_ext <<_ACEOF |
| 9411 | /* end confdefs.h. */ |
Benny Prijono | 1d97162 | 2006-09-10 22:27:40 +0000 | [diff] [blame] | 9412 | #include <sys/socket.h> |
Benny Prijono | 30f85c6 | 2006-09-09 20:05:33 +0000 | [diff] [blame] | 9413 | int |
| 9414 | main () |
| 9415 | { |
| 9416 | socklen_t xxx = 0; |
| 9417 | ; |
| 9418 | return 0; |
| 9419 | } |
| 9420 | _ACEOF |
| 9421 | rm -f conftest.$ac_objext |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 9422 | if { (ac_try="$ac_compile" |
| 9423 | case "(($ac_try" in |
| 9424 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9425 | *) ac_try_echo=$ac_try;; |
| 9426 | esac |
| 9427 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9428 | (eval "$ac_compile") 2>conftest.er1 |
Benny Prijono | 30f85c6 | 2006-09-09 20:05:33 +0000 | [diff] [blame] | 9429 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9430 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9431 | rm -f conftest.er1 |
| 9432 | cat conftest.err >&5 |
| 9433 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 9434 | (exit $ac_status); } && { |
| 9435 | test -z "$ac_c_werror_flag" || |
| 9436 | test ! -s conftest.err |
| 9437 | } && test -s conftest.$ac_objext; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9438 | cat >>confdefs.h <<\_ACEOF |
Benny Prijono | 30f85c6 | 2006-09-09 20:05:33 +0000 | [diff] [blame] | 9439 | #define PJ_HAS_SOCKLEN_T 1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9440 | _ACEOF |
Benny Prijono | 30f85c6 | 2006-09-09 20:05:33 +0000 | [diff] [blame] | 9441 | |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 9442 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 9443 | echo "${ECHO_T}yes" >&6; } |
Benny Prijono | 30f85c6 | 2006-09-09 20:05:33 +0000 | [diff] [blame] | 9444 | else |
| 9445 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9446 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9447 | |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 9448 | { echo "$as_me:$LINENO: result: no" >&5 |
| 9449 | echo "${ECHO_T}no" >&6; } |
Benny Prijono | 30f85c6 | 2006-09-09 20:05:33 +0000 | [diff] [blame] | 9450 | fi |
Benny Prijono | 30f85c6 | 2006-09-09 20:05:33 +0000 | [diff] [blame] | 9451 | |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 9452 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 9453 | |
| 9454 | { echo "$as_me:$LINENO: checking if SO_ERROR is available" >&5 |
| 9455 | echo $ECHO_N "checking if SO_ERROR is available... $ECHO_C" >&6; } |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 9456 | case $target in |
| 9457 | *mingw* | *cygw* | *win32* | *w32* ) |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9458 | cat >>confdefs.h <<\_ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 9459 | #define PJ_HAS_SO_ERROR 1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9460 | _ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 9461 | |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 9462 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 9463 | echo "${ECHO_T}yes" >&6; } |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 9464 | ;; |
| 9465 | *) |
| 9466 | cat >conftest.$ac_ext <<_ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9467 | /* confdefs.h. */ |
| 9468 | _ACEOF |
| 9469 | cat confdefs.h >>conftest.$ac_ext |
| 9470 | cat >>conftest.$ac_ext <<_ACEOF |
| 9471 | /* end confdefs.h. */ |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame] | 9472 | #include <sys/types.h> |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 9473 | #include <sys/socket.h> |
| 9474 | #include <netinet/in.h> |
| 9475 | #include <arpa/inet.h> |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9476 | int |
| 9477 | main () |
| 9478 | { |
| 9479 | int i=SO_ERROR; |
| 9480 | ; |
| 9481 | return 0; |
| 9482 | } |
| 9483 | _ACEOF |
| 9484 | rm -f conftest.$ac_objext |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 9485 | if { (ac_try="$ac_compile" |
| 9486 | case "(($ac_try" in |
| 9487 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9488 | *) ac_try_echo=$ac_try;; |
| 9489 | esac |
| 9490 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9491 | (eval "$ac_compile") 2>conftest.er1 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9492 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9493 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9494 | rm -f conftest.er1 |
| 9495 | cat conftest.err >&5 |
| 9496 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 9497 | (exit $ac_status); } && { |
| 9498 | test -z "$ac_c_werror_flag" || |
| 9499 | test ! -s conftest.err |
| 9500 | } && test -s conftest.$ac_objext; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9501 | cat >>confdefs.h <<\_ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9502 | #define PJ_HAS_SO_ERROR 1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9503 | _ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9504 | |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 9505 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 9506 | echo "${ECHO_T}yes" >&6; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9507 | else |
| 9508 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9509 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9510 | |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 9511 | { echo "$as_me:$LINENO: result: no" >&5 |
| 9512 | echo "${ECHO_T}no" >&6; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9513 | fi |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 9514 | |
| 9515 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 9516 | ;; |
| 9517 | esac |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9518 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9519 | |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 9520 | { echo "$as_me:$LINENO: checking if pthread_rwlock_t is available" >&5 |
| 9521 | 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] | 9522 | cat >conftest.$ac_ext <<_ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9523 | /* confdefs.h. */ |
| 9524 | _ACEOF |
| 9525 | cat confdefs.h >>conftest.$ac_ext |
| 9526 | cat >>conftest.$ac_ext <<_ACEOF |
| 9527 | /* end confdefs.h. */ |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9528 | #include <pthread.h> |
| 9529 | int |
| 9530 | main () |
| 9531 | { |
| 9532 | pthread_rwlock_t *x; |
| 9533 | ; |
| 9534 | return 0; |
| 9535 | } |
| 9536 | _ACEOF |
| 9537 | rm -f conftest.$ac_objext |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 9538 | if { (ac_try="$ac_compile" |
| 9539 | case "(($ac_try" in |
| 9540 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9541 | *) ac_try_echo=$ac_try;; |
| 9542 | esac |
| 9543 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9544 | (eval "$ac_compile") 2>conftest.er1 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9545 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9546 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9547 | rm -f conftest.er1 |
| 9548 | cat conftest.err >&5 |
| 9549 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 9550 | (exit $ac_status); } && { |
| 9551 | test -z "$ac_c_werror_flag" || |
| 9552 | test ! -s conftest.err |
| 9553 | } && test -s conftest.$ac_objext; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9554 | cat >>confdefs.h <<\_ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9555 | #define PJ_EMULATE_RWMUTEX 0 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9556 | _ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9557 | |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 9558 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 9559 | echo "${ECHO_T}yes" >&6; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9560 | else |
| 9561 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9562 | sed 's/^/| /' conftest.$ac_ext >&5 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 9563 | |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 9564 | cat >>confdefs.h <<\_ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9565 | #define PJ_EMULATE_RWMUTEX 1 |
| 9566 | _ACEOF |
| 9567 | |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 9568 | { echo "$as_me:$LINENO: result: no" >&5 |
| 9569 | echo "${ECHO_T}no" >&6; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9570 | fi |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 9571 | |
| 9572 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9573 | |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 9574 | |
| 9575 | case $target in |
| 9576 | *mingw* | *cygw* | *win32* | *w32* ) |
Benny Prijono | ad086e0 | 2007-02-16 10:58:18 +0000 | [diff] [blame] | 9577 | 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] | 9578 | ;; |
| 9579 | *) |
Benny Prijono | 4e48b51 | 2007-05-16 13:41:00 +0000 | [diff] [blame] | 9580 | 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" |
| 9581 | # UUID |
| 9582 | if test "$ac_has_uuid_lib" = "1" -a "$ac_has_uuid_h" = "1"; then |
| 9583 | ac_os_objs="$ac_os_objs guid_uuid.o" |
| 9584 | else |
| 9585 | ac_os_objs="$ac_os_objs guid_simple.o" |
| 9586 | fi |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 9587 | ;; |
| 9588 | esac |
| 9589 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9590 | |
| 9591 | |
| 9592 | |
Benny Prijono | 4e48b51 | 2007-05-16 13:41:00 +0000 | [diff] [blame] | 9593 | |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 9594 | # Check whether --enable-sound was given. |
Benny Prijono | 1d97162 | 2006-09-10 22:27:40 +0000 | [diff] [blame] | 9595 | if test "${enable_sound+set}" = set; then |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 9596 | enableval=$enable_sound; if test "$enable_sound" = "no"; then |
Benny Prijono | 1d97162 | 2006-09-10 22:27:40 +0000 | [diff] [blame] | 9597 | ac_pjmedia_snd=null |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 9598 | { echo "$as_me:$LINENO: result: Checking if sound is disabled... yes" >&5 |
| 9599 | echo "${ECHO_T}Checking if sound is disabled... yes" >&6; } |
Benny Prijono | 1d97162 | 2006-09-10 22:27:40 +0000 | [diff] [blame] | 9600 | fi |
| 9601 | |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 9602 | fi |
| 9603 | |
Benny Prijono | 1d97162 | 2006-09-10 22:27:40 +0000 | [diff] [blame] | 9604 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9605 | |
Benny Prijono | 27c9872 | 2007-04-09 21:28:15 +0000 | [diff] [blame] | 9606 | if test "${ac_cv_header_sys_soundcard_h+set}" = set; then |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 9607 | { echo "$as_me:$LINENO: checking for sys/soundcard.h" >&5 |
| 9608 | echo $ECHO_N "checking for sys/soundcard.h... $ECHO_C" >&6; } |
Benny Prijono | 27c9872 | 2007-04-09 21:28:15 +0000 | [diff] [blame] | 9609 | if test "${ac_cv_header_sys_soundcard_h+set}" = set; then |
| 9610 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9611 | fi |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 9612 | { echo "$as_me:$LINENO: result: $ac_cv_header_sys_soundcard_h" >&5 |
| 9613 | echo "${ECHO_T}$ac_cv_header_sys_soundcard_h" >&6; } |
Benny Prijono | 27c9872 | 2007-04-09 21:28:15 +0000 | [diff] [blame] | 9614 | else |
| 9615 | # Is the header compilable? |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 9616 | { echo "$as_me:$LINENO: checking sys/soundcard.h usability" >&5 |
| 9617 | echo $ECHO_N "checking sys/soundcard.h usability... $ECHO_C" >&6; } |
Benny Prijono | 27c9872 | 2007-04-09 21:28:15 +0000 | [diff] [blame] | 9618 | cat >conftest.$ac_ext <<_ACEOF |
| 9619 | /* confdefs.h. */ |
| 9620 | _ACEOF |
| 9621 | cat confdefs.h >>conftest.$ac_ext |
| 9622 | cat >>conftest.$ac_ext <<_ACEOF |
| 9623 | /* end confdefs.h. */ |
| 9624 | $ac_includes_default |
| 9625 | #include <sys/soundcard.h> |
| 9626 | _ACEOF |
| 9627 | rm -f conftest.$ac_objext |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 9628 | if { (ac_try="$ac_compile" |
| 9629 | case "(($ac_try" in |
| 9630 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9631 | *) ac_try_echo=$ac_try;; |
| 9632 | esac |
| 9633 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9634 | (eval "$ac_compile") 2>conftest.er1 |
Benny Prijono | 27c9872 | 2007-04-09 21:28:15 +0000 | [diff] [blame] | 9635 | ac_status=$? |
| 9636 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9637 | rm -f conftest.er1 |
| 9638 | cat conftest.err >&5 |
| 9639 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 9640 | (exit $ac_status); } && { |
| 9641 | test -z "$ac_c_werror_flag" || |
| 9642 | test ! -s conftest.err |
| 9643 | } && test -s conftest.$ac_objext; then |
Benny Prijono | 27c9872 | 2007-04-09 21:28:15 +0000 | [diff] [blame] | 9644 | ac_header_compiler=yes |
| 9645 | else |
| 9646 | echo "$as_me: failed program was:" >&5 |
| 9647 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9648 | |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 9649 | ac_header_compiler=no |
Benny Prijono | 27c9872 | 2007-04-09 21:28:15 +0000 | [diff] [blame] | 9650 | fi |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 9651 | |
| 9652 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 9653 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 9654 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Benny Prijono | 27c9872 | 2007-04-09 21:28:15 +0000 | [diff] [blame] | 9655 | |
| 9656 | # Is the header present? |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 9657 | { echo "$as_me:$LINENO: checking sys/soundcard.h presence" >&5 |
| 9658 | echo $ECHO_N "checking sys/soundcard.h presence... $ECHO_C" >&6; } |
Benny Prijono | 27c9872 | 2007-04-09 21:28:15 +0000 | [diff] [blame] | 9659 | cat >conftest.$ac_ext <<_ACEOF |
| 9660 | /* confdefs.h. */ |
| 9661 | _ACEOF |
| 9662 | cat confdefs.h >>conftest.$ac_ext |
| 9663 | cat >>conftest.$ac_ext <<_ACEOF |
| 9664 | /* end confdefs.h. */ |
| 9665 | #include <sys/soundcard.h> |
| 9666 | _ACEOF |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 9667 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 9668 | case "(($ac_try" in |
| 9669 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9670 | *) ac_try_echo=$ac_try;; |
| 9671 | esac |
| 9672 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9673 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Benny Prijono | 27c9872 | 2007-04-09 21:28:15 +0000 | [diff] [blame] | 9674 | ac_status=$? |
| 9675 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9676 | rm -f conftest.er1 |
| 9677 | cat conftest.err >&5 |
| 9678 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 9679 | (exit $ac_status); } >/dev/null && { |
| 9680 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 9681 | test ! -s conftest.err |
| 9682 | }; then |
Benny Prijono | 27c9872 | 2007-04-09 21:28:15 +0000 | [diff] [blame] | 9683 | ac_header_preproc=yes |
| 9684 | else |
| 9685 | echo "$as_me: failed program was:" >&5 |
| 9686 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9687 | |
| 9688 | ac_header_preproc=no |
| 9689 | fi |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 9690 | |
Benny Prijono | 27c9872 | 2007-04-09 21:28:15 +0000 | [diff] [blame] | 9691 | rm -f conftest.err conftest.$ac_ext |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 9692 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 9693 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Benny Prijono | 27c9872 | 2007-04-09 21:28:15 +0000 | [diff] [blame] | 9694 | |
| 9695 | # So? What about this header? |
| 9696 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 9697 | yes:no: ) |
| 9698 | { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 9699 | echo "$as_me: WARNING: sys/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 9700 | { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: proceeding with the compiler's result" >&5 |
| 9701 | echo "$as_me: WARNING: sys/soundcard.h: proceeding with the compiler's result" >&2;} |
| 9702 | ac_header_preproc=yes |
| 9703 | ;; |
| 9704 | no:yes:* ) |
| 9705 | { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: present but cannot be compiled" >&5 |
| 9706 | echo "$as_me: WARNING: sys/soundcard.h: present but cannot be compiled" >&2;} |
| 9707 | { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: check for missing prerequisite headers?" >&5 |
| 9708 | echo "$as_me: WARNING: sys/soundcard.h: check for missing prerequisite headers?" >&2;} |
| 9709 | { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: see the Autoconf documentation" >&5 |
| 9710 | echo "$as_me: WARNING: sys/soundcard.h: see the Autoconf documentation" >&2;} |
| 9711 | { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 9712 | echo "$as_me: WARNING: sys/soundcard.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 9713 | { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: proceeding with the preprocessor's result" >&5 |
| 9714 | echo "$as_me: WARNING: sys/soundcard.h: proceeding with the preprocessor's result" >&2;} |
| 9715 | { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: in the future, the compiler will take precedence" >&5 |
| 9716 | echo "$as_me: WARNING: sys/soundcard.h: in the future, the compiler will take precedence" >&2;} |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 9717 | |
Benny Prijono | 27c9872 | 2007-04-09 21:28:15 +0000 | [diff] [blame] | 9718 | ;; |
| 9719 | esac |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 9720 | { echo "$as_me:$LINENO: checking for sys/soundcard.h" >&5 |
| 9721 | echo $ECHO_N "checking for sys/soundcard.h... $ECHO_C" >&6; } |
Benny Prijono | 27c9872 | 2007-04-09 21:28:15 +0000 | [diff] [blame] | 9722 | if test "${ac_cv_header_sys_soundcard_h+set}" = set; then |
| 9723 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9724 | else |
| 9725 | ac_cv_header_sys_soundcard_h=$ac_header_preproc |
| 9726 | fi |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 9727 | { echo "$as_me:$LINENO: result: $ac_cv_header_sys_soundcard_h" >&5 |
| 9728 | echo "${ECHO_T}$ac_cv_header_sys_soundcard_h" >&6; } |
Benny Prijono | 27c9872 | 2007-04-09 21:28:15 +0000 | [diff] [blame] | 9729 | |
| 9730 | fi |
| 9731 | if test $ac_cv_header_sys_soundcard_h = yes; then |
| 9732 | ac_pa_cflags="$ac_pa_cflags -DHAVE_SYS_SOUNDCARD_H" |
| 9733 | fi |
| 9734 | |
| 9735 | |
| 9736 | if test "${ac_cv_header_linux_soundcard_h+set}" = set; then |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 9737 | { echo "$as_me:$LINENO: checking for linux/soundcard.h" >&5 |
| 9738 | echo $ECHO_N "checking for linux/soundcard.h... $ECHO_C" >&6; } |
Benny Prijono | 27c9872 | 2007-04-09 21:28:15 +0000 | [diff] [blame] | 9739 | if test "${ac_cv_header_linux_soundcard_h+set}" = set; then |
| 9740 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9741 | fi |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 9742 | { echo "$as_me:$LINENO: result: $ac_cv_header_linux_soundcard_h" >&5 |
| 9743 | echo "${ECHO_T}$ac_cv_header_linux_soundcard_h" >&6; } |
Benny Prijono | 27c9872 | 2007-04-09 21:28:15 +0000 | [diff] [blame] | 9744 | else |
| 9745 | # Is the header compilable? |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 9746 | { echo "$as_me:$LINENO: checking linux/soundcard.h usability" >&5 |
| 9747 | echo $ECHO_N "checking linux/soundcard.h usability... $ECHO_C" >&6; } |
Benny Prijono | 27c9872 | 2007-04-09 21:28:15 +0000 | [diff] [blame] | 9748 | cat >conftest.$ac_ext <<_ACEOF |
| 9749 | /* confdefs.h. */ |
| 9750 | _ACEOF |
| 9751 | cat confdefs.h >>conftest.$ac_ext |
| 9752 | cat >>conftest.$ac_ext <<_ACEOF |
| 9753 | /* end confdefs.h. */ |
| 9754 | $ac_includes_default |
| 9755 | #include <linux/soundcard.h> |
| 9756 | _ACEOF |
| 9757 | rm -f conftest.$ac_objext |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 9758 | if { (ac_try="$ac_compile" |
| 9759 | case "(($ac_try" in |
| 9760 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9761 | *) ac_try_echo=$ac_try;; |
| 9762 | esac |
| 9763 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9764 | (eval "$ac_compile") 2>conftest.er1 |
Benny Prijono | 27c9872 | 2007-04-09 21:28:15 +0000 | [diff] [blame] | 9765 | ac_status=$? |
| 9766 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9767 | rm -f conftest.er1 |
| 9768 | cat conftest.err >&5 |
| 9769 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 9770 | (exit $ac_status); } && { |
| 9771 | test -z "$ac_c_werror_flag" || |
| 9772 | test ! -s conftest.err |
| 9773 | } && test -s conftest.$ac_objext; then |
Benny Prijono | 27c9872 | 2007-04-09 21:28:15 +0000 | [diff] [blame] | 9774 | ac_header_compiler=yes |
| 9775 | else |
| 9776 | echo "$as_me: failed program was:" >&5 |
| 9777 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9778 | |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 9779 | ac_header_compiler=no |
Benny Prijono | 27c9872 | 2007-04-09 21:28:15 +0000 | [diff] [blame] | 9780 | fi |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 9781 | |
| 9782 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 9783 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 9784 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Benny Prijono | 27c9872 | 2007-04-09 21:28:15 +0000 | [diff] [blame] | 9785 | |
| 9786 | # Is the header present? |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 9787 | { echo "$as_me:$LINENO: checking linux/soundcard.h presence" >&5 |
| 9788 | echo $ECHO_N "checking linux/soundcard.h presence... $ECHO_C" >&6; } |
Benny Prijono | 27c9872 | 2007-04-09 21:28:15 +0000 | [diff] [blame] | 9789 | cat >conftest.$ac_ext <<_ACEOF |
| 9790 | /* confdefs.h. */ |
| 9791 | _ACEOF |
| 9792 | cat confdefs.h >>conftest.$ac_ext |
| 9793 | cat >>conftest.$ac_ext <<_ACEOF |
| 9794 | /* end confdefs.h. */ |
| 9795 | #include <linux/soundcard.h> |
| 9796 | _ACEOF |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 9797 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 9798 | case "(($ac_try" in |
| 9799 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9800 | *) ac_try_echo=$ac_try;; |
| 9801 | esac |
| 9802 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9803 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Benny Prijono | 27c9872 | 2007-04-09 21:28:15 +0000 | [diff] [blame] | 9804 | ac_status=$? |
| 9805 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9806 | rm -f conftest.er1 |
| 9807 | cat conftest.err >&5 |
| 9808 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 9809 | (exit $ac_status); } >/dev/null && { |
| 9810 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 9811 | test ! -s conftest.err |
| 9812 | }; then |
Benny Prijono | 27c9872 | 2007-04-09 21:28:15 +0000 | [diff] [blame] | 9813 | ac_header_preproc=yes |
| 9814 | else |
| 9815 | echo "$as_me: failed program was:" >&5 |
| 9816 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9817 | |
| 9818 | ac_header_preproc=no |
| 9819 | fi |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 9820 | |
Benny Prijono | 27c9872 | 2007-04-09 21:28:15 +0000 | [diff] [blame] | 9821 | rm -f conftest.err conftest.$ac_ext |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 9822 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 9823 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Benny Prijono | 27c9872 | 2007-04-09 21:28:15 +0000 | [diff] [blame] | 9824 | |
| 9825 | # So? What about this header? |
| 9826 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 9827 | yes:no: ) |
| 9828 | { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 9829 | echo "$as_me: WARNING: linux/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 9830 | { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: proceeding with the compiler's result" >&5 |
| 9831 | echo "$as_me: WARNING: linux/soundcard.h: proceeding with the compiler's result" >&2;} |
| 9832 | ac_header_preproc=yes |
| 9833 | ;; |
| 9834 | no:yes:* ) |
| 9835 | { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: present but cannot be compiled" >&5 |
| 9836 | echo "$as_me: WARNING: linux/soundcard.h: present but cannot be compiled" >&2;} |
| 9837 | { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: check for missing prerequisite headers?" >&5 |
| 9838 | echo "$as_me: WARNING: linux/soundcard.h: check for missing prerequisite headers?" >&2;} |
| 9839 | { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: see the Autoconf documentation" >&5 |
| 9840 | echo "$as_me: WARNING: linux/soundcard.h: see the Autoconf documentation" >&2;} |
| 9841 | { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 9842 | echo "$as_me: WARNING: linux/soundcard.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 9843 | { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: proceeding with the preprocessor's result" >&5 |
| 9844 | echo "$as_me: WARNING: linux/soundcard.h: proceeding with the preprocessor's result" >&2;} |
| 9845 | { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: in the future, the compiler will take precedence" >&5 |
| 9846 | echo "$as_me: WARNING: linux/soundcard.h: in the future, the compiler will take precedence" >&2;} |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 9847 | |
Benny Prijono | 27c9872 | 2007-04-09 21:28:15 +0000 | [diff] [blame] | 9848 | ;; |
| 9849 | esac |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 9850 | { echo "$as_me:$LINENO: checking for linux/soundcard.h" >&5 |
| 9851 | echo $ECHO_N "checking for linux/soundcard.h... $ECHO_C" >&6; } |
Benny Prijono | 27c9872 | 2007-04-09 21:28:15 +0000 | [diff] [blame] | 9852 | if test "${ac_cv_header_linux_soundcard_h+set}" = set; then |
| 9853 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9854 | else |
| 9855 | ac_cv_header_linux_soundcard_h=$ac_header_preproc |
| 9856 | fi |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 9857 | { echo "$as_me:$LINENO: result: $ac_cv_header_linux_soundcard_h" >&5 |
| 9858 | echo "${ECHO_T}$ac_cv_header_linux_soundcard_h" >&6; } |
Benny Prijono | 27c9872 | 2007-04-09 21:28:15 +0000 | [diff] [blame] | 9859 | |
| 9860 | fi |
| 9861 | if test $ac_cv_header_linux_soundcard_h = yes; then |
| 9862 | ac_pa_cflags="$ac_pa_cflags -DHAVE_LINUX_SOUNDCARD_H" |
| 9863 | fi |
| 9864 | |
| 9865 | |
| 9866 | if test "${ac_cv_header_machine_soundcard_h+set}" = set; then |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 9867 | { echo "$as_me:$LINENO: checking for machine/soundcard.h" >&5 |
| 9868 | echo $ECHO_N "checking for machine/soundcard.h... $ECHO_C" >&6; } |
Benny Prijono | 27c9872 | 2007-04-09 21:28:15 +0000 | [diff] [blame] | 9869 | if test "${ac_cv_header_machine_soundcard_h+set}" = set; then |
| 9870 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9871 | fi |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 9872 | { echo "$as_me:$LINENO: result: $ac_cv_header_machine_soundcard_h" >&5 |
| 9873 | echo "${ECHO_T}$ac_cv_header_machine_soundcard_h" >&6; } |
Benny Prijono | 27c9872 | 2007-04-09 21:28:15 +0000 | [diff] [blame] | 9874 | else |
| 9875 | # Is the header compilable? |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 9876 | { echo "$as_me:$LINENO: checking machine/soundcard.h usability" >&5 |
| 9877 | echo $ECHO_N "checking machine/soundcard.h usability... $ECHO_C" >&6; } |
Benny Prijono | 27c9872 | 2007-04-09 21:28:15 +0000 | [diff] [blame] | 9878 | cat >conftest.$ac_ext <<_ACEOF |
| 9879 | /* confdefs.h. */ |
| 9880 | _ACEOF |
| 9881 | cat confdefs.h >>conftest.$ac_ext |
| 9882 | cat >>conftest.$ac_ext <<_ACEOF |
| 9883 | /* end confdefs.h. */ |
| 9884 | $ac_includes_default |
| 9885 | #include <machine/soundcard.h> |
| 9886 | _ACEOF |
| 9887 | rm -f conftest.$ac_objext |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 9888 | if { (ac_try="$ac_compile" |
| 9889 | case "(($ac_try" in |
| 9890 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9891 | *) ac_try_echo=$ac_try;; |
| 9892 | esac |
| 9893 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9894 | (eval "$ac_compile") 2>conftest.er1 |
Benny Prijono | 27c9872 | 2007-04-09 21:28:15 +0000 | [diff] [blame] | 9895 | ac_status=$? |
| 9896 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9897 | rm -f conftest.er1 |
| 9898 | cat conftest.err >&5 |
| 9899 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 9900 | (exit $ac_status); } && { |
| 9901 | test -z "$ac_c_werror_flag" || |
| 9902 | test ! -s conftest.err |
| 9903 | } && test -s conftest.$ac_objext; then |
Benny Prijono | 27c9872 | 2007-04-09 21:28:15 +0000 | [diff] [blame] | 9904 | ac_header_compiler=yes |
| 9905 | else |
| 9906 | echo "$as_me: failed program was:" >&5 |
| 9907 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9908 | |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 9909 | ac_header_compiler=no |
Benny Prijono | 27c9872 | 2007-04-09 21:28:15 +0000 | [diff] [blame] | 9910 | fi |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 9911 | |
| 9912 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 9913 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 9914 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Benny Prijono | 27c9872 | 2007-04-09 21:28:15 +0000 | [diff] [blame] | 9915 | |
| 9916 | # Is the header present? |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 9917 | { echo "$as_me:$LINENO: checking machine/soundcard.h presence" >&5 |
| 9918 | echo $ECHO_N "checking machine/soundcard.h presence... $ECHO_C" >&6; } |
Benny Prijono | 27c9872 | 2007-04-09 21:28:15 +0000 | [diff] [blame] | 9919 | cat >conftest.$ac_ext <<_ACEOF |
| 9920 | /* confdefs.h. */ |
| 9921 | _ACEOF |
| 9922 | cat confdefs.h >>conftest.$ac_ext |
| 9923 | cat >>conftest.$ac_ext <<_ACEOF |
| 9924 | /* end confdefs.h. */ |
| 9925 | #include <machine/soundcard.h> |
| 9926 | _ACEOF |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 9927 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 9928 | case "(($ac_try" in |
| 9929 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9930 | *) ac_try_echo=$ac_try;; |
| 9931 | esac |
| 9932 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9933 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Benny Prijono | 27c9872 | 2007-04-09 21:28:15 +0000 | [diff] [blame] | 9934 | ac_status=$? |
| 9935 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9936 | rm -f conftest.er1 |
| 9937 | cat conftest.err >&5 |
| 9938 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 9939 | (exit $ac_status); } >/dev/null && { |
| 9940 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 9941 | test ! -s conftest.err |
| 9942 | }; then |
Benny Prijono | 27c9872 | 2007-04-09 21:28:15 +0000 | [diff] [blame] | 9943 | ac_header_preproc=yes |
| 9944 | else |
| 9945 | echo "$as_me: failed program was:" >&5 |
| 9946 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9947 | |
| 9948 | ac_header_preproc=no |
| 9949 | fi |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 9950 | |
Benny Prijono | 27c9872 | 2007-04-09 21:28:15 +0000 | [diff] [blame] | 9951 | rm -f conftest.err conftest.$ac_ext |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 9952 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 9953 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Benny Prijono | 27c9872 | 2007-04-09 21:28:15 +0000 | [diff] [blame] | 9954 | |
| 9955 | # So? What about this header? |
| 9956 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 9957 | yes:no: ) |
| 9958 | { echo "$as_me:$LINENO: WARNING: machine/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 9959 | echo "$as_me: WARNING: machine/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 9960 | { echo "$as_me:$LINENO: WARNING: machine/soundcard.h: proceeding with the compiler's result" >&5 |
| 9961 | echo "$as_me: WARNING: machine/soundcard.h: proceeding with the compiler's result" >&2;} |
| 9962 | ac_header_preproc=yes |
| 9963 | ;; |
| 9964 | no:yes:* ) |
| 9965 | { echo "$as_me:$LINENO: WARNING: machine/soundcard.h: present but cannot be compiled" >&5 |
| 9966 | echo "$as_me: WARNING: machine/soundcard.h: present but cannot be compiled" >&2;} |
| 9967 | { echo "$as_me:$LINENO: WARNING: machine/soundcard.h: check for missing prerequisite headers?" >&5 |
| 9968 | echo "$as_me: WARNING: machine/soundcard.h: check for missing prerequisite headers?" >&2;} |
| 9969 | { echo "$as_me:$LINENO: WARNING: machine/soundcard.h: see the Autoconf documentation" >&5 |
| 9970 | echo "$as_me: WARNING: machine/soundcard.h: see the Autoconf documentation" >&2;} |
| 9971 | { echo "$as_me:$LINENO: WARNING: machine/soundcard.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 9972 | echo "$as_me: WARNING: machine/soundcard.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 9973 | { echo "$as_me:$LINENO: WARNING: machine/soundcard.h: proceeding with the preprocessor's result" >&5 |
| 9974 | echo "$as_me: WARNING: machine/soundcard.h: proceeding with the preprocessor's result" >&2;} |
| 9975 | { echo "$as_me:$LINENO: WARNING: machine/soundcard.h: in the future, the compiler will take precedence" >&5 |
| 9976 | echo "$as_me: WARNING: machine/soundcard.h: in the future, the compiler will take precedence" >&2;} |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 9977 | |
Benny Prijono | 27c9872 | 2007-04-09 21:28:15 +0000 | [diff] [blame] | 9978 | ;; |
| 9979 | esac |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 9980 | { echo "$as_me:$LINENO: checking for machine/soundcard.h" >&5 |
| 9981 | echo $ECHO_N "checking for machine/soundcard.h... $ECHO_C" >&6; } |
Benny Prijono | 27c9872 | 2007-04-09 21:28:15 +0000 | [diff] [blame] | 9982 | if test "${ac_cv_header_machine_soundcard_h+set}" = set; then |
| 9983 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9984 | else |
| 9985 | ac_cv_header_machine_soundcard_h=$ac_header_preproc |
| 9986 | fi |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 9987 | { echo "$as_me:$LINENO: result: $ac_cv_header_machine_soundcard_h" >&5 |
| 9988 | echo "${ECHO_T}$ac_cv_header_machine_soundcard_h" >&6; } |
Benny Prijono | 27c9872 | 2007-04-09 21:28:15 +0000 | [diff] [blame] | 9989 | |
| 9990 | fi |
| 9991 | if test $ac_cv_header_machine_soundcard_h = yes; then |
| 9992 | ac_pa_cflags="$ac_pa_cflags -DHAVE_MACHINE_SOUNDCARD_H" |
| 9993 | fi |
| 9994 | |
| 9995 | |
| 9996 | |
Benny Prijono | 3e09167 | 2008-01-09 15:43:02 +0000 | [diff] [blame] | 9997 | if test "x$ac_cv_c_bigendian" = "xyes"; then |
| 9998 | ac_pa_cflags="$ac_pa_cflags -DPA_BIG_ENDIAN" |
| 9999 | else |
| 10000 | ac_pa_cflags="$ac_pa_cflags -DPA_LITTLE_ENDIAN" |
| 10001 | fi |
| 10002 | |
Benny Prijono | 1d97162 | 2006-09-10 22:27:40 +0000 | [diff] [blame] | 10003 | if test "$enable_sound" = "no"; then |
| 10004 | true; |
| 10005 | else |
| 10006 | case $target in |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame] | 10007 | *darwin*) |
Benny Prijono | 39ae2da | 2006-10-13 17:57:42 +0000 | [diff] [blame] | 10008 | LIBS="$LIBS -framework CoreAudio -framework CoreServices -framework AudioUnit -framework AudioToolbox" |
| 10009 | if test "`uname -r`" = "6.8"; then |
Benny Prijono | 27c9872 | 2007-04-09 21:28:15 +0000 | [diff] [blame] | 10010 | #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] | 10011 | #AC_MSG_RESULT([Setting additional PortAudio CFLAGS.. -DPA_OLD_CORE_AUDIO -DMOSX_USE_NON_ATOMIC_FLAG_BITS]) |
| 10012 | ac_pjmedia_snd=pa_old_darwinos |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 10013 | { echo "$as_me:$LINENO: result: Checking sound device backend... old coreaudio" >&5 |
| 10014 | echo "${ECHO_T}Checking sound device backend... old coreaudio" >&6; } |
Benny Prijono | 39ae2da | 2006-10-13 17:57:42 +0000 | [diff] [blame] | 10015 | else |
| 10016 | ac_pjmedia_snd=pa_darwinos |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 10017 | { echo "$as_me:$LINENO: result: Checking sound device backend... coreaudio" >&5 |
| 10018 | echo "${ECHO_T}Checking sound device backend... coreaudio" >&6; } |
Benny Prijono | 39ae2da | 2006-10-13 17:57:42 +0000 | [diff] [blame] | 10019 | fi |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame] | 10020 | ;; |
| 10021 | *cygwin* | *mingw*) |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 10022 | ac_pjmedia_snd=pa_win32 |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 10023 | { echo "$as_me:$LINENO: result: Checking sound device backend... win32 sound" >&5 |
| 10024 | echo "${ECHO_T}Checking sound device backend... win32 sound" >&6; } |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 10025 | ;; |
| 10026 | *rtems*) |
| 10027 | ac_pjmedia_snd=null |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 10028 | { echo "$as_me:$LINENO: result: Checking sound device backend... null sound" >&5 |
| 10029 | echo "${ECHO_T}Checking sound device backend... null sound" >&6; } |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 10030 | ;; |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 10031 | *) |
| 10032 | ac_pjmedia_snd=pa_unix |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10033 | if test "${ac_cv_header_alsa_version_h+set}" = set; then |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 10034 | { echo "$as_me:$LINENO: checking for alsa/version.h" >&5 |
| 10035 | echo $ECHO_N "checking for alsa/version.h... $ECHO_C" >&6; } |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 10036 | if test "${ac_cv_header_alsa_version_h+set}" = set; then |
| 10037 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10038 | fi |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 10039 | { echo "$as_me:$LINENO: result: $ac_cv_header_alsa_version_h" >&5 |
| 10040 | echo "${ECHO_T}$ac_cv_header_alsa_version_h" >&6; } |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 10041 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10042 | # Is the header compilable? |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 10043 | { echo "$as_me:$LINENO: checking alsa/version.h usability" >&5 |
| 10044 | echo $ECHO_N "checking alsa/version.h usability... $ECHO_C" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10045 | cat >conftest.$ac_ext <<_ACEOF |
| 10046 | /* confdefs.h. */ |
| 10047 | _ACEOF |
| 10048 | cat confdefs.h >>conftest.$ac_ext |
| 10049 | cat >>conftest.$ac_ext <<_ACEOF |
| 10050 | /* end confdefs.h. */ |
| 10051 | $ac_includes_default |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 10052 | #include <alsa/version.h> |
| 10053 | _ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10054 | rm -f conftest.$ac_objext |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 10055 | if { (ac_try="$ac_compile" |
| 10056 | case "(($ac_try" in |
| 10057 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10058 | *) ac_try_echo=$ac_try;; |
| 10059 | esac |
| 10060 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10061 | (eval "$ac_compile") 2>conftest.er1 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 10062 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10063 | grep -v '^ *+' conftest.er1 >conftest.err |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 10064 | rm -f conftest.er1 |
| 10065 | cat conftest.err >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10066 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 10067 | (exit $ac_status); } && { |
| 10068 | test -z "$ac_c_werror_flag" || |
| 10069 | test ! -s conftest.err |
| 10070 | } && test -s conftest.$ac_objext; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10071 | ac_header_compiler=yes |
| 10072 | else |
| 10073 | echo "$as_me: failed program was:" >&5 |
| 10074 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10075 | |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 10076 | ac_header_compiler=no |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10077 | fi |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 10078 | |
| 10079 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 10080 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 10081 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10082 | |
| 10083 | # Is the header present? |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 10084 | { echo "$as_me:$LINENO: checking alsa/version.h presence" >&5 |
| 10085 | echo $ECHO_N "checking alsa/version.h presence... $ECHO_C" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10086 | cat >conftest.$ac_ext <<_ACEOF |
| 10087 | /* confdefs.h. */ |
| 10088 | _ACEOF |
| 10089 | cat confdefs.h >>conftest.$ac_ext |
| 10090 | cat >>conftest.$ac_ext <<_ACEOF |
| 10091 | /* end confdefs.h. */ |
| 10092 | #include <alsa/version.h> |
| 10093 | _ACEOF |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 10094 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 10095 | case "(($ac_try" in |
| 10096 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10097 | *) ac_try_echo=$ac_try;; |
| 10098 | esac |
| 10099 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10100 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10101 | ac_status=$? |
| 10102 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10103 | rm -f conftest.er1 |
| 10104 | cat conftest.err >&5 |
| 10105 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 10106 | (exit $ac_status); } >/dev/null && { |
| 10107 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 10108 | test ! -s conftest.err |
| 10109 | }; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10110 | ac_header_preproc=yes |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 10111 | else |
| 10112 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10113 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10114 | |
| 10115 | ac_header_preproc=no |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 10116 | fi |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 10117 | |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 10118 | rm -f conftest.err conftest.$ac_ext |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 10119 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 10120 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10121 | |
| 10122 | # So? What about this header? |
| 10123 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 10124 | yes:no: ) |
| 10125 | { echo "$as_me:$LINENO: WARNING: alsa/version.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 10126 | echo "$as_me: WARNING: alsa/version.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 10127 | { echo "$as_me:$LINENO: WARNING: alsa/version.h: proceeding with the compiler's result" >&5 |
| 10128 | echo "$as_me: WARNING: alsa/version.h: proceeding with the compiler's result" >&2;} |
| 10129 | ac_header_preproc=yes |
| 10130 | ;; |
| 10131 | no:yes:* ) |
| 10132 | { echo "$as_me:$LINENO: WARNING: alsa/version.h: present but cannot be compiled" >&5 |
| 10133 | echo "$as_me: WARNING: alsa/version.h: present but cannot be compiled" >&2;} |
| 10134 | { echo "$as_me:$LINENO: WARNING: alsa/version.h: check for missing prerequisite headers?" >&5 |
| 10135 | echo "$as_me: WARNING: alsa/version.h: check for missing prerequisite headers?" >&2;} |
| 10136 | { echo "$as_me:$LINENO: WARNING: alsa/version.h: see the Autoconf documentation" >&5 |
| 10137 | echo "$as_me: WARNING: alsa/version.h: see the Autoconf documentation" >&2;} |
| 10138 | { echo "$as_me:$LINENO: WARNING: alsa/version.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 10139 | echo "$as_me: WARNING: alsa/version.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 10140 | { echo "$as_me:$LINENO: WARNING: alsa/version.h: proceeding with the preprocessor's result" >&5 |
| 10141 | echo "$as_me: WARNING: alsa/version.h: proceeding with the preprocessor's result" >&2;} |
| 10142 | { echo "$as_me:$LINENO: WARNING: alsa/version.h: in the future, the compiler will take precedence" >&5 |
| 10143 | echo "$as_me: WARNING: alsa/version.h: in the future, the compiler will take precedence" >&2;} |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 10144 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10145 | ;; |
| 10146 | esac |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 10147 | { echo "$as_me:$LINENO: checking for alsa/version.h" >&5 |
| 10148 | echo $ECHO_N "checking for alsa/version.h... $ECHO_C" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10149 | if test "${ac_cv_header_alsa_version_h+set}" = set; then |
| 10150 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10151 | else |
| 10152 | ac_cv_header_alsa_version_h=$ac_header_preproc |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 10153 | fi |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 10154 | { echo "$as_me:$LINENO: result: $ac_cv_header_alsa_version_h" >&5 |
| 10155 | echo "${ECHO_T}$ac_cv_header_alsa_version_h" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10156 | |
| 10157 | fi |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 10158 | if test $ac_cv_header_alsa_version_h = yes; then |
| 10159 | ac_pa_use_alsa=1 |
| 10160 | |
| 10161 | LIBS="$LIBS -lasound" |
| 10162 | |
| 10163 | else |
| 10164 | ac_pa_use_alsa=0 |
| 10165 | |
| 10166 | fi |
| 10167 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10168 | |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 10169 | { echo "$as_me:$LINENO: result: Checking sound device backend... unix" >&5 |
| 10170 | echo "${ECHO_T}Checking sound device backend... unix" >&6; } |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 10171 | ;; |
Benny Prijono | 1d97162 | 2006-09-10 22:27:40 +0000 | [diff] [blame] | 10172 | esac |
| 10173 | fi |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 10174 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10175 | |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 10176 | # Check whether --enable-small-filter was given. |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 10177 | if test "${enable_small_filter+set}" = set; then |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 10178 | enableval=$enable_small_filter; if test "$enable_small_filter" = "no"; then |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 10179 | ac_no_small_filter='-DPJMEDIA_HAS_SMALL_FILTER=0' |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 10180 | { echo "$as_me:$LINENO: result: Checking if small filter is disabled... yes" >&5 |
| 10181 | echo "${ECHO_T}Checking if small filter is disabled... yes" >&6; } |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 10182 | fi |
| 10183 | else |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 10184 | { echo "$as_me:$LINENO: result: Checking if small filter is disabled... no" >&5 |
| 10185 | echo "${ECHO_T}Checking if small filter is disabled... no" >&6; } |
| 10186 | fi |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 10187 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10188 | |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 10189 | |
| 10190 | # Check whether --enable-large-filter was given. |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 10191 | if test "${enable_large_filter+set}" = set; then |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 10192 | enableval=$enable_large_filter; if test "$enable_large_filter" = "no"; then |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 10193 | ac_no_large_filter='-DPJMEDIA_HAS_LARGE_FILTER=0' |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 10194 | { echo "$as_me:$LINENO: result: Checking if large filter is disabled... yes" >&5 |
| 10195 | echo "${ECHO_T}Checking if large filter is disabled... yes" >&6; } |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 10196 | fi |
| 10197 | else |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 10198 | { echo "$as_me:$LINENO: result: Checking if large filter is disabled... no" >&5 |
| 10199 | echo "${ECHO_T}Checking if large filter is disabled... no" >&6; } |
| 10200 | fi |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 10201 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10202 | |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 10203 | |
| 10204 | # Check whether --enable-speex-aec was given. |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 10205 | if test "${enable_speex_aec+set}" = set; then |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 10206 | enableval=$enable_speex_aec; if test "$enable_speex_aec" = "no"; then |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 10207 | ac_no_speex_aec='-DPJMEDIA_HAS_SPEEX_AEC=0' |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 10208 | { echo "$as_me:$LINENO: result: Checking if Speex AEC is disabled...yes" >&5 |
| 10209 | echo "${ECHO_T}Checking if Speex AEC is disabled...yes" >&6; } |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 10210 | fi |
| 10211 | else |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 10212 | { echo "$as_me:$LINENO: result: Checking if Speex AEC is disabled...no" >&5 |
| 10213 | echo "${ECHO_T}Checking if Speex AEC is disabled...no" >&6; } |
| 10214 | fi |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 10215 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10216 | |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 10217 | |
| 10218 | # Check whether --enable-g711-codec was given. |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 10219 | if test "${enable_g711_codec+set}" = set; then |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 10220 | enableval=$enable_g711_codec; if test "$enable_g711_codec" = "no"; then |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 10221 | ac_no_g711_codec=1 |
Benny Prijono | 06d1d0e | 2007-01-27 18:09:28 +0000 | [diff] [blame] | 10222 | cat >>confdefs.h <<\_ACEOF |
| 10223 | #define PJMEDIA_HAS_G711_CODEC 0 |
| 10224 | _ACEOF |
| 10225 | |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 10226 | { echo "$as_me:$LINENO: result: Checking if G.711 codec is disabled...yes" >&5 |
| 10227 | echo "${ECHO_T}Checking if G.711 codec is disabled...yes" >&6; } |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 10228 | fi |
| 10229 | else |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 10230 | { echo "$as_me:$LINENO: result: Checking if G.711 codec is disabled...no" >&5 |
| 10231 | echo "${ECHO_T}Checking if G.711 codec is disabled...no" >&6; } |
| 10232 | fi |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 10233 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10234 | |
| 10235 | |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 10236 | |
| 10237 | # Check whether --enable-l16-codec was given. |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 10238 | if test "${enable_l16_codec+set}" = set; then |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 10239 | enableval=$enable_l16_codec; if test "$enable_l16_codec" = "no"; then |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 10240 | ac_no_l16_codec=1 |
Benny Prijono | 06d1d0e | 2007-01-27 18:09:28 +0000 | [diff] [blame] | 10241 | cat >>confdefs.h <<\_ACEOF |
| 10242 | #define PJMEDIA_HAS_L16_CODEC 0 |
| 10243 | _ACEOF |
| 10244 | |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 10245 | { echo "$as_me:$LINENO: result: Checking if L16 codecs are disabled...yes" >&5 |
| 10246 | echo "${ECHO_T}Checking if L16 codecs are disabled...yes" >&6; } |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 10247 | fi |
| 10248 | else |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 10249 | { echo "$as_me:$LINENO: result: Checking if L16 codec is disabled...no" >&5 |
| 10250 | echo "${ECHO_T}Checking if L16 codec is disabled...no" >&6; } |
| 10251 | fi |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 10252 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10253 | |
| 10254 | |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 10255 | |
| 10256 | # Check whether --enable-gsm-codec was given. |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 10257 | if test "${enable_gsm_codec+set}" = set; then |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 10258 | enableval=$enable_gsm_codec; if test "$enable_gsm_codec" = "no"; then |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 10259 | ac_no_gsm_codec=1 |
Benny Prijono | 06d1d0e | 2007-01-27 18:09:28 +0000 | [diff] [blame] | 10260 | cat >>confdefs.h <<\_ACEOF |
| 10261 | #define PJMEDIA_HAS_GSM_CODEC 0 |
| 10262 | _ACEOF |
| 10263 | |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 10264 | { echo "$as_me:$LINENO: result: Checking if GSM codec is disabled...yes" >&5 |
| 10265 | echo "${ECHO_T}Checking if GSM codec is disabled...yes" >&6; } |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 10266 | fi |
| 10267 | else |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 10268 | { echo "$as_me:$LINENO: result: Checking if GSM codec is disabled...no" >&5 |
| 10269 | echo "${ECHO_T}Checking if GSM codec is disabled...no" >&6; } |
| 10270 | fi |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 10271 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10272 | |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 10273 | |
| 10274 | # Check whether --enable-speex-codec was given. |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 10275 | if test "${enable_speex_codec+set}" = set; then |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 10276 | enableval=$enable_speex_codec; if test "$enable_speex_codec" = "no"; then |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 10277 | ac_no_speex_codec=1 |
Benny Prijono | 06d1d0e | 2007-01-27 18:09:28 +0000 | [diff] [blame] | 10278 | cat >>confdefs.h <<\_ACEOF |
| 10279 | #define PJMEDIA_HAS_SPEEX_CODEC 0 |
| 10280 | _ACEOF |
| 10281 | |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 10282 | { echo "$as_me:$LINENO: result: Checking if Speex codec is disabled...yes" >&5 |
| 10283 | echo "${ECHO_T}Checking if Speex codec is disabled...yes" >&6; } |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 10284 | fi |
| 10285 | else |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 10286 | { echo "$as_me:$LINENO: result: Checking if Speex codec is disabled...no" >&5 |
| 10287 | echo "${ECHO_T}Checking if Speex codec is disabled...no" >&6; } |
| 10288 | fi |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 10289 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10290 | |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 10291 | |
| 10292 | # Check whether --enable-ilbc-codec was given. |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 10293 | if test "${enable_ilbc_codec+set}" = set; then |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 10294 | enableval=$enable_ilbc_codec; if test "$enable_ilbc_codec" = "no"; then |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 10295 | ac_no_ilbc_codec=1 |
Benny Prijono | 06d1d0e | 2007-01-27 18:09:28 +0000 | [diff] [blame] | 10296 | cat >>confdefs.h <<\_ACEOF |
| 10297 | #define PJMEDIA_HAS_ILBC_CODEC 0 |
| 10298 | _ACEOF |
| 10299 | |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 10300 | { echo "$as_me:$LINENO: result: Checking if iLBC codec is disabled...yes" >&5 |
| 10301 | echo "${ECHO_T}Checking if iLBC codec is disabled...yes" >&6; } |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 10302 | fi |
| 10303 | else |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 10304 | { echo "$as_me:$LINENO: result: Checking if iLBC codec is disabled...no" >&5 |
| 10305 | echo "${ECHO_T}Checking if iLBC codec is disabled...no" >&6; } |
| 10306 | fi |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 10307 | |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 10308 | |
| 10309 | # Check whether --enable-libsamplerate was given. |
Benny Prijono | 550a1a6 | 2007-10-16 08:54:00 +0000 | [diff] [blame] | 10310 | if test "${enable_libsamplerate+set}" = set; then |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 10311 | enableval=$enable_libsamplerate; |
| 10312 | { echo "$as_me:$LINENO: checking for src_new in -lsamplerate" >&5 |
| 10313 | echo $ECHO_N "checking for src_new in -lsamplerate... $ECHO_C" >&6; } |
Benny Prijono | 550a1a6 | 2007-10-16 08:54:00 +0000 | [diff] [blame] | 10314 | if test "${ac_cv_lib_samplerate_src_new+set}" = set; then |
| 10315 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10316 | else |
| 10317 | ac_check_lib_save_LIBS=$LIBS |
| 10318 | LIBS="-lsamplerate $LIBS" |
| 10319 | cat >conftest.$ac_ext <<_ACEOF |
| 10320 | /* confdefs.h. */ |
| 10321 | _ACEOF |
| 10322 | cat confdefs.h >>conftest.$ac_ext |
| 10323 | cat >>conftest.$ac_ext <<_ACEOF |
| 10324 | /* end confdefs.h. */ |
| 10325 | |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 10326 | /* Override any GCC internal prototype to avoid an error. |
| 10327 | Use char because int might match the return type of a GCC |
| 10328 | builtin and then its argument prototype would still apply. */ |
Benny Prijono | 550a1a6 | 2007-10-16 08:54:00 +0000 | [diff] [blame] | 10329 | #ifdef __cplusplus |
| 10330 | extern "C" |
| 10331 | #endif |
Benny Prijono | 550a1a6 | 2007-10-16 08:54:00 +0000 | [diff] [blame] | 10332 | char src_new (); |
| 10333 | int |
| 10334 | main () |
| 10335 | { |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 10336 | return src_new (); |
Benny Prijono | 550a1a6 | 2007-10-16 08:54:00 +0000 | [diff] [blame] | 10337 | ; |
| 10338 | return 0; |
| 10339 | } |
| 10340 | _ACEOF |
| 10341 | rm -f conftest.$ac_objext conftest$ac_exeext |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 10342 | if { (ac_try="$ac_link" |
| 10343 | case "(($ac_try" in |
| 10344 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10345 | *) ac_try_echo=$ac_try;; |
| 10346 | esac |
| 10347 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10348 | (eval "$ac_link") 2>conftest.er1 |
Benny Prijono | 550a1a6 | 2007-10-16 08:54:00 +0000 | [diff] [blame] | 10349 | ac_status=$? |
| 10350 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10351 | rm -f conftest.er1 |
| 10352 | cat conftest.err >&5 |
| 10353 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 10354 | (exit $ac_status); } && { |
| 10355 | test -z "$ac_c_werror_flag" || |
| 10356 | test ! -s conftest.err |
| 10357 | } && test -s conftest$ac_exeext && |
| 10358 | $as_test_x conftest$ac_exeext; then |
Benny Prijono | 550a1a6 | 2007-10-16 08:54:00 +0000 | [diff] [blame] | 10359 | ac_cv_lib_samplerate_src_new=yes |
| 10360 | else |
| 10361 | echo "$as_me: failed program was:" >&5 |
| 10362 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10363 | |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 10364 | ac_cv_lib_samplerate_src_new=no |
Benny Prijono | 550a1a6 | 2007-10-16 08:54:00 +0000 | [diff] [blame] | 10365 | fi |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 10366 | |
| 10367 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Benny Prijono | 550a1a6 | 2007-10-16 08:54:00 +0000 | [diff] [blame] | 10368 | conftest$ac_exeext conftest.$ac_ext |
| 10369 | LIBS=$ac_check_lib_save_LIBS |
| 10370 | fi |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 10371 | { echo "$as_me:$LINENO: result: $ac_cv_lib_samplerate_src_new" >&5 |
| 10372 | echo "${ECHO_T}$ac_cv_lib_samplerate_src_new" >&6; } |
Benny Prijono | 550a1a6 | 2007-10-16 08:54:00 +0000 | [diff] [blame] | 10373 | if test $ac_cv_lib_samplerate_src_new = yes; then |
| 10374 | cat >>confdefs.h <<_ACEOF |
| 10375 | #define HAVE_LIBSAMPLERATE 1 |
| 10376 | _ACEOF |
| 10377 | |
| 10378 | LIBS="-lsamplerate $LIBS" |
| 10379 | |
| 10380 | fi |
| 10381 | |
| 10382 | else |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 10383 | { echo "$as_me:$LINENO: result: Skipping libsamplerate detection" >&5 |
| 10384 | echo "${ECHO_T}Skipping libsamplerate detection" >&6; } |
Benny Prijono | 550a1a6 | 2007-10-16 08:54:00 +0000 | [diff] [blame] | 10385 | |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 10386 | fi |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10387 | |
| 10388 | |
| 10389 | |
| 10390 | |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 10391 | |
| 10392 | # Check whether --enable-ssl was given. |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10393 | if test "${enable_ssl+set}" = set; then |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 10394 | enableval=$enable_ssl; |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10395 | if test "$enable_ssl" = "no"; then |
| 10396 | ac_no_ssl=1 |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 10397 | { echo "$as_me:$LINENO: result: Checking if SSL support is disabled... yes" >&5 |
| 10398 | echo "${ECHO_T}Checking if SSL support is disabled... yes" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10399 | fi |
| 10400 | |
| 10401 | else |
| 10402 | |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 10403 | { echo "$as_me:$LINENO: result: checking for OpenSSL installations.." >&5 |
| 10404 | echo "${ECHO_T}checking for OpenSSL installations.." >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10405 | |
| 10406 | |
| 10407 | |
| 10408 | if test "${ac_cv_header_openssl_ssl_h+set}" = set; then |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 10409 | { echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5 |
| 10410 | echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10411 | if test "${ac_cv_header_openssl_ssl_h+set}" = set; then |
| 10412 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10413 | fi |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 10414 | { echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5 |
| 10415 | echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10416 | else |
| 10417 | # Is the header compilable? |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 10418 | { echo "$as_me:$LINENO: checking openssl/ssl.h usability" >&5 |
| 10419 | echo $ECHO_N "checking openssl/ssl.h usability... $ECHO_C" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10420 | cat >conftest.$ac_ext <<_ACEOF |
| 10421 | /* confdefs.h. */ |
| 10422 | _ACEOF |
| 10423 | cat confdefs.h >>conftest.$ac_ext |
| 10424 | cat >>conftest.$ac_ext <<_ACEOF |
| 10425 | /* end confdefs.h. */ |
| 10426 | $ac_includes_default |
| 10427 | #include <openssl/ssl.h> |
| 10428 | _ACEOF |
| 10429 | rm -f conftest.$ac_objext |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 10430 | if { (ac_try="$ac_compile" |
| 10431 | case "(($ac_try" in |
| 10432 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10433 | *) ac_try_echo=$ac_try;; |
| 10434 | esac |
| 10435 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10436 | (eval "$ac_compile") 2>conftest.er1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10437 | ac_status=$? |
| 10438 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10439 | rm -f conftest.er1 |
| 10440 | cat conftest.err >&5 |
| 10441 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 10442 | (exit $ac_status); } && { |
| 10443 | test -z "$ac_c_werror_flag" || |
| 10444 | test ! -s conftest.err |
| 10445 | } && test -s conftest.$ac_objext; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10446 | ac_header_compiler=yes |
| 10447 | else |
| 10448 | echo "$as_me: failed program was:" >&5 |
| 10449 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10450 | |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 10451 | ac_header_compiler=no |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10452 | fi |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 10453 | |
| 10454 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 10455 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 10456 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10457 | |
| 10458 | # Is the header present? |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 10459 | { echo "$as_me:$LINENO: checking openssl/ssl.h presence" >&5 |
| 10460 | echo $ECHO_N "checking openssl/ssl.h presence... $ECHO_C" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10461 | cat >conftest.$ac_ext <<_ACEOF |
| 10462 | /* confdefs.h. */ |
| 10463 | _ACEOF |
| 10464 | cat confdefs.h >>conftest.$ac_ext |
| 10465 | cat >>conftest.$ac_ext <<_ACEOF |
| 10466 | /* end confdefs.h. */ |
| 10467 | #include <openssl/ssl.h> |
| 10468 | _ACEOF |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 10469 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 10470 | case "(($ac_try" in |
| 10471 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10472 | *) ac_try_echo=$ac_try;; |
| 10473 | esac |
| 10474 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10475 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10476 | ac_status=$? |
| 10477 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10478 | rm -f conftest.er1 |
| 10479 | cat conftest.err >&5 |
| 10480 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 10481 | (exit $ac_status); } >/dev/null && { |
| 10482 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 10483 | test ! -s conftest.err |
| 10484 | }; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10485 | ac_header_preproc=yes |
| 10486 | else |
| 10487 | echo "$as_me: failed program was:" >&5 |
| 10488 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10489 | |
| 10490 | ac_header_preproc=no |
| 10491 | fi |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 10492 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10493 | rm -f conftest.err conftest.$ac_ext |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 10494 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 10495 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10496 | |
| 10497 | # So? What about this header? |
| 10498 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 10499 | yes:no: ) |
| 10500 | { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 10501 | echo "$as_me: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 10502 | { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the compiler's result" >&5 |
| 10503 | echo "$as_me: WARNING: openssl/ssl.h: proceeding with the compiler's result" >&2;} |
| 10504 | ac_header_preproc=yes |
| 10505 | ;; |
| 10506 | no:yes:* ) |
| 10507 | { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: present but cannot be compiled" >&5 |
| 10508 | echo "$as_me: WARNING: openssl/ssl.h: present but cannot be compiled" >&2;} |
| 10509 | { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&5 |
| 10510 | echo "$as_me: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&2;} |
| 10511 | { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: see the Autoconf documentation" >&5 |
| 10512 | echo "$as_me: WARNING: openssl/ssl.h: see the Autoconf documentation" >&2;} |
| 10513 | { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 10514 | echo "$as_me: WARNING: openssl/ssl.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 10515 | { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&5 |
| 10516 | echo "$as_me: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&2;} |
| 10517 | { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: in the future, the compiler will take precedence" >&5 |
| 10518 | echo "$as_me: WARNING: openssl/ssl.h: in the future, the compiler will take precedence" >&2;} |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 10519 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10520 | ;; |
| 10521 | esac |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 10522 | { echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5 |
| 10523 | echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10524 | if test "${ac_cv_header_openssl_ssl_h+set}" = set; then |
| 10525 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10526 | else |
| 10527 | ac_cv_header_openssl_ssl_h=$ac_header_preproc |
| 10528 | fi |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 10529 | { echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5 |
| 10530 | echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10531 | |
| 10532 | fi |
| 10533 | if test $ac_cv_header_openssl_ssl_h = yes; then |
| 10534 | openssl_h_present=1 |
| 10535 | fi |
| 10536 | |
| 10537 | |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 10538 | { echo "$as_me:$LINENO: checking for SSL_library_init in -lssl" >&5 |
| 10539 | 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] | 10540 | if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then |
| 10541 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10542 | else |
| 10543 | ac_check_lib_save_LIBS=$LIBS |
| 10544 | LIBS="-lssl $LIBS" |
| 10545 | cat >conftest.$ac_ext <<_ACEOF |
| 10546 | /* confdefs.h. */ |
| 10547 | _ACEOF |
| 10548 | cat confdefs.h >>conftest.$ac_ext |
| 10549 | cat >>conftest.$ac_ext <<_ACEOF |
| 10550 | /* end confdefs.h. */ |
| 10551 | |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 10552 | /* Override any GCC internal prototype to avoid an error. |
| 10553 | Use char because int might match the return type of a GCC |
| 10554 | builtin and then its argument prototype would still apply. */ |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10555 | #ifdef __cplusplus |
| 10556 | extern "C" |
| 10557 | #endif |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10558 | char SSL_library_init (); |
| 10559 | int |
| 10560 | main () |
| 10561 | { |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 10562 | return SSL_library_init (); |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10563 | ; |
| 10564 | return 0; |
| 10565 | } |
| 10566 | _ACEOF |
| 10567 | rm -f conftest.$ac_objext conftest$ac_exeext |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 10568 | if { (ac_try="$ac_link" |
| 10569 | case "(($ac_try" in |
| 10570 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10571 | *) ac_try_echo=$ac_try;; |
| 10572 | esac |
| 10573 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10574 | (eval "$ac_link") 2>conftest.er1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10575 | ac_status=$? |
| 10576 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10577 | rm -f conftest.er1 |
| 10578 | cat conftest.err >&5 |
| 10579 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 10580 | (exit $ac_status); } && { |
| 10581 | test -z "$ac_c_werror_flag" || |
| 10582 | test ! -s conftest.err |
| 10583 | } && test -s conftest$ac_exeext && |
| 10584 | $as_test_x conftest$ac_exeext; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10585 | ac_cv_lib_ssl_SSL_library_init=yes |
| 10586 | else |
| 10587 | echo "$as_me: failed program was:" >&5 |
| 10588 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10589 | |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 10590 | ac_cv_lib_ssl_SSL_library_init=no |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10591 | fi |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 10592 | |
| 10593 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10594 | conftest$ac_exeext conftest.$ac_ext |
| 10595 | LIBS=$ac_check_lib_save_LIBS |
| 10596 | fi |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 10597 | { echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_library_init" >&5 |
| 10598 | echo "${ECHO_T}$ac_cv_lib_ssl_SSL_library_init" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10599 | if test $ac_cv_lib_ssl_SSL_library_init = yes; then |
| 10600 | libssl_present=1 && LIBS="$LIBS -lssl" |
| 10601 | fi |
| 10602 | |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 10603 | { echo "$as_me:$LINENO: checking for ERR_load_BIO_strings in -lcrypto" >&5 |
| 10604 | 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] | 10605 | if test "${ac_cv_lib_crypto_ERR_load_BIO_strings+set}" = set; then |
| 10606 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10607 | else |
| 10608 | ac_check_lib_save_LIBS=$LIBS |
| 10609 | LIBS="-lcrypto $LIBS" |
| 10610 | cat >conftest.$ac_ext <<_ACEOF |
| 10611 | /* confdefs.h. */ |
| 10612 | _ACEOF |
| 10613 | cat confdefs.h >>conftest.$ac_ext |
| 10614 | cat >>conftest.$ac_ext <<_ACEOF |
| 10615 | /* end confdefs.h. */ |
| 10616 | |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 10617 | /* Override any GCC internal prototype to avoid an error. |
| 10618 | Use char because int might match the return type of a GCC |
| 10619 | builtin and then its argument prototype would still apply. */ |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10620 | #ifdef __cplusplus |
| 10621 | extern "C" |
| 10622 | #endif |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10623 | char ERR_load_BIO_strings (); |
| 10624 | int |
| 10625 | main () |
| 10626 | { |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 10627 | return ERR_load_BIO_strings (); |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10628 | ; |
| 10629 | return 0; |
| 10630 | } |
| 10631 | _ACEOF |
| 10632 | rm -f conftest.$ac_objext conftest$ac_exeext |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 10633 | if { (ac_try="$ac_link" |
| 10634 | case "(($ac_try" in |
| 10635 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10636 | *) ac_try_echo=$ac_try;; |
| 10637 | esac |
| 10638 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10639 | (eval "$ac_link") 2>conftest.er1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10640 | ac_status=$? |
| 10641 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10642 | rm -f conftest.er1 |
| 10643 | cat conftest.err >&5 |
| 10644 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 10645 | (exit $ac_status); } && { |
| 10646 | test -z "$ac_c_werror_flag" || |
| 10647 | test ! -s conftest.err |
| 10648 | } && test -s conftest$ac_exeext && |
| 10649 | $as_test_x conftest$ac_exeext; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10650 | ac_cv_lib_crypto_ERR_load_BIO_strings=yes |
| 10651 | else |
| 10652 | echo "$as_me: failed program was:" >&5 |
| 10653 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10654 | |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 10655 | ac_cv_lib_crypto_ERR_load_BIO_strings=no |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10656 | fi |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 10657 | |
| 10658 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10659 | conftest$ac_exeext conftest.$ac_ext |
| 10660 | LIBS=$ac_check_lib_save_LIBS |
| 10661 | fi |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 10662 | { echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_ERR_load_BIO_strings" >&5 |
| 10663 | echo "${ECHO_T}$ac_cv_lib_crypto_ERR_load_BIO_strings" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10664 | if test $ac_cv_lib_crypto_ERR_load_BIO_strings = yes; then |
| 10665 | libcrypto_present=1 && LIBS="$LIBS -lcrypto" |
| 10666 | fi |
| 10667 | |
| 10668 | if test "x$openssl_h_present" = "x1" -a "x$libssl_present" = "x1" -a "x$libcrypto_present" = "x1"; then |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 10669 | { echo "$as_me:$LINENO: result: OpenSSL library found, SSL support enabled" >&5 |
| 10670 | echo "${ECHO_T}OpenSSL library found, SSL support enabled" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10671 | cat >>confdefs.h <<\_ACEOF |
| 10672 | #define PJSIP_HAS_TLS_TRANSPORT 1 |
| 10673 | _ACEOF |
| 10674 | |
| 10675 | else |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 10676 | { echo "$as_me:$LINENO: result: ** OpenSSL libraries not found, disabling SSL support **" >&5 |
| 10677 | echo "${ECHO_T}** OpenSSL libraries not found, disabling SSL support **" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10678 | fi |
| 10679 | |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 10680 | fi |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10681 | |
| 10682 | |
| 10683 | |
| 10684 | |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 10685 | |
| 10686 | { echo "$as_me:$LINENO: checking if select() needs correct nfds" >&5 |
| 10687 | echo $ECHO_N "checking if select() needs correct nfds... $ECHO_C" >&6; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 10688 | case $target in |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10689 | *rtems*) cat >>confdefs.h <<\_ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 10690 | #define PJ_SELECT_NEEDS_NFDS 1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10691 | _ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 10692 | |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 10693 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 10694 | echo "${ECHO_T}yes" >&6; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 10695 | ;; |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10696 | *) cat >>confdefs.h <<\_ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 10697 | #define PJ_SELECT_NEEDS_NFDS 0 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10698 | _ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 10699 | |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 10700 | { echo "$as_me:$LINENO: result: no (default)" >&5 |
| 10701 | echo "${ECHO_T}no (default)" >&6; } |
| 10702 | { echo "$as_me:$LINENO: result: ** Decided that select() doesn't need correct nfds (please check)" >&5 |
| 10703 | 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] | 10704 | ;; |
| 10705 | esac |
| 10706 | |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 10707 | { echo "$as_me:$LINENO: checking if pj_thread_create() should enforce stack size" >&5 |
| 10708 | 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] | 10709 | case $target in |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10710 | *rtems*) cat >>confdefs.h <<\_ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 10711 | #define PJ_THREAD_SET_STACK_SIZE 1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10712 | _ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 10713 | |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 10714 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 10715 | echo "${ECHO_T}yes" >&6; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 10716 | ;; |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10717 | *) cat >>confdefs.h <<\_ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 10718 | #define PJ_THREAD_SET_STACK_SIZE 0 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10719 | _ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 10720 | |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 10721 | { echo "$as_me:$LINENO: result: no (default)" >&5 |
| 10722 | echo "${ECHO_T}no (default)" >&6; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 10723 | ;; |
| 10724 | esac |
| 10725 | |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 10726 | { echo "$as_me:$LINENO: checking if pj_thread_create() should allocate stack" >&5 |
| 10727 | 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] | 10728 | case $target in |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10729 | *rtems*) cat >>confdefs.h <<\_ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 10730 | #define PJ_THREAD_ALLOCATE_STACK 1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10731 | _ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 10732 | |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 10733 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 10734 | echo "${ECHO_T}yes" >&6; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 10735 | ;; |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10736 | *) cat >>confdefs.h <<\_ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 10737 | #define PJ_THREAD_ALLOCATE_STACK 0 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10738 | _ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 10739 | |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 10740 | { echo "$as_me:$LINENO: result: no (default)" >&5 |
| 10741 | echo "${ECHO_T}no (default)" >&6; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 10742 | ;; |
| 10743 | esac |
| 10744 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 10745 | case $target in |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 10746 | *mingw* | *cygw* | *win32* | *w32* ) |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10747 | cat >>confdefs.h <<\_ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 10748 | #define PJ_BLOCKING_ERROR_VAL WSAEWOULDBLOCK |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10749 | _ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 10750 | |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 10751 | ;; |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10752 | *) cat >>confdefs.h <<\_ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 10753 | #define PJ_BLOCKING_ERROR_VAL EAGAIN |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10754 | _ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 10755 | |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 10756 | { echo "$as_me:$LINENO: result: ** Setting non-blocking recv() retval to EAGAIN (please check)" >&5 |
| 10757 | 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] | 10758 | ;; |
| 10759 | esac |
| 10760 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 10761 | case $target in |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 10762 | *mingw* | *cygw* | *win32* | *w32* ) |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10763 | cat >>confdefs.h <<\_ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 10764 | #define PJ_BLOCKING_CONNECT_ERROR_VAL WSAEWOULDBLOCK |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10765 | _ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 10766 | |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 10767 | ;; |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10768 | *) cat >>confdefs.h <<\_ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 10769 | #define PJ_BLOCKING_CONNECT_ERROR_VAL EINPROGRESS |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10770 | _ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 10771 | |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 10772 | { echo "$as_me:$LINENO: result: ** Setting non-blocking connect() retval to EINPROGRESS (please check)" >&5 |
| 10773 | 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] | 10774 | ;; |
| 10775 | esac |
| 10776 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10777 | |
| 10778 | |
| 10779 | |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 10780 | if test "$build" = "$host"; then |
| 10781 | ac_cross_compile= |
| 10782 | else |
Benny Prijono | 5b818b2 | 2006-09-17 22:58:51 +0000 | [diff] [blame] | 10783 | ac_cross_compile=${host_orig}- |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 10784 | fi |
| 10785 | ac_linux_poll=select |
| 10786 | |
| 10787 | ac_host=unix |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 10788 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10789 | |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 10790 | case $target in |
| 10791 | *rtems*) |
| 10792 | ac_main_obj=main_rtems.o |
| 10793 | ;; |
| 10794 | *) |
| 10795 | ac_main_obj=main.o |
| 10796 | ;; |
| 10797 | esac |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 10798 | |
| 10799 | cat >confcache <<\_ACEOF |
| 10800 | # This file is a shell script that caches the results of configure |
| 10801 | # tests run on this system so they can be shared between configure |
| 10802 | # scripts and configure runs, see configure's option --config-cache. |
| 10803 | # It is not useful on other systems. If it contains results you don't |
| 10804 | # want to keep, you may remove or edit it. |
| 10805 | # |
| 10806 | # config.status only pays attention to the cache file if you give it |
| 10807 | # the --recheck option to rerun configure. |
| 10808 | # |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10809 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 10810 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
| 10811 | # following values. |
| 10812 | |
| 10813 | _ACEOF |
| 10814 | |
| 10815 | # The following way of writing the cache mishandles newlines in values, |
| 10816 | # but we know of no workaround that is simple, portable, and efficient. |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 10817 | # So, we kill variables containing newlines. |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 10818 | # Ultrix sh set writes to stderr and can't be redirected directly, |
| 10819 | # and sets the high bit in the cache file unless we assign to the vars. |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 10820 | ( |
| 10821 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do |
| 10822 | eval ac_val=\$$ac_var |
| 10823 | case $ac_val in #( |
| 10824 | *${as_nl}*) |
| 10825 | case $ac_var in #( |
| 10826 | *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 |
| 10827 | echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; |
| 10828 | esac |
| 10829 | case $ac_var in #( |
| 10830 | _ | IFS | as_nl) ;; #( |
| 10831 | *) $as_unset $ac_var ;; |
| 10832 | esac ;; |
| 10833 | esac |
| 10834 | done |
| 10835 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 10836 | (set) 2>&1 | |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 10837 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
| 10838 | *${as_nl}ac_space=\ *) |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 10839 | # `set' does not quote correctly, so add quotes (double-quote |
| 10840 | # substitution turns \\\\ into \\, and sed turns \\ into \). |
| 10841 | sed -n \ |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10842 | "s/'/'\\\\''/g; |
| 10843 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 10844 | ;; #( |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 10845 | *) |
| 10846 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 10847 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 10848 | ;; |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 10849 | esac | |
| 10850 | sort |
| 10851 | ) | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 10852 | sed ' |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 10853 | /^ac_cv_env_/b end |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 10854 | t clear |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 10855 | :clear |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 10856 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
| 10857 | t end |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 10858 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
| 10859 | :end' >>confcache |
| 10860 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else |
| 10861 | if test -w "$cache_file"; then |
| 10862 | test "x$cache_file" != "x/dev/null" && |
| 10863 | { echo "$as_me:$LINENO: updating cache $cache_file" >&5 |
| 10864 | echo "$as_me: updating cache $cache_file" >&6;} |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 10865 | cat confcache >$cache_file |
| 10866 | else |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 10867 | { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 |
| 10868 | echo "$as_me: not updating unwritable cache $cache_file" >&6;} |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 10869 | fi |
| 10870 | fi |
| 10871 | rm -f confcache |
| 10872 | |
| 10873 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
| 10874 | # Let make expand exec_prefix. |
| 10875 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
| 10876 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 10877 | DEFS=-DHAVE_CONFIG_H |
| 10878 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10879 | ac_libobjs= |
| 10880 | ac_ltlibobjs= |
| 10881 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
| 10882 | # 1. Remove the extension, and $U if already installed. |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 10883 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
| 10884 | ac_i=`echo "$ac_i" | sed "$ac_script"` |
| 10885 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
| 10886 | # will be set to the directory where LIBOBJS objects are built. |
| 10887 | ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" |
| 10888 | ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10889 | done |
| 10890 | LIBOBJS=$ac_libobjs |
| 10891 | |
| 10892 | LTLIBOBJS=$ac_ltlibobjs |
| 10893 | |
| 10894 | |
| 10895 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 10896 | : ${CONFIG_STATUS=./config.status} |
| 10897 | ac_clean_files_save=$ac_clean_files |
| 10898 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10899 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 10900 | echo "$as_me: creating $CONFIG_STATUS" >&6;} |
| 10901 | cat >$CONFIG_STATUS <<_ACEOF |
| 10902 | #! $SHELL |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10903 | # Generated by $as_me. |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 10904 | # Run this file to recreate the current configuration. |
| 10905 | # Compiler output produced by configure, useful for debugging |
| 10906 | # configure, is in config.log if it exists. |
| 10907 | |
| 10908 | debug=false |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10909 | ac_cs_recheck=false |
| 10910 | ac_cs_silent=false |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 10911 | SHELL=\${CONFIG_SHELL-$SHELL} |
| 10912 | _ACEOF |
| 10913 | |
| 10914 | cat >>$CONFIG_STATUS <<\_ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10915 | ## --------------------- ## |
| 10916 | ## M4sh Initialization. ## |
| 10917 | ## --------------------- ## |
| 10918 | |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 10919 | # Be more Bourne compatible |
| 10920 | DUALCASE=1; export DUALCASE # for MKS sh |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 10921 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
| 10922 | emulate sh |
| 10923 | NULLCMD=: |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10924 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
| 10925 | # is contrary to our usage. Disable this feature. |
| 10926 | alias -g '${1+"$@"}'='"$@"' |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 10927 | setopt NO_GLOB_SUBST |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10928 | else |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 10929 | case `(set -o) 2>/dev/null` in |
| 10930 | *posix*) set -o posix ;; |
| 10931 | esac |
| 10932 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10933 | fi |
| 10934 | |
| 10935 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10936 | |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 10937 | |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 10938 | # PATH needs CR |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10939 | # Avoid depending upon Character Ranges. |
| 10940 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 10941 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 10942 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 10943 | as_cr_digits='0123456789' |
| 10944 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
| 10945 | |
| 10946 | # The user is always right. |
| 10947 | if test "${PATH_SEPARATOR+set}" != set; then |
| 10948 | echo "#! /bin/sh" >conf$$.sh |
| 10949 | echo "exit 0" >>conf$$.sh |
| 10950 | chmod +x conf$$.sh |
| 10951 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
| 10952 | PATH_SEPARATOR=';' |
| 10953 | else |
| 10954 | PATH_SEPARATOR=: |
| 10955 | fi |
| 10956 | rm -f conf$$.sh |
| 10957 | fi |
| 10958 | |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 10959 | # Support unset when possible. |
| 10960 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
| 10961 | as_unset=unset |
| 10962 | else |
| 10963 | as_unset=false |
| 10964 | fi |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10965 | |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 10966 | |
| 10967 | # IFS |
| 10968 | # We need space, tab and new line, in precisely that order. Quoting is |
| 10969 | # there to prevent editors from complaining about space-tab. |
| 10970 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
| 10971 | # splitting by setting IFS to empty value.) |
| 10972 | as_nl=' |
| 10973 | ' |
| 10974 | IFS=" "" $as_nl" |
| 10975 | |
| 10976 | # Find who we are. Look in the path if we contain no directory separator. |
| 10977 | case $0 in |
| 10978 | *[\\/]* ) as_myself=$0 ;; |
| 10979 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10980 | for as_dir in $PATH |
| 10981 | do |
| 10982 | IFS=$as_save_IFS |
| 10983 | test -z "$as_dir" && as_dir=. |
| 10984 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 10985 | done |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 10986 | IFS=$as_save_IFS |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10987 | |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 10988 | ;; |
| 10989 | esac |
| 10990 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 10991 | # in which case we are not to be found in the path. |
| 10992 | if test "x$as_myself" = x; then |
| 10993 | as_myself=$0 |
| 10994 | fi |
| 10995 | if test ! -f "$as_myself"; then |
| 10996 | echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
| 10997 | { (exit 1); exit 1; } |
| 10998 | fi |
| 10999 | |
| 11000 | # Work around bugs in pre-3.0 UWIN ksh. |
| 11001 | for as_var in ENV MAIL MAILPATH |
| 11002 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
| 11003 | done |
| 11004 | PS1='$ ' |
| 11005 | PS2='> ' |
| 11006 | PS4='+ ' |
| 11007 | |
| 11008 | # NLS nuisances. |
| 11009 | for as_var in \ |
| 11010 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
| 11011 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
| 11012 | LC_TELEPHONE LC_TIME |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11013 | do |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 11014 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
| 11015 | eval $as_var=C; export $as_var |
| 11016 | else |
| 11017 | ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
| 11018 | fi |
| 11019 | done |
| 11020 | |
| 11021 | # Required to use basename. |
| 11022 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 11023 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
| 11024 | as_expr=expr |
| 11025 | else |
| 11026 | as_expr=false |
| 11027 | fi |
| 11028 | |
| 11029 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
| 11030 | as_basename=basename |
| 11031 | else |
| 11032 | as_basename=false |
| 11033 | fi |
| 11034 | |
| 11035 | |
| 11036 | # Name of the executable. |
| 11037 | as_me=`$as_basename -- "$0" || |
| 11038 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 11039 | X"$0" : 'X\(//\)$' \| \ |
| 11040 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
| 11041 | echo X/"$0" | |
| 11042 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
| 11043 | s//\1/ |
| 11044 | q |
| 11045 | } |
| 11046 | /^X\/\(\/\/\)$/{ |
| 11047 | s//\1/ |
| 11048 | q |
| 11049 | } |
| 11050 | /^X\/\(\/\).*/{ |
| 11051 | s//\1/ |
| 11052 | q |
| 11053 | } |
| 11054 | s/.*/./; q'` |
| 11055 | |
| 11056 | # CDPATH. |
| 11057 | $as_unset CDPATH |
| 11058 | |
| 11059 | |
| 11060 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11061 | as_lineno_1=$LINENO |
| 11062 | as_lineno_2=$LINENO |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11063 | test "x$as_lineno_1" != "x$as_lineno_2" && |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 11064 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11065 | |
| 11066 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
| 11067 | # uniformly replaced by the line number. The first 'sed' inserts a |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 11068 | # line-number line after each line using $LINENO; the second 'sed' |
| 11069 | # does the real work. The second script uses 'N' to pair each |
| 11070 | # line-number line with the line containing $LINENO, and appends |
| 11071 | # trailing '-' during substitution so that $LINENO is not a special |
| 11072 | # case at line end. |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11073 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 11074 | # scripts with optimization help from Paolo Bonzini. Blame Lee |
| 11075 | # E. McMahon (1931-1989) for sed's syntax. :-) |
| 11076 | sed -n ' |
| 11077 | p |
| 11078 | /[$]LINENO/= |
| 11079 | ' <$as_myself | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11080 | sed ' |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 11081 | s/[$]LINENO.*/&-/ |
| 11082 | t lineno |
| 11083 | b |
| 11084 | :lineno |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11085 | N |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 11086 | :loop |
| 11087 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11088 | t loop |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 11089 | s/-\n.*// |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11090 | ' >$as_me.lineno && |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 11091 | chmod +x "$as_me.lineno" || |
| 11092 | { 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] | 11093 | { (exit 1); exit 1; }; } |
| 11094 | |
| 11095 | # Don't try to exec as it changes $[0], causing all sort of problems |
| 11096 | # (the dirname of $[0] is not the place where we might find the |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 11097 | # original and so on. Autoconf is especially sensitive to this). |
| 11098 | . "./$as_me.lineno" |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11099 | # Exit status is that of the last command. |
| 11100 | exit |
| 11101 | } |
| 11102 | |
| 11103 | |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 11104 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
| 11105 | as_dirname=dirname |
| 11106 | else |
| 11107 | as_dirname=false |
| 11108 | fi |
| 11109 | |
| 11110 | ECHO_C= ECHO_N= ECHO_T= |
| 11111 | case `echo -n x` in |
| 11112 | -n*) |
| 11113 | case `echo 'x\c'` in |
| 11114 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
| 11115 | *) ECHO_C='\c';; |
| 11116 | esac;; |
| 11117 | *) |
| 11118 | ECHO_N='-n';; |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11119 | esac |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11120 | |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 11121 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 11122 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11123 | as_expr=expr |
| 11124 | else |
| 11125 | as_expr=false |
| 11126 | fi |
| 11127 | |
| 11128 | rm -f conf$$ conf$$.exe conf$$.file |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 11129 | if test -d conf$$.dir; then |
| 11130 | rm -f conf$$.dir/conf$$.file |
| 11131 | else |
| 11132 | rm -f conf$$.dir |
| 11133 | mkdir conf$$.dir |
| 11134 | fi |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11135 | echo >conf$$.file |
| 11136 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 11137 | as_ln_s='ln -s' |
| 11138 | # ... but there are two gotchas: |
| 11139 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
| 11140 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
| 11141 | # In both cases, we have to default to `cp -p'. |
| 11142 | 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] | 11143 | as_ln_s='cp -p' |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11144 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 11145 | as_ln_s=ln |
| 11146 | else |
| 11147 | as_ln_s='cp -p' |
| 11148 | fi |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 11149 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
| 11150 | rmdir conf$$.dir 2>/dev/null |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11151 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11152 | if mkdir -p . 2>/dev/null; then |
| 11153 | as_mkdir_p=: |
Benny Prijono | 39ae2da | 2006-10-13 17:57:42 +0000 | [diff] [blame] | 11154 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11155 | test -d ./-p && rmdir ./-p |
| 11156 | as_mkdir_p=false |
Benny Prijono | 39ae2da | 2006-10-13 17:57:42 +0000 | [diff] [blame] | 11157 | fi |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 11158 | |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 11159 | if test -x / >/dev/null 2>&1; then |
| 11160 | as_test_x='test -x' |
| 11161 | else |
| 11162 | if ls -dL / >/dev/null 2>&1; then |
| 11163 | as_ls_L_option=L |
| 11164 | else |
| 11165 | as_ls_L_option= |
| 11166 | fi |
| 11167 | as_test_x=' |
| 11168 | eval sh -c '\'' |
| 11169 | if test -d "$1"; then |
| 11170 | test -d "$1/."; |
| 11171 | else |
| 11172 | case $1 in |
| 11173 | -*)set "./$1";; |
| 11174 | esac; |
| 11175 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in |
| 11176 | ???[sx]*):;;*)false;;esac;fi |
| 11177 | '\'' sh |
| 11178 | ' |
| 11179 | fi |
| 11180 | as_executable_p=$as_test_x |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11181 | |
| 11182 | # Sed expression to map a string onto a valid CPP name. |
| 11183 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
| 11184 | |
| 11185 | # Sed expression to map a string onto a valid variable name. |
| 11186 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
| 11187 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11188 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11189 | exec 6>&1 |
| 11190 | |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 11191 | # 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] | 11192 | # report actual input values of CONFIG_FILES etc. instead of their |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 11193 | # values after options handling. |
| 11194 | ac_log=" |
Benny Prijono | abcf49c | 2007-05-15 21:02:54 +0000 | [diff] [blame] | 11195 | This file was extended by pjproject $as_me 0.7, which was |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 11196 | generated by GNU Autoconf 2.61. Invocation command line was |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11197 | |
| 11198 | CONFIG_FILES = $CONFIG_FILES |
| 11199 | CONFIG_HEADERS = $CONFIG_HEADERS |
| 11200 | CONFIG_LINKS = $CONFIG_LINKS |
| 11201 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
| 11202 | $ $0 $@ |
| 11203 | |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 11204 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 11205 | " |
| 11206 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11207 | _ACEOF |
| 11208 | |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 11209 | cat >>$CONFIG_STATUS <<_ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11210 | # Files that config.status was made for. |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 11211 | config_files="$ac_config_files" |
| 11212 | config_headers="$ac_config_headers" |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11213 | |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 11214 | _ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11215 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11216 | cat >>$CONFIG_STATUS <<\_ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11217 | ac_cs_usage="\ |
| 11218 | \`$as_me' instantiates files from templates according to the |
| 11219 | current configuration. |
| 11220 | |
| 11221 | Usage: $0 [OPTIONS] [FILE]... |
| 11222 | |
| 11223 | -h, --help print this help, then exit |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 11224 | -V, --version print version number and configuration settings, then exit |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11225 | -q, --quiet do not print progress messages |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11226 | -d, --debug don't remove temporary files |
| 11227 | --recheck update $as_me by reconfiguring in the same conditions |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 11228 | --file=FILE[:TEMPLATE] |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11229 | instantiate the configuration file FILE |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11230 | --header=FILE[:TEMPLATE] |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11231 | instantiate the configuration header FILE |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11232 | |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 11233 | Configuration files: |
| 11234 | $config_files |
| 11235 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11236 | Configuration headers: |
| 11237 | $config_headers |
| 11238 | |
| 11239 | Report bugs to <bug-autoconf@gnu.org>." |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11240 | |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 11241 | _ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11242 | cat >>$CONFIG_STATUS <<_ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11243 | ac_cs_version="\\ |
Benny Prijono | abcf49c | 2007-05-15 21:02:54 +0000 | [diff] [blame] | 11244 | pjproject config.status 0.7 |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 11245 | configured by $0, generated by GNU Autoconf 2.61, |
| 11246 | with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11247 | |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 11248 | Copyright (C) 2006 Free Software Foundation, Inc. |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11249 | This config.status script is free software; the Free Software Foundation |
| 11250 | gives unlimited permission to copy, distribute and modify it." |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 11251 | |
| 11252 | ac_pwd='$ac_pwd' |
| 11253 | srcdir='$srcdir' |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11254 | _ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11255 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11256 | cat >>$CONFIG_STATUS <<\_ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11257 | # If no file are specified by the user, then we need to provide default |
| 11258 | # value. By we need to know if files were specified by the user. |
| 11259 | ac_need_defaults=: |
| 11260 | while test $# != 0 |
| 11261 | do |
| 11262 | case $1 in |
| 11263 | --*=*) |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 11264 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
| 11265 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11266 | ac_shift=: |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11267 | ;; |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 11268 | *) |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11269 | ac_option=$1 |
| 11270 | ac_optarg=$2 |
| 11271 | ac_shift=shift |
| 11272 | ;; |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11273 | esac |
| 11274 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11275 | case $ac_option in |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11276 | # Handling of the options. |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11277 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11278 | ac_cs_recheck=: ;; |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 11279 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
| 11280 | echo "$ac_cs_version"; exit ;; |
| 11281 | --debug | --debu | --deb | --de | --d | -d ) |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11282 | debug=: ;; |
| 11283 | --file | --fil | --fi | --f ) |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11284 | $ac_shift |
| 11285 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11286 | ac_need_defaults=false;; |
| 11287 | --header | --heade | --head | --hea ) |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11288 | $ac_shift |
| 11289 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11290 | ac_need_defaults=false;; |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 11291 | --he | --h) |
| 11292 | # Conflict between --help and --header |
| 11293 | { echo "$as_me: error: ambiguous option: $1 |
| 11294 | Try \`$0 --help' for more information." >&2 |
| 11295 | { (exit 1); exit 1; }; };; |
| 11296 | --help | --hel | -h ) |
| 11297 | echo "$ac_cs_usage"; exit ;; |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11298 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 11299 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
| 11300 | ac_cs_silent=: ;; |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11301 | |
| 11302 | # This is an error. |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 11303 | -*) { echo "$as_me: error: unrecognized option: $1 |
| 11304 | Try \`$0 --help' for more information." >&2 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11305 | { (exit 1); exit 1; }; } ;; |
| 11306 | |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 11307 | *) ac_config_targets="$ac_config_targets $1" |
| 11308 | ac_need_defaults=false ;; |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11309 | |
| 11310 | esac |
| 11311 | shift |
| 11312 | done |
| 11313 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11314 | ac_configure_extra_args= |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11315 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11316 | if $ac_cs_silent; then |
| 11317 | exec 6>/dev/null |
| 11318 | ac_configure_extra_args="$ac_configure_extra_args --silent" |
| 11319 | fi |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11320 | |
| 11321 | _ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11322 | cat >>$CONFIG_STATUS <<_ACEOF |
| 11323 | if \$ac_cs_recheck; then |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 11324 | echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 |
| 11325 | CONFIG_SHELL=$SHELL |
| 11326 | export CONFIG_SHELL |
| 11327 | 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] | 11328 | fi |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11329 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11330 | _ACEOF |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 11331 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 11332 | exec 5>>config.log |
| 11333 | { |
| 11334 | echo |
| 11335 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
| 11336 | ## Running $as_me. ## |
| 11337 | _ASBOX |
| 11338 | echo "$ac_log" |
| 11339 | } >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11340 | |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 11341 | _ACEOF |
| 11342 | cat >>$CONFIG_STATUS <<_ACEOF |
| 11343 | _ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11344 | |
| 11345 | cat >>$CONFIG_STATUS <<\_ACEOF |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 11346 | |
| 11347 | # Handling of arguments. |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11348 | for ac_config_target in $ac_config_targets |
| 11349 | do |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 11350 | case $ac_config_target in |
| 11351 | "pjlib/include/pj/compat/os_auto.h") CONFIG_HEADERS="$CONFIG_HEADERS pjlib/include/pj/compat/os_auto.h" ;; |
| 11352 | "pjlib/include/pj/compat/m_auto.h") CONFIG_HEADERS="$CONFIG_HEADERS pjlib/include/pj/compat/m_auto.h" ;; |
| 11353 | "pjmedia/include/pjmedia/config_auto.h") CONFIG_HEADERS="$CONFIG_HEADERS pjmedia/include/pjmedia/config_auto.h" ;; |
| 11354 | "pjmedia/include/pjmedia-codec/config_auto.h") CONFIG_HEADERS="$CONFIG_HEADERS pjmedia/include/pjmedia-codec/config_auto.h" ;; |
| 11355 | "pjsip/include/pjsip/sip_autoconf.h") CONFIG_HEADERS="$CONFIG_HEADERS pjsip/include/pjsip/sip_autoconf.h" ;; |
| 11356 | "build.mak") CONFIG_FILES="$CONFIG_FILES build.mak" ;; |
| 11357 | "build/os-auto.mak") CONFIG_FILES="$CONFIG_FILES build/os-auto.mak" ;; |
| 11358 | "pjlib/build/os-auto.mak") CONFIG_FILES="$CONFIG_FILES pjlib/build/os-auto.mak" ;; |
| 11359 | "pjlib-util/build/os-auto.mak") CONFIG_FILES="$CONFIG_FILES pjlib-util/build/os-auto.mak" ;; |
| 11360 | "pjmedia/build/os-auto.mak") CONFIG_FILES="$CONFIG_FILES pjmedia/build/os-auto.mak" ;; |
| 11361 | "pjsip/build/os-auto.mak") CONFIG_FILES="$CONFIG_FILES pjsip/build/os-auto.mak" ;; |
| 11362 | "third_party/build/portaudio/os-auto.mak") CONFIG_FILES="$CONFIG_FILES third_party/build/portaudio/os-auto.mak" ;; |
| 11363 | "third_party/build/os-auto.mak") CONFIG_FILES="$CONFIG_FILES third_party/build/os-auto.mak" ;; |
| 11364 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11365 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11366 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
| 11367 | { (exit 1); exit 1; }; };; |
| 11368 | esac |
| 11369 | done |
| 11370 | |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 11371 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11372 | # If the user did not use the arguments to specify the items to instantiate, |
| 11373 | # then the envvar interface is used. Set only those that are not. |
| 11374 | # We use the long form for the default assignment because of an extremely |
| 11375 | # bizarre bug on SunOS 4.1.3. |
| 11376 | if $ac_need_defaults; then |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 11377 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11378 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
| 11379 | fi |
| 11380 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11381 | # Have a temporary directory for convenience. Make it in the build tree |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 11382 | # 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] | 11383 | # creating and moving files from /tmp can sometimes cause problems. |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 11384 | # Hook for its removal unless debugging. |
| 11385 | # Note that there is a small window in which the directory will not be cleaned: |
| 11386 | # after its creation but before its name has been assigned to `$tmp'. |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11387 | $debug || |
| 11388 | { |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 11389 | tmp= |
| 11390 | trap 'exit_status=$? |
| 11391 | { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status |
| 11392 | ' 0 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11393 | trap '{ (exit 1); exit 1; }' 1 2 13 15 |
| 11394 | } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11395 | # Create a (secure) tmp directory for tmp files. |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11396 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11397 | { |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 11398 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11399 | test -n "$tmp" && test -d "$tmp" |
| 11400 | } || |
| 11401 | { |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 11402 | tmp=./conf$$-$RANDOM |
| 11403 | (umask 077 && mkdir "$tmp") |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11404 | } || |
| 11405 | { |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11406 | echo "$me: cannot create a temporary directory in ." >&2 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11407 | { (exit 1); exit 1; } |
| 11408 | } |
| 11409 | |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 11410 | # |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 11411 | # Set up the sed scripts for CONFIG_FILES section. |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 11412 | # |
| 11413 | |
| 11414 | # No need to generate the scripts if there are no CONFIG_FILES. |
| 11415 | # This happens for instance when ./config.status config.h |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 11416 | if test -n "$CONFIG_FILES"; then |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 11417 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11418 | _ACEOF |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 11419 | |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 11420 | |
| 11421 | |
| 11422 | ac_delim='%!_!# ' |
| 11423 | for ac_last_try in false false false false false :; do |
| 11424 | cat >conf$$subs.sed <<_ACEOF |
| 11425 | SHELL!$SHELL$ac_delim |
| 11426 | PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim |
| 11427 | PACKAGE_NAME!$PACKAGE_NAME$ac_delim |
| 11428 | PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim |
| 11429 | PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim |
| 11430 | PACKAGE_STRING!$PACKAGE_STRING$ac_delim |
| 11431 | PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim |
| 11432 | exec_prefix!$exec_prefix$ac_delim |
| 11433 | prefix!$prefix$ac_delim |
| 11434 | program_transform_name!$program_transform_name$ac_delim |
| 11435 | bindir!$bindir$ac_delim |
| 11436 | sbindir!$sbindir$ac_delim |
| 11437 | libexecdir!$libexecdir$ac_delim |
| 11438 | datarootdir!$datarootdir$ac_delim |
| 11439 | datadir!$datadir$ac_delim |
| 11440 | sysconfdir!$sysconfdir$ac_delim |
| 11441 | sharedstatedir!$sharedstatedir$ac_delim |
| 11442 | localstatedir!$localstatedir$ac_delim |
| 11443 | includedir!$includedir$ac_delim |
| 11444 | oldincludedir!$oldincludedir$ac_delim |
| 11445 | docdir!$docdir$ac_delim |
| 11446 | infodir!$infodir$ac_delim |
| 11447 | htmldir!$htmldir$ac_delim |
| 11448 | dvidir!$dvidir$ac_delim |
| 11449 | pdfdir!$pdfdir$ac_delim |
| 11450 | psdir!$psdir$ac_delim |
| 11451 | libdir!$libdir$ac_delim |
| 11452 | localedir!$localedir$ac_delim |
| 11453 | mandir!$mandir$ac_delim |
| 11454 | DEFS!$DEFS$ac_delim |
| 11455 | ECHO_C!$ECHO_C$ac_delim |
| 11456 | ECHO_N!$ECHO_N$ac_delim |
| 11457 | ECHO_T!$ECHO_T$ac_delim |
| 11458 | LIBS!$LIBS$ac_delim |
| 11459 | build_alias!$build_alias$ac_delim |
| 11460 | host_alias!$host_alias$ac_delim |
| 11461 | target_alias!$target_alias$ac_delim |
| 11462 | build!$build$ac_delim |
| 11463 | build_cpu!$build_cpu$ac_delim |
| 11464 | build_vendor!$build_vendor$ac_delim |
| 11465 | build_os!$build_os$ac_delim |
| 11466 | host!$host$ac_delim |
| 11467 | host_cpu!$host_cpu$ac_delim |
| 11468 | host_vendor!$host_vendor$ac_delim |
| 11469 | host_os!$host_os$ac_delim |
| 11470 | target!$target$ac_delim |
| 11471 | target_cpu!$target_cpu$ac_delim |
| 11472 | target_vendor!$target_vendor$ac_delim |
| 11473 | target_os!$target_os$ac_delim |
| 11474 | CC!$CC$ac_delim |
| 11475 | CFLAGS!$CFLAGS$ac_delim |
| 11476 | LDFLAGS!$LDFLAGS$ac_delim |
| 11477 | CPPFLAGS!$CPPFLAGS$ac_delim |
| 11478 | ac_ct_CC!$ac_ct_CC$ac_delim |
| 11479 | EXEEXT!$EXEEXT$ac_delim |
| 11480 | OBJEXT!$OBJEXT$ac_delim |
| 11481 | CXX!$CXX$ac_delim |
| 11482 | CXXFLAGS!$CXXFLAGS$ac_delim |
| 11483 | ac_ct_CXX!$ac_ct_CXX$ac_delim |
| 11484 | ac_pjdir!$ac_pjdir$ac_delim |
| 11485 | CPP!$CPP$ac_delim |
| 11486 | GREP!$GREP$ac_delim |
| 11487 | EGREP!$EGREP$ac_delim |
| 11488 | ac_os_objs!$ac_os_objs$ac_delim |
| 11489 | ac_pjmedia_snd!$ac_pjmedia_snd$ac_delim |
| 11490 | ac_pa_cflags!$ac_pa_cflags$ac_delim |
| 11491 | ac_pa_use_alsa!$ac_pa_use_alsa$ac_delim |
| 11492 | ac_no_small_filter!$ac_no_small_filter$ac_delim |
| 11493 | ac_no_large_filter!$ac_no_large_filter$ac_delim |
| 11494 | ac_no_speex_aec!$ac_no_speex_aec$ac_delim |
| 11495 | ac_no_g711_codec!$ac_no_g711_codec$ac_delim |
| 11496 | ac_no_l16_codec!$ac_no_l16_codec$ac_delim |
| 11497 | ac_no_gsm_codec!$ac_no_gsm_codec$ac_delim |
| 11498 | ac_no_speex_codec!$ac_no_speex_codec$ac_delim |
| 11499 | ac_no_ilbc_codec!$ac_no_ilbc_codec$ac_delim |
| 11500 | ac_no_ssl!$ac_no_ssl$ac_delim |
| 11501 | openssl_h_present!$openssl_h_present$ac_delim |
| 11502 | libssl_present!$libssl_present$ac_delim |
| 11503 | libcrypto_present!$libcrypto_present$ac_delim |
| 11504 | ac_cross_compile!$ac_cross_compile$ac_delim |
| 11505 | ac_linux_poll!$ac_linux_poll$ac_delim |
| 11506 | ac_host!$ac_host$ac_delim |
| 11507 | ac_main_obj!$ac_main_obj$ac_delim |
| 11508 | LIBOBJS!$LIBOBJS$ac_delim |
| 11509 | LTLIBOBJS!$LTLIBOBJS$ac_delim |
| 11510 | _ACEOF |
| 11511 | |
| 11512 | if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 85; then |
| 11513 | break |
| 11514 | elif $ac_last_try; then |
| 11515 | { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |
| 11516 | echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} |
| 11517 | { (exit 1); exit 1; }; } |
| 11518 | else |
| 11519 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 11520 | fi |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 11521 | done |
| 11522 | |
| 11523 | ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` |
| 11524 | if test -n "$ac_eof"; then |
| 11525 | ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` |
| 11526 | ac_eof=`expr $ac_eof + 1` |
| 11527 | fi |
| 11528 | |
| 11529 | cat >>$CONFIG_STATUS <<_ACEOF |
| 11530 | cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof |
| 11531 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end |
| 11532 | _ACEOF |
| 11533 | sed ' |
| 11534 | s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g |
| 11535 | s/^/s,@/; s/!/@,|#_!!_#|/ |
| 11536 | :n |
| 11537 | t n |
| 11538 | s/'"$ac_delim"'$/,g/; t |
| 11539 | s/$/\\/; p |
| 11540 | N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n |
| 11541 | ' >>$CONFIG_STATUS <conf$$subs.sed |
| 11542 | rm -f conf$$subs.sed |
| 11543 | cat >>$CONFIG_STATUS <<_ACEOF |
| 11544 | :end |
| 11545 | s/|#_!!_#|//g |
| 11546 | CEOF$ac_eof |
| 11547 | _ACEOF |
| 11548 | |
| 11549 | |
| 11550 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
| 11551 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and |
| 11552 | # trailing colons and then remove the whole line if VPATH becomes empty |
| 11553 | # (actually we leave an empty line to preserve line numbers). |
| 11554 | if test "x$srcdir" = x.; then |
| 11555 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
| 11556 | s/:*\$(srcdir):*/:/ |
| 11557 | s/:*\${srcdir}:*/:/ |
| 11558 | s/:*@srcdir@:*/:/ |
| 11559 | s/^\([^=]*=[ ]*\):*/\1/ |
| 11560 | s/:*$// |
| 11561 | s/^[^=]*=[ ]*$// |
| 11562 | }' |
| 11563 | fi |
| 11564 | |
| 11565 | cat >>$CONFIG_STATUS <<\_ACEOF |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 11566 | fi # test -n "$CONFIG_FILES" |
| 11567 | |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 11568 | |
| 11569 | for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS |
| 11570 | do |
| 11571 | case $ac_tag in |
| 11572 | :[FHLC]) ac_mode=$ac_tag; continue;; |
| 11573 | esac |
| 11574 | case $ac_mode$ac_tag in |
| 11575 | :[FHL]*:*);; |
| 11576 | :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5 |
| 11577 | echo "$as_me: error: Invalid tag $ac_tag." >&2;} |
| 11578 | { (exit 1); exit 1; }; };; |
| 11579 | :[FH]-) ac_tag=-:-;; |
| 11580 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; |
| 11581 | esac |
| 11582 | ac_save_IFS=$IFS |
| 11583 | IFS=: |
| 11584 | set x $ac_tag |
| 11585 | IFS=$ac_save_IFS |
| 11586 | shift |
| 11587 | ac_file=$1 |
| 11588 | shift |
| 11589 | |
| 11590 | case $ac_mode in |
| 11591 | :L) ac_source=$1;; |
| 11592 | :[FH]) |
| 11593 | ac_file_inputs= |
| 11594 | for ac_f |
| 11595 | do |
| 11596 | case $ac_f in |
| 11597 | -) ac_f="$tmp/stdin";; |
| 11598 | *) # Look for the file first in the build tree, then in the source tree |
| 11599 | # (if the path is not absolute). The absolute path cannot be DOS-style, |
| 11600 | # because $ac_f cannot contain `:'. |
| 11601 | test -f "$ac_f" || |
| 11602 | case $ac_f in |
| 11603 | [\\/$]*) false;; |
| 11604 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; |
| 11605 | esac || |
| 11606 | { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 |
| 11607 | echo "$as_me: error: cannot find input file: $ac_f" >&2;} |
| 11608 | { (exit 1); exit 1; }; };; |
| 11609 | esac |
| 11610 | ac_file_inputs="$ac_file_inputs $ac_f" |
| 11611 | done |
| 11612 | |
| 11613 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
| 11614 | # use $as_me), people would be surprised to read: |
| 11615 | # /* config.h. Generated by config.status. */ |
| 11616 | configure_input="Generated from "`IFS=: |
| 11617 | echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure." |
| 11618 | if test x"$ac_file" != x-; then |
| 11619 | configure_input="$ac_file. $configure_input" |
| 11620 | { echo "$as_me:$LINENO: creating $ac_file" >&5 |
| 11621 | echo "$as_me: creating $ac_file" >&6;} |
| 11622 | fi |
| 11623 | |
| 11624 | case $ac_tag in |
| 11625 | *:-:* | *:-) cat >"$tmp/stdin";; |
| 11626 | esac |
| 11627 | ;; |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 11628 | esac |
| 11629 | |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 11630 | ac_dir=`$as_dirname -- "$ac_file" || |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11631 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 11632 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 11633 | X"$ac_file" : 'X\(//\)$' \| \ |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 11634 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 11635 | echo X"$ac_file" | |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 11636 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 11637 | s//\1/ |
| 11638 | q |
| 11639 | } |
| 11640 | /^X\(\/\/\)[^/].*/{ |
| 11641 | s//\1/ |
| 11642 | q |
| 11643 | } |
| 11644 | /^X\(\/\/\)$/{ |
| 11645 | s//\1/ |
| 11646 | q |
| 11647 | } |
| 11648 | /^X\(\/\).*/{ |
| 11649 | s//\1/ |
| 11650 | q |
| 11651 | } |
| 11652 | s/.*/./; q'` |
| 11653 | { as_dir="$ac_dir" |
| 11654 | case $as_dir in #( |
| 11655 | -*) as_dir=./$as_dir;; |
| 11656 | esac |
| 11657 | test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11658 | as_dirs= |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 11659 | while :; do |
| 11660 | case $as_dir in #( |
| 11661 | *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( |
| 11662 | *) as_qdir=$as_dir;; |
| 11663 | esac |
| 11664 | as_dirs="'$as_qdir' $as_dirs" |
| 11665 | as_dir=`$as_dirname -- "$as_dir" || |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11666 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 11667 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 11668 | X"$as_dir" : 'X\(//\)$' \| \ |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 11669 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11670 | echo X"$as_dir" | |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 11671 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 11672 | s//\1/ |
| 11673 | q |
| 11674 | } |
| 11675 | /^X\(\/\/\)[^/].*/{ |
| 11676 | s//\1/ |
| 11677 | q |
| 11678 | } |
| 11679 | /^X\(\/\/\)$/{ |
| 11680 | s//\1/ |
| 11681 | q |
| 11682 | } |
| 11683 | /^X\(\/\).*/{ |
| 11684 | s//\1/ |
| 11685 | q |
| 11686 | } |
| 11687 | s/.*/./; q'` |
| 11688 | test -d "$as_dir" && break |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11689 | done |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 11690 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
| 11691 | } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 |
| 11692 | echo "$as_me: error: cannot create directory $as_dir" >&2;} |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11693 | { (exit 1); exit 1; }; }; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11694 | ac_builddir=. |
| 11695 | |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 11696 | case "$ac_dir" in |
| 11697 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 11698 | *) |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11699 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 11700 | # A ".." for each directory in $ac_dir_suffix. |
| 11701 | ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` |
| 11702 | case $ac_top_builddir_sub in |
| 11703 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 11704 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 11705 | esac ;; |
| 11706 | esac |
| 11707 | ac_abs_top_builddir=$ac_pwd |
| 11708 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 11709 | # for backward compatibility: |
| 11710 | ac_top_builddir=$ac_top_build_prefix |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11711 | |
| 11712 | case $srcdir in |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 11713 | .) # We are building in place. |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11714 | ac_srcdir=. |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 11715 | ac_top_srcdir=$ac_top_builddir_sub |
| 11716 | ac_abs_top_srcdir=$ac_pwd ;; |
| 11717 | [\\/]* | ?:[\\/]* ) # Absolute name. |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11718 | ac_srcdir=$srcdir$ac_dir_suffix; |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 11719 | ac_top_srcdir=$srcdir |
| 11720 | ac_abs_top_srcdir=$srcdir ;; |
| 11721 | *) # Relative name. |
| 11722 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 11723 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 11724 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11725 | esac |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 11726 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11727 | |
| 11728 | |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 11729 | case $ac_mode in |
| 11730 | :F) |
| 11731 | # |
| 11732 | # CONFIG_FILE |
| 11733 | # |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 11734 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11735 | _ACEOF |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 11736 | |
| 11737 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 11738 | # If the template does not know about datarootdir, expand it. |
| 11739 | # FIXME: This hack should be removed a few years after 2.60. |
| 11740 | ac_datarootdir_hack=; ac_datarootdir_seen= |
| 11741 | |
| 11742 | case `sed -n '/datarootdir/ { |
| 11743 | p |
| 11744 | q |
| 11745 | } |
| 11746 | /@datadir@/p |
| 11747 | /@docdir@/p |
| 11748 | /@infodir@/p |
| 11749 | /@localedir@/p |
| 11750 | /@mandir@/p |
| 11751 | ' $ac_file_inputs` in |
| 11752 | *datarootdir*) ac_datarootdir_seen=yes;; |
| 11753 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) |
| 11754 | { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 |
| 11755 | echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} |
| 11756 | _ACEOF |
| 11757 | cat >>$CONFIG_STATUS <<_ACEOF |
| 11758 | ac_datarootdir_hack=' |
| 11759 | s&@datadir@&$datadir&g |
| 11760 | s&@docdir@&$docdir&g |
| 11761 | s&@infodir@&$infodir&g |
| 11762 | s&@localedir@&$localedir&g |
| 11763 | s&@mandir@&$mandir&g |
| 11764 | s&\\\${datarootdir}&$datarootdir&g' ;; |
| 11765 | esac |
| 11766 | _ACEOF |
| 11767 | |
| 11768 | # Neutralize VPATH when `$srcdir' = `.'. |
| 11769 | # Shell code in configure.ac might set extrasub. |
| 11770 | # FIXME: do we really want to maintain this feature? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11771 | cat >>$CONFIG_STATUS <<_ACEOF |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 11772 | sed "$ac_vpsub |
| 11773 | $extrasub |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11774 | _ACEOF |
| 11775 | cat >>$CONFIG_STATUS <<\_ACEOF |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 11776 | :t |
| 11777 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 11778 | s&@configure_input@&$configure_input&;t t |
| 11779 | s&@top_builddir@&$ac_top_builddir_sub&;t t |
| 11780 | s&@srcdir@&$ac_srcdir&;t t |
| 11781 | s&@abs_srcdir@&$ac_abs_srcdir&;t t |
| 11782 | s&@top_srcdir@&$ac_top_srcdir&;t t |
| 11783 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t |
| 11784 | s&@builddir@&$ac_builddir&;t t |
| 11785 | s&@abs_builddir@&$ac_abs_builddir&;t t |
| 11786 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t |
| 11787 | $ac_datarootdir_hack |
| 11788 | " $ac_file_inputs | sed -f "$tmp/subs-1.sed" >$tmp/out |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 11789 | |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 11790 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && |
| 11791 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && |
| 11792 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && |
| 11793 | { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
| 11794 | which seems to be undefined. Please make sure it is defined." >&5 |
| 11795 | echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
| 11796 | which seems to be undefined. Please make sure it is defined." >&2;} |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11797 | |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 11798 | rm -f "$tmp/stdin" |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11799 | case $ac_file in |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 11800 | -) cat "$tmp/out"; rm -f "$tmp/out";; |
| 11801 | *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;; |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11802 | esac |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 11803 | ;; |
| 11804 | :H) |
| 11805 | # |
| 11806 | # CONFIG_HEADER |
| 11807 | # |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11808 | _ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11809 | |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 11810 | # Transform confdefs.h into a sed script `conftest.defines', that |
| 11811 | # substitutes the proper values into config.h.in to produce config.h. |
| 11812 | rm -f conftest.defines conftest.tail |
| 11813 | # First, append a space to every undef/define line, to ease matching. |
| 11814 | echo 's/$/ /' >conftest.defines |
| 11815 | # Then, protect against being on the right side of a sed subst, or in |
| 11816 | # an unquoted here document, in config.status. If some macros were |
| 11817 | # called several times there might be several #defines for the same |
| 11818 | # symbol, which is useless. But do not sort them, since the last |
| 11819 | # AC_DEFINE must be honored. |
| 11820 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* |
| 11821 | # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where |
| 11822 | # NAME is the cpp macro being defined, VALUE is the value it is being given. |
| 11823 | # PARAMS is the parameter list in the macro definition--in most cases, it's |
| 11824 | # just an empty string. |
| 11825 | ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*' |
| 11826 | ac_dB='\\)[ (].*,\\1define\\2' |
| 11827 | ac_dC=' ' |
| 11828 | ac_dD=' ,' |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11829 | |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 11830 | uniq confdefs.h | |
| 11831 | sed -n ' |
| 11832 | t rset |
| 11833 | :rset |
| 11834 | s/^[ ]*#[ ]*define[ ][ ]*// |
| 11835 | t ok |
| 11836 | d |
| 11837 | :ok |
| 11838 | s/[\\&,]/\\&/g |
| 11839 | s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p |
| 11840 | s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p |
| 11841 | ' >>conftest.defines |
| 11842 | |
| 11843 | # Remove the space that was appended to ease matching. |
| 11844 | # Then replace #undef with comments. This is necessary, for |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11845 | # example, in the case of _POSIX_SOURCE, which is predefined and required |
| 11846 | # on some systems where configure will not decide to define it. |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 11847 | # (The regexp can be short, since the line contains either #define or #undef.) |
| 11848 | echo 's/ $// |
| 11849 | s,^[ #]*u.*,/* & */,' >>conftest.defines |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11850 | |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 11851 | # Break up conftest.defines: |
| 11852 | ac_max_sed_lines=50 |
| 11853 | |
| 11854 | # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1" |
| 11855 | # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2" |
| 11856 | # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1" |
| 11857 | # et cetera. |
| 11858 | ac_in='$ac_file_inputs' |
| 11859 | ac_out='"$tmp/out1"' |
| 11860 | ac_nxt='"$tmp/out2"' |
| 11861 | |
| 11862 | while : |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11863 | do |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 11864 | # Write a here document: |
| 11865 | cat >>$CONFIG_STATUS <<_ACEOF |
| 11866 | # First, check the format of the line: |
| 11867 | cat >"\$tmp/defines.sed" <<\\CEOF |
| 11868 | /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def |
| 11869 | /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def |
| 11870 | b |
| 11871 | :def |
| 11872 | _ACEOF |
| 11873 | sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11874 | echo 'CEOF |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 11875 | sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS |
| 11876 | ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in |
| 11877 | sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail |
| 11878 | grep . conftest.tail >/dev/null || break |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11879 | rm -f conftest.defines |
| 11880 | mv conftest.tail conftest.defines |
| 11881 | done |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 11882 | rm -f conftest.defines conftest.tail |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11883 | |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 11884 | echo "ac_result=$ac_in" >>$CONFIG_STATUS |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11885 | cat >>$CONFIG_STATUS <<\_ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11886 | if test x"$ac_file" != x-; then |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 11887 | echo "/* $configure_input */" >"$tmp/config.h" |
| 11888 | cat "$ac_result" >>"$tmp/config.h" |
| 11889 | if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11890 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11891 | echo "$as_me: $ac_file is unchanged" >&6;} |
| 11892 | else |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11893 | rm -f $ac_file |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 11894 | mv "$tmp/config.h" $ac_file |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11895 | fi |
| 11896 | else |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 11897 | echo "/* $configure_input */" |
| 11898 | cat "$ac_result" |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11899 | fi |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 11900 | rm -f "$tmp/out12" |
| 11901 | ;; |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11902 | |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 11903 | |
| 11904 | esac |
| 11905 | |
| 11906 | done # for ac_tag |
| 11907 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11908 | |
| 11909 | { (exit 0); exit 0; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11910 | _ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11911 | chmod +x $CONFIG_STATUS |
| 11912 | ac_clean_files=$ac_clean_files_save |
| 11913 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11914 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11915 | # configure is writing to config.log, and then calls config.status. |
| 11916 | # config.status does its own redirection, appending to config.log. |
| 11917 | # Unfortunately, on DOS this fails, as config.log is still kept open |
| 11918 | # by configure, so config.status won't be able to write to it; its |
| 11919 | # output is simply discarded. So we exec the FD to /dev/null, |
| 11920 | # effectively closing config.log, so it can be properly (re)opened and |
| 11921 | # appended to by config.status. When coming back to configure, we |
| 11922 | # need to make the FD available again. |
| 11923 | if test "$no_create" != yes; then |
| 11924 | ac_cs_success=: |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11925 | ac_config_status_args= |
| 11926 | test "$silent" = yes && |
| 11927 | ac_config_status_args="$ac_config_status_args --quiet" |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11928 | exec 5>/dev/null |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11929 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11930 | exec 5>>config.log |
| 11931 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
| 11932 | # would make configure fail if this is the last instruction. |
| 11933 | $ac_cs_success || { (exit 1); exit 1; } |
| 11934 | fi |
| 11935 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11936 | |
Benny Prijono | d962784 | 2007-04-18 09:24:31 +0000 | [diff] [blame] | 11937 | |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 11938 | { echo "$as_me:$LINENO: result: |
Benny Prijono | d962784 | 2007-04-18 09:24:31 +0000 | [diff] [blame] | 11939 | |
Benny Prijono | c16c6e3 | 2007-11-18 14:53:47 +0000 | [diff] [blame] | 11940 | 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] | 11941 | |
Benny Prijono | c16c6e3 | 2007-11-18 14:53:47 +0000 | [diff] [blame] | 11942 | Further customizations can be put in: |
Benny Prijono | d962784 | 2007-04-18 09:24:31 +0000 | [diff] [blame] | 11943 | - 'user.mak' |
| 11944 | - 'pjlib/include/pj/config_site.h' |
| 11945 | |
| 11946 | The next step now is to run 'make dep' and 'make'. |
| 11947 | " >&5 |
| 11948 | echo "${ECHO_T} |
| 11949 | |
Benny Prijono | c16c6e3 | 2007-11-18 14:53:47 +0000 | [diff] [blame] | 11950 | 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] | 11951 | |
Benny Prijono | c16c6e3 | 2007-11-18 14:53:47 +0000 | [diff] [blame] | 11952 | Further customizations can be put in: |
Benny Prijono | d962784 | 2007-04-18 09:24:31 +0000 | [diff] [blame] | 11953 | - 'user.mak' |
| 11954 | - 'pjlib/include/pj/config_site.h' |
| 11955 | |
| 11956 | The next step now is to run 'make dep' and 'make'. |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 11957 | " >&6; } |
Benny Prijono | d962784 | 2007-04-18 09:24:31 +0000 | [diff] [blame] | 11958 | |