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. |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3 | # Generated by GNU Autoconf 2.61 for pjproject 1.0. |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 4 | # |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +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 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +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+"$@"}'='"$@"' |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 21 | setopt NO_GLOB_SUBST |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 22 | else |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +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 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +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 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +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 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +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 |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 80 | IFS=$as_save_IFS |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 81 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +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 |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +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=. |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 226 | case $as_dir in |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 227 | /*) |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +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 | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 328 | as_lineno_1=$LINENO |
| 329 | as_lineno_2=$LINENO |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 330 | test "x$as_lineno_1" != "x$as_lineno_2" && |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +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 |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +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 |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +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 ' |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +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 |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +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 |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 451 | s/-\n.*// |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 452 | ' >$as_me.lineno && |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +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 |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +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 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +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 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +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 |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +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 |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +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 |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +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 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +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 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +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 |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 563 | ac_clean_files= |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 564 | ac_config_libobj_dir=. |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 565 | LIBOBJS= |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 566 | cross_compiling=no |
| 567 | subdirs= |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 568 | MFLAGS= |
| 569 | MAKEFLAGS= |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 570 | SHELL=${CONFIG_SHELL-/bin/sh} |
| 571 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 572 | # Identity of this package. |
| 573 | PACKAGE_NAME='pjproject' |
| 574 | PACKAGE_TARNAME='pjproject' |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 575 | PACKAGE_VERSION='1.0' |
| 576 | PACKAGE_STRING='pjproject 1.0' |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 577 | PACKAGE_BUGREPORT='' |
| 578 | |
| 579 | # Factoring default headers for most tests. |
| 580 | ac_includes_default="\ |
| 581 | #include <stdio.h> |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +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 |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +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 |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +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 |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +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 |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +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 |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +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 |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +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 |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +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 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 615 | ac_subst_vars='SHELL |
| 616 | PATH_SEPARATOR |
| 617 | PACKAGE_NAME |
| 618 | PACKAGE_TARNAME |
| 619 | PACKAGE_VERSION |
| 620 | PACKAGE_STRING |
| 621 | PACKAGE_BUGREPORT |
| 622 | exec_prefix |
| 623 | prefix |
| 624 | program_transform_name |
| 625 | bindir |
| 626 | sbindir |
| 627 | libexecdir |
| 628 | datarootdir |
| 629 | datadir |
| 630 | sysconfdir |
| 631 | sharedstatedir |
| 632 | localstatedir |
| 633 | includedir |
| 634 | oldincludedir |
| 635 | docdir |
| 636 | infodir |
| 637 | htmldir |
| 638 | dvidir |
| 639 | pdfdir |
| 640 | psdir |
| 641 | libdir |
| 642 | localedir |
| 643 | mandir |
| 644 | DEFS |
| 645 | ECHO_C |
| 646 | ECHO_N |
| 647 | ECHO_T |
| 648 | LIBS |
| 649 | build_alias |
| 650 | host_alias |
| 651 | target_alias |
| 652 | build |
| 653 | build_cpu |
| 654 | build_vendor |
| 655 | build_os |
| 656 | host |
| 657 | host_cpu |
| 658 | host_vendor |
| 659 | host_os |
| 660 | target |
| 661 | target_cpu |
| 662 | target_vendor |
| 663 | target_os |
| 664 | CC |
| 665 | CFLAGS |
| 666 | LDFLAGS |
| 667 | CPPFLAGS |
| 668 | ac_ct_CC |
| 669 | EXEEXT |
| 670 | OBJEXT |
| 671 | CXX |
| 672 | CXXFLAGS |
| 673 | ac_ct_CXX |
| 674 | ac_pjdir |
| 675 | ac_build_mak_vars |
| 676 | CPP |
| 677 | GREP |
| 678 | EGREP |
| 679 | ac_os_objs |
| 680 | ac_pjmedia_snd |
| 681 | ac_pa_cflags |
| 682 | ac_pa_use_alsa |
| 683 | ac_pa_use_oss |
| 684 | ac_no_small_filter |
| 685 | ac_no_large_filter |
| 686 | ac_no_speex_aec |
| 687 | ac_no_g711_codec |
| 688 | ac_no_l16_codec |
| 689 | ac_no_gsm_codec |
| 690 | ac_no_g722_codec |
| 691 | ac_no_g7221_codec |
| 692 | ac_no_speex_codec |
| 693 | ac_no_ilbc_codec |
| 694 | ac_no_ssl |
| 695 | openssl_h_present |
| 696 | libssl_present |
| 697 | libcrypto_present |
| 698 | ac_cross_compile |
| 699 | ac_linux_poll |
| 700 | ac_host |
| 701 | ac_main_obj |
| 702 | LIBOBJS |
| 703 | LTLIBOBJS' |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 704 | ac_subst_files='' |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 705 | ac_precious_vars='build_alias |
| 706 | host_alias |
| 707 | target_alias |
| 708 | CC |
| 709 | CFLAGS |
| 710 | LDFLAGS |
| 711 | LIBS |
| 712 | CPPFLAGS |
| 713 | CXX |
| 714 | CXXFLAGS |
| 715 | CCC |
| 716 | CPP' |
| 717 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 718 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 719 | # Initialize some variables set by options. |
| 720 | ac_init_help= |
| 721 | ac_init_version=false |
| 722 | # The variables have the same names as the options, with |
| 723 | # dashes changed to underlines. |
| 724 | cache_file=/dev/null |
| 725 | exec_prefix=NONE |
| 726 | no_create= |
| 727 | no_recursion= |
| 728 | prefix=NONE |
| 729 | program_prefix=NONE |
| 730 | program_suffix=NONE |
| 731 | program_transform_name=s,x,x, |
| 732 | silent= |
| 733 | site= |
| 734 | srcdir= |
| 735 | verbose= |
| 736 | x_includes=NONE |
| 737 | x_libraries=NONE |
| 738 | |
| 739 | # Installation directory options. |
| 740 | # These are left unexpanded so users can "make install exec_prefix=/foo" |
| 741 | # and all the variables that are supposed to be based on exec_prefix |
| 742 | # by default will actually change. |
| 743 | # Use braces instead of parens because sh, perl, etc. also accept them. |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 744 | # (The list follows the same order as the GNU Coding Standards.) |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 745 | bindir='${exec_prefix}/bin' |
| 746 | sbindir='${exec_prefix}/sbin' |
| 747 | libexecdir='${exec_prefix}/libexec' |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 748 | datarootdir='${prefix}/share' |
| 749 | datadir='${datarootdir}' |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 750 | sysconfdir='${prefix}/etc' |
| 751 | sharedstatedir='${prefix}/com' |
| 752 | localstatedir='${prefix}/var' |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 753 | includedir='${prefix}/include' |
| 754 | oldincludedir='/usr/include' |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 755 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' |
| 756 | infodir='${datarootdir}/info' |
| 757 | htmldir='${docdir}' |
| 758 | dvidir='${docdir}' |
| 759 | pdfdir='${docdir}' |
| 760 | psdir='${docdir}' |
| 761 | libdir='${exec_prefix}/lib' |
| 762 | localedir='${datarootdir}/locale' |
| 763 | mandir='${datarootdir}/man' |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 764 | |
| 765 | ac_prev= |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 766 | ac_dashdash= |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 767 | for ac_option |
| 768 | do |
| 769 | # If the previous option needs an argument, assign it. |
| 770 | if test -n "$ac_prev"; then |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 771 | eval $ac_prev=\$ac_option |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 772 | ac_prev= |
| 773 | continue |
| 774 | fi |
| 775 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 776 | case $ac_option in |
| 777 | *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
| 778 | *) ac_optarg=yes ;; |
| 779 | esac |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 780 | |
| 781 | # Accept the important Cygnus configure options, so we can diagnose typos. |
| 782 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 783 | case $ac_dashdash$ac_option in |
| 784 | --) |
| 785 | ac_dashdash=yes ;; |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 786 | |
| 787 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
| 788 | ac_prev=bindir ;; |
| 789 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
| 790 | bindir=$ac_optarg ;; |
| 791 | |
| 792 | -build | --build | --buil | --bui | --bu) |
| 793 | ac_prev=build_alias ;; |
| 794 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
| 795 | build_alias=$ac_optarg ;; |
| 796 | |
| 797 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
| 798 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
| 799 | ac_prev=cache_file ;; |
| 800 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
| 801 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
| 802 | cache_file=$ac_optarg ;; |
| 803 | |
| 804 | --config-cache | -C) |
| 805 | cache_file=config.cache ;; |
| 806 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 807 | -datadir | --datadir | --datadi | --datad) |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 808 | ac_prev=datadir ;; |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 809 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 810 | datadir=$ac_optarg ;; |
| 811 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 812 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
| 813 | | --dataroo | --dataro | --datar) |
| 814 | ac_prev=datarootdir ;; |
| 815 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ |
| 816 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) |
| 817 | datarootdir=$ac_optarg ;; |
| 818 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 819 | -disable-* | --disable-*) |
| 820 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
| 821 | # Reject names that are not valid shell variable names. |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 822 | expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 823 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
| 824 | { (exit 1); exit 1; }; } |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 825 | ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` |
| 826 | eval enable_$ac_feature=no ;; |
| 827 | |
| 828 | -docdir | --docdir | --docdi | --doc | --do) |
| 829 | ac_prev=docdir ;; |
| 830 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) |
| 831 | docdir=$ac_optarg ;; |
| 832 | |
| 833 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) |
| 834 | ac_prev=dvidir ;; |
| 835 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) |
| 836 | dvidir=$ac_optarg ;; |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 837 | |
| 838 | -enable-* | --enable-*) |
| 839 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
| 840 | # Reject names that are not valid shell variable names. |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 841 | expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 842 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
| 843 | { (exit 1); exit 1; }; } |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 844 | ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` |
| 845 | eval enable_$ac_feature=\$ac_optarg ;; |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 846 | |
| 847 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
| 848 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
| 849 | | --exec | --exe | --ex) |
| 850 | ac_prev=exec_prefix ;; |
| 851 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
| 852 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
| 853 | | --exec=* | --exe=* | --ex=*) |
| 854 | exec_prefix=$ac_optarg ;; |
| 855 | |
| 856 | -gas | --gas | --ga | --g) |
| 857 | # Obsolete; use --with-gas. |
| 858 | with_gas=yes ;; |
| 859 | |
| 860 | -help | --help | --hel | --he | -h) |
| 861 | ac_init_help=long ;; |
| 862 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
| 863 | ac_init_help=recursive ;; |
| 864 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
| 865 | ac_init_help=short ;; |
| 866 | |
| 867 | -host | --host | --hos | --ho) |
| 868 | ac_prev=host_alias ;; |
| 869 | -host=* | --host=* | --hos=* | --ho=*) |
| 870 | host_alias=$ac_optarg ;; |
| 871 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 872 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
| 873 | ac_prev=htmldir ;; |
| 874 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ |
| 875 | | --ht=*) |
| 876 | htmldir=$ac_optarg ;; |
| 877 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 878 | -includedir | --includedir | --includedi | --included | --include \ |
| 879 | | --includ | --inclu | --incl | --inc) |
| 880 | ac_prev=includedir ;; |
| 881 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
| 882 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
| 883 | includedir=$ac_optarg ;; |
| 884 | |
| 885 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
| 886 | ac_prev=infodir ;; |
| 887 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
| 888 | infodir=$ac_optarg ;; |
| 889 | |
| 890 | -libdir | --libdir | --libdi | --libd) |
| 891 | ac_prev=libdir ;; |
| 892 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
| 893 | libdir=$ac_optarg ;; |
| 894 | |
| 895 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
| 896 | | --libexe | --libex | --libe) |
| 897 | ac_prev=libexecdir ;; |
| 898 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
| 899 | | --libexe=* | --libex=* | --libe=*) |
| 900 | libexecdir=$ac_optarg ;; |
| 901 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 902 | -localedir | --localedir | --localedi | --localed | --locale) |
| 903 | ac_prev=localedir ;; |
| 904 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) |
| 905 | localedir=$ac_optarg ;; |
| 906 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 907 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 908 | | --localstate | --localstat | --localsta | --localst | --locals) |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 909 | ac_prev=localstatedir ;; |
| 910 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 911 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 912 | localstatedir=$ac_optarg ;; |
| 913 | |
| 914 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
| 915 | ac_prev=mandir ;; |
| 916 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
| 917 | mandir=$ac_optarg ;; |
| 918 | |
| 919 | -nfp | --nfp | --nf) |
| 920 | # Obsolete; use --without-fp. |
| 921 | with_fp=no ;; |
| 922 | |
| 923 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 924 | | --no-cr | --no-c | -n) |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 925 | no_create=yes ;; |
| 926 | |
| 927 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
| 928 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
| 929 | no_recursion=yes ;; |
| 930 | |
| 931 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
| 932 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
| 933 | | --oldin | --oldi | --old | --ol | --o) |
| 934 | ac_prev=oldincludedir ;; |
| 935 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
| 936 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
| 937 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
| 938 | oldincludedir=$ac_optarg ;; |
| 939 | |
| 940 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
| 941 | ac_prev=prefix ;; |
| 942 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
| 943 | prefix=$ac_optarg ;; |
| 944 | |
| 945 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
| 946 | | --program-pre | --program-pr | --program-p) |
| 947 | ac_prev=program_prefix ;; |
| 948 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
| 949 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
| 950 | program_prefix=$ac_optarg ;; |
| 951 | |
| 952 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
| 953 | | --program-suf | --program-su | --program-s) |
| 954 | ac_prev=program_suffix ;; |
| 955 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
| 956 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
| 957 | program_suffix=$ac_optarg ;; |
| 958 | |
| 959 | -program-transform-name | --program-transform-name \ |
| 960 | | --program-transform-nam | --program-transform-na \ |
| 961 | | --program-transform-n | --program-transform- \ |
| 962 | | --program-transform | --program-transfor \ |
| 963 | | --program-transfo | --program-transf \ |
| 964 | | --program-trans | --program-tran \ |
| 965 | | --progr-tra | --program-tr | --program-t) |
| 966 | ac_prev=program_transform_name ;; |
| 967 | -program-transform-name=* | --program-transform-name=* \ |
| 968 | | --program-transform-nam=* | --program-transform-na=* \ |
| 969 | | --program-transform-n=* | --program-transform-=* \ |
| 970 | | --program-transform=* | --program-transfor=* \ |
| 971 | | --program-transfo=* | --program-transf=* \ |
| 972 | | --program-trans=* | --program-tran=* \ |
| 973 | | --progr-tra=* | --program-tr=* | --program-t=*) |
| 974 | program_transform_name=$ac_optarg ;; |
| 975 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 976 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
| 977 | ac_prev=pdfdir ;; |
| 978 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) |
| 979 | pdfdir=$ac_optarg ;; |
| 980 | |
| 981 | -psdir | --psdir | --psdi | --psd | --ps) |
| 982 | ac_prev=psdir ;; |
| 983 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) |
| 984 | psdir=$ac_optarg ;; |
| 985 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 986 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 987 | | -silent | --silent | --silen | --sile | --sil) |
| 988 | silent=yes ;; |
| 989 | |
| 990 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
| 991 | ac_prev=sbindir ;; |
| 992 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
| 993 | | --sbi=* | --sb=*) |
| 994 | sbindir=$ac_optarg ;; |
| 995 | |
| 996 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
| 997 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
| 998 | | --sharedst | --shareds | --shared | --share | --shar \ |
| 999 | | --sha | --sh) |
| 1000 | ac_prev=sharedstatedir ;; |
| 1001 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
| 1002 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
| 1003 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
| 1004 | | --sha=* | --sh=*) |
| 1005 | sharedstatedir=$ac_optarg ;; |
| 1006 | |
| 1007 | -site | --site | --sit) |
| 1008 | ac_prev=site ;; |
| 1009 | -site=* | --site=* | --sit=*) |
| 1010 | site=$ac_optarg ;; |
| 1011 | |
| 1012 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
| 1013 | ac_prev=srcdir ;; |
| 1014 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
| 1015 | srcdir=$ac_optarg ;; |
| 1016 | |
| 1017 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
| 1018 | | --syscon | --sysco | --sysc | --sys | --sy) |
| 1019 | ac_prev=sysconfdir ;; |
| 1020 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
| 1021 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
| 1022 | sysconfdir=$ac_optarg ;; |
| 1023 | |
| 1024 | -target | --target | --targe | --targ | --tar | --ta | --t) |
| 1025 | ac_prev=target_alias ;; |
| 1026 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
| 1027 | target_alias=$ac_optarg ;; |
| 1028 | |
| 1029 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
| 1030 | verbose=yes ;; |
| 1031 | |
| 1032 | -version | --version | --versio | --versi | --vers | -V) |
| 1033 | ac_init_version=: ;; |
| 1034 | |
| 1035 | -with-* | --with-*) |
| 1036 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
| 1037 | # Reject names that are not valid shell variable names. |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1038 | expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1039 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
| 1040 | { (exit 1); exit 1; }; } |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1041 | ac_package=`echo $ac_package | sed 's/[-.]/_/g'` |
| 1042 | eval with_$ac_package=\$ac_optarg ;; |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1043 | |
| 1044 | -without-* | --without-*) |
| 1045 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
| 1046 | # Reject names that are not valid shell variable names. |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1047 | expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1048 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
| 1049 | { (exit 1); exit 1; }; } |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1050 | ac_package=`echo $ac_package | sed 's/[-.]/_/g'` |
| 1051 | eval with_$ac_package=no ;; |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1052 | |
| 1053 | --x) |
| 1054 | # Obsolete; use --with-x. |
| 1055 | with_x=yes ;; |
| 1056 | |
| 1057 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
| 1058 | | --x-incl | --x-inc | --x-in | --x-i) |
| 1059 | ac_prev=x_includes ;; |
| 1060 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
| 1061 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
| 1062 | x_includes=$ac_optarg ;; |
| 1063 | |
| 1064 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
| 1065 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
| 1066 | ac_prev=x_libraries ;; |
| 1067 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
| 1068 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
| 1069 | x_libraries=$ac_optarg ;; |
| 1070 | |
| 1071 | -*) { echo "$as_me: error: unrecognized option: $ac_option |
| 1072 | Try \`$0 --help' for more information." >&2 |
| 1073 | { (exit 1); exit 1; }; } |
| 1074 | ;; |
| 1075 | |
| 1076 | *=*) |
| 1077 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
| 1078 | # Reject names that are not valid shell variable names. |
| 1079 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && |
| 1080 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 |
| 1081 | { (exit 1); exit 1; }; } |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1082 | eval $ac_envvar=\$ac_optarg |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1083 | export $ac_envvar ;; |
| 1084 | |
| 1085 | *) |
| 1086 | # FIXME: should be removed in autoconf 3.0. |
| 1087 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
| 1088 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
| 1089 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
| 1090 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} |
| 1091 | ;; |
| 1092 | |
| 1093 | esac |
| 1094 | done |
| 1095 | |
| 1096 | if test -n "$ac_prev"; then |
| 1097 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
| 1098 | { echo "$as_me: error: missing argument to $ac_option" >&2 |
| 1099 | { (exit 1); exit 1; }; } |
| 1100 | fi |
| 1101 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1102 | # Be sure to have absolute directory names. |
| 1103 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
| 1104 | datadir sysconfdir sharedstatedir localstatedir includedir \ |
| 1105 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ |
| 1106 | libdir localedir mandir |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1107 | do |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1108 | eval ac_val=\$$ac_var |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1109 | case $ac_val in |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1110 | [\\/$]* | ?:[\\/]* ) continue;; |
| 1111 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1112 | esac |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1113 | { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
| 1114 | { (exit 1); exit 1; }; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1115 | done |
| 1116 | |
| 1117 | # There might be people who depend on the old broken behavior: `$host' |
| 1118 | # used to hold the argument of --host etc. |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1119 | # FIXME: To remove some day. |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1120 | build=$build_alias |
| 1121 | host=$host_alias |
| 1122 | target=$target_alias |
| 1123 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1124 | # FIXME: To remove some day. |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1125 | if test "x$host_alias" != x; then |
| 1126 | if test "x$build_alias" = x; then |
| 1127 | cross_compiling=maybe |
| 1128 | echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. |
| 1129 | If a cross compiler is detected then cross compile mode will be used." >&2 |
| 1130 | elif test "x$build_alias" != "x$host_alias"; then |
| 1131 | cross_compiling=yes |
| 1132 | fi |
| 1133 | fi |
| 1134 | |
| 1135 | ac_tool_prefix= |
| 1136 | test -n "$host_alias" && ac_tool_prefix=$host_alias- |
| 1137 | |
| 1138 | test "$silent" = yes && exec 6>/dev/null |
| 1139 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1140 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1141 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
| 1142 | ac_ls_di=`ls -di .` && |
| 1143 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || |
| 1144 | { echo "$as_me: error: Working directory cannot be determined" >&2 |
| 1145 | { (exit 1); exit 1; }; } |
| 1146 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
| 1147 | { echo "$as_me: error: pwd does not report name of working directory" >&2 |
| 1148 | { (exit 1); exit 1; }; } |
| 1149 | |
| 1150 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1151 | # Find the source files, if location was not specified. |
| 1152 | if test -z "$srcdir"; then |
| 1153 | ac_srcdir_defaulted=yes |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1154 | # Try the directory containing this script, then the parent directory. |
| 1155 | ac_confdir=`$as_dirname -- "$0" || |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1156 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 1157 | X"$0" : 'X\(//\)[^/]' \| \ |
| 1158 | X"$0" : 'X\(//\)$' \| \ |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1159 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1160 | echo X"$0" | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1161 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 1162 | s//\1/ |
| 1163 | q |
| 1164 | } |
| 1165 | /^X\(\/\/\)[^/].*/{ |
| 1166 | s//\1/ |
| 1167 | q |
| 1168 | } |
| 1169 | /^X\(\/\/\)$/{ |
| 1170 | s//\1/ |
| 1171 | q |
| 1172 | } |
| 1173 | /^X\(\/\).*/{ |
| 1174 | s//\1/ |
| 1175 | q |
| 1176 | } |
| 1177 | s/.*/./; q'` |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1178 | srcdir=$ac_confdir |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1179 | if test ! -r "$srcdir/$ac_unique_file"; then |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1180 | srcdir=.. |
| 1181 | fi |
| 1182 | else |
| 1183 | ac_srcdir_defaulted=no |
| 1184 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1185 | if test ! -r "$srcdir/$ac_unique_file"; then |
| 1186 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." |
| 1187 | { 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] | 1188 | { (exit 1); exit 1; }; } |
Benny Prijono | 9489e7a | 2008-09-19 22:18:50 +0000 | [diff] [blame] | 1189 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1190 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
| 1191 | ac_abs_confdir=`( |
| 1192 | cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2 |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 1193 | { (exit 1); exit 1; }; } |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1194 | pwd)` |
| 1195 | # When building in place, set srcdir=. |
| 1196 | if test "$ac_abs_confdir" = "$ac_pwd"; then |
| 1197 | srcdir=. |
| 1198 | fi |
| 1199 | # Remove unnecessary trailing slashes from srcdir. |
| 1200 | # Double slashes in file names in object file debugging info |
| 1201 | # mess up M-x gdb in Emacs. |
| 1202 | case $srcdir in |
| 1203 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; |
| 1204 | esac |
| 1205 | for ac_var in $ac_precious_vars; do |
| 1206 | eval ac_env_${ac_var}_set=\${${ac_var}+set} |
| 1207 | eval ac_env_${ac_var}_value=\$${ac_var} |
| 1208 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} |
| 1209 | eval ac_cv_env_${ac_var}_value=\$${ac_var} |
| 1210 | done |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1211 | |
| 1212 | # |
| 1213 | # Report the --help message. |
| 1214 | # |
| 1215 | if test "$ac_init_help" = "long"; then |
| 1216 | # Omit some internal or obsolete options to make the list less imposing. |
| 1217 | # 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] | 1218 | cat <<_ACEOF |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 1219 | \`configure' configures pjproject 1.0 to adapt to many kinds of systems. |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1220 | |
| 1221 | Usage: $0 [OPTION]... [VAR=VALUE]... |
| 1222 | |
| 1223 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
| 1224 | VAR=VALUE. See below for descriptions of some of the useful variables. |
| 1225 | |
| 1226 | Defaults for the options are specified in brackets. |
| 1227 | |
| 1228 | Configuration: |
| 1229 | -h, --help display this help and exit |
| 1230 | --help=short display options specific to this package |
| 1231 | --help=recursive display the short help of all the included packages |
| 1232 | -V, --version display version information and exit |
| 1233 | -q, --quiet, --silent do not print \`checking...' messages |
| 1234 | --cache-file=FILE cache test results in FILE [disabled] |
| 1235 | -C, --config-cache alias for \`--cache-file=config.cache' |
| 1236 | -n, --no-create do not create output files |
| 1237 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] |
| 1238 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1239 | Installation directories: |
| 1240 | --prefix=PREFIX install architecture-independent files in PREFIX |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1241 | [$ac_default_prefix] |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1242 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1243 | [PREFIX] |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1244 | |
| 1245 | By default, \`make install' will install all the files in |
| 1246 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
| 1247 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
| 1248 | for instance \`--prefix=\$HOME'. |
| 1249 | |
| 1250 | For better control, use the options below. |
| 1251 | |
| 1252 | Fine tuning of the installation directories: |
| 1253 | --bindir=DIR user executables [EPREFIX/bin] |
| 1254 | --sbindir=DIR system admin executables [EPREFIX/sbin] |
| 1255 | --libexecdir=DIR program executables [EPREFIX/libexec] |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1256 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
| 1257 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
| 1258 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
| 1259 | --libdir=DIR object code libraries [EPREFIX/lib] |
| 1260 | --includedir=DIR C header files [PREFIX/include] |
| 1261 | --oldincludedir=DIR C header files for non-gcc [/usr/include] |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1262 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] |
| 1263 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] |
| 1264 | --infodir=DIR info documentation [DATAROOTDIR/info] |
| 1265 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] |
| 1266 | --mandir=DIR man documentation [DATAROOTDIR/man] |
| 1267 | --docdir=DIR documentation root [DATAROOTDIR/doc/pjproject] |
| 1268 | --htmldir=DIR html documentation [DOCDIR] |
| 1269 | --dvidir=DIR dvi documentation [DOCDIR] |
| 1270 | --pdfdir=DIR pdf documentation [DOCDIR] |
| 1271 | --psdir=DIR ps documentation [DOCDIR] |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1272 | _ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1273 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1274 | cat <<\_ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1275 | |
| 1276 | System types: |
| 1277 | --build=BUILD configure for building on BUILD [guessed] |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1278 | --host=HOST cross-compile to build programs to run on HOST [BUILD] |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1279 | --target=TARGET configure for building compilers for TARGET [HOST] |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1280 | _ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1281 | fi |
| 1282 | |
| 1283 | if test -n "$ac_init_help"; then |
| 1284 | case $ac_init_help in |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 1285 | short | recursive ) echo "Configuration of pjproject 1.0:";; |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1286 | esac |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1287 | cat <<\_ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1288 | |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 1289 | Optional Features: |
| 1290 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
| 1291 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
| 1292 | --disable-floating-point |
| 1293 | Disable floating point where possible |
Benny Prijono | 9489e7a | 2008-09-19 22:18:50 +0000 | [diff] [blame] | 1294 | --enable-epoll Use /dev/epoll ioqueue on Linux (experimental) |
Benny Prijono | 1d97162 | 2006-09-10 22:27:40 +0000 | [diff] [blame] | 1295 | --disable-sound Exclude sound (i.e. use null sound) |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 1296 | --disable-oss Disable OSS audio (default: not disabled) |
| 1297 | |
Benny Prijono | ebb2c33 | 2008-07-28 23:40:58 +0000 | [diff] [blame] | 1298 | --enable-ext-sound PJMEDIA will not provide any sound device backend |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 1299 | --disable-small-filter Exclude small filter in resampling |
| 1300 | --disable-large-filter Exclude large filter in resampling |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 1301 | --disable-speex-aec Exclude Speex Acoustic Echo Canceller/AEC |
| 1302 | --disable-g711-codec Exclude G.711 codecs from the build |
| 1303 | --disable-l16-codec Exclude Linear/L16 codec family from the build |
| 1304 | --disable-gsm-codec Exclude GSM codec in the build |
Benny Prijono | 71f657d | 2008-03-17 14:24:21 +0000 | [diff] [blame] | 1305 | --disable-g722-codec Exclude G.722 codec in the build |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1306 | --disable-g7221-codec Exclude G.7221 codec in the build |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 1307 | --disable-speex-codec Exclude Speex codecs in the build |
| 1308 | --disable-ilbc-codec Exclude iLBC codec in the build |
Benny Prijono | 550a1a6 | 2007-10-16 08:54:00 +0000 | [diff] [blame] | 1309 | --enable-libsamplerate Link with libsamplerate when available. Note that |
| 1310 | PJMEDIA_RESAMPLE_IMP must also be configured |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 1311 | --enable-ipp Enable Intel IPP support. Specify the Intel IPP |
| 1312 | package and samples location using IPPROOT and |
| 1313 | IPPSAMPLES env var or with --with-ipp and |
| 1314 | --with-ipp-samples options |
| 1315 | --with-ipp=DIR Specify the Intel IPP location |
| 1316 | --with-ipp-samples=DIR Specify the Intel IPP samples location |
Benny Prijono | ce1db76 | 2007-02-14 02:21:08 +0000 | [diff] [blame] | 1317 | --disable-ssl Exclude SSL support the build (default: autodetect) |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1318 | |
| 1319 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1320 | Some influential environment variables: |
| 1321 | CC C compiler command |
| 1322 | CFLAGS C compiler flags |
| 1323 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
| 1324 | nonstandard directory <lib dir> |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1325 | LIBS libraries to pass to the linker, e.g. -l<library> |
| 1326 | CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if |
| 1327 | you have headers in a nonstandard directory <include dir> |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 1328 | CXX C++ compiler command |
| 1329 | CXXFLAGS C++ compiler flags |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1330 | CPP C preprocessor |
| 1331 | |
| 1332 | Use these variables to override the choices made by `configure' or to help |
| 1333 | it to find libraries and programs with nonstandard names/locations. |
| 1334 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1335 | _ACEOF |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1336 | ac_status=$? |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1337 | fi |
| 1338 | |
| 1339 | if test "$ac_init_help" = "recursive"; then |
| 1340 | # If there are subdirs, report their specific --help. |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1341 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1342 | test -d "$ac_dir" || continue |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1343 | ac_builddir=. |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1344 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1345 | case "$ac_dir" in |
| 1346 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 1347 | *) |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1348 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1349 | # A ".." for each directory in $ac_dir_suffix. |
| 1350 | ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` |
| 1351 | case $ac_top_builddir_sub in |
| 1352 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 1353 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 1354 | esac ;; |
| 1355 | esac |
| 1356 | ac_abs_top_builddir=$ac_pwd |
| 1357 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 1358 | # for backward compatibility: |
| 1359 | ac_top_builddir=$ac_top_build_prefix |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1360 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1361 | case $srcdir in |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1362 | .) # We are building in place. |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1363 | ac_srcdir=. |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1364 | ac_top_srcdir=$ac_top_builddir_sub |
| 1365 | ac_abs_top_srcdir=$ac_pwd ;; |
| 1366 | [\\/]* | ?:[\\/]* ) # Absolute name. |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1367 | ac_srcdir=$srcdir$ac_dir_suffix; |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1368 | ac_top_srcdir=$srcdir |
| 1369 | ac_abs_top_srcdir=$srcdir ;; |
| 1370 | *) # Relative name. |
| 1371 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 1372 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 1373 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1374 | esac |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1375 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1376 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1377 | cd "$ac_dir" || { ac_status=$?; continue; } |
| 1378 | # Check for guested configure. |
| 1379 | if test -f "$ac_srcdir/configure.gnu"; then |
| 1380 | echo && |
| 1381 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive |
| 1382 | elif test -f "$ac_srcdir/configure"; then |
| 1383 | echo && |
| 1384 | $SHELL "$ac_srcdir/configure" --help=recursive |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1385 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1386 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1387 | fi || ac_status=$? |
| 1388 | cd "$ac_pwd" || { ac_status=$?; break; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1389 | done |
| 1390 | fi |
| 1391 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1392 | test -n "$ac_init_help" && exit $ac_status |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1393 | if $ac_init_version; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1394 | cat <<\_ACEOF |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 1395 | pjproject configure 1.0 |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1396 | generated by GNU Autoconf 2.61 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1397 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1398 | Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
| 1399 | 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1400 | This configure script is free software; the Free Software Foundation |
| 1401 | gives unlimited permission to copy, distribute and modify it. |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1402 | _ACEOF |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1403 | exit |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1404 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1405 | cat >config.log <<_ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1406 | This file contains any messages produced by compilers while |
| 1407 | running configure, to aid debugging if configure makes a mistake. |
| 1408 | |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 1409 | It was created by pjproject $as_me 1.0, which was |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1410 | generated by GNU Autoconf 2.61. Invocation command line was |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1411 | |
| 1412 | $ $0 $@ |
| 1413 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1414 | _ACEOF |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1415 | exec 5>>config.log |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1416 | { |
| 1417 | cat <<_ASUNAME |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1418 | ## --------- ## |
| 1419 | ## Platform. ## |
| 1420 | ## --------- ## |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1421 | |
| 1422 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 1423 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
| 1424 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
| 1425 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
| 1426 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
| 1427 | |
| 1428 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
| 1429 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
| 1430 | |
| 1431 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
| 1432 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
| 1433 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1434 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1435 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
| 1436 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
| 1437 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
| 1438 | |
| 1439 | _ASUNAME |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1440 | |
| 1441 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1442 | for as_dir in $PATH |
| 1443 | do |
| 1444 | IFS=$as_save_IFS |
| 1445 | test -z "$as_dir" && as_dir=. |
| 1446 | echo "PATH: $as_dir" |
| 1447 | done |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1448 | IFS=$as_save_IFS |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1449 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1450 | } >&5 |
| 1451 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1452 | cat >&5 <<_ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1453 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1454 | |
| 1455 | ## ----------- ## |
| 1456 | ## Core tests. ## |
| 1457 | ## ----------- ## |
| 1458 | |
| 1459 | _ACEOF |
| 1460 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1461 | |
| 1462 | # Keep a trace of the command line. |
| 1463 | # 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] | 1464 | # 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] | 1465 | # Also quote any args containing shell meta-characters. |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1466 | # Make two passes to allow for proper duplicate-argument suppression. |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1467 | ac_configure_args= |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1468 | ac_configure_args0= |
| 1469 | ac_configure_args1= |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1470 | ac_must_keep_next=false |
| 1471 | for ac_pass in 1 2 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1472 | do |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1473 | for ac_arg |
| 1474 | do |
| 1475 | case $ac_arg in |
| 1476 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
| 1477 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 1478 | | -silent | --silent | --silen | --sile | --sil) |
| 1479 | continue ;; |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1480 | *\'*) |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1481 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 1482 | esac |
| 1483 | case $ac_pass in |
| 1484 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; |
| 1485 | 2) |
| 1486 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" |
| 1487 | if test $ac_must_keep_next = true; then |
| 1488 | ac_must_keep_next=false # Got value, back to normal. |
| 1489 | else |
| 1490 | case $ac_arg in |
| 1491 | *=* | --config-cache | -C | -disable-* | --disable-* \ |
| 1492 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
| 1493 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
| 1494 | | -with-* | --with-* | -without-* | --without-* | --x) |
| 1495 | case "$ac_configure_args0 " in |
| 1496 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
| 1497 | esac |
| 1498 | ;; |
| 1499 | -* ) ac_must_keep_next=true ;; |
| 1500 | esac |
| 1501 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1502 | ac_configure_args="$ac_configure_args '$ac_arg'" |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1503 | ;; |
| 1504 | esac |
| 1505 | done |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1506 | done |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1507 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } |
| 1508 | $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] | 1509 | |
| 1510 | # When interrupted or exit'd, cleanup temporary files, and complete |
| 1511 | # config.log. We remove comments because anyway the quotes in there |
| 1512 | # would cause problems or look ugly. |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1513 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
| 1514 | # 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] | 1515 | trap 'exit_status=$? |
| 1516 | # Save into config.log some information that might help in debugging. |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1517 | { |
| 1518 | echo |
| 1519 | |
| 1520 | cat <<\_ASBOX |
| 1521 | ## ---------------- ## |
| 1522 | ## Cache variables. ## |
| 1523 | ## ---------------- ## |
| 1524 | _ASBOX |
| 1525 | echo |
| 1526 | # The following way of writing the cache mishandles newlines in values, |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1527 | ( |
| 1528 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do |
| 1529 | eval ac_val=\$$ac_var |
| 1530 | case $ac_val in #( |
| 1531 | *${as_nl}*) |
| 1532 | case $ac_var in #( |
| 1533 | *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 |
| 1534 | echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; |
| 1535 | esac |
| 1536 | case $ac_var in #( |
| 1537 | _ | IFS | as_nl) ;; #( |
| 1538 | *) $as_unset $ac_var ;; |
| 1539 | esac ;; |
| 1540 | esac |
| 1541 | done |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1542 | (set) 2>&1 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1543 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
| 1544 | *${as_nl}ac_space=\ *) |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1545 | sed -n \ |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1546 | "s/'\''/'\''\\\\'\'''\''/g; |
| 1547 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" |
| 1548 | ;; #( |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 1549 | *) |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1550 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 1551 | ;; |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1552 | esac | |
| 1553 | sort |
| 1554 | ) |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1555 | echo |
| 1556 | |
| 1557 | cat <<\_ASBOX |
| 1558 | ## ----------------- ## |
| 1559 | ## Output variables. ## |
| 1560 | ## ----------------- ## |
| 1561 | _ASBOX |
| 1562 | echo |
| 1563 | for ac_var in $ac_subst_vars |
| 1564 | do |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1565 | eval ac_val=\$$ac_var |
| 1566 | case $ac_val in |
| 1567 | *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
| 1568 | esac |
| 1569 | echo "$ac_var='\''$ac_val'\''" |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1570 | done | sort |
| 1571 | echo |
| 1572 | |
| 1573 | if test -n "$ac_subst_files"; then |
| 1574 | cat <<\_ASBOX |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1575 | ## ------------------- ## |
| 1576 | ## File substitutions. ## |
| 1577 | ## ------------------- ## |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1578 | _ASBOX |
| 1579 | echo |
| 1580 | for ac_var in $ac_subst_files |
| 1581 | do |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1582 | eval ac_val=\$$ac_var |
| 1583 | case $ac_val in |
| 1584 | *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
| 1585 | esac |
| 1586 | echo "$ac_var='\''$ac_val'\''" |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1587 | done | sort |
| 1588 | echo |
| 1589 | fi |
| 1590 | |
| 1591 | if test -s confdefs.h; then |
| 1592 | cat <<\_ASBOX |
| 1593 | ## ----------- ## |
| 1594 | ## confdefs.h. ## |
| 1595 | ## ----------- ## |
| 1596 | _ASBOX |
| 1597 | echo |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1598 | cat confdefs.h |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1599 | echo |
| 1600 | fi |
| 1601 | test "$ac_signal" != 0 && |
| 1602 | echo "$as_me: caught signal $ac_signal" |
| 1603 | echo "$as_me: exit $exit_status" |
| 1604 | } >&5 |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1605 | rm -f core *.core core.conftest.* && |
| 1606 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1607 | exit $exit_status |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1608 | ' 0 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1609 | for ac_signal in 1 2 13 15; do |
| 1610 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal |
| 1611 | done |
| 1612 | ac_signal=0 |
| 1613 | |
| 1614 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1615 | rm -f -r conftest* confdefs.h |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1616 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1617 | # Predefined preprocessor variables. |
| 1618 | |
| 1619 | cat >>confdefs.h <<_ACEOF |
| 1620 | #define PACKAGE_NAME "$PACKAGE_NAME" |
| 1621 | _ACEOF |
| 1622 | |
| 1623 | |
| 1624 | cat >>confdefs.h <<_ACEOF |
| 1625 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
| 1626 | _ACEOF |
| 1627 | |
| 1628 | |
| 1629 | cat >>confdefs.h <<_ACEOF |
| 1630 | #define PACKAGE_VERSION "$PACKAGE_VERSION" |
| 1631 | _ACEOF |
| 1632 | |
| 1633 | |
| 1634 | cat >>confdefs.h <<_ACEOF |
| 1635 | #define PACKAGE_STRING "$PACKAGE_STRING" |
| 1636 | _ACEOF |
| 1637 | |
| 1638 | |
| 1639 | cat >>confdefs.h <<_ACEOF |
| 1640 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
| 1641 | _ACEOF |
| 1642 | |
| 1643 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1644 | # Let the site file select an alternate cache file if it wants to. |
| 1645 | # Prefer explicitly selected file to automatically selected ones. |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1646 | if test -n "$CONFIG_SITE"; then |
| 1647 | set x "$CONFIG_SITE" |
| 1648 | elif test "x$prefix" != xNONE; then |
| 1649 | set x "$prefix/share/config.site" "$prefix/etc/config.site" |
| 1650 | else |
| 1651 | set x "$ac_default_prefix/share/config.site" \ |
| 1652 | "$ac_default_prefix/etc/config.site" |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1653 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1654 | shift |
| 1655 | for ac_site_file |
| 1656 | do |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1657 | if test -r "$ac_site_file"; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1658 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1659 | echo "$as_me: loading site script $ac_site_file" >&6;} |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1660 | sed 's/^/| /' "$ac_site_file" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1661 | . "$ac_site_file" |
| 1662 | fi |
| 1663 | done |
| 1664 | |
| 1665 | if test -r "$cache_file"; then |
| 1666 | # Some versions of bash will fail to source /dev/null (special |
| 1667 | # files actually), so we avoid doing that. |
| 1668 | if test -f "$cache_file"; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1669 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1670 | echo "$as_me: loading cache $cache_file" >&6;} |
| 1671 | case $cache_file in |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1672 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
| 1673 | *) . "./$cache_file";; |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1674 | esac |
| 1675 | fi |
| 1676 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1677 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1678 | echo "$as_me: creating cache $cache_file" >&6;} |
| 1679 | >$cache_file |
| 1680 | fi |
| 1681 | |
| 1682 | # Check that the precious variables saved in the cache have kept the same |
| 1683 | # value. |
| 1684 | ac_cache_corrupted=false |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1685 | for ac_var in $ac_precious_vars; do |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1686 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
| 1687 | eval ac_new_set=\$ac_env_${ac_var}_set |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1688 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
| 1689 | eval ac_new_val=\$ac_env_${ac_var}_value |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1690 | case $ac_old_set,$ac_new_set in |
| 1691 | set,) |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1692 | { 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] | 1693 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
| 1694 | ac_cache_corrupted=: ;; |
| 1695 | ,set) |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1696 | { 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] | 1697 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
| 1698 | ac_cache_corrupted=: ;; |
| 1699 | ,);; |
| 1700 | *) |
| 1701 | if test "x$ac_old_val" != "x$ac_new_val"; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1702 | { 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] | 1703 | 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] | 1704 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1705 | echo "$as_me: former value: $ac_old_val" >&2;} |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1706 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1707 | echo "$as_me: current value: $ac_new_val" >&2;} |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1708 | ac_cache_corrupted=: |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1709 | fi;; |
| 1710 | esac |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1711 | # Pass precious variables to config.status. |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1712 | if test "$ac_new_set" = set; then |
| 1713 | case $ac_new_val in |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1714 | *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1715 | *) ac_arg=$ac_var=$ac_new_val ;; |
| 1716 | esac |
| 1717 | case " $ac_configure_args " in |
| 1718 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
| 1719 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1720 | esac |
| 1721 | fi |
| 1722 | done |
| 1723 | if $ac_cache_corrupted; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1724 | { 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] | 1725 | 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] | 1726 | { { 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] | 1727 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} |
| 1728 | { (exit 1); exit 1; }; } |
| 1729 | fi |
| 1730 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1731 | |
| 1732 | |
| 1733 | |
| 1734 | |
| 1735 | |
| 1736 | |
| 1737 | |
| 1738 | |
| 1739 | |
| 1740 | |
| 1741 | |
| 1742 | |
| 1743 | |
| 1744 | |
| 1745 | |
| 1746 | |
| 1747 | |
| 1748 | |
| 1749 | |
| 1750 | |
| 1751 | |
| 1752 | |
| 1753 | |
| 1754 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1755 | ac_ext=c |
| 1756 | ac_cpp='$CPP $CPPFLAGS' |
| 1757 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 1758 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 1759 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 1760 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1761 | |
| 1762 | |
Benny Prijono | 5b818b2 | 2006-09-17 22:58:51 +0000 | [diff] [blame] | 1763 | host_orig="$host" |
| 1764 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1765 | ac_aux_dir= |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1766 | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do |
| 1767 | if test -f "$ac_dir/install-sh"; then |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1768 | ac_aux_dir=$ac_dir |
| 1769 | ac_install_sh="$ac_aux_dir/install-sh -c" |
| 1770 | break |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1771 | elif test -f "$ac_dir/install.sh"; then |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1772 | ac_aux_dir=$ac_dir |
| 1773 | ac_install_sh="$ac_aux_dir/install.sh -c" |
| 1774 | break |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1775 | elif test -f "$ac_dir/shtool"; then |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1776 | ac_aux_dir=$ac_dir |
| 1777 | ac_install_sh="$ac_aux_dir/shtool install -c" |
| 1778 | break |
| 1779 | fi |
| 1780 | done |
| 1781 | if test -z "$ac_aux_dir"; then |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1782 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5 |
| 1783 | 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] | 1784 | { (exit 1); exit 1; }; } |
| 1785 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1786 | |
| 1787 | # These three variables are undocumented and unsupported, |
| 1788 | # and are intended to be withdrawn in a future Autoconf release. |
| 1789 | # They can cause serious problems if a builder's source tree is in a directory |
| 1790 | # whose full name contains unusual characters. |
| 1791 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. |
| 1792 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. |
| 1793 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. |
| 1794 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1795 | |
| 1796 | # Make sure we can run config.sub. |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1797 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || |
| 1798 | { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 |
| 1799 | 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] | 1800 | { (exit 1); exit 1; }; } |
| 1801 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1802 | { echo "$as_me:$LINENO: checking build system type" >&5 |
| 1803 | echo $ECHO_N "checking build system type... $ECHO_C" >&6; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1804 | if test "${ac_cv_build+set}" = set; then |
| 1805 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1806 | else |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1807 | ac_build_alias=$build_alias |
| 1808 | test "x$ac_build_alias" = x && |
| 1809 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` |
| 1810 | test "x$ac_build_alias" = x && |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1811 | { { 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] | 1812 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} |
| 1813 | { (exit 1); exit 1; }; } |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1814 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || |
| 1815 | { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 |
| 1816 | 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] | 1817 | { (exit 1); exit 1; }; } |
| 1818 | |
| 1819 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1820 | { echo "$as_me:$LINENO: result: $ac_cv_build" >&5 |
| 1821 | echo "${ECHO_T}$ac_cv_build" >&6; } |
| 1822 | case $ac_cv_build in |
| 1823 | *-*-*) ;; |
| 1824 | *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 |
| 1825 | echo "$as_me: error: invalid value of canonical build" >&2;} |
| 1826 | { (exit 1); exit 1; }; };; |
| 1827 | esac |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1828 | build=$ac_cv_build |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1829 | ac_save_IFS=$IFS; IFS='-' |
| 1830 | set x $ac_cv_build |
| 1831 | shift |
| 1832 | build_cpu=$1 |
| 1833 | build_vendor=$2 |
| 1834 | shift; shift |
| 1835 | # Remember, the first character of IFS is used to create $*, |
| 1836 | # except with old shells: |
| 1837 | build_os=$* |
| 1838 | IFS=$ac_save_IFS |
| 1839 | 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] | 1840 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1841 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1842 | { echo "$as_me:$LINENO: checking host system type" >&5 |
| 1843 | echo $ECHO_N "checking host system type... $ECHO_C" >&6; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1844 | if test "${ac_cv_host+set}" = set; then |
| 1845 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1846 | else |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1847 | if test "x$host_alias" = x; then |
| 1848 | ac_cv_host=$ac_cv_build |
| 1849 | else |
| 1850 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || |
| 1851 | { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 |
| 1852 | 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] | 1853 | { (exit 1); exit 1; }; } |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1854 | fi |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1855 | |
| 1856 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1857 | { echo "$as_me:$LINENO: result: $ac_cv_host" >&5 |
| 1858 | echo "${ECHO_T}$ac_cv_host" >&6; } |
| 1859 | case $ac_cv_host in |
| 1860 | *-*-*) ;; |
| 1861 | *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 |
| 1862 | echo "$as_me: error: invalid value of canonical host" >&2;} |
| 1863 | { (exit 1); exit 1; }; };; |
| 1864 | esac |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1865 | host=$ac_cv_host |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1866 | ac_save_IFS=$IFS; IFS='-' |
| 1867 | set x $ac_cv_host |
| 1868 | shift |
| 1869 | host_cpu=$1 |
| 1870 | host_vendor=$2 |
| 1871 | shift; shift |
| 1872 | # Remember, the first character of IFS is used to create $*, |
| 1873 | # except with old shells: |
| 1874 | host_os=$* |
| 1875 | IFS=$ac_save_IFS |
| 1876 | 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] | 1877 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1878 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1879 | { echo "$as_me:$LINENO: checking target system type" >&5 |
| 1880 | echo $ECHO_N "checking target system type... $ECHO_C" >&6; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1881 | if test "${ac_cv_target+set}" = set; then |
| 1882 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1883 | else |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1884 | if test "x$target_alias" = x; then |
| 1885 | ac_cv_target=$ac_cv_host |
| 1886 | else |
| 1887 | ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || |
| 1888 | { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5 |
| 1889 | 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] | 1890 | { (exit 1); exit 1; }; } |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1891 | fi |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1892 | |
| 1893 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1894 | { echo "$as_me:$LINENO: result: $ac_cv_target" >&5 |
| 1895 | echo "${ECHO_T}$ac_cv_target" >&6; } |
| 1896 | case $ac_cv_target in |
| 1897 | *-*-*) ;; |
| 1898 | *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5 |
| 1899 | echo "$as_me: error: invalid value of canonical target" >&2;} |
| 1900 | { (exit 1); exit 1; }; };; |
| 1901 | esac |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1902 | target=$ac_cv_target |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1903 | ac_save_IFS=$IFS; IFS='-' |
| 1904 | set x $ac_cv_target |
| 1905 | shift |
| 1906 | target_cpu=$1 |
| 1907 | target_vendor=$2 |
| 1908 | shift; shift |
| 1909 | # Remember, the first character of IFS is used to create $*, |
| 1910 | # except with old shells: |
| 1911 | target_os=$* |
| 1912 | IFS=$ac_save_IFS |
| 1913 | 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] | 1914 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1915 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1916 | # The aliases save the names the user supplied, while $host etc. |
| 1917 | # will get canonicalized. |
| 1918 | test -n "$target_alias" && |
| 1919 | test "$program_prefix$program_suffix$program_transform_name" = \ |
| 1920 | NONENONEs,x,x, && |
| 1921 | program_prefix=${target_alias}- |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1922 | 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] | 1923 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1924 | 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] | 1925 | |
Benny Prijono | c1fe23d | 2006-09-13 09:38:06 +0000 | [diff] [blame] | 1926 | |
Benny Prijono | 1248311 | 2007-03-12 10:44:38 +0000 | [diff] [blame] | 1927 | |
Benny Prijono | c1fe23d | 2006-09-13 09:38:06 +0000 | [diff] [blame] | 1928 | if test "$CFLAGS" = ""; then |
Benny Prijono | d145982 | 2006-10-04 20:56:39 +0000 | [diff] [blame] | 1929 | CFLAGS="-O2" |
Benny Prijono | c1fe23d | 2006-09-13 09:38:06 +0000 | [diff] [blame] | 1930 | else |
| 1931 | CFLAGS="$CFLAGS" |
| 1932 | fi |
| 1933 | |
| 1934 | CXXFLAGS="$CFLAGS $CXXFLAGS" |
| 1935 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1936 | ac_ext=c |
| 1937 | ac_cpp='$CPP $CPPFLAGS' |
| 1938 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 1939 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 1940 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 1941 | if test -n "$ac_tool_prefix"; then |
| 1942 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
| 1943 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1944 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1945 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1946 | if test "${ac_cv_prog_CC+set}" = set; then |
| 1947 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1948 | else |
| 1949 | if test -n "$CC"; then |
| 1950 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 1951 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1952 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1953 | for as_dir in $PATH |
| 1954 | do |
| 1955 | IFS=$as_save_IFS |
| 1956 | test -z "$as_dir" && as_dir=. |
| 1957 | for ac_exec_ext in '' $ac_executable_extensions; do |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1958 | 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] | 1959 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
| 1960 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1961 | break 2 |
| 1962 | fi |
| 1963 | done |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1964 | done |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1965 | IFS=$as_save_IFS |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1966 | |
| 1967 | fi |
| 1968 | fi |
| 1969 | CC=$ac_cv_prog_CC |
| 1970 | if test -n "$CC"; then |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1971 | { echo "$as_me:$LINENO: result: $CC" >&5 |
| 1972 | echo "${ECHO_T}$CC" >&6; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1973 | else |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1974 | { echo "$as_me:$LINENO: result: no" >&5 |
| 1975 | echo "${ECHO_T}no" >&6; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1976 | fi |
| 1977 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1978 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1979 | fi |
| 1980 | if test -z "$ac_cv_prog_CC"; then |
| 1981 | ac_ct_CC=$CC |
| 1982 | # Extract the first word of "gcc", so it can be a program name with args. |
| 1983 | set dummy gcc; ac_word=$2 |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1984 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1985 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1986 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 1987 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1988 | else |
| 1989 | if test -n "$ac_ct_CC"; then |
| 1990 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 1991 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1992 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1993 | for as_dir in $PATH |
| 1994 | do |
| 1995 | IFS=$as_save_IFS |
| 1996 | test -z "$as_dir" && as_dir=. |
| 1997 | for ac_exec_ext in '' $ac_executable_extensions; do |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1998 | 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] | 1999 | ac_cv_prog_ac_ct_CC="gcc" |
| 2000 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2001 | break 2 |
| 2002 | fi |
| 2003 | done |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2004 | done |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2005 | IFS=$as_save_IFS |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2006 | |
| 2007 | fi |
| 2008 | fi |
| 2009 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 2010 | if test -n "$ac_ct_CC"; then |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2011 | { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 2012 | echo "${ECHO_T}$ac_ct_CC" >&6; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2013 | else |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2014 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2015 | echo "${ECHO_T}no" >&6; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2016 | fi |
| 2017 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2018 | if test "x$ac_ct_CC" = x; then |
| 2019 | CC="" |
| 2020 | else |
| 2021 | case $cross_compiling:$ac_tool_warned in |
| 2022 | yes:) |
| 2023 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 2024 | whose name does not start with the host triplet. If you think this |
| 2025 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 2026 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 2027 | whose name does not start with the host triplet. If you think this |
| 2028 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| 2029 | ac_tool_warned=yes ;; |
| 2030 | esac |
| 2031 | CC=$ac_ct_CC |
| 2032 | fi |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2033 | else |
| 2034 | CC="$ac_cv_prog_CC" |
| 2035 | fi |
| 2036 | |
| 2037 | if test -z "$CC"; then |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2038 | if test -n "$ac_tool_prefix"; then |
| 2039 | # 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] | 2040 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2041 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2042 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2043 | if test "${ac_cv_prog_CC+set}" = set; then |
| 2044 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2045 | else |
| 2046 | if test -n "$CC"; then |
| 2047 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2048 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2049 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2050 | for as_dir in $PATH |
| 2051 | do |
| 2052 | IFS=$as_save_IFS |
| 2053 | test -z "$as_dir" && as_dir=. |
| 2054 | for ac_exec_ext in '' $ac_executable_extensions; do |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2055 | 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] | 2056 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
| 2057 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2058 | break 2 |
| 2059 | fi |
| 2060 | done |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2061 | done |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2062 | IFS=$as_save_IFS |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2063 | |
| 2064 | fi |
| 2065 | fi |
| 2066 | CC=$ac_cv_prog_CC |
| 2067 | if test -n "$CC"; then |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2068 | { echo "$as_me:$LINENO: result: $CC" >&5 |
| 2069 | echo "${ECHO_T}$CC" >&6; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2070 | else |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2071 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2072 | echo "${ECHO_T}no" >&6; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2073 | fi |
| 2074 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2075 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2076 | fi |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2077 | fi |
| 2078 | if test -z "$CC"; then |
| 2079 | # Extract the first word of "cc", so it can be a program name with args. |
| 2080 | set dummy cc; ac_word=$2 |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2081 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2082 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2083 | if test "${ac_cv_prog_CC+set}" = set; then |
| 2084 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2085 | else |
| 2086 | if test -n "$CC"; then |
| 2087 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2088 | else |
| 2089 | ac_prog_rejected=no |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2090 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2091 | for as_dir in $PATH |
| 2092 | do |
| 2093 | IFS=$as_save_IFS |
| 2094 | test -z "$as_dir" && as_dir=. |
| 2095 | for ac_exec_ext in '' $ac_executable_extensions; do |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2096 | 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] | 2097 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
| 2098 | ac_prog_rejected=yes |
| 2099 | continue |
| 2100 | fi |
| 2101 | ac_cv_prog_CC="cc" |
| 2102 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2103 | break 2 |
| 2104 | fi |
| 2105 | done |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2106 | done |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2107 | IFS=$as_save_IFS |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2108 | |
| 2109 | if test $ac_prog_rejected = yes; then |
| 2110 | # We found a bogon in the path, so make sure we never use it. |
| 2111 | set dummy $ac_cv_prog_CC |
| 2112 | shift |
| 2113 | if test $# != 0; then |
| 2114 | # We chose a different compiler from the bogus one. |
| 2115 | # However, it has the same basename, so the bogon will be chosen |
| 2116 | # first if we set CC to just the basename; use the full file name. |
| 2117 | shift |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2118 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2119 | fi |
| 2120 | fi |
| 2121 | fi |
| 2122 | fi |
| 2123 | CC=$ac_cv_prog_CC |
| 2124 | if test -n "$CC"; then |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2125 | { echo "$as_me:$LINENO: result: $CC" >&5 |
| 2126 | echo "${ECHO_T}$CC" >&6; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2127 | else |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2128 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2129 | echo "${ECHO_T}no" >&6; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2130 | fi |
| 2131 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2132 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2133 | fi |
| 2134 | if test -z "$CC"; then |
| 2135 | if test -n "$ac_tool_prefix"; then |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2136 | for ac_prog in cl.exe |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2137 | do |
| 2138 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 2139 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2140 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2141 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2142 | if test "${ac_cv_prog_CC+set}" = set; then |
| 2143 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2144 | else |
| 2145 | if test -n "$CC"; then |
| 2146 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2147 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2148 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2149 | for as_dir in $PATH |
| 2150 | do |
| 2151 | IFS=$as_save_IFS |
| 2152 | test -z "$as_dir" && as_dir=. |
| 2153 | for ac_exec_ext in '' $ac_executable_extensions; do |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2154 | 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] | 2155 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
| 2156 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2157 | break 2 |
| 2158 | fi |
| 2159 | done |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2160 | done |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2161 | IFS=$as_save_IFS |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2162 | |
| 2163 | fi |
| 2164 | fi |
| 2165 | CC=$ac_cv_prog_CC |
| 2166 | if test -n "$CC"; then |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2167 | { echo "$as_me:$LINENO: result: $CC" >&5 |
| 2168 | echo "${ECHO_T}$CC" >&6; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2169 | else |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2170 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2171 | echo "${ECHO_T}no" >&6; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2172 | fi |
| 2173 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2174 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2175 | test -n "$CC" && break |
| 2176 | done |
| 2177 | fi |
| 2178 | if test -z "$CC"; then |
| 2179 | ac_ct_CC=$CC |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2180 | for ac_prog in cl.exe |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2181 | do |
| 2182 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 2183 | set dummy $ac_prog; ac_word=$2 |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2184 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2185 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2186 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 2187 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2188 | else |
| 2189 | if test -n "$ac_ct_CC"; then |
| 2190 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 2191 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2192 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2193 | for as_dir in $PATH |
| 2194 | do |
| 2195 | IFS=$as_save_IFS |
| 2196 | test -z "$as_dir" && as_dir=. |
| 2197 | for ac_exec_ext in '' $ac_executable_extensions; do |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2198 | 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] | 2199 | ac_cv_prog_ac_ct_CC="$ac_prog" |
| 2200 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2201 | break 2 |
| 2202 | fi |
| 2203 | done |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2204 | done |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2205 | IFS=$as_save_IFS |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2206 | |
| 2207 | fi |
| 2208 | fi |
| 2209 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 2210 | if test -n "$ac_ct_CC"; then |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2211 | { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 2212 | echo "${ECHO_T}$ac_ct_CC" >&6; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2213 | else |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2214 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2215 | echo "${ECHO_T}no" >&6; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2216 | fi |
| 2217 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2218 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2219 | test -n "$ac_ct_CC" && break |
| 2220 | done |
| 2221 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2222 | if test "x$ac_ct_CC" = x; then |
| 2223 | CC="" |
| 2224 | else |
| 2225 | case $cross_compiling:$ac_tool_warned in |
| 2226 | yes:) |
| 2227 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 2228 | whose name does not start with the host triplet. If you think this |
| 2229 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 2230 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 2231 | whose name does not start with the host triplet. If you think this |
| 2232 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| 2233 | ac_tool_warned=yes ;; |
| 2234 | esac |
| 2235 | CC=$ac_ct_CC |
| 2236 | fi |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2237 | fi |
| 2238 | |
| 2239 | fi |
| 2240 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2241 | |
| 2242 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH |
| 2243 | See \`config.log' for more details." >&5 |
| 2244 | echo "$as_me: error: no acceptable C compiler found in \$PATH |
| 2245 | See \`config.log' for more details." >&2;} |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2246 | { (exit 1); exit 1; }; } |
| 2247 | |
| 2248 | # Provide some information about the compiler. |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2249 | echo "$as_me:$LINENO: checking for C compiler version" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2250 | ac_compiler=`set X $ac_compile; echo $2` |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2251 | { (ac_try="$ac_compiler --version >&5" |
| 2252 | case "(($ac_try" in |
| 2253 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2254 | *) ac_try_echo=$ac_try;; |
| 2255 | esac |
| 2256 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2257 | (eval "$ac_compiler --version >&5") 2>&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2258 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2259 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2260 | (exit $ac_status); } |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2261 | { (ac_try="$ac_compiler -v >&5" |
| 2262 | case "(($ac_try" in |
| 2263 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2264 | *) ac_try_echo=$ac_try;; |
| 2265 | esac |
| 2266 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2267 | (eval "$ac_compiler -v >&5") 2>&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2268 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2269 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2270 | (exit $ac_status); } |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2271 | { (ac_try="$ac_compiler -V >&5" |
| 2272 | case "(($ac_try" in |
| 2273 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2274 | *) ac_try_echo=$ac_try;; |
| 2275 | esac |
| 2276 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2277 | (eval "$ac_compiler -V >&5") 2>&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2278 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2279 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2280 | (exit $ac_status); } |
| 2281 | |
| 2282 | cat >conftest.$ac_ext <<_ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2283 | /* confdefs.h. */ |
| 2284 | _ACEOF |
| 2285 | cat confdefs.h >>conftest.$ac_ext |
| 2286 | cat >>conftest.$ac_ext <<_ACEOF |
| 2287 | /* end confdefs.h. */ |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2288 | |
| 2289 | int |
| 2290 | main () |
| 2291 | { |
| 2292 | |
| 2293 | ; |
| 2294 | return 0; |
| 2295 | } |
| 2296 | _ACEOF |
| 2297 | ac_clean_files_save=$ac_clean_files |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2298 | ac_clean_files="$ac_clean_files a.out a.exe b.out" |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2299 | # Try to create an executable without -o first, disregard a.out. |
| 2300 | # It will help us diagnose broken compilers, and finding out an intuition |
| 2301 | # of exeext. |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2302 | { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 |
| 2303 | 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] | 2304 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2305 | # |
| 2306 | # List of possible output files, starting from the most likely. |
| 2307 | # The algorithm is not robust to junk in `.', hence go to wildcards (a.*) |
| 2308 | # only as a last resort. b.out is created by i960 compilers. |
| 2309 | ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out' |
| 2310 | # |
| 2311 | # The IRIX 6 linker writes into existing files which may not be |
| 2312 | # executable, retaining their permissions. Remove them first so a |
| 2313 | # subsequent execution test works. |
| 2314 | ac_rmfiles= |
| 2315 | for ac_file in $ac_files |
| 2316 | do |
| 2317 | case $ac_file in |
| 2318 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; |
| 2319 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; |
| 2320 | esac |
| 2321 | done |
| 2322 | rm -f $ac_rmfiles |
| 2323 | |
| 2324 | if { (ac_try="$ac_link_default" |
| 2325 | case "(($ac_try" in |
| 2326 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2327 | *) ac_try_echo=$ac_try;; |
| 2328 | esac |
| 2329 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2330 | (eval "$ac_link_default") 2>&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2331 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2332 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2333 | (exit $ac_status); }; then |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2334 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
| 2335 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' |
| 2336 | # in a Makefile. We should not override ac_cv_exeext if it was cached, |
| 2337 | # so that the user can short-circuit this test for compilers unknown to |
| 2338 | # Autoconf. |
| 2339 | for ac_file in $ac_files '' |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2340 | do |
| 2341 | test -f "$ac_file" || continue |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2342 | case $ac_file in |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2343 | *.$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] | 2344 | ;; |
| 2345 | [ab].out ) |
| 2346 | # We found the default executable, but exeext='' is most |
| 2347 | # certainly right. |
| 2348 | break;; |
| 2349 | *.* ) |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2350 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
| 2351 | then :; else |
| 2352 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 2353 | fi |
| 2354 | # We set ac_cv_exeext here because the later test for it is not |
| 2355 | # safe: cross compilers may not add the suffix if given an `-o' |
| 2356 | # argument, so we may need to know it at that point already. |
| 2357 | # Even if this section looks crufty: it has the advantage of |
| 2358 | # actually working. |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2359 | break;; |
| 2360 | * ) |
| 2361 | break;; |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2362 | esac |
| 2363 | done |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2364 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
| 2365 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2366 | else |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2367 | ac_file='' |
| 2368 | fi |
| 2369 | |
| 2370 | { echo "$as_me:$LINENO: result: $ac_file" >&5 |
| 2371 | echo "${ECHO_T}$ac_file" >&6; } |
| 2372 | if test -z "$ac_file"; then |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2373 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2374 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2375 | |
| 2376 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables |
| 2377 | See \`config.log' for more details." >&5 |
| 2378 | echo "$as_me: error: C compiler cannot create executables |
| 2379 | See \`config.log' for more details." >&2;} |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2380 | { (exit 77); exit 77; }; } |
| 2381 | fi |
| 2382 | |
| 2383 | ac_exeext=$ac_cv_exeext |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2384 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2385 | # Check that the compiler produces executables we can run. If not, either |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2386 | # the compiler is broken, or we cross compile. |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2387 | { echo "$as_me:$LINENO: checking whether the C compiler works" >&5 |
| 2388 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2389 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
| 2390 | # If not cross compiling, check that we can run a simple program. |
| 2391 | if test "$cross_compiling" != yes; then |
| 2392 | if { ac_try='./$ac_file' |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2393 | { (case "(($ac_try" in |
| 2394 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2395 | *) ac_try_echo=$ac_try;; |
| 2396 | esac |
| 2397 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2398 | (eval "$ac_try") 2>&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2399 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2400 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2401 | (exit $ac_status); }; }; then |
| 2402 | cross_compiling=no |
| 2403 | else |
| 2404 | if test "$cross_compiling" = maybe; then |
| 2405 | cross_compiling=yes |
| 2406 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2407 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. |
| 2408 | If you meant to cross compile, use \`--host'. |
| 2409 | See \`config.log' for more details." >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2410 | echo "$as_me: error: cannot run C compiled programs. |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2411 | If you meant to cross compile, use \`--host'. |
| 2412 | See \`config.log' for more details." >&2;} |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2413 | { (exit 1); exit 1; }; } |
| 2414 | fi |
| 2415 | fi |
| 2416 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2417 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 2418 | echo "${ECHO_T}yes" >&6; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2419 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2420 | rm -f a.out a.exe conftest$ac_cv_exeext b.out |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2421 | ac_clean_files=$ac_clean_files_save |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2422 | # Check that the compiler produces executables we can run. If not, either |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2423 | # the compiler is broken, or we cross compile. |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2424 | { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
| 2425 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; } |
| 2426 | { echo "$as_me:$LINENO: result: $cross_compiling" >&5 |
| 2427 | echo "${ECHO_T}$cross_compiling" >&6; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2428 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2429 | { echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
| 2430 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; } |
| 2431 | if { (ac_try="$ac_link" |
| 2432 | case "(($ac_try" in |
| 2433 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2434 | *) ac_try_echo=$ac_try;; |
| 2435 | esac |
| 2436 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2437 | (eval "$ac_link") 2>&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2438 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2439 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2440 | (exit $ac_status); }; then |
| 2441 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
| 2442 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
| 2443 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
| 2444 | # `rm'. |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2445 | for ac_file in conftest.exe conftest conftest.*; do |
| 2446 | test -f "$ac_file" || continue |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2447 | case $ac_file in |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2448 | *.$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] | 2449 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2450 | break;; |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2451 | * ) break;; |
| 2452 | esac |
| 2453 | done |
| 2454 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2455 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link |
| 2456 | See \`config.log' for more details." >&5 |
| 2457 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link |
| 2458 | See \`config.log' for more details." >&2;} |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2459 | { (exit 1); exit 1; }; } |
| 2460 | fi |
| 2461 | |
| 2462 | rm -f conftest$ac_cv_exeext |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2463 | { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
| 2464 | echo "${ECHO_T}$ac_cv_exeext" >&6; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2465 | |
| 2466 | rm -f conftest.$ac_ext |
| 2467 | EXEEXT=$ac_cv_exeext |
| 2468 | ac_exeext=$EXEEXT |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2469 | { echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
| 2470 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2471 | if test "${ac_cv_objext+set}" = set; then |
| 2472 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2473 | else |
| 2474 | cat >conftest.$ac_ext <<_ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2475 | /* confdefs.h. */ |
| 2476 | _ACEOF |
| 2477 | cat confdefs.h >>conftest.$ac_ext |
| 2478 | cat >>conftest.$ac_ext <<_ACEOF |
| 2479 | /* end confdefs.h. */ |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2480 | |
| 2481 | int |
| 2482 | main () |
| 2483 | { |
| 2484 | |
| 2485 | ; |
| 2486 | return 0; |
| 2487 | } |
| 2488 | _ACEOF |
| 2489 | rm -f conftest.o conftest.obj |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2490 | if { (ac_try="$ac_compile" |
| 2491 | case "(($ac_try" in |
| 2492 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2493 | *) ac_try_echo=$ac_try;; |
| 2494 | esac |
| 2495 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2496 | (eval "$ac_compile") 2>&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2497 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2498 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2499 | (exit $ac_status); }; then |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2500 | for ac_file in conftest.o conftest.obj conftest.*; do |
| 2501 | test -f "$ac_file" || continue; |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2502 | case $ac_file in |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2503 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;; |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2504 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
| 2505 | break;; |
| 2506 | esac |
| 2507 | done |
| 2508 | else |
| 2509 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2510 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2511 | |
| 2512 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile |
| 2513 | See \`config.log' for more details." >&5 |
| 2514 | echo "$as_me: error: cannot compute suffix of object files: cannot compile |
| 2515 | See \`config.log' for more details." >&2;} |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2516 | { (exit 1); exit 1; }; } |
| 2517 | fi |
| 2518 | |
| 2519 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
| 2520 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2521 | { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
| 2522 | echo "${ECHO_T}$ac_cv_objext" >&6; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2523 | OBJEXT=$ac_cv_objext |
| 2524 | ac_objext=$OBJEXT |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2525 | { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
| 2526 | 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] | 2527 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
| 2528 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2529 | else |
| 2530 | cat >conftest.$ac_ext <<_ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2531 | /* confdefs.h. */ |
| 2532 | _ACEOF |
| 2533 | cat confdefs.h >>conftest.$ac_ext |
| 2534 | cat >>conftest.$ac_ext <<_ACEOF |
| 2535 | /* end confdefs.h. */ |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2536 | |
| 2537 | int |
| 2538 | main () |
| 2539 | { |
| 2540 | #ifndef __GNUC__ |
| 2541 | choke me |
| 2542 | #endif |
| 2543 | |
| 2544 | ; |
| 2545 | return 0; |
| 2546 | } |
| 2547 | _ACEOF |
| 2548 | rm -f conftest.$ac_objext |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2549 | if { (ac_try="$ac_compile" |
| 2550 | case "(($ac_try" in |
| 2551 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2552 | *) ac_try_echo=$ac_try;; |
| 2553 | esac |
| 2554 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2555 | (eval "$ac_compile") 2>conftest.er1 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2556 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2557 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2558 | rm -f conftest.er1 |
| 2559 | cat conftest.err >&5 |
| 2560 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2561 | (exit $ac_status); } && { |
| 2562 | test -z "$ac_c_werror_flag" || |
| 2563 | test ! -s conftest.err |
| 2564 | } && test -s conftest.$ac_objext; then |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2565 | ac_compiler_gnu=yes |
| 2566 | else |
| 2567 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2568 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2569 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2570 | ac_compiler_gnu=no |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2571 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2572 | |
| 2573 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2574 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
| 2575 | |
| 2576 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2577 | { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
| 2578 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2579 | GCC=`test $ac_compiler_gnu = yes && echo yes` |
| 2580 | ac_test_CFLAGS=${CFLAGS+set} |
| 2581 | ac_save_CFLAGS=$CFLAGS |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2582 | { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
| 2583 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2584 | if test "${ac_cv_prog_cc_g+set}" = set; then |
| 2585 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2586 | else |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2587 | ac_save_c_werror_flag=$ac_c_werror_flag |
| 2588 | ac_c_werror_flag=yes |
| 2589 | ac_cv_prog_cc_g=no |
| 2590 | CFLAGS="-g" |
| 2591 | cat >conftest.$ac_ext <<_ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2592 | /* confdefs.h. */ |
| 2593 | _ACEOF |
| 2594 | cat confdefs.h >>conftest.$ac_ext |
| 2595 | cat >>conftest.$ac_ext <<_ACEOF |
| 2596 | /* end confdefs.h. */ |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2597 | |
| 2598 | int |
| 2599 | main () |
| 2600 | { |
| 2601 | |
| 2602 | ; |
| 2603 | return 0; |
| 2604 | } |
| 2605 | _ACEOF |
| 2606 | rm -f conftest.$ac_objext |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2607 | if { (ac_try="$ac_compile" |
| 2608 | case "(($ac_try" in |
| 2609 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2610 | *) ac_try_echo=$ac_try;; |
| 2611 | esac |
| 2612 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2613 | (eval "$ac_compile") 2>conftest.er1 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2614 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2615 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2616 | rm -f conftest.er1 |
| 2617 | cat conftest.err >&5 |
| 2618 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2619 | (exit $ac_status); } && { |
| 2620 | test -z "$ac_c_werror_flag" || |
| 2621 | test ! -s conftest.err |
| 2622 | } && test -s conftest.$ac_objext; then |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2623 | ac_cv_prog_cc_g=yes |
| 2624 | else |
| 2625 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2626 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2627 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2628 | CFLAGS="" |
| 2629 | cat >conftest.$ac_ext <<_ACEOF |
| 2630 | /* confdefs.h. */ |
| 2631 | _ACEOF |
| 2632 | cat confdefs.h >>conftest.$ac_ext |
| 2633 | cat >>conftest.$ac_ext <<_ACEOF |
| 2634 | /* end confdefs.h. */ |
| 2635 | |
| 2636 | int |
| 2637 | main () |
| 2638 | { |
| 2639 | |
| 2640 | ; |
| 2641 | return 0; |
| 2642 | } |
| 2643 | _ACEOF |
| 2644 | rm -f conftest.$ac_objext |
| 2645 | if { (ac_try="$ac_compile" |
| 2646 | case "(($ac_try" in |
| 2647 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2648 | *) ac_try_echo=$ac_try;; |
| 2649 | esac |
| 2650 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2651 | (eval "$ac_compile") 2>conftest.er1 |
| 2652 | ac_status=$? |
| 2653 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2654 | rm -f conftest.er1 |
| 2655 | cat conftest.err >&5 |
| 2656 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2657 | (exit $ac_status); } && { |
| 2658 | test -z "$ac_c_werror_flag" || |
| 2659 | test ! -s conftest.err |
| 2660 | } && test -s conftest.$ac_objext; then |
| 2661 | : |
| 2662 | else |
| 2663 | echo "$as_me: failed program was:" >&5 |
| 2664 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2665 | |
| 2666 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 2667 | CFLAGS="-g" |
| 2668 | cat >conftest.$ac_ext <<_ACEOF |
| 2669 | /* confdefs.h. */ |
| 2670 | _ACEOF |
| 2671 | cat confdefs.h >>conftest.$ac_ext |
| 2672 | cat >>conftest.$ac_ext <<_ACEOF |
| 2673 | /* end confdefs.h. */ |
| 2674 | |
| 2675 | int |
| 2676 | main () |
| 2677 | { |
| 2678 | |
| 2679 | ; |
| 2680 | return 0; |
| 2681 | } |
| 2682 | _ACEOF |
| 2683 | rm -f conftest.$ac_objext |
| 2684 | if { (ac_try="$ac_compile" |
| 2685 | case "(($ac_try" in |
| 2686 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2687 | *) ac_try_echo=$ac_try;; |
| 2688 | esac |
| 2689 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2690 | (eval "$ac_compile") 2>conftest.er1 |
| 2691 | ac_status=$? |
| 2692 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2693 | rm -f conftest.er1 |
| 2694 | cat conftest.err >&5 |
| 2695 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2696 | (exit $ac_status); } && { |
| 2697 | test -z "$ac_c_werror_flag" || |
| 2698 | test ! -s conftest.err |
| 2699 | } && test -s conftest.$ac_objext; then |
| 2700 | ac_cv_prog_cc_g=yes |
| 2701 | else |
| 2702 | echo "$as_me: failed program was:" >&5 |
| 2703 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2704 | |
| 2705 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2706 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2707 | |
| 2708 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2709 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2710 | |
| 2711 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2712 | fi |
| 2713 | |
| 2714 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2715 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 2716 | fi |
| 2717 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
| 2718 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2719 | if test "$ac_test_CFLAGS" = set; then |
| 2720 | CFLAGS=$ac_save_CFLAGS |
| 2721 | elif test $ac_cv_prog_cc_g = yes; then |
| 2722 | if test "$GCC" = yes; then |
| 2723 | CFLAGS="-g -O2" |
| 2724 | else |
| 2725 | CFLAGS="-g" |
| 2726 | fi |
| 2727 | else |
| 2728 | if test "$GCC" = yes; then |
| 2729 | CFLAGS="-O2" |
| 2730 | else |
| 2731 | CFLAGS= |
| 2732 | fi |
| 2733 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2734 | { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 |
| 2735 | echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } |
| 2736 | if test "${ac_cv_prog_cc_c89+set}" = set; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2737 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2738 | else |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2739 | ac_cv_prog_cc_c89=no |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2740 | ac_save_CC=$CC |
| 2741 | cat >conftest.$ac_ext <<_ACEOF |
| 2742 | /* confdefs.h. */ |
| 2743 | _ACEOF |
| 2744 | cat confdefs.h >>conftest.$ac_ext |
| 2745 | cat >>conftest.$ac_ext <<_ACEOF |
| 2746 | /* end confdefs.h. */ |
| 2747 | #include <stdarg.h> |
| 2748 | #include <stdio.h> |
| 2749 | #include <sys/types.h> |
| 2750 | #include <sys/stat.h> |
| 2751 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
| 2752 | struct buf { int x; }; |
| 2753 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
| 2754 | static char *e (p, i) |
| 2755 | char **p; |
| 2756 | int i; |
| 2757 | { |
| 2758 | return p[i]; |
| 2759 | } |
| 2760 | static char *f (char * (*g) (char **, int), char **p, ...) |
| 2761 | { |
| 2762 | char *s; |
| 2763 | va_list v; |
| 2764 | va_start (v,p); |
| 2765 | s = g (p, va_arg (v,int)); |
| 2766 | va_end (v); |
| 2767 | return s; |
| 2768 | } |
| 2769 | |
| 2770 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
| 2771 | function prototypes and stuff, but not '\xHH' hex character constants. |
| 2772 | These don't provoke an error unfortunately, instead are silently treated |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2773 | 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] | 2774 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
| 2775 | array size at least. It's necessary to write '\x00'==0 to get something |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2776 | that's true only with -std. */ |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2777 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
| 2778 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2779 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
| 2780 | inside strings and character constants. */ |
| 2781 | #define FOO(x) 'x' |
| 2782 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; |
| 2783 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2784 | int test (int i, double x); |
| 2785 | struct s1 {int (*f) (int a);}; |
| 2786 | struct s2 {int (*f) (double a);}; |
| 2787 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
| 2788 | int argc; |
| 2789 | char **argv; |
| 2790 | int |
| 2791 | main () |
| 2792 | { |
| 2793 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
| 2794 | ; |
| 2795 | return 0; |
| 2796 | } |
| 2797 | _ACEOF |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2798 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
| 2799 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2800 | do |
| 2801 | CC="$ac_save_CC $ac_arg" |
| 2802 | rm -f conftest.$ac_objext |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2803 | if { (ac_try="$ac_compile" |
| 2804 | case "(($ac_try" in |
| 2805 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2806 | *) ac_try_echo=$ac_try;; |
| 2807 | esac |
| 2808 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2809 | (eval "$ac_compile") 2>conftest.er1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2810 | ac_status=$? |
| 2811 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2812 | rm -f conftest.er1 |
| 2813 | cat conftest.err >&5 |
| 2814 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2815 | (exit $ac_status); } && { |
| 2816 | test -z "$ac_c_werror_flag" || |
| 2817 | test ! -s conftest.err |
| 2818 | } && test -s conftest.$ac_objext; then |
| 2819 | ac_cv_prog_cc_c89=$ac_arg |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2820 | else |
| 2821 | echo "$as_me: failed program was:" >&5 |
| 2822 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2823 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2824 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2825 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2826 | |
| 2827 | rm -f core conftest.err conftest.$ac_objext |
| 2828 | test "x$ac_cv_prog_cc_c89" != "xno" && break |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2829 | done |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2830 | rm -f conftest.$ac_ext |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2831 | CC=$ac_save_CC |
| 2832 | |
| 2833 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2834 | # AC_CACHE_VAL |
| 2835 | case "x$ac_cv_prog_cc_c89" in |
| 2836 | x) |
| 2837 | { echo "$as_me:$LINENO: result: none needed" >&5 |
| 2838 | echo "${ECHO_T}none needed" >&6; } ;; |
| 2839 | xno) |
| 2840 | { echo "$as_me:$LINENO: result: unsupported" >&5 |
| 2841 | echo "${ECHO_T}unsupported" >&6; } ;; |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2842 | *) |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2843 | CC="$CC $ac_cv_prog_cc_c89" |
| 2844 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 |
| 2845 | echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2846 | esac |
| 2847 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2848 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2849 | ac_ext=c |
| 2850 | ac_cpp='$CPP $CPPFLAGS' |
| 2851 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2852 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2853 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2854 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2855 | ac_ext=cpp |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2856 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 2857 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2858 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2859 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2860 | if test -z "$CXX"; then |
| 2861 | if test -n "$CCC"; then |
| 2862 | CXX=$CCC |
| 2863 | else |
| 2864 | if test -n "$ac_tool_prefix"; then |
| 2865 | 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] | 2866 | do |
| 2867 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 2868 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2869 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2870 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2871 | if test "${ac_cv_prog_CXX+set}" = set; then |
| 2872 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2873 | else |
| 2874 | if test -n "$CXX"; then |
| 2875 | ac_cv_prog_CXX="$CXX" # Let the user override the test. |
| 2876 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2877 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2878 | for as_dir in $PATH |
| 2879 | do |
| 2880 | IFS=$as_save_IFS |
| 2881 | test -z "$as_dir" && as_dir=. |
| 2882 | for ac_exec_ext in '' $ac_executable_extensions; do |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2883 | 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] | 2884 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
| 2885 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2886 | break 2 |
| 2887 | fi |
| 2888 | done |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2889 | done |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2890 | IFS=$as_save_IFS |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2891 | |
| 2892 | fi |
| 2893 | fi |
| 2894 | CXX=$ac_cv_prog_CXX |
| 2895 | if test -n "$CXX"; then |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2896 | { echo "$as_me:$LINENO: result: $CXX" >&5 |
| 2897 | echo "${ECHO_T}$CXX" >&6; } |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2898 | else |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2899 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2900 | echo "${ECHO_T}no" >&6; } |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2901 | fi |
| 2902 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2903 | |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2904 | test -n "$CXX" && break |
| 2905 | done |
| 2906 | fi |
| 2907 | if test -z "$CXX"; then |
| 2908 | ac_ct_CXX=$CXX |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2909 | 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] | 2910 | do |
| 2911 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 2912 | set dummy $ac_prog; ac_word=$2 |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2913 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2914 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2915 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then |
| 2916 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2917 | else |
| 2918 | if test -n "$ac_ct_CXX"; then |
| 2919 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. |
| 2920 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2921 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2922 | for as_dir in $PATH |
| 2923 | do |
| 2924 | IFS=$as_save_IFS |
| 2925 | test -z "$as_dir" && as_dir=. |
| 2926 | for ac_exec_ext in '' $ac_executable_extensions; do |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2927 | 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] | 2928 | ac_cv_prog_ac_ct_CXX="$ac_prog" |
| 2929 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2930 | break 2 |
| 2931 | fi |
| 2932 | done |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2933 | done |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2934 | IFS=$as_save_IFS |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2935 | |
| 2936 | fi |
| 2937 | fi |
| 2938 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX |
| 2939 | if test -n "$ac_ct_CXX"; then |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2940 | { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 |
| 2941 | echo "${ECHO_T}$ac_ct_CXX" >&6; } |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2942 | else |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2943 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2944 | echo "${ECHO_T}no" >&6; } |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2945 | fi |
| 2946 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2947 | |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2948 | test -n "$ac_ct_CXX" && break |
| 2949 | done |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2950 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2951 | if test "x$ac_ct_CXX" = x; then |
| 2952 | CXX="g++" |
| 2953 | else |
| 2954 | case $cross_compiling:$ac_tool_warned in |
| 2955 | yes:) |
| 2956 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 2957 | whose name does not start with the host triplet. If you think this |
| 2958 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 2959 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 2960 | whose name does not start with the host triplet. If you think this |
| 2961 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| 2962 | ac_tool_warned=yes ;; |
| 2963 | esac |
| 2964 | CXX=$ac_ct_CXX |
| 2965 | fi |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2966 | fi |
| 2967 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2968 | fi |
| 2969 | fi |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2970 | # Provide some information about the compiler. |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2971 | echo "$as_me:$LINENO: checking for C++ compiler version" >&5 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2972 | ac_compiler=`set X $ac_compile; echo $2` |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2973 | { (ac_try="$ac_compiler --version >&5" |
| 2974 | case "(($ac_try" in |
| 2975 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2976 | *) ac_try_echo=$ac_try;; |
| 2977 | esac |
| 2978 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2979 | (eval "$ac_compiler --version >&5") 2>&5 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2980 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2981 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2982 | (exit $ac_status); } |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2983 | { (ac_try="$ac_compiler -v >&5" |
| 2984 | case "(($ac_try" in |
| 2985 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2986 | *) ac_try_echo=$ac_try;; |
| 2987 | esac |
| 2988 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2989 | (eval "$ac_compiler -v >&5") 2>&5 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2990 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2991 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2992 | (exit $ac_status); } |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2993 | { (ac_try="$ac_compiler -V >&5" |
| 2994 | case "(($ac_try" in |
| 2995 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2996 | *) ac_try_echo=$ac_try;; |
| 2997 | esac |
| 2998 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2999 | (eval "$ac_compiler -V >&5") 2>&5 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3000 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3001 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3002 | (exit $ac_status); } |
| 3003 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3004 | { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 |
| 3005 | 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] | 3006 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then |
| 3007 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3008 | else |
| 3009 | cat >conftest.$ac_ext <<_ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3010 | /* confdefs.h. */ |
| 3011 | _ACEOF |
| 3012 | cat confdefs.h >>conftest.$ac_ext |
| 3013 | cat >>conftest.$ac_ext <<_ACEOF |
| 3014 | /* end confdefs.h. */ |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3015 | |
| 3016 | int |
| 3017 | main () |
| 3018 | { |
| 3019 | #ifndef __GNUC__ |
| 3020 | choke me |
| 3021 | #endif |
| 3022 | |
| 3023 | ; |
| 3024 | return 0; |
| 3025 | } |
| 3026 | _ACEOF |
| 3027 | rm -f conftest.$ac_objext |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3028 | if { (ac_try="$ac_compile" |
| 3029 | case "(($ac_try" in |
| 3030 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3031 | *) ac_try_echo=$ac_try;; |
| 3032 | esac |
| 3033 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3034 | (eval "$ac_compile") 2>conftest.er1 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3035 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3036 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3037 | rm -f conftest.er1 |
| 3038 | cat conftest.err >&5 |
| 3039 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3040 | (exit $ac_status); } && { |
| 3041 | test -z "$ac_cxx_werror_flag" || |
| 3042 | test ! -s conftest.err |
| 3043 | } && test -s conftest.$ac_objext; then |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3044 | ac_compiler_gnu=yes |
| 3045 | else |
| 3046 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3047 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3048 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3049 | ac_compiler_gnu=no |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3050 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3051 | |
| 3052 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3053 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
| 3054 | |
| 3055 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3056 | { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 |
| 3057 | echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; } |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3058 | GXX=`test $ac_compiler_gnu = yes && echo yes` |
| 3059 | ac_test_CXXFLAGS=${CXXFLAGS+set} |
| 3060 | ac_save_CXXFLAGS=$CXXFLAGS |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3061 | { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 |
| 3062 | echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; } |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3063 | if test "${ac_cv_prog_cxx_g+set}" = set; then |
| 3064 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3065 | else |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3066 | ac_save_cxx_werror_flag=$ac_cxx_werror_flag |
| 3067 | ac_cxx_werror_flag=yes |
| 3068 | ac_cv_prog_cxx_g=no |
| 3069 | CXXFLAGS="-g" |
| 3070 | cat >conftest.$ac_ext <<_ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3071 | /* confdefs.h. */ |
| 3072 | _ACEOF |
| 3073 | cat confdefs.h >>conftest.$ac_ext |
| 3074 | cat >>conftest.$ac_ext <<_ACEOF |
| 3075 | /* end confdefs.h. */ |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3076 | |
| 3077 | int |
| 3078 | main () |
| 3079 | { |
| 3080 | |
| 3081 | ; |
| 3082 | return 0; |
| 3083 | } |
| 3084 | _ACEOF |
| 3085 | rm -f conftest.$ac_objext |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3086 | if { (ac_try="$ac_compile" |
| 3087 | case "(($ac_try" in |
| 3088 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3089 | *) ac_try_echo=$ac_try;; |
| 3090 | esac |
| 3091 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3092 | (eval "$ac_compile") 2>conftest.er1 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3093 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3094 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3095 | rm -f conftest.er1 |
| 3096 | cat conftest.err >&5 |
| 3097 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3098 | (exit $ac_status); } && { |
| 3099 | test -z "$ac_cxx_werror_flag" || |
| 3100 | test ! -s conftest.err |
| 3101 | } && test -s conftest.$ac_objext; then |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3102 | ac_cv_prog_cxx_g=yes |
| 3103 | else |
| 3104 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3105 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3106 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3107 | CXXFLAGS="" |
| 3108 | cat >conftest.$ac_ext <<_ACEOF |
| 3109 | /* confdefs.h. */ |
| 3110 | _ACEOF |
| 3111 | cat confdefs.h >>conftest.$ac_ext |
| 3112 | cat >>conftest.$ac_ext <<_ACEOF |
| 3113 | /* end confdefs.h. */ |
| 3114 | |
| 3115 | int |
| 3116 | main () |
| 3117 | { |
| 3118 | |
| 3119 | ; |
| 3120 | return 0; |
| 3121 | } |
| 3122 | _ACEOF |
| 3123 | rm -f conftest.$ac_objext |
| 3124 | if { (ac_try="$ac_compile" |
| 3125 | case "(($ac_try" in |
| 3126 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3127 | *) ac_try_echo=$ac_try;; |
| 3128 | esac |
| 3129 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3130 | (eval "$ac_compile") 2>conftest.er1 |
| 3131 | ac_status=$? |
| 3132 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3133 | rm -f conftest.er1 |
| 3134 | cat conftest.err >&5 |
| 3135 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3136 | (exit $ac_status); } && { |
| 3137 | test -z "$ac_cxx_werror_flag" || |
| 3138 | test ! -s conftest.err |
| 3139 | } && test -s conftest.$ac_objext; then |
| 3140 | : |
| 3141 | else |
| 3142 | echo "$as_me: failed program was:" >&5 |
| 3143 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3144 | |
| 3145 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
| 3146 | CXXFLAGS="-g" |
| 3147 | cat >conftest.$ac_ext <<_ACEOF |
| 3148 | /* confdefs.h. */ |
| 3149 | _ACEOF |
| 3150 | cat confdefs.h >>conftest.$ac_ext |
| 3151 | cat >>conftest.$ac_ext <<_ACEOF |
| 3152 | /* end confdefs.h. */ |
| 3153 | |
| 3154 | int |
| 3155 | main () |
| 3156 | { |
| 3157 | |
| 3158 | ; |
| 3159 | return 0; |
| 3160 | } |
| 3161 | _ACEOF |
| 3162 | rm -f conftest.$ac_objext |
| 3163 | if { (ac_try="$ac_compile" |
| 3164 | case "(($ac_try" in |
| 3165 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3166 | *) ac_try_echo=$ac_try;; |
| 3167 | esac |
| 3168 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3169 | (eval "$ac_compile") 2>conftest.er1 |
| 3170 | ac_status=$? |
| 3171 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3172 | rm -f conftest.er1 |
| 3173 | cat conftest.err >&5 |
| 3174 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3175 | (exit $ac_status); } && { |
| 3176 | test -z "$ac_cxx_werror_flag" || |
| 3177 | test ! -s conftest.err |
| 3178 | } && test -s conftest.$ac_objext; then |
| 3179 | ac_cv_prog_cxx_g=yes |
| 3180 | else |
| 3181 | echo "$as_me: failed program was:" >&5 |
| 3182 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3183 | |
| 3184 | |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3185 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3186 | |
| 3187 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3188 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3189 | |
| 3190 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3191 | fi |
| 3192 | |
| 3193 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3194 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
| 3195 | fi |
| 3196 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 |
| 3197 | echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; } |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3198 | if test "$ac_test_CXXFLAGS" = set; then |
| 3199 | CXXFLAGS=$ac_save_CXXFLAGS |
| 3200 | elif test $ac_cv_prog_cxx_g = yes; then |
| 3201 | if test "$GXX" = yes; then |
| 3202 | CXXFLAGS="-g -O2" |
| 3203 | else |
| 3204 | CXXFLAGS="-g" |
| 3205 | fi |
| 3206 | else |
| 3207 | if test "$GXX" = yes; then |
| 3208 | CXXFLAGS="-O2" |
| 3209 | else |
| 3210 | CXXFLAGS= |
| 3211 | fi |
| 3212 | fi |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 3213 | ac_ext=c |
| 3214 | ac_cpp='$CPP $CPPFLAGS' |
| 3215 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3216 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3217 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3218 | |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3219 | ac_ext=c |
| 3220 | ac_cpp='$CPP $CPPFLAGS' |
| 3221 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3222 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3223 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3224 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3225 | |
| 3226 | |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 3227 | |
Benny Prijono | 53847a3 | 2007-09-24 16:10:13 +0000 | [diff] [blame] | 3228 | case $target in |
| 3229 | *mingw* | *cygw* | *win32* | *w32* ) |
| 3230 | ac_pjdir=`pwd -W` |
| 3231 | ;; |
| 3232 | *) |
| 3233 | ac_pjdir=`pwd` |
| 3234 | ;; |
| 3235 | esac |
Benny Prijono | 1248311 | 2007-03-12 10:44:38 +0000 | [diff] [blame] | 3236 | |
| 3237 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3238 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3239 | { echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5 |
| 3240 | echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; } |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3241 | if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then |
| 3242 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3243 | else |
| 3244 | ac_check_lib_save_LIBS=$LIBS |
| 3245 | LIBS="-lpthread $LIBS" |
| 3246 | cat >conftest.$ac_ext <<_ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3247 | /* confdefs.h. */ |
| 3248 | _ACEOF |
| 3249 | cat confdefs.h >>conftest.$ac_ext |
| 3250 | cat >>conftest.$ac_ext <<_ACEOF |
| 3251 | /* end confdefs.h. */ |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3252 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3253 | /* Override any GCC internal prototype to avoid an error. |
| 3254 | Use char because int might match the return type of a GCC |
| 3255 | builtin and then its argument prototype would still apply. */ |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3256 | #ifdef __cplusplus |
| 3257 | extern "C" |
| 3258 | #endif |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3259 | char pthread_create (); |
| 3260 | int |
| 3261 | main () |
| 3262 | { |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3263 | return pthread_create (); |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3264 | ; |
| 3265 | return 0; |
| 3266 | } |
| 3267 | _ACEOF |
| 3268 | rm -f conftest.$ac_objext conftest$ac_exeext |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3269 | if { (ac_try="$ac_link" |
| 3270 | case "(($ac_try" in |
| 3271 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3272 | *) ac_try_echo=$ac_try;; |
| 3273 | esac |
| 3274 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3275 | (eval "$ac_link") 2>conftest.er1 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3276 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3277 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3278 | rm -f conftest.er1 |
| 3279 | cat conftest.err >&5 |
| 3280 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3281 | (exit $ac_status); } && { |
| 3282 | test -z "$ac_c_werror_flag" || |
| 3283 | test ! -s conftest.err |
| 3284 | } && test -s conftest$ac_exeext && |
| 3285 | $as_test_x conftest$ac_exeext; then |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3286 | ac_cv_lib_pthread_pthread_create=yes |
| 3287 | else |
| 3288 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3289 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3290 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3291 | ac_cv_lib_pthread_pthread_create=no |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3292 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3293 | |
| 3294 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3295 | conftest$ac_exeext conftest.$ac_ext |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3296 | LIBS=$ac_check_lib_save_LIBS |
| 3297 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3298 | { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5 |
| 3299 | echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6; } |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3300 | if test $ac_cv_lib_pthread_pthread_create = yes; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3301 | cat >>confdefs.h <<_ACEOF |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3302 | #define HAVE_LIBPTHREAD 1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3303 | _ACEOF |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3304 | |
| 3305 | LIBS="-lpthread $LIBS" |
| 3306 | |
| 3307 | fi |
| 3308 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3309 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3310 | { echo "$as_me:$LINENO: checking for puts in -lwsock32" >&5 |
| 3311 | echo $ECHO_N "checking for puts in -lwsock32... $ECHO_C" >&6; } |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3312 | if test "${ac_cv_lib_wsock32_puts+set}" = set; then |
| 3313 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3314 | else |
| 3315 | ac_check_lib_save_LIBS=$LIBS |
| 3316 | LIBS="-lwsock32 $LIBS" |
| 3317 | cat >conftest.$ac_ext <<_ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3318 | /* confdefs.h. */ |
| 3319 | _ACEOF |
| 3320 | cat confdefs.h >>conftest.$ac_ext |
| 3321 | cat >>conftest.$ac_ext <<_ACEOF |
| 3322 | /* end confdefs.h. */ |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3323 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3324 | /* Override any GCC internal prototype to avoid an error. |
| 3325 | Use char because int might match the return type of a GCC |
| 3326 | builtin and then its argument prototype would still apply. */ |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3327 | #ifdef __cplusplus |
| 3328 | extern "C" |
| 3329 | #endif |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3330 | char puts (); |
| 3331 | int |
| 3332 | main () |
| 3333 | { |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3334 | return puts (); |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3335 | ; |
| 3336 | return 0; |
| 3337 | } |
| 3338 | _ACEOF |
| 3339 | rm -f conftest.$ac_objext conftest$ac_exeext |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3340 | if { (ac_try="$ac_link" |
| 3341 | case "(($ac_try" in |
| 3342 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3343 | *) ac_try_echo=$ac_try;; |
| 3344 | esac |
| 3345 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3346 | (eval "$ac_link") 2>conftest.er1 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3347 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3348 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3349 | rm -f conftest.er1 |
| 3350 | cat conftest.err >&5 |
| 3351 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3352 | (exit $ac_status); } && { |
| 3353 | test -z "$ac_c_werror_flag" || |
| 3354 | test ! -s conftest.err |
| 3355 | } && test -s conftest$ac_exeext && |
| 3356 | $as_test_x conftest$ac_exeext; then |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3357 | ac_cv_lib_wsock32_puts=yes |
| 3358 | else |
| 3359 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3360 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3361 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3362 | ac_cv_lib_wsock32_puts=no |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3363 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3364 | |
| 3365 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3366 | conftest$ac_exeext conftest.$ac_ext |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3367 | LIBS=$ac_check_lib_save_LIBS |
| 3368 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3369 | { echo "$as_me:$LINENO: result: $ac_cv_lib_wsock32_puts" >&5 |
| 3370 | echo "${ECHO_T}$ac_cv_lib_wsock32_puts" >&6; } |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3371 | if test $ac_cv_lib_wsock32_puts = yes; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3372 | cat >>confdefs.h <<_ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3373 | #define HAVE_LIBWSOCK32 1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3374 | _ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3375 | |
| 3376 | LIBS="-lwsock32 $LIBS" |
| 3377 | |
| 3378 | fi |
| 3379 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3380 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3381 | { echo "$as_me:$LINENO: checking for puts in -lws2_32" >&5 |
| 3382 | echo $ECHO_N "checking for puts in -lws2_32... $ECHO_C" >&6; } |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3383 | if test "${ac_cv_lib_ws2_32_puts+set}" = set; then |
| 3384 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3385 | else |
| 3386 | ac_check_lib_save_LIBS=$LIBS |
| 3387 | LIBS="-lws2_32 $LIBS" |
| 3388 | cat >conftest.$ac_ext <<_ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3389 | /* confdefs.h. */ |
| 3390 | _ACEOF |
| 3391 | cat confdefs.h >>conftest.$ac_ext |
| 3392 | cat >>conftest.$ac_ext <<_ACEOF |
| 3393 | /* end confdefs.h. */ |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3394 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3395 | /* Override any GCC internal prototype to avoid an error. |
| 3396 | Use char because int might match the return type of a GCC |
| 3397 | builtin and then its argument prototype would still apply. */ |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3398 | #ifdef __cplusplus |
| 3399 | extern "C" |
| 3400 | #endif |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3401 | char puts (); |
| 3402 | int |
| 3403 | main () |
| 3404 | { |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3405 | return puts (); |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3406 | ; |
| 3407 | return 0; |
| 3408 | } |
| 3409 | _ACEOF |
| 3410 | rm -f conftest.$ac_objext conftest$ac_exeext |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3411 | if { (ac_try="$ac_link" |
| 3412 | case "(($ac_try" in |
| 3413 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3414 | *) ac_try_echo=$ac_try;; |
| 3415 | esac |
| 3416 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3417 | (eval "$ac_link") 2>conftest.er1 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3418 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3419 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3420 | rm -f conftest.er1 |
| 3421 | cat conftest.err >&5 |
| 3422 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3423 | (exit $ac_status); } && { |
| 3424 | test -z "$ac_c_werror_flag" || |
| 3425 | test ! -s conftest.err |
| 3426 | } && test -s conftest$ac_exeext && |
| 3427 | $as_test_x conftest$ac_exeext; then |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3428 | ac_cv_lib_ws2_32_puts=yes |
| 3429 | else |
| 3430 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3431 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3432 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3433 | ac_cv_lib_ws2_32_puts=no |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3434 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3435 | |
| 3436 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3437 | conftest$ac_exeext conftest.$ac_ext |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3438 | LIBS=$ac_check_lib_save_LIBS |
| 3439 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3440 | { echo "$as_me:$LINENO: result: $ac_cv_lib_ws2_32_puts" >&5 |
| 3441 | echo "${ECHO_T}$ac_cv_lib_ws2_32_puts" >&6; } |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3442 | if test $ac_cv_lib_ws2_32_puts = yes; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3443 | cat >>confdefs.h <<_ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3444 | #define HAVE_LIBWS2_32 1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3445 | _ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3446 | |
| 3447 | LIBS="-lws2_32 $LIBS" |
| 3448 | |
| 3449 | fi |
| 3450 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3451 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3452 | { echo "$as_me:$LINENO: checking for puts in -lole32" >&5 |
| 3453 | echo $ECHO_N "checking for puts in -lole32... $ECHO_C" >&6; } |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3454 | if test "${ac_cv_lib_ole32_puts+set}" = set; then |
| 3455 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3456 | else |
| 3457 | ac_check_lib_save_LIBS=$LIBS |
| 3458 | LIBS="-lole32 $LIBS" |
| 3459 | cat >conftest.$ac_ext <<_ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3460 | /* confdefs.h. */ |
| 3461 | _ACEOF |
| 3462 | cat confdefs.h >>conftest.$ac_ext |
| 3463 | cat >>conftest.$ac_ext <<_ACEOF |
| 3464 | /* end confdefs.h. */ |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3465 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3466 | /* Override any GCC internal prototype to avoid an error. |
| 3467 | Use char because int might match the return type of a GCC |
| 3468 | builtin and then its argument prototype would still apply. */ |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3469 | #ifdef __cplusplus |
| 3470 | extern "C" |
| 3471 | #endif |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3472 | char puts (); |
| 3473 | int |
| 3474 | main () |
| 3475 | { |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3476 | return puts (); |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3477 | ; |
| 3478 | return 0; |
| 3479 | } |
| 3480 | _ACEOF |
| 3481 | rm -f conftest.$ac_objext conftest$ac_exeext |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3482 | if { (ac_try="$ac_link" |
| 3483 | case "(($ac_try" in |
| 3484 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3485 | *) ac_try_echo=$ac_try;; |
| 3486 | esac |
| 3487 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3488 | (eval "$ac_link") 2>conftest.er1 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3489 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3490 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3491 | rm -f conftest.er1 |
| 3492 | cat conftest.err >&5 |
| 3493 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3494 | (exit $ac_status); } && { |
| 3495 | test -z "$ac_c_werror_flag" || |
| 3496 | test ! -s conftest.err |
| 3497 | } && test -s conftest$ac_exeext && |
| 3498 | $as_test_x conftest$ac_exeext; then |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3499 | ac_cv_lib_ole32_puts=yes |
| 3500 | else |
| 3501 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3502 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3503 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3504 | ac_cv_lib_ole32_puts=no |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3505 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3506 | |
| 3507 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3508 | conftest$ac_exeext conftest.$ac_ext |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3509 | LIBS=$ac_check_lib_save_LIBS |
| 3510 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3511 | { echo "$as_me:$LINENO: result: $ac_cv_lib_ole32_puts" >&5 |
| 3512 | echo "${ECHO_T}$ac_cv_lib_ole32_puts" >&6; } |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3513 | if test $ac_cv_lib_ole32_puts = yes; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3514 | cat >>confdefs.h <<_ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3515 | #define HAVE_LIBOLE32 1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3516 | _ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3517 | |
| 3518 | LIBS="-lole32 $LIBS" |
| 3519 | |
| 3520 | fi |
| 3521 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3522 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3523 | { echo "$as_me:$LINENO: checking for puts in -lwinmm" >&5 |
| 3524 | echo $ECHO_N "checking for puts in -lwinmm... $ECHO_C" >&6; } |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3525 | if test "${ac_cv_lib_winmm_puts+set}" = set; then |
| 3526 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3527 | else |
| 3528 | ac_check_lib_save_LIBS=$LIBS |
| 3529 | LIBS="-lwinmm $LIBS" |
| 3530 | cat >conftest.$ac_ext <<_ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3531 | /* confdefs.h. */ |
| 3532 | _ACEOF |
| 3533 | cat confdefs.h >>conftest.$ac_ext |
| 3534 | cat >>conftest.$ac_ext <<_ACEOF |
| 3535 | /* end confdefs.h. */ |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3536 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3537 | /* Override any GCC internal prototype to avoid an error. |
| 3538 | Use char because int might match the return type of a GCC |
| 3539 | builtin and then its argument prototype would still apply. */ |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3540 | #ifdef __cplusplus |
| 3541 | extern "C" |
| 3542 | #endif |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3543 | char puts (); |
| 3544 | int |
| 3545 | main () |
| 3546 | { |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3547 | return puts (); |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3548 | ; |
| 3549 | return 0; |
| 3550 | } |
| 3551 | _ACEOF |
| 3552 | rm -f conftest.$ac_objext conftest$ac_exeext |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3553 | if { (ac_try="$ac_link" |
| 3554 | case "(($ac_try" in |
| 3555 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3556 | *) ac_try_echo=$ac_try;; |
| 3557 | esac |
| 3558 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3559 | (eval "$ac_link") 2>conftest.er1 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3560 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3561 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3562 | rm -f conftest.er1 |
| 3563 | cat conftest.err >&5 |
| 3564 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3565 | (exit $ac_status); } && { |
| 3566 | test -z "$ac_c_werror_flag" || |
| 3567 | test ! -s conftest.err |
| 3568 | } && test -s conftest$ac_exeext && |
| 3569 | $as_test_x conftest$ac_exeext; then |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3570 | ac_cv_lib_winmm_puts=yes |
| 3571 | else |
| 3572 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3573 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3574 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3575 | ac_cv_lib_winmm_puts=no |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3576 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3577 | |
| 3578 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3579 | conftest$ac_exeext conftest.$ac_ext |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3580 | LIBS=$ac_check_lib_save_LIBS |
| 3581 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3582 | { echo "$as_me:$LINENO: result: $ac_cv_lib_winmm_puts" >&5 |
| 3583 | echo "${ECHO_T}$ac_cv_lib_winmm_puts" >&6; } |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3584 | if test $ac_cv_lib_winmm_puts = yes; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3585 | cat >>confdefs.h <<_ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3586 | #define HAVE_LIBWINMM 1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3587 | _ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3588 | |
| 3589 | LIBS="-lwinmm $LIBS" |
| 3590 | |
| 3591 | fi |
| 3592 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3593 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3594 | { echo "$as_me:$LINENO: checking for puts in -lsocket" >&5 |
| 3595 | echo $ECHO_N "checking for puts in -lsocket... $ECHO_C" >&6; } |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3596 | if test "${ac_cv_lib_socket_puts+set}" = set; then |
| 3597 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3598 | else |
| 3599 | ac_check_lib_save_LIBS=$LIBS |
| 3600 | LIBS="-lsocket $LIBS" |
| 3601 | cat >conftest.$ac_ext <<_ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3602 | /* confdefs.h. */ |
| 3603 | _ACEOF |
| 3604 | cat confdefs.h >>conftest.$ac_ext |
| 3605 | cat >>conftest.$ac_ext <<_ACEOF |
| 3606 | /* end confdefs.h. */ |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3607 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3608 | /* Override any GCC internal prototype to avoid an error. |
| 3609 | Use char because int might match the return type of a GCC |
| 3610 | builtin and then its argument prototype would still apply. */ |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3611 | #ifdef __cplusplus |
| 3612 | extern "C" |
| 3613 | #endif |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3614 | char puts (); |
| 3615 | int |
| 3616 | main () |
| 3617 | { |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3618 | return puts (); |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3619 | ; |
| 3620 | return 0; |
| 3621 | } |
| 3622 | _ACEOF |
| 3623 | rm -f conftest.$ac_objext conftest$ac_exeext |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3624 | if { (ac_try="$ac_link" |
| 3625 | case "(($ac_try" in |
| 3626 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3627 | *) ac_try_echo=$ac_try;; |
| 3628 | esac |
| 3629 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3630 | (eval "$ac_link") 2>conftest.er1 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3631 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3632 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3633 | rm -f conftest.er1 |
| 3634 | cat conftest.err >&5 |
| 3635 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3636 | (exit $ac_status); } && { |
| 3637 | test -z "$ac_c_werror_flag" || |
| 3638 | test ! -s conftest.err |
| 3639 | } && test -s conftest$ac_exeext && |
| 3640 | $as_test_x conftest$ac_exeext; then |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3641 | ac_cv_lib_socket_puts=yes |
| 3642 | else |
| 3643 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3644 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3645 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3646 | ac_cv_lib_socket_puts=no |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3647 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3648 | |
| 3649 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3650 | conftest$ac_exeext conftest.$ac_ext |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3651 | LIBS=$ac_check_lib_save_LIBS |
| 3652 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3653 | { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_puts" >&5 |
| 3654 | echo "${ECHO_T}$ac_cv_lib_socket_puts" >&6; } |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3655 | if test $ac_cv_lib_socket_puts = yes; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3656 | cat >>confdefs.h <<_ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3657 | #define HAVE_LIBSOCKET 1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3658 | _ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3659 | |
| 3660 | LIBS="-lsocket $LIBS" |
| 3661 | |
| 3662 | fi |
| 3663 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3664 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3665 | { echo "$as_me:$LINENO: checking for puts in -lrt" >&5 |
| 3666 | echo $ECHO_N "checking for puts in -lrt... $ECHO_C" >&6; } |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3667 | if test "${ac_cv_lib_rt_puts+set}" = set; then |
| 3668 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3669 | else |
| 3670 | ac_check_lib_save_LIBS=$LIBS |
| 3671 | LIBS="-lrt $LIBS" |
| 3672 | cat >conftest.$ac_ext <<_ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3673 | /* confdefs.h. */ |
| 3674 | _ACEOF |
| 3675 | cat confdefs.h >>conftest.$ac_ext |
| 3676 | cat >>conftest.$ac_ext <<_ACEOF |
| 3677 | /* end confdefs.h. */ |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3678 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3679 | /* Override any GCC internal prototype to avoid an error. |
| 3680 | Use char because int might match the return type of a GCC |
| 3681 | builtin and then its argument prototype would still apply. */ |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3682 | #ifdef __cplusplus |
| 3683 | extern "C" |
| 3684 | #endif |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3685 | char puts (); |
| 3686 | int |
| 3687 | main () |
| 3688 | { |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3689 | return puts (); |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3690 | ; |
| 3691 | return 0; |
| 3692 | } |
| 3693 | _ACEOF |
| 3694 | rm -f conftest.$ac_objext conftest$ac_exeext |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3695 | if { (ac_try="$ac_link" |
| 3696 | case "(($ac_try" in |
| 3697 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3698 | *) ac_try_echo=$ac_try;; |
| 3699 | esac |
| 3700 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3701 | (eval "$ac_link") 2>conftest.er1 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3702 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3703 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3704 | rm -f conftest.er1 |
| 3705 | cat conftest.err >&5 |
| 3706 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3707 | (exit $ac_status); } && { |
| 3708 | test -z "$ac_c_werror_flag" || |
| 3709 | test ! -s conftest.err |
| 3710 | } && test -s conftest$ac_exeext && |
| 3711 | $as_test_x conftest$ac_exeext; then |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3712 | ac_cv_lib_rt_puts=yes |
| 3713 | else |
| 3714 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3715 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3716 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3717 | ac_cv_lib_rt_puts=no |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3718 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3719 | |
| 3720 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3721 | conftest$ac_exeext conftest.$ac_ext |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3722 | LIBS=$ac_check_lib_save_LIBS |
| 3723 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3724 | { echo "$as_me:$LINENO: result: $ac_cv_lib_rt_puts" >&5 |
| 3725 | echo "${ECHO_T}$ac_cv_lib_rt_puts" >&6; } |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3726 | if test $ac_cv_lib_rt_puts = yes; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3727 | cat >>confdefs.h <<_ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3728 | #define HAVE_LIBRT 1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3729 | _ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3730 | |
| 3731 | LIBS="-lrt $LIBS" |
| 3732 | |
| 3733 | fi |
| 3734 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3735 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3736 | { echo "$as_me:$LINENO: checking for puts in -lnsl" >&5 |
| 3737 | echo $ECHO_N "checking for puts in -lnsl... $ECHO_C" >&6; } |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3738 | if test "${ac_cv_lib_nsl_puts+set}" = set; then |
| 3739 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3740 | else |
| 3741 | ac_check_lib_save_LIBS=$LIBS |
| 3742 | LIBS="-lnsl $LIBS" |
| 3743 | cat >conftest.$ac_ext <<_ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3744 | /* confdefs.h. */ |
| 3745 | _ACEOF |
| 3746 | cat confdefs.h >>conftest.$ac_ext |
| 3747 | cat >>conftest.$ac_ext <<_ACEOF |
| 3748 | /* end confdefs.h. */ |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3749 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3750 | /* Override any GCC internal prototype to avoid an error. |
| 3751 | Use char because int might match the return type of a GCC |
| 3752 | builtin and then its argument prototype would still apply. */ |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3753 | #ifdef __cplusplus |
| 3754 | extern "C" |
| 3755 | #endif |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3756 | char puts (); |
| 3757 | int |
| 3758 | main () |
| 3759 | { |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3760 | return puts (); |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3761 | ; |
| 3762 | return 0; |
| 3763 | } |
| 3764 | _ACEOF |
| 3765 | rm -f conftest.$ac_objext conftest$ac_exeext |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3766 | if { (ac_try="$ac_link" |
| 3767 | case "(($ac_try" in |
| 3768 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3769 | *) ac_try_echo=$ac_try;; |
| 3770 | esac |
| 3771 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3772 | (eval "$ac_link") 2>conftest.er1 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3773 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3774 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3775 | rm -f conftest.er1 |
| 3776 | cat conftest.err >&5 |
| 3777 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3778 | (exit $ac_status); } && { |
| 3779 | test -z "$ac_c_werror_flag" || |
| 3780 | test ! -s conftest.err |
| 3781 | } && test -s conftest$ac_exeext && |
| 3782 | $as_test_x conftest$ac_exeext; then |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3783 | ac_cv_lib_nsl_puts=yes |
| 3784 | else |
| 3785 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3786 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3787 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3788 | ac_cv_lib_nsl_puts=no |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3789 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3790 | |
| 3791 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3792 | conftest$ac_exeext conftest.$ac_ext |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3793 | LIBS=$ac_check_lib_save_LIBS |
| 3794 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3795 | { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_puts" >&5 |
| 3796 | echo "${ECHO_T}$ac_cv_lib_nsl_puts" >&6; } |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3797 | if test $ac_cv_lib_nsl_puts = yes; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3798 | cat >>confdefs.h <<_ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3799 | #define HAVE_LIBNSL 1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3800 | _ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3801 | |
| 3802 | LIBS="-lnsl $LIBS" |
| 3803 | |
| 3804 | fi |
| 3805 | |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3806 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3807 | { echo "$as_me:$LINENO: checking for uuid_generate in -luuid" >&5 |
| 3808 | echo $ECHO_N "checking for uuid_generate in -luuid... $ECHO_C" >&6; } |
Benny Prijono | 4e48b51 | 2007-05-16 13:41:00 +0000 | [diff] [blame] | 3809 | if test "${ac_cv_lib_uuid_uuid_generate+set}" = set; then |
| 3810 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3811 | else |
| 3812 | ac_check_lib_save_LIBS=$LIBS |
| 3813 | LIBS="-luuid $LIBS" |
| 3814 | cat >conftest.$ac_ext <<_ACEOF |
| 3815 | /* confdefs.h. */ |
| 3816 | _ACEOF |
| 3817 | cat confdefs.h >>conftest.$ac_ext |
| 3818 | cat >>conftest.$ac_ext <<_ACEOF |
| 3819 | /* end confdefs.h. */ |
| 3820 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3821 | /* Override any GCC internal prototype to avoid an error. |
| 3822 | Use char because int might match the return type of a GCC |
| 3823 | builtin and then its argument prototype would still apply. */ |
Benny Prijono | 4e48b51 | 2007-05-16 13:41:00 +0000 | [diff] [blame] | 3824 | #ifdef __cplusplus |
| 3825 | extern "C" |
| 3826 | #endif |
Benny Prijono | 4e48b51 | 2007-05-16 13:41:00 +0000 | [diff] [blame] | 3827 | char uuid_generate (); |
| 3828 | int |
| 3829 | main () |
| 3830 | { |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3831 | return uuid_generate (); |
Benny Prijono | 4e48b51 | 2007-05-16 13:41:00 +0000 | [diff] [blame] | 3832 | ; |
| 3833 | return 0; |
| 3834 | } |
| 3835 | _ACEOF |
| 3836 | rm -f conftest.$ac_objext conftest$ac_exeext |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3837 | if { (ac_try="$ac_link" |
| 3838 | case "(($ac_try" in |
| 3839 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3840 | *) ac_try_echo=$ac_try;; |
| 3841 | esac |
| 3842 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3843 | (eval "$ac_link") 2>conftest.er1 |
Benny Prijono | 4e48b51 | 2007-05-16 13:41:00 +0000 | [diff] [blame] | 3844 | ac_status=$? |
| 3845 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3846 | rm -f conftest.er1 |
| 3847 | cat conftest.err >&5 |
| 3848 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3849 | (exit $ac_status); } && { |
| 3850 | test -z "$ac_c_werror_flag" || |
| 3851 | test ! -s conftest.err |
| 3852 | } && test -s conftest$ac_exeext && |
| 3853 | $as_test_x conftest$ac_exeext; then |
Benny Prijono | 4e48b51 | 2007-05-16 13:41:00 +0000 | [diff] [blame] | 3854 | ac_cv_lib_uuid_uuid_generate=yes |
| 3855 | else |
| 3856 | echo "$as_me: failed program was:" >&5 |
| 3857 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3858 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3859 | ac_cv_lib_uuid_uuid_generate=no |
Benny Prijono | 4e48b51 | 2007-05-16 13:41:00 +0000 | [diff] [blame] | 3860 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3861 | |
| 3862 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Benny Prijono | 4e48b51 | 2007-05-16 13:41:00 +0000 | [diff] [blame] | 3863 | conftest$ac_exeext conftest.$ac_ext |
| 3864 | LIBS=$ac_check_lib_save_LIBS |
| 3865 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3866 | { echo "$as_me:$LINENO: result: $ac_cv_lib_uuid_uuid_generate" >&5 |
| 3867 | echo "${ECHO_T}$ac_cv_lib_uuid_uuid_generate" >&6; } |
Benny Prijono | 4e48b51 | 2007-05-16 13:41:00 +0000 | [diff] [blame] | 3868 | if test $ac_cv_lib_uuid_uuid_generate = yes; then |
| 3869 | cat >>confdefs.h <<_ACEOF |
| 3870 | #define HAVE_LIBUUID 1 |
| 3871 | _ACEOF |
| 3872 | |
| 3873 | LIBS="-luuid $LIBS" |
| 3874 | |
| 3875 | fi |
| 3876 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3877 | { echo "$as_me:$LINENO: checking for uuid_generate in -luuid" >&5 |
| 3878 | echo $ECHO_N "checking for uuid_generate in -luuid... $ECHO_C" >&6; } |
Benny Prijono | 4e48b51 | 2007-05-16 13:41:00 +0000 | [diff] [blame] | 3879 | if test "${ac_cv_lib_uuid_uuid_generate+set}" = set; then |
| 3880 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3881 | else |
| 3882 | ac_check_lib_save_LIBS=$LIBS |
| 3883 | LIBS="-luuid $LIBS" |
| 3884 | cat >conftest.$ac_ext <<_ACEOF |
| 3885 | /* confdefs.h. */ |
| 3886 | _ACEOF |
| 3887 | cat confdefs.h >>conftest.$ac_ext |
| 3888 | cat >>conftest.$ac_ext <<_ACEOF |
| 3889 | /* end confdefs.h. */ |
| 3890 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3891 | /* Override any GCC internal prototype to avoid an error. |
| 3892 | Use char because int might match the return type of a GCC |
| 3893 | builtin and then its argument prototype would still apply. */ |
Benny Prijono | 4e48b51 | 2007-05-16 13:41:00 +0000 | [diff] [blame] | 3894 | #ifdef __cplusplus |
| 3895 | extern "C" |
| 3896 | #endif |
Benny Prijono | 4e48b51 | 2007-05-16 13:41:00 +0000 | [diff] [blame] | 3897 | char uuid_generate (); |
| 3898 | int |
| 3899 | main () |
| 3900 | { |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3901 | return uuid_generate (); |
Benny Prijono | 4e48b51 | 2007-05-16 13:41:00 +0000 | [diff] [blame] | 3902 | ; |
| 3903 | return 0; |
| 3904 | } |
| 3905 | _ACEOF |
| 3906 | rm -f conftest.$ac_objext conftest$ac_exeext |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3907 | if { (ac_try="$ac_link" |
| 3908 | case "(($ac_try" in |
| 3909 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3910 | *) ac_try_echo=$ac_try;; |
| 3911 | esac |
| 3912 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3913 | (eval "$ac_link") 2>conftest.er1 |
Benny Prijono | 4e48b51 | 2007-05-16 13:41:00 +0000 | [diff] [blame] | 3914 | ac_status=$? |
| 3915 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3916 | rm -f conftest.er1 |
| 3917 | cat conftest.err >&5 |
| 3918 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3919 | (exit $ac_status); } && { |
| 3920 | test -z "$ac_c_werror_flag" || |
| 3921 | test ! -s conftest.err |
| 3922 | } && test -s conftest$ac_exeext && |
| 3923 | $as_test_x conftest$ac_exeext; then |
Benny Prijono | 4e48b51 | 2007-05-16 13:41:00 +0000 | [diff] [blame] | 3924 | ac_cv_lib_uuid_uuid_generate=yes |
| 3925 | else |
| 3926 | echo "$as_me: failed program was:" >&5 |
| 3927 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3928 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3929 | ac_cv_lib_uuid_uuid_generate=no |
Benny Prijono | 4e48b51 | 2007-05-16 13:41:00 +0000 | [diff] [blame] | 3930 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3931 | |
| 3932 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Benny Prijono | 4e48b51 | 2007-05-16 13:41:00 +0000 | [diff] [blame] | 3933 | conftest$ac_exeext conftest.$ac_ext |
| 3934 | LIBS=$ac_check_lib_save_LIBS |
| 3935 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3936 | { echo "$as_me:$LINENO: result: $ac_cv_lib_uuid_uuid_generate" >&5 |
| 3937 | echo "${ECHO_T}$ac_cv_lib_uuid_uuid_generate" >&6; } |
Benny Prijono | 4e48b51 | 2007-05-16 13:41:00 +0000 | [diff] [blame] | 3938 | if test $ac_cv_lib_uuid_uuid_generate = yes; then |
| 3939 | ac_has_uuid_lib=1 |
| 3940 | fi |
| 3941 | |
| 3942 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3943 | { echo "$as_me:$LINENO: result: Setting PJ_M_NAME to $target_cpu" >&5 |
| 3944 | echo "${ECHO_T}Setting PJ_M_NAME to $target_cpu" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3945 | cat >>confdefs.h <<_ACEOF |
| 3946 | #define PJ_M_NAME "$target_cpu" |
| 3947 | _ACEOF |
| 3948 | |
| 3949 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3950 | { echo "$as_me:$LINENO: checking memory alignment" >&5 |
| 3951 | echo $ECHO_N "checking memory alignment... $ECHO_C" >&6; } |
Benny Prijono | 1d97162 | 2006-09-10 22:27:40 +0000 | [diff] [blame] | 3952 | case $target in |
| 3953 | ia64-* | x86_64-* ) |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3954 | cat >>confdefs.h <<\_ACEOF |
Benny Prijono | 1d97162 | 2006-09-10 22:27:40 +0000 | [diff] [blame] | 3955 | #define PJ_POOL_ALIGNMENT 8 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3956 | _ACEOF |
Benny Prijono | 1d97162 | 2006-09-10 22:27:40 +0000 | [diff] [blame] | 3957 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3958 | { echo "$as_me:$LINENO: result: 8 bytes" >&5 |
| 3959 | echo "${ECHO_T}8 bytes" >&6; } |
Benny Prijono | 1d97162 | 2006-09-10 22:27:40 +0000 | [diff] [blame] | 3960 | ;; |
| 3961 | * ) |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3962 | cat >>confdefs.h <<\_ACEOF |
Benny Prijono | 1d97162 | 2006-09-10 22:27:40 +0000 | [diff] [blame] | 3963 | #define PJ_POOL_ALIGNMENT 4 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3964 | _ACEOF |
Benny Prijono | 1d97162 | 2006-09-10 22:27:40 +0000 | [diff] [blame] | 3965 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3966 | { echo "$as_me:$LINENO: result: 4 bytes (default)" >&5 |
| 3967 | echo "${ECHO_T}4 bytes (default)" >&6; } |
Benny Prijono | 1d97162 | 2006-09-10 22:27:40 +0000 | [diff] [blame] | 3968 | ;; |
| 3969 | esac |
| 3970 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3971 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3972 | ac_ext=c |
| 3973 | ac_cpp='$CPP $CPPFLAGS' |
| 3974 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3975 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3976 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3977 | { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
| 3978 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; } |
| 3979 | # On Suns, sometimes $CPP names a directory. |
| 3980 | if test -n "$CPP" && test -d "$CPP"; then |
| 3981 | CPP= |
| 3982 | fi |
| 3983 | if test -z "$CPP"; then |
| 3984 | if test "${ac_cv_prog_CPP+set}" = set; then |
| 3985 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3986 | else |
| 3987 | # Double quotes because CPP needs to be expanded |
| 3988 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
| 3989 | do |
| 3990 | ac_preproc_ok=false |
| 3991 | for ac_c_preproc_warn_flag in '' yes |
| 3992 | do |
| 3993 | # Use a header file that comes with gcc, so configuring glibc |
| 3994 | # with a fresh cross-compiler works. |
| 3995 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 3996 | # <limits.h> exists even on freestanding compilers. |
| 3997 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 3998 | # not just through cpp. "Syntax error" is here to catch this case. |
| 3999 | cat >conftest.$ac_ext <<_ACEOF |
| 4000 | /* confdefs.h. */ |
| 4001 | _ACEOF |
| 4002 | cat confdefs.h >>conftest.$ac_ext |
| 4003 | cat >>conftest.$ac_ext <<_ACEOF |
| 4004 | /* end confdefs.h. */ |
| 4005 | #ifdef __STDC__ |
| 4006 | # include <limits.h> |
| 4007 | #else |
| 4008 | # include <assert.h> |
| 4009 | #endif |
| 4010 | Syntax error |
| 4011 | _ACEOF |
| 4012 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 4013 | case "(($ac_try" in |
| 4014 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4015 | *) ac_try_echo=$ac_try;; |
| 4016 | esac |
| 4017 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4018 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 4019 | ac_status=$? |
| 4020 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4021 | rm -f conftest.er1 |
| 4022 | cat conftest.err >&5 |
| 4023 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4024 | (exit $ac_status); } >/dev/null && { |
| 4025 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 4026 | test ! -s conftest.err |
| 4027 | }; then |
| 4028 | : |
| 4029 | else |
| 4030 | echo "$as_me: failed program was:" >&5 |
| 4031 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4032 | |
| 4033 | # Broken: fails on valid input. |
| 4034 | continue |
| 4035 | fi |
| 4036 | |
| 4037 | rm -f conftest.err conftest.$ac_ext |
| 4038 | |
| 4039 | # OK, works on sane cases. Now check whether nonexistent headers |
| 4040 | # can be detected and how. |
| 4041 | cat >conftest.$ac_ext <<_ACEOF |
| 4042 | /* confdefs.h. */ |
| 4043 | _ACEOF |
| 4044 | cat confdefs.h >>conftest.$ac_ext |
| 4045 | cat >>conftest.$ac_ext <<_ACEOF |
| 4046 | /* end confdefs.h. */ |
| 4047 | #include <ac_nonexistent.h> |
| 4048 | _ACEOF |
| 4049 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 4050 | case "(($ac_try" in |
| 4051 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4052 | *) ac_try_echo=$ac_try;; |
| 4053 | esac |
| 4054 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4055 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 4056 | ac_status=$? |
| 4057 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4058 | rm -f conftest.er1 |
| 4059 | cat conftest.err >&5 |
| 4060 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4061 | (exit $ac_status); } >/dev/null && { |
| 4062 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 4063 | test ! -s conftest.err |
| 4064 | }; then |
| 4065 | # Broken: success on invalid input. |
| 4066 | continue |
| 4067 | else |
| 4068 | echo "$as_me: failed program was:" >&5 |
| 4069 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4070 | |
| 4071 | # Passes both tests. |
| 4072 | ac_preproc_ok=: |
| 4073 | break |
| 4074 | fi |
| 4075 | |
| 4076 | rm -f conftest.err conftest.$ac_ext |
| 4077 | |
| 4078 | done |
| 4079 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 4080 | rm -f conftest.err conftest.$ac_ext |
| 4081 | if $ac_preproc_ok; then |
| 4082 | break |
| 4083 | fi |
| 4084 | |
| 4085 | done |
| 4086 | ac_cv_prog_CPP=$CPP |
| 4087 | |
| 4088 | fi |
| 4089 | CPP=$ac_cv_prog_CPP |
| 4090 | else |
| 4091 | ac_cv_prog_CPP=$CPP |
| 4092 | fi |
| 4093 | { echo "$as_me:$LINENO: result: $CPP" >&5 |
| 4094 | echo "${ECHO_T}$CPP" >&6; } |
| 4095 | ac_preproc_ok=false |
| 4096 | for ac_c_preproc_warn_flag in '' yes |
| 4097 | do |
| 4098 | # Use a header file that comes with gcc, so configuring glibc |
| 4099 | # with a fresh cross-compiler works. |
| 4100 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 4101 | # <limits.h> exists even on freestanding compilers. |
| 4102 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 4103 | # not just through cpp. "Syntax error" is here to catch this case. |
| 4104 | cat >conftest.$ac_ext <<_ACEOF |
| 4105 | /* confdefs.h. */ |
| 4106 | _ACEOF |
| 4107 | cat confdefs.h >>conftest.$ac_ext |
| 4108 | cat >>conftest.$ac_ext <<_ACEOF |
| 4109 | /* end confdefs.h. */ |
| 4110 | #ifdef __STDC__ |
| 4111 | # include <limits.h> |
| 4112 | #else |
| 4113 | # include <assert.h> |
| 4114 | #endif |
| 4115 | Syntax error |
| 4116 | _ACEOF |
| 4117 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 4118 | case "(($ac_try" in |
| 4119 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4120 | *) ac_try_echo=$ac_try;; |
| 4121 | esac |
| 4122 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4123 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 4124 | ac_status=$? |
| 4125 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4126 | rm -f conftest.er1 |
| 4127 | cat conftest.err >&5 |
| 4128 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4129 | (exit $ac_status); } >/dev/null && { |
| 4130 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 4131 | test ! -s conftest.err |
| 4132 | }; then |
| 4133 | : |
| 4134 | else |
| 4135 | echo "$as_me: failed program was:" >&5 |
| 4136 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4137 | |
| 4138 | # Broken: fails on valid input. |
| 4139 | continue |
| 4140 | fi |
| 4141 | |
| 4142 | rm -f conftest.err conftest.$ac_ext |
| 4143 | |
| 4144 | # OK, works on sane cases. Now check whether nonexistent headers |
| 4145 | # can be detected and how. |
| 4146 | cat >conftest.$ac_ext <<_ACEOF |
| 4147 | /* confdefs.h. */ |
| 4148 | _ACEOF |
| 4149 | cat confdefs.h >>conftest.$ac_ext |
| 4150 | cat >>conftest.$ac_ext <<_ACEOF |
| 4151 | /* end confdefs.h. */ |
| 4152 | #include <ac_nonexistent.h> |
| 4153 | _ACEOF |
| 4154 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 4155 | case "(($ac_try" in |
| 4156 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4157 | *) ac_try_echo=$ac_try;; |
| 4158 | esac |
| 4159 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4160 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 4161 | ac_status=$? |
| 4162 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4163 | rm -f conftest.er1 |
| 4164 | cat conftest.err >&5 |
| 4165 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4166 | (exit $ac_status); } >/dev/null && { |
| 4167 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 4168 | test ! -s conftest.err |
| 4169 | }; then |
| 4170 | # Broken: success on invalid input. |
| 4171 | continue |
| 4172 | else |
| 4173 | echo "$as_me: failed program was:" >&5 |
| 4174 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4175 | |
| 4176 | # Passes both tests. |
| 4177 | ac_preproc_ok=: |
| 4178 | break |
| 4179 | fi |
| 4180 | |
| 4181 | rm -f conftest.err conftest.$ac_ext |
| 4182 | |
| 4183 | done |
| 4184 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 4185 | rm -f conftest.err conftest.$ac_ext |
| 4186 | if $ac_preproc_ok; then |
| 4187 | : |
| 4188 | else |
| 4189 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check |
| 4190 | See \`config.log' for more details." >&5 |
| 4191 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check |
| 4192 | See \`config.log' for more details." >&2;} |
| 4193 | { (exit 1); exit 1; }; } |
| 4194 | fi |
| 4195 | |
| 4196 | ac_ext=c |
| 4197 | ac_cpp='$CPP $CPPFLAGS' |
| 4198 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 4199 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 4200 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 4201 | |
| 4202 | |
| 4203 | { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 |
| 4204 | echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; } |
| 4205 | if test "${ac_cv_path_GREP+set}" = set; then |
| 4206 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4207 | else |
| 4208 | # Extract the first word of "grep ggrep" to use in msg output |
| 4209 | if test -z "$GREP"; then |
| 4210 | set dummy grep ggrep; ac_prog_name=$2 |
| 4211 | if test "${ac_cv_path_GREP+set}" = set; then |
| 4212 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4213 | else |
| 4214 | ac_path_GREP_found=false |
| 4215 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 4216 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4217 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 4218 | do |
| 4219 | IFS=$as_save_IFS |
| 4220 | test -z "$as_dir" && as_dir=. |
| 4221 | for ac_prog in grep ggrep; do |
| 4222 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4223 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" |
| 4224 | { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue |
| 4225 | # Check for GNU ac_path_GREP and select it if it is found. |
| 4226 | # Check for GNU $ac_path_GREP |
| 4227 | case `"$ac_path_GREP" --version 2>&1` in |
| 4228 | *GNU*) |
| 4229 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; |
| 4230 | *) |
| 4231 | ac_count=0 |
| 4232 | echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" |
| 4233 | while : |
| 4234 | do |
| 4235 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 4236 | mv "conftest.tmp" "conftest.in" |
| 4237 | cp "conftest.in" "conftest.nl" |
| 4238 | echo 'GREP' >> "conftest.nl" |
| 4239 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 4240 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
| 4241 | ac_count=`expr $ac_count + 1` |
| 4242 | if test $ac_count -gt ${ac_path_GREP_max-0}; then |
| 4243 | # Best one so far, save it but keep looking for a better one |
| 4244 | ac_cv_path_GREP="$ac_path_GREP" |
| 4245 | ac_path_GREP_max=$ac_count |
| 4246 | fi |
| 4247 | # 10*(2^10) chars as input seems more than enough |
| 4248 | test $ac_count -gt 10 && break |
| 4249 | done |
| 4250 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 4251 | esac |
| 4252 | |
| 4253 | |
| 4254 | $ac_path_GREP_found && break 3 |
| 4255 | done |
| 4256 | done |
| 4257 | |
| 4258 | done |
| 4259 | IFS=$as_save_IFS |
| 4260 | |
| 4261 | |
| 4262 | fi |
| 4263 | |
| 4264 | GREP="$ac_cv_path_GREP" |
| 4265 | if test -z "$GREP"; then |
| 4266 | { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 |
| 4267 | echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} |
| 4268 | { (exit 1); exit 1; }; } |
| 4269 | fi |
| 4270 | |
| 4271 | else |
| 4272 | ac_cv_path_GREP=$GREP |
| 4273 | fi |
| 4274 | |
| 4275 | |
| 4276 | fi |
| 4277 | { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 |
| 4278 | echo "${ECHO_T}$ac_cv_path_GREP" >&6; } |
| 4279 | GREP="$ac_cv_path_GREP" |
| 4280 | |
| 4281 | |
| 4282 | { echo "$as_me:$LINENO: checking for egrep" >&5 |
| 4283 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6; } |
| 4284 | if test "${ac_cv_path_EGREP+set}" = set; then |
| 4285 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4286 | else |
| 4287 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
| 4288 | then ac_cv_path_EGREP="$GREP -E" |
| 4289 | else |
| 4290 | # Extract the first word of "egrep" to use in msg output |
| 4291 | if test -z "$EGREP"; then |
| 4292 | set dummy egrep; ac_prog_name=$2 |
| 4293 | if test "${ac_cv_path_EGREP+set}" = set; then |
| 4294 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4295 | else |
| 4296 | ac_path_EGREP_found=false |
| 4297 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 4298 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4299 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 4300 | do |
| 4301 | IFS=$as_save_IFS |
| 4302 | test -z "$as_dir" && as_dir=. |
| 4303 | for ac_prog in egrep; do |
| 4304 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4305 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" |
| 4306 | { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue |
| 4307 | # Check for GNU ac_path_EGREP and select it if it is found. |
| 4308 | # Check for GNU $ac_path_EGREP |
| 4309 | case `"$ac_path_EGREP" --version 2>&1` in |
| 4310 | *GNU*) |
| 4311 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; |
| 4312 | *) |
| 4313 | ac_count=0 |
| 4314 | echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" |
| 4315 | while : |
| 4316 | do |
| 4317 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 4318 | mv "conftest.tmp" "conftest.in" |
| 4319 | cp "conftest.in" "conftest.nl" |
| 4320 | echo 'EGREP' >> "conftest.nl" |
| 4321 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 4322 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
| 4323 | ac_count=`expr $ac_count + 1` |
| 4324 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then |
| 4325 | # Best one so far, save it but keep looking for a better one |
| 4326 | ac_cv_path_EGREP="$ac_path_EGREP" |
| 4327 | ac_path_EGREP_max=$ac_count |
| 4328 | fi |
| 4329 | # 10*(2^10) chars as input seems more than enough |
| 4330 | test $ac_count -gt 10 && break |
| 4331 | done |
| 4332 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 4333 | esac |
| 4334 | |
| 4335 | |
| 4336 | $ac_path_EGREP_found && break 3 |
| 4337 | done |
| 4338 | done |
| 4339 | |
| 4340 | done |
| 4341 | IFS=$as_save_IFS |
| 4342 | |
| 4343 | |
| 4344 | fi |
| 4345 | |
| 4346 | EGREP="$ac_cv_path_EGREP" |
| 4347 | if test -z "$EGREP"; then |
| 4348 | { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 |
| 4349 | echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} |
| 4350 | { (exit 1); exit 1; }; } |
| 4351 | fi |
| 4352 | |
| 4353 | else |
| 4354 | ac_cv_path_EGREP=$EGREP |
| 4355 | fi |
| 4356 | |
| 4357 | |
| 4358 | fi |
| 4359 | fi |
| 4360 | { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 |
| 4361 | echo "${ECHO_T}$ac_cv_path_EGREP" >&6; } |
| 4362 | EGREP="$ac_cv_path_EGREP" |
| 4363 | |
| 4364 | |
| 4365 | { echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
| 4366 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } |
| 4367 | if test "${ac_cv_header_stdc+set}" = set; then |
| 4368 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4369 | else |
| 4370 | cat >conftest.$ac_ext <<_ACEOF |
| 4371 | /* confdefs.h. */ |
| 4372 | _ACEOF |
| 4373 | cat confdefs.h >>conftest.$ac_ext |
| 4374 | cat >>conftest.$ac_ext <<_ACEOF |
| 4375 | /* end confdefs.h. */ |
| 4376 | #include <stdlib.h> |
| 4377 | #include <stdarg.h> |
| 4378 | #include <string.h> |
| 4379 | #include <float.h> |
| 4380 | |
| 4381 | int |
| 4382 | main () |
| 4383 | { |
| 4384 | |
| 4385 | ; |
| 4386 | return 0; |
| 4387 | } |
| 4388 | _ACEOF |
| 4389 | rm -f conftest.$ac_objext |
| 4390 | if { (ac_try="$ac_compile" |
| 4391 | case "(($ac_try" in |
| 4392 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4393 | *) ac_try_echo=$ac_try;; |
| 4394 | esac |
| 4395 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4396 | (eval "$ac_compile") 2>conftest.er1 |
| 4397 | ac_status=$? |
| 4398 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4399 | rm -f conftest.er1 |
| 4400 | cat conftest.err >&5 |
| 4401 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4402 | (exit $ac_status); } && { |
| 4403 | test -z "$ac_c_werror_flag" || |
| 4404 | test ! -s conftest.err |
| 4405 | } && test -s conftest.$ac_objext; then |
| 4406 | ac_cv_header_stdc=yes |
| 4407 | else |
| 4408 | echo "$as_me: failed program was:" >&5 |
| 4409 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4410 | |
| 4411 | ac_cv_header_stdc=no |
| 4412 | fi |
| 4413 | |
| 4414 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4415 | |
| 4416 | if test $ac_cv_header_stdc = yes; then |
| 4417 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
| 4418 | cat >conftest.$ac_ext <<_ACEOF |
| 4419 | /* confdefs.h. */ |
| 4420 | _ACEOF |
| 4421 | cat confdefs.h >>conftest.$ac_ext |
| 4422 | cat >>conftest.$ac_ext <<_ACEOF |
| 4423 | /* end confdefs.h. */ |
| 4424 | #include <string.h> |
| 4425 | |
| 4426 | _ACEOF |
| 4427 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 4428 | $EGREP "memchr" >/dev/null 2>&1; then |
| 4429 | : |
| 4430 | else |
| 4431 | ac_cv_header_stdc=no |
| 4432 | fi |
| 4433 | rm -f conftest* |
| 4434 | |
| 4435 | fi |
| 4436 | |
| 4437 | if test $ac_cv_header_stdc = yes; then |
| 4438 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
| 4439 | cat >conftest.$ac_ext <<_ACEOF |
| 4440 | /* confdefs.h. */ |
| 4441 | _ACEOF |
| 4442 | cat confdefs.h >>conftest.$ac_ext |
| 4443 | cat >>conftest.$ac_ext <<_ACEOF |
| 4444 | /* end confdefs.h. */ |
| 4445 | #include <stdlib.h> |
| 4446 | |
| 4447 | _ACEOF |
| 4448 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 4449 | $EGREP "free" >/dev/null 2>&1; then |
| 4450 | : |
| 4451 | else |
| 4452 | ac_cv_header_stdc=no |
| 4453 | fi |
| 4454 | rm -f conftest* |
| 4455 | |
| 4456 | fi |
| 4457 | |
| 4458 | if test $ac_cv_header_stdc = yes; then |
| 4459 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
| 4460 | if test "$cross_compiling" = yes; then |
| 4461 | : |
| 4462 | else |
| 4463 | cat >conftest.$ac_ext <<_ACEOF |
| 4464 | /* confdefs.h. */ |
| 4465 | _ACEOF |
| 4466 | cat confdefs.h >>conftest.$ac_ext |
| 4467 | cat >>conftest.$ac_ext <<_ACEOF |
| 4468 | /* end confdefs.h. */ |
| 4469 | #include <ctype.h> |
| 4470 | #include <stdlib.h> |
| 4471 | #if ((' ' & 0x0FF) == 0x020) |
| 4472 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 4473 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 4474 | #else |
| 4475 | # define ISLOWER(c) \ |
| 4476 | (('a' <= (c) && (c) <= 'i') \ |
| 4477 | || ('j' <= (c) && (c) <= 'r') \ |
| 4478 | || ('s' <= (c) && (c) <= 'z')) |
| 4479 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 4480 | #endif |
| 4481 | |
| 4482 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 4483 | int |
| 4484 | main () |
| 4485 | { |
| 4486 | int i; |
| 4487 | for (i = 0; i < 256; i++) |
| 4488 | if (XOR (islower (i), ISLOWER (i)) |
| 4489 | || toupper (i) != TOUPPER (i)) |
| 4490 | return 2; |
| 4491 | return 0; |
| 4492 | } |
| 4493 | _ACEOF |
| 4494 | rm -f conftest$ac_exeext |
| 4495 | if { (ac_try="$ac_link" |
| 4496 | case "(($ac_try" in |
| 4497 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4498 | *) ac_try_echo=$ac_try;; |
| 4499 | esac |
| 4500 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4501 | (eval "$ac_link") 2>&5 |
| 4502 | ac_status=$? |
| 4503 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4504 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 4505 | { (case "(($ac_try" in |
| 4506 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4507 | *) ac_try_echo=$ac_try;; |
| 4508 | esac |
| 4509 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4510 | (eval "$ac_try") 2>&5 |
| 4511 | ac_status=$? |
| 4512 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4513 | (exit $ac_status); }; }; then |
| 4514 | : |
| 4515 | else |
| 4516 | echo "$as_me: program exited with status $ac_status" >&5 |
| 4517 | echo "$as_me: failed program was:" >&5 |
| 4518 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4519 | |
| 4520 | ( exit $ac_status ) |
| 4521 | ac_cv_header_stdc=no |
| 4522 | fi |
| 4523 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 4524 | fi |
| 4525 | |
| 4526 | |
| 4527 | fi |
| 4528 | fi |
| 4529 | { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
| 4530 | echo "${ECHO_T}$ac_cv_header_stdc" >&6; } |
| 4531 | if test $ac_cv_header_stdc = yes; then |
| 4532 | |
| 4533 | cat >>confdefs.h <<\_ACEOF |
| 4534 | #define STDC_HEADERS 1 |
| 4535 | _ACEOF |
| 4536 | |
| 4537 | fi |
| 4538 | |
| 4539 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
| 4540 | |
| 4541 | |
| 4542 | |
| 4543 | |
| 4544 | |
| 4545 | |
| 4546 | |
| 4547 | |
| 4548 | |
| 4549 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
| 4550 | inttypes.h stdint.h unistd.h |
| 4551 | do |
| 4552 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 4553 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 4554 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 4555 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 4556 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4557 | else |
| 4558 | cat >conftest.$ac_ext <<_ACEOF |
| 4559 | /* confdefs.h. */ |
| 4560 | _ACEOF |
| 4561 | cat confdefs.h >>conftest.$ac_ext |
| 4562 | cat >>conftest.$ac_ext <<_ACEOF |
| 4563 | /* end confdefs.h. */ |
| 4564 | $ac_includes_default |
| 4565 | |
| 4566 | #include <$ac_header> |
| 4567 | _ACEOF |
| 4568 | rm -f conftest.$ac_objext |
| 4569 | if { (ac_try="$ac_compile" |
| 4570 | case "(($ac_try" in |
| 4571 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4572 | *) ac_try_echo=$ac_try;; |
| 4573 | esac |
| 4574 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4575 | (eval "$ac_compile") 2>conftest.er1 |
| 4576 | ac_status=$? |
| 4577 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4578 | rm -f conftest.er1 |
| 4579 | cat conftest.err >&5 |
| 4580 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4581 | (exit $ac_status); } && { |
| 4582 | test -z "$ac_c_werror_flag" || |
| 4583 | test ! -s conftest.err |
| 4584 | } && test -s conftest.$ac_objext; then |
| 4585 | eval "$as_ac_Header=yes" |
| 4586 | else |
| 4587 | echo "$as_me: failed program was:" >&5 |
| 4588 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4589 | |
| 4590 | eval "$as_ac_Header=no" |
| 4591 | fi |
| 4592 | |
| 4593 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4594 | fi |
| 4595 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 4596 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 4597 | echo "${ECHO_T}$ac_res" >&6; } |
| 4598 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 4599 | cat >>confdefs.h <<_ACEOF |
| 4600 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 4601 | _ACEOF |
| 4602 | |
| 4603 | fi |
| 4604 | |
| 4605 | done |
| 4606 | |
| 4607 | |
| 4608 | { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 |
| 4609 | echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; } |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 4610 | if test "${ac_cv_c_bigendian+set}" = set; then |
| 4611 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4612 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4613 | # See if sys/param.h defines the BYTE_ORDER macro. |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 4614 | cat >conftest.$ac_ext <<_ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4615 | /* confdefs.h. */ |
| 4616 | _ACEOF |
| 4617 | cat confdefs.h >>conftest.$ac_ext |
| 4618 | cat >>conftest.$ac_ext <<_ACEOF |
| 4619 | /* end confdefs.h. */ |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 4620 | #include <sys/types.h> |
| 4621 | #include <sys/param.h> |
| 4622 | |
| 4623 | int |
| 4624 | main () |
| 4625 | { |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4626 | #if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \ |
| 4627 | && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN) |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 4628 | bogus endian macros |
| 4629 | #endif |
| 4630 | |
| 4631 | ; |
| 4632 | return 0; |
| 4633 | } |
| 4634 | _ACEOF |
| 4635 | rm -f conftest.$ac_objext |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4636 | if { (ac_try="$ac_compile" |
| 4637 | case "(($ac_try" in |
| 4638 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4639 | *) ac_try_echo=$ac_try;; |
| 4640 | esac |
| 4641 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4642 | (eval "$ac_compile") 2>conftest.er1 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 4643 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4644 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4645 | rm -f conftest.er1 |
| 4646 | cat conftest.err >&5 |
| 4647 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4648 | (exit $ac_status); } && { |
| 4649 | test -z "$ac_c_werror_flag" || |
| 4650 | test ! -s conftest.err |
| 4651 | } && test -s conftest.$ac_objext; then |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 4652 | # It does; now see whether it defined to BIG_ENDIAN or not. |
| 4653 | cat >conftest.$ac_ext <<_ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4654 | /* confdefs.h. */ |
| 4655 | _ACEOF |
| 4656 | cat confdefs.h >>conftest.$ac_ext |
| 4657 | cat >>conftest.$ac_ext <<_ACEOF |
| 4658 | /* end confdefs.h. */ |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 4659 | #include <sys/types.h> |
| 4660 | #include <sys/param.h> |
| 4661 | |
| 4662 | int |
| 4663 | main () |
| 4664 | { |
| 4665 | #if BYTE_ORDER != BIG_ENDIAN |
| 4666 | not big endian |
| 4667 | #endif |
| 4668 | |
| 4669 | ; |
| 4670 | return 0; |
| 4671 | } |
| 4672 | _ACEOF |
| 4673 | rm -f conftest.$ac_objext |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4674 | if { (ac_try="$ac_compile" |
| 4675 | case "(($ac_try" in |
| 4676 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4677 | *) ac_try_echo=$ac_try;; |
| 4678 | esac |
| 4679 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4680 | (eval "$ac_compile") 2>conftest.er1 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 4681 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4682 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4683 | rm -f conftest.er1 |
| 4684 | cat conftest.err >&5 |
| 4685 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4686 | (exit $ac_status); } && { |
| 4687 | test -z "$ac_c_werror_flag" || |
| 4688 | test ! -s conftest.err |
| 4689 | } && test -s conftest.$ac_objext; then |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 4690 | ac_cv_c_bigendian=yes |
| 4691 | else |
| 4692 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4693 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4694 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4695 | ac_cv_c_bigendian=no |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 4696 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4697 | |
| 4698 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 4699 | else |
| 4700 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4701 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4702 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4703 | # It does not; compile a test program. |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 4704 | if test "$cross_compiling" = yes; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4705 | # try to guess the endianness by grepping values into an object file |
| 4706 | ac_cv_c_bigendian=unknown |
| 4707 | cat >conftest.$ac_ext <<_ACEOF |
| 4708 | /* confdefs.h. */ |
| 4709 | _ACEOF |
| 4710 | cat confdefs.h >>conftest.$ac_ext |
| 4711 | cat >>conftest.$ac_ext <<_ACEOF |
| 4712 | /* end confdefs.h. */ |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4713 | short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; |
| 4714 | short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4715 | void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; } |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4716 | short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; |
| 4717 | short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4718 | void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; } |
| 4719 | int |
| 4720 | main () |
| 4721 | { |
| 4722 | _ascii (); _ebcdic (); |
| 4723 | ; |
| 4724 | return 0; |
| 4725 | } |
| 4726 | _ACEOF |
| 4727 | rm -f conftest.$ac_objext |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4728 | if { (ac_try="$ac_compile" |
| 4729 | case "(($ac_try" in |
| 4730 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4731 | *) ac_try_echo=$ac_try;; |
| 4732 | esac |
| 4733 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4734 | (eval "$ac_compile") 2>conftest.er1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4735 | ac_status=$? |
| 4736 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4737 | rm -f conftest.er1 |
| 4738 | cat conftest.err >&5 |
| 4739 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4740 | (exit $ac_status); } && { |
| 4741 | test -z "$ac_c_werror_flag" || |
| 4742 | test ! -s conftest.err |
| 4743 | } && test -s conftest.$ac_objext; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4744 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then |
| 4745 | ac_cv_c_bigendian=yes |
| 4746 | fi |
| 4747 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then |
| 4748 | if test "$ac_cv_c_bigendian" = unknown; then |
| 4749 | ac_cv_c_bigendian=no |
| 4750 | else |
| 4751 | # finding both strings is unlikely to happen, but who knows? |
| 4752 | ac_cv_c_bigendian=unknown |
| 4753 | fi |
| 4754 | fi |
| 4755 | else |
| 4756 | echo "$as_me: failed program was:" >&5 |
| 4757 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4758 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4759 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4760 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4761 | |
| 4762 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 4763 | else |
| 4764 | cat >conftest.$ac_ext <<_ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4765 | /* confdefs.h. */ |
| 4766 | _ACEOF |
| 4767 | cat confdefs.h >>conftest.$ac_ext |
| 4768 | cat >>conftest.$ac_ext <<_ACEOF |
| 4769 | /* end confdefs.h. */ |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4770 | $ac_includes_default |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 4771 | int |
| 4772 | main () |
| 4773 | { |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4774 | |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 4775 | /* Are we little or big endian? From Harbison&Steele. */ |
| 4776 | union |
| 4777 | { |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4778 | long int l; |
| 4779 | char c[sizeof (long int)]; |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 4780 | } u; |
| 4781 | u.l = 1; |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4782 | return u.c[sizeof (long int) - 1] == 1; |
| 4783 | |
| 4784 | ; |
| 4785 | return 0; |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 4786 | } |
| 4787 | _ACEOF |
| 4788 | rm -f conftest$ac_exeext |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4789 | if { (ac_try="$ac_link" |
| 4790 | case "(($ac_try" in |
| 4791 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4792 | *) ac_try_echo=$ac_try;; |
| 4793 | esac |
| 4794 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4795 | (eval "$ac_link") 2>&5 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 4796 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4797 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 4798 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4799 | { (case "(($ac_try" in |
| 4800 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4801 | *) ac_try_echo=$ac_try;; |
| 4802 | esac |
| 4803 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4804 | (eval "$ac_try") 2>&5 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 4805 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4806 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 4807 | (exit $ac_status); }; }; then |
| 4808 | ac_cv_c_bigendian=no |
| 4809 | else |
| 4810 | echo "$as_me: program exited with status $ac_status" >&5 |
| 4811 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4812 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4813 | |
| 4814 | ( exit $ac_status ) |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 4815 | ac_cv_c_bigendian=yes |
| 4816 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4817 | 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] | 4818 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4819 | |
| 4820 | |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 4821 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4822 | |
| 4823 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 4824 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4825 | { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 |
| 4826 | echo "${ECHO_T}$ac_cv_c_bigendian" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4827 | case $ac_cv_c_bigendian in |
| 4828 | yes) |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 4829 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4830 | cat >>confdefs.h <<\_ACEOF |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame] | 4831 | #define WORDS_BIGENDIAN 1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4832 | _ACEOF |
| 4833 | ;; |
| 4834 | no) |
| 4835 | ;; |
| 4836 | *) |
| 4837 | { { echo "$as_me:$LINENO: error: unknown endianness |
| 4838 | presetting ac_cv_c_bigendian=no (or yes) will help" >&5 |
| 4839 | echo "$as_me: error: unknown endianness |
| 4840 | presetting ac_cv_c_bigendian=no (or yes) will help" >&2;} |
| 4841 | { (exit 1); exit 1; }; } ;; |
| 4842 | esac |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 4843 | |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 4844 | |
| 4845 | case $target in |
| 4846 | *mingw* | *cygw* | *win32* | *w32* ) |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4847 | cat >>confdefs.h <<\_ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 4848 | #define PJ_WIN32 1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4849 | _ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 4850 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4851 | cat >>confdefs.h <<\_ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 4852 | #define PJ_WIN32_WINNT 0x0400 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4853 | _ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 4854 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4855 | cat >>confdefs.h <<\_ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 4856 | #define WIN32_LEAN_AND_MEAN 1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4857 | _ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 4858 | |
| 4859 | ;; |
| 4860 | *darwin*) |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4861 | cat >>confdefs.h <<\_ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 4862 | #define PJ_DARWINOS 1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4863 | _ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 4864 | |
| 4865 | ;; |
| 4866 | *linux*) |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4867 | cat >>confdefs.h <<\_ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 4868 | #define PJ_LINUX 1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4869 | _ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 4870 | |
| 4871 | ;; |
| 4872 | *rtems*) |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4873 | cat >>confdefs.h <<\_ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 4874 | #define PJ_RTEMS 1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4875 | _ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 4876 | |
| 4877 | ;; |
| 4878 | *sunos* | *solaris* ) |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4879 | cat >>confdefs.h <<\_ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 4880 | #define PJ_SUNOS 1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4881 | _ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 4882 | |
| 4883 | ;; |
| 4884 | *) |
| 4885 | ;; |
| 4886 | esac |
| 4887 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4888 | |
| 4889 | |
| 4890 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4891 | # Check whether --enable-floating-point was given. |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 4892 | if test "${enable_floating_point+set}" = set; then |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4893 | enableval=$enable_floating_point; if test "$enable_floating_point" = "no"; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4894 | cat >>confdefs.h <<\_ACEOF |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 4895 | #define PJ_HAS_FLOATING_POINT 0 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4896 | _ACEOF |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 4897 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4898 | { echo "$as_me:$LINENO: result: Checking if floating point is disabled... yes" >&5 |
| 4899 | echo "${ECHO_T}Checking if floating point is disabled... yes" >&6; } |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 4900 | fi |
| 4901 | else |
| 4902 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4903 | cat >>confdefs.h <<\_ACEOF |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 4904 | #define PJ_HAS_FLOATING_POINT 1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4905 | _ACEOF |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 4906 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4907 | { echo "$as_me:$LINENO: result: Checking if floating point is disabled... no" >&5 |
| 4908 | echo "${ECHO_T}Checking if floating point is disabled... no" >&6; } |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 4909 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4910 | { echo "$as_me:$LINENO: checking for fmod in -lm" >&5 |
| 4911 | echo $ECHO_N "checking for fmod in -lm... $ECHO_C" >&6; } |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 4912 | if test "${ac_cv_lib_m_fmod+set}" = set; then |
| 4913 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4914 | else |
| 4915 | ac_check_lib_save_LIBS=$LIBS |
| 4916 | LIBS="-lm $LIBS" |
| 4917 | cat >conftest.$ac_ext <<_ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4918 | /* confdefs.h. */ |
| 4919 | _ACEOF |
| 4920 | cat confdefs.h >>conftest.$ac_ext |
| 4921 | cat >>conftest.$ac_ext <<_ACEOF |
| 4922 | /* end confdefs.h. */ |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 4923 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4924 | /* Override any GCC internal prototype to avoid an error. |
| 4925 | Use char because int might match the return type of a GCC |
| 4926 | builtin and then its argument prototype would still apply. */ |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 4927 | #ifdef __cplusplus |
| 4928 | extern "C" |
| 4929 | #endif |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 4930 | char fmod (); |
| 4931 | int |
| 4932 | main () |
| 4933 | { |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4934 | return fmod (); |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 4935 | ; |
| 4936 | return 0; |
| 4937 | } |
| 4938 | _ACEOF |
| 4939 | rm -f conftest.$ac_objext conftest$ac_exeext |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4940 | if { (ac_try="$ac_link" |
| 4941 | case "(($ac_try" in |
| 4942 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4943 | *) ac_try_echo=$ac_try;; |
| 4944 | esac |
| 4945 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4946 | (eval "$ac_link") 2>conftest.er1 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 4947 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4948 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4949 | rm -f conftest.er1 |
| 4950 | cat conftest.err >&5 |
| 4951 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4952 | (exit $ac_status); } && { |
| 4953 | test -z "$ac_c_werror_flag" || |
| 4954 | test ! -s conftest.err |
| 4955 | } && test -s conftest$ac_exeext && |
| 4956 | $as_test_x conftest$ac_exeext; then |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 4957 | ac_cv_lib_m_fmod=yes |
| 4958 | else |
| 4959 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4960 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4961 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4962 | ac_cv_lib_m_fmod=no |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 4963 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4964 | |
| 4965 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4966 | conftest$ac_exeext conftest.$ac_ext |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 4967 | LIBS=$ac_check_lib_save_LIBS |
| 4968 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4969 | { echo "$as_me:$LINENO: result: $ac_cv_lib_m_fmod" >&5 |
| 4970 | echo "${ECHO_T}$ac_cv_lib_m_fmod" >&6; } |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 4971 | if test $ac_cv_lib_m_fmod = yes; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4972 | cat >>confdefs.h <<_ACEOF |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 4973 | #define HAVE_LIBM 1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4974 | _ACEOF |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 4975 | |
| 4976 | LIBS="-lm $LIBS" |
| 4977 | |
| 4978 | fi |
| 4979 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4980 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 4981 | fi |
| 4982 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4983 | |
| 4984 | |
| 4985 | if test "${ac_cv_header_arpa_inet_h+set}" = set; then |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4986 | { echo "$as_me:$LINENO: checking for arpa/inet.h" >&5 |
| 4987 | echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4988 | if test "${ac_cv_header_arpa_inet_h+set}" = set; then |
| 4989 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4990 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4991 | { echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5 |
| 4992 | echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4993 | else |
| 4994 | # Is the header compilable? |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4995 | { echo "$as_me:$LINENO: checking arpa/inet.h usability" >&5 |
| 4996 | echo $ECHO_N "checking arpa/inet.h usability... $ECHO_C" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4997 | cat >conftest.$ac_ext <<_ACEOF |
| 4998 | /* confdefs.h. */ |
| 4999 | _ACEOF |
| 5000 | cat confdefs.h >>conftest.$ac_ext |
| 5001 | cat >>conftest.$ac_ext <<_ACEOF |
| 5002 | /* end confdefs.h. */ |
| 5003 | $ac_includes_default |
| 5004 | #include <arpa/inet.h> |
| 5005 | _ACEOF |
| 5006 | rm -f conftest.$ac_objext |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5007 | if { (ac_try="$ac_compile" |
| 5008 | case "(($ac_try" in |
| 5009 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5010 | *) ac_try_echo=$ac_try;; |
| 5011 | esac |
| 5012 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5013 | (eval "$ac_compile") 2>conftest.er1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5014 | ac_status=$? |
| 5015 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5016 | rm -f conftest.er1 |
| 5017 | cat conftest.err >&5 |
| 5018 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5019 | (exit $ac_status); } && { |
| 5020 | test -z "$ac_c_werror_flag" || |
| 5021 | test ! -s conftest.err |
| 5022 | } && test -s conftest.$ac_objext; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5023 | ac_header_compiler=yes |
| 5024 | else |
| 5025 | echo "$as_me: failed program was:" >&5 |
| 5026 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5027 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5028 | ac_header_compiler=no |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5029 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5030 | |
| 5031 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5032 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 5033 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5034 | |
| 5035 | # Is the header present? |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5036 | { echo "$as_me:$LINENO: checking arpa/inet.h presence" >&5 |
| 5037 | echo $ECHO_N "checking arpa/inet.h presence... $ECHO_C" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5038 | cat >conftest.$ac_ext <<_ACEOF |
| 5039 | /* confdefs.h. */ |
| 5040 | _ACEOF |
| 5041 | cat confdefs.h >>conftest.$ac_ext |
| 5042 | cat >>conftest.$ac_ext <<_ACEOF |
| 5043 | /* end confdefs.h. */ |
| 5044 | #include <arpa/inet.h> |
| 5045 | _ACEOF |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5046 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 5047 | case "(($ac_try" in |
| 5048 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5049 | *) ac_try_echo=$ac_try;; |
| 5050 | esac |
| 5051 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5052 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5053 | ac_status=$? |
| 5054 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5055 | rm -f conftest.er1 |
| 5056 | cat conftest.err >&5 |
| 5057 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5058 | (exit $ac_status); } >/dev/null && { |
| 5059 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 5060 | test ! -s conftest.err |
| 5061 | }; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5062 | ac_header_preproc=yes |
| 5063 | else |
| 5064 | echo "$as_me: failed program was:" >&5 |
| 5065 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5066 | |
| 5067 | ac_header_preproc=no |
| 5068 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5069 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5070 | rm -f conftest.err conftest.$ac_ext |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5071 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 5072 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5073 | |
| 5074 | # So? What about this header? |
| 5075 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 5076 | yes:no: ) |
| 5077 | { echo "$as_me:$LINENO: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 5078 | echo "$as_me: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 5079 | { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the compiler's result" >&5 |
| 5080 | echo "$as_me: WARNING: arpa/inet.h: proceeding with the compiler's result" >&2;} |
| 5081 | ac_header_preproc=yes |
| 5082 | ;; |
| 5083 | no:yes:* ) |
| 5084 | { echo "$as_me:$LINENO: WARNING: arpa/inet.h: present but cannot be compiled" >&5 |
| 5085 | echo "$as_me: WARNING: arpa/inet.h: present but cannot be compiled" >&2;} |
| 5086 | { echo "$as_me:$LINENO: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&5 |
| 5087 | echo "$as_me: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&2;} |
| 5088 | { echo "$as_me:$LINENO: WARNING: arpa/inet.h: see the Autoconf documentation" >&5 |
| 5089 | echo "$as_me: WARNING: arpa/inet.h: see the Autoconf documentation" >&2;} |
| 5090 | { echo "$as_me:$LINENO: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 5091 | echo "$as_me: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 5092 | { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&5 |
| 5093 | echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&2;} |
| 5094 | { echo "$as_me:$LINENO: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&5 |
| 5095 | echo "$as_me: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&2;} |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5096 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5097 | ;; |
| 5098 | esac |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5099 | { echo "$as_me:$LINENO: checking for arpa/inet.h" >&5 |
| 5100 | echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6; } |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 5101 | if test "${ac_cv_header_arpa_inet_h+set}" = set; then |
| 5102 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 5103 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5104 | ac_cv_header_arpa_inet_h=$ac_header_preproc |
| 5105 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5106 | { echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5 |
| 5107 | echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5108 | |
| 5109 | fi |
| 5110 | if test $ac_cv_header_arpa_inet_h = yes; then |
| 5111 | cat >>confdefs.h <<\_ACEOF |
| 5112 | #define PJ_HAS_ARPA_INET_H 1 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 5113 | _ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5114 | |
| 5115 | fi |
| 5116 | |
| 5117 | |
| 5118 | if test "${ac_cv_header_assert_h+set}" = set; then |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5119 | { echo "$as_me:$LINENO: checking for assert.h" >&5 |
| 5120 | echo $ECHO_N "checking for assert.h... $ECHO_C" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5121 | if test "${ac_cv_header_assert_h+set}" = set; then |
| 5122 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5123 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5124 | { echo "$as_me:$LINENO: result: $ac_cv_header_assert_h" >&5 |
| 5125 | echo "${ECHO_T}$ac_cv_header_assert_h" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5126 | else |
| 5127 | # Is the header compilable? |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5128 | { echo "$as_me:$LINENO: checking assert.h usability" >&5 |
| 5129 | echo $ECHO_N "checking assert.h usability... $ECHO_C" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5130 | cat >conftest.$ac_ext <<_ACEOF |
| 5131 | /* confdefs.h. */ |
| 5132 | _ACEOF |
| 5133 | cat confdefs.h >>conftest.$ac_ext |
| 5134 | cat >>conftest.$ac_ext <<_ACEOF |
| 5135 | /* end confdefs.h. */ |
| 5136 | $ac_includes_default |
| 5137 | #include <assert.h> |
| 5138 | _ACEOF |
| 5139 | rm -f conftest.$ac_objext |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5140 | if { (ac_try="$ac_compile" |
| 5141 | case "(($ac_try" in |
| 5142 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5143 | *) ac_try_echo=$ac_try;; |
| 5144 | esac |
| 5145 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5146 | (eval "$ac_compile") 2>conftest.er1 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 5147 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5148 | grep -v '^ *+' conftest.er1 >conftest.err |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 5149 | rm -f conftest.er1 |
| 5150 | cat conftest.err >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5151 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5152 | (exit $ac_status); } && { |
| 5153 | test -z "$ac_c_werror_flag" || |
| 5154 | test ! -s conftest.err |
| 5155 | } && test -s conftest.$ac_objext; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5156 | ac_header_compiler=yes |
| 5157 | else |
| 5158 | echo "$as_me: failed program was:" >&5 |
| 5159 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5160 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5161 | ac_header_compiler=no |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5162 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5163 | |
| 5164 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5165 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 5166 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5167 | |
| 5168 | # Is the header present? |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5169 | { echo "$as_me:$LINENO: checking assert.h presence" >&5 |
| 5170 | echo $ECHO_N "checking assert.h presence... $ECHO_C" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5171 | cat >conftest.$ac_ext <<_ACEOF |
| 5172 | /* confdefs.h. */ |
| 5173 | _ACEOF |
| 5174 | cat confdefs.h >>conftest.$ac_ext |
| 5175 | cat >>conftest.$ac_ext <<_ACEOF |
| 5176 | /* end confdefs.h. */ |
| 5177 | #include <assert.h> |
| 5178 | _ACEOF |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5179 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 5180 | case "(($ac_try" in |
| 5181 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5182 | *) ac_try_echo=$ac_try;; |
| 5183 | esac |
| 5184 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5185 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5186 | ac_status=$? |
| 5187 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5188 | rm -f conftest.er1 |
| 5189 | cat conftest.err >&5 |
| 5190 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5191 | (exit $ac_status); } >/dev/null && { |
| 5192 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 5193 | test ! -s conftest.err |
| 5194 | }; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5195 | ac_header_preproc=yes |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 5196 | else |
| 5197 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5198 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5199 | |
| 5200 | ac_header_preproc=no |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 5201 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5202 | |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 5203 | rm -f conftest.err conftest.$ac_ext |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5204 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 5205 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 5206 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5207 | # So? What about this header? |
| 5208 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 5209 | yes:no: ) |
| 5210 | { echo "$as_me:$LINENO: WARNING: assert.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 5211 | echo "$as_me: WARNING: assert.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 5212 | { echo "$as_me:$LINENO: WARNING: assert.h: proceeding with the compiler's result" >&5 |
| 5213 | echo "$as_me: WARNING: assert.h: proceeding with the compiler's result" >&2;} |
| 5214 | ac_header_preproc=yes |
| 5215 | ;; |
| 5216 | no:yes:* ) |
| 5217 | { echo "$as_me:$LINENO: WARNING: assert.h: present but cannot be compiled" >&5 |
| 5218 | echo "$as_me: WARNING: assert.h: present but cannot be compiled" >&2;} |
| 5219 | { echo "$as_me:$LINENO: WARNING: assert.h: check for missing prerequisite headers?" >&5 |
| 5220 | echo "$as_me: WARNING: assert.h: check for missing prerequisite headers?" >&2;} |
| 5221 | { echo "$as_me:$LINENO: WARNING: assert.h: see the Autoconf documentation" >&5 |
| 5222 | echo "$as_me: WARNING: assert.h: see the Autoconf documentation" >&2;} |
| 5223 | { echo "$as_me:$LINENO: WARNING: assert.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 5224 | echo "$as_me: WARNING: assert.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 5225 | { echo "$as_me:$LINENO: WARNING: assert.h: proceeding with the preprocessor's result" >&5 |
| 5226 | echo "$as_me: WARNING: assert.h: proceeding with the preprocessor's result" >&2;} |
| 5227 | { echo "$as_me:$LINENO: WARNING: assert.h: in the future, the compiler will take precedence" >&5 |
| 5228 | echo "$as_me: WARNING: assert.h: in the future, the compiler will take precedence" >&2;} |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5229 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5230 | ;; |
| 5231 | esac |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5232 | { echo "$as_me:$LINENO: checking for assert.h" >&5 |
| 5233 | echo $ECHO_N "checking for assert.h... $ECHO_C" >&6; } |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 5234 | if test "${ac_cv_header_assert_h+set}" = set; then |
| 5235 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 5236 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5237 | ac_cv_header_assert_h=$ac_header_preproc |
| 5238 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5239 | { echo "$as_me:$LINENO: result: $ac_cv_header_assert_h" >&5 |
| 5240 | echo "${ECHO_T}$ac_cv_header_assert_h" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5241 | |
| 5242 | fi |
| 5243 | if test $ac_cv_header_assert_h = yes; then |
| 5244 | cat >>confdefs.h <<\_ACEOF |
| 5245 | #define PJ_HAS_ASSERT_H 1 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 5246 | _ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5247 | |
| 5248 | fi |
| 5249 | |
| 5250 | |
| 5251 | if test "${ac_cv_header_ctype_h+set}" = set; then |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5252 | { echo "$as_me:$LINENO: checking for ctype.h" >&5 |
| 5253 | echo $ECHO_N "checking for ctype.h... $ECHO_C" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5254 | if test "${ac_cv_header_ctype_h+set}" = set; then |
| 5255 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5256 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5257 | { echo "$as_me:$LINENO: result: $ac_cv_header_ctype_h" >&5 |
| 5258 | echo "${ECHO_T}$ac_cv_header_ctype_h" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5259 | else |
| 5260 | # Is the header compilable? |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5261 | { echo "$as_me:$LINENO: checking ctype.h usability" >&5 |
| 5262 | echo $ECHO_N "checking ctype.h usability... $ECHO_C" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5263 | cat >conftest.$ac_ext <<_ACEOF |
| 5264 | /* confdefs.h. */ |
| 5265 | _ACEOF |
| 5266 | cat confdefs.h >>conftest.$ac_ext |
| 5267 | cat >>conftest.$ac_ext <<_ACEOF |
| 5268 | /* end confdefs.h. */ |
| 5269 | $ac_includes_default |
| 5270 | #include <ctype.h> |
| 5271 | _ACEOF |
| 5272 | rm -f conftest.$ac_objext |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5273 | if { (ac_try="$ac_compile" |
| 5274 | case "(($ac_try" in |
| 5275 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5276 | *) ac_try_echo=$ac_try;; |
| 5277 | esac |
| 5278 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5279 | (eval "$ac_compile") 2>conftest.er1 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 5280 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5281 | grep -v '^ *+' conftest.er1 >conftest.err |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 5282 | rm -f conftest.er1 |
| 5283 | cat conftest.err >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5284 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5285 | (exit $ac_status); } && { |
| 5286 | test -z "$ac_c_werror_flag" || |
| 5287 | test ! -s conftest.err |
| 5288 | } && test -s conftest.$ac_objext; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5289 | ac_header_compiler=yes |
| 5290 | else |
| 5291 | echo "$as_me: failed program was:" >&5 |
| 5292 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5293 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5294 | ac_header_compiler=no |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5295 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5296 | |
| 5297 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5298 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 5299 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5300 | |
| 5301 | # Is the header present? |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5302 | { echo "$as_me:$LINENO: checking ctype.h presence" >&5 |
| 5303 | echo $ECHO_N "checking ctype.h presence... $ECHO_C" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5304 | cat >conftest.$ac_ext <<_ACEOF |
| 5305 | /* confdefs.h. */ |
| 5306 | _ACEOF |
| 5307 | cat confdefs.h >>conftest.$ac_ext |
| 5308 | cat >>conftest.$ac_ext <<_ACEOF |
| 5309 | /* end confdefs.h. */ |
| 5310 | #include <ctype.h> |
| 5311 | _ACEOF |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5312 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 5313 | case "(($ac_try" in |
| 5314 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5315 | *) ac_try_echo=$ac_try;; |
| 5316 | esac |
| 5317 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5318 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5319 | ac_status=$? |
| 5320 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5321 | rm -f conftest.er1 |
| 5322 | cat conftest.err >&5 |
| 5323 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5324 | (exit $ac_status); } >/dev/null && { |
| 5325 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 5326 | test ! -s conftest.err |
| 5327 | }; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5328 | ac_header_preproc=yes |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 5329 | else |
| 5330 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5331 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5332 | |
| 5333 | ac_header_preproc=no |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 5334 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5335 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 5336 | rm -f conftest.err conftest.$ac_ext |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5337 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 5338 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 5339 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5340 | # So? What about this header? |
| 5341 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 5342 | yes:no: ) |
| 5343 | { echo "$as_me:$LINENO: WARNING: ctype.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 5344 | echo "$as_me: WARNING: ctype.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 5345 | { echo "$as_me:$LINENO: WARNING: ctype.h: proceeding with the compiler's result" >&5 |
| 5346 | echo "$as_me: WARNING: ctype.h: proceeding with the compiler's result" >&2;} |
| 5347 | ac_header_preproc=yes |
| 5348 | ;; |
| 5349 | no:yes:* ) |
| 5350 | { echo "$as_me:$LINENO: WARNING: ctype.h: present but cannot be compiled" >&5 |
| 5351 | echo "$as_me: WARNING: ctype.h: present but cannot be compiled" >&2;} |
| 5352 | { echo "$as_me:$LINENO: WARNING: ctype.h: check for missing prerequisite headers?" >&5 |
| 5353 | echo "$as_me: WARNING: ctype.h: check for missing prerequisite headers?" >&2;} |
| 5354 | { echo "$as_me:$LINENO: WARNING: ctype.h: see the Autoconf documentation" >&5 |
| 5355 | echo "$as_me: WARNING: ctype.h: see the Autoconf documentation" >&2;} |
| 5356 | { echo "$as_me:$LINENO: WARNING: ctype.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 5357 | echo "$as_me: WARNING: ctype.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 5358 | { echo "$as_me:$LINENO: WARNING: ctype.h: proceeding with the preprocessor's result" >&5 |
| 5359 | echo "$as_me: WARNING: ctype.h: proceeding with the preprocessor's result" >&2;} |
| 5360 | { echo "$as_me:$LINENO: WARNING: ctype.h: in the future, the compiler will take precedence" >&5 |
| 5361 | echo "$as_me: WARNING: ctype.h: in the future, the compiler will take precedence" >&2;} |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5362 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5363 | ;; |
| 5364 | esac |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5365 | { echo "$as_me:$LINENO: checking for ctype.h" >&5 |
| 5366 | echo $ECHO_N "checking for ctype.h... $ECHO_C" >&6; } |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 5367 | if test "${ac_cv_header_ctype_h+set}" = set; then |
| 5368 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 5369 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5370 | ac_cv_header_ctype_h=$ac_header_preproc |
| 5371 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5372 | { echo "$as_me:$LINENO: result: $ac_cv_header_ctype_h" >&5 |
| 5373 | echo "${ECHO_T}$ac_cv_header_ctype_h" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5374 | |
| 5375 | fi |
| 5376 | if test $ac_cv_header_ctype_h = yes; then |
| 5377 | cat >>confdefs.h <<\_ACEOF |
| 5378 | #define PJ_HAS_CTYPE_H 1 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 5379 | _ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5380 | |
| 5381 | fi |
| 5382 | |
| 5383 | |
| 5384 | |
| 5385 | case $target in |
| 5386 | *mingw* | *cygw* | *win32* | *w32* ) |
| 5387 | cat >>confdefs.h <<\_ACEOF |
| 5388 | #define PJ_HAS_ERRNO_H 0 |
| 5389 | _ACEOF |
| 5390 | |
| 5391 | ;; |
| 5392 | *) |
| 5393 | if test "${ac_cv_header_errno_h+set}" = set; then |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5394 | { echo "$as_me:$LINENO: checking for errno.h" >&5 |
| 5395 | echo $ECHO_N "checking for errno.h... $ECHO_C" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5396 | if test "${ac_cv_header_errno_h+set}" = set; then |
| 5397 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5398 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5399 | { echo "$as_me:$LINENO: result: $ac_cv_header_errno_h" >&5 |
| 5400 | echo "${ECHO_T}$ac_cv_header_errno_h" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5401 | else |
| 5402 | # Is the header compilable? |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5403 | { echo "$as_me:$LINENO: checking errno.h usability" >&5 |
| 5404 | echo $ECHO_N "checking errno.h usability... $ECHO_C" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5405 | cat >conftest.$ac_ext <<_ACEOF |
| 5406 | /* confdefs.h. */ |
| 5407 | _ACEOF |
| 5408 | cat confdefs.h >>conftest.$ac_ext |
| 5409 | cat >>conftest.$ac_ext <<_ACEOF |
| 5410 | /* end confdefs.h. */ |
| 5411 | $ac_includes_default |
| 5412 | #include <errno.h> |
| 5413 | _ACEOF |
| 5414 | rm -f conftest.$ac_objext |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5415 | if { (ac_try="$ac_compile" |
| 5416 | case "(($ac_try" in |
| 5417 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5418 | *) ac_try_echo=$ac_try;; |
| 5419 | esac |
| 5420 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5421 | (eval "$ac_compile") 2>conftest.er1 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 5422 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5423 | grep -v '^ *+' conftest.er1 >conftest.err |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 5424 | rm -f conftest.er1 |
| 5425 | cat conftest.err >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5426 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5427 | (exit $ac_status); } && { |
| 5428 | test -z "$ac_c_werror_flag" || |
| 5429 | test ! -s conftest.err |
| 5430 | } && test -s conftest.$ac_objext; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5431 | ac_header_compiler=yes |
| 5432 | else |
| 5433 | echo "$as_me: failed program was:" >&5 |
| 5434 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5435 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5436 | ac_header_compiler=no |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5437 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5438 | |
| 5439 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5440 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 5441 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5442 | |
| 5443 | # Is the header present? |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5444 | { echo "$as_me:$LINENO: checking errno.h presence" >&5 |
| 5445 | echo $ECHO_N "checking errno.h presence... $ECHO_C" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5446 | cat >conftest.$ac_ext <<_ACEOF |
| 5447 | /* confdefs.h. */ |
| 5448 | _ACEOF |
| 5449 | cat confdefs.h >>conftest.$ac_ext |
| 5450 | cat >>conftest.$ac_ext <<_ACEOF |
| 5451 | /* end confdefs.h. */ |
| 5452 | #include <errno.h> |
| 5453 | _ACEOF |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5454 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 5455 | case "(($ac_try" in |
| 5456 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5457 | *) ac_try_echo=$ac_try;; |
| 5458 | esac |
| 5459 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5460 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5461 | ac_status=$? |
| 5462 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5463 | rm -f conftest.er1 |
| 5464 | cat conftest.err >&5 |
| 5465 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5466 | (exit $ac_status); } >/dev/null && { |
| 5467 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 5468 | test ! -s conftest.err |
| 5469 | }; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5470 | ac_header_preproc=yes |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 5471 | else |
| 5472 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5473 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5474 | |
| 5475 | ac_header_preproc=no |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 5476 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5477 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 5478 | rm -f conftest.err conftest.$ac_ext |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5479 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 5480 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 5481 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5482 | # So? What about this header? |
| 5483 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 5484 | yes:no: ) |
| 5485 | { echo "$as_me:$LINENO: WARNING: errno.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 5486 | echo "$as_me: WARNING: errno.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 5487 | { echo "$as_me:$LINENO: WARNING: errno.h: proceeding with the compiler's result" >&5 |
| 5488 | echo "$as_me: WARNING: errno.h: proceeding with the compiler's result" >&2;} |
| 5489 | ac_header_preproc=yes |
| 5490 | ;; |
| 5491 | no:yes:* ) |
| 5492 | { echo "$as_me:$LINENO: WARNING: errno.h: present but cannot be compiled" >&5 |
| 5493 | echo "$as_me: WARNING: errno.h: present but cannot be compiled" >&2;} |
| 5494 | { echo "$as_me:$LINENO: WARNING: errno.h: check for missing prerequisite headers?" >&5 |
| 5495 | echo "$as_me: WARNING: errno.h: check for missing prerequisite headers?" >&2;} |
| 5496 | { echo "$as_me:$LINENO: WARNING: errno.h: see the Autoconf documentation" >&5 |
| 5497 | echo "$as_me: WARNING: errno.h: see the Autoconf documentation" >&2;} |
| 5498 | { echo "$as_me:$LINENO: WARNING: errno.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 5499 | echo "$as_me: WARNING: errno.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 5500 | { echo "$as_me:$LINENO: WARNING: errno.h: proceeding with the preprocessor's result" >&5 |
| 5501 | echo "$as_me: WARNING: errno.h: proceeding with the preprocessor's result" >&2;} |
| 5502 | { echo "$as_me:$LINENO: WARNING: errno.h: in the future, the compiler will take precedence" >&5 |
| 5503 | echo "$as_me: WARNING: errno.h: in the future, the compiler will take precedence" >&2;} |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5504 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5505 | ;; |
| 5506 | esac |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5507 | { echo "$as_me:$LINENO: checking for errno.h" >&5 |
| 5508 | echo $ECHO_N "checking for errno.h... $ECHO_C" >&6; } |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 5509 | if test "${ac_cv_header_errno_h+set}" = set; then |
| 5510 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 5511 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5512 | ac_cv_header_errno_h=$ac_header_preproc |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 5513 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5514 | { echo "$as_me:$LINENO: result: $ac_cv_header_errno_h" >&5 |
| 5515 | echo "${ECHO_T}$ac_cv_header_errno_h" >&6; } |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 5516 | |
| 5517 | fi |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5518 | if test $ac_cv_header_errno_h = yes; then |
| 5519 | cat >>confdefs.h <<\_ACEOF |
| 5520 | #define PJ_HAS_ERRNO_H 1 |
| 5521 | _ACEOF |
| 5522 | |
| 5523 | fi |
| 5524 | |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 5525 | |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 5526 | ;; |
| 5527 | esac |
| 5528 | |
Benny Prijono | 1d481ab | 2008-01-24 15:27:30 +0000 | [diff] [blame] | 5529 | if test "${ac_cv_header_fcntl_h+set}" = set; then |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5530 | { echo "$as_me:$LINENO: checking for fcntl.h" >&5 |
| 5531 | echo $ECHO_N "checking for fcntl.h... $ECHO_C" >&6; } |
Benny Prijono | 1d481ab | 2008-01-24 15:27:30 +0000 | [diff] [blame] | 5532 | if test "${ac_cv_header_fcntl_h+set}" = set; then |
| 5533 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5534 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5535 | { echo "$as_me:$LINENO: result: $ac_cv_header_fcntl_h" >&5 |
| 5536 | echo "${ECHO_T}$ac_cv_header_fcntl_h" >&6; } |
Benny Prijono | 1d481ab | 2008-01-24 15:27:30 +0000 | [diff] [blame] | 5537 | else |
| 5538 | # Is the header compilable? |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5539 | { echo "$as_me:$LINENO: checking fcntl.h usability" >&5 |
| 5540 | echo $ECHO_N "checking fcntl.h usability... $ECHO_C" >&6; } |
Benny Prijono | 1d481ab | 2008-01-24 15:27:30 +0000 | [diff] [blame] | 5541 | cat >conftest.$ac_ext <<_ACEOF |
| 5542 | /* confdefs.h. */ |
| 5543 | _ACEOF |
| 5544 | cat confdefs.h >>conftest.$ac_ext |
| 5545 | cat >>conftest.$ac_ext <<_ACEOF |
| 5546 | /* end confdefs.h. */ |
| 5547 | $ac_includes_default |
| 5548 | #include <fcntl.h> |
| 5549 | _ACEOF |
| 5550 | rm -f conftest.$ac_objext |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5551 | if { (ac_try="$ac_compile" |
| 5552 | case "(($ac_try" in |
| 5553 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5554 | *) ac_try_echo=$ac_try;; |
| 5555 | esac |
| 5556 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5557 | (eval "$ac_compile") 2>conftest.er1 |
Benny Prijono | 1d481ab | 2008-01-24 15:27:30 +0000 | [diff] [blame] | 5558 | ac_status=$? |
| 5559 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5560 | rm -f conftest.er1 |
| 5561 | cat conftest.err >&5 |
| 5562 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5563 | (exit $ac_status); } && { |
| 5564 | test -z "$ac_c_werror_flag" || |
| 5565 | test ! -s conftest.err |
| 5566 | } && test -s conftest.$ac_objext; then |
Benny Prijono | 1d481ab | 2008-01-24 15:27:30 +0000 | [diff] [blame] | 5567 | ac_header_compiler=yes |
| 5568 | else |
| 5569 | echo "$as_me: failed program was:" >&5 |
| 5570 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5571 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5572 | ac_header_compiler=no |
Benny Prijono | 1d481ab | 2008-01-24 15:27:30 +0000 | [diff] [blame] | 5573 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5574 | |
| 5575 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5576 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 5577 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Benny Prijono | 1d481ab | 2008-01-24 15:27:30 +0000 | [diff] [blame] | 5578 | |
| 5579 | # Is the header present? |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5580 | { echo "$as_me:$LINENO: checking fcntl.h presence" >&5 |
| 5581 | echo $ECHO_N "checking fcntl.h presence... $ECHO_C" >&6; } |
Benny Prijono | 1d481ab | 2008-01-24 15:27:30 +0000 | [diff] [blame] | 5582 | cat >conftest.$ac_ext <<_ACEOF |
| 5583 | /* confdefs.h. */ |
| 5584 | _ACEOF |
| 5585 | cat confdefs.h >>conftest.$ac_ext |
| 5586 | cat >>conftest.$ac_ext <<_ACEOF |
| 5587 | /* end confdefs.h. */ |
| 5588 | #include <fcntl.h> |
| 5589 | _ACEOF |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5590 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 5591 | case "(($ac_try" in |
| 5592 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5593 | *) ac_try_echo=$ac_try;; |
| 5594 | esac |
| 5595 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5596 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Benny Prijono | 1d481ab | 2008-01-24 15:27:30 +0000 | [diff] [blame] | 5597 | ac_status=$? |
| 5598 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5599 | rm -f conftest.er1 |
| 5600 | cat conftest.err >&5 |
| 5601 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5602 | (exit $ac_status); } >/dev/null && { |
| 5603 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 5604 | test ! -s conftest.err |
| 5605 | }; then |
Benny Prijono | 1d481ab | 2008-01-24 15:27:30 +0000 | [diff] [blame] | 5606 | ac_header_preproc=yes |
| 5607 | else |
| 5608 | echo "$as_me: failed program was:" >&5 |
| 5609 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5610 | |
| 5611 | ac_header_preproc=no |
| 5612 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5613 | |
Benny Prijono | 1d481ab | 2008-01-24 15:27:30 +0000 | [diff] [blame] | 5614 | rm -f conftest.err conftest.$ac_ext |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5615 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 5616 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Benny Prijono | 1d481ab | 2008-01-24 15:27:30 +0000 | [diff] [blame] | 5617 | |
| 5618 | # So? What about this header? |
| 5619 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 5620 | yes:no: ) |
| 5621 | { echo "$as_me:$LINENO: WARNING: fcntl.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 5622 | echo "$as_me: WARNING: fcntl.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 5623 | { echo "$as_me:$LINENO: WARNING: fcntl.h: proceeding with the compiler's result" >&5 |
| 5624 | echo "$as_me: WARNING: fcntl.h: proceeding with the compiler's result" >&2;} |
| 5625 | ac_header_preproc=yes |
| 5626 | ;; |
| 5627 | no:yes:* ) |
| 5628 | { echo "$as_me:$LINENO: WARNING: fcntl.h: present but cannot be compiled" >&5 |
| 5629 | echo "$as_me: WARNING: fcntl.h: present but cannot be compiled" >&2;} |
| 5630 | { echo "$as_me:$LINENO: WARNING: fcntl.h: check for missing prerequisite headers?" >&5 |
| 5631 | echo "$as_me: WARNING: fcntl.h: check for missing prerequisite headers?" >&2;} |
| 5632 | { echo "$as_me:$LINENO: WARNING: fcntl.h: see the Autoconf documentation" >&5 |
| 5633 | echo "$as_me: WARNING: fcntl.h: see the Autoconf documentation" >&2;} |
| 5634 | { echo "$as_me:$LINENO: WARNING: fcntl.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 5635 | echo "$as_me: WARNING: fcntl.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 5636 | { echo "$as_me:$LINENO: WARNING: fcntl.h: proceeding with the preprocessor's result" >&5 |
| 5637 | echo "$as_me: WARNING: fcntl.h: proceeding with the preprocessor's result" >&2;} |
| 5638 | { echo "$as_me:$LINENO: WARNING: fcntl.h: in the future, the compiler will take precedence" >&5 |
| 5639 | echo "$as_me: WARNING: fcntl.h: in the future, the compiler will take precedence" >&2;} |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5640 | |
Benny Prijono | 1d481ab | 2008-01-24 15:27:30 +0000 | [diff] [blame] | 5641 | ;; |
| 5642 | esac |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5643 | { echo "$as_me:$LINENO: checking for fcntl.h" >&5 |
| 5644 | echo $ECHO_N "checking for fcntl.h... $ECHO_C" >&6; } |
Benny Prijono | 1d481ab | 2008-01-24 15:27:30 +0000 | [diff] [blame] | 5645 | if test "${ac_cv_header_fcntl_h+set}" = set; then |
| 5646 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5647 | else |
| 5648 | ac_cv_header_fcntl_h=$ac_header_preproc |
| 5649 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5650 | { echo "$as_me:$LINENO: result: $ac_cv_header_fcntl_h" >&5 |
| 5651 | echo "${ECHO_T}$ac_cv_header_fcntl_h" >&6; } |
Benny Prijono | 1d481ab | 2008-01-24 15:27:30 +0000 | [diff] [blame] | 5652 | |
| 5653 | fi |
| 5654 | if test $ac_cv_header_fcntl_h = yes; then |
| 5655 | cat >>confdefs.h <<\_ACEOF |
| 5656 | #define PJ_HAS_FCNTL_H 1 |
| 5657 | _ACEOF |
| 5658 | |
| 5659 | fi |
| 5660 | |
| 5661 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5662 | if test "${ac_cv_header_linux_socket_h+set}" = set; then |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5663 | { echo "$as_me:$LINENO: checking for linux/socket.h" >&5 |
| 5664 | echo $ECHO_N "checking for linux/socket.h... $ECHO_C" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5665 | if test "${ac_cv_header_linux_socket_h+set}" = set; then |
| 5666 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5667 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5668 | { echo "$as_me:$LINENO: result: $ac_cv_header_linux_socket_h" >&5 |
| 5669 | echo "${ECHO_T}$ac_cv_header_linux_socket_h" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5670 | else |
| 5671 | # Is the header compilable? |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5672 | { echo "$as_me:$LINENO: checking linux/socket.h usability" >&5 |
| 5673 | echo $ECHO_N "checking linux/socket.h usability... $ECHO_C" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5674 | cat >conftest.$ac_ext <<_ACEOF |
| 5675 | /* confdefs.h. */ |
| 5676 | _ACEOF |
| 5677 | cat confdefs.h >>conftest.$ac_ext |
| 5678 | cat >>conftest.$ac_ext <<_ACEOF |
| 5679 | /* end confdefs.h. */ |
| 5680 | $ac_includes_default |
| 5681 | #include <linux/socket.h> |
| 5682 | _ACEOF |
| 5683 | rm -f conftest.$ac_objext |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5684 | if { (ac_try="$ac_compile" |
| 5685 | case "(($ac_try" in |
| 5686 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5687 | *) ac_try_echo=$ac_try;; |
| 5688 | esac |
| 5689 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5690 | (eval "$ac_compile") 2>conftest.er1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5691 | ac_status=$? |
| 5692 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5693 | rm -f conftest.er1 |
| 5694 | cat conftest.err >&5 |
| 5695 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5696 | (exit $ac_status); } && { |
| 5697 | test -z "$ac_c_werror_flag" || |
| 5698 | test ! -s conftest.err |
| 5699 | } && test -s conftest.$ac_objext; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5700 | ac_header_compiler=yes |
| 5701 | else |
| 5702 | echo "$as_me: failed program was:" >&5 |
| 5703 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5704 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5705 | ac_header_compiler=no |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5706 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5707 | |
| 5708 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5709 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 5710 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5711 | |
| 5712 | # Is the header present? |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5713 | { echo "$as_me:$LINENO: checking linux/socket.h presence" >&5 |
| 5714 | echo $ECHO_N "checking linux/socket.h presence... $ECHO_C" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5715 | cat >conftest.$ac_ext <<_ACEOF |
| 5716 | /* confdefs.h. */ |
| 5717 | _ACEOF |
| 5718 | cat confdefs.h >>conftest.$ac_ext |
| 5719 | cat >>conftest.$ac_ext <<_ACEOF |
| 5720 | /* end confdefs.h. */ |
| 5721 | #include <linux/socket.h> |
| 5722 | _ACEOF |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5723 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 5724 | case "(($ac_try" in |
| 5725 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5726 | *) ac_try_echo=$ac_try;; |
| 5727 | esac |
| 5728 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5729 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5730 | ac_status=$? |
| 5731 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5732 | rm -f conftest.er1 |
| 5733 | cat conftest.err >&5 |
| 5734 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5735 | (exit $ac_status); } >/dev/null && { |
| 5736 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 5737 | test ! -s conftest.err |
| 5738 | }; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5739 | ac_header_preproc=yes |
| 5740 | else |
| 5741 | echo "$as_me: failed program was:" >&5 |
| 5742 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5743 | |
| 5744 | ac_header_preproc=no |
| 5745 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5746 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5747 | rm -f conftest.err conftest.$ac_ext |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5748 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 5749 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5750 | |
| 5751 | # So? What about this header? |
| 5752 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 5753 | yes:no: ) |
| 5754 | { echo "$as_me:$LINENO: WARNING: linux/socket.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 5755 | echo "$as_me: WARNING: linux/socket.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 5756 | { echo "$as_me:$LINENO: WARNING: linux/socket.h: proceeding with the compiler's result" >&5 |
| 5757 | echo "$as_me: WARNING: linux/socket.h: proceeding with the compiler's result" >&2;} |
| 5758 | ac_header_preproc=yes |
| 5759 | ;; |
| 5760 | no:yes:* ) |
| 5761 | { echo "$as_me:$LINENO: WARNING: linux/socket.h: present but cannot be compiled" >&5 |
| 5762 | echo "$as_me: WARNING: linux/socket.h: present but cannot be compiled" >&2;} |
| 5763 | { echo "$as_me:$LINENO: WARNING: linux/socket.h: check for missing prerequisite headers?" >&5 |
| 5764 | echo "$as_me: WARNING: linux/socket.h: check for missing prerequisite headers?" >&2;} |
| 5765 | { echo "$as_me:$LINENO: WARNING: linux/socket.h: see the Autoconf documentation" >&5 |
| 5766 | echo "$as_me: WARNING: linux/socket.h: see the Autoconf documentation" >&2;} |
| 5767 | { echo "$as_me:$LINENO: WARNING: linux/socket.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 5768 | echo "$as_me: WARNING: linux/socket.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 5769 | { echo "$as_me:$LINENO: WARNING: linux/socket.h: proceeding with the preprocessor's result" >&5 |
| 5770 | echo "$as_me: WARNING: linux/socket.h: proceeding with the preprocessor's result" >&2;} |
| 5771 | { echo "$as_me:$LINENO: WARNING: linux/socket.h: in the future, the compiler will take precedence" >&5 |
| 5772 | echo "$as_me: WARNING: linux/socket.h: in the future, the compiler will take precedence" >&2;} |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5773 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5774 | ;; |
| 5775 | esac |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5776 | { echo "$as_me:$LINENO: checking for linux/socket.h" >&5 |
| 5777 | echo $ECHO_N "checking for linux/socket.h... $ECHO_C" >&6; } |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 5778 | if test "${ac_cv_header_linux_socket_h+set}" = set; then |
| 5779 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 5780 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5781 | ac_cv_header_linux_socket_h=$ac_header_preproc |
| 5782 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5783 | { echo "$as_me:$LINENO: result: $ac_cv_header_linux_socket_h" >&5 |
| 5784 | echo "${ECHO_T}$ac_cv_header_linux_socket_h" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5785 | |
| 5786 | fi |
| 5787 | if test $ac_cv_header_linux_socket_h = yes; then |
| 5788 | cat >>confdefs.h <<\_ACEOF |
| 5789 | #define PJ_HAS_LINUX_SOCKET_H 1 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 5790 | _ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5791 | |
| 5792 | fi |
| 5793 | |
| 5794 | |
| 5795 | if test "${ac_cv_header_malloc_h+set}" = set; then |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5796 | { echo "$as_me:$LINENO: checking for malloc.h" >&5 |
| 5797 | echo $ECHO_N "checking for malloc.h... $ECHO_C" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5798 | if test "${ac_cv_header_malloc_h+set}" = set; then |
| 5799 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5800 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5801 | { echo "$as_me:$LINENO: result: $ac_cv_header_malloc_h" >&5 |
| 5802 | echo "${ECHO_T}$ac_cv_header_malloc_h" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5803 | else |
| 5804 | # Is the header compilable? |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5805 | { echo "$as_me:$LINENO: checking malloc.h usability" >&5 |
| 5806 | echo $ECHO_N "checking malloc.h usability... $ECHO_C" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5807 | cat >conftest.$ac_ext <<_ACEOF |
| 5808 | /* confdefs.h. */ |
| 5809 | _ACEOF |
| 5810 | cat confdefs.h >>conftest.$ac_ext |
| 5811 | cat >>conftest.$ac_ext <<_ACEOF |
| 5812 | /* end confdefs.h. */ |
| 5813 | $ac_includes_default |
| 5814 | #include <malloc.h> |
| 5815 | _ACEOF |
| 5816 | rm -f conftest.$ac_objext |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5817 | if { (ac_try="$ac_compile" |
| 5818 | case "(($ac_try" in |
| 5819 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5820 | *) ac_try_echo=$ac_try;; |
| 5821 | esac |
| 5822 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5823 | (eval "$ac_compile") 2>conftest.er1 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 5824 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5825 | grep -v '^ *+' conftest.er1 >conftest.err |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 5826 | rm -f conftest.er1 |
| 5827 | cat conftest.err >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5828 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5829 | (exit $ac_status); } && { |
| 5830 | test -z "$ac_c_werror_flag" || |
| 5831 | test ! -s conftest.err |
| 5832 | } && test -s conftest.$ac_objext; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5833 | ac_header_compiler=yes |
| 5834 | else |
| 5835 | echo "$as_me: failed program was:" >&5 |
| 5836 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5837 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5838 | ac_header_compiler=no |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5839 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5840 | |
| 5841 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5842 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 5843 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5844 | |
| 5845 | # Is the header present? |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5846 | { echo "$as_me:$LINENO: checking malloc.h presence" >&5 |
| 5847 | echo $ECHO_N "checking malloc.h presence... $ECHO_C" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5848 | cat >conftest.$ac_ext <<_ACEOF |
| 5849 | /* confdefs.h. */ |
| 5850 | _ACEOF |
| 5851 | cat confdefs.h >>conftest.$ac_ext |
| 5852 | cat >>conftest.$ac_ext <<_ACEOF |
| 5853 | /* end confdefs.h. */ |
| 5854 | #include <malloc.h> |
| 5855 | _ACEOF |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5856 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 5857 | case "(($ac_try" in |
| 5858 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5859 | *) ac_try_echo=$ac_try;; |
| 5860 | esac |
| 5861 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5862 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5863 | ac_status=$? |
| 5864 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5865 | rm -f conftest.er1 |
| 5866 | cat conftest.err >&5 |
| 5867 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5868 | (exit $ac_status); } >/dev/null && { |
| 5869 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 5870 | test ! -s conftest.err |
| 5871 | }; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5872 | ac_header_preproc=yes |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 5873 | else |
| 5874 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5875 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5876 | |
| 5877 | ac_header_preproc=no |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 5878 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5879 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 5880 | rm -f conftest.err conftest.$ac_ext |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5881 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 5882 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 5883 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5884 | # So? What about this header? |
| 5885 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 5886 | yes:no: ) |
| 5887 | { echo "$as_me:$LINENO: WARNING: malloc.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 5888 | echo "$as_me: WARNING: malloc.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 5889 | { echo "$as_me:$LINENO: WARNING: malloc.h: proceeding with the compiler's result" >&5 |
| 5890 | echo "$as_me: WARNING: malloc.h: proceeding with the compiler's result" >&2;} |
| 5891 | ac_header_preproc=yes |
| 5892 | ;; |
| 5893 | no:yes:* ) |
| 5894 | { echo "$as_me:$LINENO: WARNING: malloc.h: present but cannot be compiled" >&5 |
| 5895 | echo "$as_me: WARNING: malloc.h: present but cannot be compiled" >&2;} |
| 5896 | { echo "$as_me:$LINENO: WARNING: malloc.h: check for missing prerequisite headers?" >&5 |
| 5897 | echo "$as_me: WARNING: malloc.h: check for missing prerequisite headers?" >&2;} |
| 5898 | { echo "$as_me:$LINENO: WARNING: malloc.h: see the Autoconf documentation" >&5 |
| 5899 | echo "$as_me: WARNING: malloc.h: see the Autoconf documentation" >&2;} |
| 5900 | { echo "$as_me:$LINENO: WARNING: malloc.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 5901 | echo "$as_me: WARNING: malloc.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 5902 | { echo "$as_me:$LINENO: WARNING: malloc.h: proceeding with the preprocessor's result" >&5 |
| 5903 | echo "$as_me: WARNING: malloc.h: proceeding with the preprocessor's result" >&2;} |
| 5904 | { echo "$as_me:$LINENO: WARNING: malloc.h: in the future, the compiler will take precedence" >&5 |
| 5905 | echo "$as_me: WARNING: malloc.h: in the future, the compiler will take precedence" >&2;} |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5906 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5907 | ;; |
| 5908 | esac |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5909 | { echo "$as_me:$LINENO: checking for malloc.h" >&5 |
| 5910 | echo $ECHO_N "checking for malloc.h... $ECHO_C" >&6; } |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 5911 | if test "${ac_cv_header_malloc_h+set}" = set; then |
| 5912 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 5913 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5914 | ac_cv_header_malloc_h=$ac_header_preproc |
| 5915 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5916 | { echo "$as_me:$LINENO: result: $ac_cv_header_malloc_h" >&5 |
| 5917 | echo "${ECHO_T}$ac_cv_header_malloc_h" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5918 | |
| 5919 | fi |
| 5920 | if test $ac_cv_header_malloc_h = yes; then |
| 5921 | cat >>confdefs.h <<\_ACEOF |
| 5922 | #define PJ_HAS_MALLOC_H 1 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 5923 | _ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5924 | |
| 5925 | fi |
| 5926 | |
| 5927 | |
| 5928 | if test "${ac_cv_header_netdb_h+set}" = set; then |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5929 | { echo "$as_me:$LINENO: checking for netdb.h" >&5 |
| 5930 | echo $ECHO_N "checking for netdb.h... $ECHO_C" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5931 | if test "${ac_cv_header_netdb_h+set}" = set; then |
| 5932 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5933 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5934 | { echo "$as_me:$LINENO: result: $ac_cv_header_netdb_h" >&5 |
| 5935 | echo "${ECHO_T}$ac_cv_header_netdb_h" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5936 | else |
| 5937 | # Is the header compilable? |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5938 | { echo "$as_me:$LINENO: checking netdb.h usability" >&5 |
| 5939 | echo $ECHO_N "checking netdb.h usability... $ECHO_C" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5940 | cat >conftest.$ac_ext <<_ACEOF |
| 5941 | /* confdefs.h. */ |
| 5942 | _ACEOF |
| 5943 | cat confdefs.h >>conftest.$ac_ext |
| 5944 | cat >>conftest.$ac_ext <<_ACEOF |
| 5945 | /* end confdefs.h. */ |
| 5946 | $ac_includes_default |
| 5947 | #include <netdb.h> |
| 5948 | _ACEOF |
| 5949 | rm -f conftest.$ac_objext |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5950 | if { (ac_try="$ac_compile" |
| 5951 | case "(($ac_try" in |
| 5952 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5953 | *) ac_try_echo=$ac_try;; |
| 5954 | esac |
| 5955 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5956 | (eval "$ac_compile") 2>conftest.er1 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 5957 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5958 | grep -v '^ *+' conftest.er1 >conftest.err |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 5959 | rm -f conftest.er1 |
| 5960 | cat conftest.err >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5961 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5962 | (exit $ac_status); } && { |
| 5963 | test -z "$ac_c_werror_flag" || |
| 5964 | test ! -s conftest.err |
| 5965 | } && test -s conftest.$ac_objext; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5966 | ac_header_compiler=yes |
| 5967 | else |
| 5968 | echo "$as_me: failed program was:" >&5 |
| 5969 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5970 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5971 | ac_header_compiler=no |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5972 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5973 | |
| 5974 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5975 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 5976 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5977 | |
| 5978 | # Is the header present? |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5979 | { echo "$as_me:$LINENO: checking netdb.h presence" >&5 |
| 5980 | echo $ECHO_N "checking netdb.h presence... $ECHO_C" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5981 | cat >conftest.$ac_ext <<_ACEOF |
| 5982 | /* confdefs.h. */ |
| 5983 | _ACEOF |
| 5984 | cat confdefs.h >>conftest.$ac_ext |
| 5985 | cat >>conftest.$ac_ext <<_ACEOF |
| 5986 | /* end confdefs.h. */ |
| 5987 | #include <netdb.h> |
| 5988 | _ACEOF |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5989 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 5990 | case "(($ac_try" in |
| 5991 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5992 | *) ac_try_echo=$ac_try;; |
| 5993 | esac |
| 5994 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5995 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5996 | ac_status=$? |
| 5997 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5998 | rm -f conftest.er1 |
| 5999 | cat conftest.err >&5 |
| 6000 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 6001 | (exit $ac_status); } >/dev/null && { |
| 6002 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 6003 | test ! -s conftest.err |
| 6004 | }; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6005 | ac_header_preproc=yes |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6006 | else |
| 6007 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6008 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6009 | |
| 6010 | ac_header_preproc=no |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6011 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 6012 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6013 | rm -f conftest.err conftest.$ac_ext |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 6014 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 6015 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 6016 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6017 | # So? What about this header? |
| 6018 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 6019 | yes:no: ) |
| 6020 | { echo "$as_me:$LINENO: WARNING: netdb.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 6021 | echo "$as_me: WARNING: netdb.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 6022 | { echo "$as_me:$LINENO: WARNING: netdb.h: proceeding with the compiler's result" >&5 |
| 6023 | echo "$as_me: WARNING: netdb.h: proceeding with the compiler's result" >&2;} |
| 6024 | ac_header_preproc=yes |
| 6025 | ;; |
| 6026 | no:yes:* ) |
| 6027 | { echo "$as_me:$LINENO: WARNING: netdb.h: present but cannot be compiled" >&5 |
| 6028 | echo "$as_me: WARNING: netdb.h: present but cannot be compiled" >&2;} |
| 6029 | { echo "$as_me:$LINENO: WARNING: netdb.h: check for missing prerequisite headers?" >&5 |
| 6030 | echo "$as_me: WARNING: netdb.h: check for missing prerequisite headers?" >&2;} |
| 6031 | { echo "$as_me:$LINENO: WARNING: netdb.h: see the Autoconf documentation" >&5 |
| 6032 | echo "$as_me: WARNING: netdb.h: see the Autoconf documentation" >&2;} |
| 6033 | { echo "$as_me:$LINENO: WARNING: netdb.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 6034 | echo "$as_me: WARNING: netdb.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 6035 | { echo "$as_me:$LINENO: WARNING: netdb.h: proceeding with the preprocessor's result" >&5 |
| 6036 | echo "$as_me: WARNING: netdb.h: proceeding with the preprocessor's result" >&2;} |
| 6037 | { echo "$as_me:$LINENO: WARNING: netdb.h: in the future, the compiler will take precedence" >&5 |
| 6038 | echo "$as_me: WARNING: netdb.h: in the future, the compiler will take precedence" >&2;} |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 6039 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6040 | ;; |
| 6041 | esac |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 6042 | { echo "$as_me:$LINENO: checking for netdb.h" >&5 |
| 6043 | echo $ECHO_N "checking for netdb.h... $ECHO_C" >&6; } |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 6044 | if test "${ac_cv_header_netdb_h+set}" = set; then |
| 6045 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 6046 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6047 | ac_cv_header_netdb_h=$ac_header_preproc |
| 6048 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 6049 | { echo "$as_me:$LINENO: result: $ac_cv_header_netdb_h" >&5 |
| 6050 | echo "${ECHO_T}$ac_cv_header_netdb_h" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6051 | |
| 6052 | fi |
| 6053 | if test $ac_cv_header_netdb_h = yes; then |
| 6054 | cat >>confdefs.h <<\_ACEOF |
| 6055 | #define PJ_HAS_NETDB_H 1 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 6056 | _ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6057 | |
| 6058 | fi |
| 6059 | |
| 6060 | |
Benny Prijono | 37fc9de | 2008-08-04 14:45:02 +0000 | [diff] [blame] | 6061 | if test "${ac_cv_header_netinet_in_systm_h+set}" = set; then |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 6062 | { echo "$as_me:$LINENO: checking for netinet/in_systm.h" >&5 |
| 6063 | echo $ECHO_N "checking for netinet/in_systm.h... $ECHO_C" >&6; } |
Benny Prijono | 37fc9de | 2008-08-04 14:45:02 +0000 | [diff] [blame] | 6064 | if test "${ac_cv_header_netinet_in_systm_h+set}" = set; then |
| 6065 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6066 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 6067 | { echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_systm_h" >&5 |
| 6068 | echo "${ECHO_T}$ac_cv_header_netinet_in_systm_h" >&6; } |
Benny Prijono | 37fc9de | 2008-08-04 14:45:02 +0000 | [diff] [blame] | 6069 | else |
| 6070 | # Is the header compilable? |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 6071 | { echo "$as_me:$LINENO: checking netinet/in_systm.h usability" >&5 |
| 6072 | echo $ECHO_N "checking netinet/in_systm.h usability... $ECHO_C" >&6; } |
Benny Prijono | 37fc9de | 2008-08-04 14:45:02 +0000 | [diff] [blame] | 6073 | cat >conftest.$ac_ext <<_ACEOF |
| 6074 | /* confdefs.h. */ |
| 6075 | _ACEOF |
| 6076 | cat confdefs.h >>conftest.$ac_ext |
| 6077 | cat >>conftest.$ac_ext <<_ACEOF |
| 6078 | /* end confdefs.h. */ |
| 6079 | $ac_includes_default |
| 6080 | #include <netinet/in_systm.h> |
| 6081 | _ACEOF |
| 6082 | rm -f conftest.$ac_objext |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 6083 | if { (ac_try="$ac_compile" |
| 6084 | case "(($ac_try" in |
| 6085 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6086 | *) ac_try_echo=$ac_try;; |
| 6087 | esac |
| 6088 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6089 | (eval "$ac_compile") 2>conftest.er1 |
Benny Prijono | 37fc9de | 2008-08-04 14:45:02 +0000 | [diff] [blame] | 6090 | ac_status=$? |
| 6091 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6092 | rm -f conftest.er1 |
| 6093 | cat conftest.err >&5 |
| 6094 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 6095 | (exit $ac_status); } && { |
| 6096 | test -z "$ac_c_werror_flag" || |
| 6097 | test ! -s conftest.err |
| 6098 | } && test -s conftest.$ac_objext; then |
Benny Prijono | 37fc9de | 2008-08-04 14:45:02 +0000 | [diff] [blame] | 6099 | ac_header_compiler=yes |
| 6100 | else |
| 6101 | echo "$as_me: failed program was:" >&5 |
| 6102 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6103 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 6104 | ac_header_compiler=no |
Benny Prijono | 37fc9de | 2008-08-04 14:45:02 +0000 | [diff] [blame] | 6105 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 6106 | |
| 6107 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6108 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 6109 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Benny Prijono | 37fc9de | 2008-08-04 14:45:02 +0000 | [diff] [blame] | 6110 | |
| 6111 | # Is the header present? |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 6112 | { echo "$as_me:$LINENO: checking netinet/in_systm.h presence" >&5 |
| 6113 | echo $ECHO_N "checking netinet/in_systm.h presence... $ECHO_C" >&6; } |
Benny Prijono | 37fc9de | 2008-08-04 14:45:02 +0000 | [diff] [blame] | 6114 | cat >conftest.$ac_ext <<_ACEOF |
| 6115 | /* confdefs.h. */ |
| 6116 | _ACEOF |
| 6117 | cat confdefs.h >>conftest.$ac_ext |
| 6118 | cat >>conftest.$ac_ext <<_ACEOF |
| 6119 | /* end confdefs.h. */ |
| 6120 | #include <netinet/in_systm.h> |
| 6121 | _ACEOF |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 6122 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 6123 | case "(($ac_try" in |
| 6124 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6125 | *) ac_try_echo=$ac_try;; |
| 6126 | esac |
| 6127 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6128 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Benny Prijono | 37fc9de | 2008-08-04 14:45:02 +0000 | [diff] [blame] | 6129 | ac_status=$? |
| 6130 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6131 | rm -f conftest.er1 |
| 6132 | cat conftest.err >&5 |
| 6133 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 6134 | (exit $ac_status); } >/dev/null && { |
| 6135 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 6136 | test ! -s conftest.err |
| 6137 | }; then |
Benny Prijono | 37fc9de | 2008-08-04 14:45:02 +0000 | [diff] [blame] | 6138 | ac_header_preproc=yes |
| 6139 | else |
| 6140 | echo "$as_me: failed program was:" >&5 |
| 6141 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6142 | |
| 6143 | ac_header_preproc=no |
| 6144 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 6145 | |
Benny Prijono | 37fc9de | 2008-08-04 14:45:02 +0000 | [diff] [blame] | 6146 | rm -f conftest.err conftest.$ac_ext |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 6147 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 6148 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Benny Prijono | 37fc9de | 2008-08-04 14:45:02 +0000 | [diff] [blame] | 6149 | |
| 6150 | # So? What about this header? |
| 6151 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 6152 | yes:no: ) |
| 6153 | { echo "$as_me:$LINENO: WARNING: netinet/in_systm.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 6154 | echo "$as_me: WARNING: netinet/in_systm.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 6155 | { echo "$as_me:$LINENO: WARNING: netinet/in_systm.h: proceeding with the compiler's result" >&5 |
| 6156 | echo "$as_me: WARNING: netinet/in_systm.h: proceeding with the compiler's result" >&2;} |
| 6157 | ac_header_preproc=yes |
| 6158 | ;; |
| 6159 | no:yes:* ) |
| 6160 | { echo "$as_me:$LINENO: WARNING: netinet/in_systm.h: present but cannot be compiled" >&5 |
| 6161 | echo "$as_me: WARNING: netinet/in_systm.h: present but cannot be compiled" >&2;} |
| 6162 | { echo "$as_me:$LINENO: WARNING: netinet/in_systm.h: check for missing prerequisite headers?" >&5 |
| 6163 | echo "$as_me: WARNING: netinet/in_systm.h: check for missing prerequisite headers?" >&2;} |
| 6164 | { echo "$as_me:$LINENO: WARNING: netinet/in_systm.h: see the Autoconf documentation" >&5 |
| 6165 | echo "$as_me: WARNING: netinet/in_systm.h: see the Autoconf documentation" >&2;} |
| 6166 | { echo "$as_me:$LINENO: WARNING: netinet/in_systm.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 6167 | echo "$as_me: WARNING: netinet/in_systm.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 6168 | { echo "$as_me:$LINENO: WARNING: netinet/in_systm.h: proceeding with the preprocessor's result" >&5 |
| 6169 | echo "$as_me: WARNING: netinet/in_systm.h: proceeding with the preprocessor's result" >&2;} |
| 6170 | { echo "$as_me:$LINENO: WARNING: netinet/in_systm.h: in the future, the compiler will take precedence" >&5 |
| 6171 | echo "$as_me: WARNING: netinet/in_systm.h: in the future, the compiler will take precedence" >&2;} |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 6172 | |
Benny Prijono | 37fc9de | 2008-08-04 14:45:02 +0000 | [diff] [blame] | 6173 | ;; |
| 6174 | esac |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 6175 | { echo "$as_me:$LINENO: checking for netinet/in_systm.h" >&5 |
| 6176 | echo $ECHO_N "checking for netinet/in_systm.h... $ECHO_C" >&6; } |
Benny Prijono | 37fc9de | 2008-08-04 14:45:02 +0000 | [diff] [blame] | 6177 | if test "${ac_cv_header_netinet_in_systm_h+set}" = set; then |
| 6178 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6179 | else |
| 6180 | ac_cv_header_netinet_in_systm_h=$ac_header_preproc |
| 6181 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 6182 | { echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_systm_h" >&5 |
| 6183 | echo "${ECHO_T}$ac_cv_header_netinet_in_systm_h" >&6; } |
Benny Prijono | 37fc9de | 2008-08-04 14:45:02 +0000 | [diff] [blame] | 6184 | |
| 6185 | fi |
| 6186 | if test $ac_cv_header_netinet_in_systm_h = yes; then |
| 6187 | cat >>confdefs.h <<\_ACEOF |
| 6188 | #define PJ_HAS_NETINET_IN_SYSTM_H 1 |
| 6189 | _ACEOF |
| 6190 | |
| 6191 | fi |
| 6192 | |
| 6193 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6194 | if test "${ac_cv_header_netinet_in_h+set}" = set; then |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 6195 | { echo "$as_me:$LINENO: checking for netinet/in.h" >&5 |
| 6196 | echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6197 | if test "${ac_cv_header_netinet_in_h+set}" = set; then |
| 6198 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6199 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 6200 | { echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5 |
| 6201 | echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6202 | else |
| 6203 | # Is the header compilable? |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 6204 | { echo "$as_me:$LINENO: checking netinet/in.h usability" >&5 |
| 6205 | echo $ECHO_N "checking netinet/in.h usability... $ECHO_C" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6206 | cat >conftest.$ac_ext <<_ACEOF |
| 6207 | /* confdefs.h. */ |
| 6208 | _ACEOF |
| 6209 | cat confdefs.h >>conftest.$ac_ext |
| 6210 | cat >>conftest.$ac_ext <<_ACEOF |
| 6211 | /* end confdefs.h. */ |
| 6212 | $ac_includes_default |
| 6213 | #include <netinet/in.h> |
| 6214 | _ACEOF |
| 6215 | rm -f conftest.$ac_objext |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 6216 | if { (ac_try="$ac_compile" |
| 6217 | case "(($ac_try" in |
| 6218 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6219 | *) ac_try_echo=$ac_try;; |
| 6220 | esac |
| 6221 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6222 | (eval "$ac_compile") 2>conftest.er1 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6223 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6224 | grep -v '^ *+' conftest.er1 >conftest.err |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6225 | rm -f conftest.er1 |
| 6226 | cat conftest.err >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6227 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 6228 | (exit $ac_status); } && { |
| 6229 | test -z "$ac_c_werror_flag" || |
| 6230 | test ! -s conftest.err |
| 6231 | } && test -s conftest.$ac_objext; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6232 | ac_header_compiler=yes |
| 6233 | else |
| 6234 | echo "$as_me: failed program was:" >&5 |
| 6235 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6236 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 6237 | ac_header_compiler=no |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6238 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 6239 | |
| 6240 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6241 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 6242 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6243 | |
| 6244 | # Is the header present? |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 6245 | { echo "$as_me:$LINENO: checking netinet/in.h presence" >&5 |
| 6246 | echo $ECHO_N "checking netinet/in.h presence... $ECHO_C" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6247 | cat >conftest.$ac_ext <<_ACEOF |
| 6248 | /* confdefs.h. */ |
| 6249 | _ACEOF |
| 6250 | cat confdefs.h >>conftest.$ac_ext |
| 6251 | cat >>conftest.$ac_ext <<_ACEOF |
| 6252 | /* end confdefs.h. */ |
| 6253 | #include <netinet/in.h> |
| 6254 | _ACEOF |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 6255 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 6256 | case "(($ac_try" in |
| 6257 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6258 | *) ac_try_echo=$ac_try;; |
| 6259 | esac |
| 6260 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6261 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6262 | ac_status=$? |
| 6263 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6264 | rm -f conftest.er1 |
| 6265 | cat conftest.err >&5 |
| 6266 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 6267 | (exit $ac_status); } >/dev/null && { |
| 6268 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 6269 | test ! -s conftest.err |
| 6270 | }; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6271 | ac_header_preproc=yes |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6272 | else |
| 6273 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6274 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6275 | |
| 6276 | ac_header_preproc=no |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6277 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 6278 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6279 | rm -f conftest.err conftest.$ac_ext |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 6280 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 6281 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 6282 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6283 | # So? What about this header? |
| 6284 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 6285 | yes:no: ) |
| 6286 | { echo "$as_me:$LINENO: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 6287 | echo "$as_me: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 6288 | { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the compiler's result" >&5 |
| 6289 | echo "$as_me: WARNING: netinet/in.h: proceeding with the compiler's result" >&2;} |
| 6290 | ac_header_preproc=yes |
| 6291 | ;; |
| 6292 | no:yes:* ) |
| 6293 | { echo "$as_me:$LINENO: WARNING: netinet/in.h: present but cannot be compiled" >&5 |
| 6294 | echo "$as_me: WARNING: netinet/in.h: present but cannot be compiled" >&2;} |
| 6295 | { echo "$as_me:$LINENO: WARNING: netinet/in.h: check for missing prerequisite headers?" >&5 |
| 6296 | echo "$as_me: WARNING: netinet/in.h: check for missing prerequisite headers?" >&2;} |
| 6297 | { echo "$as_me:$LINENO: WARNING: netinet/in.h: see the Autoconf documentation" >&5 |
| 6298 | echo "$as_me: WARNING: netinet/in.h: see the Autoconf documentation" >&2;} |
| 6299 | { echo "$as_me:$LINENO: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 6300 | echo "$as_me: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 6301 | { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&5 |
| 6302 | echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&2;} |
| 6303 | { echo "$as_me:$LINENO: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&5 |
| 6304 | echo "$as_me: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&2;} |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 6305 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6306 | ;; |
| 6307 | esac |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 6308 | { echo "$as_me:$LINENO: checking for netinet/in.h" >&5 |
| 6309 | echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6; } |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 6310 | if test "${ac_cv_header_netinet_in_h+set}" = set; then |
| 6311 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 6312 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6313 | ac_cv_header_netinet_in_h=$ac_header_preproc |
| 6314 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 6315 | { echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5 |
| 6316 | echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6317 | |
| 6318 | fi |
| 6319 | if test $ac_cv_header_netinet_in_h = yes; then |
| 6320 | cat >>confdefs.h <<\_ACEOF |
| 6321 | #define PJ_HAS_NETINET_IN_H 1 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 6322 | _ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6323 | |
| 6324 | fi |
| 6325 | |
| 6326 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 6327 | { echo "$as_me:$LINENO: checking for netinet/ip.h" >&5 |
| 6328 | echo $ECHO_N "checking for netinet/ip.h... $ECHO_C" >&6; } |
Benny Prijono | f63a255 | 2007-02-01 00:36:52 +0000 | [diff] [blame] | 6329 | if test "${ac_cv_header_netinet_ip_h+set}" = set; then |
| 6330 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Benny Prijono | f63a255 | 2007-02-01 00:36:52 +0000 | [diff] [blame] | 6331 | else |
Benny Prijono | 37fc9de | 2008-08-04 14:45:02 +0000 | [diff] [blame] | 6332 | cat >conftest.$ac_ext <<_ACEOF |
Benny Prijono | f63a255 | 2007-02-01 00:36:52 +0000 | [diff] [blame] | 6333 | /* confdefs.h. */ |
| 6334 | _ACEOF |
| 6335 | cat confdefs.h >>conftest.$ac_ext |
| 6336 | cat >>conftest.$ac_ext <<_ACEOF |
| 6337 | /* end confdefs.h. */ |
Benny Prijono | 37fc9de | 2008-08-04 14:45:02 +0000 | [diff] [blame] | 6338 | #if PJ_HAS_NETINET_IN_SYSTM_H |
| 6339 | # include <netinet/in_systm.h> |
| 6340 | #endif |
| 6341 | |
| 6342 | |
Benny Prijono | f63a255 | 2007-02-01 00:36:52 +0000 | [diff] [blame] | 6343 | #include <netinet/ip.h> |
| 6344 | _ACEOF |
| 6345 | rm -f conftest.$ac_objext |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 6346 | if { (ac_try="$ac_compile" |
| 6347 | case "(($ac_try" in |
| 6348 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6349 | *) ac_try_echo=$ac_try;; |
| 6350 | esac |
| 6351 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6352 | (eval "$ac_compile") 2>conftest.er1 |
Benny Prijono | f63a255 | 2007-02-01 00:36:52 +0000 | [diff] [blame] | 6353 | ac_status=$? |
| 6354 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6355 | rm -f conftest.er1 |
| 6356 | cat conftest.err >&5 |
| 6357 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 6358 | (exit $ac_status); } && { |
| 6359 | test -z "$ac_c_werror_flag" || |
| 6360 | test ! -s conftest.err |
| 6361 | } && test -s conftest.$ac_objext; then |
Benny Prijono | 37fc9de | 2008-08-04 14:45:02 +0000 | [diff] [blame] | 6362 | ac_cv_header_netinet_ip_h=yes |
Benny Prijono | f63a255 | 2007-02-01 00:36:52 +0000 | [diff] [blame] | 6363 | else |
| 6364 | echo "$as_me: failed program was:" >&5 |
| 6365 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6366 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 6367 | ac_cv_header_netinet_ip_h=no |
Benny Prijono | f63a255 | 2007-02-01 00:36:52 +0000 | [diff] [blame] | 6368 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 6369 | |
| 6370 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Benny Prijono | f63a255 | 2007-02-01 00:36:52 +0000 | [diff] [blame] | 6371 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 6372 | { echo "$as_me:$LINENO: result: $ac_cv_header_netinet_ip_h" >&5 |
| 6373 | echo "${ECHO_T}$ac_cv_header_netinet_ip_h" >&6; } |
Benny Prijono | f63a255 | 2007-02-01 00:36:52 +0000 | [diff] [blame] | 6374 | if test $ac_cv_header_netinet_ip_h = yes; then |
| 6375 | cat >>confdefs.h <<\_ACEOF |
| 6376 | #define PJ_HAS_NETINET_IP_H 1 |
| 6377 | _ACEOF |
| 6378 | |
| 6379 | fi |
| 6380 | |
| 6381 | |
Benny Prijono | 1d61ba5 | 2009-10-24 00:00:40 +0000 | [diff] [blame] | 6382 | if test "${ac_cv_header_netinet_tcp_h+set}" = set; then |
| 6383 | { echo "$as_me:$LINENO: checking for netinet/tcp.h" >&5 |
| 6384 | echo $ECHO_N "checking for netinet/tcp.h... $ECHO_C" >&6; } |
| 6385 | if test "${ac_cv_header_netinet_tcp_h+set}" = set; then |
| 6386 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6387 | fi |
| 6388 | { echo "$as_me:$LINENO: result: $ac_cv_header_netinet_tcp_h" >&5 |
| 6389 | echo "${ECHO_T}$ac_cv_header_netinet_tcp_h" >&6; } |
| 6390 | else |
| 6391 | # Is the header compilable? |
| 6392 | { echo "$as_me:$LINENO: checking netinet/tcp.h usability" >&5 |
| 6393 | echo $ECHO_N "checking netinet/tcp.h usability... $ECHO_C" >&6; } |
| 6394 | cat >conftest.$ac_ext <<_ACEOF |
| 6395 | /* confdefs.h. */ |
| 6396 | _ACEOF |
| 6397 | cat confdefs.h >>conftest.$ac_ext |
| 6398 | cat >>conftest.$ac_ext <<_ACEOF |
| 6399 | /* end confdefs.h. */ |
| 6400 | $ac_includes_default |
| 6401 | #include <netinet/tcp.h> |
| 6402 | _ACEOF |
| 6403 | rm -f conftest.$ac_objext |
| 6404 | if { (ac_try="$ac_compile" |
| 6405 | case "(($ac_try" in |
| 6406 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6407 | *) ac_try_echo=$ac_try;; |
| 6408 | esac |
| 6409 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6410 | (eval "$ac_compile") 2>conftest.er1 |
| 6411 | ac_status=$? |
| 6412 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6413 | rm -f conftest.er1 |
| 6414 | cat conftest.err >&5 |
| 6415 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6416 | (exit $ac_status); } && { |
| 6417 | test -z "$ac_c_werror_flag" || |
| 6418 | test ! -s conftest.err |
| 6419 | } && test -s conftest.$ac_objext; then |
| 6420 | ac_header_compiler=yes |
| 6421 | else |
| 6422 | echo "$as_me: failed program was:" >&5 |
| 6423 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6424 | |
| 6425 | ac_header_compiler=no |
| 6426 | fi |
| 6427 | |
| 6428 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6429 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 6430 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 6431 | |
| 6432 | # Is the header present? |
| 6433 | { echo "$as_me:$LINENO: checking netinet/tcp.h presence" >&5 |
| 6434 | echo $ECHO_N "checking netinet/tcp.h presence... $ECHO_C" >&6; } |
| 6435 | cat >conftest.$ac_ext <<_ACEOF |
| 6436 | /* confdefs.h. */ |
| 6437 | _ACEOF |
| 6438 | cat confdefs.h >>conftest.$ac_ext |
| 6439 | cat >>conftest.$ac_ext <<_ACEOF |
| 6440 | /* end confdefs.h. */ |
| 6441 | #include <netinet/tcp.h> |
| 6442 | _ACEOF |
| 6443 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 6444 | case "(($ac_try" in |
| 6445 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6446 | *) ac_try_echo=$ac_try;; |
| 6447 | esac |
| 6448 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6449 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 6450 | ac_status=$? |
| 6451 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6452 | rm -f conftest.er1 |
| 6453 | cat conftest.err >&5 |
| 6454 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6455 | (exit $ac_status); } >/dev/null && { |
| 6456 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 6457 | test ! -s conftest.err |
| 6458 | }; then |
| 6459 | ac_header_preproc=yes |
| 6460 | else |
| 6461 | echo "$as_me: failed program was:" >&5 |
| 6462 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6463 | |
| 6464 | ac_header_preproc=no |
| 6465 | fi |
| 6466 | |
| 6467 | rm -f conftest.err conftest.$ac_ext |
| 6468 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 6469 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 6470 | |
| 6471 | # So? What about this header? |
| 6472 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 6473 | yes:no: ) |
| 6474 | { echo "$as_me:$LINENO: WARNING: netinet/tcp.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 6475 | echo "$as_me: WARNING: netinet/tcp.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 6476 | { echo "$as_me:$LINENO: WARNING: netinet/tcp.h: proceeding with the compiler's result" >&5 |
| 6477 | echo "$as_me: WARNING: netinet/tcp.h: proceeding with the compiler's result" >&2;} |
| 6478 | ac_header_preproc=yes |
| 6479 | ;; |
| 6480 | no:yes:* ) |
| 6481 | { echo "$as_me:$LINENO: WARNING: netinet/tcp.h: present but cannot be compiled" >&5 |
| 6482 | echo "$as_me: WARNING: netinet/tcp.h: present but cannot be compiled" >&2;} |
| 6483 | { echo "$as_me:$LINENO: WARNING: netinet/tcp.h: check for missing prerequisite headers?" >&5 |
| 6484 | echo "$as_me: WARNING: netinet/tcp.h: check for missing prerequisite headers?" >&2;} |
| 6485 | { echo "$as_me:$LINENO: WARNING: netinet/tcp.h: see the Autoconf documentation" >&5 |
| 6486 | echo "$as_me: WARNING: netinet/tcp.h: see the Autoconf documentation" >&2;} |
| 6487 | { echo "$as_me:$LINENO: WARNING: netinet/tcp.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 6488 | echo "$as_me: WARNING: netinet/tcp.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 6489 | { echo "$as_me:$LINENO: WARNING: netinet/tcp.h: proceeding with the preprocessor's result" >&5 |
| 6490 | echo "$as_me: WARNING: netinet/tcp.h: proceeding with the preprocessor's result" >&2;} |
| 6491 | { echo "$as_me:$LINENO: WARNING: netinet/tcp.h: in the future, the compiler will take precedence" >&5 |
| 6492 | echo "$as_me: WARNING: netinet/tcp.h: in the future, the compiler will take precedence" >&2;} |
| 6493 | |
| 6494 | ;; |
| 6495 | esac |
| 6496 | { echo "$as_me:$LINENO: checking for netinet/tcp.h" >&5 |
| 6497 | echo $ECHO_N "checking for netinet/tcp.h... $ECHO_C" >&6; } |
| 6498 | if test "${ac_cv_header_netinet_tcp_h+set}" = set; then |
| 6499 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6500 | else |
| 6501 | ac_cv_header_netinet_tcp_h=$ac_header_preproc |
| 6502 | fi |
| 6503 | { echo "$as_me:$LINENO: result: $ac_cv_header_netinet_tcp_h" >&5 |
| 6504 | echo "${ECHO_T}$ac_cv_header_netinet_tcp_h" >&6; } |
| 6505 | |
| 6506 | fi |
| 6507 | if test $ac_cv_header_netinet_tcp_h = yes; then |
| 6508 | cat >>confdefs.h <<\_ACEOF |
| 6509 | #define PJ_HAS_NETINET_TCP_H 1 |
| 6510 | _ACEOF |
| 6511 | |
| 6512 | fi |
| 6513 | |
| 6514 | |
Benny Prijono | 1d65f70 | 2007-12-03 04:03:17 +0000 | [diff] [blame] | 6515 | if test "${ac_cv_header_ifaddrs_h+set}" = set; then |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 6516 | { echo "$as_me:$LINENO: checking for ifaddrs.h" >&5 |
| 6517 | echo $ECHO_N "checking for ifaddrs.h... $ECHO_C" >&6; } |
Benny Prijono | 1d65f70 | 2007-12-03 04:03:17 +0000 | [diff] [blame] | 6518 | if test "${ac_cv_header_ifaddrs_h+set}" = set; then |
| 6519 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6520 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 6521 | { echo "$as_me:$LINENO: result: $ac_cv_header_ifaddrs_h" >&5 |
| 6522 | echo "${ECHO_T}$ac_cv_header_ifaddrs_h" >&6; } |
Benny Prijono | 1d65f70 | 2007-12-03 04:03:17 +0000 | [diff] [blame] | 6523 | else |
| 6524 | # Is the header compilable? |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 6525 | { echo "$as_me:$LINENO: checking ifaddrs.h usability" >&5 |
| 6526 | echo $ECHO_N "checking ifaddrs.h usability... $ECHO_C" >&6; } |
Benny Prijono | 1d65f70 | 2007-12-03 04:03:17 +0000 | [diff] [blame] | 6527 | cat >conftest.$ac_ext <<_ACEOF |
| 6528 | /* confdefs.h. */ |
| 6529 | _ACEOF |
| 6530 | cat confdefs.h >>conftest.$ac_ext |
| 6531 | cat >>conftest.$ac_ext <<_ACEOF |
| 6532 | /* end confdefs.h. */ |
| 6533 | $ac_includes_default |
| 6534 | #include <ifaddrs.h> |
| 6535 | _ACEOF |
| 6536 | rm -f conftest.$ac_objext |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 6537 | if { (ac_try="$ac_compile" |
| 6538 | case "(($ac_try" in |
| 6539 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6540 | *) ac_try_echo=$ac_try;; |
| 6541 | esac |
| 6542 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6543 | (eval "$ac_compile") 2>conftest.er1 |
Benny Prijono | 1d65f70 | 2007-12-03 04:03:17 +0000 | [diff] [blame] | 6544 | ac_status=$? |
| 6545 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6546 | rm -f conftest.er1 |
| 6547 | cat conftest.err >&5 |
| 6548 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 6549 | (exit $ac_status); } && { |
| 6550 | test -z "$ac_c_werror_flag" || |
| 6551 | test ! -s conftest.err |
| 6552 | } && test -s conftest.$ac_objext; then |
Benny Prijono | 1d65f70 | 2007-12-03 04:03:17 +0000 | [diff] [blame] | 6553 | ac_header_compiler=yes |
| 6554 | else |
| 6555 | echo "$as_me: failed program was:" >&5 |
| 6556 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6557 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 6558 | ac_header_compiler=no |
Benny Prijono | 1d65f70 | 2007-12-03 04:03:17 +0000 | [diff] [blame] | 6559 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 6560 | |
| 6561 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6562 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 6563 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Benny Prijono | 1d65f70 | 2007-12-03 04:03:17 +0000 | [diff] [blame] | 6564 | |
| 6565 | # Is the header present? |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 6566 | { echo "$as_me:$LINENO: checking ifaddrs.h presence" >&5 |
| 6567 | echo $ECHO_N "checking ifaddrs.h presence... $ECHO_C" >&6; } |
Benny Prijono | 1d65f70 | 2007-12-03 04:03:17 +0000 | [diff] [blame] | 6568 | cat >conftest.$ac_ext <<_ACEOF |
| 6569 | /* confdefs.h. */ |
| 6570 | _ACEOF |
| 6571 | cat confdefs.h >>conftest.$ac_ext |
| 6572 | cat >>conftest.$ac_ext <<_ACEOF |
| 6573 | /* end confdefs.h. */ |
| 6574 | #include <ifaddrs.h> |
| 6575 | _ACEOF |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 6576 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 6577 | case "(($ac_try" in |
| 6578 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6579 | *) ac_try_echo=$ac_try;; |
| 6580 | esac |
| 6581 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6582 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Benny Prijono | 1d65f70 | 2007-12-03 04:03:17 +0000 | [diff] [blame] | 6583 | ac_status=$? |
| 6584 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6585 | rm -f conftest.er1 |
| 6586 | cat conftest.err >&5 |
| 6587 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 6588 | (exit $ac_status); } >/dev/null && { |
| 6589 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 6590 | test ! -s conftest.err |
| 6591 | }; then |
Benny Prijono | 1d65f70 | 2007-12-03 04:03:17 +0000 | [diff] [blame] | 6592 | ac_header_preproc=yes |
| 6593 | else |
| 6594 | echo "$as_me: failed program was:" >&5 |
| 6595 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6596 | |
| 6597 | ac_header_preproc=no |
| 6598 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 6599 | |
Benny Prijono | 1d65f70 | 2007-12-03 04:03:17 +0000 | [diff] [blame] | 6600 | rm -f conftest.err conftest.$ac_ext |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 6601 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 6602 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Benny Prijono | 1d65f70 | 2007-12-03 04:03:17 +0000 | [diff] [blame] | 6603 | |
| 6604 | # So? What about this header? |
| 6605 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 6606 | yes:no: ) |
| 6607 | { echo "$as_me:$LINENO: WARNING: ifaddrs.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 6608 | echo "$as_me: WARNING: ifaddrs.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 6609 | { echo "$as_me:$LINENO: WARNING: ifaddrs.h: proceeding with the compiler's result" >&5 |
| 6610 | echo "$as_me: WARNING: ifaddrs.h: proceeding with the compiler's result" >&2;} |
| 6611 | ac_header_preproc=yes |
| 6612 | ;; |
| 6613 | no:yes:* ) |
| 6614 | { echo "$as_me:$LINENO: WARNING: ifaddrs.h: present but cannot be compiled" >&5 |
| 6615 | echo "$as_me: WARNING: ifaddrs.h: present but cannot be compiled" >&2;} |
| 6616 | { echo "$as_me:$LINENO: WARNING: ifaddrs.h: check for missing prerequisite headers?" >&5 |
| 6617 | echo "$as_me: WARNING: ifaddrs.h: check for missing prerequisite headers?" >&2;} |
| 6618 | { echo "$as_me:$LINENO: WARNING: ifaddrs.h: see the Autoconf documentation" >&5 |
| 6619 | echo "$as_me: WARNING: ifaddrs.h: see the Autoconf documentation" >&2;} |
| 6620 | { echo "$as_me:$LINENO: WARNING: ifaddrs.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 6621 | echo "$as_me: WARNING: ifaddrs.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 6622 | { echo "$as_me:$LINENO: WARNING: ifaddrs.h: proceeding with the preprocessor's result" >&5 |
| 6623 | echo "$as_me: WARNING: ifaddrs.h: proceeding with the preprocessor's result" >&2;} |
| 6624 | { echo "$as_me:$LINENO: WARNING: ifaddrs.h: in the future, the compiler will take precedence" >&5 |
| 6625 | echo "$as_me: WARNING: ifaddrs.h: in the future, the compiler will take precedence" >&2;} |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 6626 | |
Benny Prijono | 1d65f70 | 2007-12-03 04:03:17 +0000 | [diff] [blame] | 6627 | ;; |
| 6628 | esac |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 6629 | { echo "$as_me:$LINENO: checking for ifaddrs.h" >&5 |
| 6630 | echo $ECHO_N "checking for ifaddrs.h... $ECHO_C" >&6; } |
Benny Prijono | 1d65f70 | 2007-12-03 04:03:17 +0000 | [diff] [blame] | 6631 | if test "${ac_cv_header_ifaddrs_h+set}" = set; then |
| 6632 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6633 | else |
| 6634 | ac_cv_header_ifaddrs_h=$ac_header_preproc |
| 6635 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 6636 | { echo "$as_me:$LINENO: result: $ac_cv_header_ifaddrs_h" >&5 |
| 6637 | echo "${ECHO_T}$ac_cv_header_ifaddrs_h" >&6; } |
Benny Prijono | 1d65f70 | 2007-12-03 04:03:17 +0000 | [diff] [blame] | 6638 | |
| 6639 | fi |
| 6640 | if test $ac_cv_header_ifaddrs_h = yes; then |
| 6641 | cat >>confdefs.h <<\_ACEOF |
| 6642 | #define PJ_HAS_IFADDRS_H 1 |
| 6643 | _ACEOF |
| 6644 | |
| 6645 | fi |
| 6646 | |
| 6647 | |
Benny Prijono | 1c5f4e4 | 2008-02-07 13:11:39 +0000 | [diff] [blame] | 6648 | if test "${ac_cv_header_semaphore_h+set}" = set; then |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 6649 | { echo "$as_me:$LINENO: checking for semaphore.h" >&5 |
| 6650 | echo $ECHO_N "checking for semaphore.h... $ECHO_C" >&6; } |
Benny Prijono | 1c5f4e4 | 2008-02-07 13:11:39 +0000 | [diff] [blame] | 6651 | if test "${ac_cv_header_semaphore_h+set}" = set; then |
| 6652 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6653 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 6654 | { echo "$as_me:$LINENO: result: $ac_cv_header_semaphore_h" >&5 |
| 6655 | echo "${ECHO_T}$ac_cv_header_semaphore_h" >&6; } |
Benny Prijono | 1c5f4e4 | 2008-02-07 13:11:39 +0000 | [diff] [blame] | 6656 | else |
| 6657 | # Is the header compilable? |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 6658 | { echo "$as_me:$LINENO: checking semaphore.h usability" >&5 |
| 6659 | echo $ECHO_N "checking semaphore.h usability... $ECHO_C" >&6; } |
Benny Prijono | 1c5f4e4 | 2008-02-07 13:11:39 +0000 | [diff] [blame] | 6660 | cat >conftest.$ac_ext <<_ACEOF |
| 6661 | /* confdefs.h. */ |
| 6662 | _ACEOF |
| 6663 | cat confdefs.h >>conftest.$ac_ext |
| 6664 | cat >>conftest.$ac_ext <<_ACEOF |
| 6665 | /* end confdefs.h. */ |
| 6666 | $ac_includes_default |
| 6667 | #include <semaphore.h> |
| 6668 | _ACEOF |
| 6669 | rm -f conftest.$ac_objext |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 6670 | if { (ac_try="$ac_compile" |
| 6671 | case "(($ac_try" in |
| 6672 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6673 | *) ac_try_echo=$ac_try;; |
| 6674 | esac |
| 6675 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6676 | (eval "$ac_compile") 2>conftest.er1 |
Benny Prijono | 1c5f4e4 | 2008-02-07 13:11:39 +0000 | [diff] [blame] | 6677 | ac_status=$? |
| 6678 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6679 | rm -f conftest.er1 |
| 6680 | cat conftest.err >&5 |
| 6681 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 6682 | (exit $ac_status); } && { |
| 6683 | test -z "$ac_c_werror_flag" || |
| 6684 | test ! -s conftest.err |
| 6685 | } && test -s conftest.$ac_objext; then |
Benny Prijono | 1c5f4e4 | 2008-02-07 13:11:39 +0000 | [diff] [blame] | 6686 | ac_header_compiler=yes |
| 6687 | else |
| 6688 | echo "$as_me: failed program was:" >&5 |
| 6689 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6690 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 6691 | ac_header_compiler=no |
Benny Prijono | 1c5f4e4 | 2008-02-07 13:11:39 +0000 | [diff] [blame] | 6692 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 6693 | |
| 6694 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6695 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 6696 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Benny Prijono | 1c5f4e4 | 2008-02-07 13:11:39 +0000 | [diff] [blame] | 6697 | |
| 6698 | # Is the header present? |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 6699 | { echo "$as_me:$LINENO: checking semaphore.h presence" >&5 |
| 6700 | echo $ECHO_N "checking semaphore.h presence... $ECHO_C" >&6; } |
Benny Prijono | 1c5f4e4 | 2008-02-07 13:11:39 +0000 | [diff] [blame] | 6701 | cat >conftest.$ac_ext <<_ACEOF |
| 6702 | /* confdefs.h. */ |
| 6703 | _ACEOF |
| 6704 | cat confdefs.h >>conftest.$ac_ext |
| 6705 | cat >>conftest.$ac_ext <<_ACEOF |
| 6706 | /* end confdefs.h. */ |
| 6707 | #include <semaphore.h> |
| 6708 | _ACEOF |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 6709 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 6710 | case "(($ac_try" in |
| 6711 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6712 | *) ac_try_echo=$ac_try;; |
| 6713 | esac |
| 6714 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6715 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Benny Prijono | 1c5f4e4 | 2008-02-07 13:11:39 +0000 | [diff] [blame] | 6716 | ac_status=$? |
| 6717 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6718 | rm -f conftest.er1 |
| 6719 | cat conftest.err >&5 |
| 6720 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 6721 | (exit $ac_status); } >/dev/null && { |
| 6722 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 6723 | test ! -s conftest.err |
| 6724 | }; then |
Benny Prijono | 1c5f4e4 | 2008-02-07 13:11:39 +0000 | [diff] [blame] | 6725 | ac_header_preproc=yes |
| 6726 | else |
| 6727 | echo "$as_me: failed program was:" >&5 |
| 6728 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6729 | |
| 6730 | ac_header_preproc=no |
| 6731 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 6732 | |
Benny Prijono | 1c5f4e4 | 2008-02-07 13:11:39 +0000 | [diff] [blame] | 6733 | rm -f conftest.err conftest.$ac_ext |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 6734 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 6735 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Benny Prijono | 1c5f4e4 | 2008-02-07 13:11:39 +0000 | [diff] [blame] | 6736 | |
| 6737 | # So? What about this header? |
| 6738 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 6739 | yes:no: ) |
| 6740 | { echo "$as_me:$LINENO: WARNING: semaphore.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 6741 | echo "$as_me: WARNING: semaphore.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 6742 | { echo "$as_me:$LINENO: WARNING: semaphore.h: proceeding with the compiler's result" >&5 |
| 6743 | echo "$as_me: WARNING: semaphore.h: proceeding with the compiler's result" >&2;} |
| 6744 | ac_header_preproc=yes |
| 6745 | ;; |
| 6746 | no:yes:* ) |
| 6747 | { echo "$as_me:$LINENO: WARNING: semaphore.h: present but cannot be compiled" >&5 |
| 6748 | echo "$as_me: WARNING: semaphore.h: present but cannot be compiled" >&2;} |
| 6749 | { echo "$as_me:$LINENO: WARNING: semaphore.h: check for missing prerequisite headers?" >&5 |
| 6750 | echo "$as_me: WARNING: semaphore.h: check for missing prerequisite headers?" >&2;} |
| 6751 | { echo "$as_me:$LINENO: WARNING: semaphore.h: see the Autoconf documentation" >&5 |
| 6752 | echo "$as_me: WARNING: semaphore.h: see the Autoconf documentation" >&2;} |
| 6753 | { echo "$as_me:$LINENO: WARNING: semaphore.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 6754 | echo "$as_me: WARNING: semaphore.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 6755 | { echo "$as_me:$LINENO: WARNING: semaphore.h: proceeding with the preprocessor's result" >&5 |
| 6756 | echo "$as_me: WARNING: semaphore.h: proceeding with the preprocessor's result" >&2;} |
| 6757 | { echo "$as_me:$LINENO: WARNING: semaphore.h: in the future, the compiler will take precedence" >&5 |
| 6758 | echo "$as_me: WARNING: semaphore.h: in the future, the compiler will take precedence" >&2;} |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 6759 | |
Benny Prijono | 1c5f4e4 | 2008-02-07 13:11:39 +0000 | [diff] [blame] | 6760 | ;; |
| 6761 | esac |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 6762 | { echo "$as_me:$LINENO: checking for semaphore.h" >&5 |
| 6763 | echo $ECHO_N "checking for semaphore.h... $ECHO_C" >&6; } |
Benny Prijono | 1c5f4e4 | 2008-02-07 13:11:39 +0000 | [diff] [blame] | 6764 | if test "${ac_cv_header_semaphore_h+set}" = set; then |
| 6765 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6766 | else |
| 6767 | ac_cv_header_semaphore_h=$ac_header_preproc |
| 6768 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 6769 | { echo "$as_me:$LINENO: result: $ac_cv_header_semaphore_h" >&5 |
| 6770 | echo "${ECHO_T}$ac_cv_header_semaphore_h" >&6; } |
Benny Prijono | 1c5f4e4 | 2008-02-07 13:11:39 +0000 | [diff] [blame] | 6771 | |
| 6772 | fi |
| 6773 | if test $ac_cv_header_semaphore_h = yes; then |
| 6774 | cat >>confdefs.h <<\_ACEOF |
| 6775 | #define PJ_HAS_SEMAPHORE_H 1 |
| 6776 | _ACEOF |
| 6777 | |
| 6778 | fi |
| 6779 | |
| 6780 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6781 | if test "${ac_cv_header_setjmp_h+set}" = set; then |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 6782 | { echo "$as_me:$LINENO: checking for setjmp.h" >&5 |
| 6783 | echo $ECHO_N "checking for setjmp.h... $ECHO_C" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6784 | if test "${ac_cv_header_setjmp_h+set}" = set; then |
| 6785 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6786 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 6787 | { echo "$as_me:$LINENO: result: $ac_cv_header_setjmp_h" >&5 |
| 6788 | echo "${ECHO_T}$ac_cv_header_setjmp_h" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6789 | else |
| 6790 | # Is the header compilable? |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 6791 | { echo "$as_me:$LINENO: checking setjmp.h usability" >&5 |
| 6792 | echo $ECHO_N "checking setjmp.h usability... $ECHO_C" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6793 | cat >conftest.$ac_ext <<_ACEOF |
| 6794 | /* confdefs.h. */ |
| 6795 | _ACEOF |
| 6796 | cat confdefs.h >>conftest.$ac_ext |
| 6797 | cat >>conftest.$ac_ext <<_ACEOF |
| 6798 | /* end confdefs.h. */ |
| 6799 | $ac_includes_default |
| 6800 | #include <setjmp.h> |
| 6801 | _ACEOF |
| 6802 | rm -f conftest.$ac_objext |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 6803 | if { (ac_try="$ac_compile" |
| 6804 | case "(($ac_try" in |
| 6805 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6806 | *) ac_try_echo=$ac_try;; |
| 6807 | esac |
| 6808 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6809 | (eval "$ac_compile") 2>conftest.er1 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6810 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6811 | grep -v '^ *+' conftest.er1 >conftest.err |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6812 | rm -f conftest.er1 |
| 6813 | cat conftest.err >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6814 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 6815 | (exit $ac_status); } && { |
| 6816 | test -z "$ac_c_werror_flag" || |
| 6817 | test ! -s conftest.err |
| 6818 | } && test -s conftest.$ac_objext; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6819 | ac_header_compiler=yes |
| 6820 | else |
| 6821 | echo "$as_me: failed program was:" >&5 |
| 6822 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6823 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 6824 | ac_header_compiler=no |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6825 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 6826 | |
| 6827 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6828 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 6829 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6830 | |
| 6831 | # Is the header present? |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 6832 | { echo "$as_me:$LINENO: checking setjmp.h presence" >&5 |
| 6833 | echo $ECHO_N "checking setjmp.h presence... $ECHO_C" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6834 | cat >conftest.$ac_ext <<_ACEOF |
| 6835 | /* confdefs.h. */ |
| 6836 | _ACEOF |
| 6837 | cat confdefs.h >>conftest.$ac_ext |
| 6838 | cat >>conftest.$ac_ext <<_ACEOF |
| 6839 | /* end confdefs.h. */ |
| 6840 | #include <setjmp.h> |
| 6841 | _ACEOF |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 6842 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 6843 | case "(($ac_try" in |
| 6844 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6845 | *) ac_try_echo=$ac_try;; |
| 6846 | esac |
| 6847 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6848 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6849 | ac_status=$? |
| 6850 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6851 | rm -f conftest.er1 |
| 6852 | cat conftest.err >&5 |
| 6853 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 6854 | (exit $ac_status); } >/dev/null && { |
| 6855 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 6856 | test ! -s conftest.err |
| 6857 | }; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6858 | ac_header_preproc=yes |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6859 | else |
| 6860 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6861 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6862 | |
| 6863 | ac_header_preproc=no |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6864 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 6865 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6866 | rm -f conftest.err conftest.$ac_ext |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 6867 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 6868 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 6869 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6870 | # So? What about this header? |
| 6871 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 6872 | yes:no: ) |
| 6873 | { echo "$as_me:$LINENO: WARNING: setjmp.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 6874 | echo "$as_me: WARNING: setjmp.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 6875 | { echo "$as_me:$LINENO: WARNING: setjmp.h: proceeding with the compiler's result" >&5 |
| 6876 | echo "$as_me: WARNING: setjmp.h: proceeding with the compiler's result" >&2;} |
| 6877 | ac_header_preproc=yes |
| 6878 | ;; |
| 6879 | no:yes:* ) |
| 6880 | { echo "$as_me:$LINENO: WARNING: setjmp.h: present but cannot be compiled" >&5 |
| 6881 | echo "$as_me: WARNING: setjmp.h: present but cannot be compiled" >&2;} |
| 6882 | { echo "$as_me:$LINENO: WARNING: setjmp.h: check for missing prerequisite headers?" >&5 |
| 6883 | echo "$as_me: WARNING: setjmp.h: check for missing prerequisite headers?" >&2;} |
| 6884 | { echo "$as_me:$LINENO: WARNING: setjmp.h: see the Autoconf documentation" >&5 |
| 6885 | echo "$as_me: WARNING: setjmp.h: see the Autoconf documentation" >&2;} |
| 6886 | { echo "$as_me:$LINENO: WARNING: setjmp.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 6887 | echo "$as_me: WARNING: setjmp.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 6888 | { echo "$as_me:$LINENO: WARNING: setjmp.h: proceeding with the preprocessor's result" >&5 |
| 6889 | echo "$as_me: WARNING: setjmp.h: proceeding with the preprocessor's result" >&2;} |
| 6890 | { echo "$as_me:$LINENO: WARNING: setjmp.h: in the future, the compiler will take precedence" >&5 |
| 6891 | echo "$as_me: WARNING: setjmp.h: in the future, the compiler will take precedence" >&2;} |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 6892 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6893 | ;; |
| 6894 | esac |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 6895 | { echo "$as_me:$LINENO: checking for setjmp.h" >&5 |
| 6896 | echo $ECHO_N "checking for setjmp.h... $ECHO_C" >&6; } |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 6897 | if test "${ac_cv_header_setjmp_h+set}" = set; then |
| 6898 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 6899 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6900 | ac_cv_header_setjmp_h=$ac_header_preproc |
| 6901 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 6902 | { echo "$as_me:$LINENO: result: $ac_cv_header_setjmp_h" >&5 |
| 6903 | echo "${ECHO_T}$ac_cv_header_setjmp_h" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6904 | |
| 6905 | fi |
| 6906 | if test $ac_cv_header_setjmp_h = yes; then |
| 6907 | cat >>confdefs.h <<\_ACEOF |
| 6908 | #define PJ_HAS_SETJMP_H 1 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 6909 | _ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6910 | |
| 6911 | fi |
| 6912 | |
| 6913 | |
| 6914 | if test "${ac_cv_header_stdarg_h+set}" = set; then |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 6915 | { echo "$as_me:$LINENO: checking for stdarg.h" >&5 |
| 6916 | echo $ECHO_N "checking for stdarg.h... $ECHO_C" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6917 | if test "${ac_cv_header_stdarg_h+set}" = set; then |
| 6918 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6919 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 6920 | { echo "$as_me:$LINENO: result: $ac_cv_header_stdarg_h" >&5 |
| 6921 | echo "${ECHO_T}$ac_cv_header_stdarg_h" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6922 | else |
| 6923 | # Is the header compilable? |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 6924 | { echo "$as_me:$LINENO: checking stdarg.h usability" >&5 |
| 6925 | echo $ECHO_N "checking stdarg.h usability... $ECHO_C" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6926 | cat >conftest.$ac_ext <<_ACEOF |
| 6927 | /* confdefs.h. */ |
| 6928 | _ACEOF |
| 6929 | cat confdefs.h >>conftest.$ac_ext |
| 6930 | cat >>conftest.$ac_ext <<_ACEOF |
| 6931 | /* end confdefs.h. */ |
| 6932 | $ac_includes_default |
| 6933 | #include <stdarg.h> |
| 6934 | _ACEOF |
| 6935 | rm -f conftest.$ac_objext |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 6936 | if { (ac_try="$ac_compile" |
| 6937 | case "(($ac_try" in |
| 6938 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6939 | *) ac_try_echo=$ac_try;; |
| 6940 | esac |
| 6941 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6942 | (eval "$ac_compile") 2>conftest.er1 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6943 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6944 | grep -v '^ *+' conftest.er1 >conftest.err |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6945 | rm -f conftest.er1 |
| 6946 | cat conftest.err >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6947 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 6948 | (exit $ac_status); } && { |
| 6949 | test -z "$ac_c_werror_flag" || |
| 6950 | test ! -s conftest.err |
| 6951 | } && test -s conftest.$ac_objext; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6952 | ac_header_compiler=yes |
| 6953 | else |
| 6954 | echo "$as_me: failed program was:" >&5 |
| 6955 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6956 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 6957 | ac_header_compiler=no |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6958 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 6959 | |
| 6960 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6961 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 6962 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6963 | |
| 6964 | # Is the header present? |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 6965 | { echo "$as_me:$LINENO: checking stdarg.h presence" >&5 |
| 6966 | echo $ECHO_N "checking stdarg.h presence... $ECHO_C" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6967 | cat >conftest.$ac_ext <<_ACEOF |
| 6968 | /* confdefs.h. */ |
| 6969 | _ACEOF |
| 6970 | cat confdefs.h >>conftest.$ac_ext |
| 6971 | cat >>conftest.$ac_ext <<_ACEOF |
| 6972 | /* end confdefs.h. */ |
| 6973 | #include <stdarg.h> |
| 6974 | _ACEOF |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 6975 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 6976 | case "(($ac_try" in |
| 6977 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6978 | *) ac_try_echo=$ac_try;; |
| 6979 | esac |
| 6980 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6981 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6982 | ac_status=$? |
| 6983 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6984 | rm -f conftest.er1 |
| 6985 | cat conftest.err >&5 |
| 6986 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 6987 | (exit $ac_status); } >/dev/null && { |
| 6988 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 6989 | test ! -s conftest.err |
| 6990 | }; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6991 | ac_header_preproc=yes |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6992 | else |
| 6993 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6994 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6995 | |
| 6996 | ac_header_preproc=no |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6997 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 6998 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6999 | rm -f conftest.err conftest.$ac_ext |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7000 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 7001 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 7002 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7003 | # So? What about this header? |
| 7004 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 7005 | yes:no: ) |
| 7006 | { echo "$as_me:$LINENO: WARNING: stdarg.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 7007 | echo "$as_me: WARNING: stdarg.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 7008 | { echo "$as_me:$LINENO: WARNING: stdarg.h: proceeding with the compiler's result" >&5 |
| 7009 | echo "$as_me: WARNING: stdarg.h: proceeding with the compiler's result" >&2;} |
| 7010 | ac_header_preproc=yes |
| 7011 | ;; |
| 7012 | no:yes:* ) |
| 7013 | { echo "$as_me:$LINENO: WARNING: stdarg.h: present but cannot be compiled" >&5 |
| 7014 | echo "$as_me: WARNING: stdarg.h: present but cannot be compiled" >&2;} |
| 7015 | { echo "$as_me:$LINENO: WARNING: stdarg.h: check for missing prerequisite headers?" >&5 |
| 7016 | echo "$as_me: WARNING: stdarg.h: check for missing prerequisite headers?" >&2;} |
| 7017 | { echo "$as_me:$LINENO: WARNING: stdarg.h: see the Autoconf documentation" >&5 |
| 7018 | echo "$as_me: WARNING: stdarg.h: see the Autoconf documentation" >&2;} |
| 7019 | { echo "$as_me:$LINENO: WARNING: stdarg.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 7020 | echo "$as_me: WARNING: stdarg.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 7021 | { echo "$as_me:$LINENO: WARNING: stdarg.h: proceeding with the preprocessor's result" >&5 |
| 7022 | echo "$as_me: WARNING: stdarg.h: proceeding with the preprocessor's result" >&2;} |
| 7023 | { echo "$as_me:$LINENO: WARNING: stdarg.h: in the future, the compiler will take precedence" >&5 |
| 7024 | echo "$as_me: WARNING: stdarg.h: in the future, the compiler will take precedence" >&2;} |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7025 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7026 | ;; |
| 7027 | esac |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7028 | { echo "$as_me:$LINENO: checking for stdarg.h" >&5 |
| 7029 | echo $ECHO_N "checking for stdarg.h... $ECHO_C" >&6; } |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 7030 | if test "${ac_cv_header_stdarg_h+set}" = set; then |
| 7031 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 7032 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7033 | ac_cv_header_stdarg_h=$ac_header_preproc |
| 7034 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7035 | { echo "$as_me:$LINENO: result: $ac_cv_header_stdarg_h" >&5 |
| 7036 | echo "${ECHO_T}$ac_cv_header_stdarg_h" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7037 | |
| 7038 | fi |
| 7039 | if test $ac_cv_header_stdarg_h = yes; then |
| 7040 | cat >>confdefs.h <<\_ACEOF |
| 7041 | #define PJ_HAS_STDARG_H 1 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 7042 | _ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7043 | |
| 7044 | fi |
| 7045 | |
| 7046 | |
| 7047 | if test "${ac_cv_header_stddef_h+set}" = set; then |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7048 | { echo "$as_me:$LINENO: checking for stddef.h" >&5 |
| 7049 | echo $ECHO_N "checking for stddef.h... $ECHO_C" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7050 | if test "${ac_cv_header_stddef_h+set}" = set; then |
| 7051 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7052 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7053 | { echo "$as_me:$LINENO: result: $ac_cv_header_stddef_h" >&5 |
| 7054 | echo "${ECHO_T}$ac_cv_header_stddef_h" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7055 | else |
| 7056 | # Is the header compilable? |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7057 | { echo "$as_me:$LINENO: checking stddef.h usability" >&5 |
| 7058 | echo $ECHO_N "checking stddef.h usability... $ECHO_C" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7059 | cat >conftest.$ac_ext <<_ACEOF |
| 7060 | /* confdefs.h. */ |
| 7061 | _ACEOF |
| 7062 | cat confdefs.h >>conftest.$ac_ext |
| 7063 | cat >>conftest.$ac_ext <<_ACEOF |
| 7064 | /* end confdefs.h. */ |
| 7065 | $ac_includes_default |
| 7066 | #include <stddef.h> |
| 7067 | _ACEOF |
| 7068 | rm -f conftest.$ac_objext |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7069 | if { (ac_try="$ac_compile" |
| 7070 | case "(($ac_try" in |
| 7071 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7072 | *) ac_try_echo=$ac_try;; |
| 7073 | esac |
| 7074 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7075 | (eval "$ac_compile") 2>conftest.er1 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7076 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7077 | grep -v '^ *+' conftest.er1 >conftest.err |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7078 | rm -f conftest.er1 |
| 7079 | cat conftest.err >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7080 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7081 | (exit $ac_status); } && { |
| 7082 | test -z "$ac_c_werror_flag" || |
| 7083 | test ! -s conftest.err |
| 7084 | } && test -s conftest.$ac_objext; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7085 | ac_header_compiler=yes |
| 7086 | else |
| 7087 | echo "$as_me: failed program was:" >&5 |
| 7088 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7089 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7090 | ac_header_compiler=no |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7091 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7092 | |
| 7093 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7094 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 7095 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7096 | |
| 7097 | # Is the header present? |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7098 | { echo "$as_me:$LINENO: checking stddef.h presence" >&5 |
| 7099 | echo $ECHO_N "checking stddef.h presence... $ECHO_C" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7100 | cat >conftest.$ac_ext <<_ACEOF |
| 7101 | /* confdefs.h. */ |
| 7102 | _ACEOF |
| 7103 | cat confdefs.h >>conftest.$ac_ext |
| 7104 | cat >>conftest.$ac_ext <<_ACEOF |
| 7105 | /* end confdefs.h. */ |
| 7106 | #include <stddef.h> |
| 7107 | _ACEOF |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7108 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 7109 | case "(($ac_try" in |
| 7110 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7111 | *) ac_try_echo=$ac_try;; |
| 7112 | esac |
| 7113 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7114 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7115 | ac_status=$? |
| 7116 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7117 | rm -f conftest.er1 |
| 7118 | cat conftest.err >&5 |
| 7119 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7120 | (exit $ac_status); } >/dev/null && { |
| 7121 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 7122 | test ! -s conftest.err |
| 7123 | }; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7124 | ac_header_preproc=yes |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7125 | else |
| 7126 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7127 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7128 | |
| 7129 | ac_header_preproc=no |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7130 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7131 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7132 | rm -f conftest.err conftest.$ac_ext |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7133 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 7134 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 7135 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7136 | # So? What about this header? |
| 7137 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 7138 | yes:no: ) |
| 7139 | { echo "$as_me:$LINENO: WARNING: stddef.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 7140 | echo "$as_me: WARNING: stddef.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 7141 | { echo "$as_me:$LINENO: WARNING: stddef.h: proceeding with the compiler's result" >&5 |
| 7142 | echo "$as_me: WARNING: stddef.h: proceeding with the compiler's result" >&2;} |
| 7143 | ac_header_preproc=yes |
| 7144 | ;; |
| 7145 | no:yes:* ) |
| 7146 | { echo "$as_me:$LINENO: WARNING: stddef.h: present but cannot be compiled" >&5 |
| 7147 | echo "$as_me: WARNING: stddef.h: present but cannot be compiled" >&2;} |
| 7148 | { echo "$as_me:$LINENO: WARNING: stddef.h: check for missing prerequisite headers?" >&5 |
| 7149 | echo "$as_me: WARNING: stddef.h: check for missing prerequisite headers?" >&2;} |
| 7150 | { echo "$as_me:$LINENO: WARNING: stddef.h: see the Autoconf documentation" >&5 |
| 7151 | echo "$as_me: WARNING: stddef.h: see the Autoconf documentation" >&2;} |
| 7152 | { echo "$as_me:$LINENO: WARNING: stddef.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 7153 | echo "$as_me: WARNING: stddef.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 7154 | { echo "$as_me:$LINENO: WARNING: stddef.h: proceeding with the preprocessor's result" >&5 |
| 7155 | echo "$as_me: WARNING: stddef.h: proceeding with the preprocessor's result" >&2;} |
| 7156 | { echo "$as_me:$LINENO: WARNING: stddef.h: in the future, the compiler will take precedence" >&5 |
| 7157 | echo "$as_me: WARNING: stddef.h: in the future, the compiler will take precedence" >&2;} |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7158 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7159 | ;; |
| 7160 | esac |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7161 | { echo "$as_me:$LINENO: checking for stddef.h" >&5 |
| 7162 | echo $ECHO_N "checking for stddef.h... $ECHO_C" >&6; } |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 7163 | if test "${ac_cv_header_stddef_h+set}" = set; then |
| 7164 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 7165 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7166 | ac_cv_header_stddef_h=$ac_header_preproc |
| 7167 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7168 | { echo "$as_me:$LINENO: result: $ac_cv_header_stddef_h" >&5 |
| 7169 | echo "${ECHO_T}$ac_cv_header_stddef_h" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7170 | |
| 7171 | fi |
| 7172 | if test $ac_cv_header_stddef_h = yes; then |
| 7173 | cat >>confdefs.h <<\_ACEOF |
| 7174 | #define PJ_HAS_STDDEF_H 1 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 7175 | _ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7176 | |
| 7177 | fi |
| 7178 | |
| 7179 | |
| 7180 | if test "${ac_cv_header_stdio_h+set}" = set; then |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7181 | { echo "$as_me:$LINENO: checking for stdio.h" >&5 |
| 7182 | echo $ECHO_N "checking for stdio.h... $ECHO_C" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7183 | if test "${ac_cv_header_stdio_h+set}" = set; then |
| 7184 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7185 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7186 | { echo "$as_me:$LINENO: result: $ac_cv_header_stdio_h" >&5 |
| 7187 | echo "${ECHO_T}$ac_cv_header_stdio_h" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7188 | else |
| 7189 | # Is the header compilable? |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7190 | { echo "$as_me:$LINENO: checking stdio.h usability" >&5 |
| 7191 | echo $ECHO_N "checking stdio.h usability... $ECHO_C" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7192 | cat >conftest.$ac_ext <<_ACEOF |
| 7193 | /* confdefs.h. */ |
| 7194 | _ACEOF |
| 7195 | cat confdefs.h >>conftest.$ac_ext |
| 7196 | cat >>conftest.$ac_ext <<_ACEOF |
| 7197 | /* end confdefs.h. */ |
| 7198 | $ac_includes_default |
| 7199 | #include <stdio.h> |
| 7200 | _ACEOF |
| 7201 | rm -f conftest.$ac_objext |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7202 | if { (ac_try="$ac_compile" |
| 7203 | case "(($ac_try" in |
| 7204 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7205 | *) ac_try_echo=$ac_try;; |
| 7206 | esac |
| 7207 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7208 | (eval "$ac_compile") 2>conftest.er1 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7209 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7210 | grep -v '^ *+' conftest.er1 >conftest.err |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7211 | rm -f conftest.er1 |
| 7212 | cat conftest.err >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7213 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7214 | (exit $ac_status); } && { |
| 7215 | test -z "$ac_c_werror_flag" || |
| 7216 | test ! -s conftest.err |
| 7217 | } && test -s conftest.$ac_objext; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7218 | ac_header_compiler=yes |
| 7219 | else |
| 7220 | echo "$as_me: failed program was:" >&5 |
| 7221 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7222 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7223 | ac_header_compiler=no |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7224 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7225 | |
| 7226 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7227 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 7228 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7229 | |
| 7230 | # Is the header present? |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7231 | { echo "$as_me:$LINENO: checking stdio.h presence" >&5 |
| 7232 | echo $ECHO_N "checking stdio.h presence... $ECHO_C" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7233 | cat >conftest.$ac_ext <<_ACEOF |
| 7234 | /* confdefs.h. */ |
| 7235 | _ACEOF |
| 7236 | cat confdefs.h >>conftest.$ac_ext |
| 7237 | cat >>conftest.$ac_ext <<_ACEOF |
| 7238 | /* end confdefs.h. */ |
| 7239 | #include <stdio.h> |
| 7240 | _ACEOF |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7241 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 7242 | case "(($ac_try" in |
| 7243 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7244 | *) ac_try_echo=$ac_try;; |
| 7245 | esac |
| 7246 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7247 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7248 | ac_status=$? |
| 7249 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7250 | rm -f conftest.er1 |
| 7251 | cat conftest.err >&5 |
| 7252 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7253 | (exit $ac_status); } >/dev/null && { |
| 7254 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 7255 | test ! -s conftest.err |
| 7256 | }; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7257 | ac_header_preproc=yes |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7258 | else |
| 7259 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7260 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7261 | |
| 7262 | ac_header_preproc=no |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7263 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7264 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7265 | rm -f conftest.err conftest.$ac_ext |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7266 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 7267 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 7268 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7269 | # So? What about this header? |
| 7270 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 7271 | yes:no: ) |
| 7272 | { echo "$as_me:$LINENO: WARNING: stdio.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 7273 | echo "$as_me: WARNING: stdio.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 7274 | { echo "$as_me:$LINENO: WARNING: stdio.h: proceeding with the compiler's result" >&5 |
| 7275 | echo "$as_me: WARNING: stdio.h: proceeding with the compiler's result" >&2;} |
| 7276 | ac_header_preproc=yes |
| 7277 | ;; |
| 7278 | no:yes:* ) |
| 7279 | { echo "$as_me:$LINENO: WARNING: stdio.h: present but cannot be compiled" >&5 |
| 7280 | echo "$as_me: WARNING: stdio.h: present but cannot be compiled" >&2;} |
| 7281 | { echo "$as_me:$LINENO: WARNING: stdio.h: check for missing prerequisite headers?" >&5 |
| 7282 | echo "$as_me: WARNING: stdio.h: check for missing prerequisite headers?" >&2;} |
| 7283 | { echo "$as_me:$LINENO: WARNING: stdio.h: see the Autoconf documentation" >&5 |
| 7284 | echo "$as_me: WARNING: stdio.h: see the Autoconf documentation" >&2;} |
| 7285 | { echo "$as_me:$LINENO: WARNING: stdio.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 7286 | echo "$as_me: WARNING: stdio.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 7287 | { echo "$as_me:$LINENO: WARNING: stdio.h: proceeding with the preprocessor's result" >&5 |
| 7288 | echo "$as_me: WARNING: stdio.h: proceeding with the preprocessor's result" >&2;} |
| 7289 | { echo "$as_me:$LINENO: WARNING: stdio.h: in the future, the compiler will take precedence" >&5 |
| 7290 | echo "$as_me: WARNING: stdio.h: in the future, the compiler will take precedence" >&2;} |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7291 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7292 | ;; |
| 7293 | esac |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7294 | { echo "$as_me:$LINENO: checking for stdio.h" >&5 |
| 7295 | echo $ECHO_N "checking for stdio.h... $ECHO_C" >&6; } |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 7296 | if test "${ac_cv_header_stdio_h+set}" = set; then |
| 7297 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 7298 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7299 | ac_cv_header_stdio_h=$ac_header_preproc |
| 7300 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7301 | { echo "$as_me:$LINENO: result: $ac_cv_header_stdio_h" >&5 |
| 7302 | echo "${ECHO_T}$ac_cv_header_stdio_h" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7303 | |
| 7304 | fi |
| 7305 | if test $ac_cv_header_stdio_h = yes; then |
| 7306 | cat >>confdefs.h <<\_ACEOF |
| 7307 | #define PJ_HAS_STDIO_H 1 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 7308 | _ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7309 | |
| 7310 | fi |
| 7311 | |
| 7312 | |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 7313 | if test "${ac_cv_header_stdint_h+set}" = set; then |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7314 | { echo "$as_me:$LINENO: checking for stdint.h" >&5 |
| 7315 | echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6; } |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 7316 | if test "${ac_cv_header_stdint_h+set}" = set; then |
| 7317 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7318 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7319 | { echo "$as_me:$LINENO: result: $ac_cv_header_stdint_h" >&5 |
| 7320 | echo "${ECHO_T}$ac_cv_header_stdint_h" >&6; } |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 7321 | else |
| 7322 | # Is the header compilable? |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7323 | { echo "$as_me:$LINENO: checking stdint.h usability" >&5 |
| 7324 | echo $ECHO_N "checking stdint.h usability... $ECHO_C" >&6; } |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 7325 | cat >conftest.$ac_ext <<_ACEOF |
| 7326 | /* confdefs.h. */ |
| 7327 | _ACEOF |
| 7328 | cat confdefs.h >>conftest.$ac_ext |
| 7329 | cat >>conftest.$ac_ext <<_ACEOF |
| 7330 | /* end confdefs.h. */ |
| 7331 | $ac_includes_default |
| 7332 | #include <stdint.h> |
| 7333 | _ACEOF |
| 7334 | rm -f conftest.$ac_objext |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7335 | if { (ac_try="$ac_compile" |
| 7336 | case "(($ac_try" in |
| 7337 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7338 | *) ac_try_echo=$ac_try;; |
| 7339 | esac |
| 7340 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7341 | (eval "$ac_compile") 2>conftest.er1 |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 7342 | ac_status=$? |
| 7343 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7344 | rm -f conftest.er1 |
| 7345 | cat conftest.err >&5 |
| 7346 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7347 | (exit $ac_status); } && { |
| 7348 | test -z "$ac_c_werror_flag" || |
| 7349 | test ! -s conftest.err |
| 7350 | } && test -s conftest.$ac_objext; then |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 7351 | ac_header_compiler=yes |
| 7352 | else |
| 7353 | echo "$as_me: failed program was:" >&5 |
| 7354 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7355 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7356 | ac_header_compiler=no |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 7357 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7358 | |
| 7359 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7360 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 7361 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 7362 | |
| 7363 | # Is the header present? |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7364 | { echo "$as_me:$LINENO: checking stdint.h presence" >&5 |
| 7365 | echo $ECHO_N "checking stdint.h presence... $ECHO_C" >&6; } |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 7366 | cat >conftest.$ac_ext <<_ACEOF |
| 7367 | /* confdefs.h. */ |
| 7368 | _ACEOF |
| 7369 | cat confdefs.h >>conftest.$ac_ext |
| 7370 | cat >>conftest.$ac_ext <<_ACEOF |
| 7371 | /* end confdefs.h. */ |
| 7372 | #include <stdint.h> |
| 7373 | _ACEOF |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7374 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 7375 | case "(($ac_try" in |
| 7376 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7377 | *) ac_try_echo=$ac_try;; |
| 7378 | esac |
| 7379 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7380 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 7381 | ac_status=$? |
| 7382 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7383 | rm -f conftest.er1 |
| 7384 | cat conftest.err >&5 |
| 7385 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7386 | (exit $ac_status); } >/dev/null && { |
| 7387 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 7388 | test ! -s conftest.err |
| 7389 | }; then |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 7390 | ac_header_preproc=yes |
| 7391 | else |
| 7392 | echo "$as_me: failed program was:" >&5 |
| 7393 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7394 | |
| 7395 | ac_header_preproc=no |
| 7396 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7397 | |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 7398 | rm -f conftest.err conftest.$ac_ext |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7399 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 7400 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 7401 | |
| 7402 | # So? What about this header? |
| 7403 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 7404 | yes:no: ) |
| 7405 | { echo "$as_me:$LINENO: WARNING: stdint.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 7406 | echo "$as_me: WARNING: stdint.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 7407 | { echo "$as_me:$LINENO: WARNING: stdint.h: proceeding with the compiler's result" >&5 |
| 7408 | echo "$as_me: WARNING: stdint.h: proceeding with the compiler's result" >&2;} |
| 7409 | ac_header_preproc=yes |
| 7410 | ;; |
| 7411 | no:yes:* ) |
| 7412 | { echo "$as_me:$LINENO: WARNING: stdint.h: present but cannot be compiled" >&5 |
| 7413 | echo "$as_me: WARNING: stdint.h: present but cannot be compiled" >&2;} |
| 7414 | { echo "$as_me:$LINENO: WARNING: stdint.h: check for missing prerequisite headers?" >&5 |
| 7415 | echo "$as_me: WARNING: stdint.h: check for missing prerequisite headers?" >&2;} |
| 7416 | { echo "$as_me:$LINENO: WARNING: stdint.h: see the Autoconf documentation" >&5 |
| 7417 | echo "$as_me: WARNING: stdint.h: see the Autoconf documentation" >&2;} |
| 7418 | { echo "$as_me:$LINENO: WARNING: stdint.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 7419 | echo "$as_me: WARNING: stdint.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 7420 | { echo "$as_me:$LINENO: WARNING: stdint.h: proceeding with the preprocessor's result" >&5 |
| 7421 | echo "$as_me: WARNING: stdint.h: proceeding with the preprocessor's result" >&2;} |
| 7422 | { echo "$as_me:$LINENO: WARNING: stdint.h: in the future, the compiler will take precedence" >&5 |
| 7423 | echo "$as_me: WARNING: stdint.h: in the future, the compiler will take precedence" >&2;} |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7424 | |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 7425 | ;; |
| 7426 | esac |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7427 | { echo "$as_me:$LINENO: checking for stdint.h" >&5 |
| 7428 | echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6; } |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 7429 | if test "${ac_cv_header_stdint_h+set}" = set; then |
| 7430 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7431 | else |
| 7432 | ac_cv_header_stdint_h=$ac_header_preproc |
| 7433 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7434 | { echo "$as_me:$LINENO: result: $ac_cv_header_stdint_h" >&5 |
| 7435 | echo "${ECHO_T}$ac_cv_header_stdint_h" >&6; } |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 7436 | |
| 7437 | fi |
| 7438 | if test $ac_cv_header_stdint_h = yes; then |
| 7439 | cat >>confdefs.h <<\_ACEOF |
| 7440 | #define PJ_HAS_STDINT_H 1 |
| 7441 | _ACEOF |
| 7442 | |
| 7443 | fi |
| 7444 | |
| 7445 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7446 | if test "${ac_cv_header_stdlib_h+set}" = set; then |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7447 | { echo "$as_me:$LINENO: checking for stdlib.h" >&5 |
| 7448 | echo $ECHO_N "checking for stdlib.h... $ECHO_C" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7449 | if test "${ac_cv_header_stdlib_h+set}" = set; then |
| 7450 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7451 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7452 | { echo "$as_me:$LINENO: result: $ac_cv_header_stdlib_h" >&5 |
| 7453 | echo "${ECHO_T}$ac_cv_header_stdlib_h" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7454 | else |
| 7455 | # Is the header compilable? |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7456 | { echo "$as_me:$LINENO: checking stdlib.h usability" >&5 |
| 7457 | echo $ECHO_N "checking stdlib.h usability... $ECHO_C" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7458 | cat >conftest.$ac_ext <<_ACEOF |
| 7459 | /* confdefs.h. */ |
| 7460 | _ACEOF |
| 7461 | cat confdefs.h >>conftest.$ac_ext |
| 7462 | cat >>conftest.$ac_ext <<_ACEOF |
| 7463 | /* end confdefs.h. */ |
| 7464 | $ac_includes_default |
| 7465 | #include <stdlib.h> |
| 7466 | _ACEOF |
| 7467 | rm -f conftest.$ac_objext |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7468 | if { (ac_try="$ac_compile" |
| 7469 | case "(($ac_try" in |
| 7470 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7471 | *) ac_try_echo=$ac_try;; |
| 7472 | esac |
| 7473 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7474 | (eval "$ac_compile") 2>conftest.er1 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7475 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7476 | grep -v '^ *+' conftest.er1 >conftest.err |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7477 | rm -f conftest.er1 |
| 7478 | cat conftest.err >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7479 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7480 | (exit $ac_status); } && { |
| 7481 | test -z "$ac_c_werror_flag" || |
| 7482 | test ! -s conftest.err |
| 7483 | } && test -s conftest.$ac_objext; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7484 | ac_header_compiler=yes |
| 7485 | else |
| 7486 | echo "$as_me: failed program was:" >&5 |
| 7487 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7488 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7489 | ac_header_compiler=no |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7490 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7491 | |
| 7492 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7493 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 7494 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7495 | |
| 7496 | # Is the header present? |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7497 | { echo "$as_me:$LINENO: checking stdlib.h presence" >&5 |
| 7498 | echo $ECHO_N "checking stdlib.h presence... $ECHO_C" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7499 | cat >conftest.$ac_ext <<_ACEOF |
| 7500 | /* confdefs.h. */ |
| 7501 | _ACEOF |
| 7502 | cat confdefs.h >>conftest.$ac_ext |
| 7503 | cat >>conftest.$ac_ext <<_ACEOF |
| 7504 | /* end confdefs.h. */ |
| 7505 | #include <stdlib.h> |
| 7506 | _ACEOF |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7507 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 7508 | case "(($ac_try" in |
| 7509 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7510 | *) ac_try_echo=$ac_try;; |
| 7511 | esac |
| 7512 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7513 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7514 | ac_status=$? |
| 7515 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7516 | rm -f conftest.er1 |
| 7517 | cat conftest.err >&5 |
| 7518 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7519 | (exit $ac_status); } >/dev/null && { |
| 7520 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 7521 | test ! -s conftest.err |
| 7522 | }; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7523 | ac_header_preproc=yes |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7524 | else |
| 7525 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7526 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7527 | |
| 7528 | ac_header_preproc=no |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7529 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7530 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7531 | rm -f conftest.err conftest.$ac_ext |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7532 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 7533 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 7534 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7535 | # So? What about this header? |
| 7536 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 7537 | yes:no: ) |
| 7538 | { echo "$as_me:$LINENO: WARNING: stdlib.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 7539 | echo "$as_me: WARNING: stdlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 7540 | { echo "$as_me:$LINENO: WARNING: stdlib.h: proceeding with the compiler's result" >&5 |
| 7541 | echo "$as_me: WARNING: stdlib.h: proceeding with the compiler's result" >&2;} |
| 7542 | ac_header_preproc=yes |
| 7543 | ;; |
| 7544 | no:yes:* ) |
| 7545 | { echo "$as_me:$LINENO: WARNING: stdlib.h: present but cannot be compiled" >&5 |
| 7546 | echo "$as_me: WARNING: stdlib.h: present but cannot be compiled" >&2;} |
| 7547 | { echo "$as_me:$LINENO: WARNING: stdlib.h: check for missing prerequisite headers?" >&5 |
| 7548 | echo "$as_me: WARNING: stdlib.h: check for missing prerequisite headers?" >&2;} |
| 7549 | { echo "$as_me:$LINENO: WARNING: stdlib.h: see the Autoconf documentation" >&5 |
| 7550 | echo "$as_me: WARNING: stdlib.h: see the Autoconf documentation" >&2;} |
| 7551 | { echo "$as_me:$LINENO: WARNING: stdlib.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 7552 | echo "$as_me: WARNING: stdlib.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 7553 | { echo "$as_me:$LINENO: WARNING: stdlib.h: proceeding with the preprocessor's result" >&5 |
| 7554 | echo "$as_me: WARNING: stdlib.h: proceeding with the preprocessor's result" >&2;} |
| 7555 | { echo "$as_me:$LINENO: WARNING: stdlib.h: in the future, the compiler will take precedence" >&5 |
| 7556 | echo "$as_me: WARNING: stdlib.h: in the future, the compiler will take precedence" >&2;} |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7557 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7558 | ;; |
| 7559 | esac |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7560 | { echo "$as_me:$LINENO: checking for stdlib.h" >&5 |
| 7561 | echo $ECHO_N "checking for stdlib.h... $ECHO_C" >&6; } |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 7562 | if test "${ac_cv_header_stdlib_h+set}" = set; then |
| 7563 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 7564 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7565 | ac_cv_header_stdlib_h=$ac_header_preproc |
| 7566 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7567 | { echo "$as_me:$LINENO: result: $ac_cv_header_stdlib_h" >&5 |
| 7568 | echo "${ECHO_T}$ac_cv_header_stdlib_h" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7569 | |
| 7570 | fi |
| 7571 | if test $ac_cv_header_stdlib_h = yes; then |
| 7572 | cat >>confdefs.h <<\_ACEOF |
| 7573 | #define PJ_HAS_STDLIB_H 1 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 7574 | _ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7575 | |
| 7576 | fi |
| 7577 | |
| 7578 | |
| 7579 | if test "${ac_cv_header_string_h+set}" = set; then |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7580 | { echo "$as_me:$LINENO: checking for string.h" >&5 |
| 7581 | echo $ECHO_N "checking for string.h... $ECHO_C" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7582 | if test "${ac_cv_header_string_h+set}" = set; then |
| 7583 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7584 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7585 | { echo "$as_me:$LINENO: result: $ac_cv_header_string_h" >&5 |
| 7586 | echo "${ECHO_T}$ac_cv_header_string_h" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7587 | else |
| 7588 | # Is the header compilable? |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7589 | { echo "$as_me:$LINENO: checking string.h usability" >&5 |
| 7590 | echo $ECHO_N "checking string.h usability... $ECHO_C" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7591 | cat >conftest.$ac_ext <<_ACEOF |
| 7592 | /* confdefs.h. */ |
| 7593 | _ACEOF |
| 7594 | cat confdefs.h >>conftest.$ac_ext |
| 7595 | cat >>conftest.$ac_ext <<_ACEOF |
| 7596 | /* end confdefs.h. */ |
| 7597 | $ac_includes_default |
| 7598 | #include <string.h> |
| 7599 | _ACEOF |
| 7600 | rm -f conftest.$ac_objext |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7601 | if { (ac_try="$ac_compile" |
| 7602 | case "(($ac_try" in |
| 7603 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7604 | *) ac_try_echo=$ac_try;; |
| 7605 | esac |
| 7606 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7607 | (eval "$ac_compile") 2>conftest.er1 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7608 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7609 | grep -v '^ *+' conftest.er1 >conftest.err |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7610 | rm -f conftest.er1 |
| 7611 | cat conftest.err >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7612 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7613 | (exit $ac_status); } && { |
| 7614 | test -z "$ac_c_werror_flag" || |
| 7615 | test ! -s conftest.err |
| 7616 | } && test -s conftest.$ac_objext; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7617 | ac_header_compiler=yes |
| 7618 | else |
| 7619 | echo "$as_me: failed program was:" >&5 |
| 7620 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7621 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7622 | ac_header_compiler=no |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7623 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7624 | |
| 7625 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7626 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 7627 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7628 | |
| 7629 | # Is the header present? |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7630 | { echo "$as_me:$LINENO: checking string.h presence" >&5 |
| 7631 | echo $ECHO_N "checking string.h presence... $ECHO_C" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7632 | cat >conftest.$ac_ext <<_ACEOF |
| 7633 | /* confdefs.h. */ |
| 7634 | _ACEOF |
| 7635 | cat confdefs.h >>conftest.$ac_ext |
| 7636 | cat >>conftest.$ac_ext <<_ACEOF |
| 7637 | /* end confdefs.h. */ |
| 7638 | #include <string.h> |
| 7639 | _ACEOF |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7640 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 7641 | case "(($ac_try" in |
| 7642 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7643 | *) ac_try_echo=$ac_try;; |
| 7644 | esac |
| 7645 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7646 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7647 | ac_status=$? |
| 7648 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7649 | rm -f conftest.er1 |
| 7650 | cat conftest.err >&5 |
| 7651 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7652 | (exit $ac_status); } >/dev/null && { |
| 7653 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 7654 | test ! -s conftest.err |
| 7655 | }; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7656 | ac_header_preproc=yes |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7657 | else |
| 7658 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7659 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7660 | |
| 7661 | ac_header_preproc=no |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7662 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7663 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7664 | rm -f conftest.err conftest.$ac_ext |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7665 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 7666 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 7667 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7668 | # So? What about this header? |
| 7669 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 7670 | yes:no: ) |
| 7671 | { echo "$as_me:$LINENO: WARNING: string.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 7672 | echo "$as_me: WARNING: string.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 7673 | { echo "$as_me:$LINENO: WARNING: string.h: proceeding with the compiler's result" >&5 |
| 7674 | echo "$as_me: WARNING: string.h: proceeding with the compiler's result" >&2;} |
| 7675 | ac_header_preproc=yes |
| 7676 | ;; |
| 7677 | no:yes:* ) |
| 7678 | { echo "$as_me:$LINENO: WARNING: string.h: present but cannot be compiled" >&5 |
| 7679 | echo "$as_me: WARNING: string.h: present but cannot be compiled" >&2;} |
| 7680 | { echo "$as_me:$LINENO: WARNING: string.h: check for missing prerequisite headers?" >&5 |
| 7681 | echo "$as_me: WARNING: string.h: check for missing prerequisite headers?" >&2;} |
| 7682 | { echo "$as_me:$LINENO: WARNING: string.h: see the Autoconf documentation" >&5 |
| 7683 | echo "$as_me: WARNING: string.h: see the Autoconf documentation" >&2;} |
| 7684 | { echo "$as_me:$LINENO: WARNING: string.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 7685 | echo "$as_me: WARNING: string.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 7686 | { echo "$as_me:$LINENO: WARNING: string.h: proceeding with the preprocessor's result" >&5 |
| 7687 | echo "$as_me: WARNING: string.h: proceeding with the preprocessor's result" >&2;} |
| 7688 | { echo "$as_me:$LINENO: WARNING: string.h: in the future, the compiler will take precedence" >&5 |
| 7689 | echo "$as_me: WARNING: string.h: in the future, the compiler will take precedence" >&2;} |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7690 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7691 | ;; |
| 7692 | esac |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7693 | { echo "$as_me:$LINENO: checking for string.h" >&5 |
| 7694 | echo $ECHO_N "checking for string.h... $ECHO_C" >&6; } |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 7695 | if test "${ac_cv_header_string_h+set}" = set; then |
| 7696 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 7697 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7698 | ac_cv_header_string_h=$ac_header_preproc |
| 7699 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7700 | { echo "$as_me:$LINENO: result: $ac_cv_header_string_h" >&5 |
| 7701 | echo "${ECHO_T}$ac_cv_header_string_h" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7702 | |
| 7703 | fi |
| 7704 | if test $ac_cv_header_string_h = yes; then |
| 7705 | cat >>confdefs.h <<\_ACEOF |
| 7706 | #define PJ_HAS_STRING_H 1 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 7707 | _ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7708 | |
| 7709 | fi |
| 7710 | |
| 7711 | |
| 7712 | if test "${ac_cv_header_sys_ioctl_h+set}" = set; then |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7713 | { echo "$as_me:$LINENO: checking for sys/ioctl.h" >&5 |
| 7714 | echo $ECHO_N "checking for sys/ioctl.h... $ECHO_C" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7715 | if test "${ac_cv_header_sys_ioctl_h+set}" = set; then |
| 7716 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7717 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7718 | { echo "$as_me:$LINENO: result: $ac_cv_header_sys_ioctl_h" >&5 |
| 7719 | echo "${ECHO_T}$ac_cv_header_sys_ioctl_h" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7720 | else |
| 7721 | # Is the header compilable? |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7722 | { echo "$as_me:$LINENO: checking sys/ioctl.h usability" >&5 |
| 7723 | echo $ECHO_N "checking sys/ioctl.h usability... $ECHO_C" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7724 | cat >conftest.$ac_ext <<_ACEOF |
| 7725 | /* confdefs.h. */ |
| 7726 | _ACEOF |
| 7727 | cat confdefs.h >>conftest.$ac_ext |
| 7728 | cat >>conftest.$ac_ext <<_ACEOF |
| 7729 | /* end confdefs.h. */ |
| 7730 | $ac_includes_default |
| 7731 | #include <sys/ioctl.h> |
| 7732 | _ACEOF |
| 7733 | rm -f conftest.$ac_objext |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7734 | if { (ac_try="$ac_compile" |
| 7735 | case "(($ac_try" in |
| 7736 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7737 | *) ac_try_echo=$ac_try;; |
| 7738 | esac |
| 7739 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7740 | (eval "$ac_compile") 2>conftest.er1 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7741 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7742 | grep -v '^ *+' conftest.er1 >conftest.err |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7743 | rm -f conftest.er1 |
| 7744 | cat conftest.err >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7745 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7746 | (exit $ac_status); } && { |
| 7747 | test -z "$ac_c_werror_flag" || |
| 7748 | test ! -s conftest.err |
| 7749 | } && test -s conftest.$ac_objext; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7750 | ac_header_compiler=yes |
| 7751 | else |
| 7752 | echo "$as_me: failed program was:" >&5 |
| 7753 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7754 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7755 | ac_header_compiler=no |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7756 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7757 | |
| 7758 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7759 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 7760 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7761 | |
| 7762 | # Is the header present? |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7763 | { echo "$as_me:$LINENO: checking sys/ioctl.h presence" >&5 |
| 7764 | echo $ECHO_N "checking sys/ioctl.h presence... $ECHO_C" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7765 | cat >conftest.$ac_ext <<_ACEOF |
| 7766 | /* confdefs.h. */ |
| 7767 | _ACEOF |
| 7768 | cat confdefs.h >>conftest.$ac_ext |
| 7769 | cat >>conftest.$ac_ext <<_ACEOF |
| 7770 | /* end confdefs.h. */ |
| 7771 | #include <sys/ioctl.h> |
| 7772 | _ACEOF |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7773 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 7774 | case "(($ac_try" in |
| 7775 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7776 | *) ac_try_echo=$ac_try;; |
| 7777 | esac |
| 7778 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7779 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7780 | ac_status=$? |
| 7781 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7782 | rm -f conftest.er1 |
| 7783 | cat conftest.err >&5 |
| 7784 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7785 | (exit $ac_status); } >/dev/null && { |
| 7786 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 7787 | test ! -s conftest.err |
| 7788 | }; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7789 | ac_header_preproc=yes |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7790 | else |
| 7791 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7792 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7793 | |
| 7794 | ac_header_preproc=no |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7795 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7796 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7797 | rm -f conftest.err conftest.$ac_ext |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7798 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 7799 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 7800 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7801 | # So? What about this header? |
| 7802 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 7803 | yes:no: ) |
| 7804 | { echo "$as_me:$LINENO: WARNING: sys/ioctl.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 7805 | echo "$as_me: WARNING: sys/ioctl.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 7806 | { echo "$as_me:$LINENO: WARNING: sys/ioctl.h: proceeding with the compiler's result" >&5 |
| 7807 | echo "$as_me: WARNING: sys/ioctl.h: proceeding with the compiler's result" >&2;} |
| 7808 | ac_header_preproc=yes |
| 7809 | ;; |
| 7810 | no:yes:* ) |
| 7811 | { echo "$as_me:$LINENO: WARNING: sys/ioctl.h: present but cannot be compiled" >&5 |
| 7812 | echo "$as_me: WARNING: sys/ioctl.h: present but cannot be compiled" >&2;} |
| 7813 | { echo "$as_me:$LINENO: WARNING: sys/ioctl.h: check for missing prerequisite headers?" >&5 |
| 7814 | echo "$as_me: WARNING: sys/ioctl.h: check for missing prerequisite headers?" >&2;} |
| 7815 | { echo "$as_me:$LINENO: WARNING: sys/ioctl.h: see the Autoconf documentation" >&5 |
| 7816 | echo "$as_me: WARNING: sys/ioctl.h: see the Autoconf documentation" >&2;} |
| 7817 | { echo "$as_me:$LINENO: WARNING: sys/ioctl.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 7818 | echo "$as_me: WARNING: sys/ioctl.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 7819 | { echo "$as_me:$LINENO: WARNING: sys/ioctl.h: proceeding with the preprocessor's result" >&5 |
| 7820 | echo "$as_me: WARNING: sys/ioctl.h: proceeding with the preprocessor's result" >&2;} |
| 7821 | { echo "$as_me:$LINENO: WARNING: sys/ioctl.h: in the future, the compiler will take precedence" >&5 |
| 7822 | echo "$as_me: WARNING: sys/ioctl.h: in the future, the compiler will take precedence" >&2;} |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7823 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7824 | ;; |
| 7825 | esac |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7826 | { echo "$as_me:$LINENO: checking for sys/ioctl.h" >&5 |
| 7827 | echo $ECHO_N "checking for sys/ioctl.h... $ECHO_C" >&6; } |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 7828 | if test "${ac_cv_header_sys_ioctl_h+set}" = set; then |
| 7829 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 7830 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7831 | ac_cv_header_sys_ioctl_h=$ac_header_preproc |
| 7832 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7833 | { echo "$as_me:$LINENO: result: $ac_cv_header_sys_ioctl_h" >&5 |
| 7834 | echo "${ECHO_T}$ac_cv_header_sys_ioctl_h" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7835 | |
| 7836 | fi |
| 7837 | if test $ac_cv_header_sys_ioctl_h = yes; then |
| 7838 | cat >>confdefs.h <<\_ACEOF |
| 7839 | #define PJ_HAS_SYS_IOCTL_H 1 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 7840 | _ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7841 | |
| 7842 | fi |
| 7843 | |
| 7844 | |
| 7845 | if test "${ac_cv_header_sys_select_h+set}" = set; then |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7846 | { echo "$as_me:$LINENO: checking for sys/select.h" >&5 |
| 7847 | echo $ECHO_N "checking for sys/select.h... $ECHO_C" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7848 | if test "${ac_cv_header_sys_select_h+set}" = set; then |
| 7849 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7850 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7851 | { echo "$as_me:$LINENO: result: $ac_cv_header_sys_select_h" >&5 |
| 7852 | echo "${ECHO_T}$ac_cv_header_sys_select_h" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7853 | else |
| 7854 | # Is the header compilable? |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7855 | { echo "$as_me:$LINENO: checking sys/select.h usability" >&5 |
| 7856 | echo $ECHO_N "checking sys/select.h usability... $ECHO_C" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7857 | cat >conftest.$ac_ext <<_ACEOF |
| 7858 | /* confdefs.h. */ |
| 7859 | _ACEOF |
| 7860 | cat confdefs.h >>conftest.$ac_ext |
| 7861 | cat >>conftest.$ac_ext <<_ACEOF |
| 7862 | /* end confdefs.h. */ |
| 7863 | $ac_includes_default |
| 7864 | #include <sys/select.h> |
| 7865 | _ACEOF |
| 7866 | rm -f conftest.$ac_objext |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7867 | if { (ac_try="$ac_compile" |
| 7868 | case "(($ac_try" in |
| 7869 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7870 | *) ac_try_echo=$ac_try;; |
| 7871 | esac |
| 7872 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7873 | (eval "$ac_compile") 2>conftest.er1 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7874 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7875 | grep -v '^ *+' conftest.er1 >conftest.err |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7876 | rm -f conftest.er1 |
| 7877 | cat conftest.err >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7878 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7879 | (exit $ac_status); } && { |
| 7880 | test -z "$ac_c_werror_flag" || |
| 7881 | test ! -s conftest.err |
| 7882 | } && test -s conftest.$ac_objext; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7883 | ac_header_compiler=yes |
| 7884 | else |
| 7885 | echo "$as_me: failed program was:" >&5 |
| 7886 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7887 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7888 | ac_header_compiler=no |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7889 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7890 | |
| 7891 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7892 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 7893 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7894 | |
| 7895 | # Is the header present? |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7896 | { echo "$as_me:$LINENO: checking sys/select.h presence" >&5 |
| 7897 | echo $ECHO_N "checking sys/select.h presence... $ECHO_C" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7898 | cat >conftest.$ac_ext <<_ACEOF |
| 7899 | /* confdefs.h. */ |
| 7900 | _ACEOF |
| 7901 | cat confdefs.h >>conftest.$ac_ext |
| 7902 | cat >>conftest.$ac_ext <<_ACEOF |
| 7903 | /* end confdefs.h. */ |
| 7904 | #include <sys/select.h> |
| 7905 | _ACEOF |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7906 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 7907 | case "(($ac_try" in |
| 7908 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7909 | *) ac_try_echo=$ac_try;; |
| 7910 | esac |
| 7911 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7912 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7913 | ac_status=$? |
| 7914 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7915 | rm -f conftest.er1 |
| 7916 | cat conftest.err >&5 |
| 7917 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7918 | (exit $ac_status); } >/dev/null && { |
| 7919 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 7920 | test ! -s conftest.err |
| 7921 | }; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7922 | ac_header_preproc=yes |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7923 | else |
| 7924 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7925 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7926 | |
| 7927 | ac_header_preproc=no |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7928 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7929 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7930 | rm -f conftest.err conftest.$ac_ext |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7931 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 7932 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 7933 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7934 | # So? What about this header? |
| 7935 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 7936 | yes:no: ) |
| 7937 | { echo "$as_me:$LINENO: WARNING: sys/select.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 7938 | echo "$as_me: WARNING: sys/select.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 7939 | { echo "$as_me:$LINENO: WARNING: sys/select.h: proceeding with the compiler's result" >&5 |
| 7940 | echo "$as_me: WARNING: sys/select.h: proceeding with the compiler's result" >&2;} |
| 7941 | ac_header_preproc=yes |
| 7942 | ;; |
| 7943 | no:yes:* ) |
| 7944 | { echo "$as_me:$LINENO: WARNING: sys/select.h: present but cannot be compiled" >&5 |
| 7945 | echo "$as_me: WARNING: sys/select.h: present but cannot be compiled" >&2;} |
| 7946 | { echo "$as_me:$LINENO: WARNING: sys/select.h: check for missing prerequisite headers?" >&5 |
| 7947 | echo "$as_me: WARNING: sys/select.h: check for missing prerequisite headers?" >&2;} |
| 7948 | { echo "$as_me:$LINENO: WARNING: sys/select.h: see the Autoconf documentation" >&5 |
| 7949 | echo "$as_me: WARNING: sys/select.h: see the Autoconf documentation" >&2;} |
| 7950 | { echo "$as_me:$LINENO: WARNING: sys/select.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 7951 | echo "$as_me: WARNING: sys/select.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 7952 | { echo "$as_me:$LINENO: WARNING: sys/select.h: proceeding with the preprocessor's result" >&5 |
| 7953 | echo "$as_me: WARNING: sys/select.h: proceeding with the preprocessor's result" >&2;} |
| 7954 | { echo "$as_me:$LINENO: WARNING: sys/select.h: in the future, the compiler will take precedence" >&5 |
| 7955 | echo "$as_me: WARNING: sys/select.h: in the future, the compiler will take precedence" >&2;} |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7956 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7957 | ;; |
| 7958 | esac |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7959 | { echo "$as_me:$LINENO: checking for sys/select.h" >&5 |
| 7960 | echo $ECHO_N "checking for sys/select.h... $ECHO_C" >&6; } |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 7961 | if test "${ac_cv_header_sys_select_h+set}" = set; then |
| 7962 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 7963 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7964 | ac_cv_header_sys_select_h=$ac_header_preproc |
| 7965 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7966 | { echo "$as_me:$LINENO: result: $ac_cv_header_sys_select_h" >&5 |
| 7967 | echo "${ECHO_T}$ac_cv_header_sys_select_h" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7968 | |
| 7969 | fi |
| 7970 | if test $ac_cv_header_sys_select_h = yes; then |
| 7971 | cat >>confdefs.h <<\_ACEOF |
| 7972 | #define PJ_HAS_SYS_SELECT_H 1 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 7973 | _ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7974 | |
| 7975 | fi |
| 7976 | |
| 7977 | |
| 7978 | if test "${ac_cv_header_sys_socket_h+set}" = set; then |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7979 | { echo "$as_me:$LINENO: checking for sys/socket.h" >&5 |
| 7980 | echo $ECHO_N "checking for sys/socket.h... $ECHO_C" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7981 | if test "${ac_cv_header_sys_socket_h+set}" = set; then |
| 7982 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7983 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7984 | { echo "$as_me:$LINENO: result: $ac_cv_header_sys_socket_h" >&5 |
| 7985 | echo "${ECHO_T}$ac_cv_header_sys_socket_h" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7986 | else |
| 7987 | # Is the header compilable? |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7988 | { echo "$as_me:$LINENO: checking sys/socket.h usability" >&5 |
| 7989 | echo $ECHO_N "checking sys/socket.h usability... $ECHO_C" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7990 | cat >conftest.$ac_ext <<_ACEOF |
| 7991 | /* confdefs.h. */ |
| 7992 | _ACEOF |
| 7993 | cat confdefs.h >>conftest.$ac_ext |
| 7994 | cat >>conftest.$ac_ext <<_ACEOF |
| 7995 | /* end confdefs.h. */ |
| 7996 | $ac_includes_default |
| 7997 | #include <sys/socket.h> |
| 7998 | _ACEOF |
| 7999 | rm -f conftest.$ac_objext |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 8000 | if { (ac_try="$ac_compile" |
| 8001 | case "(($ac_try" in |
| 8002 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8003 | *) ac_try_echo=$ac_try;; |
| 8004 | esac |
| 8005 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8006 | (eval "$ac_compile") 2>conftest.er1 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8007 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8008 | grep -v '^ *+' conftest.er1 >conftest.err |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8009 | rm -f conftest.er1 |
| 8010 | cat conftest.err >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8011 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 8012 | (exit $ac_status); } && { |
| 8013 | test -z "$ac_c_werror_flag" || |
| 8014 | test ! -s conftest.err |
| 8015 | } && test -s conftest.$ac_objext; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8016 | ac_header_compiler=yes |
| 8017 | else |
| 8018 | echo "$as_me: failed program was:" >&5 |
| 8019 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8020 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 8021 | ac_header_compiler=no |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8022 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 8023 | |
| 8024 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 8025 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 8026 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8027 | |
| 8028 | # Is the header present? |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 8029 | { echo "$as_me:$LINENO: checking sys/socket.h presence" >&5 |
| 8030 | echo $ECHO_N "checking sys/socket.h presence... $ECHO_C" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8031 | cat >conftest.$ac_ext <<_ACEOF |
| 8032 | /* confdefs.h. */ |
| 8033 | _ACEOF |
| 8034 | cat confdefs.h >>conftest.$ac_ext |
| 8035 | cat >>conftest.$ac_ext <<_ACEOF |
| 8036 | /* end confdefs.h. */ |
| 8037 | #include <sys/socket.h> |
| 8038 | _ACEOF |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 8039 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 8040 | case "(($ac_try" in |
| 8041 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8042 | *) ac_try_echo=$ac_try;; |
| 8043 | esac |
| 8044 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8045 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8046 | ac_status=$? |
| 8047 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8048 | rm -f conftest.er1 |
| 8049 | cat conftest.err >&5 |
| 8050 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 8051 | (exit $ac_status); } >/dev/null && { |
| 8052 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 8053 | test ! -s conftest.err |
| 8054 | }; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8055 | ac_header_preproc=yes |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8056 | else |
| 8057 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8058 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8059 | |
| 8060 | ac_header_preproc=no |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8061 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 8062 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8063 | rm -f conftest.err conftest.$ac_ext |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 8064 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 8065 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 8066 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8067 | # So? What about this header? |
| 8068 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 8069 | yes:no: ) |
| 8070 | { echo "$as_me:$LINENO: WARNING: sys/socket.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 8071 | echo "$as_me: WARNING: sys/socket.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 8072 | { echo "$as_me:$LINENO: WARNING: sys/socket.h: proceeding with the compiler's result" >&5 |
| 8073 | echo "$as_me: WARNING: sys/socket.h: proceeding with the compiler's result" >&2;} |
| 8074 | ac_header_preproc=yes |
| 8075 | ;; |
| 8076 | no:yes:* ) |
| 8077 | { echo "$as_me:$LINENO: WARNING: sys/socket.h: present but cannot be compiled" >&5 |
| 8078 | echo "$as_me: WARNING: sys/socket.h: present but cannot be compiled" >&2;} |
| 8079 | { echo "$as_me:$LINENO: WARNING: sys/socket.h: check for missing prerequisite headers?" >&5 |
| 8080 | echo "$as_me: WARNING: sys/socket.h: check for missing prerequisite headers?" >&2;} |
| 8081 | { echo "$as_me:$LINENO: WARNING: sys/socket.h: see the Autoconf documentation" >&5 |
| 8082 | echo "$as_me: WARNING: sys/socket.h: see the Autoconf documentation" >&2;} |
| 8083 | { echo "$as_me:$LINENO: WARNING: sys/socket.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 8084 | echo "$as_me: WARNING: sys/socket.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 8085 | { echo "$as_me:$LINENO: WARNING: sys/socket.h: proceeding with the preprocessor's result" >&5 |
| 8086 | echo "$as_me: WARNING: sys/socket.h: proceeding with the preprocessor's result" >&2;} |
| 8087 | { echo "$as_me:$LINENO: WARNING: sys/socket.h: in the future, the compiler will take precedence" >&5 |
| 8088 | echo "$as_me: WARNING: sys/socket.h: in the future, the compiler will take precedence" >&2;} |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 8089 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8090 | ;; |
| 8091 | esac |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 8092 | { echo "$as_me:$LINENO: checking for sys/socket.h" >&5 |
| 8093 | echo $ECHO_N "checking for sys/socket.h... $ECHO_C" >&6; } |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 8094 | if test "${ac_cv_header_sys_socket_h+set}" = set; then |
| 8095 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 8096 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8097 | ac_cv_header_sys_socket_h=$ac_header_preproc |
| 8098 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 8099 | { echo "$as_me:$LINENO: result: $ac_cv_header_sys_socket_h" >&5 |
| 8100 | echo "${ECHO_T}$ac_cv_header_sys_socket_h" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8101 | |
| 8102 | fi |
| 8103 | if test $ac_cv_header_sys_socket_h = yes; then |
| 8104 | cat >>confdefs.h <<\_ACEOF |
| 8105 | #define PJ_HAS_SYS_SOCKET_H 1 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 8106 | _ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8107 | |
| 8108 | fi |
| 8109 | |
| 8110 | |
| 8111 | if test "${ac_cv_header_sys_time_h+set}" = set; then |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 8112 | { echo "$as_me:$LINENO: checking for sys/time.h" >&5 |
| 8113 | echo $ECHO_N "checking for sys/time.h... $ECHO_C" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8114 | if test "${ac_cv_header_sys_time_h+set}" = set; then |
| 8115 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8116 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 8117 | { echo "$as_me:$LINENO: result: $ac_cv_header_sys_time_h" >&5 |
| 8118 | echo "${ECHO_T}$ac_cv_header_sys_time_h" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8119 | else |
| 8120 | # Is the header compilable? |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 8121 | { echo "$as_me:$LINENO: checking sys/time.h usability" >&5 |
| 8122 | echo $ECHO_N "checking sys/time.h usability... $ECHO_C" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8123 | cat >conftest.$ac_ext <<_ACEOF |
| 8124 | /* confdefs.h. */ |
| 8125 | _ACEOF |
| 8126 | cat confdefs.h >>conftest.$ac_ext |
| 8127 | cat >>conftest.$ac_ext <<_ACEOF |
| 8128 | /* end confdefs.h. */ |
| 8129 | $ac_includes_default |
| 8130 | #include <sys/time.h> |
| 8131 | _ACEOF |
| 8132 | rm -f conftest.$ac_objext |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 8133 | if { (ac_try="$ac_compile" |
| 8134 | case "(($ac_try" in |
| 8135 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8136 | *) ac_try_echo=$ac_try;; |
| 8137 | esac |
| 8138 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8139 | (eval "$ac_compile") 2>conftest.er1 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8140 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8141 | grep -v '^ *+' conftest.er1 >conftest.err |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8142 | rm -f conftest.er1 |
| 8143 | cat conftest.err >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8144 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 8145 | (exit $ac_status); } && { |
| 8146 | test -z "$ac_c_werror_flag" || |
| 8147 | test ! -s conftest.err |
| 8148 | } && test -s conftest.$ac_objext; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8149 | ac_header_compiler=yes |
| 8150 | else |
| 8151 | echo "$as_me: failed program was:" >&5 |
| 8152 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8153 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 8154 | ac_header_compiler=no |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8155 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 8156 | |
| 8157 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 8158 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 8159 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8160 | |
| 8161 | # Is the header present? |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 8162 | { echo "$as_me:$LINENO: checking sys/time.h presence" >&5 |
| 8163 | echo $ECHO_N "checking sys/time.h presence... $ECHO_C" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8164 | cat >conftest.$ac_ext <<_ACEOF |
| 8165 | /* confdefs.h. */ |
| 8166 | _ACEOF |
| 8167 | cat confdefs.h >>conftest.$ac_ext |
| 8168 | cat >>conftest.$ac_ext <<_ACEOF |
| 8169 | /* end confdefs.h. */ |
| 8170 | #include <sys/time.h> |
| 8171 | _ACEOF |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 8172 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 8173 | case "(($ac_try" in |
| 8174 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8175 | *) ac_try_echo=$ac_try;; |
| 8176 | esac |
| 8177 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8178 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8179 | ac_status=$? |
| 8180 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8181 | rm -f conftest.er1 |
| 8182 | cat conftest.err >&5 |
| 8183 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 8184 | (exit $ac_status); } >/dev/null && { |
| 8185 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 8186 | test ! -s conftest.err |
| 8187 | }; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8188 | ac_header_preproc=yes |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8189 | else |
| 8190 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8191 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8192 | |
| 8193 | ac_header_preproc=no |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8194 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 8195 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8196 | rm -f conftest.err conftest.$ac_ext |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 8197 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 8198 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 8199 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8200 | # So? What about this header? |
| 8201 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 8202 | yes:no: ) |
| 8203 | { echo "$as_me:$LINENO: WARNING: sys/time.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 8204 | echo "$as_me: WARNING: sys/time.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 8205 | { echo "$as_me:$LINENO: WARNING: sys/time.h: proceeding with the compiler's result" >&5 |
| 8206 | echo "$as_me: WARNING: sys/time.h: proceeding with the compiler's result" >&2;} |
| 8207 | ac_header_preproc=yes |
| 8208 | ;; |
| 8209 | no:yes:* ) |
| 8210 | { echo "$as_me:$LINENO: WARNING: sys/time.h: present but cannot be compiled" >&5 |
| 8211 | echo "$as_me: WARNING: sys/time.h: present but cannot be compiled" >&2;} |
| 8212 | { echo "$as_me:$LINENO: WARNING: sys/time.h: check for missing prerequisite headers?" >&5 |
| 8213 | echo "$as_me: WARNING: sys/time.h: check for missing prerequisite headers?" >&2;} |
| 8214 | { echo "$as_me:$LINENO: WARNING: sys/time.h: see the Autoconf documentation" >&5 |
| 8215 | echo "$as_me: WARNING: sys/time.h: see the Autoconf documentation" >&2;} |
| 8216 | { echo "$as_me:$LINENO: WARNING: sys/time.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 8217 | echo "$as_me: WARNING: sys/time.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 8218 | { echo "$as_me:$LINENO: WARNING: sys/time.h: proceeding with the preprocessor's result" >&5 |
| 8219 | echo "$as_me: WARNING: sys/time.h: proceeding with the preprocessor's result" >&2;} |
| 8220 | { echo "$as_me:$LINENO: WARNING: sys/time.h: in the future, the compiler will take precedence" >&5 |
| 8221 | echo "$as_me: WARNING: sys/time.h: in the future, the compiler will take precedence" >&2;} |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 8222 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8223 | ;; |
| 8224 | esac |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 8225 | { echo "$as_me:$LINENO: checking for sys/time.h" >&5 |
| 8226 | echo $ECHO_N "checking for sys/time.h... $ECHO_C" >&6; } |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 8227 | if test "${ac_cv_header_sys_time_h+set}" = set; then |
| 8228 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 8229 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8230 | ac_cv_header_sys_time_h=$ac_header_preproc |
| 8231 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 8232 | { echo "$as_me:$LINENO: result: $ac_cv_header_sys_time_h" >&5 |
| 8233 | echo "${ECHO_T}$ac_cv_header_sys_time_h" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8234 | |
| 8235 | fi |
| 8236 | if test $ac_cv_header_sys_time_h = yes; then |
| 8237 | cat >>confdefs.h <<\_ACEOF |
| 8238 | #define PJ_HAS_SYS_TIME_H 1 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 8239 | _ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8240 | |
| 8241 | fi |
| 8242 | |
| 8243 | |
| 8244 | if test "${ac_cv_header_sys_timeb_h+set}" = set; then |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 8245 | { echo "$as_me:$LINENO: checking for sys/timeb.h" >&5 |
| 8246 | echo $ECHO_N "checking for sys/timeb.h... $ECHO_C" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8247 | if test "${ac_cv_header_sys_timeb_h+set}" = set; then |
| 8248 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8249 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 8250 | { echo "$as_me:$LINENO: result: $ac_cv_header_sys_timeb_h" >&5 |
| 8251 | echo "${ECHO_T}$ac_cv_header_sys_timeb_h" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8252 | else |
| 8253 | # Is the header compilable? |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 8254 | { echo "$as_me:$LINENO: checking sys/timeb.h usability" >&5 |
| 8255 | echo $ECHO_N "checking sys/timeb.h usability... $ECHO_C" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8256 | cat >conftest.$ac_ext <<_ACEOF |
| 8257 | /* confdefs.h. */ |
| 8258 | _ACEOF |
| 8259 | cat confdefs.h >>conftest.$ac_ext |
| 8260 | cat >>conftest.$ac_ext <<_ACEOF |
| 8261 | /* end confdefs.h. */ |
| 8262 | $ac_includes_default |
| 8263 | #include <sys/timeb.h> |
| 8264 | _ACEOF |
| 8265 | rm -f conftest.$ac_objext |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 8266 | if { (ac_try="$ac_compile" |
| 8267 | case "(($ac_try" in |
| 8268 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8269 | *) ac_try_echo=$ac_try;; |
| 8270 | esac |
| 8271 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8272 | (eval "$ac_compile") 2>conftest.er1 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8273 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8274 | grep -v '^ *+' conftest.er1 >conftest.err |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8275 | rm -f conftest.er1 |
| 8276 | cat conftest.err >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8277 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 8278 | (exit $ac_status); } && { |
| 8279 | test -z "$ac_c_werror_flag" || |
| 8280 | test ! -s conftest.err |
| 8281 | } && test -s conftest.$ac_objext; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8282 | ac_header_compiler=yes |
| 8283 | else |
| 8284 | echo "$as_me: failed program was:" >&5 |
| 8285 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8286 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 8287 | ac_header_compiler=no |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8288 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 8289 | |
| 8290 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 8291 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 8292 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8293 | |
| 8294 | # Is the header present? |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 8295 | { echo "$as_me:$LINENO: checking sys/timeb.h presence" >&5 |
| 8296 | echo $ECHO_N "checking sys/timeb.h presence... $ECHO_C" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8297 | cat >conftest.$ac_ext <<_ACEOF |
| 8298 | /* confdefs.h. */ |
| 8299 | _ACEOF |
| 8300 | cat confdefs.h >>conftest.$ac_ext |
| 8301 | cat >>conftest.$ac_ext <<_ACEOF |
| 8302 | /* end confdefs.h. */ |
| 8303 | #include <sys/timeb.h> |
| 8304 | _ACEOF |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 8305 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 8306 | case "(($ac_try" in |
| 8307 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8308 | *) ac_try_echo=$ac_try;; |
| 8309 | esac |
| 8310 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8311 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8312 | ac_status=$? |
| 8313 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8314 | rm -f conftest.er1 |
| 8315 | cat conftest.err >&5 |
| 8316 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 8317 | (exit $ac_status); } >/dev/null && { |
| 8318 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 8319 | test ! -s conftest.err |
| 8320 | }; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8321 | ac_header_preproc=yes |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8322 | else |
| 8323 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8324 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8325 | |
| 8326 | ac_header_preproc=no |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8327 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 8328 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8329 | rm -f conftest.err conftest.$ac_ext |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 8330 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 8331 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 8332 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8333 | # So? What about this header? |
| 8334 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 8335 | yes:no: ) |
| 8336 | { echo "$as_me:$LINENO: WARNING: sys/timeb.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 8337 | echo "$as_me: WARNING: sys/timeb.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 8338 | { echo "$as_me:$LINENO: WARNING: sys/timeb.h: proceeding with the compiler's result" >&5 |
| 8339 | echo "$as_me: WARNING: sys/timeb.h: proceeding with the compiler's result" >&2;} |
| 8340 | ac_header_preproc=yes |
| 8341 | ;; |
| 8342 | no:yes:* ) |
| 8343 | { echo "$as_me:$LINENO: WARNING: sys/timeb.h: present but cannot be compiled" >&5 |
| 8344 | echo "$as_me: WARNING: sys/timeb.h: present but cannot be compiled" >&2;} |
| 8345 | { echo "$as_me:$LINENO: WARNING: sys/timeb.h: check for missing prerequisite headers?" >&5 |
| 8346 | echo "$as_me: WARNING: sys/timeb.h: check for missing prerequisite headers?" >&2;} |
| 8347 | { echo "$as_me:$LINENO: WARNING: sys/timeb.h: see the Autoconf documentation" >&5 |
| 8348 | echo "$as_me: WARNING: sys/timeb.h: see the Autoconf documentation" >&2;} |
| 8349 | { echo "$as_me:$LINENO: WARNING: sys/timeb.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 8350 | echo "$as_me: WARNING: sys/timeb.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 8351 | { echo "$as_me:$LINENO: WARNING: sys/timeb.h: proceeding with the preprocessor's result" >&5 |
| 8352 | echo "$as_me: WARNING: sys/timeb.h: proceeding with the preprocessor's result" >&2;} |
| 8353 | { echo "$as_me:$LINENO: WARNING: sys/timeb.h: in the future, the compiler will take precedence" >&5 |
| 8354 | echo "$as_me: WARNING: sys/timeb.h: in the future, the compiler will take precedence" >&2;} |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 8355 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8356 | ;; |
| 8357 | esac |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 8358 | { echo "$as_me:$LINENO: checking for sys/timeb.h" >&5 |
| 8359 | echo $ECHO_N "checking for sys/timeb.h... $ECHO_C" >&6; } |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 8360 | if test "${ac_cv_header_sys_timeb_h+set}" = set; then |
| 8361 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 8362 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8363 | ac_cv_header_sys_timeb_h=$ac_header_preproc |
| 8364 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 8365 | { echo "$as_me:$LINENO: result: $ac_cv_header_sys_timeb_h" >&5 |
| 8366 | echo "${ECHO_T}$ac_cv_header_sys_timeb_h" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8367 | |
| 8368 | fi |
| 8369 | if test $ac_cv_header_sys_timeb_h = yes; then |
| 8370 | cat >>confdefs.h <<\_ACEOF |
| 8371 | #define PJ_HAS_SYS_TIMEB_H 1 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 8372 | _ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8373 | |
| 8374 | fi |
| 8375 | |
| 8376 | |
| 8377 | if test "${ac_cv_header_sys_types_h+set}" = set; then |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 8378 | { echo "$as_me:$LINENO: checking for sys/types.h" >&5 |
| 8379 | echo $ECHO_N "checking for sys/types.h... $ECHO_C" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8380 | if test "${ac_cv_header_sys_types_h+set}" = set; then |
| 8381 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8382 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 8383 | { echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h" >&5 |
| 8384 | echo "${ECHO_T}$ac_cv_header_sys_types_h" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8385 | else |
| 8386 | # Is the header compilable? |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 8387 | { echo "$as_me:$LINENO: checking sys/types.h usability" >&5 |
| 8388 | echo $ECHO_N "checking sys/types.h usability... $ECHO_C" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8389 | cat >conftest.$ac_ext <<_ACEOF |
| 8390 | /* confdefs.h. */ |
| 8391 | _ACEOF |
| 8392 | cat confdefs.h >>conftest.$ac_ext |
| 8393 | cat >>conftest.$ac_ext <<_ACEOF |
| 8394 | /* end confdefs.h. */ |
| 8395 | $ac_includes_default |
| 8396 | #include <sys/types.h> |
| 8397 | _ACEOF |
| 8398 | rm -f conftest.$ac_objext |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 8399 | if { (ac_try="$ac_compile" |
| 8400 | case "(($ac_try" in |
| 8401 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8402 | *) ac_try_echo=$ac_try;; |
| 8403 | esac |
| 8404 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8405 | (eval "$ac_compile") 2>conftest.er1 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8406 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8407 | grep -v '^ *+' conftest.er1 >conftest.err |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8408 | rm -f conftest.er1 |
| 8409 | cat conftest.err >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8410 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 8411 | (exit $ac_status); } && { |
| 8412 | test -z "$ac_c_werror_flag" || |
| 8413 | test ! -s conftest.err |
| 8414 | } && test -s conftest.$ac_objext; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8415 | ac_header_compiler=yes |
| 8416 | else |
| 8417 | echo "$as_me: failed program was:" >&5 |
| 8418 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8419 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 8420 | ac_header_compiler=no |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8421 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 8422 | |
| 8423 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 8424 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 8425 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8426 | |
| 8427 | # Is the header present? |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 8428 | { echo "$as_me:$LINENO: checking sys/types.h presence" >&5 |
| 8429 | echo $ECHO_N "checking sys/types.h presence... $ECHO_C" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8430 | cat >conftest.$ac_ext <<_ACEOF |
| 8431 | /* confdefs.h. */ |
| 8432 | _ACEOF |
| 8433 | cat confdefs.h >>conftest.$ac_ext |
| 8434 | cat >>conftest.$ac_ext <<_ACEOF |
| 8435 | /* end confdefs.h. */ |
| 8436 | #include <sys/types.h> |
| 8437 | _ACEOF |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 8438 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 8439 | case "(($ac_try" in |
| 8440 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8441 | *) ac_try_echo=$ac_try;; |
| 8442 | esac |
| 8443 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8444 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8445 | ac_status=$? |
| 8446 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8447 | rm -f conftest.er1 |
| 8448 | cat conftest.err >&5 |
| 8449 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 8450 | (exit $ac_status); } >/dev/null && { |
| 8451 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 8452 | test ! -s conftest.err |
| 8453 | }; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8454 | ac_header_preproc=yes |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8455 | else |
| 8456 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8457 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8458 | |
| 8459 | ac_header_preproc=no |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8460 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 8461 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8462 | rm -f conftest.err conftest.$ac_ext |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 8463 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 8464 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 8465 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8466 | # So? What about this header? |
| 8467 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 8468 | yes:no: ) |
| 8469 | { echo "$as_me:$LINENO: WARNING: sys/types.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 8470 | echo "$as_me: WARNING: sys/types.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 8471 | { echo "$as_me:$LINENO: WARNING: sys/types.h: proceeding with the compiler's result" >&5 |
| 8472 | echo "$as_me: WARNING: sys/types.h: proceeding with the compiler's result" >&2;} |
| 8473 | ac_header_preproc=yes |
| 8474 | ;; |
| 8475 | no:yes:* ) |
| 8476 | { echo "$as_me:$LINENO: WARNING: sys/types.h: present but cannot be compiled" >&5 |
| 8477 | echo "$as_me: WARNING: sys/types.h: present but cannot be compiled" >&2;} |
| 8478 | { echo "$as_me:$LINENO: WARNING: sys/types.h: check for missing prerequisite headers?" >&5 |
| 8479 | echo "$as_me: WARNING: sys/types.h: check for missing prerequisite headers?" >&2;} |
| 8480 | { echo "$as_me:$LINENO: WARNING: sys/types.h: see the Autoconf documentation" >&5 |
| 8481 | echo "$as_me: WARNING: sys/types.h: see the Autoconf documentation" >&2;} |
| 8482 | { echo "$as_me:$LINENO: WARNING: sys/types.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 8483 | echo "$as_me: WARNING: sys/types.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 8484 | { echo "$as_me:$LINENO: WARNING: sys/types.h: proceeding with the preprocessor's result" >&5 |
| 8485 | echo "$as_me: WARNING: sys/types.h: proceeding with the preprocessor's result" >&2;} |
| 8486 | { echo "$as_me:$LINENO: WARNING: sys/types.h: in the future, the compiler will take precedence" >&5 |
| 8487 | echo "$as_me: WARNING: sys/types.h: in the future, the compiler will take precedence" >&2;} |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 8488 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8489 | ;; |
| 8490 | esac |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 8491 | { echo "$as_me:$LINENO: checking for sys/types.h" >&5 |
| 8492 | echo $ECHO_N "checking for sys/types.h... $ECHO_C" >&6; } |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 8493 | if test "${ac_cv_header_sys_types_h+set}" = set; then |
| 8494 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 8495 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8496 | ac_cv_header_sys_types_h=$ac_header_preproc |
| 8497 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 8498 | { echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h" >&5 |
| 8499 | echo "${ECHO_T}$ac_cv_header_sys_types_h" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8500 | |
| 8501 | fi |
| 8502 | if test $ac_cv_header_sys_types_h = yes; then |
| 8503 | cat >>confdefs.h <<\_ACEOF |
| 8504 | #define PJ_HAS_SYS_TYPES_H 1 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 8505 | _ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8506 | |
| 8507 | fi |
| 8508 | |
| 8509 | |
| 8510 | if test "${ac_cv_header_time_h+set}" = set; then |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 8511 | { echo "$as_me:$LINENO: checking for time.h" >&5 |
| 8512 | echo $ECHO_N "checking for time.h... $ECHO_C" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8513 | if test "${ac_cv_header_time_h+set}" = set; then |
| 8514 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8515 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 8516 | { echo "$as_me:$LINENO: result: $ac_cv_header_time_h" >&5 |
| 8517 | echo "${ECHO_T}$ac_cv_header_time_h" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8518 | else |
| 8519 | # Is the header compilable? |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 8520 | { echo "$as_me:$LINENO: checking time.h usability" >&5 |
| 8521 | echo $ECHO_N "checking time.h usability... $ECHO_C" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8522 | cat >conftest.$ac_ext <<_ACEOF |
| 8523 | /* confdefs.h. */ |
| 8524 | _ACEOF |
| 8525 | cat confdefs.h >>conftest.$ac_ext |
| 8526 | cat >>conftest.$ac_ext <<_ACEOF |
| 8527 | /* end confdefs.h. */ |
| 8528 | $ac_includes_default |
| 8529 | #include <time.h> |
| 8530 | _ACEOF |
| 8531 | rm -f conftest.$ac_objext |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 8532 | if { (ac_try="$ac_compile" |
| 8533 | case "(($ac_try" in |
| 8534 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8535 | *) ac_try_echo=$ac_try;; |
| 8536 | esac |
| 8537 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8538 | (eval "$ac_compile") 2>conftest.er1 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8539 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8540 | grep -v '^ *+' conftest.er1 >conftest.err |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8541 | rm -f conftest.er1 |
| 8542 | cat conftest.err >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8543 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 8544 | (exit $ac_status); } && { |
| 8545 | test -z "$ac_c_werror_flag" || |
| 8546 | test ! -s conftest.err |
| 8547 | } && test -s conftest.$ac_objext; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8548 | ac_header_compiler=yes |
| 8549 | else |
| 8550 | echo "$as_me: failed program was:" >&5 |
| 8551 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8552 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 8553 | ac_header_compiler=no |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8554 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 8555 | |
| 8556 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 8557 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 8558 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8559 | |
| 8560 | # Is the header present? |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 8561 | { echo "$as_me:$LINENO: checking time.h presence" >&5 |
| 8562 | echo $ECHO_N "checking time.h presence... $ECHO_C" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8563 | cat >conftest.$ac_ext <<_ACEOF |
| 8564 | /* confdefs.h. */ |
| 8565 | _ACEOF |
| 8566 | cat confdefs.h >>conftest.$ac_ext |
| 8567 | cat >>conftest.$ac_ext <<_ACEOF |
| 8568 | /* end confdefs.h. */ |
| 8569 | #include <time.h> |
| 8570 | _ACEOF |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 8571 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 8572 | case "(($ac_try" in |
| 8573 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8574 | *) ac_try_echo=$ac_try;; |
| 8575 | esac |
| 8576 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8577 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8578 | ac_status=$? |
| 8579 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8580 | rm -f conftest.er1 |
| 8581 | cat conftest.err >&5 |
| 8582 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 8583 | (exit $ac_status); } >/dev/null && { |
| 8584 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 8585 | test ! -s conftest.err |
| 8586 | }; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8587 | ac_header_preproc=yes |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8588 | else |
| 8589 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8590 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8591 | |
| 8592 | ac_header_preproc=no |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8593 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 8594 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8595 | rm -f conftest.err conftest.$ac_ext |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 8596 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 8597 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 8598 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8599 | # So? What about this header? |
| 8600 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 8601 | yes:no: ) |
| 8602 | { echo "$as_me:$LINENO: WARNING: time.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 8603 | echo "$as_me: WARNING: time.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 8604 | { echo "$as_me:$LINENO: WARNING: time.h: proceeding with the compiler's result" >&5 |
| 8605 | echo "$as_me: WARNING: time.h: proceeding with the compiler's result" >&2;} |
| 8606 | ac_header_preproc=yes |
| 8607 | ;; |
| 8608 | no:yes:* ) |
| 8609 | { echo "$as_me:$LINENO: WARNING: time.h: present but cannot be compiled" >&5 |
| 8610 | echo "$as_me: WARNING: time.h: present but cannot be compiled" >&2;} |
| 8611 | { echo "$as_me:$LINENO: WARNING: time.h: check for missing prerequisite headers?" >&5 |
| 8612 | echo "$as_me: WARNING: time.h: check for missing prerequisite headers?" >&2;} |
| 8613 | { echo "$as_me:$LINENO: WARNING: time.h: see the Autoconf documentation" >&5 |
| 8614 | echo "$as_me: WARNING: time.h: see the Autoconf documentation" >&2;} |
| 8615 | { echo "$as_me:$LINENO: WARNING: time.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 8616 | echo "$as_me: WARNING: time.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 8617 | { echo "$as_me:$LINENO: WARNING: time.h: proceeding with the preprocessor's result" >&5 |
| 8618 | echo "$as_me: WARNING: time.h: proceeding with the preprocessor's result" >&2;} |
| 8619 | { echo "$as_me:$LINENO: WARNING: time.h: in the future, the compiler will take precedence" >&5 |
| 8620 | echo "$as_me: WARNING: time.h: in the future, the compiler will take precedence" >&2;} |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 8621 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8622 | ;; |
| 8623 | esac |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 8624 | { echo "$as_me:$LINENO: checking for time.h" >&5 |
| 8625 | echo $ECHO_N "checking for time.h... $ECHO_C" >&6; } |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 8626 | if test "${ac_cv_header_time_h+set}" = set; then |
| 8627 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 8628 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8629 | ac_cv_header_time_h=$ac_header_preproc |
| 8630 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 8631 | { echo "$as_me:$LINENO: result: $ac_cv_header_time_h" >&5 |
| 8632 | echo "${ECHO_T}$ac_cv_header_time_h" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8633 | |
| 8634 | fi |
| 8635 | if test $ac_cv_header_time_h = yes; then |
| 8636 | cat >>confdefs.h <<\_ACEOF |
| 8637 | #define PJ_HAS_TIME_H 1 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 8638 | _ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8639 | |
| 8640 | fi |
| 8641 | |
| 8642 | |
| 8643 | if test "${ac_cv_header_unistd_h+set}" = set; then |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 8644 | { echo "$as_me:$LINENO: checking for unistd.h" >&5 |
| 8645 | echo $ECHO_N "checking for unistd.h... $ECHO_C" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8646 | if test "${ac_cv_header_unistd_h+set}" = set; then |
| 8647 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8648 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 8649 | { echo "$as_me:$LINENO: result: $ac_cv_header_unistd_h" >&5 |
| 8650 | echo "${ECHO_T}$ac_cv_header_unistd_h" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8651 | else |
| 8652 | # Is the header compilable? |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 8653 | { echo "$as_me:$LINENO: checking unistd.h usability" >&5 |
| 8654 | echo $ECHO_N "checking unistd.h usability... $ECHO_C" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8655 | cat >conftest.$ac_ext <<_ACEOF |
| 8656 | /* confdefs.h. */ |
| 8657 | _ACEOF |
| 8658 | cat confdefs.h >>conftest.$ac_ext |
| 8659 | cat >>conftest.$ac_ext <<_ACEOF |
| 8660 | /* end confdefs.h. */ |
| 8661 | $ac_includes_default |
| 8662 | #include <unistd.h> |
| 8663 | _ACEOF |
| 8664 | rm -f conftest.$ac_objext |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 8665 | if { (ac_try="$ac_compile" |
| 8666 | case "(($ac_try" in |
| 8667 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8668 | *) ac_try_echo=$ac_try;; |
| 8669 | esac |
| 8670 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8671 | (eval "$ac_compile") 2>conftest.er1 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8672 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8673 | grep -v '^ *+' conftest.er1 >conftest.err |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8674 | rm -f conftest.er1 |
| 8675 | cat conftest.err >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8676 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 8677 | (exit $ac_status); } && { |
| 8678 | test -z "$ac_c_werror_flag" || |
| 8679 | test ! -s conftest.err |
| 8680 | } && test -s conftest.$ac_objext; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8681 | ac_header_compiler=yes |
| 8682 | else |
| 8683 | echo "$as_me: failed program was:" >&5 |
| 8684 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8685 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 8686 | ac_header_compiler=no |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8687 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 8688 | |
| 8689 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 8690 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 8691 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8692 | |
| 8693 | # Is the header present? |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 8694 | { echo "$as_me:$LINENO: checking unistd.h presence" >&5 |
| 8695 | echo $ECHO_N "checking unistd.h presence... $ECHO_C" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8696 | cat >conftest.$ac_ext <<_ACEOF |
| 8697 | /* confdefs.h. */ |
| 8698 | _ACEOF |
| 8699 | cat confdefs.h >>conftest.$ac_ext |
| 8700 | cat >>conftest.$ac_ext <<_ACEOF |
| 8701 | /* end confdefs.h. */ |
| 8702 | #include <unistd.h> |
| 8703 | _ACEOF |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 8704 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 8705 | case "(($ac_try" in |
| 8706 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8707 | *) ac_try_echo=$ac_try;; |
| 8708 | esac |
| 8709 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8710 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8711 | ac_status=$? |
| 8712 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8713 | rm -f conftest.er1 |
| 8714 | cat conftest.err >&5 |
| 8715 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 8716 | (exit $ac_status); } >/dev/null && { |
| 8717 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 8718 | test ! -s conftest.err |
| 8719 | }; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8720 | ac_header_preproc=yes |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8721 | else |
| 8722 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8723 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8724 | |
| 8725 | ac_header_preproc=no |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8726 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 8727 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8728 | rm -f conftest.err conftest.$ac_ext |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 8729 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 8730 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 8731 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8732 | # So? What about this header? |
| 8733 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 8734 | yes:no: ) |
| 8735 | { echo "$as_me:$LINENO: WARNING: unistd.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 8736 | echo "$as_me: WARNING: unistd.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 8737 | { echo "$as_me:$LINENO: WARNING: unistd.h: proceeding with the compiler's result" >&5 |
| 8738 | echo "$as_me: WARNING: unistd.h: proceeding with the compiler's result" >&2;} |
| 8739 | ac_header_preproc=yes |
| 8740 | ;; |
| 8741 | no:yes:* ) |
| 8742 | { echo "$as_me:$LINENO: WARNING: unistd.h: present but cannot be compiled" >&5 |
| 8743 | echo "$as_me: WARNING: unistd.h: present but cannot be compiled" >&2;} |
| 8744 | { echo "$as_me:$LINENO: WARNING: unistd.h: check for missing prerequisite headers?" >&5 |
| 8745 | echo "$as_me: WARNING: unistd.h: check for missing prerequisite headers?" >&2;} |
| 8746 | { echo "$as_me:$LINENO: WARNING: unistd.h: see the Autoconf documentation" >&5 |
| 8747 | echo "$as_me: WARNING: unistd.h: see the Autoconf documentation" >&2;} |
| 8748 | { echo "$as_me:$LINENO: WARNING: unistd.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 8749 | echo "$as_me: WARNING: unistd.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 8750 | { echo "$as_me:$LINENO: WARNING: unistd.h: proceeding with the preprocessor's result" >&5 |
| 8751 | echo "$as_me: WARNING: unistd.h: proceeding with the preprocessor's result" >&2;} |
| 8752 | { echo "$as_me:$LINENO: WARNING: unistd.h: in the future, the compiler will take precedence" >&5 |
| 8753 | echo "$as_me: WARNING: unistd.h: in the future, the compiler will take precedence" >&2;} |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 8754 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8755 | ;; |
| 8756 | esac |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 8757 | { echo "$as_me:$LINENO: checking for unistd.h" >&5 |
| 8758 | echo $ECHO_N "checking for unistd.h... $ECHO_C" >&6; } |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 8759 | if test "${ac_cv_header_unistd_h+set}" = set; then |
| 8760 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 8761 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8762 | ac_cv_header_unistd_h=$ac_header_preproc |
| 8763 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 8764 | { echo "$as_me:$LINENO: result: $ac_cv_header_unistd_h" >&5 |
| 8765 | echo "${ECHO_T}$ac_cv_header_unistd_h" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8766 | |
| 8767 | fi |
| 8768 | if test $ac_cv_header_unistd_h = yes; then |
| 8769 | cat >>confdefs.h <<\_ACEOF |
| 8770 | #define PJ_HAS_UNISTD_H 1 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 8771 | _ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8772 | |
| 8773 | fi |
| 8774 | |
| 8775 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8776 | if test "${ac_cv_header_winsock_h+set}" = set; then |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 8777 | { echo "$as_me:$LINENO: checking for winsock.h" >&5 |
| 8778 | echo $ECHO_N "checking for winsock.h... $ECHO_C" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8779 | if test "${ac_cv_header_winsock_h+set}" = set; then |
| 8780 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8781 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 8782 | { echo "$as_me:$LINENO: result: $ac_cv_header_winsock_h" >&5 |
| 8783 | echo "${ECHO_T}$ac_cv_header_winsock_h" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8784 | else |
| 8785 | # Is the header compilable? |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 8786 | { echo "$as_me:$LINENO: checking winsock.h usability" >&5 |
| 8787 | echo $ECHO_N "checking winsock.h usability... $ECHO_C" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8788 | cat >conftest.$ac_ext <<_ACEOF |
| 8789 | /* confdefs.h. */ |
| 8790 | _ACEOF |
| 8791 | cat confdefs.h >>conftest.$ac_ext |
| 8792 | cat >>conftest.$ac_ext <<_ACEOF |
| 8793 | /* end confdefs.h. */ |
| 8794 | $ac_includes_default |
| 8795 | #include <winsock.h> |
| 8796 | _ACEOF |
| 8797 | rm -f conftest.$ac_objext |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 8798 | if { (ac_try="$ac_compile" |
| 8799 | case "(($ac_try" in |
| 8800 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8801 | *) ac_try_echo=$ac_try;; |
| 8802 | esac |
| 8803 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8804 | (eval "$ac_compile") 2>conftest.er1 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8805 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8806 | grep -v '^ *+' conftest.er1 >conftest.err |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8807 | rm -f conftest.er1 |
| 8808 | cat conftest.err >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8809 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 8810 | (exit $ac_status); } && { |
| 8811 | test -z "$ac_c_werror_flag" || |
| 8812 | test ! -s conftest.err |
| 8813 | } && test -s conftest.$ac_objext; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8814 | ac_header_compiler=yes |
| 8815 | else |
| 8816 | echo "$as_me: failed program was:" >&5 |
| 8817 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8818 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 8819 | ac_header_compiler=no |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8820 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 8821 | |
| 8822 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 8823 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 8824 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8825 | |
| 8826 | # Is the header present? |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 8827 | { echo "$as_me:$LINENO: checking winsock.h presence" >&5 |
| 8828 | echo $ECHO_N "checking winsock.h presence... $ECHO_C" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8829 | cat >conftest.$ac_ext <<_ACEOF |
| 8830 | /* confdefs.h. */ |
| 8831 | _ACEOF |
| 8832 | cat confdefs.h >>conftest.$ac_ext |
| 8833 | cat >>conftest.$ac_ext <<_ACEOF |
| 8834 | /* end confdefs.h. */ |
| 8835 | #include <winsock.h> |
| 8836 | _ACEOF |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 8837 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 8838 | case "(($ac_try" in |
| 8839 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8840 | *) ac_try_echo=$ac_try;; |
| 8841 | esac |
| 8842 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8843 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8844 | ac_status=$? |
| 8845 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8846 | rm -f conftest.er1 |
| 8847 | cat conftest.err >&5 |
| 8848 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 8849 | (exit $ac_status); } >/dev/null && { |
| 8850 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 8851 | test ! -s conftest.err |
| 8852 | }; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8853 | ac_header_preproc=yes |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8854 | else |
| 8855 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8856 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8857 | |
| 8858 | ac_header_preproc=no |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8859 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 8860 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8861 | rm -f conftest.err conftest.$ac_ext |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 8862 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 8863 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 8864 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8865 | # So? What about this header? |
| 8866 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 8867 | yes:no: ) |
| 8868 | { echo "$as_me:$LINENO: WARNING: winsock.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 8869 | echo "$as_me: WARNING: winsock.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 8870 | { echo "$as_me:$LINENO: WARNING: winsock.h: proceeding with the compiler's result" >&5 |
| 8871 | echo "$as_me: WARNING: winsock.h: proceeding with the compiler's result" >&2;} |
| 8872 | ac_header_preproc=yes |
| 8873 | ;; |
| 8874 | no:yes:* ) |
| 8875 | { echo "$as_me:$LINENO: WARNING: winsock.h: present but cannot be compiled" >&5 |
| 8876 | echo "$as_me: WARNING: winsock.h: present but cannot be compiled" >&2;} |
| 8877 | { echo "$as_me:$LINENO: WARNING: winsock.h: check for missing prerequisite headers?" >&5 |
| 8878 | echo "$as_me: WARNING: winsock.h: check for missing prerequisite headers?" >&2;} |
| 8879 | { echo "$as_me:$LINENO: WARNING: winsock.h: see the Autoconf documentation" >&5 |
| 8880 | echo "$as_me: WARNING: winsock.h: see the Autoconf documentation" >&2;} |
| 8881 | { echo "$as_me:$LINENO: WARNING: winsock.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 8882 | echo "$as_me: WARNING: winsock.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 8883 | { echo "$as_me:$LINENO: WARNING: winsock.h: proceeding with the preprocessor's result" >&5 |
| 8884 | echo "$as_me: WARNING: winsock.h: proceeding with the preprocessor's result" >&2;} |
| 8885 | { echo "$as_me:$LINENO: WARNING: winsock.h: in the future, the compiler will take precedence" >&5 |
| 8886 | echo "$as_me: WARNING: winsock.h: in the future, the compiler will take precedence" >&2;} |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 8887 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8888 | ;; |
| 8889 | esac |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 8890 | { echo "$as_me:$LINENO: checking for winsock.h" >&5 |
| 8891 | echo $ECHO_N "checking for winsock.h... $ECHO_C" >&6; } |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 8892 | if test "${ac_cv_header_winsock_h+set}" = set; then |
| 8893 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 8894 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8895 | ac_cv_header_winsock_h=$ac_header_preproc |
| 8896 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 8897 | { echo "$as_me:$LINENO: result: $ac_cv_header_winsock_h" >&5 |
| 8898 | echo "${ECHO_T}$ac_cv_header_winsock_h" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8899 | |
| 8900 | fi |
| 8901 | if test $ac_cv_header_winsock_h = yes; then |
| 8902 | cat >>confdefs.h <<\_ACEOF |
| 8903 | #define PJ_HAS_WINSOCK_H 1 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 8904 | _ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8905 | |
| 8906 | fi |
| 8907 | |
| 8908 | |
| 8909 | if test "${ac_cv_header_winsock2_h+set}" = set; then |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 8910 | { echo "$as_me:$LINENO: checking for winsock2.h" >&5 |
| 8911 | echo $ECHO_N "checking for winsock2.h... $ECHO_C" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8912 | if test "${ac_cv_header_winsock2_h+set}" = set; then |
| 8913 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8914 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 8915 | { echo "$as_me:$LINENO: result: $ac_cv_header_winsock2_h" >&5 |
| 8916 | echo "${ECHO_T}$ac_cv_header_winsock2_h" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8917 | else |
| 8918 | # Is the header compilable? |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 8919 | { echo "$as_me:$LINENO: checking winsock2.h usability" >&5 |
| 8920 | echo $ECHO_N "checking winsock2.h usability... $ECHO_C" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8921 | cat >conftest.$ac_ext <<_ACEOF |
| 8922 | /* confdefs.h. */ |
| 8923 | _ACEOF |
| 8924 | cat confdefs.h >>conftest.$ac_ext |
| 8925 | cat >>conftest.$ac_ext <<_ACEOF |
| 8926 | /* end confdefs.h. */ |
| 8927 | $ac_includes_default |
| 8928 | #include <winsock2.h> |
| 8929 | _ACEOF |
| 8930 | rm -f conftest.$ac_objext |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 8931 | if { (ac_try="$ac_compile" |
| 8932 | case "(($ac_try" in |
| 8933 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8934 | *) ac_try_echo=$ac_try;; |
| 8935 | esac |
| 8936 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8937 | (eval "$ac_compile") 2>conftest.er1 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8938 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8939 | grep -v '^ *+' conftest.er1 >conftest.err |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8940 | rm -f conftest.er1 |
| 8941 | cat conftest.err >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8942 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 8943 | (exit $ac_status); } && { |
| 8944 | test -z "$ac_c_werror_flag" || |
| 8945 | test ! -s conftest.err |
| 8946 | } && test -s conftest.$ac_objext; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8947 | ac_header_compiler=yes |
| 8948 | else |
| 8949 | echo "$as_me: failed program was:" >&5 |
| 8950 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8951 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 8952 | ac_header_compiler=no |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8953 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 8954 | |
| 8955 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 8956 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 8957 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8958 | |
| 8959 | # Is the header present? |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 8960 | { echo "$as_me:$LINENO: checking winsock2.h presence" >&5 |
| 8961 | echo $ECHO_N "checking winsock2.h presence... $ECHO_C" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8962 | cat >conftest.$ac_ext <<_ACEOF |
| 8963 | /* confdefs.h. */ |
| 8964 | _ACEOF |
| 8965 | cat confdefs.h >>conftest.$ac_ext |
| 8966 | cat >>conftest.$ac_ext <<_ACEOF |
| 8967 | /* end confdefs.h. */ |
| 8968 | #include <winsock2.h> |
| 8969 | _ACEOF |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 8970 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 8971 | case "(($ac_try" in |
| 8972 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8973 | *) ac_try_echo=$ac_try;; |
| 8974 | esac |
| 8975 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8976 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8977 | ac_status=$? |
| 8978 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8979 | rm -f conftest.er1 |
| 8980 | cat conftest.err >&5 |
| 8981 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 8982 | (exit $ac_status); } >/dev/null && { |
| 8983 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 8984 | test ! -s conftest.err |
| 8985 | }; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8986 | ac_header_preproc=yes |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8987 | else |
| 8988 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8989 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8990 | |
| 8991 | ac_header_preproc=no |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8992 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 8993 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8994 | rm -f conftest.err conftest.$ac_ext |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 8995 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 8996 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 8997 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8998 | # So? What about this header? |
| 8999 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 9000 | yes:no: ) |
| 9001 | { echo "$as_me:$LINENO: WARNING: winsock2.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 9002 | echo "$as_me: WARNING: winsock2.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 9003 | { echo "$as_me:$LINENO: WARNING: winsock2.h: proceeding with the compiler's result" >&5 |
| 9004 | echo "$as_me: WARNING: winsock2.h: proceeding with the compiler's result" >&2;} |
| 9005 | ac_header_preproc=yes |
| 9006 | ;; |
| 9007 | no:yes:* ) |
| 9008 | { echo "$as_me:$LINENO: WARNING: winsock2.h: present but cannot be compiled" >&5 |
| 9009 | echo "$as_me: WARNING: winsock2.h: present but cannot be compiled" >&2;} |
| 9010 | { echo "$as_me:$LINENO: WARNING: winsock2.h: check for missing prerequisite headers?" >&5 |
| 9011 | echo "$as_me: WARNING: winsock2.h: check for missing prerequisite headers?" >&2;} |
| 9012 | { echo "$as_me:$LINENO: WARNING: winsock2.h: see the Autoconf documentation" >&5 |
| 9013 | echo "$as_me: WARNING: winsock2.h: see the Autoconf documentation" >&2;} |
| 9014 | { echo "$as_me:$LINENO: WARNING: winsock2.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 9015 | echo "$as_me: WARNING: winsock2.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 9016 | { echo "$as_me:$LINENO: WARNING: winsock2.h: proceeding with the preprocessor's result" >&5 |
| 9017 | echo "$as_me: WARNING: winsock2.h: proceeding with the preprocessor's result" >&2;} |
| 9018 | { echo "$as_me:$LINENO: WARNING: winsock2.h: in the future, the compiler will take precedence" >&5 |
| 9019 | echo "$as_me: WARNING: winsock2.h: in the future, the compiler will take precedence" >&2;} |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 9020 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9021 | ;; |
| 9022 | esac |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 9023 | { echo "$as_me:$LINENO: checking for winsock2.h" >&5 |
| 9024 | echo $ECHO_N "checking for winsock2.h... $ECHO_C" >&6; } |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 9025 | if test "${ac_cv_header_winsock2_h+set}" = set; then |
| 9026 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 9027 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9028 | ac_cv_header_winsock2_h=$ac_header_preproc |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9029 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 9030 | { echo "$as_me:$LINENO: result: $ac_cv_header_winsock2_h" >&5 |
| 9031 | echo "${ECHO_T}$ac_cv_header_winsock2_h" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9032 | |
| 9033 | fi |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9034 | if test $ac_cv_header_winsock2_h = yes; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9035 | cat >>confdefs.h <<\_ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9036 | #define PJ_HAS_WINSOCK2_H 1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9037 | _ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9038 | |
| 9039 | fi |
| 9040 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9041 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 9042 | { echo "$as_me:$LINENO: checking for mswsock.h" >&5 |
| 9043 | echo $ECHO_N "checking for mswsock.h... $ECHO_C" >&6; } |
Benny Prijono | a9948e6 | 2008-03-25 14:03:01 +0000 | [diff] [blame] | 9044 | if test "${ac_cv_header_mswsock_h+set}" = set; then |
| 9045 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9046 | else |
| 9047 | cat >conftest.$ac_ext <<_ACEOF |
| 9048 | /* confdefs.h. */ |
| 9049 | _ACEOF |
| 9050 | cat confdefs.h >>conftest.$ac_ext |
| 9051 | cat >>conftest.$ac_ext <<_ACEOF |
| 9052 | /* end confdefs.h. */ |
| 9053 | #if PJ_HAS_WINSOCK2_H |
| 9054 | # include <winsock2.h> |
| 9055 | #elif PJ_HAS_WINSOCK_H |
| 9056 | # include <winsock.h> |
| 9057 | #endif |
| 9058 | |
| 9059 | |
| 9060 | #include <mswsock.h> |
| 9061 | _ACEOF |
| 9062 | rm -f conftest.$ac_objext |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 9063 | if { (ac_try="$ac_compile" |
| 9064 | case "(($ac_try" in |
| 9065 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9066 | *) ac_try_echo=$ac_try;; |
| 9067 | esac |
| 9068 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9069 | (eval "$ac_compile") 2>conftest.er1 |
Benny Prijono | a9948e6 | 2008-03-25 14:03:01 +0000 | [diff] [blame] | 9070 | ac_status=$? |
| 9071 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9072 | rm -f conftest.er1 |
| 9073 | cat conftest.err >&5 |
| 9074 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 9075 | (exit $ac_status); } && { |
| 9076 | test -z "$ac_c_werror_flag" || |
| 9077 | test ! -s conftest.err |
| 9078 | } && test -s conftest.$ac_objext; then |
Benny Prijono | a9948e6 | 2008-03-25 14:03:01 +0000 | [diff] [blame] | 9079 | ac_cv_header_mswsock_h=yes |
| 9080 | else |
| 9081 | echo "$as_me: failed program was:" >&5 |
| 9082 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9083 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 9084 | ac_cv_header_mswsock_h=no |
Benny Prijono | a9948e6 | 2008-03-25 14:03:01 +0000 | [diff] [blame] | 9085 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 9086 | |
| 9087 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Benny Prijono | a9948e6 | 2008-03-25 14:03:01 +0000 | [diff] [blame] | 9088 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 9089 | { echo "$as_me:$LINENO: result: $ac_cv_header_mswsock_h" >&5 |
| 9090 | echo "${ECHO_T}$ac_cv_header_mswsock_h" >&6; } |
Benny Prijono | a9948e6 | 2008-03-25 14:03:01 +0000 | [diff] [blame] | 9091 | if test $ac_cv_header_mswsock_h = yes; then |
| 9092 | cat >>confdefs.h <<\_ACEOF |
| 9093 | #define PJ_HAS_MSWSOCK_H 1 |
| 9094 | _ACEOF |
| 9095 | |
| 9096 | fi |
| 9097 | |
| 9098 | |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 9099 | if test "${ac_cv_header_ws2tcpip_h+set}" = set; then |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 9100 | { echo "$as_me:$LINENO: checking for ws2tcpip.h" >&5 |
| 9101 | echo $ECHO_N "checking for ws2tcpip.h... $ECHO_C" >&6; } |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 9102 | if test "${ac_cv_header_ws2tcpip_h+set}" = set; then |
| 9103 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9104 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 9105 | { echo "$as_me:$LINENO: result: $ac_cv_header_ws2tcpip_h" >&5 |
| 9106 | echo "${ECHO_T}$ac_cv_header_ws2tcpip_h" >&6; } |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 9107 | else |
| 9108 | # Is the header compilable? |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 9109 | { echo "$as_me:$LINENO: checking ws2tcpip.h usability" >&5 |
| 9110 | echo $ECHO_N "checking ws2tcpip.h usability... $ECHO_C" >&6; } |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 9111 | cat >conftest.$ac_ext <<_ACEOF |
| 9112 | /* confdefs.h. */ |
| 9113 | _ACEOF |
| 9114 | cat confdefs.h >>conftest.$ac_ext |
| 9115 | cat >>conftest.$ac_ext <<_ACEOF |
| 9116 | /* end confdefs.h. */ |
| 9117 | $ac_includes_default |
| 9118 | #include <ws2tcpip.h> |
| 9119 | _ACEOF |
| 9120 | rm -f conftest.$ac_objext |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 9121 | if { (ac_try="$ac_compile" |
| 9122 | case "(($ac_try" in |
| 9123 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9124 | *) ac_try_echo=$ac_try;; |
| 9125 | esac |
| 9126 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9127 | (eval "$ac_compile") 2>conftest.er1 |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 9128 | ac_status=$? |
| 9129 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9130 | rm -f conftest.er1 |
| 9131 | cat conftest.err >&5 |
| 9132 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 9133 | (exit $ac_status); } && { |
| 9134 | test -z "$ac_c_werror_flag" || |
| 9135 | test ! -s conftest.err |
| 9136 | } && test -s conftest.$ac_objext; then |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 9137 | ac_header_compiler=yes |
| 9138 | else |
| 9139 | echo "$as_me: failed program was:" >&5 |
| 9140 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9141 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 9142 | ac_header_compiler=no |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 9143 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 9144 | |
| 9145 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 9146 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 9147 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 9148 | |
| 9149 | # Is the header present? |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 9150 | { echo "$as_me:$LINENO: checking ws2tcpip.h presence" >&5 |
| 9151 | echo $ECHO_N "checking ws2tcpip.h presence... $ECHO_C" >&6; } |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 9152 | cat >conftest.$ac_ext <<_ACEOF |
| 9153 | /* confdefs.h. */ |
| 9154 | _ACEOF |
| 9155 | cat confdefs.h >>conftest.$ac_ext |
| 9156 | cat >>conftest.$ac_ext <<_ACEOF |
| 9157 | /* end confdefs.h. */ |
| 9158 | #include <ws2tcpip.h> |
| 9159 | _ACEOF |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 9160 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 9161 | case "(($ac_try" in |
| 9162 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9163 | *) ac_try_echo=$ac_try;; |
| 9164 | esac |
| 9165 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9166 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 9167 | ac_status=$? |
| 9168 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9169 | rm -f conftest.er1 |
| 9170 | cat conftest.err >&5 |
| 9171 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 9172 | (exit $ac_status); } >/dev/null && { |
| 9173 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 9174 | test ! -s conftest.err |
| 9175 | }; then |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 9176 | ac_header_preproc=yes |
| 9177 | else |
| 9178 | echo "$as_me: failed program was:" >&5 |
| 9179 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9180 | |
| 9181 | ac_header_preproc=no |
| 9182 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 9183 | |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 9184 | rm -f conftest.err conftest.$ac_ext |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 9185 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 9186 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 9187 | |
| 9188 | # So? What about this header? |
| 9189 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 9190 | yes:no: ) |
| 9191 | { echo "$as_me:$LINENO: WARNING: ws2tcpip.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 9192 | echo "$as_me: WARNING: ws2tcpip.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 9193 | { echo "$as_me:$LINENO: WARNING: ws2tcpip.h: proceeding with the compiler's result" >&5 |
| 9194 | echo "$as_me: WARNING: ws2tcpip.h: proceeding with the compiler's result" >&2;} |
| 9195 | ac_header_preproc=yes |
| 9196 | ;; |
| 9197 | no:yes:* ) |
| 9198 | { echo "$as_me:$LINENO: WARNING: ws2tcpip.h: present but cannot be compiled" >&5 |
| 9199 | echo "$as_me: WARNING: ws2tcpip.h: present but cannot be compiled" >&2;} |
| 9200 | { echo "$as_me:$LINENO: WARNING: ws2tcpip.h: check for missing prerequisite headers?" >&5 |
| 9201 | echo "$as_me: WARNING: ws2tcpip.h: check for missing prerequisite headers?" >&2;} |
| 9202 | { echo "$as_me:$LINENO: WARNING: ws2tcpip.h: see the Autoconf documentation" >&5 |
| 9203 | echo "$as_me: WARNING: ws2tcpip.h: see the Autoconf documentation" >&2;} |
| 9204 | { echo "$as_me:$LINENO: WARNING: ws2tcpip.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 9205 | echo "$as_me: WARNING: ws2tcpip.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 9206 | { echo "$as_me:$LINENO: WARNING: ws2tcpip.h: proceeding with the preprocessor's result" >&5 |
| 9207 | echo "$as_me: WARNING: ws2tcpip.h: proceeding with the preprocessor's result" >&2;} |
| 9208 | { echo "$as_me:$LINENO: WARNING: ws2tcpip.h: in the future, the compiler will take precedence" >&5 |
| 9209 | echo "$as_me: WARNING: ws2tcpip.h: in the future, the compiler will take precedence" >&2;} |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 9210 | |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 9211 | ;; |
| 9212 | esac |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 9213 | { echo "$as_me:$LINENO: checking for ws2tcpip.h" >&5 |
| 9214 | echo $ECHO_N "checking for ws2tcpip.h... $ECHO_C" >&6; } |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 9215 | if test "${ac_cv_header_ws2tcpip_h+set}" = set; then |
| 9216 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9217 | else |
| 9218 | ac_cv_header_ws2tcpip_h=$ac_header_preproc |
| 9219 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 9220 | { echo "$as_me:$LINENO: result: $ac_cv_header_ws2tcpip_h" >&5 |
| 9221 | echo "${ECHO_T}$ac_cv_header_ws2tcpip_h" >&6; } |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 9222 | |
| 9223 | fi |
| 9224 | if test $ac_cv_header_ws2tcpip_h = yes; then |
| 9225 | cat >>confdefs.h <<\_ACEOF |
| 9226 | #define PJ_HAS_WS2TCPIP_H 1 |
| 9227 | _ACEOF |
| 9228 | |
| 9229 | fi |
| 9230 | |
| 9231 | |
Benny Prijono | 4e48b51 | 2007-05-16 13:41:00 +0000 | [diff] [blame] | 9232 | if test "${ac_cv_header_uuid_uuid_h+set}" = set; then |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 9233 | { echo "$as_me:$LINENO: checking for uuid/uuid.h" >&5 |
| 9234 | echo $ECHO_N "checking for uuid/uuid.h... $ECHO_C" >&6; } |
Benny Prijono | 4e48b51 | 2007-05-16 13:41:00 +0000 | [diff] [blame] | 9235 | if test "${ac_cv_header_uuid_uuid_h+set}" = set; then |
| 9236 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9237 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 9238 | { echo "$as_me:$LINENO: result: $ac_cv_header_uuid_uuid_h" >&5 |
| 9239 | echo "${ECHO_T}$ac_cv_header_uuid_uuid_h" >&6; } |
Benny Prijono | 4e48b51 | 2007-05-16 13:41:00 +0000 | [diff] [blame] | 9240 | else |
| 9241 | # Is the header compilable? |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 9242 | { echo "$as_me:$LINENO: checking uuid/uuid.h usability" >&5 |
| 9243 | echo $ECHO_N "checking uuid/uuid.h usability... $ECHO_C" >&6; } |
Benny Prijono | 4e48b51 | 2007-05-16 13:41:00 +0000 | [diff] [blame] | 9244 | cat >conftest.$ac_ext <<_ACEOF |
| 9245 | /* confdefs.h. */ |
| 9246 | _ACEOF |
| 9247 | cat confdefs.h >>conftest.$ac_ext |
| 9248 | cat >>conftest.$ac_ext <<_ACEOF |
| 9249 | /* end confdefs.h. */ |
| 9250 | $ac_includes_default |
| 9251 | #include <uuid/uuid.h> |
| 9252 | _ACEOF |
| 9253 | rm -f conftest.$ac_objext |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 9254 | if { (ac_try="$ac_compile" |
| 9255 | case "(($ac_try" in |
| 9256 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9257 | *) ac_try_echo=$ac_try;; |
| 9258 | esac |
| 9259 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9260 | (eval "$ac_compile") 2>conftest.er1 |
Benny Prijono | 4e48b51 | 2007-05-16 13:41:00 +0000 | [diff] [blame] | 9261 | ac_status=$? |
| 9262 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9263 | rm -f conftest.er1 |
| 9264 | cat conftest.err >&5 |
| 9265 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 9266 | (exit $ac_status); } && { |
| 9267 | test -z "$ac_c_werror_flag" || |
| 9268 | test ! -s conftest.err |
| 9269 | } && test -s conftest.$ac_objext; then |
Benny Prijono | 4e48b51 | 2007-05-16 13:41:00 +0000 | [diff] [blame] | 9270 | ac_header_compiler=yes |
| 9271 | else |
| 9272 | echo "$as_me: failed program was:" >&5 |
| 9273 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9274 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 9275 | ac_header_compiler=no |
Benny Prijono | 4e48b51 | 2007-05-16 13:41:00 +0000 | [diff] [blame] | 9276 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 9277 | |
| 9278 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 9279 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 9280 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Benny Prijono | 4e48b51 | 2007-05-16 13:41:00 +0000 | [diff] [blame] | 9281 | |
| 9282 | # Is the header present? |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 9283 | { echo "$as_me:$LINENO: checking uuid/uuid.h presence" >&5 |
| 9284 | echo $ECHO_N "checking uuid/uuid.h presence... $ECHO_C" >&6; } |
Benny Prijono | 4e48b51 | 2007-05-16 13:41:00 +0000 | [diff] [blame] | 9285 | cat >conftest.$ac_ext <<_ACEOF |
| 9286 | /* confdefs.h. */ |
| 9287 | _ACEOF |
| 9288 | cat confdefs.h >>conftest.$ac_ext |
| 9289 | cat >>conftest.$ac_ext <<_ACEOF |
| 9290 | /* end confdefs.h. */ |
| 9291 | #include <uuid/uuid.h> |
| 9292 | _ACEOF |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 9293 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 9294 | case "(($ac_try" in |
| 9295 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9296 | *) ac_try_echo=$ac_try;; |
| 9297 | esac |
| 9298 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9299 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Benny Prijono | 4e48b51 | 2007-05-16 13:41:00 +0000 | [diff] [blame] | 9300 | ac_status=$? |
| 9301 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9302 | rm -f conftest.er1 |
| 9303 | cat conftest.err >&5 |
| 9304 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 9305 | (exit $ac_status); } >/dev/null && { |
| 9306 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 9307 | test ! -s conftest.err |
| 9308 | }; then |
Benny Prijono | 4e48b51 | 2007-05-16 13:41:00 +0000 | [diff] [blame] | 9309 | ac_header_preproc=yes |
| 9310 | else |
| 9311 | echo "$as_me: failed program was:" >&5 |
| 9312 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9313 | |
| 9314 | ac_header_preproc=no |
| 9315 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 9316 | |
Benny Prijono | 4e48b51 | 2007-05-16 13:41:00 +0000 | [diff] [blame] | 9317 | rm -f conftest.err conftest.$ac_ext |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 9318 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 9319 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Benny Prijono | 4e48b51 | 2007-05-16 13:41:00 +0000 | [diff] [blame] | 9320 | |
| 9321 | # So? What about this header? |
| 9322 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 9323 | yes:no: ) |
| 9324 | { echo "$as_me:$LINENO: WARNING: uuid/uuid.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 9325 | echo "$as_me: WARNING: uuid/uuid.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 9326 | { echo "$as_me:$LINENO: WARNING: uuid/uuid.h: proceeding with the compiler's result" >&5 |
| 9327 | echo "$as_me: WARNING: uuid/uuid.h: proceeding with the compiler's result" >&2;} |
| 9328 | ac_header_preproc=yes |
| 9329 | ;; |
| 9330 | no:yes:* ) |
| 9331 | { echo "$as_me:$LINENO: WARNING: uuid/uuid.h: present but cannot be compiled" >&5 |
| 9332 | echo "$as_me: WARNING: uuid/uuid.h: present but cannot be compiled" >&2;} |
| 9333 | { echo "$as_me:$LINENO: WARNING: uuid/uuid.h: check for missing prerequisite headers?" >&5 |
| 9334 | echo "$as_me: WARNING: uuid/uuid.h: check for missing prerequisite headers?" >&2;} |
| 9335 | { echo "$as_me:$LINENO: WARNING: uuid/uuid.h: see the Autoconf documentation" >&5 |
| 9336 | echo "$as_me: WARNING: uuid/uuid.h: see the Autoconf documentation" >&2;} |
| 9337 | { echo "$as_me:$LINENO: WARNING: uuid/uuid.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 9338 | echo "$as_me: WARNING: uuid/uuid.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 9339 | { echo "$as_me:$LINENO: WARNING: uuid/uuid.h: proceeding with the preprocessor's result" >&5 |
| 9340 | echo "$as_me: WARNING: uuid/uuid.h: proceeding with the preprocessor's result" >&2;} |
| 9341 | { echo "$as_me:$LINENO: WARNING: uuid/uuid.h: in the future, the compiler will take precedence" >&5 |
| 9342 | echo "$as_me: WARNING: uuid/uuid.h: in the future, the compiler will take precedence" >&2;} |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 9343 | |
Benny Prijono | 4e48b51 | 2007-05-16 13:41:00 +0000 | [diff] [blame] | 9344 | ;; |
| 9345 | esac |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 9346 | { echo "$as_me:$LINENO: checking for uuid/uuid.h" >&5 |
| 9347 | echo $ECHO_N "checking for uuid/uuid.h... $ECHO_C" >&6; } |
Benny Prijono | 4e48b51 | 2007-05-16 13:41:00 +0000 | [diff] [blame] | 9348 | if test "${ac_cv_header_uuid_uuid_h+set}" = set; then |
| 9349 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9350 | else |
| 9351 | ac_cv_header_uuid_uuid_h=$ac_header_preproc |
| 9352 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 9353 | { echo "$as_me:$LINENO: result: $ac_cv_header_uuid_uuid_h" >&5 |
| 9354 | echo "${ECHO_T}$ac_cv_header_uuid_uuid_h" >&6; } |
Benny Prijono | 4e48b51 | 2007-05-16 13:41:00 +0000 | [diff] [blame] | 9355 | |
| 9356 | fi |
| 9357 | if test $ac_cv_header_uuid_uuid_h = yes; then |
| 9358 | ac_has_uuid_h=1 |
| 9359 | fi |
| 9360 | |
| 9361 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 9362 | { echo "$as_me:$LINENO: checking for net/if.h" >&5 |
| 9363 | echo $ECHO_N "checking for net/if.h... $ECHO_C" >&6; } |
Benny Prijono | a9948e6 | 2008-03-25 14:03:01 +0000 | [diff] [blame] | 9364 | if test "${ac_cv_header_net_if_h+set}" = set; then |
Benny Prijono | 188ba7e | 2008-03-25 13:53:16 +0000 | [diff] [blame] | 9365 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9366 | else |
| 9367 | cat >conftest.$ac_ext <<_ACEOF |
| 9368 | /* confdefs.h. */ |
| 9369 | _ACEOF |
| 9370 | cat confdefs.h >>conftest.$ac_ext |
| 9371 | cat >>conftest.$ac_ext <<_ACEOF |
| 9372 | /* end confdefs.h. */ |
| 9373 | #if PJ_HAS_SYS_SOCKET_H |
| 9374 | # include <sys/socket.h> |
| 9375 | #endif |
| 9376 | |
| 9377 | |
Benny Prijono | a9948e6 | 2008-03-25 14:03:01 +0000 | [diff] [blame] | 9378 | #include <net/if.h> |
Benny Prijono | 188ba7e | 2008-03-25 13:53:16 +0000 | [diff] [blame] | 9379 | _ACEOF |
| 9380 | rm -f conftest.$ac_objext |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 9381 | if { (ac_try="$ac_compile" |
| 9382 | case "(($ac_try" in |
| 9383 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9384 | *) ac_try_echo=$ac_try;; |
| 9385 | esac |
| 9386 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9387 | (eval "$ac_compile") 2>conftest.er1 |
Benny Prijono | 188ba7e | 2008-03-25 13:53:16 +0000 | [diff] [blame] | 9388 | ac_status=$? |
| 9389 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9390 | rm -f conftest.er1 |
| 9391 | cat conftest.err >&5 |
| 9392 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 9393 | (exit $ac_status); } && { |
| 9394 | test -z "$ac_c_werror_flag" || |
| 9395 | test ! -s conftest.err |
| 9396 | } && test -s conftest.$ac_objext; then |
Benny Prijono | a9948e6 | 2008-03-25 14:03:01 +0000 | [diff] [blame] | 9397 | ac_cv_header_net_if_h=yes |
Benny Prijono | 188ba7e | 2008-03-25 13:53:16 +0000 | [diff] [blame] | 9398 | else |
| 9399 | echo "$as_me: failed program was:" >&5 |
| 9400 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9401 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 9402 | ac_cv_header_net_if_h=no |
Benny Prijono | 188ba7e | 2008-03-25 13:53:16 +0000 | [diff] [blame] | 9403 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 9404 | |
| 9405 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Benny Prijono | 188ba7e | 2008-03-25 13:53:16 +0000 | [diff] [blame] | 9406 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 9407 | { echo "$as_me:$LINENO: result: $ac_cv_header_net_if_h" >&5 |
| 9408 | echo "${ECHO_T}$ac_cv_header_net_if_h" >&6; } |
Benny Prijono | a9948e6 | 2008-03-25 14:03:01 +0000 | [diff] [blame] | 9409 | if test $ac_cv_header_net_if_h = yes; then |
| 9410 | cat >>confdefs.h <<\_ACEOF |
Benny Prijono | 188ba7e | 2008-03-25 13:53:16 +0000 | [diff] [blame] | 9411 | #define PJ_HAS_NET_IF_H 1 |
| 9412 | _ACEOF |
| 9413 | |
| 9414 | fi |
| 9415 | |
Benny Prijono | 188ba7e | 2008-03-25 13:53:16 +0000 | [diff] [blame] | 9416 | |
| 9417 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 9418 | { echo "$as_me:$LINENO: result: Setting PJ_OS_NAME to $target" >&5 |
| 9419 | echo "${ECHO_T}Setting PJ_OS_NAME to $target" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9420 | cat >>confdefs.h <<_ACEOF |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 9421 | #define PJ_OS_NAME "$target" |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9422 | _ACEOF |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 9423 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9424 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 9425 | { echo "$as_me:$LINENO: result: Setting PJ_HAS_ERRNO_VAR to 1" >&5 |
| 9426 | echo "${ECHO_T}Setting PJ_HAS_ERRNO_VAR to 1" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9427 | cat >>confdefs.h <<\_ACEOF |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 9428 | #define PJ_HAS_ERRNO_VAR 1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9429 | _ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9430 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9431 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 9432 | { echo "$as_me:$LINENO: result: Setting PJ_HAS_HIGH_RES_TIMER to 1" >&5 |
| 9433 | echo "${ECHO_T}Setting PJ_HAS_HIGH_RES_TIMER to 1" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9434 | cat >>confdefs.h <<\_ACEOF |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 9435 | #define PJ_HAS_HIGH_RES_TIMER 1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9436 | _ACEOF |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 9437 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9438 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 9439 | { echo "$as_me:$LINENO: result: Setting PJ_HAS_MALLOC to 1" >&5 |
| 9440 | echo "${ECHO_T}Setting PJ_HAS_MALLOC to 1" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9441 | cat >>confdefs.h <<\_ACEOF |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 9442 | #define PJ_HAS_MALLOC 1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9443 | _ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9444 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9445 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 9446 | { echo "$as_me:$LINENO: result: Setting PJ_NATIVE_STRING_IS_UNICODE to 0" >&5 |
| 9447 | echo "${ECHO_T}Setting PJ_NATIVE_STRING_IS_UNICODE to 0" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9448 | cat >>confdefs.h <<\_ACEOF |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 9449 | #define PJ_NATIVE_STRING_IS_UNICODE 0 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9450 | _ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9451 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9452 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 9453 | { echo "$as_me:$LINENO: result: Setting PJ_ATOMIC_VALUE_TYPE to long" >&5 |
| 9454 | echo "${ECHO_T}Setting PJ_ATOMIC_VALUE_TYPE to long" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9455 | cat >>confdefs.h <<\_ACEOF |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 9456 | #define PJ_ATOMIC_VALUE_TYPE long |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9457 | _ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9458 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9459 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 9460 | { echo "$as_me:$LINENO: checking if inet_aton() is available" >&5 |
| 9461 | echo $ECHO_N "checking if inet_aton() is available... $ECHO_C" >&6; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9462 | cat >conftest.$ac_ext <<_ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9463 | /* confdefs.h. */ |
| 9464 | _ACEOF |
| 9465 | cat confdefs.h >>conftest.$ac_ext |
| 9466 | cat >>conftest.$ac_ext <<_ACEOF |
| 9467 | /* end confdefs.h. */ |
Benny Prijono | c16c6e3 | 2007-11-18 14:53:47 +0000 | [diff] [blame] | 9468 | #include <sys/types.h> |
| 9469 | #include <sys/socket.h> |
| 9470 | #include <arpa/inet.h> |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9471 | int |
| 9472 | main () |
| 9473 | { |
| 9474 | inet_aton(0, 0); |
| 9475 | ; |
| 9476 | return 0; |
| 9477 | } |
| 9478 | _ACEOF |
| 9479 | rm -f conftest.$ac_objext |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 9480 | if { (ac_try="$ac_compile" |
| 9481 | case "(($ac_try" in |
| 9482 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9483 | *) ac_try_echo=$ac_try;; |
| 9484 | esac |
| 9485 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9486 | (eval "$ac_compile") 2>conftest.er1 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9487 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9488 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9489 | rm -f conftest.er1 |
| 9490 | cat conftest.err >&5 |
| 9491 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 9492 | (exit $ac_status); } && { |
| 9493 | test -z "$ac_c_werror_flag" || |
| 9494 | test ! -s conftest.err |
| 9495 | } && test -s conftest.$ac_objext; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9496 | cat >>confdefs.h <<\_ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9497 | #define PJ_SOCK_HAS_INET_ATON 1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9498 | _ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9499 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 9500 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 9501 | echo "${ECHO_T}yes" >&6; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9502 | else |
| 9503 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9504 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9505 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 9506 | { echo "$as_me:$LINENO: result: no" >&5 |
| 9507 | echo "${ECHO_T}no" >&6; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9508 | fi |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9509 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 9510 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 9511 | |
| 9512 | { echo "$as_me:$LINENO: checking if inet_pton() is available" >&5 |
| 9513 | echo $ECHO_N "checking if inet_pton() is available... $ECHO_C" >&6; } |
Benny Prijono | c16c6e3 | 2007-11-18 14:53:47 +0000 | [diff] [blame] | 9514 | cat >conftest.$ac_ext <<_ACEOF |
| 9515 | /* confdefs.h. */ |
| 9516 | _ACEOF |
| 9517 | cat confdefs.h >>conftest.$ac_ext |
| 9518 | cat >>conftest.$ac_ext <<_ACEOF |
| 9519 | /* end confdefs.h. */ |
| 9520 | #include <sys/types.h> |
| 9521 | #include <sys/socket.h> |
| 9522 | #include <arpa/inet.h> |
| 9523 | int |
| 9524 | main () |
| 9525 | { |
| 9526 | inet_pton(0, 0, 0); |
| 9527 | ; |
| 9528 | return 0; |
| 9529 | } |
| 9530 | _ACEOF |
| 9531 | rm -f conftest.$ac_objext |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 9532 | if { (ac_try="$ac_compile" |
| 9533 | case "(($ac_try" in |
| 9534 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9535 | *) ac_try_echo=$ac_try;; |
| 9536 | esac |
| 9537 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9538 | (eval "$ac_compile") 2>conftest.er1 |
Benny Prijono | c16c6e3 | 2007-11-18 14:53:47 +0000 | [diff] [blame] | 9539 | ac_status=$? |
| 9540 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9541 | rm -f conftest.er1 |
| 9542 | cat conftest.err >&5 |
| 9543 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 9544 | (exit $ac_status); } && { |
| 9545 | test -z "$ac_c_werror_flag" || |
| 9546 | test ! -s conftest.err |
| 9547 | } && test -s conftest.$ac_objext; then |
Benny Prijono | c16c6e3 | 2007-11-18 14:53:47 +0000 | [diff] [blame] | 9548 | cat >>confdefs.h <<\_ACEOF |
| 9549 | #define PJ_SOCK_HAS_INET_PTON 1 |
| 9550 | _ACEOF |
| 9551 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 9552 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 9553 | echo "${ECHO_T}yes" >&6; } |
Benny Prijono | c16c6e3 | 2007-11-18 14:53:47 +0000 | [diff] [blame] | 9554 | else |
| 9555 | echo "$as_me: failed program was:" >&5 |
| 9556 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9557 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 9558 | { echo "$as_me:$LINENO: result: no" >&5 |
| 9559 | echo "${ECHO_T}no" >&6; } |
Benny Prijono | c16c6e3 | 2007-11-18 14:53:47 +0000 | [diff] [blame] | 9560 | fi |
Benny Prijono | c16c6e3 | 2007-11-18 14:53:47 +0000 | [diff] [blame] | 9561 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 9562 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 9563 | |
| 9564 | { echo "$as_me:$LINENO: checking if inet_ntop() is available" >&5 |
| 9565 | echo $ECHO_N "checking if inet_ntop() is available... $ECHO_C" >&6; } |
Benny Prijono | c16c6e3 | 2007-11-18 14:53:47 +0000 | [diff] [blame] | 9566 | cat >conftest.$ac_ext <<_ACEOF |
| 9567 | /* confdefs.h. */ |
| 9568 | _ACEOF |
| 9569 | cat confdefs.h >>conftest.$ac_ext |
| 9570 | cat >>conftest.$ac_ext <<_ACEOF |
| 9571 | /* end confdefs.h. */ |
| 9572 | #include <sys/types.h> |
| 9573 | #include <sys/socket.h> |
| 9574 | #include <arpa/inet.h> |
| 9575 | int |
| 9576 | main () |
| 9577 | { |
| 9578 | inet_ntop(0, 0, 0, 0); |
| 9579 | ; |
| 9580 | return 0; |
| 9581 | } |
| 9582 | _ACEOF |
| 9583 | rm -f conftest.$ac_objext |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 9584 | if { (ac_try="$ac_compile" |
| 9585 | case "(($ac_try" in |
| 9586 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9587 | *) ac_try_echo=$ac_try;; |
| 9588 | esac |
| 9589 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9590 | (eval "$ac_compile") 2>conftest.er1 |
Benny Prijono | c16c6e3 | 2007-11-18 14:53:47 +0000 | [diff] [blame] | 9591 | ac_status=$? |
| 9592 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9593 | rm -f conftest.er1 |
| 9594 | cat conftest.err >&5 |
| 9595 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 9596 | (exit $ac_status); } && { |
| 9597 | test -z "$ac_c_werror_flag" || |
| 9598 | test ! -s conftest.err |
| 9599 | } && test -s conftest.$ac_objext; then |
Benny Prijono | c16c6e3 | 2007-11-18 14:53:47 +0000 | [diff] [blame] | 9600 | cat >>confdefs.h <<\_ACEOF |
| 9601 | #define PJ_SOCK_HAS_INET_NTOP 1 |
| 9602 | _ACEOF |
| 9603 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 9604 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 9605 | echo "${ECHO_T}yes" >&6; } |
Benny Prijono | c16c6e3 | 2007-11-18 14:53:47 +0000 | [diff] [blame] | 9606 | else |
| 9607 | echo "$as_me: failed program was:" >&5 |
| 9608 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9609 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 9610 | { echo "$as_me:$LINENO: result: no" >&5 |
| 9611 | echo "${ECHO_T}no" >&6; } |
Benny Prijono | c16c6e3 | 2007-11-18 14:53:47 +0000 | [diff] [blame] | 9612 | fi |
Benny Prijono | c16c6e3 | 2007-11-18 14:53:47 +0000 | [diff] [blame] | 9613 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 9614 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 9615 | |
| 9616 | { echo "$as_me:$LINENO: checking if getaddrinfo() is available" >&5 |
| 9617 | echo $ECHO_N "checking if getaddrinfo() is available... $ECHO_C" >&6; } |
Benny Prijono | c16c6e3 | 2007-11-18 14:53:47 +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 | #include <sys/types.h> |
| 9625 | #include <sys/socket.h> |
| 9626 | #include <netdb.h> |
| 9627 | int |
| 9628 | main () |
| 9629 | { |
| 9630 | getaddrinfo(0, 0, 0, 0); |
| 9631 | ; |
| 9632 | return 0; |
| 9633 | } |
| 9634 | _ACEOF |
| 9635 | rm -f conftest.$ac_objext |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 9636 | if { (ac_try="$ac_compile" |
| 9637 | case "(($ac_try" in |
| 9638 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9639 | *) ac_try_echo=$ac_try;; |
| 9640 | esac |
| 9641 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9642 | (eval "$ac_compile") 2>conftest.er1 |
Benny Prijono | c16c6e3 | 2007-11-18 14:53:47 +0000 | [diff] [blame] | 9643 | ac_status=$? |
| 9644 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9645 | rm -f conftest.er1 |
| 9646 | cat conftest.err >&5 |
| 9647 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 9648 | (exit $ac_status); } && { |
| 9649 | test -z "$ac_c_werror_flag" || |
| 9650 | test ! -s conftest.err |
| 9651 | } && test -s conftest.$ac_objext; then |
Benny Prijono | c16c6e3 | 2007-11-18 14:53:47 +0000 | [diff] [blame] | 9652 | cat >>confdefs.h <<\_ACEOF |
| 9653 | #define PJ_SOCK_HAS_GETADDRINFO 1 |
| 9654 | _ACEOF |
| 9655 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 9656 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 9657 | echo "${ECHO_T}yes" >&6; } |
Benny Prijono | c16c6e3 | 2007-11-18 14:53:47 +0000 | [diff] [blame] | 9658 | else |
| 9659 | echo "$as_me: failed program was:" >&5 |
| 9660 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9661 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 9662 | { echo "$as_me:$LINENO: result: no" >&5 |
| 9663 | echo "${ECHO_T}no" >&6; } |
Benny Prijono | c16c6e3 | 2007-11-18 14:53:47 +0000 | [diff] [blame] | 9664 | fi |
Benny Prijono | c16c6e3 | 2007-11-18 14:53:47 +0000 | [diff] [blame] | 9665 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 9666 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 9667 | |
| 9668 | { echo "$as_me:$LINENO: checking if sockaddr_in has sin_len member" >&5 |
| 9669 | 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] | 9670 | cat >conftest.$ac_ext <<_ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9671 | /* confdefs.h. */ |
| 9672 | _ACEOF |
| 9673 | cat confdefs.h >>conftest.$ac_ext |
| 9674 | cat >>conftest.$ac_ext <<_ACEOF |
| 9675 | /* end confdefs.h. */ |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame] | 9676 | #include <sys/types.h> |
| 9677 | #include <sys/socket.h> |
| 9678 | #include <netinet/in.h> |
| 9679 | #include <arpa/inet.h> |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9680 | int |
| 9681 | main () |
| 9682 | { |
| 9683 | struct sockaddr_in a; a.sin_len=0; |
| 9684 | ; |
| 9685 | return 0; |
| 9686 | } |
| 9687 | _ACEOF |
| 9688 | rm -f conftest.$ac_objext |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 9689 | if { (ac_try="$ac_compile" |
| 9690 | case "(($ac_try" in |
| 9691 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9692 | *) ac_try_echo=$ac_try;; |
| 9693 | esac |
| 9694 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9695 | (eval "$ac_compile") 2>conftest.er1 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9696 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9697 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9698 | rm -f conftest.er1 |
| 9699 | cat conftest.err >&5 |
| 9700 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 9701 | (exit $ac_status); } && { |
| 9702 | test -z "$ac_c_werror_flag" || |
| 9703 | test ! -s conftest.err |
| 9704 | } && test -s conftest.$ac_objext; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9705 | cat >>confdefs.h <<\_ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9706 | #define PJ_SOCKADDR_HAS_LEN 1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9707 | _ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9708 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 9709 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 9710 | echo "${ECHO_T}yes" >&6; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9711 | else |
| 9712 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9713 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9714 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 9715 | { echo "$as_me:$LINENO: result: no" >&5 |
| 9716 | echo "${ECHO_T}no" >&6; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9717 | fi |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9718 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 9719 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 9720 | |
| 9721 | { echo "$as_me:$LINENO: checking if socklen_t is available" >&5 |
| 9722 | echo $ECHO_N "checking if socklen_t is available... $ECHO_C" >&6; } |
Benny Prijono | 30f85c6 | 2006-09-09 20:05:33 +0000 | [diff] [blame] | 9723 | cat >conftest.$ac_ext <<_ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9724 | /* confdefs.h. */ |
| 9725 | _ACEOF |
| 9726 | cat confdefs.h >>conftest.$ac_ext |
| 9727 | cat >>conftest.$ac_ext <<_ACEOF |
| 9728 | /* end confdefs.h. */ |
Benny Prijono | 1d97162 | 2006-09-10 22:27:40 +0000 | [diff] [blame] | 9729 | #include <sys/socket.h> |
Benny Prijono | 30f85c6 | 2006-09-09 20:05:33 +0000 | [diff] [blame] | 9730 | int |
| 9731 | main () |
| 9732 | { |
| 9733 | socklen_t xxx = 0; |
| 9734 | ; |
| 9735 | return 0; |
| 9736 | } |
| 9737 | _ACEOF |
| 9738 | rm -f conftest.$ac_objext |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 9739 | if { (ac_try="$ac_compile" |
| 9740 | case "(($ac_try" in |
| 9741 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9742 | *) ac_try_echo=$ac_try;; |
| 9743 | esac |
| 9744 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9745 | (eval "$ac_compile") 2>conftest.er1 |
Benny Prijono | 30f85c6 | 2006-09-09 20:05:33 +0000 | [diff] [blame] | 9746 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9747 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9748 | rm -f conftest.er1 |
| 9749 | cat conftest.err >&5 |
| 9750 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 9751 | (exit $ac_status); } && { |
| 9752 | test -z "$ac_c_werror_flag" || |
| 9753 | test ! -s conftest.err |
| 9754 | } && test -s conftest.$ac_objext; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9755 | cat >>confdefs.h <<\_ACEOF |
Benny Prijono | 30f85c6 | 2006-09-09 20:05:33 +0000 | [diff] [blame] | 9756 | #define PJ_HAS_SOCKLEN_T 1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9757 | _ACEOF |
Benny Prijono | 30f85c6 | 2006-09-09 20:05:33 +0000 | [diff] [blame] | 9758 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 9759 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 9760 | echo "${ECHO_T}yes" >&6; } |
Benny Prijono | 30f85c6 | 2006-09-09 20:05:33 +0000 | [diff] [blame] | 9761 | else |
| 9762 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9763 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9764 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 9765 | { echo "$as_me:$LINENO: result: no" >&5 |
| 9766 | echo "${ECHO_T}no" >&6; } |
Benny Prijono | 30f85c6 | 2006-09-09 20:05:33 +0000 | [diff] [blame] | 9767 | fi |
Benny Prijono | 30f85c6 | 2006-09-09 20:05:33 +0000 | [diff] [blame] | 9768 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 9769 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 9770 | |
| 9771 | { echo "$as_me:$LINENO: checking if SO_ERROR is available" >&5 |
| 9772 | echo $ECHO_N "checking if SO_ERROR is available... $ECHO_C" >&6; } |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 9773 | case $target in |
| 9774 | *mingw* | *cygw* | *win32* | *w32* ) |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9775 | cat >>confdefs.h <<\_ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 9776 | #define PJ_HAS_SO_ERROR 1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9777 | _ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 9778 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 9779 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 9780 | echo "${ECHO_T}yes" >&6; } |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 9781 | ;; |
| 9782 | *) |
| 9783 | cat >conftest.$ac_ext <<_ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9784 | /* confdefs.h. */ |
| 9785 | _ACEOF |
| 9786 | cat confdefs.h >>conftest.$ac_ext |
| 9787 | cat >>conftest.$ac_ext <<_ACEOF |
| 9788 | /* end confdefs.h. */ |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame] | 9789 | #include <sys/types.h> |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 9790 | #include <sys/socket.h> |
| 9791 | #include <netinet/in.h> |
| 9792 | #include <arpa/inet.h> |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9793 | int |
| 9794 | main () |
| 9795 | { |
| 9796 | int i=SO_ERROR; |
| 9797 | ; |
| 9798 | return 0; |
| 9799 | } |
| 9800 | _ACEOF |
| 9801 | rm -f conftest.$ac_objext |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 9802 | if { (ac_try="$ac_compile" |
| 9803 | case "(($ac_try" in |
| 9804 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9805 | *) ac_try_echo=$ac_try;; |
| 9806 | esac |
| 9807 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9808 | (eval "$ac_compile") 2>conftest.er1 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9809 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9810 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9811 | rm -f conftest.er1 |
| 9812 | cat conftest.err >&5 |
| 9813 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 9814 | (exit $ac_status); } && { |
| 9815 | test -z "$ac_c_werror_flag" || |
| 9816 | test ! -s conftest.err |
| 9817 | } && test -s conftest.$ac_objext; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9818 | cat >>confdefs.h <<\_ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9819 | #define PJ_HAS_SO_ERROR 1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9820 | _ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9821 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 9822 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 9823 | echo "${ECHO_T}yes" >&6; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9824 | else |
| 9825 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9826 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9827 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 9828 | { echo "$as_me:$LINENO: result: no" >&5 |
| 9829 | echo "${ECHO_T}no" >&6; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9830 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 9831 | |
| 9832 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 9833 | ;; |
| 9834 | esac |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9835 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9836 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 9837 | { echo "$as_me:$LINENO: checking if pthread_rwlock_t is available" >&5 |
| 9838 | 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] | 9839 | cat >conftest.$ac_ext <<_ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9840 | /* confdefs.h. */ |
| 9841 | _ACEOF |
| 9842 | cat confdefs.h >>conftest.$ac_ext |
| 9843 | cat >>conftest.$ac_ext <<_ACEOF |
| 9844 | /* end confdefs.h. */ |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9845 | #include <pthread.h> |
| 9846 | int |
| 9847 | main () |
| 9848 | { |
| 9849 | pthread_rwlock_t *x; |
| 9850 | ; |
| 9851 | return 0; |
| 9852 | } |
| 9853 | _ACEOF |
| 9854 | rm -f conftest.$ac_objext |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 9855 | if { (ac_try="$ac_compile" |
| 9856 | case "(($ac_try" in |
| 9857 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9858 | *) ac_try_echo=$ac_try;; |
| 9859 | esac |
| 9860 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9861 | (eval "$ac_compile") 2>conftest.er1 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9862 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9863 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9864 | rm -f conftest.er1 |
| 9865 | cat conftest.err >&5 |
| 9866 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 9867 | (exit $ac_status); } && { |
| 9868 | test -z "$ac_c_werror_flag" || |
| 9869 | test ! -s conftest.err |
| 9870 | } && test -s conftest.$ac_objext; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9871 | cat >>confdefs.h <<\_ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9872 | #define PJ_EMULATE_RWMUTEX 0 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9873 | _ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9874 | |
Benny Prijono | 1c5f4e4 | 2008-02-07 13:11:39 +0000 | [diff] [blame] | 9875 | ac_rwmutex="yes" |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 9876 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 9877 | echo "${ECHO_T}yes" >&6; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9878 | else |
| 9879 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9880 | sed 's/^/| /' conftest.$ac_ext >&5 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 9881 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 9882 | cat >>confdefs.h <<\_ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9883 | #define PJ_EMULATE_RWMUTEX 1 |
| 9884 | _ACEOF |
| 9885 | |
Benny Prijono | 1c5f4e4 | 2008-02-07 13:11:39 +0000 | [diff] [blame] | 9886 | ac_rwmutex="no" |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 9887 | { echo "$as_me:$LINENO: result: no" >&5 |
| 9888 | echo "${ECHO_T}no" >&6; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9889 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 9890 | |
| 9891 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9892 | |
Benny Prijono | 1c5f4e4 | 2008-02-07 13:11:39 +0000 | [diff] [blame] | 9893 | if test "$ac_rwmutex" = "no"; then |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 9894 | { echo "$as_me:$LINENO: checking if pthread_rwlock_t is available with _POSIX_READER_WRITER_LOCKS" >&5 |
| 9895 | echo $ECHO_N "checking if pthread_rwlock_t is available with _POSIX_READER_WRITER_LOCKS... $ECHO_C" >&6; } |
Benny Prijono | 1c5f4e4 | 2008-02-07 13:11:39 +0000 | [diff] [blame] | 9896 | cat >conftest.$ac_ext <<_ACEOF |
| 9897 | /* confdefs.h. */ |
| 9898 | _ACEOF |
| 9899 | cat confdefs.h >>conftest.$ac_ext |
| 9900 | cat >>conftest.$ac_ext <<_ACEOF |
| 9901 | /* end confdefs.h. */ |
| 9902 | #define _POSIX_READER_WRITER_LOCKS |
| 9903 | #include <pthread.h> |
| 9904 | int |
| 9905 | main () |
| 9906 | { |
| 9907 | pthread_rwlock_t *x; |
| 9908 | ; |
| 9909 | return 0; |
| 9910 | } |
| 9911 | _ACEOF |
| 9912 | rm -f conftest.$ac_objext |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 9913 | if { (ac_try="$ac_compile" |
| 9914 | case "(($ac_try" in |
| 9915 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9916 | *) ac_try_echo=$ac_try;; |
| 9917 | esac |
| 9918 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9919 | (eval "$ac_compile") 2>conftest.er1 |
Benny Prijono | 1c5f4e4 | 2008-02-07 13:11:39 +0000 | [diff] [blame] | 9920 | ac_status=$? |
| 9921 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9922 | rm -f conftest.er1 |
| 9923 | cat conftest.err >&5 |
| 9924 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 9925 | (exit $ac_status); } && { |
| 9926 | test -z "$ac_c_werror_flag" || |
| 9927 | test ! -s conftest.err |
| 9928 | } && test -s conftest.$ac_objext; then |
Benny Prijono | 1c5f4e4 | 2008-02-07 13:11:39 +0000 | [diff] [blame] | 9929 | cat >>confdefs.h <<\_ACEOF |
| 9930 | #define PJ_EMULATE_RWMUTEX 0 |
| 9931 | _ACEOF |
| 9932 | |
| 9933 | CFLAGS="$CFLAGS -D_POSIX_THREADS -D_POSIX_READER_WRITER_LOCKS" |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 9934 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 9935 | echo "${ECHO_T}yes" >&6; } |
Benny Prijono | 1c5f4e4 | 2008-02-07 13:11:39 +0000 | [diff] [blame] | 9936 | else |
| 9937 | echo "$as_me: failed program was:" >&5 |
| 9938 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9939 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 9940 | cat >>confdefs.h <<\_ACEOF |
Benny Prijono | 1c5f4e4 | 2008-02-07 13:11:39 +0000 | [diff] [blame] | 9941 | #define PJ_EMULATE_RWMUTEX 1 |
| 9942 | _ACEOF |
| 9943 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 9944 | { echo "$as_me:$LINENO: result: no" >&5 |
| 9945 | echo "${ECHO_T}no" >&6; } |
Benny Prijono | 1c5f4e4 | 2008-02-07 13:11:39 +0000 | [diff] [blame] | 9946 | fi |
| 9947 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 9948 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 9949 | fi |
| 9950 | |
| 9951 | { echo "$as_me:$LINENO: checking if pthread_mutexattr_settype() is available" >&5 |
| 9952 | echo $ECHO_N "checking if pthread_mutexattr_settype() is available... $ECHO_C" >&6; } |
Benny Prijono | 1c5f4e4 | 2008-02-07 13:11:39 +0000 | [diff] [blame] | 9953 | cat >conftest.$ac_ext <<_ACEOF |
| 9954 | /* confdefs.h. */ |
| 9955 | _ACEOF |
| 9956 | cat confdefs.h >>conftest.$ac_ext |
| 9957 | cat >>conftest.$ac_ext <<_ACEOF |
| 9958 | /* end confdefs.h. */ |
| 9959 | #include <pthread.h> |
| 9960 | int |
| 9961 | main () |
| 9962 | { |
| 9963 | pthread_mutexattr_settype(0,PTHREAD_MUTEX_FAST_NP); |
| 9964 | ; |
| 9965 | return 0; |
| 9966 | } |
| 9967 | _ACEOF |
| 9968 | rm -f conftest.$ac_objext |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 9969 | if { (ac_try="$ac_compile" |
| 9970 | case "(($ac_try" in |
| 9971 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9972 | *) ac_try_echo=$ac_try;; |
| 9973 | esac |
| 9974 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9975 | (eval "$ac_compile") 2>conftest.er1 |
Benny Prijono | 1c5f4e4 | 2008-02-07 13:11:39 +0000 | [diff] [blame] | 9976 | ac_status=$? |
| 9977 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9978 | rm -f conftest.er1 |
| 9979 | cat conftest.err >&5 |
| 9980 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 9981 | (exit $ac_status); } && { |
| 9982 | test -z "$ac_c_werror_flag" || |
| 9983 | test ! -s conftest.err |
| 9984 | } && test -s conftest.$ac_objext; then |
Benny Prijono | 1c5f4e4 | 2008-02-07 13:11:39 +0000 | [diff] [blame] | 9985 | cat >>confdefs.h <<\_ACEOF |
| 9986 | #define PJ_HAS_PTHREAD_MUTEXATTR_SETTYPE 1 |
| 9987 | _ACEOF |
| 9988 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 9989 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 9990 | echo "${ECHO_T}yes" >&6; } |
Benny Prijono | 1c5f4e4 | 2008-02-07 13:11:39 +0000 | [diff] [blame] | 9991 | else |
| 9992 | echo "$as_me: failed program was:" >&5 |
| 9993 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9994 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 9995 | { echo "$as_me:$LINENO: result: no" >&5 |
| 9996 | echo "${ECHO_T}no" >&6; } |
Benny Prijono | 1c5f4e4 | 2008-02-07 13:11:39 +0000 | [diff] [blame] | 9997 | fi |
| 9998 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 9999 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 10000 | |
| 10001 | { echo "$as_me:$LINENO: checking if pthread_mutexattr_t has recursive member" >&5 |
| 10002 | echo $ECHO_N "checking if pthread_mutexattr_t has recursive member... $ECHO_C" >&6; } |
Benny Prijono | 1c5f4e4 | 2008-02-07 13:11:39 +0000 | [diff] [blame] | 10003 | cat >conftest.$ac_ext <<_ACEOF |
| 10004 | /* confdefs.h. */ |
| 10005 | _ACEOF |
| 10006 | cat confdefs.h >>conftest.$ac_ext |
| 10007 | cat >>conftest.$ac_ext <<_ACEOF |
| 10008 | /* end confdefs.h. */ |
| 10009 | #include <pthread.h> |
| 10010 | int |
| 10011 | main () |
| 10012 | { |
| 10013 | pthread_mutexattr_t attr; |
| 10014 | attr.recursive=1; |
| 10015 | ; |
| 10016 | return 0; |
| 10017 | } |
| 10018 | _ACEOF |
| 10019 | rm -f conftest.$ac_objext |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 10020 | if { (ac_try="$ac_compile" |
| 10021 | case "(($ac_try" in |
| 10022 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10023 | *) ac_try_echo=$ac_try;; |
| 10024 | esac |
| 10025 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10026 | (eval "$ac_compile") 2>conftest.er1 |
Benny Prijono | 1c5f4e4 | 2008-02-07 13:11:39 +0000 | [diff] [blame] | 10027 | ac_status=$? |
| 10028 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10029 | rm -f conftest.er1 |
| 10030 | cat conftest.err >&5 |
| 10031 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 10032 | (exit $ac_status); } && { |
| 10033 | test -z "$ac_c_werror_flag" || |
| 10034 | test ! -s conftest.err |
| 10035 | } && test -s conftest.$ac_objext; then |
Benny Prijono | 1c5f4e4 | 2008-02-07 13:11:39 +0000 | [diff] [blame] | 10036 | cat >>confdefs.h <<\_ACEOF |
| 10037 | #define PJ_PTHREAD_MUTEXATTR_T_HAS_RECURSIVE 1 |
| 10038 | _ACEOF |
| 10039 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 10040 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 10041 | echo "${ECHO_T}yes" >&6; } |
Benny Prijono | 1c5f4e4 | 2008-02-07 13:11:39 +0000 | [diff] [blame] | 10042 | else |
| 10043 | echo "$as_me: failed program was:" >&5 |
| 10044 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10045 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 10046 | { echo "$as_me:$LINENO: result: no" >&5 |
| 10047 | echo "${ECHO_T}no" >&6; } |
Benny Prijono | 1c5f4e4 | 2008-02-07 13:11:39 +0000 | [diff] [blame] | 10048 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 10049 | |
| 10050 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 10051 | |
Benny Prijono | 99eec38 | 2008-09-18 21:22:16 +0000 | [diff] [blame] | 10052 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 10053 | { echo "$as_me:$LINENO: checking ioqueue backend" >&5 |
| 10054 | echo $ECHO_N "checking ioqueue backend... $ECHO_C" >&6; } |
| 10055 | # Check whether --enable-epoll was given. |
Benny Prijono | 99eec38 | 2008-09-18 21:22:16 +0000 | [diff] [blame] | 10056 | if test "${enable_epoll+set}" = set; then |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 10057 | enableval=$enable_epoll; |
Benny Prijono | 99eec38 | 2008-09-18 21:22:16 +0000 | [diff] [blame] | 10058 | ac_os_objs=ioqueue_epoll.o |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 10059 | { echo "$as_me:$LINENO: result: /dev/epoll" >&5 |
| 10060 | echo "${ECHO_T}/dev/epoll" >&6; } |
Benny Prijono | 99eec38 | 2008-09-18 21:22:16 +0000 | [diff] [blame] | 10061 | |
| 10062 | else |
| 10063 | |
| 10064 | ac_os_objs=ioqueue_select.o |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 10065 | { echo "$as_me:$LINENO: result: select()" >&5 |
| 10066 | echo "${ECHO_T}select()" >&6; } |
Benny Prijono | 99eec38 | 2008-09-18 21:22:16 +0000 | [diff] [blame] | 10067 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 10068 | fi |
| 10069 | |
Benny Prijono | 1c5f4e4 | 2008-02-07 13:11:39 +0000 | [diff] [blame] | 10070 | |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 10071 | |
| 10072 | case $target in |
| 10073 | *mingw* | *cygw* | *win32* | *w32* ) |
Benny Prijono | 99eec38 | 2008-09-18 21:22:16 +0000 | [diff] [blame] | 10074 | ac_os_objs="$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" |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 10075 | ;; |
| 10076 | *) |
Benny Prijono | 99eec38 | 2008-09-18 21:22:16 +0000 | [diff] [blame] | 10077 | ac_os_objs="$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" |
Benny Prijono | 4e48b51 | 2007-05-16 13:41:00 +0000 | [diff] [blame] | 10078 | # UUID |
| 10079 | if test "$ac_has_uuid_lib" = "1" -a "$ac_has_uuid_h" = "1"; then |
| 10080 | ac_os_objs="$ac_os_objs guid_uuid.o" |
| 10081 | else |
| 10082 | ac_os_objs="$ac_os_objs guid_simple.o" |
| 10083 | fi |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 10084 | ;; |
| 10085 | esac |
| 10086 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10087 | |
| 10088 | |
| 10089 | |
Benny Prijono | 4e48b51 | 2007-05-16 13:41:00 +0000 | [diff] [blame] | 10090 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 10091 | # Check whether --enable-sound was given. |
Benny Prijono | 1d97162 | 2006-09-10 22:27:40 +0000 | [diff] [blame] | 10092 | if test "${enable_sound+set}" = set; then |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 10093 | enableval=$enable_sound; if test "$enable_sound" = "no"; then |
Benny Prijono | 1d97162 | 2006-09-10 22:27:40 +0000 | [diff] [blame] | 10094 | ac_pjmedia_snd=null |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 10095 | { echo "$as_me:$LINENO: result: Checking if sound is disabled... yes" >&5 |
| 10096 | echo "${ECHO_T}Checking if sound is disabled... yes" >&6; } |
Benny Prijono | 1d97162 | 2006-09-10 22:27:40 +0000 | [diff] [blame] | 10097 | fi |
| 10098 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 10099 | fi |
| 10100 | |
Benny Prijono | 1d97162 | 2006-09-10 22:27:40 +0000 | [diff] [blame] | 10101 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10102 | |
Benny Prijono | 27c9872 | 2007-04-09 21:28:15 +0000 | [diff] [blame] | 10103 | if test "${ac_cv_header_sys_soundcard_h+set}" = set; then |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 10104 | { echo "$as_me:$LINENO: checking for sys/soundcard.h" >&5 |
| 10105 | echo $ECHO_N "checking for sys/soundcard.h... $ECHO_C" >&6; } |
Benny Prijono | 27c9872 | 2007-04-09 21:28:15 +0000 | [diff] [blame] | 10106 | if test "${ac_cv_header_sys_soundcard_h+set}" = set; then |
| 10107 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10108 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 10109 | { echo "$as_me:$LINENO: result: $ac_cv_header_sys_soundcard_h" >&5 |
| 10110 | echo "${ECHO_T}$ac_cv_header_sys_soundcard_h" >&6; } |
Benny Prijono | 27c9872 | 2007-04-09 21:28:15 +0000 | [diff] [blame] | 10111 | else |
| 10112 | # Is the header compilable? |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 10113 | { echo "$as_me:$LINENO: checking sys/soundcard.h usability" >&5 |
| 10114 | echo $ECHO_N "checking sys/soundcard.h usability... $ECHO_C" >&6; } |
Benny Prijono | 27c9872 | 2007-04-09 21:28:15 +0000 | [diff] [blame] | 10115 | cat >conftest.$ac_ext <<_ACEOF |
| 10116 | /* confdefs.h. */ |
| 10117 | _ACEOF |
| 10118 | cat confdefs.h >>conftest.$ac_ext |
| 10119 | cat >>conftest.$ac_ext <<_ACEOF |
| 10120 | /* end confdefs.h. */ |
| 10121 | $ac_includes_default |
| 10122 | #include <sys/soundcard.h> |
| 10123 | _ACEOF |
| 10124 | rm -f conftest.$ac_objext |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 10125 | if { (ac_try="$ac_compile" |
| 10126 | case "(($ac_try" in |
| 10127 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10128 | *) ac_try_echo=$ac_try;; |
| 10129 | esac |
| 10130 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10131 | (eval "$ac_compile") 2>conftest.er1 |
Benny Prijono | 27c9872 | 2007-04-09 21:28:15 +0000 | [diff] [blame] | 10132 | ac_status=$? |
| 10133 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10134 | rm -f conftest.er1 |
| 10135 | cat conftest.err >&5 |
| 10136 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 10137 | (exit $ac_status); } && { |
| 10138 | test -z "$ac_c_werror_flag" || |
| 10139 | test ! -s conftest.err |
| 10140 | } && test -s conftest.$ac_objext; then |
Benny Prijono | 27c9872 | 2007-04-09 21:28:15 +0000 | [diff] [blame] | 10141 | ac_header_compiler=yes |
| 10142 | else |
| 10143 | echo "$as_me: failed program was:" >&5 |
| 10144 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10145 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 10146 | ac_header_compiler=no |
Benny Prijono | 27c9872 | 2007-04-09 21:28:15 +0000 | [diff] [blame] | 10147 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 10148 | |
| 10149 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 10150 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 10151 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Benny Prijono | 27c9872 | 2007-04-09 21:28:15 +0000 | [diff] [blame] | 10152 | |
| 10153 | # Is the header present? |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 10154 | { echo "$as_me:$LINENO: checking sys/soundcard.h presence" >&5 |
| 10155 | echo $ECHO_N "checking sys/soundcard.h presence... $ECHO_C" >&6; } |
Benny Prijono | 27c9872 | 2007-04-09 21:28:15 +0000 | [diff] [blame] | 10156 | cat >conftest.$ac_ext <<_ACEOF |
| 10157 | /* confdefs.h. */ |
| 10158 | _ACEOF |
| 10159 | cat confdefs.h >>conftest.$ac_ext |
| 10160 | cat >>conftest.$ac_ext <<_ACEOF |
| 10161 | /* end confdefs.h. */ |
| 10162 | #include <sys/soundcard.h> |
| 10163 | _ACEOF |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 10164 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 10165 | case "(($ac_try" in |
| 10166 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10167 | *) ac_try_echo=$ac_try;; |
| 10168 | esac |
| 10169 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10170 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Benny Prijono | 27c9872 | 2007-04-09 21:28:15 +0000 | [diff] [blame] | 10171 | ac_status=$? |
| 10172 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10173 | rm -f conftest.er1 |
| 10174 | cat conftest.err >&5 |
| 10175 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 10176 | (exit $ac_status); } >/dev/null && { |
| 10177 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 10178 | test ! -s conftest.err |
| 10179 | }; then |
Benny Prijono | 27c9872 | 2007-04-09 21:28:15 +0000 | [diff] [blame] | 10180 | ac_header_preproc=yes |
| 10181 | else |
| 10182 | echo "$as_me: failed program was:" >&5 |
| 10183 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10184 | |
| 10185 | ac_header_preproc=no |
| 10186 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 10187 | |
Benny Prijono | 27c9872 | 2007-04-09 21:28:15 +0000 | [diff] [blame] | 10188 | rm -f conftest.err conftest.$ac_ext |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 10189 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 10190 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Benny Prijono | 27c9872 | 2007-04-09 21:28:15 +0000 | [diff] [blame] | 10191 | |
| 10192 | # So? What about this header? |
| 10193 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 10194 | yes:no: ) |
| 10195 | { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 10196 | echo "$as_me: WARNING: sys/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 10197 | { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: proceeding with the compiler's result" >&5 |
| 10198 | echo "$as_me: WARNING: sys/soundcard.h: proceeding with the compiler's result" >&2;} |
| 10199 | ac_header_preproc=yes |
| 10200 | ;; |
| 10201 | no:yes:* ) |
| 10202 | { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: present but cannot be compiled" >&5 |
| 10203 | echo "$as_me: WARNING: sys/soundcard.h: present but cannot be compiled" >&2;} |
| 10204 | { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: check for missing prerequisite headers?" >&5 |
| 10205 | echo "$as_me: WARNING: sys/soundcard.h: check for missing prerequisite headers?" >&2;} |
| 10206 | { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: see the Autoconf documentation" >&5 |
| 10207 | echo "$as_me: WARNING: sys/soundcard.h: see the Autoconf documentation" >&2;} |
| 10208 | { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 10209 | echo "$as_me: WARNING: sys/soundcard.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 10210 | { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: proceeding with the preprocessor's result" >&5 |
| 10211 | echo "$as_me: WARNING: sys/soundcard.h: proceeding with the preprocessor's result" >&2;} |
| 10212 | { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: in the future, the compiler will take precedence" >&5 |
| 10213 | echo "$as_me: WARNING: sys/soundcard.h: in the future, the compiler will take precedence" >&2;} |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 10214 | |
Benny Prijono | 27c9872 | 2007-04-09 21:28:15 +0000 | [diff] [blame] | 10215 | ;; |
| 10216 | esac |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 10217 | { echo "$as_me:$LINENO: checking for sys/soundcard.h" >&5 |
| 10218 | echo $ECHO_N "checking for sys/soundcard.h... $ECHO_C" >&6; } |
Benny Prijono | 27c9872 | 2007-04-09 21:28:15 +0000 | [diff] [blame] | 10219 | if test "${ac_cv_header_sys_soundcard_h+set}" = set; then |
| 10220 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10221 | else |
| 10222 | ac_cv_header_sys_soundcard_h=$ac_header_preproc |
| 10223 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 10224 | { echo "$as_me:$LINENO: result: $ac_cv_header_sys_soundcard_h" >&5 |
| 10225 | echo "${ECHO_T}$ac_cv_header_sys_soundcard_h" >&6; } |
Benny Prijono | 27c9872 | 2007-04-09 21:28:15 +0000 | [diff] [blame] | 10226 | |
| 10227 | fi |
| 10228 | if test $ac_cv_header_sys_soundcard_h = yes; then |
| 10229 | ac_pa_cflags="$ac_pa_cflags -DHAVE_SYS_SOUNDCARD_H" |
| 10230 | fi |
| 10231 | |
| 10232 | |
| 10233 | if test "${ac_cv_header_linux_soundcard_h+set}" = set; then |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 10234 | { echo "$as_me:$LINENO: checking for linux/soundcard.h" >&5 |
| 10235 | echo $ECHO_N "checking for linux/soundcard.h... $ECHO_C" >&6; } |
Benny Prijono | 27c9872 | 2007-04-09 21:28:15 +0000 | [diff] [blame] | 10236 | if test "${ac_cv_header_linux_soundcard_h+set}" = set; then |
| 10237 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10238 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 10239 | { echo "$as_me:$LINENO: result: $ac_cv_header_linux_soundcard_h" >&5 |
| 10240 | echo "${ECHO_T}$ac_cv_header_linux_soundcard_h" >&6; } |
Benny Prijono | 27c9872 | 2007-04-09 21:28:15 +0000 | [diff] [blame] | 10241 | else |
| 10242 | # Is the header compilable? |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 10243 | { echo "$as_me:$LINENO: checking linux/soundcard.h usability" >&5 |
| 10244 | echo $ECHO_N "checking linux/soundcard.h usability... $ECHO_C" >&6; } |
Benny Prijono | 27c9872 | 2007-04-09 21:28:15 +0000 | [diff] [blame] | 10245 | cat >conftest.$ac_ext <<_ACEOF |
| 10246 | /* confdefs.h. */ |
| 10247 | _ACEOF |
| 10248 | cat confdefs.h >>conftest.$ac_ext |
| 10249 | cat >>conftest.$ac_ext <<_ACEOF |
| 10250 | /* end confdefs.h. */ |
| 10251 | $ac_includes_default |
| 10252 | #include <linux/soundcard.h> |
| 10253 | _ACEOF |
| 10254 | rm -f conftest.$ac_objext |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 10255 | if { (ac_try="$ac_compile" |
| 10256 | case "(($ac_try" in |
| 10257 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10258 | *) ac_try_echo=$ac_try;; |
| 10259 | esac |
| 10260 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10261 | (eval "$ac_compile") 2>conftest.er1 |
Benny Prijono | 27c9872 | 2007-04-09 21:28:15 +0000 | [diff] [blame] | 10262 | ac_status=$? |
| 10263 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10264 | rm -f conftest.er1 |
| 10265 | cat conftest.err >&5 |
| 10266 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 10267 | (exit $ac_status); } && { |
| 10268 | test -z "$ac_c_werror_flag" || |
| 10269 | test ! -s conftest.err |
| 10270 | } && test -s conftest.$ac_objext; then |
Benny Prijono | 27c9872 | 2007-04-09 21:28:15 +0000 | [diff] [blame] | 10271 | ac_header_compiler=yes |
| 10272 | else |
| 10273 | echo "$as_me: failed program was:" >&5 |
| 10274 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10275 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 10276 | ac_header_compiler=no |
Benny Prijono | 27c9872 | 2007-04-09 21:28:15 +0000 | [diff] [blame] | 10277 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 10278 | |
| 10279 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 10280 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 10281 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Benny Prijono | 27c9872 | 2007-04-09 21:28:15 +0000 | [diff] [blame] | 10282 | |
| 10283 | # Is the header present? |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 10284 | { echo "$as_me:$LINENO: checking linux/soundcard.h presence" >&5 |
| 10285 | echo $ECHO_N "checking linux/soundcard.h presence... $ECHO_C" >&6; } |
Benny Prijono | 27c9872 | 2007-04-09 21:28:15 +0000 | [diff] [blame] | 10286 | cat >conftest.$ac_ext <<_ACEOF |
| 10287 | /* confdefs.h. */ |
| 10288 | _ACEOF |
| 10289 | cat confdefs.h >>conftest.$ac_ext |
| 10290 | cat >>conftest.$ac_ext <<_ACEOF |
| 10291 | /* end confdefs.h. */ |
| 10292 | #include <linux/soundcard.h> |
| 10293 | _ACEOF |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 10294 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 10295 | case "(($ac_try" in |
| 10296 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10297 | *) ac_try_echo=$ac_try;; |
| 10298 | esac |
| 10299 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10300 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Benny Prijono | 27c9872 | 2007-04-09 21:28:15 +0000 | [diff] [blame] | 10301 | ac_status=$? |
| 10302 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10303 | rm -f conftest.er1 |
| 10304 | cat conftest.err >&5 |
| 10305 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 10306 | (exit $ac_status); } >/dev/null && { |
| 10307 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 10308 | test ! -s conftest.err |
| 10309 | }; then |
Benny Prijono | 27c9872 | 2007-04-09 21:28:15 +0000 | [diff] [blame] | 10310 | ac_header_preproc=yes |
| 10311 | else |
| 10312 | echo "$as_me: failed program was:" >&5 |
| 10313 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10314 | |
| 10315 | ac_header_preproc=no |
| 10316 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 10317 | |
Benny Prijono | 27c9872 | 2007-04-09 21:28:15 +0000 | [diff] [blame] | 10318 | rm -f conftest.err conftest.$ac_ext |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 10319 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 10320 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Benny Prijono | 27c9872 | 2007-04-09 21:28:15 +0000 | [diff] [blame] | 10321 | |
| 10322 | # So? What about this header? |
| 10323 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 10324 | yes:no: ) |
| 10325 | { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 10326 | echo "$as_me: WARNING: linux/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 10327 | { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: proceeding with the compiler's result" >&5 |
| 10328 | echo "$as_me: WARNING: linux/soundcard.h: proceeding with the compiler's result" >&2;} |
| 10329 | ac_header_preproc=yes |
| 10330 | ;; |
| 10331 | no:yes:* ) |
| 10332 | { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: present but cannot be compiled" >&5 |
| 10333 | echo "$as_me: WARNING: linux/soundcard.h: present but cannot be compiled" >&2;} |
| 10334 | { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: check for missing prerequisite headers?" >&5 |
| 10335 | echo "$as_me: WARNING: linux/soundcard.h: check for missing prerequisite headers?" >&2;} |
| 10336 | { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: see the Autoconf documentation" >&5 |
| 10337 | echo "$as_me: WARNING: linux/soundcard.h: see the Autoconf documentation" >&2;} |
| 10338 | { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 10339 | echo "$as_me: WARNING: linux/soundcard.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 10340 | { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: proceeding with the preprocessor's result" >&5 |
| 10341 | echo "$as_me: WARNING: linux/soundcard.h: proceeding with the preprocessor's result" >&2;} |
| 10342 | { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: in the future, the compiler will take precedence" >&5 |
| 10343 | echo "$as_me: WARNING: linux/soundcard.h: in the future, the compiler will take precedence" >&2;} |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 10344 | |
Benny Prijono | 27c9872 | 2007-04-09 21:28:15 +0000 | [diff] [blame] | 10345 | ;; |
| 10346 | esac |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 10347 | { echo "$as_me:$LINENO: checking for linux/soundcard.h" >&5 |
| 10348 | echo $ECHO_N "checking for linux/soundcard.h... $ECHO_C" >&6; } |
Benny Prijono | 27c9872 | 2007-04-09 21:28:15 +0000 | [diff] [blame] | 10349 | if test "${ac_cv_header_linux_soundcard_h+set}" = set; then |
| 10350 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10351 | else |
| 10352 | ac_cv_header_linux_soundcard_h=$ac_header_preproc |
| 10353 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 10354 | { echo "$as_me:$LINENO: result: $ac_cv_header_linux_soundcard_h" >&5 |
| 10355 | echo "${ECHO_T}$ac_cv_header_linux_soundcard_h" >&6; } |
Benny Prijono | 27c9872 | 2007-04-09 21:28:15 +0000 | [diff] [blame] | 10356 | |
| 10357 | fi |
| 10358 | if test $ac_cv_header_linux_soundcard_h = yes; then |
| 10359 | ac_pa_cflags="$ac_pa_cflags -DHAVE_LINUX_SOUNDCARD_H" |
| 10360 | fi |
| 10361 | |
| 10362 | |
| 10363 | if test "${ac_cv_header_machine_soundcard_h+set}" = set; then |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 10364 | { echo "$as_me:$LINENO: checking for machine/soundcard.h" >&5 |
| 10365 | echo $ECHO_N "checking for machine/soundcard.h... $ECHO_C" >&6; } |
Benny Prijono | 27c9872 | 2007-04-09 21:28:15 +0000 | [diff] [blame] | 10366 | if test "${ac_cv_header_machine_soundcard_h+set}" = set; then |
| 10367 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10368 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 10369 | { echo "$as_me:$LINENO: result: $ac_cv_header_machine_soundcard_h" >&5 |
| 10370 | echo "${ECHO_T}$ac_cv_header_machine_soundcard_h" >&6; } |
Benny Prijono | 27c9872 | 2007-04-09 21:28:15 +0000 | [diff] [blame] | 10371 | else |
| 10372 | # Is the header compilable? |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 10373 | { echo "$as_me:$LINENO: checking machine/soundcard.h usability" >&5 |
| 10374 | echo $ECHO_N "checking machine/soundcard.h usability... $ECHO_C" >&6; } |
Benny Prijono | 27c9872 | 2007-04-09 21:28:15 +0000 | [diff] [blame] | 10375 | cat >conftest.$ac_ext <<_ACEOF |
| 10376 | /* confdefs.h. */ |
| 10377 | _ACEOF |
| 10378 | cat confdefs.h >>conftest.$ac_ext |
| 10379 | cat >>conftest.$ac_ext <<_ACEOF |
| 10380 | /* end confdefs.h. */ |
| 10381 | $ac_includes_default |
| 10382 | #include <machine/soundcard.h> |
| 10383 | _ACEOF |
| 10384 | rm -f conftest.$ac_objext |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 10385 | if { (ac_try="$ac_compile" |
| 10386 | case "(($ac_try" in |
| 10387 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10388 | *) ac_try_echo=$ac_try;; |
| 10389 | esac |
| 10390 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10391 | (eval "$ac_compile") 2>conftest.er1 |
Benny Prijono | 27c9872 | 2007-04-09 21:28:15 +0000 | [diff] [blame] | 10392 | ac_status=$? |
| 10393 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10394 | rm -f conftest.er1 |
| 10395 | cat conftest.err >&5 |
| 10396 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 10397 | (exit $ac_status); } && { |
| 10398 | test -z "$ac_c_werror_flag" || |
| 10399 | test ! -s conftest.err |
| 10400 | } && test -s conftest.$ac_objext; then |
Benny Prijono | 27c9872 | 2007-04-09 21:28:15 +0000 | [diff] [blame] | 10401 | ac_header_compiler=yes |
| 10402 | else |
| 10403 | echo "$as_me: failed program was:" >&5 |
| 10404 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10405 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 10406 | ac_header_compiler=no |
Benny Prijono | 27c9872 | 2007-04-09 21:28:15 +0000 | [diff] [blame] | 10407 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 10408 | |
| 10409 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 10410 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 10411 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Benny Prijono | 27c9872 | 2007-04-09 21:28:15 +0000 | [diff] [blame] | 10412 | |
| 10413 | # Is the header present? |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 10414 | { echo "$as_me:$LINENO: checking machine/soundcard.h presence" >&5 |
| 10415 | echo $ECHO_N "checking machine/soundcard.h presence... $ECHO_C" >&6; } |
Benny Prijono | 27c9872 | 2007-04-09 21:28:15 +0000 | [diff] [blame] | 10416 | cat >conftest.$ac_ext <<_ACEOF |
| 10417 | /* confdefs.h. */ |
| 10418 | _ACEOF |
| 10419 | cat confdefs.h >>conftest.$ac_ext |
| 10420 | cat >>conftest.$ac_ext <<_ACEOF |
| 10421 | /* end confdefs.h. */ |
| 10422 | #include <machine/soundcard.h> |
| 10423 | _ACEOF |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 10424 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 10425 | case "(($ac_try" in |
| 10426 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10427 | *) ac_try_echo=$ac_try;; |
| 10428 | esac |
| 10429 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10430 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Benny Prijono | 27c9872 | 2007-04-09 21:28:15 +0000 | [diff] [blame] | 10431 | ac_status=$? |
| 10432 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10433 | rm -f conftest.er1 |
| 10434 | cat conftest.err >&5 |
| 10435 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 10436 | (exit $ac_status); } >/dev/null && { |
| 10437 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 10438 | test ! -s conftest.err |
| 10439 | }; then |
Benny Prijono | 27c9872 | 2007-04-09 21:28:15 +0000 | [diff] [blame] | 10440 | ac_header_preproc=yes |
| 10441 | else |
| 10442 | echo "$as_me: failed program was:" >&5 |
| 10443 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10444 | |
| 10445 | ac_header_preproc=no |
| 10446 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 10447 | |
Benny Prijono | 27c9872 | 2007-04-09 21:28:15 +0000 | [diff] [blame] | 10448 | rm -f conftest.err conftest.$ac_ext |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 10449 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 10450 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Benny Prijono | 27c9872 | 2007-04-09 21:28:15 +0000 | [diff] [blame] | 10451 | |
| 10452 | # So? What about this header? |
| 10453 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 10454 | yes:no: ) |
| 10455 | { echo "$as_me:$LINENO: WARNING: machine/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 10456 | echo "$as_me: WARNING: machine/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 10457 | { echo "$as_me:$LINENO: WARNING: machine/soundcard.h: proceeding with the compiler's result" >&5 |
| 10458 | echo "$as_me: WARNING: machine/soundcard.h: proceeding with the compiler's result" >&2;} |
| 10459 | ac_header_preproc=yes |
| 10460 | ;; |
| 10461 | no:yes:* ) |
| 10462 | { echo "$as_me:$LINENO: WARNING: machine/soundcard.h: present but cannot be compiled" >&5 |
| 10463 | echo "$as_me: WARNING: machine/soundcard.h: present but cannot be compiled" >&2;} |
| 10464 | { echo "$as_me:$LINENO: WARNING: machine/soundcard.h: check for missing prerequisite headers?" >&5 |
| 10465 | echo "$as_me: WARNING: machine/soundcard.h: check for missing prerequisite headers?" >&2;} |
| 10466 | { echo "$as_me:$LINENO: WARNING: machine/soundcard.h: see the Autoconf documentation" >&5 |
| 10467 | echo "$as_me: WARNING: machine/soundcard.h: see the Autoconf documentation" >&2;} |
| 10468 | { echo "$as_me:$LINENO: WARNING: machine/soundcard.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 10469 | echo "$as_me: WARNING: machine/soundcard.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 10470 | { echo "$as_me:$LINENO: WARNING: machine/soundcard.h: proceeding with the preprocessor's result" >&5 |
| 10471 | echo "$as_me: WARNING: machine/soundcard.h: proceeding with the preprocessor's result" >&2;} |
| 10472 | { echo "$as_me:$LINENO: WARNING: machine/soundcard.h: in the future, the compiler will take precedence" >&5 |
| 10473 | echo "$as_me: WARNING: machine/soundcard.h: in the future, the compiler will take precedence" >&2;} |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 10474 | |
Benny Prijono | 27c9872 | 2007-04-09 21:28:15 +0000 | [diff] [blame] | 10475 | ;; |
| 10476 | esac |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 10477 | { echo "$as_me:$LINENO: checking for machine/soundcard.h" >&5 |
| 10478 | echo $ECHO_N "checking for machine/soundcard.h... $ECHO_C" >&6; } |
Benny Prijono | 27c9872 | 2007-04-09 21:28:15 +0000 | [diff] [blame] | 10479 | if test "${ac_cv_header_machine_soundcard_h+set}" = set; then |
| 10480 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10481 | else |
| 10482 | ac_cv_header_machine_soundcard_h=$ac_header_preproc |
| 10483 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 10484 | { echo "$as_me:$LINENO: result: $ac_cv_header_machine_soundcard_h" >&5 |
| 10485 | echo "${ECHO_T}$ac_cv_header_machine_soundcard_h" >&6; } |
Benny Prijono | 27c9872 | 2007-04-09 21:28:15 +0000 | [diff] [blame] | 10486 | |
| 10487 | fi |
| 10488 | if test $ac_cv_header_machine_soundcard_h = yes; then |
| 10489 | ac_pa_cflags="$ac_pa_cflags -DHAVE_MACHINE_SOUNDCARD_H" |
| 10490 | fi |
| 10491 | |
| 10492 | |
| 10493 | |
Benny Prijono | 3e09167 | 2008-01-09 15:43:02 +0000 | [diff] [blame] | 10494 | if test "x$ac_cv_c_bigendian" = "xyes"; then |
| 10495 | ac_pa_cflags="$ac_pa_cflags -DPA_BIG_ENDIAN" |
| 10496 | else |
| 10497 | ac_pa_cflags="$ac_pa_cflags -DPA_LITTLE_ENDIAN" |
| 10498 | fi |
| 10499 | |
Benny Prijono | 1d97162 | 2006-09-10 22:27:40 +0000 | [diff] [blame] | 10500 | if test "$enable_sound" = "no"; then |
| 10501 | true; |
| 10502 | else |
| 10503 | case $target in |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame] | 10504 | *darwin*) |
Benny Prijono | 39ae2da | 2006-10-13 17:57:42 +0000 | [diff] [blame] | 10505 | LIBS="$LIBS -framework CoreAudio -framework CoreServices -framework AudioUnit -framework AudioToolbox" |
| 10506 | if test "`uname -r`" = "6.8"; then |
Benny Prijono | 27c9872 | 2007-04-09 21:28:15 +0000 | [diff] [blame] | 10507 | #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] | 10508 | #AC_MSG_RESULT([Setting additional PortAudio CFLAGS.. -DPA_OLD_CORE_AUDIO -DMOSX_USE_NON_ATOMIC_FLAG_BITS]) |
| 10509 | ac_pjmedia_snd=pa_old_darwinos |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 10510 | { echo "$as_me:$LINENO: result: Checking sound device backend... old coreaudio" >&5 |
| 10511 | echo "${ECHO_T}Checking sound device backend... old coreaudio" >&6; } |
Benny Prijono | 39ae2da | 2006-10-13 17:57:42 +0000 | [diff] [blame] | 10512 | else |
| 10513 | ac_pjmedia_snd=pa_darwinos |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 10514 | { echo "$as_me:$LINENO: result: Checking sound device backend... coreaudio" >&5 |
| 10515 | echo "${ECHO_T}Checking sound device backend... coreaudio" >&6; } |
Benny Prijono | 39ae2da | 2006-10-13 17:57:42 +0000 | [diff] [blame] | 10516 | fi |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame] | 10517 | ;; |
| 10518 | *cygwin* | *mingw*) |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 10519 | ac_pjmedia_snd=pa_win32 |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 10520 | { echo "$as_me:$LINENO: result: Checking sound device backend... win32 sound" >&5 |
| 10521 | echo "${ECHO_T}Checking sound device backend... win32 sound" >&6; } |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 10522 | ;; |
| 10523 | *rtems*) |
| 10524 | ac_pjmedia_snd=null |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 10525 | { echo "$as_me:$LINENO: result: Checking sound device backend... null sound" >&5 |
| 10526 | echo "${ECHO_T}Checking sound device backend... null sound" >&6; } |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 10527 | ;; |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 10528 | *) |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 10529 | ac_pjmedia_snd=pa_unix |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10530 | if test "${ac_cv_header_alsa_version_h+set}" = set; then |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 10531 | { echo "$as_me:$LINENO: checking for alsa/version.h" >&5 |
| 10532 | echo $ECHO_N "checking for alsa/version.h... $ECHO_C" >&6; } |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 10533 | if test "${ac_cv_header_alsa_version_h+set}" = set; then |
| 10534 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10535 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 10536 | { echo "$as_me:$LINENO: result: $ac_cv_header_alsa_version_h" >&5 |
| 10537 | echo "${ECHO_T}$ac_cv_header_alsa_version_h" >&6; } |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 10538 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10539 | # Is the header compilable? |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 10540 | { echo "$as_me:$LINENO: checking alsa/version.h usability" >&5 |
| 10541 | echo $ECHO_N "checking alsa/version.h usability... $ECHO_C" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10542 | cat >conftest.$ac_ext <<_ACEOF |
| 10543 | /* confdefs.h. */ |
| 10544 | _ACEOF |
| 10545 | cat confdefs.h >>conftest.$ac_ext |
| 10546 | cat >>conftest.$ac_ext <<_ACEOF |
| 10547 | /* end confdefs.h. */ |
| 10548 | $ac_includes_default |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 10549 | #include <alsa/version.h> |
| 10550 | _ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10551 | rm -f conftest.$ac_objext |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 10552 | if { (ac_try="$ac_compile" |
| 10553 | case "(($ac_try" in |
| 10554 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10555 | *) ac_try_echo=$ac_try;; |
| 10556 | esac |
| 10557 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10558 | (eval "$ac_compile") 2>conftest.er1 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 10559 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10560 | grep -v '^ *+' conftest.er1 >conftest.err |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 10561 | rm -f conftest.er1 |
| 10562 | cat conftest.err >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10563 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 10564 | (exit $ac_status); } && { |
| 10565 | test -z "$ac_c_werror_flag" || |
| 10566 | test ! -s conftest.err |
| 10567 | } && test -s conftest.$ac_objext; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10568 | ac_header_compiler=yes |
| 10569 | else |
| 10570 | echo "$as_me: failed program was:" >&5 |
| 10571 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10572 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 10573 | ac_header_compiler=no |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10574 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 10575 | |
| 10576 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 10577 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 10578 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10579 | |
| 10580 | # Is the header present? |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 10581 | { echo "$as_me:$LINENO: checking alsa/version.h presence" >&5 |
| 10582 | echo $ECHO_N "checking alsa/version.h presence... $ECHO_C" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10583 | cat >conftest.$ac_ext <<_ACEOF |
| 10584 | /* confdefs.h. */ |
| 10585 | _ACEOF |
| 10586 | cat confdefs.h >>conftest.$ac_ext |
| 10587 | cat >>conftest.$ac_ext <<_ACEOF |
| 10588 | /* end confdefs.h. */ |
| 10589 | #include <alsa/version.h> |
| 10590 | _ACEOF |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 10591 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 10592 | case "(($ac_try" in |
| 10593 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10594 | *) ac_try_echo=$ac_try;; |
| 10595 | esac |
| 10596 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10597 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10598 | ac_status=$? |
| 10599 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10600 | rm -f conftest.er1 |
| 10601 | cat conftest.err >&5 |
| 10602 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 10603 | (exit $ac_status); } >/dev/null && { |
| 10604 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 10605 | test ! -s conftest.err |
| 10606 | }; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10607 | ac_header_preproc=yes |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 10608 | else |
| 10609 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10610 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10611 | |
| 10612 | ac_header_preproc=no |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 10613 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 10614 | |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 10615 | rm -f conftest.err conftest.$ac_ext |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 10616 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 10617 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10618 | |
| 10619 | # So? What about this header? |
| 10620 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 10621 | yes:no: ) |
| 10622 | { echo "$as_me:$LINENO: WARNING: alsa/version.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 10623 | echo "$as_me: WARNING: alsa/version.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 10624 | { echo "$as_me:$LINENO: WARNING: alsa/version.h: proceeding with the compiler's result" >&5 |
| 10625 | echo "$as_me: WARNING: alsa/version.h: proceeding with the compiler's result" >&2;} |
| 10626 | ac_header_preproc=yes |
| 10627 | ;; |
| 10628 | no:yes:* ) |
| 10629 | { echo "$as_me:$LINENO: WARNING: alsa/version.h: present but cannot be compiled" >&5 |
| 10630 | echo "$as_me: WARNING: alsa/version.h: present but cannot be compiled" >&2;} |
| 10631 | { echo "$as_me:$LINENO: WARNING: alsa/version.h: check for missing prerequisite headers?" >&5 |
| 10632 | echo "$as_me: WARNING: alsa/version.h: check for missing prerequisite headers?" >&2;} |
| 10633 | { echo "$as_me:$LINENO: WARNING: alsa/version.h: see the Autoconf documentation" >&5 |
| 10634 | echo "$as_me: WARNING: alsa/version.h: see the Autoconf documentation" >&2;} |
| 10635 | { echo "$as_me:$LINENO: WARNING: alsa/version.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 10636 | echo "$as_me: WARNING: alsa/version.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 10637 | { echo "$as_me:$LINENO: WARNING: alsa/version.h: proceeding with the preprocessor's result" >&5 |
| 10638 | echo "$as_me: WARNING: alsa/version.h: proceeding with the preprocessor's result" >&2;} |
| 10639 | { echo "$as_me:$LINENO: WARNING: alsa/version.h: in the future, the compiler will take precedence" >&5 |
| 10640 | echo "$as_me: WARNING: alsa/version.h: in the future, the compiler will take precedence" >&2;} |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 10641 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10642 | ;; |
| 10643 | esac |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 10644 | { echo "$as_me:$LINENO: checking for alsa/version.h" >&5 |
| 10645 | echo $ECHO_N "checking for alsa/version.h... $ECHO_C" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10646 | if test "${ac_cv_header_alsa_version_h+set}" = set; then |
| 10647 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10648 | else |
| 10649 | ac_cv_header_alsa_version_h=$ac_header_preproc |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 10650 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 10651 | { echo "$as_me:$LINENO: result: $ac_cv_header_alsa_version_h" >&5 |
| 10652 | echo "${ECHO_T}$ac_cv_header_alsa_version_h" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10653 | |
| 10654 | fi |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 10655 | if test $ac_cv_header_alsa_version_h = yes; then |
| 10656 | ac_pa_use_alsa=1 |
| 10657 | |
| 10658 | LIBS="$LIBS -lasound" |
| 10659 | |
| 10660 | else |
| 10661 | ac_pa_use_alsa=0 |
| 10662 | |
| 10663 | fi |
| 10664 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10665 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 10666 | { echo "$as_me:$LINENO: result: Checking sound device backend... unix" >&5 |
| 10667 | echo "${ECHO_T}Checking sound device backend... unix" >&6; } |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 10668 | |
| 10669 | ac_pa_use_oss=1 |
| 10670 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 10671 | # Check whether --enable-oss was given. |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 10672 | if test "${enable_oss+set}" = set; then |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 10673 | enableval=$enable_oss; |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 10674 | if test "$enable_oss" = "no"; then |
| 10675 | ac_pa_use_oss=0 |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 10676 | { echo "$as_me:$LINENO: result: Checking if OSS audio is disabled... yes" >&5 |
| 10677 | echo "${ECHO_T}Checking if OSS audio is disabled... yes" >&6; } |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 10678 | fi |
| 10679 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 10680 | fi |
| 10681 | |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 10682 | ;; |
Benny Prijono | 1d97162 | 2006-09-10 22:27:40 +0000 | [diff] [blame] | 10683 | esac |
| 10684 | fi |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 10685 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 10686 | # Check whether --enable-ext_sound was given. |
Benny Prijono | ebb2c33 | 2008-07-28 23:40:58 +0000 | [diff] [blame] | 10687 | if test "${enable_ext_sound+set}" = set; then |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 10688 | enableval=$enable_ext_sound; if test "$enable_ext_sound" = "yes"; then |
Benny Prijono | ebb2c33 | 2008-07-28 23:40:58 +0000 | [diff] [blame] | 10689 | ac_pjmedia_snd=external |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 10690 | { echo "$as_me:$LINENO: result: Checking if external sound is set... yes" >&5 |
| 10691 | echo "${ECHO_T}Checking if external sound is set... yes" >&6; } |
Benny Prijono | ebb2c33 | 2008-07-28 23:40:58 +0000 | [diff] [blame] | 10692 | fi |
| 10693 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 10694 | fi |
Benny Prijono | ebb2c33 | 2008-07-28 23:40:58 +0000 | [diff] [blame] | 10695 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10696 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 10697 | |
| 10698 | # Check whether --enable-small-filter was given. |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 10699 | if test "${enable_small_filter+set}" = set; then |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 10700 | enableval=$enable_small_filter; if test "$enable_small_filter" = "no"; then |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 10701 | ac_no_small_filter='-DPJMEDIA_HAS_SMALL_FILTER=0' |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 10702 | { echo "$as_me:$LINENO: result: Checking if small filter is disabled... yes" >&5 |
| 10703 | echo "${ECHO_T}Checking if small filter is disabled... yes" >&6; } |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 10704 | fi |
| 10705 | else |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 10706 | { echo "$as_me:$LINENO: result: Checking if small filter is disabled... no" >&5 |
| 10707 | echo "${ECHO_T}Checking if small filter is disabled... no" >&6; } |
| 10708 | fi |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 10709 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10710 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 10711 | |
| 10712 | # Check whether --enable-large-filter was given. |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 10713 | if test "${enable_large_filter+set}" = set; then |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 10714 | enableval=$enable_large_filter; if test "$enable_large_filter" = "no"; then |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 10715 | ac_no_large_filter='-DPJMEDIA_HAS_LARGE_FILTER=0' |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 10716 | { echo "$as_me:$LINENO: result: Checking if large filter is disabled... yes" >&5 |
| 10717 | echo "${ECHO_T}Checking if large filter is disabled... yes" >&6; } |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 10718 | fi |
| 10719 | else |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 10720 | { echo "$as_me:$LINENO: result: Checking if large filter is disabled... no" >&5 |
| 10721 | echo "${ECHO_T}Checking if large filter is disabled... no" >&6; } |
| 10722 | fi |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 10723 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10724 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 10725 | |
| 10726 | # Check whether --enable-speex-aec was given. |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 10727 | if test "${enable_speex_aec+set}" = set; then |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 10728 | enableval=$enable_speex_aec; if test "$enable_speex_aec" = "no"; then |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 10729 | ac_no_speex_aec='-DPJMEDIA_HAS_SPEEX_AEC=0' |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 10730 | { echo "$as_me:$LINENO: result: Checking if Speex AEC is disabled...yes" >&5 |
| 10731 | echo "${ECHO_T}Checking if Speex AEC is disabled...yes" >&6; } |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 10732 | fi |
| 10733 | else |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 10734 | { echo "$as_me:$LINENO: result: Checking if Speex AEC is disabled...no" >&5 |
| 10735 | echo "${ECHO_T}Checking if Speex AEC is disabled...no" >&6; } |
| 10736 | fi |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 10737 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10738 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 10739 | |
| 10740 | # Check whether --enable-g711-codec was given. |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 10741 | if test "${enable_g711_codec+set}" = set; then |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 10742 | enableval=$enable_g711_codec; if test "$enable_g711_codec" = "no"; then |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 10743 | ac_no_g711_codec=1 |
Benny Prijono | 06d1d0e | 2007-01-27 18:09:28 +0000 | [diff] [blame] | 10744 | cat >>confdefs.h <<\_ACEOF |
| 10745 | #define PJMEDIA_HAS_G711_CODEC 0 |
| 10746 | _ACEOF |
| 10747 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 10748 | { echo "$as_me:$LINENO: result: Checking if G.711 codec is disabled...yes" >&5 |
| 10749 | echo "${ECHO_T}Checking if G.711 codec is disabled...yes" >&6; } |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 10750 | fi |
| 10751 | else |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 10752 | { echo "$as_me:$LINENO: result: Checking if G.711 codec is disabled...no" >&5 |
| 10753 | echo "${ECHO_T}Checking if G.711 codec is disabled...no" >&6; } |
| 10754 | fi |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 10755 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10756 | |
| 10757 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 10758 | |
| 10759 | # Check whether --enable-l16-codec was given. |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 10760 | if test "${enable_l16_codec+set}" = set; then |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 10761 | enableval=$enable_l16_codec; if test "$enable_l16_codec" = "no"; then |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 10762 | ac_no_l16_codec=1 |
Benny Prijono | 06d1d0e | 2007-01-27 18:09:28 +0000 | [diff] [blame] | 10763 | cat >>confdefs.h <<\_ACEOF |
| 10764 | #define PJMEDIA_HAS_L16_CODEC 0 |
| 10765 | _ACEOF |
| 10766 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 10767 | { echo "$as_me:$LINENO: result: Checking if L16 codecs are disabled...yes" >&5 |
| 10768 | echo "${ECHO_T}Checking if L16 codecs are disabled...yes" >&6; } |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 10769 | fi |
| 10770 | else |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 10771 | { echo "$as_me:$LINENO: result: Checking if L16 codec is disabled...no" >&5 |
| 10772 | echo "${ECHO_T}Checking if L16 codec is disabled...no" >&6; } |
| 10773 | fi |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 10774 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10775 | |
| 10776 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 10777 | |
| 10778 | # Check whether --enable-gsm-codec was given. |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 10779 | if test "${enable_gsm_codec+set}" = set; then |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 10780 | enableval=$enable_gsm_codec; if test "$enable_gsm_codec" = "no"; then |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 10781 | ac_no_gsm_codec=1 |
Benny Prijono | 06d1d0e | 2007-01-27 18:09:28 +0000 | [diff] [blame] | 10782 | cat >>confdefs.h <<\_ACEOF |
| 10783 | #define PJMEDIA_HAS_GSM_CODEC 0 |
| 10784 | _ACEOF |
| 10785 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 10786 | { echo "$as_me:$LINENO: result: Checking if GSM codec is disabled...yes" >&5 |
| 10787 | echo "${ECHO_T}Checking if GSM codec is disabled...yes" >&6; } |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 10788 | fi |
| 10789 | else |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 10790 | { echo "$as_me:$LINENO: result: Checking if GSM codec is disabled...no" >&5 |
| 10791 | echo "${ECHO_T}Checking if GSM codec is disabled...no" >&6; } |
| 10792 | fi |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 10793 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10794 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 10795 | |
| 10796 | # Check whether --enable-g722-codec was given. |
Benny Prijono | 71f657d | 2008-03-17 14:24:21 +0000 | [diff] [blame] | 10797 | if test "${enable_g722_codec+set}" = set; then |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 10798 | enableval=$enable_g722_codec; if test "$enable_g722_codec" = "no"; then |
Benny Prijono | 71f657d | 2008-03-17 14:24:21 +0000 | [diff] [blame] | 10799 | ac_no_g722_codec=1 |
| 10800 | cat >>confdefs.h <<\_ACEOF |
| 10801 | #define PJMEDIA_HAS_G722_CODEC 0 |
| 10802 | _ACEOF |
| 10803 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 10804 | { echo "$as_me:$LINENO: result: Checking if G.722 codec is disabled...yes" >&5 |
| 10805 | echo "${ECHO_T}Checking if G.722 codec is disabled...yes" >&6; } |
Benny Prijono | 71f657d | 2008-03-17 14:24:21 +0000 | [diff] [blame] | 10806 | fi |
| 10807 | else |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 10808 | { echo "$as_me:$LINENO: result: Checking if G.722 codec is disabled...no" >&5 |
| 10809 | echo "${ECHO_T}Checking if G.722 codec is disabled...no" >&6; } |
| 10810 | fi |
Benny Prijono | 71f657d | 2008-03-17 14:24:21 +0000 | [diff] [blame] | 10811 | |
| 10812 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 10813 | |
| 10814 | # Check whether --enable-g7221-codec was given. |
| 10815 | if test "${enable_g7221_codec+set}" = set; then |
| 10816 | enableval=$enable_g7221_codec; if test "$enable_g7221_codec" = "no"; then |
| 10817 | ac_no_g7221_codec=1 |
| 10818 | cat >>confdefs.h <<\_ACEOF |
| 10819 | #define PJMEDIA_HAS_G7221_CODEC 0 |
| 10820 | _ACEOF |
| 10821 | |
| 10822 | { echo "$as_me:$LINENO: result: Checking if G.722.1 codec is disabled...yes" >&5 |
| 10823 | echo "${ECHO_T}Checking if G.722.1 codec is disabled...yes" >&6; } |
| 10824 | fi |
| 10825 | else |
| 10826 | { echo "$as_me:$LINENO: result: Checking if G.722.1 codec is disabled...no" >&5 |
| 10827 | echo "${ECHO_T}Checking if G.722.1 codec is disabled...no" >&6; } |
| 10828 | fi |
| 10829 | |
| 10830 | |
| 10831 | |
| 10832 | # Check whether --enable-speex-codec was given. |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 10833 | if test "${enable_speex_codec+set}" = set; then |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 10834 | enableval=$enable_speex_codec; if test "$enable_speex_codec" = "no"; then |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 10835 | ac_no_speex_codec=1 |
Benny Prijono | 06d1d0e | 2007-01-27 18:09:28 +0000 | [diff] [blame] | 10836 | cat >>confdefs.h <<\_ACEOF |
| 10837 | #define PJMEDIA_HAS_SPEEX_CODEC 0 |
| 10838 | _ACEOF |
| 10839 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 10840 | { echo "$as_me:$LINENO: result: Checking if Speex codec is disabled...yes" >&5 |
| 10841 | echo "${ECHO_T}Checking if Speex codec is disabled...yes" >&6; } |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 10842 | fi |
| 10843 | else |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 10844 | { echo "$as_me:$LINENO: result: Checking if Speex codec is disabled...no" >&5 |
| 10845 | echo "${ECHO_T}Checking if Speex codec is disabled...no" >&6; } |
| 10846 | fi |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 10847 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10848 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 10849 | |
| 10850 | # Check whether --enable-ilbc-codec was given. |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 10851 | if test "${enable_ilbc_codec+set}" = set; then |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 10852 | enableval=$enable_ilbc_codec; if test "$enable_ilbc_codec" = "no"; then |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 10853 | ac_no_ilbc_codec=1 |
Benny Prijono | 06d1d0e | 2007-01-27 18:09:28 +0000 | [diff] [blame] | 10854 | cat >>confdefs.h <<\_ACEOF |
| 10855 | #define PJMEDIA_HAS_ILBC_CODEC 0 |
| 10856 | _ACEOF |
| 10857 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 10858 | { echo "$as_me:$LINENO: result: Checking if iLBC codec is disabled...yes" >&5 |
| 10859 | echo "${ECHO_T}Checking if iLBC codec is disabled...yes" >&6; } |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 10860 | fi |
| 10861 | else |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 10862 | { echo "$as_me:$LINENO: result: Checking if iLBC codec is disabled...no" >&5 |
| 10863 | echo "${ECHO_T}Checking if iLBC codec is disabled...no" >&6; } |
| 10864 | fi |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 10865 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 10866 | |
| 10867 | # Check whether --enable-libsamplerate was given. |
Benny Prijono | 550a1a6 | 2007-10-16 08:54:00 +0000 | [diff] [blame] | 10868 | if test "${enable_libsamplerate+set}" = set; then |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 10869 | enableval=$enable_libsamplerate; |
| 10870 | { echo "$as_me:$LINENO: checking for src_new in -lsamplerate" >&5 |
| 10871 | echo $ECHO_N "checking for src_new in -lsamplerate... $ECHO_C" >&6; } |
Benny Prijono | 550a1a6 | 2007-10-16 08:54:00 +0000 | [diff] [blame] | 10872 | if test "${ac_cv_lib_samplerate_src_new+set}" = set; then |
| 10873 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10874 | else |
| 10875 | ac_check_lib_save_LIBS=$LIBS |
| 10876 | LIBS="-lsamplerate $LIBS" |
| 10877 | cat >conftest.$ac_ext <<_ACEOF |
| 10878 | /* confdefs.h. */ |
| 10879 | _ACEOF |
| 10880 | cat confdefs.h >>conftest.$ac_ext |
| 10881 | cat >>conftest.$ac_ext <<_ACEOF |
| 10882 | /* end confdefs.h. */ |
| 10883 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 10884 | /* Override any GCC internal prototype to avoid an error. |
| 10885 | Use char because int might match the return type of a GCC |
| 10886 | builtin and then its argument prototype would still apply. */ |
Benny Prijono | 550a1a6 | 2007-10-16 08:54:00 +0000 | [diff] [blame] | 10887 | #ifdef __cplusplus |
| 10888 | extern "C" |
| 10889 | #endif |
Benny Prijono | 550a1a6 | 2007-10-16 08:54:00 +0000 | [diff] [blame] | 10890 | char src_new (); |
| 10891 | int |
| 10892 | main () |
| 10893 | { |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 10894 | return src_new (); |
Benny Prijono | 550a1a6 | 2007-10-16 08:54:00 +0000 | [diff] [blame] | 10895 | ; |
| 10896 | return 0; |
| 10897 | } |
| 10898 | _ACEOF |
| 10899 | rm -f conftest.$ac_objext conftest$ac_exeext |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 10900 | if { (ac_try="$ac_link" |
| 10901 | case "(($ac_try" in |
| 10902 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10903 | *) ac_try_echo=$ac_try;; |
| 10904 | esac |
| 10905 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10906 | (eval "$ac_link") 2>conftest.er1 |
Benny Prijono | 550a1a6 | 2007-10-16 08:54:00 +0000 | [diff] [blame] | 10907 | ac_status=$? |
| 10908 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10909 | rm -f conftest.er1 |
| 10910 | cat conftest.err >&5 |
| 10911 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 10912 | (exit $ac_status); } && { |
| 10913 | test -z "$ac_c_werror_flag" || |
| 10914 | test ! -s conftest.err |
| 10915 | } && test -s conftest$ac_exeext && |
| 10916 | $as_test_x conftest$ac_exeext; then |
Benny Prijono | 550a1a6 | 2007-10-16 08:54:00 +0000 | [diff] [blame] | 10917 | ac_cv_lib_samplerate_src_new=yes |
| 10918 | else |
| 10919 | echo "$as_me: failed program was:" >&5 |
| 10920 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10921 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 10922 | ac_cv_lib_samplerate_src_new=no |
Benny Prijono | 550a1a6 | 2007-10-16 08:54:00 +0000 | [diff] [blame] | 10923 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 10924 | |
| 10925 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Benny Prijono | 550a1a6 | 2007-10-16 08:54:00 +0000 | [diff] [blame] | 10926 | conftest$ac_exeext conftest.$ac_ext |
| 10927 | LIBS=$ac_check_lib_save_LIBS |
| 10928 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 10929 | { echo "$as_me:$LINENO: result: $ac_cv_lib_samplerate_src_new" >&5 |
| 10930 | echo "${ECHO_T}$ac_cv_lib_samplerate_src_new" >&6; } |
Benny Prijono | 550a1a6 | 2007-10-16 08:54:00 +0000 | [diff] [blame] | 10931 | if test $ac_cv_lib_samplerate_src_new = yes; then |
| 10932 | cat >>confdefs.h <<_ACEOF |
| 10933 | #define HAVE_LIBSAMPLERATE 1 |
| 10934 | _ACEOF |
| 10935 | |
| 10936 | LIBS="-lsamplerate $LIBS" |
| 10937 | |
| 10938 | fi |
| 10939 | |
| 10940 | else |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 10941 | { echo "$as_me:$LINENO: result: Skipping libsamplerate detection" >&5 |
| 10942 | echo "${ECHO_T}Skipping libsamplerate detection" >&6; } |
Benny Prijono | 550a1a6 | 2007-10-16 08:54:00 +0000 | [diff] [blame] | 10943 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 10944 | fi |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 10945 | |
| 10946 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 10947 | |
| 10948 | # Check whether --enable-ipp was given. |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 10949 | if test "${enable_ipp+set}" = set; then |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 10950 | enableval=$enable_ipp; |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 10951 | else |
| 10952 | enable_ipp=no |
| 10953 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 10954 | fi |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 10955 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 10956 | |
| 10957 | # Check whether --enable-ipp was given. |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 10958 | if test "${enable_ipp+set}" = set; then |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 10959 | enableval=$enable_ipp; |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 10960 | else |
| 10961 | with_ipp=no |
| 10962 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 10963 | fi |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 10964 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 10965 | |
| 10966 | # Check whether --enable-ipp-samples was given. |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 10967 | if test "${enable_ipp_samples+set}" = set; then |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 10968 | enableval=$enable_ipp_samples; |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 10969 | else |
| 10970 | with_ipp_samples=no |
| 10971 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 10972 | fi |
| 10973 | |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 10974 | |
| 10975 | if test "x$enable_ipp" != "xno"; then |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 10976 | { echo "$as_me:$LINENO: checking Intel IPP location" >&5 |
| 10977 | echo $ECHO_N "checking Intel IPP location... $ECHO_C" >&6; } |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 10978 | |
| 10979 | if test "x$with_ipp" != "xno" -a "x$with_ipp" != "x"; then |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 10980 | { echo "$as_me:$LINENO: result: $with_ipp" >&5 |
| 10981 | echo "${ECHO_T}$with_ipp" >&6; } |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 10982 | IPPROOT=$with_ipp |
| 10983 | elif test "x$IPPROOT" = "x"; then |
| 10984 | if test -d /opt/intel/ipp; then |
| 10985 | IPPROOT=`ls -d /opt/intel/ipp/*/* | head -1` |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 10986 | { echo "$as_me:$LINENO: result: autodetected in $IPPROOT" >&5 |
| 10987 | echo "${ECHO_T}autodetected in $IPPROOT" >&6; } |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 10988 | fi |
| 10989 | else |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 10990 | { echo "$as_me:$LINENO: result: $IPPROOT" >&5 |
| 10991 | echo "${ECHO_T}$IPPROOT" >&6; } |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 10992 | fi |
| 10993 | |
| 10994 | if test x$IPPROOT = x; then |
| 10995 | { { echo "$as_me:$LINENO: error: the location is neither specified nor can be guessed. Please specify with IPPROOT env var or with --with-ipp option" >&5 |
| 10996 | echo "$as_me: error: the location is neither specified nor can be guessed. Please specify with IPPROOT env var or with --with-ipp option" >&2;} |
| 10997 | { (exit 1); exit 1; }; } |
| 10998 | elif test ! -d $IPPROOT; then |
| 10999 | { { echo "$as_me:$LINENO: error: not found" >&5 |
| 11000 | echo "$as_me: error: not found" >&2;} |
| 11001 | { (exit 1); exit 1; }; } |
| 11002 | elif test ! -d $IPPROOT/include; then |
| 11003 | { { echo "$as_me:$LINENO: error: directory doesn't seem to be valid" >&5 |
| 11004 | echo "$as_me: error: directory doesn't seem to be valid" >&2;} |
| 11005 | { (exit 1); exit 1; }; } |
| 11006 | else |
| 11007 | # IPP directory looks okay. |
| 11008 | # Remove trailing backslash |
| 11009 | IPPROOT=`echo $IPPROOT/ | sed 's/\/$//'` |
| 11010 | |
| 11011 | SAVED_CFLAGS="$CFLAGS" |
| 11012 | SAVED_LDFLAGS="$LDFLAGS" |
| 11013 | SAVED_LIBS="$LIBS" |
| 11014 | |
| 11015 | IPP_CFLAGS="-I$IPPROOT/include" |
| 11016 | IPP_LDFLAGS="-L$IPPROOT/sharedlib" |
| 11017 | IPP_LIBS="-lippsc -lipps -lippsr -lippcore -lguide" |
| 11018 | #IPP_LDFLAGS="-L$IPPROOT/sharedlib" |
| 11019 | #IPP_LIBS="-lippscmerged -lippsrmerged -lippsmerged -lippcore" |
| 11020 | |
| 11021 | CFLAGS="$CFLAGS $IPP_CFLAGS" |
| 11022 | LDFLAGS="$LDFLAGS $IPP_LDFLAGS" |
| 11023 | LIBS="$IPP_LIBS $LIBS" |
| 11024 | |
| 11025 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 11026 | { echo "$as_me:$LINENO: checking Intel IPP usability" >&5 |
| 11027 | echo $ECHO_N "checking Intel IPP usability... $ECHO_C" >&6; } |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 11028 | cat >conftest.$ac_ext <<_ACEOF |
| 11029 | /* confdefs.h. */ |
| 11030 | _ACEOF |
| 11031 | cat confdefs.h >>conftest.$ac_ext |
| 11032 | cat >>conftest.$ac_ext <<_ACEOF |
| 11033 | /* end confdefs.h. */ |
| 11034 | #include <ippcore.h> |
| 11035 | |
| 11036 | int |
| 11037 | main () |
| 11038 | { |
| 11039 | ippStaticInit(); |
| 11040 | ; |
| 11041 | return 0; |
| 11042 | } |
| 11043 | _ACEOF |
| 11044 | rm -f conftest.$ac_objext conftest$ac_exeext |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 11045 | if { (ac_try="$ac_link" |
| 11046 | case "(($ac_try" in |
| 11047 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11048 | *) ac_try_echo=$ac_try;; |
| 11049 | esac |
| 11050 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11051 | (eval "$ac_link") 2>conftest.er1 |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 11052 | ac_status=$? |
| 11053 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11054 | rm -f conftest.er1 |
| 11055 | cat conftest.err >&5 |
| 11056 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 11057 | (exit $ac_status); } && { |
| 11058 | test -z "$ac_c_werror_flag" || |
| 11059 | test ! -s conftest.err |
| 11060 | } && test -s conftest$ac_exeext && |
| 11061 | $as_test_x conftest$ac_exeext; then |
| 11062 | { echo "$as_me:$LINENO: result: ok" >&5 |
| 11063 | echo "${ECHO_T}ok" >&6; } |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 11064 | else |
| 11065 | echo "$as_me: failed program was:" >&5 |
| 11066 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11067 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 11068 | { { echo "$as_me:$LINENO: error: failed |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 11069 | See \`config.log' for more details." >&5 |
| 11070 | echo "$as_me: error: failed |
| 11071 | See \`config.log' for more details." >&2;} |
| 11072 | { (exit 1); exit 1; }; } |
| 11073 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 11074 | |
| 11075 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 11076 | conftest$ac_exeext conftest.$ac_ext |
| 11077 | |
| 11078 | CFLAGS="$SAVED_CFLAGS" |
| 11079 | LDFLAGS="$SAVED_LDFLAGS" |
| 11080 | LIBS="$SAVED_LIBS" |
| 11081 | fi |
| 11082 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 11083 | { echo "$as_me:$LINENO: checking Intel IPP samples location" >&5 |
| 11084 | echo $ECHO_N "checking Intel IPP samples location... $ECHO_C" >&6; } |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 11085 | |
| 11086 | if test "x$with_ipp_samples" != "xno" -a "x$with_ipp_samples" != "x"; then |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 11087 | { echo "$as_me:$LINENO: result: $with_ipp_samples" >&5 |
| 11088 | echo "${ECHO_T}$with_ipp_samples" >&6; } |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 11089 | IPPSAMPLES=$with_ipp_samples |
| 11090 | elif test "x$IPPSAMPLES" = "x"; then |
| 11091 | if test -d /opt/intel/ipp-samples; then |
| 11092 | IPPSAMPLES=/opt/intel/ipp-samples |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 11093 | { echo "$as_me:$LINENO: result: autodetected in $IPPSAMPLES" >&5 |
| 11094 | echo "${ECHO_T}autodetected in $IPPSAMPLES" >&6; } |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 11095 | fi |
| 11096 | else |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 11097 | { echo "$as_me:$LINENO: result: $IPPSAMPLES" >&5 |
| 11098 | echo "${ECHO_T}$IPPSAMPLES" >&6; } |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 11099 | fi |
| 11100 | |
| 11101 | if test x$IPPSAMPLES = x; then |
| 11102 | { { echo "$as_me:$LINENO: error: the location is neither specified nor can be guessed. Please specify with IPPSAMPLES env var or with --with-ipp-samples option" >&5 |
| 11103 | echo "$as_me: error: the location is neither specified nor can be guessed. Please specify with IPPSAMPLES env var or with --with-ipp-samples option" >&2;} |
| 11104 | { (exit 1); exit 1; }; } |
| 11105 | elif test ! -d $IPPSAMPLES; then |
| 11106 | { { echo "$as_me:$LINENO: error: not found" >&5 |
| 11107 | echo "$as_me: error: not found" >&2;} |
| 11108 | { (exit 1); exit 1; }; } |
| 11109 | elif test ! -d $IPPSAMPLES/speech-codecs; then |
| 11110 | { { echo "$as_me:$LINENO: error: directory doesn't seem to be valid" >&5 |
| 11111 | echo "$as_me: error: directory doesn't seem to be valid" >&2;} |
| 11112 | { (exit 1); exit 1; }; } |
| 11113 | else |
| 11114 | # Remove trailing backslash |
| 11115 | IPPSAMPLES=`echo $IPPSAMPLES | sed 's/\/$//'` |
| 11116 | |
| 11117 | # Guess the libusc.a build location |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 11118 | { echo "$as_me:$LINENO: checking Intel IPP USC build location" >&5 |
| 11119 | echo $ECHO_N "checking Intel IPP USC build location... $ECHO_C" >&6; } |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 11120 | IPPSAMPLESLIB=`ls -d $IPPSAMPLES/speech-codecs/bin/*gcc*/lib | head -1` |
| 11121 | if test ! -d $IPPSAMPLESLIB; then |
| 11122 | { { echo "$as_me:$LINENO: error: the $IPPSAMPLES/speech-codecs/bin/*gcc*/lib directory not found. Have you built the samples? |
| 11123 | See \`config.log' for more details." >&5 |
| 11124 | echo "$as_me: error: the $IPPSAMPLES/speech-codecs/bin/*gcc*/lib directory not found. Have you built the samples? |
| 11125 | See \`config.log' for more details." >&2;} |
| 11126 | { (exit 1); exit 1; }; } |
| 11127 | fi |
| 11128 | if test ! -f $IPPSAMPLESLIB/libusc.a; then |
| 11129 | { { echo "$as_me:$LINENO: error: libusc.a doesn't exist in $IPPSAMPLESLIB |
| 11130 | See \`config.log' for more details." >&5 |
| 11131 | echo "$as_me: error: libusc.a doesn't exist in $IPPSAMPLESLIB |
| 11132 | See \`config.log' for more details." >&2;} |
| 11133 | { (exit 1); exit 1; }; } |
| 11134 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 11135 | { echo "$as_me:$LINENO: result: $IPPSAMPLESLIB" >&5 |
| 11136 | echo "${ECHO_T}$IPPSAMPLESLIB" >&6; } |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 11137 | |
| 11138 | SAVED_CFLAGS="$CFLAGS" |
| 11139 | SAVED_LDFLAGS="$LDFLAGS" |
| 11140 | SAVED_LIBS="$LIBS" |
| 11141 | |
| 11142 | IPPSAMPLESINC="-I$IPPSAMPLES/speech-codecs/core/usc/include" |
| 11143 | CFLAGS="$CFLAGS $IPPSAMPLESINC" |
| 11144 | LDFLAGS="$LDFLAGS -L$IPPSAMPLESLIB" |
| 11145 | LIBS="-lusc $LIBS" |
| 11146 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 11147 | { echo "$as_me:$LINENO: checking Intel IPP USC usability" >&5 |
| 11148 | echo $ECHO_N "checking Intel IPP USC usability... $ECHO_C" >&6; } |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 11149 | cat >conftest.$ac_ext <<_ACEOF |
| 11150 | /* confdefs.h. */ |
| 11151 | _ACEOF |
| 11152 | cat confdefs.h >>conftest.$ac_ext |
| 11153 | cat >>conftest.$ac_ext <<_ACEOF |
| 11154 | /* end confdefs.h. */ |
| 11155 | #include <usc.h> |
| 11156 | |
| 11157 | int |
| 11158 | main () |
| 11159 | { |
| 11160 | extern USC_Fxns USC_G729AFP_Fxns; |
| 11161 | ; |
| 11162 | return 0; |
| 11163 | } |
| 11164 | _ACEOF |
| 11165 | rm -f conftest.$ac_objext conftest$ac_exeext |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 11166 | if { (ac_try="$ac_link" |
| 11167 | case "(($ac_try" in |
| 11168 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11169 | *) ac_try_echo=$ac_try;; |
| 11170 | esac |
| 11171 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11172 | (eval "$ac_link") 2>conftest.er1 |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 11173 | ac_status=$? |
| 11174 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11175 | rm -f conftest.er1 |
| 11176 | cat conftest.err >&5 |
| 11177 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 11178 | (exit $ac_status); } && { |
| 11179 | test -z "$ac_c_werror_flag" || |
| 11180 | test ! -s conftest.err |
| 11181 | } && test -s conftest$ac_exeext && |
| 11182 | $as_test_x conftest$ac_exeext; then |
| 11183 | { echo "$as_me:$LINENO: result: ok" >&5 |
| 11184 | echo "${ECHO_T}ok" >&6; } |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 11185 | else |
| 11186 | echo "$as_me: failed program was:" >&5 |
| 11187 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11188 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 11189 | { { echo "$as_me:$LINENO: error: failed |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 11190 | See \`config.log' for more details." >&5 |
| 11191 | echo "$as_me: error: failed |
| 11192 | See \`config.log' for more details." >&2;} |
| 11193 | { (exit 1); exit 1; }; } |
| 11194 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 11195 | |
| 11196 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 11197 | conftest$ac_exeext conftest.$ac_ext |
| 11198 | |
| 11199 | CFLAGS="$SAVED_CFLAGS" |
| 11200 | LDFLAGS="\$(IPP_LDFLAGS) $SAVED_LDFLAGS" |
| 11201 | LIBS="\$(IPP_LIBS) $SAVED_LIBS" |
| 11202 | |
| 11203 | IPP_CFLAGS="$IPP_CFLAGS $IPPSAMPLESINC" |
| 11204 | IPP_LDFLAGS="$IPP_LDFLAGS -L$IPPSAMPLESLIB" |
| 11205 | IPP_LIBS="-lusc $IPP_LIBS" |
| 11206 | fi |
| 11207 | |
| 11208 | ac_build_mak_vars="$ac_build_mak_vars\n\ |
| 11209 | export IPP_CFLAGS=$IPP_CFLAGS\n\ |
| 11210 | export IPP_LDFLAGS=$IPP_LDFLAGS\n\ |
| 11211 | export IPP_LIBS=$IPP_LIBS" |
| 11212 | else |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 11213 | { echo "$as_me:$LINENO: result: Skipping Intel IPP settings (not wanted)" >&5 |
| 11214 | echo "${ECHO_T}Skipping Intel IPP settings (not wanted)" >&6; } |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 11215 | fi |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11216 | |
| 11217 | |
| 11218 | |
| 11219 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 11220 | # Check whether --enable-ssl was given. |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11221 | if test "${enable_ssl+set}" = set; then |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 11222 | enableval=$enable_ssl; |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11223 | if test "$enable_ssl" = "no"; then |
| 11224 | ac_no_ssl=1 |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 11225 | { echo "$as_me:$LINENO: result: Checking if SSL support is disabled... yes" >&5 |
| 11226 | echo "${ECHO_T}Checking if SSL support is disabled... yes" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11227 | fi |
| 11228 | |
| 11229 | else |
| 11230 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 11231 | { echo "$as_me:$LINENO: result: checking for OpenSSL installations.." >&5 |
| 11232 | echo "${ECHO_T}checking for OpenSSL installations.." >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11233 | |
| 11234 | |
| 11235 | |
| 11236 | if test "${ac_cv_header_openssl_ssl_h+set}" = set; then |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 11237 | { echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5 |
| 11238 | echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11239 | if test "${ac_cv_header_openssl_ssl_h+set}" = set; then |
| 11240 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11241 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 11242 | { echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5 |
| 11243 | echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11244 | else |
| 11245 | # Is the header compilable? |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 11246 | { echo "$as_me:$LINENO: checking openssl/ssl.h usability" >&5 |
| 11247 | echo $ECHO_N "checking openssl/ssl.h usability... $ECHO_C" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11248 | cat >conftest.$ac_ext <<_ACEOF |
| 11249 | /* confdefs.h. */ |
| 11250 | _ACEOF |
| 11251 | cat confdefs.h >>conftest.$ac_ext |
| 11252 | cat >>conftest.$ac_ext <<_ACEOF |
| 11253 | /* end confdefs.h. */ |
| 11254 | $ac_includes_default |
| 11255 | #include <openssl/ssl.h> |
| 11256 | _ACEOF |
| 11257 | rm -f conftest.$ac_objext |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 11258 | if { (ac_try="$ac_compile" |
| 11259 | case "(($ac_try" in |
| 11260 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11261 | *) ac_try_echo=$ac_try;; |
| 11262 | esac |
| 11263 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11264 | (eval "$ac_compile") 2>conftest.er1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11265 | ac_status=$? |
| 11266 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11267 | rm -f conftest.er1 |
| 11268 | cat conftest.err >&5 |
| 11269 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 11270 | (exit $ac_status); } && { |
| 11271 | test -z "$ac_c_werror_flag" || |
| 11272 | test ! -s conftest.err |
| 11273 | } && test -s conftest.$ac_objext; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11274 | ac_header_compiler=yes |
| 11275 | else |
| 11276 | echo "$as_me: failed program was:" >&5 |
| 11277 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11278 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 11279 | ac_header_compiler=no |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11280 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 11281 | |
| 11282 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11283 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 11284 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11285 | |
| 11286 | # Is the header present? |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 11287 | { echo "$as_me:$LINENO: checking openssl/ssl.h presence" >&5 |
| 11288 | echo $ECHO_N "checking openssl/ssl.h presence... $ECHO_C" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11289 | cat >conftest.$ac_ext <<_ACEOF |
| 11290 | /* confdefs.h. */ |
| 11291 | _ACEOF |
| 11292 | cat confdefs.h >>conftest.$ac_ext |
| 11293 | cat >>conftest.$ac_ext <<_ACEOF |
| 11294 | /* end confdefs.h. */ |
| 11295 | #include <openssl/ssl.h> |
| 11296 | _ACEOF |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 11297 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 11298 | case "(($ac_try" in |
| 11299 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11300 | *) ac_try_echo=$ac_try;; |
| 11301 | esac |
| 11302 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11303 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11304 | ac_status=$? |
| 11305 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11306 | rm -f conftest.er1 |
| 11307 | cat conftest.err >&5 |
| 11308 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 11309 | (exit $ac_status); } >/dev/null && { |
| 11310 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 11311 | test ! -s conftest.err |
| 11312 | }; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11313 | ac_header_preproc=yes |
| 11314 | else |
| 11315 | echo "$as_me: failed program was:" >&5 |
| 11316 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11317 | |
| 11318 | ac_header_preproc=no |
| 11319 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 11320 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11321 | rm -f conftest.err conftest.$ac_ext |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 11322 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 11323 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11324 | |
| 11325 | # So? What about this header? |
| 11326 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 11327 | yes:no: ) |
| 11328 | { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 11329 | echo "$as_me: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 11330 | { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the compiler's result" >&5 |
| 11331 | echo "$as_me: WARNING: openssl/ssl.h: proceeding with the compiler's result" >&2;} |
| 11332 | ac_header_preproc=yes |
| 11333 | ;; |
| 11334 | no:yes:* ) |
| 11335 | { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: present but cannot be compiled" >&5 |
| 11336 | echo "$as_me: WARNING: openssl/ssl.h: present but cannot be compiled" >&2;} |
| 11337 | { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&5 |
| 11338 | echo "$as_me: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&2;} |
| 11339 | { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: see the Autoconf documentation" >&5 |
| 11340 | echo "$as_me: WARNING: openssl/ssl.h: see the Autoconf documentation" >&2;} |
| 11341 | { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 11342 | echo "$as_me: WARNING: openssl/ssl.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 11343 | { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&5 |
| 11344 | echo "$as_me: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&2;} |
| 11345 | { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: in the future, the compiler will take precedence" >&5 |
| 11346 | echo "$as_me: WARNING: openssl/ssl.h: in the future, the compiler will take precedence" >&2;} |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 11347 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11348 | ;; |
| 11349 | esac |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 11350 | { echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5 |
| 11351 | echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11352 | if test "${ac_cv_header_openssl_ssl_h+set}" = set; then |
| 11353 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11354 | else |
| 11355 | ac_cv_header_openssl_ssl_h=$ac_header_preproc |
| 11356 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 11357 | { echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5 |
| 11358 | echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11359 | |
| 11360 | fi |
| 11361 | if test $ac_cv_header_openssl_ssl_h = yes; then |
| 11362 | openssl_h_present=1 |
| 11363 | fi |
| 11364 | |
| 11365 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 11366 | { echo "$as_me:$LINENO: checking for SSL_library_init in -lssl" >&5 |
| 11367 | 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] | 11368 | if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then |
| 11369 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11370 | else |
| 11371 | ac_check_lib_save_LIBS=$LIBS |
| 11372 | LIBS="-lssl $LIBS" |
| 11373 | cat >conftest.$ac_ext <<_ACEOF |
| 11374 | /* confdefs.h. */ |
| 11375 | _ACEOF |
| 11376 | cat confdefs.h >>conftest.$ac_ext |
| 11377 | cat >>conftest.$ac_ext <<_ACEOF |
| 11378 | /* end confdefs.h. */ |
| 11379 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 11380 | /* Override any GCC internal prototype to avoid an error. |
| 11381 | Use char because int might match the return type of a GCC |
| 11382 | builtin and then its argument prototype would still apply. */ |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11383 | #ifdef __cplusplus |
| 11384 | extern "C" |
| 11385 | #endif |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11386 | char SSL_library_init (); |
| 11387 | int |
| 11388 | main () |
| 11389 | { |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 11390 | return SSL_library_init (); |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11391 | ; |
| 11392 | return 0; |
| 11393 | } |
| 11394 | _ACEOF |
| 11395 | rm -f conftest.$ac_objext conftest$ac_exeext |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 11396 | if { (ac_try="$ac_link" |
| 11397 | case "(($ac_try" in |
| 11398 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11399 | *) ac_try_echo=$ac_try;; |
| 11400 | esac |
| 11401 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11402 | (eval "$ac_link") 2>conftest.er1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11403 | ac_status=$? |
| 11404 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11405 | rm -f conftest.er1 |
| 11406 | cat conftest.err >&5 |
| 11407 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 11408 | (exit $ac_status); } && { |
| 11409 | test -z "$ac_c_werror_flag" || |
| 11410 | test ! -s conftest.err |
| 11411 | } && test -s conftest$ac_exeext && |
| 11412 | $as_test_x conftest$ac_exeext; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11413 | ac_cv_lib_ssl_SSL_library_init=yes |
| 11414 | else |
| 11415 | echo "$as_me: failed program was:" >&5 |
| 11416 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11417 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 11418 | ac_cv_lib_ssl_SSL_library_init=no |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11419 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 11420 | |
| 11421 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11422 | conftest$ac_exeext conftest.$ac_ext |
| 11423 | LIBS=$ac_check_lib_save_LIBS |
| 11424 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 11425 | { echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_library_init" >&5 |
| 11426 | echo "${ECHO_T}$ac_cv_lib_ssl_SSL_library_init" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11427 | if test $ac_cv_lib_ssl_SSL_library_init = yes; then |
| 11428 | libssl_present=1 && LIBS="$LIBS -lssl" |
| 11429 | fi |
| 11430 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 11431 | { echo "$as_me:$LINENO: checking for ERR_load_BIO_strings in -lcrypto" >&5 |
| 11432 | 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] | 11433 | if test "${ac_cv_lib_crypto_ERR_load_BIO_strings+set}" = set; then |
| 11434 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11435 | else |
| 11436 | ac_check_lib_save_LIBS=$LIBS |
| 11437 | LIBS="-lcrypto $LIBS" |
| 11438 | cat >conftest.$ac_ext <<_ACEOF |
| 11439 | /* confdefs.h. */ |
| 11440 | _ACEOF |
| 11441 | cat confdefs.h >>conftest.$ac_ext |
| 11442 | cat >>conftest.$ac_ext <<_ACEOF |
| 11443 | /* end confdefs.h. */ |
| 11444 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 11445 | /* Override any GCC internal prototype to avoid an error. |
| 11446 | Use char because int might match the return type of a GCC |
| 11447 | builtin and then its argument prototype would still apply. */ |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11448 | #ifdef __cplusplus |
| 11449 | extern "C" |
| 11450 | #endif |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11451 | char ERR_load_BIO_strings (); |
| 11452 | int |
| 11453 | main () |
| 11454 | { |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 11455 | return ERR_load_BIO_strings (); |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11456 | ; |
| 11457 | return 0; |
| 11458 | } |
| 11459 | _ACEOF |
| 11460 | rm -f conftest.$ac_objext conftest$ac_exeext |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 11461 | if { (ac_try="$ac_link" |
| 11462 | case "(($ac_try" in |
| 11463 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11464 | *) ac_try_echo=$ac_try;; |
| 11465 | esac |
| 11466 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11467 | (eval "$ac_link") 2>conftest.er1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11468 | ac_status=$? |
| 11469 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11470 | rm -f conftest.er1 |
| 11471 | cat conftest.err >&5 |
| 11472 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 11473 | (exit $ac_status); } && { |
| 11474 | test -z "$ac_c_werror_flag" || |
| 11475 | test ! -s conftest.err |
| 11476 | } && test -s conftest$ac_exeext && |
| 11477 | $as_test_x conftest$ac_exeext; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11478 | ac_cv_lib_crypto_ERR_load_BIO_strings=yes |
| 11479 | else |
| 11480 | echo "$as_me: failed program was:" >&5 |
| 11481 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11482 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 11483 | ac_cv_lib_crypto_ERR_load_BIO_strings=no |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11484 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 11485 | |
| 11486 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11487 | conftest$ac_exeext conftest.$ac_ext |
| 11488 | LIBS=$ac_check_lib_save_LIBS |
| 11489 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 11490 | { echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_ERR_load_BIO_strings" >&5 |
| 11491 | echo "${ECHO_T}$ac_cv_lib_crypto_ERR_load_BIO_strings" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11492 | if test $ac_cv_lib_crypto_ERR_load_BIO_strings = yes; then |
| 11493 | libcrypto_present=1 && LIBS="$LIBS -lcrypto" |
| 11494 | fi |
| 11495 | |
| 11496 | if test "x$openssl_h_present" = "x1" -a "x$libssl_present" = "x1" -a "x$libcrypto_present" = "x1"; then |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 11497 | { echo "$as_me:$LINENO: result: OpenSSL library found, SSL support enabled" >&5 |
| 11498 | echo "${ECHO_T}OpenSSL library found, SSL support enabled" >&6; } |
Nanang Izzuddin | 9c7616f | 2009-10-28 06:09:15 +0000 | [diff] [blame] | 11499 | # PJSIP_HAS_TLS_TRANSPORT setting follows PJ_HAS_SSL_SOCK |
| 11500 | #AC_DEFINE(PJSIP_HAS_TLS_TRANSPORT, 1) |
Nanang Izzuddin | ea6d3c4 | 2009-10-26 15:47:52 +0000 | [diff] [blame] | 11501 | cat >>confdefs.h <<\_ACEOF |
| 11502 | #define PJ_HAS_SSL_SOCK 1 |
| 11503 | _ACEOF |
| 11504 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11505 | else |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 11506 | { echo "$as_me:$LINENO: result: ** OpenSSL libraries not found, disabling SSL support **" >&5 |
| 11507 | echo "${ECHO_T}** OpenSSL libraries not found, disabling SSL support **" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11508 | fi |
| 11509 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 11510 | fi |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11511 | |
| 11512 | |
| 11513 | |
| 11514 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 11515 | |
| 11516 | { echo "$as_me:$LINENO: checking if select() needs correct nfds" >&5 |
| 11517 | echo $ECHO_N "checking if select() needs correct nfds... $ECHO_C" >&6; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11518 | case $target in |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11519 | *rtems*) cat >>confdefs.h <<\_ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11520 | #define PJ_SELECT_NEEDS_NFDS 1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11521 | _ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11522 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 11523 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 11524 | echo "${ECHO_T}yes" >&6; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11525 | ;; |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11526 | *) cat >>confdefs.h <<\_ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11527 | #define PJ_SELECT_NEEDS_NFDS 0 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11528 | _ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11529 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 11530 | { echo "$as_me:$LINENO: result: no (default)" >&5 |
| 11531 | echo "${ECHO_T}no (default)" >&6; } |
| 11532 | { echo "$as_me:$LINENO: result: ** Decided that select() doesn't need correct nfds (please check)" >&5 |
| 11533 | 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] | 11534 | ;; |
| 11535 | esac |
| 11536 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 11537 | { echo "$as_me:$LINENO: checking if pj_thread_create() should enforce stack size" >&5 |
| 11538 | 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] | 11539 | case $target in |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11540 | *rtems*) cat >>confdefs.h <<\_ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11541 | #define PJ_THREAD_SET_STACK_SIZE 1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11542 | _ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11543 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 11544 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 11545 | echo "${ECHO_T}yes" >&6; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11546 | ;; |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11547 | *) cat >>confdefs.h <<\_ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11548 | #define PJ_THREAD_SET_STACK_SIZE 0 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11549 | _ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11550 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 11551 | { echo "$as_me:$LINENO: result: no (default)" >&5 |
| 11552 | echo "${ECHO_T}no (default)" >&6; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11553 | ;; |
| 11554 | esac |
| 11555 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 11556 | { echo "$as_me:$LINENO: checking if pj_thread_create() should allocate stack" >&5 |
| 11557 | 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] | 11558 | case $target in |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11559 | *rtems*) cat >>confdefs.h <<\_ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11560 | #define PJ_THREAD_ALLOCATE_STACK 1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11561 | _ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11562 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 11563 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 11564 | echo "${ECHO_T}yes" >&6; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11565 | ;; |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11566 | *) cat >>confdefs.h <<\_ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11567 | #define PJ_THREAD_ALLOCATE_STACK 0 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11568 | _ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11569 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 11570 | { echo "$as_me:$LINENO: result: no (default)" >&5 |
| 11571 | echo "${ECHO_T}no (default)" >&6; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11572 | ;; |
| 11573 | esac |
| 11574 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11575 | case $target in |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 11576 | *mingw* | *cygw* | *win32* | *w32* ) |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11577 | cat >>confdefs.h <<\_ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 11578 | #define PJ_BLOCKING_ERROR_VAL WSAEWOULDBLOCK |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11579 | _ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11580 | |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 11581 | ;; |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11582 | *) cat >>confdefs.h <<\_ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 11583 | #define PJ_BLOCKING_ERROR_VAL EAGAIN |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11584 | _ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 11585 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 11586 | { echo "$as_me:$LINENO: result: ** Setting non-blocking recv() retval to EAGAIN (please check)" >&5 |
| 11587 | 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] | 11588 | ;; |
| 11589 | esac |
| 11590 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11591 | case $target in |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 11592 | *mingw* | *cygw* | *win32* | *w32* ) |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11593 | cat >>confdefs.h <<\_ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 11594 | #define PJ_BLOCKING_CONNECT_ERROR_VAL WSAEWOULDBLOCK |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11595 | _ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11596 | |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 11597 | ;; |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11598 | *) cat >>confdefs.h <<\_ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 11599 | #define PJ_BLOCKING_CONNECT_ERROR_VAL EINPROGRESS |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11600 | _ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 11601 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 11602 | { echo "$as_me:$LINENO: result: ** Setting non-blocking connect() retval to EINPROGRESS (please check)" >&5 |
| 11603 | 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] | 11604 | ;; |
| 11605 | esac |
| 11606 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11607 | |
| 11608 | |
| 11609 | |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 11610 | if test "$build" = "$host"; then |
| 11611 | ac_cross_compile= |
| 11612 | else |
Benny Prijono | 5b818b2 | 2006-09-17 22:58:51 +0000 | [diff] [blame] | 11613 | ac_cross_compile=${host_orig}- |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 11614 | fi |
| 11615 | ac_linux_poll=select |
| 11616 | |
| 11617 | ac_host=unix |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11618 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11619 | |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 11620 | case $target in |
| 11621 | *rtems*) |
| 11622 | ac_main_obj=main_rtems.o |
| 11623 | ;; |
| 11624 | *) |
| 11625 | ac_main_obj=main.o |
| 11626 | ;; |
| 11627 | esac |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11628 | |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 11629 | |
| 11630 | ac_build_mak_vars=`echo $ac_build_mak_vars | sed 's/\\\\n/\n/g'` |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11631 | cat >confcache <<\_ACEOF |
| 11632 | # This file is a shell script that caches the results of configure |
| 11633 | # tests run on this system so they can be shared between configure |
| 11634 | # scripts and configure runs, see configure's option --config-cache. |
| 11635 | # It is not useful on other systems. If it contains results you don't |
| 11636 | # want to keep, you may remove or edit it. |
| 11637 | # |
| 11638 | # config.status only pays attention to the cache file if you give it |
| 11639 | # the --recheck option to rerun configure. |
| 11640 | # |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11641 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11642 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
| 11643 | # following values. |
| 11644 | |
| 11645 | _ACEOF |
| 11646 | |
| 11647 | # The following way of writing the cache mishandles newlines in values, |
| 11648 | # but we know of no workaround that is simple, portable, and efficient. |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 11649 | # So, we kill variables containing newlines. |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11650 | # Ultrix sh set writes to stderr and can't be redirected directly, |
| 11651 | # and sets the high bit in the cache file unless we assign to the vars. |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 11652 | ( |
| 11653 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do |
| 11654 | eval ac_val=\$$ac_var |
| 11655 | case $ac_val in #( |
| 11656 | *${as_nl}*) |
| 11657 | case $ac_var in #( |
| 11658 | *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 |
| 11659 | echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; |
| 11660 | esac |
| 11661 | case $ac_var in #( |
| 11662 | _ | IFS | as_nl) ;; #( |
| 11663 | *) $as_unset $ac_var ;; |
| 11664 | esac ;; |
| 11665 | esac |
| 11666 | done |
| 11667 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11668 | (set) 2>&1 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 11669 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
| 11670 | *${as_nl}ac_space=\ *) |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11671 | # `set' does not quote correctly, so add quotes (double-quote |
| 11672 | # substitution turns \\\\ into \\, and sed turns \\ into \). |
| 11673 | sed -n \ |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11674 | "s/'/'\\\\''/g; |
| 11675 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 11676 | ;; #( |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11677 | *) |
| 11678 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 11679 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11680 | ;; |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 11681 | esac | |
| 11682 | sort |
| 11683 | ) | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11684 | sed ' |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 11685 | /^ac_cv_env_/b end |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11686 | t clear |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 11687 | :clear |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11688 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
| 11689 | t end |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 11690 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
| 11691 | :end' >>confcache |
| 11692 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else |
| 11693 | if test -w "$cache_file"; then |
| 11694 | test "x$cache_file" != "x/dev/null" && |
| 11695 | { echo "$as_me:$LINENO: updating cache $cache_file" >&5 |
| 11696 | echo "$as_me: updating cache $cache_file" >&6;} |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11697 | cat confcache >$cache_file |
| 11698 | else |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 11699 | { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 |
| 11700 | echo "$as_me: not updating unwritable cache $cache_file" >&6;} |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11701 | fi |
| 11702 | fi |
| 11703 | rm -f confcache |
| 11704 | |
| 11705 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
| 11706 | # Let make expand exec_prefix. |
| 11707 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
| 11708 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11709 | DEFS=-DHAVE_CONFIG_H |
| 11710 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11711 | ac_libobjs= |
| 11712 | ac_ltlibobjs= |
| 11713 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
| 11714 | # 1. Remove the extension, and $U if already installed. |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 11715 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
| 11716 | ac_i=`echo "$ac_i" | sed "$ac_script"` |
| 11717 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
| 11718 | # will be set to the directory where LIBOBJS objects are built. |
| 11719 | ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" |
| 11720 | ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11721 | done |
| 11722 | LIBOBJS=$ac_libobjs |
| 11723 | |
| 11724 | LTLIBOBJS=$ac_ltlibobjs |
| 11725 | |
| 11726 | |
| 11727 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11728 | : ${CONFIG_STATUS=./config.status} |
| 11729 | ac_clean_files_save=$ac_clean_files |
| 11730 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11731 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11732 | echo "$as_me: creating $CONFIG_STATUS" >&6;} |
| 11733 | cat >$CONFIG_STATUS <<_ACEOF |
| 11734 | #! $SHELL |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11735 | # Generated by $as_me. |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11736 | # Run this file to recreate the current configuration. |
| 11737 | # Compiler output produced by configure, useful for debugging |
| 11738 | # configure, is in config.log if it exists. |
| 11739 | |
| 11740 | debug=false |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11741 | ac_cs_recheck=false |
| 11742 | ac_cs_silent=false |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11743 | SHELL=\${CONFIG_SHELL-$SHELL} |
| 11744 | _ACEOF |
| 11745 | |
| 11746 | cat >>$CONFIG_STATUS <<\_ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11747 | ## --------------------- ## |
| 11748 | ## M4sh Initialization. ## |
| 11749 | ## --------------------- ## |
| 11750 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 11751 | # Be more Bourne compatible |
| 11752 | DUALCASE=1; export DUALCASE # for MKS sh |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11753 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
| 11754 | emulate sh |
| 11755 | NULLCMD=: |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11756 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
| 11757 | # is contrary to our usage. Disable this feature. |
| 11758 | alias -g '${1+"$@"}'='"$@"' |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 11759 | setopt NO_GLOB_SUBST |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 11760 | else |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 11761 | case `(set -o) 2>/dev/null` in |
| 11762 | *posix*) set -o posix ;; |
| 11763 | esac |
| 11764 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11765 | fi |
| 11766 | |
| 11767 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11768 | |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 11769 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 11770 | # PATH needs CR |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11771 | # Avoid depending upon Character Ranges. |
| 11772 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 11773 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 11774 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 11775 | as_cr_digits='0123456789' |
| 11776 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
| 11777 | |
| 11778 | # The user is always right. |
| 11779 | if test "${PATH_SEPARATOR+set}" != set; then |
| 11780 | echo "#! /bin/sh" >conf$$.sh |
| 11781 | echo "exit 0" >>conf$$.sh |
| 11782 | chmod +x conf$$.sh |
| 11783 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
| 11784 | PATH_SEPARATOR=';' |
| 11785 | else |
| 11786 | PATH_SEPARATOR=: |
| 11787 | fi |
| 11788 | rm -f conf$$.sh |
| 11789 | fi |
| 11790 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 11791 | # Support unset when possible. |
| 11792 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
| 11793 | as_unset=unset |
| 11794 | else |
| 11795 | as_unset=false |
| 11796 | fi |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11797 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 11798 | |
| 11799 | # IFS |
| 11800 | # We need space, tab and new line, in precisely that order. Quoting is |
| 11801 | # there to prevent editors from complaining about space-tab. |
| 11802 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
| 11803 | # splitting by setting IFS to empty value.) |
| 11804 | as_nl=' |
| 11805 | ' |
| 11806 | IFS=" "" $as_nl" |
| 11807 | |
| 11808 | # Find who we are. Look in the path if we contain no directory separator. |
| 11809 | case $0 in |
| 11810 | *[\\/]* ) as_myself=$0 ;; |
| 11811 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11812 | for as_dir in $PATH |
| 11813 | do |
| 11814 | IFS=$as_save_IFS |
| 11815 | test -z "$as_dir" && as_dir=. |
| 11816 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 11817 | done |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 11818 | IFS=$as_save_IFS |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11819 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 11820 | ;; |
| 11821 | esac |
| 11822 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 11823 | # in which case we are not to be found in the path. |
| 11824 | if test "x$as_myself" = x; then |
| 11825 | as_myself=$0 |
| 11826 | fi |
| 11827 | if test ! -f "$as_myself"; then |
| 11828 | echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
| 11829 | { (exit 1); exit 1; } |
| 11830 | fi |
| 11831 | |
| 11832 | # Work around bugs in pre-3.0 UWIN ksh. |
| 11833 | for as_var in ENV MAIL MAILPATH |
| 11834 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
| 11835 | done |
| 11836 | PS1='$ ' |
| 11837 | PS2='> ' |
| 11838 | PS4='+ ' |
| 11839 | |
| 11840 | # NLS nuisances. |
| 11841 | for as_var in \ |
| 11842 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
| 11843 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
| 11844 | LC_TELEPHONE LC_TIME |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 11845 | do |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 11846 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
| 11847 | eval $as_var=C; export $as_var |
| 11848 | else |
| 11849 | ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
| 11850 | fi |
| 11851 | done |
| 11852 | |
| 11853 | # Required to use basename. |
| 11854 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 11855 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
| 11856 | as_expr=expr |
| 11857 | else |
| 11858 | as_expr=false |
| 11859 | fi |
| 11860 | |
| 11861 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
| 11862 | as_basename=basename |
| 11863 | else |
| 11864 | as_basename=false |
| 11865 | fi |
| 11866 | |
| 11867 | |
| 11868 | # Name of the executable. |
| 11869 | as_me=`$as_basename -- "$0" || |
| 11870 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 11871 | X"$0" : 'X\(//\)$' \| \ |
| 11872 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
| 11873 | echo X/"$0" | |
| 11874 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
| 11875 | s//\1/ |
| 11876 | q |
| 11877 | } |
| 11878 | /^X\/\(\/\/\)$/{ |
| 11879 | s//\1/ |
| 11880 | q |
| 11881 | } |
| 11882 | /^X\/\(\/\).*/{ |
| 11883 | s//\1/ |
| 11884 | q |
| 11885 | } |
| 11886 | s/.*/./; q'` |
| 11887 | |
| 11888 | # CDPATH. |
| 11889 | $as_unset CDPATH |
| 11890 | |
| 11891 | |
| 11892 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11893 | as_lineno_1=$LINENO |
| 11894 | as_lineno_2=$LINENO |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11895 | test "x$as_lineno_1" != "x$as_lineno_2" && |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 11896 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11897 | |
| 11898 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
| 11899 | # uniformly replaced by the line number. The first 'sed' inserts a |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 11900 | # line-number line after each line using $LINENO; the second 'sed' |
| 11901 | # does the real work. The second script uses 'N' to pair each |
| 11902 | # line-number line with the line containing $LINENO, and appends |
| 11903 | # trailing '-' during substitution so that $LINENO is not a special |
| 11904 | # case at line end. |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11905 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 11906 | # scripts with optimization help from Paolo Bonzini. Blame Lee |
| 11907 | # E. McMahon (1931-1989) for sed's syntax. :-) |
| 11908 | sed -n ' |
| 11909 | p |
| 11910 | /[$]LINENO/= |
| 11911 | ' <$as_myself | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11912 | sed ' |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 11913 | s/[$]LINENO.*/&-/ |
| 11914 | t lineno |
| 11915 | b |
| 11916 | :lineno |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11917 | N |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 11918 | :loop |
| 11919 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11920 | t loop |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 11921 | s/-\n.*// |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11922 | ' >$as_me.lineno && |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 11923 | chmod +x "$as_me.lineno" || |
| 11924 | { 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] | 11925 | { (exit 1); exit 1; }; } |
| 11926 | |
| 11927 | # Don't try to exec as it changes $[0], causing all sort of problems |
| 11928 | # (the dirname of $[0] is not the place where we might find the |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 11929 | # original and so on. Autoconf is especially sensitive to this). |
| 11930 | . "./$as_me.lineno" |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11931 | # Exit status is that of the last command. |
| 11932 | exit |
| 11933 | } |
| 11934 | |
| 11935 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 11936 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
| 11937 | as_dirname=dirname |
| 11938 | else |
| 11939 | as_dirname=false |
| 11940 | fi |
| 11941 | |
| 11942 | ECHO_C= ECHO_N= ECHO_T= |
| 11943 | case `echo -n x` in |
| 11944 | -n*) |
| 11945 | case `echo 'x\c'` in |
| 11946 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
| 11947 | *) ECHO_C='\c';; |
| 11948 | esac;; |
| 11949 | *) |
| 11950 | ECHO_N='-n';; |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11951 | esac |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11952 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 11953 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 11954 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11955 | as_expr=expr |
| 11956 | else |
| 11957 | as_expr=false |
| 11958 | fi |
| 11959 | |
| 11960 | rm -f conf$$ conf$$.exe conf$$.file |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 11961 | if test -d conf$$.dir; then |
| 11962 | rm -f conf$$.dir/conf$$.file |
| 11963 | else |
| 11964 | rm -f conf$$.dir |
| 11965 | mkdir conf$$.dir |
| 11966 | fi |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11967 | echo >conf$$.file |
| 11968 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 11969 | as_ln_s='ln -s' |
| 11970 | # ... but there are two gotchas: |
| 11971 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
| 11972 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
| 11973 | # In both cases, we have to default to `cp -p'. |
| 11974 | 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] | 11975 | as_ln_s='cp -p' |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11976 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 11977 | as_ln_s=ln |
| 11978 | else |
| 11979 | as_ln_s='cp -p' |
| 11980 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 11981 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
| 11982 | rmdir conf$$.dir 2>/dev/null |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11983 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11984 | if mkdir -p . 2>/dev/null; then |
| 11985 | as_mkdir_p=: |
Benny Prijono | 39ae2da | 2006-10-13 17:57:42 +0000 | [diff] [blame] | 11986 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11987 | test -d ./-p && rmdir ./-p |
| 11988 | as_mkdir_p=false |
Benny Prijono | 39ae2da | 2006-10-13 17:57:42 +0000 | [diff] [blame] | 11989 | fi |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 11990 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 11991 | if test -x / >/dev/null 2>&1; then |
| 11992 | as_test_x='test -x' |
| 11993 | else |
| 11994 | if ls -dL / >/dev/null 2>&1; then |
| 11995 | as_ls_L_option=L |
| 11996 | else |
| 11997 | as_ls_L_option= |
| 11998 | fi |
| 11999 | as_test_x=' |
| 12000 | eval sh -c '\'' |
| 12001 | if test -d "$1"; then |
| 12002 | test -d "$1/."; |
| 12003 | else |
| 12004 | case $1 in |
| 12005 | -*)set "./$1";; |
| 12006 | esac; |
| 12007 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in |
| 12008 | ???[sx]*):;;*)false;;esac;fi |
| 12009 | '\'' sh |
| 12010 | ' |
| 12011 | fi |
| 12012 | as_executable_p=$as_test_x |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 12013 | |
| 12014 | # Sed expression to map a string onto a valid CPP name. |
| 12015 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
| 12016 | |
| 12017 | # Sed expression to map a string onto a valid variable name. |
| 12018 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
| 12019 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 12020 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 12021 | exec 6>&1 |
| 12022 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 12023 | # 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] | 12024 | # report actual input values of CONFIG_FILES etc. instead of their |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 12025 | # values after options handling. |
| 12026 | ac_log=" |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 12027 | This file was extended by pjproject $as_me 1.0, which was |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 12028 | generated by GNU Autoconf 2.61. Invocation command line was |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 12029 | |
| 12030 | CONFIG_FILES = $CONFIG_FILES |
| 12031 | CONFIG_HEADERS = $CONFIG_HEADERS |
| 12032 | CONFIG_LINKS = $CONFIG_LINKS |
| 12033 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
| 12034 | $ $0 $@ |
| 12035 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 12036 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 12037 | " |
| 12038 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 12039 | _ACEOF |
| 12040 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 12041 | cat >>$CONFIG_STATUS <<_ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 12042 | # Files that config.status was made for. |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 12043 | config_files="$ac_config_files" |
| 12044 | config_headers="$ac_config_headers" |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 12045 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 12046 | _ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 12047 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 12048 | cat >>$CONFIG_STATUS <<\_ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 12049 | ac_cs_usage="\ |
| 12050 | \`$as_me' instantiates files from templates according to the |
| 12051 | current configuration. |
| 12052 | |
| 12053 | Usage: $0 [OPTIONS] [FILE]... |
| 12054 | |
| 12055 | -h, --help print this help, then exit |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 12056 | -V, --version print version number and configuration settings, then exit |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 12057 | -q, --quiet do not print progress messages |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 12058 | -d, --debug don't remove temporary files |
| 12059 | --recheck update $as_me by reconfiguring in the same conditions |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 12060 | --file=FILE[:TEMPLATE] |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 12061 | instantiate the configuration file FILE |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 12062 | --header=FILE[:TEMPLATE] |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 12063 | instantiate the configuration header FILE |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 12064 | |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 12065 | Configuration files: |
| 12066 | $config_files |
| 12067 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 12068 | Configuration headers: |
| 12069 | $config_headers |
| 12070 | |
| 12071 | Report bugs to <bug-autoconf@gnu.org>." |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 12072 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 12073 | _ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 12074 | cat >>$CONFIG_STATUS <<_ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 12075 | ac_cs_version="\\ |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 12076 | pjproject config.status 1.0 |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 12077 | configured by $0, generated by GNU Autoconf 2.61, |
| 12078 | with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 12079 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 12080 | Copyright (C) 2006 Free Software Foundation, Inc. |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 12081 | This config.status script is free software; the Free Software Foundation |
| 12082 | gives unlimited permission to copy, distribute and modify it." |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 12083 | |
| 12084 | ac_pwd='$ac_pwd' |
| 12085 | srcdir='$srcdir' |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 12086 | _ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 12087 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 12088 | cat >>$CONFIG_STATUS <<\_ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 12089 | # If no file are specified by the user, then we need to provide default |
| 12090 | # value. By we need to know if files were specified by the user. |
| 12091 | ac_need_defaults=: |
| 12092 | while test $# != 0 |
| 12093 | do |
| 12094 | case $1 in |
| 12095 | --*=*) |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 12096 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
| 12097 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 12098 | ac_shift=: |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 12099 | ;; |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 12100 | *) |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 12101 | ac_option=$1 |
| 12102 | ac_optarg=$2 |
| 12103 | ac_shift=shift |
| 12104 | ;; |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 12105 | esac |
| 12106 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 12107 | case $ac_option in |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 12108 | # Handling of the options. |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 12109 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 12110 | ac_cs_recheck=: ;; |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 12111 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
| 12112 | echo "$ac_cs_version"; exit ;; |
| 12113 | --debug | --debu | --deb | --de | --d | -d ) |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 12114 | debug=: ;; |
| 12115 | --file | --fil | --fi | --f ) |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 12116 | $ac_shift |
| 12117 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 12118 | ac_need_defaults=false;; |
| 12119 | --header | --heade | --head | --hea ) |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 12120 | $ac_shift |
| 12121 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 12122 | ac_need_defaults=false;; |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 12123 | --he | --h) |
| 12124 | # Conflict between --help and --header |
| 12125 | { echo "$as_me: error: ambiguous option: $1 |
| 12126 | Try \`$0 --help' for more information." >&2 |
| 12127 | { (exit 1); exit 1; }; };; |
| 12128 | --help | --hel | -h ) |
| 12129 | echo "$ac_cs_usage"; exit ;; |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 12130 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 12131 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
| 12132 | ac_cs_silent=: ;; |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 12133 | |
| 12134 | # This is an error. |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 12135 | -*) { echo "$as_me: error: unrecognized option: $1 |
| 12136 | Try \`$0 --help' for more information." >&2 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 12137 | { (exit 1); exit 1; }; } ;; |
| 12138 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 12139 | *) ac_config_targets="$ac_config_targets $1" |
| 12140 | ac_need_defaults=false ;; |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 12141 | |
| 12142 | esac |
| 12143 | shift |
| 12144 | done |
| 12145 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 12146 | ac_configure_extra_args= |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 12147 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 12148 | if $ac_cs_silent; then |
| 12149 | exec 6>/dev/null |
| 12150 | ac_configure_extra_args="$ac_configure_extra_args --silent" |
| 12151 | fi |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 12152 | |
| 12153 | _ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 12154 | cat >>$CONFIG_STATUS <<_ACEOF |
| 12155 | if \$ac_cs_recheck; then |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 12156 | echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 |
| 12157 | CONFIG_SHELL=$SHELL |
| 12158 | export CONFIG_SHELL |
| 12159 | 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] | 12160 | fi |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 12161 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 12162 | _ACEOF |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 12163 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 12164 | exec 5>>config.log |
| 12165 | { |
| 12166 | echo |
| 12167 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
| 12168 | ## Running $as_me. ## |
| 12169 | _ASBOX |
| 12170 | echo "$ac_log" |
| 12171 | } >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 12172 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 12173 | _ACEOF |
| 12174 | cat >>$CONFIG_STATUS <<_ACEOF |
| 12175 | _ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 12176 | |
| 12177 | cat >>$CONFIG_STATUS <<\_ACEOF |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 12178 | |
| 12179 | # Handling of arguments. |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 12180 | for ac_config_target in $ac_config_targets |
| 12181 | do |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 12182 | case $ac_config_target in |
| 12183 | "pjlib/include/pj/compat/os_auto.h") CONFIG_HEADERS="$CONFIG_HEADERS pjlib/include/pj/compat/os_auto.h" ;; |
| 12184 | "pjlib/include/pj/compat/m_auto.h") CONFIG_HEADERS="$CONFIG_HEADERS pjlib/include/pj/compat/m_auto.h" ;; |
| 12185 | "pjmedia/include/pjmedia/config_auto.h") CONFIG_HEADERS="$CONFIG_HEADERS pjmedia/include/pjmedia/config_auto.h" ;; |
| 12186 | "pjmedia/include/pjmedia-codec/config_auto.h") CONFIG_HEADERS="$CONFIG_HEADERS pjmedia/include/pjmedia-codec/config_auto.h" ;; |
| 12187 | "pjsip/include/pjsip/sip_autoconf.h") CONFIG_HEADERS="$CONFIG_HEADERS pjsip/include/pjsip/sip_autoconf.h" ;; |
| 12188 | "build.mak") CONFIG_FILES="$CONFIG_FILES build.mak" ;; |
| 12189 | "build/os-auto.mak") CONFIG_FILES="$CONFIG_FILES build/os-auto.mak" ;; |
| 12190 | "pjlib/build/os-auto.mak") CONFIG_FILES="$CONFIG_FILES pjlib/build/os-auto.mak" ;; |
| 12191 | "pjlib-util/build/os-auto.mak") CONFIG_FILES="$CONFIG_FILES pjlib-util/build/os-auto.mak" ;; |
| 12192 | "pjmedia/build/os-auto.mak") CONFIG_FILES="$CONFIG_FILES pjmedia/build/os-auto.mak" ;; |
| 12193 | "pjsip/build/os-auto.mak") CONFIG_FILES="$CONFIG_FILES pjsip/build/os-auto.mak" ;; |
| 12194 | "third_party/build/portaudio/os-auto.mak") CONFIG_FILES="$CONFIG_FILES third_party/build/portaudio/os-auto.mak" ;; |
| 12195 | "third_party/build/os-auto.mak") CONFIG_FILES="$CONFIG_FILES third_party/build/os-auto.mak" ;; |
| 12196 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 12197 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 12198 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
| 12199 | { (exit 1); exit 1; }; };; |
| 12200 | esac |
| 12201 | done |
| 12202 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 12203 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 12204 | # If the user did not use the arguments to specify the items to instantiate, |
| 12205 | # then the envvar interface is used. Set only those that are not. |
| 12206 | # We use the long form for the default assignment because of an extremely |
| 12207 | # bizarre bug on SunOS 4.1.3. |
| 12208 | if $ac_need_defaults; then |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 12209 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 12210 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
| 12211 | fi |
| 12212 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 12213 | # Have a temporary directory for convenience. Make it in the build tree |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 12214 | # 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] | 12215 | # creating and moving files from /tmp can sometimes cause problems. |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 12216 | # Hook for its removal unless debugging. |
| 12217 | # Note that there is a small window in which the directory will not be cleaned: |
| 12218 | # after its creation but before its name has been assigned to `$tmp'. |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 12219 | $debug || |
| 12220 | { |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 12221 | tmp= |
| 12222 | trap 'exit_status=$? |
| 12223 | { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status |
| 12224 | ' 0 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 12225 | trap '{ (exit 1); exit 1; }' 1 2 13 15 |
| 12226 | } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 12227 | # Create a (secure) tmp directory for tmp files. |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 12228 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 12229 | { |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 12230 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 12231 | test -n "$tmp" && test -d "$tmp" |
| 12232 | } || |
| 12233 | { |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 12234 | tmp=./conf$$-$RANDOM |
| 12235 | (umask 077 && mkdir "$tmp") |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 12236 | } || |
| 12237 | { |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 12238 | echo "$me: cannot create a temporary directory in ." >&2 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 12239 | { (exit 1); exit 1; } |
| 12240 | } |
| 12241 | |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 12242 | # |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 12243 | # Set up the sed scripts for CONFIG_FILES section. |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 12244 | # |
| 12245 | |
| 12246 | # No need to generate the scripts if there are no CONFIG_FILES. |
| 12247 | # This happens for instance when ./config.status config.h |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 12248 | if test -n "$CONFIG_FILES"; then |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 12249 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 12250 | _ACEOF |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 12251 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 12252 | |
| 12253 | |
| 12254 | ac_delim='%!_!# ' |
| 12255 | for ac_last_try in false false false false false :; do |
| 12256 | cat >conf$$subs.sed <<_ACEOF |
| 12257 | SHELL!$SHELL$ac_delim |
| 12258 | PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim |
| 12259 | PACKAGE_NAME!$PACKAGE_NAME$ac_delim |
| 12260 | PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim |
| 12261 | PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim |
| 12262 | PACKAGE_STRING!$PACKAGE_STRING$ac_delim |
| 12263 | PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim |
| 12264 | exec_prefix!$exec_prefix$ac_delim |
| 12265 | prefix!$prefix$ac_delim |
| 12266 | program_transform_name!$program_transform_name$ac_delim |
| 12267 | bindir!$bindir$ac_delim |
| 12268 | sbindir!$sbindir$ac_delim |
| 12269 | libexecdir!$libexecdir$ac_delim |
| 12270 | datarootdir!$datarootdir$ac_delim |
| 12271 | datadir!$datadir$ac_delim |
| 12272 | sysconfdir!$sysconfdir$ac_delim |
| 12273 | sharedstatedir!$sharedstatedir$ac_delim |
| 12274 | localstatedir!$localstatedir$ac_delim |
| 12275 | includedir!$includedir$ac_delim |
| 12276 | oldincludedir!$oldincludedir$ac_delim |
| 12277 | docdir!$docdir$ac_delim |
| 12278 | infodir!$infodir$ac_delim |
| 12279 | htmldir!$htmldir$ac_delim |
| 12280 | dvidir!$dvidir$ac_delim |
| 12281 | pdfdir!$pdfdir$ac_delim |
| 12282 | psdir!$psdir$ac_delim |
| 12283 | libdir!$libdir$ac_delim |
| 12284 | localedir!$localedir$ac_delim |
| 12285 | mandir!$mandir$ac_delim |
| 12286 | DEFS!$DEFS$ac_delim |
| 12287 | ECHO_C!$ECHO_C$ac_delim |
| 12288 | ECHO_N!$ECHO_N$ac_delim |
| 12289 | ECHO_T!$ECHO_T$ac_delim |
| 12290 | LIBS!$LIBS$ac_delim |
| 12291 | build_alias!$build_alias$ac_delim |
| 12292 | host_alias!$host_alias$ac_delim |
| 12293 | target_alias!$target_alias$ac_delim |
| 12294 | build!$build$ac_delim |
| 12295 | build_cpu!$build_cpu$ac_delim |
| 12296 | build_vendor!$build_vendor$ac_delim |
| 12297 | build_os!$build_os$ac_delim |
| 12298 | host!$host$ac_delim |
| 12299 | host_cpu!$host_cpu$ac_delim |
| 12300 | host_vendor!$host_vendor$ac_delim |
| 12301 | host_os!$host_os$ac_delim |
| 12302 | target!$target$ac_delim |
| 12303 | target_cpu!$target_cpu$ac_delim |
| 12304 | target_vendor!$target_vendor$ac_delim |
| 12305 | target_os!$target_os$ac_delim |
| 12306 | CC!$CC$ac_delim |
| 12307 | CFLAGS!$CFLAGS$ac_delim |
| 12308 | LDFLAGS!$LDFLAGS$ac_delim |
| 12309 | CPPFLAGS!$CPPFLAGS$ac_delim |
| 12310 | ac_ct_CC!$ac_ct_CC$ac_delim |
| 12311 | EXEEXT!$EXEEXT$ac_delim |
| 12312 | OBJEXT!$OBJEXT$ac_delim |
| 12313 | CXX!$CXX$ac_delim |
| 12314 | CXXFLAGS!$CXXFLAGS$ac_delim |
| 12315 | ac_ct_CXX!$ac_ct_CXX$ac_delim |
| 12316 | ac_pjdir!$ac_pjdir$ac_delim |
| 12317 | ac_build_mak_vars!$ac_build_mak_vars$ac_delim |
| 12318 | CPP!$CPP$ac_delim |
| 12319 | GREP!$GREP$ac_delim |
| 12320 | EGREP!$EGREP$ac_delim |
| 12321 | ac_os_objs!$ac_os_objs$ac_delim |
| 12322 | ac_pjmedia_snd!$ac_pjmedia_snd$ac_delim |
| 12323 | ac_pa_cflags!$ac_pa_cflags$ac_delim |
| 12324 | ac_pa_use_alsa!$ac_pa_use_alsa$ac_delim |
| 12325 | ac_pa_use_oss!$ac_pa_use_oss$ac_delim |
| 12326 | ac_no_small_filter!$ac_no_small_filter$ac_delim |
| 12327 | ac_no_large_filter!$ac_no_large_filter$ac_delim |
| 12328 | ac_no_speex_aec!$ac_no_speex_aec$ac_delim |
| 12329 | ac_no_g711_codec!$ac_no_g711_codec$ac_delim |
| 12330 | ac_no_l16_codec!$ac_no_l16_codec$ac_delim |
| 12331 | ac_no_gsm_codec!$ac_no_gsm_codec$ac_delim |
| 12332 | ac_no_g722_codec!$ac_no_g722_codec$ac_delim |
| 12333 | ac_no_g7221_codec!$ac_no_g7221_codec$ac_delim |
| 12334 | ac_no_speex_codec!$ac_no_speex_codec$ac_delim |
| 12335 | ac_no_ilbc_codec!$ac_no_ilbc_codec$ac_delim |
| 12336 | ac_no_ssl!$ac_no_ssl$ac_delim |
| 12337 | openssl_h_present!$openssl_h_present$ac_delim |
| 12338 | libssl_present!$libssl_present$ac_delim |
| 12339 | libcrypto_present!$libcrypto_present$ac_delim |
| 12340 | ac_cross_compile!$ac_cross_compile$ac_delim |
| 12341 | ac_linux_poll!$ac_linux_poll$ac_delim |
| 12342 | ac_host!$ac_host$ac_delim |
| 12343 | ac_main_obj!$ac_main_obj$ac_delim |
| 12344 | LIBOBJS!$LIBOBJS$ac_delim |
| 12345 | LTLIBOBJS!$LTLIBOBJS$ac_delim |
| 12346 | _ACEOF |
| 12347 | |
| 12348 | if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 89; then |
| 12349 | break |
| 12350 | elif $ac_last_try; then |
| 12351 | { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |
| 12352 | echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} |
| 12353 | { (exit 1); exit 1; }; } |
| 12354 | else |
| 12355 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 12356 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 12357 | done |
| 12358 | |
| 12359 | ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` |
| 12360 | if test -n "$ac_eof"; then |
| 12361 | ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` |
| 12362 | ac_eof=`expr $ac_eof + 1` |
| 12363 | fi |
| 12364 | |
| 12365 | cat >>$CONFIG_STATUS <<_ACEOF |
| 12366 | cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof |
| 12367 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end |
| 12368 | _ACEOF |
| 12369 | sed ' |
| 12370 | s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g |
| 12371 | s/^/s,@/; s/!/@,|#_!!_#|/ |
| 12372 | :n |
| 12373 | t n |
| 12374 | s/'"$ac_delim"'$/,g/; t |
| 12375 | s/$/\\/; p |
| 12376 | N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n |
| 12377 | ' >>$CONFIG_STATUS <conf$$subs.sed |
| 12378 | rm -f conf$$subs.sed |
| 12379 | cat >>$CONFIG_STATUS <<_ACEOF |
| 12380 | :end |
| 12381 | s/|#_!!_#|//g |
| 12382 | CEOF$ac_eof |
| 12383 | _ACEOF |
| 12384 | |
| 12385 | |
| 12386 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
| 12387 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and |
| 12388 | # trailing colons and then remove the whole line if VPATH becomes empty |
| 12389 | # (actually we leave an empty line to preserve line numbers). |
| 12390 | if test "x$srcdir" = x.; then |
| 12391 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
| 12392 | s/:*\$(srcdir):*/:/ |
| 12393 | s/:*\${srcdir}:*/:/ |
| 12394 | s/:*@srcdir@:*/:/ |
| 12395 | s/^\([^=]*=[ ]*\):*/\1/ |
| 12396 | s/:*$// |
| 12397 | s/^[^=]*=[ ]*$// |
| 12398 | }' |
| 12399 | fi |
| 12400 | |
| 12401 | cat >>$CONFIG_STATUS <<\_ACEOF |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 12402 | fi # test -n "$CONFIG_FILES" |
| 12403 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 12404 | |
| 12405 | for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS |
| 12406 | do |
| 12407 | case $ac_tag in |
| 12408 | :[FHLC]) ac_mode=$ac_tag; continue;; |
| 12409 | esac |
| 12410 | case $ac_mode$ac_tag in |
| 12411 | :[FHL]*:*);; |
| 12412 | :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5 |
| 12413 | echo "$as_me: error: Invalid tag $ac_tag." >&2;} |
| 12414 | { (exit 1); exit 1; }; };; |
| 12415 | :[FH]-) ac_tag=-:-;; |
| 12416 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; |
| 12417 | esac |
| 12418 | ac_save_IFS=$IFS |
| 12419 | IFS=: |
| 12420 | set x $ac_tag |
| 12421 | IFS=$ac_save_IFS |
| 12422 | shift |
| 12423 | ac_file=$1 |
| 12424 | shift |
| 12425 | |
| 12426 | case $ac_mode in |
| 12427 | :L) ac_source=$1;; |
| 12428 | :[FH]) |
| 12429 | ac_file_inputs= |
| 12430 | for ac_f |
| 12431 | do |
| 12432 | case $ac_f in |
| 12433 | -) ac_f="$tmp/stdin";; |
| 12434 | *) # Look for the file first in the build tree, then in the source tree |
| 12435 | # (if the path is not absolute). The absolute path cannot be DOS-style, |
| 12436 | # because $ac_f cannot contain `:'. |
| 12437 | test -f "$ac_f" || |
| 12438 | case $ac_f in |
| 12439 | [\\/$]*) false;; |
| 12440 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; |
| 12441 | esac || |
| 12442 | { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 |
| 12443 | echo "$as_me: error: cannot find input file: $ac_f" >&2;} |
| 12444 | { (exit 1); exit 1; }; };; |
| 12445 | esac |
| 12446 | ac_file_inputs="$ac_file_inputs $ac_f" |
| 12447 | done |
| 12448 | |
| 12449 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
| 12450 | # use $as_me), people would be surprised to read: |
| 12451 | # /* config.h. Generated by config.status. */ |
| 12452 | configure_input="Generated from "`IFS=: |
| 12453 | echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure." |
| 12454 | if test x"$ac_file" != x-; then |
| 12455 | configure_input="$ac_file. $configure_input" |
| 12456 | { echo "$as_me:$LINENO: creating $ac_file" >&5 |
| 12457 | echo "$as_me: creating $ac_file" >&6;} |
| 12458 | fi |
| 12459 | |
| 12460 | case $ac_tag in |
| 12461 | *:-:* | *:-) cat >"$tmp/stdin";; |
| 12462 | esac |
| 12463 | ;; |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 12464 | esac |
| 12465 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 12466 | ac_dir=`$as_dirname -- "$ac_file" || |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 12467 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 12468 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 12469 | X"$ac_file" : 'X\(//\)$' \| \ |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 12470 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 12471 | echo X"$ac_file" | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 12472 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 12473 | s//\1/ |
| 12474 | q |
| 12475 | } |
| 12476 | /^X\(\/\/\)[^/].*/{ |
| 12477 | s//\1/ |
| 12478 | q |
| 12479 | } |
| 12480 | /^X\(\/\/\)$/{ |
| 12481 | s//\1/ |
| 12482 | q |
| 12483 | } |
| 12484 | /^X\(\/\).*/{ |
| 12485 | s//\1/ |
| 12486 | q |
| 12487 | } |
| 12488 | s/.*/./; q'` |
| 12489 | { as_dir="$ac_dir" |
| 12490 | case $as_dir in #( |
| 12491 | -*) as_dir=./$as_dir;; |
| 12492 | esac |
| 12493 | test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 12494 | as_dirs= |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 12495 | while :; do |
| 12496 | case $as_dir in #( |
| 12497 | *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( |
| 12498 | *) as_qdir=$as_dir;; |
| 12499 | esac |
| 12500 | as_dirs="'$as_qdir' $as_dirs" |
| 12501 | as_dir=`$as_dirname -- "$as_dir" || |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 12502 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 12503 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 12504 | X"$as_dir" : 'X\(//\)$' \| \ |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 12505 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 12506 | echo X"$as_dir" | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 12507 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 12508 | s//\1/ |
| 12509 | q |
| 12510 | } |
| 12511 | /^X\(\/\/\)[^/].*/{ |
| 12512 | s//\1/ |
| 12513 | q |
| 12514 | } |
| 12515 | /^X\(\/\/\)$/{ |
| 12516 | s//\1/ |
| 12517 | q |
| 12518 | } |
| 12519 | /^X\(\/\).*/{ |
| 12520 | s//\1/ |
| 12521 | q |
| 12522 | } |
| 12523 | s/.*/./; q'` |
| 12524 | test -d "$as_dir" && break |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 12525 | done |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 12526 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
| 12527 | } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 |
| 12528 | echo "$as_me: error: cannot create directory $as_dir" >&2;} |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 12529 | { (exit 1); exit 1; }; }; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 12530 | ac_builddir=. |
| 12531 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 12532 | case "$ac_dir" in |
| 12533 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 12534 | *) |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 12535 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 12536 | # A ".." for each directory in $ac_dir_suffix. |
| 12537 | ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` |
| 12538 | case $ac_top_builddir_sub in |
| 12539 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 12540 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 12541 | esac ;; |
| 12542 | esac |
| 12543 | ac_abs_top_builddir=$ac_pwd |
| 12544 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 12545 | # for backward compatibility: |
| 12546 | ac_top_builddir=$ac_top_build_prefix |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 12547 | |
| 12548 | case $srcdir in |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 12549 | .) # We are building in place. |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 12550 | ac_srcdir=. |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 12551 | ac_top_srcdir=$ac_top_builddir_sub |
| 12552 | ac_abs_top_srcdir=$ac_pwd ;; |
| 12553 | [\\/]* | ?:[\\/]* ) # Absolute name. |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 12554 | ac_srcdir=$srcdir$ac_dir_suffix; |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 12555 | ac_top_srcdir=$srcdir |
| 12556 | ac_abs_top_srcdir=$srcdir ;; |
| 12557 | *) # Relative name. |
| 12558 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 12559 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 12560 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 12561 | esac |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 12562 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
Benny Prijono | 9489e7a | 2008-09-19 22:18:50 +0000 | [diff] [blame] | 12563 | |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 12564 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 12565 | case $ac_mode in |
| 12566 | :F) |
| 12567 | # |
| 12568 | # CONFIG_FILE |
| 12569 | # |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 12570 | |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 12571 | _ACEOF |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 12572 | |
| 12573 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 12574 | # If the template does not know about datarootdir, expand it. |
| 12575 | # FIXME: This hack should be removed a few years after 2.60. |
| 12576 | ac_datarootdir_hack=; ac_datarootdir_seen= |
| 12577 | |
| 12578 | case `sed -n '/datarootdir/ { |
| 12579 | p |
| 12580 | q |
| 12581 | } |
| 12582 | /@datadir@/p |
| 12583 | /@docdir@/p |
| 12584 | /@infodir@/p |
| 12585 | /@localedir@/p |
| 12586 | /@mandir@/p |
| 12587 | ' $ac_file_inputs` in |
| 12588 | *datarootdir*) ac_datarootdir_seen=yes;; |
| 12589 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) |
| 12590 | { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 |
| 12591 | echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} |
| 12592 | _ACEOF |
| 12593 | cat >>$CONFIG_STATUS <<_ACEOF |
| 12594 | ac_datarootdir_hack=' |
| 12595 | s&@datadir@&$datadir&g |
| 12596 | s&@docdir@&$docdir&g |
| 12597 | s&@infodir@&$infodir&g |
| 12598 | s&@localedir@&$localedir&g |
| 12599 | s&@mandir@&$mandir&g |
| 12600 | s&\\\${datarootdir}&$datarootdir&g' ;; |
| 12601 | esac |
| 12602 | _ACEOF |
| 12603 | |
| 12604 | # Neutralize VPATH when `$srcdir' = `.'. |
| 12605 | # Shell code in configure.ac might set extrasub. |
| 12606 | # FIXME: do we really want to maintain this feature? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 12607 | cat >>$CONFIG_STATUS <<_ACEOF |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 12608 | sed "$ac_vpsub |
| 12609 | $extrasub |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 12610 | _ACEOF |
| 12611 | cat >>$CONFIG_STATUS <<\_ACEOF |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 12612 | :t |
| 12613 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 12614 | s&@configure_input@&$configure_input&;t t |
| 12615 | s&@top_builddir@&$ac_top_builddir_sub&;t t |
| 12616 | s&@srcdir@&$ac_srcdir&;t t |
| 12617 | s&@abs_srcdir@&$ac_abs_srcdir&;t t |
| 12618 | s&@top_srcdir@&$ac_top_srcdir&;t t |
| 12619 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t |
| 12620 | s&@builddir@&$ac_builddir&;t t |
| 12621 | s&@abs_builddir@&$ac_abs_builddir&;t t |
| 12622 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t |
| 12623 | $ac_datarootdir_hack |
| 12624 | " $ac_file_inputs | sed -f "$tmp/subs-1.sed" >$tmp/out |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 12625 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 12626 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && |
| 12627 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && |
| 12628 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && |
| 12629 | { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
| 12630 | which seems to be undefined. Please make sure it is defined." >&5 |
| 12631 | echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
| 12632 | which seems to be undefined. Please make sure it is defined." >&2;} |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 12633 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 12634 | rm -f "$tmp/stdin" |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 12635 | case $ac_file in |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 12636 | -) cat "$tmp/out"; rm -f "$tmp/out";; |
| 12637 | *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;; |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 12638 | esac |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 12639 | ;; |
| 12640 | :H) |
| 12641 | # |
| 12642 | # CONFIG_HEADER |
| 12643 | # |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 12644 | _ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 12645 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 12646 | # Transform confdefs.h into a sed script `conftest.defines', that |
| 12647 | # substitutes the proper values into config.h.in to produce config.h. |
| 12648 | rm -f conftest.defines conftest.tail |
| 12649 | # First, append a space to every undef/define line, to ease matching. |
| 12650 | echo 's/$/ /' >conftest.defines |
| 12651 | # Then, protect against being on the right side of a sed subst, or in |
| 12652 | # an unquoted here document, in config.status. If some macros were |
| 12653 | # called several times there might be several #defines for the same |
| 12654 | # symbol, which is useless. But do not sort them, since the last |
| 12655 | # AC_DEFINE must be honored. |
| 12656 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* |
| 12657 | # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where |
| 12658 | # NAME is the cpp macro being defined, VALUE is the value it is being given. |
| 12659 | # PARAMS is the parameter list in the macro definition--in most cases, it's |
| 12660 | # just an empty string. |
| 12661 | ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*' |
| 12662 | ac_dB='\\)[ (].*,\\1define\\2' |
| 12663 | ac_dC=' ' |
| 12664 | ac_dD=' ,' |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 12665 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 12666 | uniq confdefs.h | |
| 12667 | sed -n ' |
| 12668 | t rset |
| 12669 | :rset |
| 12670 | s/^[ ]*#[ ]*define[ ][ ]*// |
| 12671 | t ok |
| 12672 | d |
| 12673 | :ok |
| 12674 | s/[\\&,]/\\&/g |
| 12675 | s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p |
| 12676 | s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p |
| 12677 | ' >>conftest.defines |
| 12678 | |
| 12679 | # Remove the space that was appended to ease matching. |
| 12680 | # Then replace #undef with comments. This is necessary, for |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 12681 | # example, in the case of _POSIX_SOURCE, which is predefined and required |
| 12682 | # on some systems where configure will not decide to define it. |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 12683 | # (The regexp can be short, since the line contains either #define or #undef.) |
| 12684 | echo 's/ $// |
| 12685 | s,^[ #]*u.*,/* & */,' >>conftest.defines |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 12686 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 12687 | # Break up conftest.defines: |
| 12688 | ac_max_sed_lines=50 |
| 12689 | |
| 12690 | # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1" |
| 12691 | # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2" |
| 12692 | # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1" |
| 12693 | # et cetera. |
| 12694 | ac_in='$ac_file_inputs' |
| 12695 | ac_out='"$tmp/out1"' |
| 12696 | ac_nxt='"$tmp/out2"' |
| 12697 | |
| 12698 | while : |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 12699 | do |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 12700 | # Write a here document: |
| 12701 | cat >>$CONFIG_STATUS <<_ACEOF |
| 12702 | # First, check the format of the line: |
| 12703 | cat >"\$tmp/defines.sed" <<\\CEOF |
| 12704 | /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def |
| 12705 | /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def |
| 12706 | b |
| 12707 | :def |
| 12708 | _ACEOF |
| 12709 | sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 12710 | echo 'CEOF |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 12711 | sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS |
| 12712 | ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in |
| 12713 | sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail |
| 12714 | grep . conftest.tail >/dev/null || break |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 12715 | rm -f conftest.defines |
| 12716 | mv conftest.tail conftest.defines |
| 12717 | done |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 12718 | rm -f conftest.defines conftest.tail |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 12719 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 12720 | echo "ac_result=$ac_in" >>$CONFIG_STATUS |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 12721 | cat >>$CONFIG_STATUS <<\_ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 12722 | if test x"$ac_file" != x-; then |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 12723 | echo "/* $configure_input */" >"$tmp/config.h" |
| 12724 | cat "$ac_result" >>"$tmp/config.h" |
| 12725 | if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 12726 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 12727 | echo "$as_me: $ac_file is unchanged" >&6;} |
| 12728 | else |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 12729 | rm -f $ac_file |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 12730 | mv "$tmp/config.h" $ac_file |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 12731 | fi |
| 12732 | else |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 12733 | echo "/* $configure_input */" |
| 12734 | cat "$ac_result" |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 12735 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 12736 | rm -f "$tmp/out12" |
| 12737 | ;; |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 12738 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 12739 | |
| 12740 | esac |
| 12741 | |
| 12742 | done # for ac_tag |
| 12743 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 12744 | |
| 12745 | { (exit 0); exit 0; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 12746 | _ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 12747 | chmod +x $CONFIG_STATUS |
| 12748 | ac_clean_files=$ac_clean_files_save |
| 12749 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 12750 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 12751 | # configure is writing to config.log, and then calls config.status. |
| 12752 | # config.status does its own redirection, appending to config.log. |
| 12753 | # Unfortunately, on DOS this fails, as config.log is still kept open |
| 12754 | # by configure, so config.status won't be able to write to it; its |
| 12755 | # output is simply discarded. So we exec the FD to /dev/null, |
| 12756 | # effectively closing config.log, so it can be properly (re)opened and |
| 12757 | # appended to by config.status. When coming back to configure, we |
| 12758 | # need to make the FD available again. |
| 12759 | if test "$no_create" != yes; then |
| 12760 | ac_cs_success=: |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 12761 | ac_config_status_args= |
| 12762 | test "$silent" = yes && |
| 12763 | ac_config_status_args="$ac_config_status_args --quiet" |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 12764 | exec 5>/dev/null |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 12765 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 12766 | exec 5>>config.log |
| 12767 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
| 12768 | # would make configure fail if this is the last instruction. |
| 12769 | $ac_cs_success || { (exit 1); exit 1; } |
| 12770 | fi |
| 12771 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 12772 | |
Benny Prijono | d962784 | 2007-04-18 09:24:31 +0000 | [diff] [blame] | 12773 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 12774 | { echo "$as_me:$LINENO: result: |
Benny Prijono | d962784 | 2007-04-18 09:24:31 +0000 | [diff] [blame] | 12775 | |
Benny Prijono | c16c6e3 | 2007-11-18 14:53:47 +0000 | [diff] [blame] | 12776 | 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] | 12777 | |
Benny Prijono | c16c6e3 | 2007-11-18 14:53:47 +0000 | [diff] [blame] | 12778 | Further customizations can be put in: |
Benny Prijono | d962784 | 2007-04-18 09:24:31 +0000 | [diff] [blame] | 12779 | - 'user.mak' |
| 12780 | - 'pjlib/include/pj/config_site.h' |
| 12781 | |
| 12782 | The next step now is to run 'make dep' and 'make'. |
| 12783 | " >&5 |
| 12784 | echo "${ECHO_T} |
| 12785 | |
Benny Prijono | c16c6e3 | 2007-11-18 14:53:47 +0000 | [diff] [blame] | 12786 | 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] | 12787 | |
Benny Prijono | c16c6e3 | 2007-11-18 14:53:47 +0000 | [diff] [blame] | 12788 | Further customizations can be put in: |
Benny Prijono | d962784 | 2007-04-18 09:24:31 +0000 | [diff] [blame] | 12789 | - 'user.mak' |
| 12790 | - 'pjlib/include/pj/config_site.h' |
| 12791 | |
| 12792 | The next step now is to run 'make dep' and 'make'. |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 12793 | " >&6; } |
Benny Prijono | d962784 | 2007-04-18 09:24:31 +0000 | [diff] [blame] | 12794 | |