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. |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 3 | # Generated by GNU Autoconf 2.61 for pjproject 1.x. |
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, |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 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. |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +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 |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 15 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 16 | emulate sh |
| 17 | NULLCMD=: |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 18 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 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 |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 23 | case `(set -o) 2>/dev/null` in |
| 24 | *posix*) set -o posix ;; |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 25 | esac |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 26 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 27 | fi |
| 28 | |
| 29 | |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 30 | |
| 31 | |
| 32 | # PATH needs CR |
| 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 |
Benny Prijono | d523370 | 2010-01-13 13:09:45 +0000 | [diff] [blame] | 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 |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 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 |
| 51 | fi |
| 52 | |
| 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 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 58 | fi |
| 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.) |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 66 | as_nl=' |
| 67 | ' |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 68 | IFS=" "" $as_nl" |
| 69 | |
| 70 | # Find who we are. Look in the path if we contain no directory separator. |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 71 | case $0 in |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 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=. |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 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 |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 90 | echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
| 91 | { (exit 1); exit 1; } |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 92 | fi |
| 93 | |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 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 |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 97 | done |
| 98 | PS1='$ ' |
| 99 | PS2='> ' |
| 100 | PS4='+ ' |
| 101 | |
| 102 | # NLS nuisances. |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 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 |
Benny Prijono | c45d951 | 2010-12-10 11:04:30 +0000 | [diff] [blame] | 107 | do |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 108 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
| 109 | eval $as_var=C; export $as_var |
Benny Prijono | c45d951 | 2010-12-10 11:04:30 +0000 | [diff] [blame] | 110 | else |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 111 | ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
Benny Prijono | c45d951 | 2010-12-10 11:04:30 +0000 | [diff] [blame] | 112 | fi |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 113 | done |
Benny Prijono | c45d951 | 2010-12-10 11:04:30 +0000 | [diff] [blame] | 114 | |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 115 | # Required to use basename. |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 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 | |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 130 | # Name of the executable. |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 131 | as_me=`$as_basename -- "$0" || |
| 132 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 133 | X"$0" : 'X\(//\)$' \| \ |
| 134 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 135 | echo X/"$0" | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 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 | |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 150 | # CDPATH. |
| 151 | $as_unset CDPATH |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 152 | |
| 153 | |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 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= |
| 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=. |
| 226 | case $as_dir in |
| 227 | /*) |
| 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 | ( |
| 328 | as_lineno_1=$LINENO |
| 329 | as_lineno_2=$LINENO |
| 330 | test "x$as_lineno_1" != "x$as_lineno_2" && |
| 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" || { |
| 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 |
| 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. |
| 435 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
| 436 | # scripts with optimization help from Paolo Bonzini. Blame Lee |
| 437 | # E. McMahon (1931-1989) for sed's syntax. :-) |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 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" || |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 454 | { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 |
| 455 | { (exit 1); exit 1; }; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 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 | |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 465 | |
| 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 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 472 | ECHO_C= ECHO_N= ECHO_T= |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 473 | case `echo -n x` in |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 474 | -n*) |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 475 | case `echo 'x\c'` in |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 476 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 477 | *) ECHO_C='\c';; |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 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 | |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 483 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 484 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
| 485 | as_expr=expr |
| 486 | else |
| 487 | as_expr=false |
| 488 | fi |
| 489 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 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 |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 495 | mkdir conf$$.dir |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 496 | fi |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 497 | echo >conf$$.file |
| 498 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 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' |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 506 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 507 | as_ln_s=ln |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 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 |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 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 |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 532 | test -d "$1/."; |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 533 | else |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 534 | case $1 in |
| 535 | -*)set "./$1";; |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 536 | esac; |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 537 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 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 | |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 551 | |
| 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= |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 570 | SHELL=${CONFIG_SHELL-/bin/sh} |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 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 | 8a9b3b2 | 2010-01-14 14:46:54 +0000 | [diff] [blame] | 575 | PACKAGE_VERSION='1.x' |
| 576 | PACKAGE_STRING='pjproject 1.x' |
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 | |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 615 | ac_subst_vars='SHELL |
Benny Prijono | c45d951 | 2010-12-10 11:04:30 +0000 | [diff] [blame] | 616 | PATH_SEPARATOR |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 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 | AR |
| 675 | LD |
| 676 | LDOUT |
| 677 | RANLIB |
| 678 | LIBEXT |
| 679 | LIBEXT2 |
| 680 | CC_OUT |
| 681 | CC_INC |
| 682 | CC_DEF |
| 683 | CC_OPTIMIZE |
| 684 | CC_CFLAGS |
| 685 | ac_pjdir |
| 686 | ac_build_mak_vars |
| 687 | CPP |
| 688 | GREP |
| 689 | EGREP |
| 690 | ac_os_objs |
| 691 | ac_external_speex |
| 692 | ac_external_gsm |
| 693 | ac_pjmedia_snd |
| 694 | ac_external_pa |
| 695 | ac_pa_cflags |
| 696 | ac_pa_use_alsa |
| 697 | ac_pa_use_oss |
| 698 | ac_pjmedia_video |
| 699 | ac_ios_cflags |
| 700 | ac_pjmedia_video_has_qt |
| 701 | ac_qt_cflags |
| 702 | ac_no_small_filter |
| 703 | ac_no_large_filter |
| 704 | ac_no_speex_aec |
| 705 | ac_no_g711_codec |
| 706 | ac_no_l16_codec |
| 707 | ac_no_gsm_codec |
| 708 | ac_no_g722_codec |
| 709 | ac_no_g7221_codec |
| 710 | ac_no_speex_codec |
| 711 | ac_no_ilbc_codec |
| 712 | ac_sdl_cflags |
| 713 | ac_sdl_ldflags |
| 714 | ac_has_ffmpeg |
| 715 | ac_ffmpeg_cflags |
| 716 | ac_ffmpeg_ldflags |
| 717 | ac_v4l2_cflags |
| 718 | ac_v4l2_ldflags |
| 719 | ac_no_ssl |
| 720 | openssl_h_present |
| 721 | libssl_present |
| 722 | libcrypto_present |
| 723 | ac_cross_compile |
| 724 | ac_linux_poll |
| 725 | ac_host |
| 726 | ac_main_obj |
| 727 | LIBOBJS |
| 728 | LTLIBOBJS' |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 729 | ac_subst_files='' |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 730 | ac_precious_vars='build_alias |
| 731 | host_alias |
| 732 | target_alias |
| 733 | CC |
| 734 | CFLAGS |
| 735 | LDFLAGS |
| 736 | LIBS |
| 737 | CPPFLAGS |
| 738 | CXX |
| 739 | CXXFLAGS |
| 740 | CCC |
| 741 | CPP' |
| 742 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 743 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 744 | # Initialize some variables set by options. |
| 745 | ac_init_help= |
| 746 | ac_init_version=false |
| 747 | # The variables have the same names as the options, with |
| 748 | # dashes changed to underlines. |
| 749 | cache_file=/dev/null |
| 750 | exec_prefix=NONE |
| 751 | no_create= |
| 752 | no_recursion= |
| 753 | prefix=NONE |
| 754 | program_prefix=NONE |
| 755 | program_suffix=NONE |
| 756 | program_transform_name=s,x,x, |
| 757 | silent= |
| 758 | site= |
| 759 | srcdir= |
| 760 | verbose= |
| 761 | x_includes=NONE |
| 762 | x_libraries=NONE |
| 763 | |
| 764 | # Installation directory options. |
| 765 | # These are left unexpanded so users can "make install exec_prefix=/foo" |
| 766 | # and all the variables that are supposed to be based on exec_prefix |
| 767 | # by default will actually change. |
| 768 | # Use braces instead of parens because sh, perl, etc. also accept them. |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 769 | # (The list follows the same order as the GNU Coding Standards.) |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 770 | bindir='${exec_prefix}/bin' |
| 771 | sbindir='${exec_prefix}/sbin' |
| 772 | libexecdir='${exec_prefix}/libexec' |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 773 | datarootdir='${prefix}/share' |
| 774 | datadir='${datarootdir}' |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 775 | sysconfdir='${prefix}/etc' |
| 776 | sharedstatedir='${prefix}/com' |
| 777 | localstatedir='${prefix}/var' |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 778 | includedir='${prefix}/include' |
| 779 | oldincludedir='/usr/include' |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 780 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' |
| 781 | infodir='${datarootdir}/info' |
| 782 | htmldir='${docdir}' |
| 783 | dvidir='${docdir}' |
| 784 | pdfdir='${docdir}' |
| 785 | psdir='${docdir}' |
| 786 | libdir='${exec_prefix}/lib' |
| 787 | localedir='${datarootdir}/locale' |
| 788 | mandir='${datarootdir}/man' |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 789 | |
| 790 | ac_prev= |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 791 | ac_dashdash= |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 792 | for ac_option |
| 793 | do |
| 794 | # If the previous option needs an argument, assign it. |
| 795 | if test -n "$ac_prev"; then |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 796 | eval $ac_prev=\$ac_option |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 797 | ac_prev= |
| 798 | continue |
| 799 | fi |
| 800 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 801 | case $ac_option in |
| 802 | *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
| 803 | *) ac_optarg=yes ;; |
| 804 | esac |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 805 | |
| 806 | # Accept the important Cygnus configure options, so we can diagnose typos. |
| 807 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 808 | case $ac_dashdash$ac_option in |
| 809 | --) |
| 810 | ac_dashdash=yes ;; |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 811 | |
| 812 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
| 813 | ac_prev=bindir ;; |
| 814 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
| 815 | bindir=$ac_optarg ;; |
| 816 | |
| 817 | -build | --build | --buil | --bui | --bu) |
| 818 | ac_prev=build_alias ;; |
| 819 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
| 820 | build_alias=$ac_optarg ;; |
| 821 | |
| 822 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
| 823 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
| 824 | ac_prev=cache_file ;; |
| 825 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
| 826 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
| 827 | cache_file=$ac_optarg ;; |
| 828 | |
| 829 | --config-cache | -C) |
| 830 | cache_file=config.cache ;; |
| 831 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 832 | -datadir | --datadir | --datadi | --datad) |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 833 | ac_prev=datadir ;; |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 834 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 835 | datadir=$ac_optarg ;; |
| 836 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 837 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
| 838 | | --dataroo | --dataro | --datar) |
| 839 | ac_prev=datarootdir ;; |
| 840 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ |
| 841 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) |
| 842 | datarootdir=$ac_optarg ;; |
| 843 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 844 | -disable-* | --disable-*) |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 845 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 846 | # Reject names that are not valid shell variable names. |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 847 | expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && |
| 848 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
| 849 | { (exit 1); exit 1; }; } |
| 850 | ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` |
| 851 | eval enable_$ac_feature=no ;; |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 852 | |
| 853 | -docdir | --docdir | --docdi | --doc | --do) |
| 854 | ac_prev=docdir ;; |
| 855 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) |
| 856 | docdir=$ac_optarg ;; |
| 857 | |
| 858 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) |
| 859 | ac_prev=dvidir ;; |
| 860 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) |
| 861 | dvidir=$ac_optarg ;; |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 862 | |
| 863 | -enable-* | --enable-*) |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 864 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 865 | # Reject names that are not valid shell variable names. |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 866 | expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && |
| 867 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
| 868 | { (exit 1); exit 1; }; } |
| 869 | ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` |
| 870 | eval enable_$ac_feature=\$ac_optarg ;; |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 871 | |
| 872 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
| 873 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
| 874 | | --exec | --exe | --ex) |
| 875 | ac_prev=exec_prefix ;; |
| 876 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
| 877 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
| 878 | | --exec=* | --exe=* | --ex=*) |
| 879 | exec_prefix=$ac_optarg ;; |
| 880 | |
| 881 | -gas | --gas | --ga | --g) |
| 882 | # Obsolete; use --with-gas. |
| 883 | with_gas=yes ;; |
| 884 | |
| 885 | -help | --help | --hel | --he | -h) |
| 886 | ac_init_help=long ;; |
| 887 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
| 888 | ac_init_help=recursive ;; |
| 889 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
| 890 | ac_init_help=short ;; |
| 891 | |
| 892 | -host | --host | --hos | --ho) |
| 893 | ac_prev=host_alias ;; |
| 894 | -host=* | --host=* | --hos=* | --ho=*) |
| 895 | host_alias=$ac_optarg ;; |
| 896 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 897 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
| 898 | ac_prev=htmldir ;; |
| 899 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ |
| 900 | | --ht=*) |
| 901 | htmldir=$ac_optarg ;; |
| 902 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 903 | -includedir | --includedir | --includedi | --included | --include \ |
| 904 | | --includ | --inclu | --incl | --inc) |
| 905 | ac_prev=includedir ;; |
| 906 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
| 907 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
| 908 | includedir=$ac_optarg ;; |
| 909 | |
| 910 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
| 911 | ac_prev=infodir ;; |
| 912 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
| 913 | infodir=$ac_optarg ;; |
| 914 | |
| 915 | -libdir | --libdir | --libdi | --libd) |
| 916 | ac_prev=libdir ;; |
| 917 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
| 918 | libdir=$ac_optarg ;; |
| 919 | |
| 920 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
| 921 | | --libexe | --libex | --libe) |
| 922 | ac_prev=libexecdir ;; |
| 923 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
| 924 | | --libexe=* | --libex=* | --libe=*) |
| 925 | libexecdir=$ac_optarg ;; |
| 926 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 927 | -localedir | --localedir | --localedi | --localed | --locale) |
| 928 | ac_prev=localedir ;; |
| 929 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) |
| 930 | localedir=$ac_optarg ;; |
| 931 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 932 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 933 | | --localstate | --localstat | --localsta | --localst | --locals) |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 934 | ac_prev=localstatedir ;; |
| 935 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 936 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 937 | localstatedir=$ac_optarg ;; |
| 938 | |
| 939 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
| 940 | ac_prev=mandir ;; |
| 941 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
| 942 | mandir=$ac_optarg ;; |
| 943 | |
| 944 | -nfp | --nfp | --nf) |
| 945 | # Obsolete; use --without-fp. |
| 946 | with_fp=no ;; |
| 947 | |
| 948 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 949 | | --no-cr | --no-c | -n) |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 950 | no_create=yes ;; |
| 951 | |
| 952 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
| 953 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
| 954 | no_recursion=yes ;; |
| 955 | |
| 956 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
| 957 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
| 958 | | --oldin | --oldi | --old | --ol | --o) |
| 959 | ac_prev=oldincludedir ;; |
| 960 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
| 961 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
| 962 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
| 963 | oldincludedir=$ac_optarg ;; |
| 964 | |
| 965 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
| 966 | ac_prev=prefix ;; |
| 967 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
| 968 | prefix=$ac_optarg ;; |
| 969 | |
| 970 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
| 971 | | --program-pre | --program-pr | --program-p) |
| 972 | ac_prev=program_prefix ;; |
| 973 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
| 974 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
| 975 | program_prefix=$ac_optarg ;; |
| 976 | |
| 977 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
| 978 | | --program-suf | --program-su | --program-s) |
| 979 | ac_prev=program_suffix ;; |
| 980 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
| 981 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
| 982 | program_suffix=$ac_optarg ;; |
| 983 | |
| 984 | -program-transform-name | --program-transform-name \ |
| 985 | | --program-transform-nam | --program-transform-na \ |
| 986 | | --program-transform-n | --program-transform- \ |
| 987 | | --program-transform | --program-transfor \ |
| 988 | | --program-transfo | --program-transf \ |
| 989 | | --program-trans | --program-tran \ |
| 990 | | --progr-tra | --program-tr | --program-t) |
| 991 | ac_prev=program_transform_name ;; |
| 992 | -program-transform-name=* | --program-transform-name=* \ |
| 993 | | --program-transform-nam=* | --program-transform-na=* \ |
| 994 | | --program-transform-n=* | --program-transform-=* \ |
| 995 | | --program-transform=* | --program-transfor=* \ |
| 996 | | --program-transfo=* | --program-transf=* \ |
| 997 | | --program-trans=* | --program-tran=* \ |
| 998 | | --progr-tra=* | --program-tr=* | --program-t=*) |
| 999 | program_transform_name=$ac_optarg ;; |
| 1000 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1001 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
| 1002 | ac_prev=pdfdir ;; |
| 1003 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) |
| 1004 | pdfdir=$ac_optarg ;; |
| 1005 | |
| 1006 | -psdir | --psdir | --psdi | --psd | --ps) |
| 1007 | ac_prev=psdir ;; |
| 1008 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) |
| 1009 | psdir=$ac_optarg ;; |
| 1010 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1011 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 1012 | | -silent | --silent | --silen | --sile | --sil) |
| 1013 | silent=yes ;; |
| 1014 | |
| 1015 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
| 1016 | ac_prev=sbindir ;; |
| 1017 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
| 1018 | | --sbi=* | --sb=*) |
| 1019 | sbindir=$ac_optarg ;; |
| 1020 | |
| 1021 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
| 1022 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
| 1023 | | --sharedst | --shareds | --shared | --share | --shar \ |
| 1024 | | --sha | --sh) |
| 1025 | ac_prev=sharedstatedir ;; |
| 1026 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
| 1027 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
| 1028 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
| 1029 | | --sha=* | --sh=*) |
| 1030 | sharedstatedir=$ac_optarg ;; |
| 1031 | |
| 1032 | -site | --site | --sit) |
| 1033 | ac_prev=site ;; |
| 1034 | -site=* | --site=* | --sit=*) |
| 1035 | site=$ac_optarg ;; |
| 1036 | |
| 1037 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
| 1038 | ac_prev=srcdir ;; |
| 1039 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
| 1040 | srcdir=$ac_optarg ;; |
| 1041 | |
| 1042 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
| 1043 | | --syscon | --sysco | --sysc | --sys | --sy) |
| 1044 | ac_prev=sysconfdir ;; |
| 1045 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
| 1046 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
| 1047 | sysconfdir=$ac_optarg ;; |
| 1048 | |
| 1049 | -target | --target | --targe | --targ | --tar | --ta | --t) |
| 1050 | ac_prev=target_alias ;; |
| 1051 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
| 1052 | target_alias=$ac_optarg ;; |
| 1053 | |
| 1054 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
| 1055 | verbose=yes ;; |
| 1056 | |
| 1057 | -version | --version | --versio | --versi | --vers | -V) |
| 1058 | ac_init_version=: ;; |
| 1059 | |
| 1060 | -with-* | --with-*) |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 1061 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1062 | # Reject names that are not valid shell variable names. |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 1063 | expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && |
| 1064 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
| 1065 | { (exit 1); exit 1; }; } |
| 1066 | ac_package=`echo $ac_package | sed 's/[-.]/_/g'` |
| 1067 | eval with_$ac_package=\$ac_optarg ;; |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1068 | |
| 1069 | -without-* | --without-*) |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 1070 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1071 | # Reject names that are not valid shell variable names. |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 1072 | expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && |
| 1073 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
| 1074 | { (exit 1); exit 1; }; } |
| 1075 | ac_package=`echo $ac_package | sed 's/[-.]/_/g'` |
| 1076 | eval with_$ac_package=no ;; |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1077 | |
| 1078 | --x) |
| 1079 | # Obsolete; use --with-x. |
| 1080 | with_x=yes ;; |
| 1081 | |
| 1082 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
| 1083 | | --x-incl | --x-inc | --x-in | --x-i) |
| 1084 | ac_prev=x_includes ;; |
| 1085 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
| 1086 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
| 1087 | x_includes=$ac_optarg ;; |
| 1088 | |
| 1089 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
| 1090 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
| 1091 | ac_prev=x_libraries ;; |
| 1092 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
| 1093 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
| 1094 | x_libraries=$ac_optarg ;; |
| 1095 | |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 1096 | -*) { echo "$as_me: error: unrecognized option: $ac_option |
| 1097 | Try \`$0 --help' for more information." >&2 |
| 1098 | { (exit 1); exit 1; }; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1099 | ;; |
| 1100 | |
| 1101 | *=*) |
| 1102 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
| 1103 | # Reject names that are not valid shell variable names. |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 1104 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && |
| 1105 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 |
| 1106 | { (exit 1); exit 1; }; } |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1107 | eval $ac_envvar=\$ac_optarg |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1108 | export $ac_envvar ;; |
| 1109 | |
| 1110 | *) |
| 1111 | # FIXME: should be removed in autoconf 3.0. |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 1112 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1113 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 1114 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1115 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} |
| 1116 | ;; |
| 1117 | |
| 1118 | esac |
| 1119 | done |
| 1120 | |
| 1121 | if test -n "$ac_prev"; then |
| 1122 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 1123 | { echo "$as_me: error: missing argument to $ac_option" >&2 |
| 1124 | { (exit 1); exit 1; }; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1125 | fi |
| 1126 | |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 1127 | # Be sure to have absolute directory names. |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1128 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
| 1129 | datadir sysconfdir sharedstatedir localstatedir includedir \ |
| 1130 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ |
| 1131 | libdir localedir mandir |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1132 | do |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1133 | eval ac_val=\$$ac_var |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1134 | case $ac_val in |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1135 | [\\/$]* | ?:[\\/]* ) continue;; |
| 1136 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1137 | esac |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 1138 | { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
| 1139 | { (exit 1); exit 1; }; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1140 | done |
| 1141 | |
| 1142 | # There might be people who depend on the old broken behavior: `$host' |
| 1143 | # used to hold the argument of --host etc. |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1144 | # FIXME: To remove some day. |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1145 | build=$build_alias |
| 1146 | host=$host_alias |
| 1147 | target=$target_alias |
| 1148 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1149 | # FIXME: To remove some day. |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1150 | if test "x$host_alias" != x; then |
| 1151 | if test "x$build_alias" = x; then |
| 1152 | cross_compiling=maybe |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 1153 | echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1154 | If a cross compiler is detected then cross compile mode will be used." >&2 |
| 1155 | elif test "x$build_alias" != "x$host_alias"; then |
| 1156 | cross_compiling=yes |
| 1157 | fi |
| 1158 | fi |
| 1159 | |
| 1160 | ac_tool_prefix= |
| 1161 | test -n "$host_alias" && ac_tool_prefix=$host_alias- |
| 1162 | |
| 1163 | test "$silent" = yes && exec 6>/dev/null |
| 1164 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1165 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1166 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
| 1167 | ac_ls_di=`ls -di .` && |
| 1168 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 1169 | { echo "$as_me: error: Working directory cannot be determined" >&2 |
| 1170 | { (exit 1); exit 1; }; } |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1171 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 1172 | { echo "$as_me: error: pwd does not report name of working directory" >&2 |
| 1173 | { (exit 1); exit 1; }; } |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1174 | |
| 1175 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1176 | # Find the source files, if location was not specified. |
| 1177 | if test -z "$srcdir"; then |
| 1178 | ac_srcdir_defaulted=yes |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1179 | # Try the directory containing this script, then the parent directory. |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 1180 | ac_confdir=`$as_dirname -- "$0" || |
| 1181 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 1182 | X"$0" : 'X\(//\)[^/]' \| \ |
| 1183 | X"$0" : 'X\(//\)$' \| \ |
| 1184 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
| 1185 | echo X"$0" | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1186 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 1187 | s//\1/ |
| 1188 | q |
| 1189 | } |
| 1190 | /^X\(\/\/\)[^/].*/{ |
| 1191 | s//\1/ |
| 1192 | q |
| 1193 | } |
| 1194 | /^X\(\/\/\)$/{ |
| 1195 | s//\1/ |
| 1196 | q |
| 1197 | } |
| 1198 | /^X\(\/\).*/{ |
| 1199 | s//\1/ |
| 1200 | q |
| 1201 | } |
| 1202 | s/.*/./; q'` |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1203 | srcdir=$ac_confdir |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1204 | if test ! -r "$srcdir/$ac_unique_file"; then |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1205 | srcdir=.. |
| 1206 | fi |
| 1207 | else |
| 1208 | ac_srcdir_defaulted=no |
| 1209 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1210 | if test ! -r "$srcdir/$ac_unique_file"; then |
| 1211 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 1212 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 |
| 1213 | { (exit 1); exit 1; }; } |
Benny Prijono | 9489e7a | 2008-09-19 22:18:50 +0000 | [diff] [blame] | 1214 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1215 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
| 1216 | ac_abs_confdir=`( |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 1217 | cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2 |
| 1218 | { (exit 1); exit 1; }; } |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1219 | pwd)` |
| 1220 | # When building in place, set srcdir=. |
| 1221 | if test "$ac_abs_confdir" = "$ac_pwd"; then |
| 1222 | srcdir=. |
| 1223 | fi |
| 1224 | # Remove unnecessary trailing slashes from srcdir. |
| 1225 | # Double slashes in file names in object file debugging info |
| 1226 | # mess up M-x gdb in Emacs. |
| 1227 | case $srcdir in |
| 1228 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; |
| 1229 | esac |
| 1230 | for ac_var in $ac_precious_vars; do |
| 1231 | eval ac_env_${ac_var}_set=\${${ac_var}+set} |
| 1232 | eval ac_env_${ac_var}_value=\$${ac_var} |
| 1233 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} |
| 1234 | eval ac_cv_env_${ac_var}_value=\$${ac_var} |
| 1235 | done |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1236 | |
| 1237 | # |
| 1238 | # Report the --help message. |
| 1239 | # |
| 1240 | if test "$ac_init_help" = "long"; then |
| 1241 | # Omit some internal or obsolete options to make the list less imposing. |
| 1242 | # 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] | 1243 | cat <<_ACEOF |
Benny Prijono | 8a9b3b2 | 2010-01-14 14:46:54 +0000 | [diff] [blame] | 1244 | \`configure' configures pjproject 1.x to adapt to many kinds of systems. |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1245 | |
| 1246 | Usage: $0 [OPTION]... [VAR=VALUE]... |
| 1247 | |
| 1248 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
| 1249 | VAR=VALUE. See below for descriptions of some of the useful variables. |
| 1250 | |
| 1251 | Defaults for the options are specified in brackets. |
| 1252 | |
| 1253 | Configuration: |
| 1254 | -h, --help display this help and exit |
| 1255 | --help=short display options specific to this package |
| 1256 | --help=recursive display the short help of all the included packages |
| 1257 | -V, --version display version information and exit |
| 1258 | -q, --quiet, --silent do not print \`checking...' messages |
| 1259 | --cache-file=FILE cache test results in FILE [disabled] |
| 1260 | -C, --config-cache alias for \`--cache-file=config.cache' |
| 1261 | -n, --no-create do not create output files |
| 1262 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] |
| 1263 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1264 | Installation directories: |
| 1265 | --prefix=PREFIX install architecture-independent files in PREFIX |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 1266 | [$ac_default_prefix] |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1267 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 1268 | [PREFIX] |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1269 | |
| 1270 | By default, \`make install' will install all the files in |
| 1271 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
| 1272 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
| 1273 | for instance \`--prefix=\$HOME'. |
| 1274 | |
| 1275 | For better control, use the options below. |
| 1276 | |
| 1277 | Fine tuning of the installation directories: |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 1278 | --bindir=DIR user executables [EPREFIX/bin] |
| 1279 | --sbindir=DIR system admin executables [EPREFIX/sbin] |
| 1280 | --libexecdir=DIR program executables [EPREFIX/libexec] |
| 1281 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
| 1282 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
| 1283 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
| 1284 | --libdir=DIR object code libraries [EPREFIX/lib] |
| 1285 | --includedir=DIR C header files [PREFIX/include] |
| 1286 | --oldincludedir=DIR C header files for non-gcc [/usr/include] |
| 1287 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] |
| 1288 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] |
| 1289 | --infodir=DIR info documentation [DATAROOTDIR/info] |
| 1290 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] |
| 1291 | --mandir=DIR man documentation [DATAROOTDIR/man] |
| 1292 | --docdir=DIR documentation root [DATAROOTDIR/doc/pjproject] |
| 1293 | --htmldir=DIR html documentation [DOCDIR] |
| 1294 | --dvidir=DIR dvi documentation [DOCDIR] |
| 1295 | --pdfdir=DIR pdf documentation [DOCDIR] |
| 1296 | --psdir=DIR ps documentation [DOCDIR] |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1297 | _ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1298 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1299 | cat <<\_ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1300 | |
| 1301 | System types: |
| 1302 | --build=BUILD configure for building on BUILD [guessed] |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1303 | --host=HOST cross-compile to build programs to run on HOST [BUILD] |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1304 | --target=TARGET configure for building compilers for TARGET [HOST] |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1305 | _ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1306 | fi |
| 1307 | |
| 1308 | if test -n "$ac_init_help"; then |
| 1309 | case $ac_init_help in |
Benny Prijono | 8a9b3b2 | 2010-01-14 14:46:54 +0000 | [diff] [blame] | 1310 | short | recursive ) echo "Configuration of pjproject 1.x:";; |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1311 | esac |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1312 | cat <<\_ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1313 | |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 1314 | Optional Features: |
| 1315 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
| 1316 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
| 1317 | --disable-floating-point |
| 1318 | Disable floating point where possible |
Benny Prijono | 9489e7a | 2008-09-19 22:18:50 +0000 | [diff] [blame] | 1319 | --enable-epoll Use /dev/epoll ioqueue on Linux (experimental) |
Benny Prijono | 1d97162 | 2006-09-10 22:27:40 +0000 | [diff] [blame] | 1320 | --disable-sound Exclude sound (i.e. use null sound) |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 1321 | --disable-oss Disable OSS audio (default: not disabled) |
Benny Prijono | ebb2c33 | 2008-07-28 23:40:58 +0000 | [diff] [blame] | 1322 | --enable-ext-sound PJMEDIA will not provide any sound device backend |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 1323 | --disable-small-filter Exclude small filter in resampling |
| 1324 | --disable-large-filter Exclude large filter in resampling |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 1325 | --disable-speex-aec Exclude Speex Acoustic Echo Canceller/AEC |
| 1326 | --disable-g711-codec Exclude G.711 codecs from the build |
| 1327 | --disable-l16-codec Exclude Linear/L16 codec family from the build |
| 1328 | --disable-gsm-codec Exclude GSM codec in the build |
Benny Prijono | 71f657d | 2008-03-17 14:24:21 +0000 | [diff] [blame] | 1329 | --disable-g722-codec Exclude G.722 codec in the build |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1330 | --disable-g7221-codec Exclude G.7221 codec in the build |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 1331 | --disable-speex-codec Exclude Speex codecs in the build |
| 1332 | --disable-ilbc-codec Exclude iLBC codec in the build |
Benny Prijono | 550a1a6 | 2007-10-16 08:54:00 +0000 | [diff] [blame] | 1333 | --enable-libsamplerate Link with libsamplerate when available. Note that |
| 1334 | PJMEDIA_RESAMPLE_IMP must also be configured |
Benny Prijono | c45d951 | 2010-12-10 11:04:30 +0000 | [diff] [blame] | 1335 | --disable-sdl Disable SDL (default: not disabled) |
| 1336 | --disable-ffmpeg Disable ffmpeg (default: not disabled) |
| 1337 | --disable-v4l2 Disable Video4Linux2 (default: not disabled) |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 1338 | --enable-ipp Enable Intel IPP support. Specify the Intel IPP |
| 1339 | package and samples location using IPPROOT and |
| 1340 | IPPSAMPLES env var or with --with-ipp and |
| 1341 | --with-ipp-samples options |
Benny Prijono | ce1db76 | 2007-02-14 02:21:08 +0000 | [diff] [blame] | 1342 | --disable-ssl Exclude SSL support the build (default: autodetect) |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1343 | |
| 1344 | |
Benny Prijono | fe0c127 | 2010-01-13 16:28:15 +0000 | [diff] [blame] | 1345 | Optional Packages: |
| 1346 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
| 1347 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
Benny Prijono | 8a9b3b2 | 2010-01-14 14:46:54 +0000 | [diff] [blame] | 1348 | --with-external-speex Use external Speex development files, not the one in |
| 1349 | "third_party" directory. When this option is set, |
| 1350 | make sure that Speex is accessible to use (hint: use |
| 1351 | CFLAGS and LDFLAGS env var to set the include/lib |
| 1352 | paths) |
| 1353 | --with-external-gsm Use external GSM codec library, not the one in |
| 1354 | "third_party" directory. When this option is set, |
| 1355 | make sure that the GSM include/lib files are |
| 1356 | accessible to use (hint: use CFLAGS and LDFLAGS env |
| 1357 | var to set the include/lib paths) |
| 1358 | --with-external-pa Use external PortAudio development files, not the |
| 1359 | one in "third_party" directory. When this option is |
| 1360 | set, make sure that PortAudio is accessible to use |
| 1361 | (hint: use CFLAGS and LDFLAGS env var to set the |
| 1362 | include/lib paths) |
Benny Prijono | 3965f19 | 2010-02-10 18:46:05 +0000 | [diff] [blame] | 1363 | --with-ipp=DIR Specify the Intel IPP location |
| 1364 | --with-ipp-samples=DIR Specify the Intel IPP samples location |
| 1365 | --with-ipp-arch=ARCH Specify the Intel IPP ARCH suffix, e.g. "64" or |
Benny Prijono | 46bd084 | 2010-02-12 14:12:41 +0000 | [diff] [blame] | 1366 | "em64t. Default is blank for IA32" |
Benny Prijono | fe0c127 | 2010-01-13 16:28:15 +0000 | [diff] [blame] | 1367 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1368 | Some influential environment variables: |
| 1369 | CC C compiler command |
| 1370 | CFLAGS C compiler flags |
| 1371 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
| 1372 | nonstandard directory <lib dir> |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1373 | LIBS libraries to pass to the linker, e.g. -l<library> |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 1374 | CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1375 | you have headers in a nonstandard directory <include dir> |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 1376 | CXX C++ compiler command |
| 1377 | CXXFLAGS C++ compiler flags |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1378 | CPP C preprocessor |
| 1379 | |
| 1380 | Use these variables to override the choices made by `configure' or to help |
| 1381 | it to find libraries and programs with nonstandard names/locations. |
| 1382 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1383 | _ACEOF |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1384 | ac_status=$? |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1385 | fi |
| 1386 | |
| 1387 | if test "$ac_init_help" = "recursive"; then |
| 1388 | # If there are subdirs, report their specific --help. |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1389 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 1390 | test -d "$ac_dir" || continue |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1391 | ac_builddir=. |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1392 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1393 | case "$ac_dir" in |
| 1394 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 1395 | *) |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 1396 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1397 | # A ".." for each directory in $ac_dir_suffix. |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 1398 | ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1399 | case $ac_top_builddir_sub in |
| 1400 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 1401 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 1402 | esac ;; |
| 1403 | esac |
| 1404 | ac_abs_top_builddir=$ac_pwd |
| 1405 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 1406 | # for backward compatibility: |
| 1407 | ac_top_builddir=$ac_top_build_prefix |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1408 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1409 | case $srcdir in |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1410 | .) # We are building in place. |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1411 | ac_srcdir=. |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1412 | ac_top_srcdir=$ac_top_builddir_sub |
| 1413 | ac_abs_top_srcdir=$ac_pwd ;; |
| 1414 | [\\/]* | ?:[\\/]* ) # Absolute name. |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1415 | ac_srcdir=$srcdir$ac_dir_suffix; |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1416 | ac_top_srcdir=$srcdir |
| 1417 | ac_abs_top_srcdir=$srcdir ;; |
| 1418 | *) # Relative name. |
| 1419 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 1420 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 1421 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1422 | esac |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1423 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1424 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1425 | cd "$ac_dir" || { ac_status=$?; continue; } |
| 1426 | # Check for guested configure. |
| 1427 | if test -f "$ac_srcdir/configure.gnu"; then |
| 1428 | echo && |
| 1429 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive |
| 1430 | elif test -f "$ac_srcdir/configure"; then |
| 1431 | echo && |
| 1432 | $SHELL "$ac_srcdir/configure" --help=recursive |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1433 | else |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 1434 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1435 | fi || ac_status=$? |
| 1436 | cd "$ac_pwd" || { ac_status=$?; break; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1437 | done |
| 1438 | fi |
| 1439 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1440 | test -n "$ac_init_help" && exit $ac_status |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1441 | if $ac_init_version; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1442 | cat <<\_ACEOF |
Benny Prijono | 8a9b3b2 | 2010-01-14 14:46:54 +0000 | [diff] [blame] | 1443 | pjproject configure 1.x |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 1444 | generated by GNU Autoconf 2.61 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1445 | |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 1446 | Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
| 1447 | 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1448 | This configure script is free software; the Free Software Foundation |
| 1449 | gives unlimited permission to copy, distribute and modify it. |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1450 | _ACEOF |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1451 | exit |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1452 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1453 | cat >config.log <<_ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1454 | This file contains any messages produced by compilers while |
| 1455 | running configure, to aid debugging if configure makes a mistake. |
| 1456 | |
Benny Prijono | 8a9b3b2 | 2010-01-14 14:46:54 +0000 | [diff] [blame] | 1457 | It was created by pjproject $as_me 1.x, which was |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 1458 | generated by GNU Autoconf 2.61. Invocation command line was |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1459 | |
| 1460 | $ $0 $@ |
| 1461 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1462 | _ACEOF |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1463 | exec 5>>config.log |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1464 | { |
| 1465 | cat <<_ASUNAME |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1466 | ## --------- ## |
| 1467 | ## Platform. ## |
| 1468 | ## --------- ## |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1469 | |
| 1470 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 1471 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
| 1472 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
| 1473 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
| 1474 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
| 1475 | |
| 1476 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
| 1477 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
| 1478 | |
| 1479 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
| 1480 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
| 1481 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1482 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1483 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
| 1484 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
| 1485 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
| 1486 | |
| 1487 | _ASUNAME |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1488 | |
| 1489 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1490 | for as_dir in $PATH |
| 1491 | do |
| 1492 | IFS=$as_save_IFS |
| 1493 | test -z "$as_dir" && as_dir=. |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 1494 | echo "PATH: $as_dir" |
| 1495 | done |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1496 | IFS=$as_save_IFS |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1497 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1498 | } >&5 |
| 1499 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1500 | cat >&5 <<_ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1501 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1502 | |
| 1503 | ## ----------- ## |
| 1504 | ## Core tests. ## |
| 1505 | ## ----------- ## |
| 1506 | |
| 1507 | _ACEOF |
| 1508 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1509 | |
| 1510 | # Keep a trace of the command line. |
| 1511 | # 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] | 1512 | # 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] | 1513 | # Also quote any args containing shell meta-characters. |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1514 | # Make two passes to allow for proper duplicate-argument suppression. |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1515 | ac_configure_args= |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1516 | ac_configure_args0= |
| 1517 | ac_configure_args1= |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1518 | ac_must_keep_next=false |
| 1519 | for ac_pass in 1 2 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1520 | do |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1521 | for ac_arg |
| 1522 | do |
| 1523 | case $ac_arg in |
| 1524 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
| 1525 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 1526 | | -silent | --silent | --silen | --sile | --sil) |
| 1527 | continue ;; |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1528 | *\'*) |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 1529 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1530 | esac |
| 1531 | case $ac_pass in |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 1532 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1533 | 2) |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 1534 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1535 | if test $ac_must_keep_next = true; then |
| 1536 | ac_must_keep_next=false # Got value, back to normal. |
| 1537 | else |
| 1538 | case $ac_arg in |
| 1539 | *=* | --config-cache | -C | -disable-* | --disable-* \ |
| 1540 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
| 1541 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
| 1542 | | -with-* | --with-* | -without-* | --without-* | --x) |
| 1543 | case "$ac_configure_args0 " in |
| 1544 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
| 1545 | esac |
| 1546 | ;; |
| 1547 | -* ) ac_must_keep_next=true ;; |
| 1548 | esac |
| 1549 | fi |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 1550 | ac_configure_args="$ac_configure_args '$ac_arg'" |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1551 | ;; |
| 1552 | esac |
| 1553 | done |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1554 | done |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 1555 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } |
| 1556 | $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] | 1557 | |
| 1558 | # When interrupted or exit'd, cleanup temporary files, and complete |
| 1559 | # config.log. We remove comments because anyway the quotes in there |
| 1560 | # would cause problems or look ugly. |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1561 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
| 1562 | # 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] | 1563 | trap 'exit_status=$? |
| 1564 | # Save into config.log some information that might help in debugging. |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1565 | { |
| 1566 | echo |
| 1567 | |
| 1568 | cat <<\_ASBOX |
| 1569 | ## ---------------- ## |
| 1570 | ## Cache variables. ## |
| 1571 | ## ---------------- ## |
| 1572 | _ASBOX |
| 1573 | echo |
| 1574 | # The following way of writing the cache mishandles newlines in values, |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1575 | ( |
| 1576 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do |
| 1577 | eval ac_val=\$$ac_var |
| 1578 | case $ac_val in #( |
| 1579 | *${as_nl}*) |
| 1580 | case $ac_var in #( |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 1581 | *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 |
| 1582 | echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1583 | esac |
| 1584 | case $ac_var in #( |
| 1585 | _ | IFS | as_nl) ;; #( |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 1586 | *) $as_unset $ac_var ;; |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1587 | esac ;; |
| 1588 | esac |
| 1589 | done |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1590 | (set) 2>&1 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1591 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
| 1592 | *${as_nl}ac_space=\ *) |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1593 | sed -n \ |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1594 | "s/'\''/'\''\\\\'\'''\''/g; |
| 1595 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" |
| 1596 | ;; #( |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 1597 | *) |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1598 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 1599 | ;; |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1600 | esac | |
| 1601 | sort |
| 1602 | ) |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1603 | echo |
| 1604 | |
| 1605 | cat <<\_ASBOX |
| 1606 | ## ----------------- ## |
| 1607 | ## Output variables. ## |
| 1608 | ## ----------------- ## |
| 1609 | _ASBOX |
| 1610 | echo |
| 1611 | for ac_var in $ac_subst_vars |
| 1612 | do |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1613 | eval ac_val=\$$ac_var |
| 1614 | case $ac_val in |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 1615 | *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1616 | esac |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 1617 | echo "$ac_var='\''$ac_val'\''" |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1618 | done | sort |
| 1619 | echo |
| 1620 | |
| 1621 | if test -n "$ac_subst_files"; then |
| 1622 | cat <<\_ASBOX |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1623 | ## ------------------- ## |
| 1624 | ## File substitutions. ## |
| 1625 | ## ------------------- ## |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1626 | _ASBOX |
| 1627 | echo |
| 1628 | for ac_var in $ac_subst_files |
| 1629 | do |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1630 | eval ac_val=\$$ac_var |
| 1631 | case $ac_val in |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 1632 | *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1633 | esac |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 1634 | echo "$ac_var='\''$ac_val'\''" |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1635 | done | sort |
| 1636 | echo |
| 1637 | fi |
| 1638 | |
| 1639 | if test -s confdefs.h; then |
| 1640 | cat <<\_ASBOX |
| 1641 | ## ----------- ## |
| 1642 | ## confdefs.h. ## |
| 1643 | ## ----------- ## |
| 1644 | _ASBOX |
| 1645 | echo |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1646 | cat confdefs.h |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1647 | echo |
| 1648 | fi |
| 1649 | test "$ac_signal" != 0 && |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 1650 | echo "$as_me: caught signal $ac_signal" |
| 1651 | echo "$as_me: exit $exit_status" |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1652 | } >&5 |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1653 | rm -f core *.core core.conftest.* && |
| 1654 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1655 | exit $exit_status |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1656 | ' 0 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1657 | for ac_signal in 1 2 13 15; do |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 1658 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1659 | done |
| 1660 | ac_signal=0 |
| 1661 | |
| 1662 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1663 | rm -f -r conftest* confdefs.h |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1664 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1665 | # Predefined preprocessor variables. |
| 1666 | |
| 1667 | cat >>confdefs.h <<_ACEOF |
| 1668 | #define PACKAGE_NAME "$PACKAGE_NAME" |
| 1669 | _ACEOF |
| 1670 | |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 1671 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1672 | cat >>confdefs.h <<_ACEOF |
| 1673 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
| 1674 | _ACEOF |
| 1675 | |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 1676 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1677 | cat >>confdefs.h <<_ACEOF |
| 1678 | #define PACKAGE_VERSION "$PACKAGE_VERSION" |
| 1679 | _ACEOF |
| 1680 | |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 1681 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1682 | cat >>confdefs.h <<_ACEOF |
| 1683 | #define PACKAGE_STRING "$PACKAGE_STRING" |
| 1684 | _ACEOF |
| 1685 | |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 1686 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1687 | cat >>confdefs.h <<_ACEOF |
| 1688 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
| 1689 | _ACEOF |
| 1690 | |
| 1691 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1692 | # Let the site file select an alternate cache file if it wants to. |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 1693 | # Prefer explicitly selected file to automatically selected ones. |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1694 | if test -n "$CONFIG_SITE"; then |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 1695 | set x "$CONFIG_SITE" |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1696 | elif test "x$prefix" != xNONE; then |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 1697 | set x "$prefix/share/config.site" "$prefix/etc/config.site" |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1698 | else |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 1699 | set x "$ac_default_prefix/share/config.site" \ |
| 1700 | "$ac_default_prefix/etc/config.site" |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1701 | fi |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 1702 | shift |
| 1703 | for ac_site_file |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1704 | do |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 1705 | if test -r "$ac_site_file"; then |
| 1706 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
| 1707 | echo "$as_me: loading site script $ac_site_file" >&6;} |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1708 | sed 's/^/| /' "$ac_site_file" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1709 | . "$ac_site_file" |
| 1710 | fi |
| 1711 | done |
| 1712 | |
| 1713 | if test -r "$cache_file"; then |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 1714 | # Some versions of bash will fail to source /dev/null (special |
| 1715 | # files actually), so we avoid doing that. |
| 1716 | if test -f "$cache_file"; then |
| 1717 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 |
| 1718 | echo "$as_me: loading cache $cache_file" >&6;} |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1719 | case $cache_file in |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1720 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
| 1721 | *) . "./$cache_file";; |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1722 | esac |
| 1723 | fi |
| 1724 | else |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 1725 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
| 1726 | echo "$as_me: creating cache $cache_file" >&6;} |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1727 | >$cache_file |
| 1728 | fi |
| 1729 | |
| 1730 | # Check that the precious variables saved in the cache have kept the same |
| 1731 | # value. |
| 1732 | ac_cache_corrupted=false |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1733 | for ac_var in $ac_precious_vars; do |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1734 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
| 1735 | eval ac_new_set=\$ac_env_${ac_var}_set |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1736 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
| 1737 | eval ac_new_val=\$ac_env_${ac_var}_value |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1738 | case $ac_old_set,$ac_new_set in |
| 1739 | set,) |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 1740 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
| 1741 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1742 | ac_cache_corrupted=: ;; |
| 1743 | ,set) |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 1744 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 |
| 1745 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1746 | ac_cache_corrupted=: ;; |
| 1747 | ,);; |
| 1748 | *) |
| 1749 | if test "x$ac_old_val" != "x$ac_new_val"; then |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 1750 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 |
| 1751 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
| 1752 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 |
| 1753 | echo "$as_me: former value: $ac_old_val" >&2;} |
| 1754 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 |
| 1755 | echo "$as_me: current value: $ac_new_val" >&2;} |
| 1756 | ac_cache_corrupted=: |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1757 | fi;; |
| 1758 | esac |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1759 | # Pass precious variables to config.status. |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1760 | if test "$ac_new_set" = set; then |
| 1761 | case $ac_new_val in |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 1762 | *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1763 | *) ac_arg=$ac_var=$ac_new_val ;; |
| 1764 | esac |
| 1765 | case " $ac_configure_args " in |
| 1766 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 1767 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1768 | esac |
| 1769 | fi |
| 1770 | done |
| 1771 | if $ac_cache_corrupted; then |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 1772 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 |
| 1773 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
| 1774 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 |
| 1775 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} |
| 1776 | { (exit 1); exit 1; }; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1777 | fi |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 1778 | |
| 1779 | |
| 1780 | |
| 1781 | |
| 1782 | |
| 1783 | |
| 1784 | |
| 1785 | |
| 1786 | |
| 1787 | |
| 1788 | |
| 1789 | |
| 1790 | |
| 1791 | |
| 1792 | |
| 1793 | |
| 1794 | |
| 1795 | |
| 1796 | |
| 1797 | |
| 1798 | |
| 1799 | |
| 1800 | |
| 1801 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1802 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1803 | ac_ext=c |
| 1804 | ac_cpp='$CPP $CPPFLAGS' |
| 1805 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 1806 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 1807 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 1808 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1809 | |
| 1810 | |
Benny Prijono | 5b818b2 | 2006-09-17 22:58:51 +0000 | [diff] [blame] | 1811 | host_orig="$host" |
| 1812 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1813 | ac_aux_dir= |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1814 | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 1815 | if test -f "$ac_dir/install-sh"; then |
| 1816 | ac_aux_dir=$ac_dir |
| 1817 | ac_install_sh="$ac_aux_dir/install-sh -c" |
| 1818 | break |
| 1819 | elif test -f "$ac_dir/install.sh"; then |
| 1820 | ac_aux_dir=$ac_dir |
| 1821 | ac_install_sh="$ac_aux_dir/install.sh -c" |
| 1822 | break |
| 1823 | elif test -f "$ac_dir/shtool"; then |
| 1824 | ac_aux_dir=$ac_dir |
| 1825 | ac_install_sh="$ac_aux_dir/shtool install -c" |
| 1826 | break |
| 1827 | fi |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1828 | done |
| 1829 | if test -z "$ac_aux_dir"; then |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 1830 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5 |
| 1831 | echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;} |
| 1832 | { (exit 1); exit 1; }; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1833 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1834 | |
| 1835 | # These three variables are undocumented and unsupported, |
| 1836 | # and are intended to be withdrawn in a future Autoconf release. |
| 1837 | # They can cause serious problems if a builder's source tree is in a directory |
| 1838 | # whose full name contains unusual characters. |
| 1839 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. |
| 1840 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. |
| 1841 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. |
| 1842 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1843 | |
| 1844 | # Make sure we can run config.sub. |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1845 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 1846 | { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 |
| 1847 | echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;} |
| 1848 | { (exit 1); exit 1; }; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1849 | |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 1850 | { echo "$as_me:$LINENO: checking build system type" >&5 |
| 1851 | echo $ECHO_N "checking build system type... $ECHO_C" >&6; } |
| 1852 | if test "${ac_cv_build+set}" = set; then |
| 1853 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1854 | else |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1855 | ac_build_alias=$build_alias |
| 1856 | test "x$ac_build_alias" = x && |
| 1857 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` |
| 1858 | test "x$ac_build_alias" = x && |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 1859 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 |
| 1860 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} |
| 1861 | { (exit 1); exit 1; }; } |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1862 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 1863 | { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 |
| 1864 | echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;} |
| 1865 | { (exit 1); exit 1; }; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1866 | |
| 1867 | fi |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 1868 | { echo "$as_me:$LINENO: result: $ac_cv_build" >&5 |
| 1869 | echo "${ECHO_T}$ac_cv_build" >&6; } |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1870 | case $ac_cv_build in |
| 1871 | *-*-*) ;; |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 1872 | *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 |
| 1873 | echo "$as_me: error: invalid value of canonical build" >&2;} |
| 1874 | { (exit 1); exit 1; }; };; |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1875 | esac |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1876 | build=$ac_cv_build |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1877 | ac_save_IFS=$IFS; IFS='-' |
| 1878 | set x $ac_cv_build |
| 1879 | shift |
| 1880 | build_cpu=$1 |
| 1881 | build_vendor=$2 |
| 1882 | shift; shift |
| 1883 | # Remember, the first character of IFS is used to create $*, |
| 1884 | # except with old shells: |
| 1885 | build_os=$* |
| 1886 | IFS=$ac_save_IFS |
| 1887 | 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] | 1888 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1889 | |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 1890 | { echo "$as_me:$LINENO: checking host system type" >&5 |
| 1891 | echo $ECHO_N "checking host system type... $ECHO_C" >&6; } |
| 1892 | if test "${ac_cv_host+set}" = set; then |
| 1893 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1894 | else |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1895 | if test "x$host_alias" = x; then |
| 1896 | ac_cv_host=$ac_cv_build |
| 1897 | else |
| 1898 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 1899 | { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 |
| 1900 | echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;} |
| 1901 | { (exit 1); exit 1; }; } |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1902 | fi |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1903 | |
| 1904 | fi |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 1905 | { echo "$as_me:$LINENO: result: $ac_cv_host" >&5 |
| 1906 | echo "${ECHO_T}$ac_cv_host" >&6; } |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1907 | case $ac_cv_host in |
| 1908 | *-*-*) ;; |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 1909 | *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 |
| 1910 | echo "$as_me: error: invalid value of canonical host" >&2;} |
| 1911 | { (exit 1); exit 1; }; };; |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1912 | esac |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1913 | host=$ac_cv_host |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1914 | ac_save_IFS=$IFS; IFS='-' |
| 1915 | set x $ac_cv_host |
| 1916 | shift |
| 1917 | host_cpu=$1 |
| 1918 | host_vendor=$2 |
| 1919 | shift; shift |
| 1920 | # Remember, the first character of IFS is used to create $*, |
| 1921 | # except with old shells: |
| 1922 | host_os=$* |
| 1923 | IFS=$ac_save_IFS |
| 1924 | 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] | 1925 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1926 | |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 1927 | { echo "$as_me:$LINENO: checking target system type" >&5 |
| 1928 | echo $ECHO_N "checking target system type... $ECHO_C" >&6; } |
| 1929 | if test "${ac_cv_target+set}" = set; then |
| 1930 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1931 | else |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1932 | if test "x$target_alias" = x; then |
| 1933 | ac_cv_target=$ac_cv_host |
| 1934 | else |
| 1935 | ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 1936 | { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5 |
| 1937 | echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;} |
| 1938 | { (exit 1); exit 1; }; } |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1939 | fi |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1940 | |
| 1941 | fi |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 1942 | { echo "$as_me:$LINENO: result: $ac_cv_target" >&5 |
| 1943 | echo "${ECHO_T}$ac_cv_target" >&6; } |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1944 | case $ac_cv_target in |
| 1945 | *-*-*) ;; |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 1946 | *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5 |
| 1947 | echo "$as_me: error: invalid value of canonical target" >&2;} |
| 1948 | { (exit 1); exit 1; }; };; |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1949 | esac |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1950 | target=$ac_cv_target |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1951 | ac_save_IFS=$IFS; IFS='-' |
| 1952 | set x $ac_cv_target |
| 1953 | shift |
| 1954 | target_cpu=$1 |
| 1955 | target_vendor=$2 |
| 1956 | shift; shift |
| 1957 | # Remember, the first character of IFS is used to create $*, |
| 1958 | # except with old shells: |
| 1959 | target_os=$* |
| 1960 | IFS=$ac_save_IFS |
| 1961 | 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] | 1962 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1963 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1964 | # The aliases save the names the user supplied, while $host etc. |
| 1965 | # will get canonicalized. |
| 1966 | test -n "$target_alias" && |
| 1967 | test "$program_prefix$program_suffix$program_transform_name" = \ |
| 1968 | NONENONEs,x,x, && |
| 1969 | program_prefix=${target_alias}- |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1970 | 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] | 1971 | |
Benny Prijono | 8ec5eae | 2010-05-12 10:59:20 +0000 | [diff] [blame] | 1972 | ac_config_files="$ac_config_files build.mak build/os-auto.mak build/cc-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/os-auto.mak third_party/build/portaudio/os-auto.mak" |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1973 | |
Benny Prijono | c1fe23d | 2006-09-13 09:38:06 +0000 | [diff] [blame] | 1974 | |
Benny Prijono | 1248311 | 2007-03-12 10:44:38 +0000 | [diff] [blame] | 1975 | |
Benny Prijono | c1fe23d | 2006-09-13 09:38:06 +0000 | [diff] [blame] | 1976 | if test "$CFLAGS" = ""; then |
Benny Prijono | d145982 | 2006-10-04 20:56:39 +0000 | [diff] [blame] | 1977 | CFLAGS="-O2" |
Benny Prijono | c1fe23d | 2006-09-13 09:38:06 +0000 | [diff] [blame] | 1978 | else |
| 1979 | CFLAGS="$CFLAGS" |
| 1980 | fi |
| 1981 | |
| 1982 | CXXFLAGS="$CFLAGS $CXXFLAGS" |
| 1983 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1984 | ac_ext=c |
| 1985 | ac_cpp='$CPP $CPPFLAGS' |
| 1986 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 1987 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 1988 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 1989 | if test -n "$ac_tool_prefix"; then |
| 1990 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
| 1991 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 1992 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1993 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 1994 | if test "${ac_cv_prog_CC+set}" = set; then |
| 1995 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1996 | else |
| 1997 | if test -n "$CC"; then |
| 1998 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 1999 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2000 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2001 | for as_dir in $PATH |
| 2002 | do |
| 2003 | IFS=$as_save_IFS |
| 2004 | test -z "$as_dir" && as_dir=. |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 2005 | for ac_exec_ext in '' $ac_executable_extensions; do |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2006 | 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] | 2007 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 2008 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2009 | break 2 |
| 2010 | fi |
| 2011 | done |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 2012 | done |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2013 | IFS=$as_save_IFS |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2014 | |
| 2015 | fi |
| 2016 | fi |
| 2017 | CC=$ac_cv_prog_CC |
| 2018 | if test -n "$CC"; then |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 2019 | { echo "$as_me:$LINENO: result: $CC" >&5 |
| 2020 | echo "${ECHO_T}$CC" >&6; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2021 | else |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 2022 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2023 | echo "${ECHO_T}no" >&6; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2024 | fi |
| 2025 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2026 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2027 | fi |
| 2028 | if test -z "$ac_cv_prog_CC"; then |
| 2029 | ac_ct_CC=$CC |
| 2030 | # Extract the first word of "gcc", so it can be a program name with args. |
| 2031 | set dummy gcc; ac_word=$2 |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 2032 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2033 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 2034 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 2035 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2036 | else |
| 2037 | if test -n "$ac_ct_CC"; then |
| 2038 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 2039 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2040 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2041 | for as_dir in $PATH |
| 2042 | do |
| 2043 | IFS=$as_save_IFS |
| 2044 | test -z "$as_dir" && as_dir=. |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 2045 | for ac_exec_ext in '' $ac_executable_extensions; do |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2046 | 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] | 2047 | ac_cv_prog_ac_ct_CC="gcc" |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 2048 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2049 | break 2 |
| 2050 | fi |
| 2051 | done |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 2052 | done |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2053 | IFS=$as_save_IFS |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2054 | |
| 2055 | fi |
| 2056 | fi |
| 2057 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 2058 | if test -n "$ac_ct_CC"; then |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 2059 | { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 2060 | echo "${ECHO_T}$ac_ct_CC" >&6; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2061 | else |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 2062 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2063 | echo "${ECHO_T}no" >&6; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2064 | fi |
| 2065 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2066 | if test "x$ac_ct_CC" = x; then |
| 2067 | CC="" |
| 2068 | else |
| 2069 | case $cross_compiling:$ac_tool_warned in |
| 2070 | yes:) |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 2071 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 2072 | whose name does not start with the host triplet. If you think this |
| 2073 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 2074 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 2075 | whose name does not start with the host triplet. If you think this |
| 2076 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2077 | ac_tool_warned=yes ;; |
| 2078 | esac |
| 2079 | CC=$ac_ct_CC |
| 2080 | fi |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2081 | else |
| 2082 | CC="$ac_cv_prog_CC" |
| 2083 | fi |
| 2084 | |
| 2085 | if test -z "$CC"; then |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2086 | if test -n "$ac_tool_prefix"; then |
| 2087 | # 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] | 2088 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 2089 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2090 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 2091 | if test "${ac_cv_prog_CC+set}" = set; then |
| 2092 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2093 | else |
| 2094 | if test -n "$CC"; then |
| 2095 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2096 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2097 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2098 | for as_dir in $PATH |
| 2099 | do |
| 2100 | IFS=$as_save_IFS |
| 2101 | test -z "$as_dir" && as_dir=. |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 2102 | for ac_exec_ext in '' $ac_executable_extensions; do |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2103 | 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] | 2104 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 2105 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2106 | break 2 |
| 2107 | fi |
| 2108 | done |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 2109 | done |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2110 | IFS=$as_save_IFS |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2111 | |
| 2112 | fi |
| 2113 | fi |
| 2114 | CC=$ac_cv_prog_CC |
| 2115 | if test -n "$CC"; then |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 2116 | { echo "$as_me:$LINENO: result: $CC" >&5 |
| 2117 | echo "${ECHO_T}$CC" >&6; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2118 | else |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 2119 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2120 | echo "${ECHO_T}no" >&6; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2121 | fi |
| 2122 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2123 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2124 | fi |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2125 | fi |
| 2126 | if test -z "$CC"; then |
| 2127 | # Extract the first word of "cc", so it can be a program name with args. |
| 2128 | set dummy cc; ac_word=$2 |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 2129 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2130 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 2131 | if test "${ac_cv_prog_CC+set}" = set; then |
| 2132 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2133 | else |
| 2134 | if test -n "$CC"; then |
| 2135 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2136 | else |
| 2137 | ac_prog_rejected=no |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2138 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2139 | for as_dir in $PATH |
| 2140 | do |
| 2141 | IFS=$as_save_IFS |
| 2142 | test -z "$as_dir" && as_dir=. |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 2143 | for ac_exec_ext in '' $ac_executable_extensions; do |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2144 | 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] | 2145 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
| 2146 | ac_prog_rejected=yes |
| 2147 | continue |
| 2148 | fi |
| 2149 | ac_cv_prog_CC="cc" |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 2150 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2151 | break 2 |
| 2152 | fi |
| 2153 | done |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 2154 | done |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2155 | IFS=$as_save_IFS |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2156 | |
| 2157 | if test $ac_prog_rejected = yes; then |
| 2158 | # We found a bogon in the path, so make sure we never use it. |
| 2159 | set dummy $ac_cv_prog_CC |
| 2160 | shift |
| 2161 | if test $# != 0; then |
| 2162 | # We chose a different compiler from the bogus one. |
| 2163 | # However, it has the same basename, so the bogon will be chosen |
| 2164 | # first if we set CC to just the basename; use the full file name. |
| 2165 | shift |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2166 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2167 | fi |
| 2168 | fi |
| 2169 | fi |
| 2170 | fi |
| 2171 | CC=$ac_cv_prog_CC |
| 2172 | if test -n "$CC"; then |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 2173 | { echo "$as_me:$LINENO: result: $CC" >&5 |
| 2174 | echo "${ECHO_T}$CC" >&6; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2175 | else |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 2176 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2177 | echo "${ECHO_T}no" >&6; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2178 | fi |
| 2179 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2180 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2181 | fi |
| 2182 | if test -z "$CC"; then |
| 2183 | if test -n "$ac_tool_prefix"; then |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2184 | for ac_prog in cl.exe |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2185 | do |
| 2186 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 2187 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 2188 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2189 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 2190 | if test "${ac_cv_prog_CC+set}" = set; then |
| 2191 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2192 | else |
| 2193 | if test -n "$CC"; then |
| 2194 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2195 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2196 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2197 | for as_dir in $PATH |
| 2198 | do |
| 2199 | IFS=$as_save_IFS |
| 2200 | test -z "$as_dir" && as_dir=. |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 2201 | for ac_exec_ext in '' $ac_executable_extensions; do |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2202 | 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] | 2203 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 2204 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2205 | break 2 |
| 2206 | fi |
| 2207 | done |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 2208 | done |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2209 | IFS=$as_save_IFS |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2210 | |
| 2211 | fi |
| 2212 | fi |
| 2213 | CC=$ac_cv_prog_CC |
| 2214 | if test -n "$CC"; then |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 2215 | { echo "$as_me:$LINENO: result: $CC" >&5 |
| 2216 | echo "${ECHO_T}$CC" >&6; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2217 | else |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 2218 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2219 | echo "${ECHO_T}no" >&6; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2220 | fi |
| 2221 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2222 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2223 | test -n "$CC" && break |
| 2224 | done |
| 2225 | fi |
| 2226 | if test -z "$CC"; then |
| 2227 | ac_ct_CC=$CC |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2228 | for ac_prog in cl.exe |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2229 | do |
| 2230 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 2231 | set dummy $ac_prog; ac_word=$2 |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 2232 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2233 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 2234 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 2235 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2236 | else |
| 2237 | if test -n "$ac_ct_CC"; then |
| 2238 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 2239 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2240 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2241 | for as_dir in $PATH |
| 2242 | do |
| 2243 | IFS=$as_save_IFS |
| 2244 | test -z "$as_dir" && as_dir=. |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 2245 | for ac_exec_ext in '' $ac_executable_extensions; do |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2246 | 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] | 2247 | ac_cv_prog_ac_ct_CC="$ac_prog" |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 2248 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2249 | break 2 |
| 2250 | fi |
| 2251 | done |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 2252 | done |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2253 | IFS=$as_save_IFS |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2254 | |
| 2255 | fi |
| 2256 | fi |
| 2257 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 2258 | if test -n "$ac_ct_CC"; then |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 2259 | { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 2260 | echo "${ECHO_T}$ac_ct_CC" >&6; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2261 | else |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 2262 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2263 | echo "${ECHO_T}no" >&6; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2264 | fi |
| 2265 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2266 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2267 | test -n "$ac_ct_CC" && break |
| 2268 | done |
| 2269 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2270 | if test "x$ac_ct_CC" = x; then |
| 2271 | CC="" |
| 2272 | else |
| 2273 | case $cross_compiling:$ac_tool_warned in |
| 2274 | yes:) |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 2275 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 2276 | whose name does not start with the host triplet. If you think this |
| 2277 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 2278 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 2279 | whose name does not start with the host triplet. If you think this |
| 2280 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2281 | ac_tool_warned=yes ;; |
| 2282 | esac |
| 2283 | CC=$ac_ct_CC |
| 2284 | fi |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2285 | fi |
| 2286 | |
| 2287 | fi |
| 2288 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2289 | |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 2290 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH |
| 2291 | See \`config.log' for more details." >&5 |
| 2292 | echo "$as_me: error: no acceptable C compiler found in \$PATH |
| 2293 | See \`config.log' for more details." >&2;} |
| 2294 | { (exit 1); exit 1; }; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2295 | |
| 2296 | # Provide some information about the compiler. |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 2297 | echo "$as_me:$LINENO: checking for C compiler version" >&5 |
| 2298 | ac_compiler=`set X $ac_compile; echo $2` |
| 2299 | { (ac_try="$ac_compiler --version >&5" |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2300 | case "(($ac_try" in |
| 2301 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2302 | *) ac_try_echo=$ac_try;; |
| 2303 | esac |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 2304 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2305 | (eval "$ac_compiler --version >&5") 2>&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2306 | ac_status=$? |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 2307 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2308 | (exit $ac_status); } |
| 2309 | { (ac_try="$ac_compiler -v >&5" |
| 2310 | case "(($ac_try" in |
| 2311 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2312 | *) ac_try_echo=$ac_try;; |
| 2313 | esac |
| 2314 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2315 | (eval "$ac_compiler -v >&5") 2>&5 |
| 2316 | ac_status=$? |
| 2317 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2318 | (exit $ac_status); } |
| 2319 | { (ac_try="$ac_compiler -V >&5" |
| 2320 | case "(($ac_try" in |
| 2321 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2322 | *) ac_try_echo=$ac_try;; |
| 2323 | esac |
| 2324 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2325 | (eval "$ac_compiler -V >&5") 2>&5 |
| 2326 | ac_status=$? |
| 2327 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2328 | (exit $ac_status); } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2329 | |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 2330 | cat >conftest.$ac_ext <<_ACEOF |
| 2331 | /* confdefs.h. */ |
| 2332 | _ACEOF |
| 2333 | cat confdefs.h >>conftest.$ac_ext |
| 2334 | cat >>conftest.$ac_ext <<_ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2335 | /* end confdefs.h. */ |
Benny Prijono | 5bbebc0 | 2010-06-15 05:21:43 +0000 | [diff] [blame] | 2336 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2337 | int |
| 2338 | main () |
| 2339 | { |
| 2340 | |
| 2341 | ; |
| 2342 | return 0; |
| 2343 | } |
| 2344 | _ACEOF |
| 2345 | ac_clean_files_save=$ac_clean_files |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 2346 | ac_clean_files="$ac_clean_files a.out a.exe b.out" |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2347 | # Try to create an executable without -o first, disregard a.out. |
| 2348 | # It will help us diagnose broken compilers, and finding out an intuition |
| 2349 | # of exeext. |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 2350 | { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 |
| 2351 | echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; } |
| 2352 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
| 2353 | # |
| 2354 | # List of possible output files, starting from the most likely. |
| 2355 | # The algorithm is not robust to junk in `.', hence go to wildcards (a.*) |
| 2356 | # only as a last resort. b.out is created by i960 compilers. |
| 2357 | ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out' |
| 2358 | # |
| 2359 | # The IRIX 6 linker writes into existing files which may not be |
| 2360 | # executable, retaining their permissions. Remove them first so a |
| 2361 | # subsequent execution test works. |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2362 | ac_rmfiles= |
| 2363 | for ac_file in $ac_files |
| 2364 | do |
| 2365 | case $ac_file in |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 2366 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2367 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; |
| 2368 | esac |
| 2369 | done |
| 2370 | rm -f $ac_rmfiles |
| 2371 | |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 2372 | if { (ac_try="$ac_link_default" |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2373 | case "(($ac_try" in |
| 2374 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2375 | *) ac_try_echo=$ac_try;; |
| 2376 | esac |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 2377 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2378 | (eval "$ac_link_default") 2>&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2379 | ac_status=$? |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 2380 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2381 | (exit $ac_status); }; then |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2382 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
| 2383 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' |
| 2384 | # in a Makefile. We should not override ac_cv_exeext if it was cached, |
| 2385 | # so that the user can short-circuit this test for compilers unknown to |
| 2386 | # Autoconf. |
| 2387 | for ac_file in $ac_files '' |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2388 | do |
| 2389 | test -f "$ac_file" || continue |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2390 | case $ac_file in |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 2391 | *.$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] | 2392 | ;; |
| 2393 | [ab].out ) |
| 2394 | # We found the default executable, but exeext='' is most |
| 2395 | # certainly right. |
| 2396 | break;; |
| 2397 | *.* ) |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 2398 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2399 | then :; else |
| 2400 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 2401 | fi |
| 2402 | # We set ac_cv_exeext here because the later test for it is not |
| 2403 | # safe: cross compilers may not add the suffix if given an `-o' |
| 2404 | # argument, so we may need to know it at that point already. |
| 2405 | # Even if this section looks crufty: it has the advantage of |
| 2406 | # actually working. |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2407 | break;; |
| 2408 | * ) |
| 2409 | break;; |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2410 | esac |
| 2411 | done |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2412 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
| 2413 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2414 | else |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2415 | ac_file='' |
| 2416 | fi |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 2417 | |
| 2418 | { echo "$as_me:$LINENO: result: $ac_file" >&5 |
| 2419 | echo "${ECHO_T}$ac_file" >&6; } |
| 2420 | if test -z "$ac_file"; then |
| 2421 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2422 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2423 | |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 2424 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables |
| 2425 | See \`config.log' for more details." >&5 |
| 2426 | echo "$as_me: error: C compiler cannot create executables |
| 2427 | See \`config.log' for more details." >&2;} |
| 2428 | { (exit 77); exit 77; }; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2429 | fi |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 2430 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2431 | ac_exeext=$ac_cv_exeext |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2432 | |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 2433 | # Check that the compiler produces executables we can run. If not, either |
| 2434 | # the compiler is broken, or we cross compile. |
| 2435 | { echo "$as_me:$LINENO: checking whether the C compiler works" >&5 |
| 2436 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; } |
| 2437 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
| 2438 | # If not cross compiling, check that we can run a simple program. |
| 2439 | if test "$cross_compiling" != yes; then |
| 2440 | if { ac_try='./$ac_file' |
| 2441 | { (case "(($ac_try" in |
| 2442 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2443 | *) ac_try_echo=$ac_try;; |
| 2444 | esac |
| 2445 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2446 | (eval "$ac_try") 2>&5 |
| 2447 | ac_status=$? |
| 2448 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2449 | (exit $ac_status); }; }; then |
| 2450 | cross_compiling=no |
| 2451 | else |
| 2452 | if test "$cross_compiling" = maybe; then |
| 2453 | cross_compiling=yes |
| 2454 | else |
| 2455 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. |
| 2456 | If you meant to cross compile, use \`--host'. |
| 2457 | See \`config.log' for more details." >&5 |
| 2458 | echo "$as_me: error: cannot run C compiled programs. |
| 2459 | If you meant to cross compile, use \`--host'. |
| 2460 | See \`config.log' for more details." >&2;} |
| 2461 | { (exit 1); exit 1; }; } |
| 2462 | fi |
| 2463 | fi |
| 2464 | fi |
| 2465 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 2466 | echo "${ECHO_T}yes" >&6; } |
| 2467 | |
| 2468 | rm -f a.out a.exe conftest$ac_cv_exeext b.out |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2469 | ac_clean_files=$ac_clean_files_save |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 2470 | # Check that the compiler produces executables we can run. If not, either |
| 2471 | # the compiler is broken, or we cross compile. |
| 2472 | { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
| 2473 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; } |
| 2474 | { echo "$as_me:$LINENO: result: $cross_compiling" >&5 |
| 2475 | echo "${ECHO_T}$cross_compiling" >&6; } |
| 2476 | |
| 2477 | { echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
| 2478 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; } |
| 2479 | if { (ac_try="$ac_link" |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2480 | case "(($ac_try" in |
| 2481 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2482 | *) ac_try_echo=$ac_try;; |
| 2483 | esac |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 2484 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2485 | (eval "$ac_link") 2>&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2486 | ac_status=$? |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 2487 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2488 | (exit $ac_status); }; then |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2489 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
| 2490 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
| 2491 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
| 2492 | # `rm'. |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2493 | for ac_file in conftest.exe conftest conftest.*; do |
| 2494 | test -f "$ac_file" || continue |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2495 | case $ac_file in |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 2496 | *.$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] | 2497 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2498 | break;; |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2499 | * ) break;; |
| 2500 | esac |
| 2501 | done |
| 2502 | else |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 2503 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link |
| 2504 | See \`config.log' for more details." >&5 |
| 2505 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link |
| 2506 | See \`config.log' for more details." >&2;} |
| 2507 | { (exit 1); exit 1; }; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2508 | fi |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 2509 | |
| 2510 | rm -f conftest$ac_cv_exeext |
| 2511 | { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
| 2512 | echo "${ECHO_T}$ac_cv_exeext" >&6; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2513 | |
| 2514 | rm -f conftest.$ac_ext |
| 2515 | EXEEXT=$ac_cv_exeext |
| 2516 | ac_exeext=$EXEEXT |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 2517 | { echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
| 2518 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; } |
| 2519 | if test "${ac_cv_objext+set}" = set; then |
| 2520 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Benny Prijono | c45d951 | 2010-12-10 11:04:30 +0000 | [diff] [blame] | 2521 | else |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 2522 | cat >conftest.$ac_ext <<_ACEOF |
| 2523 | /* confdefs.h. */ |
| 2524 | _ACEOF |
| 2525 | cat confdefs.h >>conftest.$ac_ext |
| 2526 | cat >>conftest.$ac_ext <<_ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2527 | /* end confdefs.h. */ |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2528 | |
| 2529 | int |
| 2530 | main () |
| 2531 | { |
| 2532 | |
| 2533 | ; |
| 2534 | return 0; |
| 2535 | } |
| 2536 | _ACEOF |
| 2537 | rm -f conftest.o conftest.obj |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 2538 | if { (ac_try="$ac_compile" |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2539 | case "(($ac_try" in |
| 2540 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2541 | *) ac_try_echo=$ac_try;; |
| 2542 | esac |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 2543 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2544 | (eval "$ac_compile") 2>&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2545 | ac_status=$? |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 2546 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2547 | (exit $ac_status); }; then |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2548 | for ac_file in conftest.o conftest.obj conftest.*; do |
| 2549 | test -f "$ac_file" || continue; |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2550 | case $ac_file in |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 2551 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;; |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2552 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
| 2553 | break;; |
| 2554 | esac |
| 2555 | done |
| 2556 | else |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 2557 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2558 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2559 | |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 2560 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile |
| 2561 | See \`config.log' for more details." >&5 |
| 2562 | echo "$as_me: error: cannot compute suffix of object files: cannot compile |
| 2563 | See \`config.log' for more details." >&2;} |
| 2564 | { (exit 1); exit 1; }; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2565 | fi |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 2566 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2567 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
| 2568 | fi |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 2569 | { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
| 2570 | echo "${ECHO_T}$ac_cv_objext" >&6; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2571 | OBJEXT=$ac_cv_objext |
| 2572 | ac_objext=$OBJEXT |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 2573 | { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
| 2574 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } |
| 2575 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
| 2576 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2577 | else |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 2578 | cat >conftest.$ac_ext <<_ACEOF |
| 2579 | /* confdefs.h. */ |
| 2580 | _ACEOF |
| 2581 | cat confdefs.h >>conftest.$ac_ext |
| 2582 | cat >>conftest.$ac_ext <<_ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2583 | /* end confdefs.h. */ |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2584 | |
| 2585 | int |
| 2586 | main () |
| 2587 | { |
| 2588 | #ifndef __GNUC__ |
| 2589 | choke me |
| 2590 | #endif |
| 2591 | |
| 2592 | ; |
| 2593 | return 0; |
| 2594 | } |
| 2595 | _ACEOF |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 2596 | rm -f conftest.$ac_objext |
| 2597 | if { (ac_try="$ac_compile" |
| 2598 | case "(($ac_try" in |
| 2599 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2600 | *) ac_try_echo=$ac_try;; |
| 2601 | esac |
| 2602 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2603 | (eval "$ac_compile") 2>conftest.er1 |
| 2604 | ac_status=$? |
| 2605 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2606 | rm -f conftest.er1 |
| 2607 | cat conftest.err >&5 |
| 2608 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2609 | (exit $ac_status); } && { |
| 2610 | test -z "$ac_c_werror_flag" || |
| 2611 | test ! -s conftest.err |
| 2612 | } && test -s conftest.$ac_objext; then |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2613 | ac_compiler_gnu=yes |
| 2614 | else |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 2615 | echo "$as_me: failed program was:" >&5 |
| 2616 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2617 | |
| 2618 | ac_compiler_gnu=no |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2619 | fi |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 2620 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2621 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2622 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
| 2623 | |
| 2624 | fi |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 2625 | { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
| 2626 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } |
| 2627 | GCC=`test $ac_compiler_gnu = yes && echo yes` |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2628 | ac_test_CFLAGS=${CFLAGS+set} |
| 2629 | ac_save_CFLAGS=$CFLAGS |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 2630 | { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
| 2631 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } |
| 2632 | if test "${ac_cv_prog_cc_g+set}" = set; then |
| 2633 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2634 | else |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2635 | ac_save_c_werror_flag=$ac_c_werror_flag |
| 2636 | ac_c_werror_flag=yes |
| 2637 | ac_cv_prog_cc_g=no |
| 2638 | CFLAGS="-g" |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 2639 | cat >conftest.$ac_ext <<_ACEOF |
| 2640 | /* confdefs.h. */ |
| 2641 | _ACEOF |
| 2642 | cat confdefs.h >>conftest.$ac_ext |
| 2643 | cat >>conftest.$ac_ext <<_ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2644 | /* end confdefs.h. */ |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2645 | |
| 2646 | int |
| 2647 | main () |
| 2648 | { |
| 2649 | |
| 2650 | ; |
| 2651 | return 0; |
| 2652 | } |
| 2653 | _ACEOF |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 2654 | rm -f conftest.$ac_objext |
| 2655 | if { (ac_try="$ac_compile" |
| 2656 | case "(($ac_try" in |
| 2657 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2658 | *) ac_try_echo=$ac_try;; |
| 2659 | esac |
| 2660 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2661 | (eval "$ac_compile") 2>conftest.er1 |
| 2662 | ac_status=$? |
| 2663 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2664 | rm -f conftest.er1 |
| 2665 | cat conftest.err >&5 |
| 2666 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2667 | (exit $ac_status); } && { |
| 2668 | test -z "$ac_c_werror_flag" || |
| 2669 | test ! -s conftest.err |
| 2670 | } && test -s conftest.$ac_objext; then |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2671 | ac_cv_prog_cc_g=yes |
| 2672 | else |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 2673 | echo "$as_me: failed program was:" >&5 |
| 2674 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2675 | |
| 2676 | CFLAGS="" |
| 2677 | cat >conftest.$ac_ext <<_ACEOF |
| 2678 | /* confdefs.h. */ |
| 2679 | _ACEOF |
| 2680 | cat confdefs.h >>conftest.$ac_ext |
| 2681 | cat >>conftest.$ac_ext <<_ACEOF |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2682 | /* end confdefs.h. */ |
| 2683 | |
| 2684 | int |
| 2685 | main () |
| 2686 | { |
| 2687 | |
| 2688 | ; |
| 2689 | return 0; |
| 2690 | } |
| 2691 | _ACEOF |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 2692 | rm -f conftest.$ac_objext |
| 2693 | if { (ac_try="$ac_compile" |
| 2694 | case "(($ac_try" in |
| 2695 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2696 | *) ac_try_echo=$ac_try;; |
| 2697 | esac |
| 2698 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2699 | (eval "$ac_compile") 2>conftest.er1 |
| 2700 | ac_status=$? |
| 2701 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2702 | rm -f conftest.er1 |
| 2703 | cat conftest.err >&5 |
| 2704 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2705 | (exit $ac_status); } && { |
| 2706 | test -z "$ac_c_werror_flag" || |
| 2707 | test ! -s conftest.err |
| 2708 | } && test -s conftest.$ac_objext; then |
| 2709 | : |
Benny Prijono | c45d951 | 2010-12-10 11:04:30 +0000 | [diff] [blame] | 2710 | else |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 2711 | echo "$as_me: failed program was:" >&5 |
| 2712 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2713 | |
| 2714 | ac_c_werror_flag=$ac_save_c_werror_flag |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2715 | CFLAGS="-g" |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 2716 | cat >conftest.$ac_ext <<_ACEOF |
| 2717 | /* confdefs.h. */ |
| 2718 | _ACEOF |
| 2719 | cat confdefs.h >>conftest.$ac_ext |
| 2720 | cat >>conftest.$ac_ext <<_ACEOF |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2721 | /* end confdefs.h. */ |
| 2722 | |
| 2723 | int |
| 2724 | main () |
| 2725 | { |
| 2726 | |
| 2727 | ; |
| 2728 | return 0; |
| 2729 | } |
| 2730 | _ACEOF |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 2731 | rm -f conftest.$ac_objext |
| 2732 | if { (ac_try="$ac_compile" |
| 2733 | case "(($ac_try" in |
| 2734 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2735 | *) ac_try_echo=$ac_try;; |
| 2736 | esac |
| 2737 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2738 | (eval "$ac_compile") 2>conftest.er1 |
| 2739 | ac_status=$? |
| 2740 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2741 | rm -f conftest.er1 |
| 2742 | cat conftest.err >&5 |
| 2743 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2744 | (exit $ac_status); } && { |
| 2745 | test -z "$ac_c_werror_flag" || |
| 2746 | test ! -s conftest.err |
| 2747 | } && test -s conftest.$ac_objext; then |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2748 | ac_cv_prog_cc_g=yes |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 2749 | else |
| 2750 | echo "$as_me: failed program was:" >&5 |
| 2751 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2752 | |
| 2753 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2754 | fi |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 2755 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2756 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2757 | fi |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 2758 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2759 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2760 | fi |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 2761 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2762 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2763 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 2764 | fi |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 2765 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
| 2766 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2767 | if test "$ac_test_CFLAGS" = set; then |
| 2768 | CFLAGS=$ac_save_CFLAGS |
| 2769 | elif test $ac_cv_prog_cc_g = yes; then |
| 2770 | if test "$GCC" = yes; then |
| 2771 | CFLAGS="-g -O2" |
| 2772 | else |
| 2773 | CFLAGS="-g" |
| 2774 | fi |
| 2775 | else |
| 2776 | if test "$GCC" = yes; then |
| 2777 | CFLAGS="-O2" |
| 2778 | else |
| 2779 | CFLAGS= |
| 2780 | fi |
| 2781 | fi |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 2782 | { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 |
| 2783 | echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } |
| 2784 | if test "${ac_cv_prog_cc_c89+set}" = set; then |
| 2785 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2786 | else |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2787 | ac_cv_prog_cc_c89=no |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2788 | ac_save_CC=$CC |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 2789 | cat >conftest.$ac_ext <<_ACEOF |
| 2790 | /* confdefs.h. */ |
| 2791 | _ACEOF |
| 2792 | cat confdefs.h >>conftest.$ac_ext |
| 2793 | cat >>conftest.$ac_ext <<_ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2794 | /* end confdefs.h. */ |
| 2795 | #include <stdarg.h> |
| 2796 | #include <stdio.h> |
| 2797 | #include <sys/types.h> |
| 2798 | #include <sys/stat.h> |
| 2799 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
| 2800 | struct buf { int x; }; |
| 2801 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
| 2802 | static char *e (p, i) |
| 2803 | char **p; |
| 2804 | int i; |
| 2805 | { |
| 2806 | return p[i]; |
| 2807 | } |
| 2808 | static char *f (char * (*g) (char **, int), char **p, ...) |
| 2809 | { |
| 2810 | char *s; |
| 2811 | va_list v; |
| 2812 | va_start (v,p); |
| 2813 | s = g (p, va_arg (v,int)); |
| 2814 | va_end (v); |
| 2815 | return s; |
| 2816 | } |
| 2817 | |
| 2818 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
| 2819 | function prototypes and stuff, but not '\xHH' hex character constants. |
| 2820 | These don't provoke an error unfortunately, instead are silently treated |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2821 | 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] | 2822 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
| 2823 | 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] | 2824 | that's true only with -std. */ |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2825 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
| 2826 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2827 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
| 2828 | inside strings and character constants. */ |
| 2829 | #define FOO(x) 'x' |
| 2830 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; |
| 2831 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2832 | int test (int i, double x); |
| 2833 | struct s1 {int (*f) (int a);}; |
| 2834 | struct s2 {int (*f) (double a);}; |
| 2835 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
| 2836 | int argc; |
| 2837 | char **argv; |
| 2838 | int |
| 2839 | main () |
| 2840 | { |
| 2841 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
| 2842 | ; |
| 2843 | return 0; |
| 2844 | } |
| 2845 | _ACEOF |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2846 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
| 2847 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2848 | do |
| 2849 | CC="$ac_save_CC $ac_arg" |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 2850 | rm -f conftest.$ac_objext |
| 2851 | if { (ac_try="$ac_compile" |
| 2852 | case "(($ac_try" in |
| 2853 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2854 | *) ac_try_echo=$ac_try;; |
| 2855 | esac |
| 2856 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2857 | (eval "$ac_compile") 2>conftest.er1 |
| 2858 | ac_status=$? |
| 2859 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2860 | rm -f conftest.er1 |
| 2861 | cat conftest.err >&5 |
| 2862 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2863 | (exit $ac_status); } && { |
| 2864 | test -z "$ac_c_werror_flag" || |
| 2865 | test ! -s conftest.err |
| 2866 | } && test -s conftest.$ac_objext; then |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2867 | ac_cv_prog_cc_c89=$ac_arg |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 2868 | else |
| 2869 | echo "$as_me: failed program was:" >&5 |
| 2870 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2871 | |
| 2872 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2873 | fi |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 2874 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2875 | rm -f core conftest.err conftest.$ac_objext |
| 2876 | test "x$ac_cv_prog_cc_c89" != "xno" && break |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2877 | done |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2878 | rm -f conftest.$ac_ext |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2879 | CC=$ac_save_CC |
| 2880 | |
| 2881 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2882 | # AC_CACHE_VAL |
| 2883 | case "x$ac_cv_prog_cc_c89" in |
| 2884 | x) |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 2885 | { echo "$as_me:$LINENO: result: none needed" >&5 |
| 2886 | echo "${ECHO_T}none needed" >&6; } ;; |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2887 | xno) |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 2888 | { echo "$as_me:$LINENO: result: unsupported" >&5 |
| 2889 | echo "${ECHO_T}unsupported" >&6; } ;; |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2890 | *) |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2891 | CC="$CC $ac_cv_prog_cc_c89" |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 2892 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 |
| 2893 | echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2894 | esac |
| 2895 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2896 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2897 | ac_ext=c |
| 2898 | ac_cpp='$CPP $CPPFLAGS' |
| 2899 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2900 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2901 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2902 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2903 | ac_ext=cpp |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2904 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 2905 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2906 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2907 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2908 | if test -z "$CXX"; then |
| 2909 | if test -n "$CCC"; then |
| 2910 | CXX=$CCC |
| 2911 | else |
| 2912 | if test -n "$ac_tool_prefix"; then |
| 2913 | 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] | 2914 | do |
| 2915 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 2916 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 2917 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2918 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 2919 | if test "${ac_cv_prog_CXX+set}" = set; then |
| 2920 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2921 | else |
| 2922 | if test -n "$CXX"; then |
| 2923 | ac_cv_prog_CXX="$CXX" # Let the user override the test. |
| 2924 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2925 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2926 | for as_dir in $PATH |
| 2927 | do |
| 2928 | IFS=$as_save_IFS |
| 2929 | test -z "$as_dir" && as_dir=. |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 2930 | for ac_exec_ext in '' $ac_executable_extensions; do |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2931 | 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] | 2932 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 2933 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2934 | break 2 |
| 2935 | fi |
| 2936 | done |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 2937 | done |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2938 | IFS=$as_save_IFS |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2939 | |
| 2940 | fi |
| 2941 | fi |
| 2942 | CXX=$ac_cv_prog_CXX |
| 2943 | if test -n "$CXX"; then |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 2944 | { echo "$as_me:$LINENO: result: $CXX" >&5 |
| 2945 | echo "${ECHO_T}$CXX" >&6; } |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2946 | else |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 2947 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2948 | echo "${ECHO_T}no" >&6; } |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2949 | fi |
| 2950 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2951 | |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2952 | test -n "$CXX" && break |
| 2953 | done |
| 2954 | fi |
| 2955 | if test -z "$CXX"; then |
| 2956 | ac_ct_CXX=$CXX |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2957 | 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] | 2958 | do |
| 2959 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 2960 | set dummy $ac_prog; ac_word=$2 |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 2961 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2962 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 2963 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then |
| 2964 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2965 | else |
| 2966 | if test -n "$ac_ct_CXX"; then |
| 2967 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. |
| 2968 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2969 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2970 | for as_dir in $PATH |
| 2971 | do |
| 2972 | IFS=$as_save_IFS |
| 2973 | test -z "$as_dir" && as_dir=. |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 2974 | for ac_exec_ext in '' $ac_executable_extensions; do |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2975 | 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] | 2976 | ac_cv_prog_ac_ct_CXX="$ac_prog" |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 2977 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2978 | break 2 |
| 2979 | fi |
| 2980 | done |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 2981 | done |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2982 | IFS=$as_save_IFS |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2983 | |
| 2984 | fi |
| 2985 | fi |
| 2986 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX |
| 2987 | if test -n "$ac_ct_CXX"; then |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 2988 | { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 |
| 2989 | echo "${ECHO_T}$ac_ct_CXX" >&6; } |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2990 | else |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 2991 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2992 | echo "${ECHO_T}no" >&6; } |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2993 | fi |
| 2994 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2995 | |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2996 | test -n "$ac_ct_CXX" && break |
| 2997 | done |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2998 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2999 | if test "x$ac_ct_CXX" = x; then |
| 3000 | CXX="g++" |
| 3001 | else |
| 3002 | case $cross_compiling:$ac_tool_warned in |
| 3003 | yes:) |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 3004 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 3005 | whose name does not start with the host triplet. If you think this |
| 3006 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 3007 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 3008 | whose name does not start with the host triplet. If you think this |
| 3009 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3010 | ac_tool_warned=yes ;; |
| 3011 | esac |
| 3012 | CXX=$ac_ct_CXX |
| 3013 | fi |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3014 | fi |
| 3015 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3016 | fi |
| 3017 | fi |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3018 | # Provide some information about the compiler. |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 3019 | echo "$as_me:$LINENO: checking for C++ compiler version" >&5 |
| 3020 | ac_compiler=`set X $ac_compile; echo $2` |
| 3021 | { (ac_try="$ac_compiler --version >&5" |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3022 | case "(($ac_try" in |
| 3023 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3024 | *) ac_try_echo=$ac_try;; |
| 3025 | esac |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 3026 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3027 | (eval "$ac_compiler --version >&5") 2>&5 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3028 | ac_status=$? |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 3029 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3030 | (exit $ac_status); } |
| 3031 | { (ac_try="$ac_compiler -v >&5" |
| 3032 | case "(($ac_try" in |
| 3033 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3034 | *) ac_try_echo=$ac_try;; |
| 3035 | esac |
| 3036 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3037 | (eval "$ac_compiler -v >&5") 2>&5 |
| 3038 | ac_status=$? |
| 3039 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3040 | (exit $ac_status); } |
| 3041 | { (ac_try="$ac_compiler -V >&5" |
| 3042 | case "(($ac_try" in |
| 3043 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3044 | *) ac_try_echo=$ac_try;; |
| 3045 | esac |
| 3046 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3047 | (eval "$ac_compiler -V >&5") 2>&5 |
| 3048 | ac_status=$? |
| 3049 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3050 | (exit $ac_status); } |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3051 | |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 3052 | { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 |
| 3053 | echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; } |
| 3054 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then |
| 3055 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3056 | else |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 3057 | cat >conftest.$ac_ext <<_ACEOF |
| 3058 | /* confdefs.h. */ |
| 3059 | _ACEOF |
| 3060 | cat confdefs.h >>conftest.$ac_ext |
| 3061 | cat >>conftest.$ac_ext <<_ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3062 | /* end confdefs.h. */ |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3063 | |
| 3064 | int |
| 3065 | main () |
| 3066 | { |
| 3067 | #ifndef __GNUC__ |
| 3068 | choke me |
| 3069 | #endif |
| 3070 | |
| 3071 | ; |
| 3072 | return 0; |
| 3073 | } |
| 3074 | _ACEOF |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 3075 | rm -f conftest.$ac_objext |
| 3076 | if { (ac_try="$ac_compile" |
| 3077 | case "(($ac_try" in |
| 3078 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3079 | *) ac_try_echo=$ac_try;; |
| 3080 | esac |
| 3081 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3082 | (eval "$ac_compile") 2>conftest.er1 |
| 3083 | ac_status=$? |
| 3084 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3085 | rm -f conftest.er1 |
| 3086 | cat conftest.err >&5 |
| 3087 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3088 | (exit $ac_status); } && { |
| 3089 | test -z "$ac_cxx_werror_flag" || |
| 3090 | test ! -s conftest.err |
| 3091 | } && test -s conftest.$ac_objext; then |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3092 | ac_compiler_gnu=yes |
| 3093 | else |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 3094 | echo "$as_me: failed program was:" >&5 |
| 3095 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3096 | |
| 3097 | ac_compiler_gnu=no |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3098 | fi |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 3099 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3100 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3101 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
| 3102 | |
| 3103 | fi |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 3104 | { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 |
| 3105 | echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; } |
| 3106 | GXX=`test $ac_compiler_gnu = yes && echo yes` |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3107 | ac_test_CXXFLAGS=${CXXFLAGS+set} |
| 3108 | ac_save_CXXFLAGS=$CXXFLAGS |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 3109 | { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 |
| 3110 | echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; } |
| 3111 | if test "${ac_cv_prog_cxx_g+set}" = set; then |
| 3112 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3113 | else |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3114 | ac_save_cxx_werror_flag=$ac_cxx_werror_flag |
| 3115 | ac_cxx_werror_flag=yes |
| 3116 | ac_cv_prog_cxx_g=no |
| 3117 | CXXFLAGS="-g" |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 3118 | cat >conftest.$ac_ext <<_ACEOF |
| 3119 | /* confdefs.h. */ |
| 3120 | _ACEOF |
| 3121 | cat confdefs.h >>conftest.$ac_ext |
| 3122 | cat >>conftest.$ac_ext <<_ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3123 | /* end confdefs.h. */ |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3124 | |
| 3125 | int |
| 3126 | main () |
| 3127 | { |
| 3128 | |
| 3129 | ; |
| 3130 | return 0; |
| 3131 | } |
| 3132 | _ACEOF |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 3133 | rm -f conftest.$ac_objext |
| 3134 | if { (ac_try="$ac_compile" |
| 3135 | case "(($ac_try" in |
| 3136 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3137 | *) ac_try_echo=$ac_try;; |
| 3138 | esac |
| 3139 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3140 | (eval "$ac_compile") 2>conftest.er1 |
| 3141 | ac_status=$? |
| 3142 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3143 | rm -f conftest.er1 |
| 3144 | cat conftest.err >&5 |
| 3145 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3146 | (exit $ac_status); } && { |
| 3147 | test -z "$ac_cxx_werror_flag" || |
| 3148 | test ! -s conftest.err |
| 3149 | } && test -s conftest.$ac_objext; then |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3150 | ac_cv_prog_cxx_g=yes |
| 3151 | else |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 3152 | echo "$as_me: failed program was:" >&5 |
| 3153 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3154 | |
| 3155 | CXXFLAGS="" |
| 3156 | cat >conftest.$ac_ext <<_ACEOF |
| 3157 | /* confdefs.h. */ |
| 3158 | _ACEOF |
| 3159 | cat confdefs.h >>conftest.$ac_ext |
| 3160 | cat >>conftest.$ac_ext <<_ACEOF |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3161 | /* end confdefs.h. */ |
| 3162 | |
| 3163 | int |
| 3164 | main () |
| 3165 | { |
| 3166 | |
| 3167 | ; |
| 3168 | return 0; |
| 3169 | } |
| 3170 | _ACEOF |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 3171 | rm -f conftest.$ac_objext |
| 3172 | if { (ac_try="$ac_compile" |
| 3173 | case "(($ac_try" in |
| 3174 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3175 | *) ac_try_echo=$ac_try;; |
| 3176 | esac |
| 3177 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3178 | (eval "$ac_compile") 2>conftest.er1 |
| 3179 | ac_status=$? |
| 3180 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3181 | rm -f conftest.er1 |
| 3182 | cat conftest.err >&5 |
| 3183 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3184 | (exit $ac_status); } && { |
| 3185 | test -z "$ac_cxx_werror_flag" || |
| 3186 | test ! -s conftest.err |
| 3187 | } && test -s conftest.$ac_objext; then |
| 3188 | : |
Benny Prijono | c45d951 | 2010-12-10 11:04:30 +0000 | [diff] [blame] | 3189 | else |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 3190 | echo "$as_me: failed program was:" >&5 |
| 3191 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3192 | |
| 3193 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3194 | CXXFLAGS="-g" |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 3195 | cat >conftest.$ac_ext <<_ACEOF |
| 3196 | /* confdefs.h. */ |
| 3197 | _ACEOF |
| 3198 | cat confdefs.h >>conftest.$ac_ext |
| 3199 | cat >>conftest.$ac_ext <<_ACEOF |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3200 | /* end confdefs.h. */ |
| 3201 | |
| 3202 | int |
| 3203 | main () |
| 3204 | { |
| 3205 | |
| 3206 | ; |
| 3207 | return 0; |
| 3208 | } |
| 3209 | _ACEOF |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 3210 | rm -f conftest.$ac_objext |
| 3211 | if { (ac_try="$ac_compile" |
| 3212 | case "(($ac_try" in |
| 3213 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3214 | *) ac_try_echo=$ac_try;; |
| 3215 | esac |
| 3216 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3217 | (eval "$ac_compile") 2>conftest.er1 |
| 3218 | ac_status=$? |
| 3219 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3220 | rm -f conftest.er1 |
| 3221 | cat conftest.err >&5 |
| 3222 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3223 | (exit $ac_status); } && { |
| 3224 | test -z "$ac_cxx_werror_flag" || |
| 3225 | test ! -s conftest.err |
| 3226 | } && test -s conftest.$ac_objext; then |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3227 | ac_cv_prog_cxx_g=yes |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 3228 | else |
| 3229 | echo "$as_me: failed program was:" >&5 |
| 3230 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3231 | |
| 3232 | |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3233 | fi |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 3234 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3235 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3236 | fi |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 3237 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3238 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3239 | fi |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 3240 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3241 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3242 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
| 3243 | fi |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 3244 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 |
| 3245 | echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; } |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3246 | if test "$ac_test_CXXFLAGS" = set; then |
| 3247 | CXXFLAGS=$ac_save_CXXFLAGS |
| 3248 | elif test $ac_cv_prog_cxx_g = yes; then |
| 3249 | if test "$GXX" = yes; then |
| 3250 | CXXFLAGS="-g -O2" |
| 3251 | else |
| 3252 | CXXFLAGS="-g" |
| 3253 | fi |
| 3254 | else |
| 3255 | if test "$GXX" = yes; then |
| 3256 | CXXFLAGS="-O2" |
| 3257 | else |
| 3258 | CXXFLAGS= |
| 3259 | fi |
| 3260 | fi |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 3261 | ac_ext=c |
| 3262 | ac_cpp='$CPP $CPPFLAGS' |
| 3263 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3264 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3265 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3266 | |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3267 | ac_ext=c |
| 3268 | ac_cpp='$CPP $CPPFLAGS' |
| 3269 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3270 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3271 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3272 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3273 | |
Benny Prijono | fe3bf0e | 2010-08-05 06:27:20 +0000 | [diff] [blame] | 3274 | if test -z "$CROSS_COMPILE"; then |
| 3275 | CROSS_COMPILE=`echo ${CC} | sed 's/gcc//'` |
| 3276 | fi |
| 3277 | |
Benny Prijono | 2d1f1b6 | 2010-05-17 16:09:12 +0000 | [diff] [blame] | 3278 | if test "$AR" = ""; then AR="${CROSS_COMPILE}ar rv"; fi |
Benny Prijono | 8ec5eae | 2010-05-12 10:59:20 +0000 | [diff] [blame] | 3279 | |
| 3280 | if test "$LD" = ""; then LD="$CC"; fi |
| 3281 | |
| 3282 | if test "$LDOUT" = ""; then LDOUT="-o"; fi |
| 3283 | |
Benny Prijono | 2d1f1b6 | 2010-05-17 16:09:12 +0000 | [diff] [blame] | 3284 | if test "$RANLIB" = ""; then RANLIB="${CROSS_COMPILE}ranlib"; fi |
Benny Prijono | 8ec5eae | 2010-05-12 10:59:20 +0000 | [diff] [blame] | 3285 | |
| 3286 | if test "$OBJEXT" = ""; then OBJEXT='o'; fi |
| 3287 | |
| 3288 | if test "$LIBEXT" = ""; then LIBEXT='a'; fi |
| 3289 | |
| 3290 | if test "$LIBEXT2" = ""; then LIBEXT2=""; fi |
| 3291 | |
| 3292 | if test "$CC_OUT" = ""; then CC_OUT="-o"; fi |
| 3293 | |
| 3294 | if test "$CC_INC" = ""; then CC_INC="-I"; fi |
| 3295 | |
| 3296 | if test "$CC_DEF" = ""; then CC_DEF="-D"; fi |
| 3297 | |
| 3298 | if test "$CC_OPTIMIZE" = ""; then CC_OPTIMIZE="-O2"; fi |
| 3299 | |
| 3300 | if test "$CC_CFLAGS" = ""; then CC_CFLAGS="-Wall"; fi |
| 3301 | |
| 3302 | |
| 3303 | |
| 3304 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3305 | |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 3306 | |
Benny Prijono | fe3bf0e | 2010-08-05 06:27:20 +0000 | [diff] [blame] | 3307 | |
| 3308 | case $host in |
Benny Prijono | 53847a3 | 2007-09-24 16:10:13 +0000 | [diff] [blame] | 3309 | *mingw* | *cygw* | *win32* | *w32* ) |
Benny Prijono | fe3bf0e | 2010-08-05 06:27:20 +0000 | [diff] [blame] | 3310 | if pwd -W 2&> /dev/null; then |
| 3311 | ac_pjdir=`pwd -W` |
| 3312 | else |
| 3313 | # We're probably cross-compiling mingw on Linux |
| 3314 | ac_pjdir=`pwd` |
| 3315 | fi |
Benny Prijono | 53847a3 | 2007-09-24 16:10:13 +0000 | [diff] [blame] | 3316 | ;; |
| 3317 | *) |
| 3318 | ac_pjdir=`pwd` |
| 3319 | ;; |
| 3320 | esac |
Benny Prijono | 1248311 | 2007-03-12 10:44:38 +0000 | [diff] [blame] | 3321 | |
| 3322 | |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 3323 | |
| 3324 | { echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5 |
| 3325 | echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; } |
| 3326 | if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then |
| 3327 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3328 | else |
| 3329 | ac_check_lib_save_LIBS=$LIBS |
| 3330 | LIBS="-lpthread $LIBS" |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 3331 | cat >conftest.$ac_ext <<_ACEOF |
| 3332 | /* confdefs.h. */ |
| 3333 | _ACEOF |
| 3334 | cat confdefs.h >>conftest.$ac_ext |
| 3335 | cat >>conftest.$ac_ext <<_ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3336 | /* end confdefs.h. */ |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3337 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3338 | /* Override any GCC internal prototype to avoid an error. |
| 3339 | Use char because int might match the return type of a GCC |
| 3340 | builtin and then its argument prototype would still apply. */ |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3341 | #ifdef __cplusplus |
| 3342 | extern "C" |
| 3343 | #endif |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3344 | char pthread_create (); |
| 3345 | int |
| 3346 | main () |
| 3347 | { |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3348 | return pthread_create (); |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3349 | ; |
| 3350 | return 0; |
| 3351 | } |
| 3352 | _ACEOF |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 3353 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 3354 | if { (ac_try="$ac_link" |
| 3355 | case "(($ac_try" in |
| 3356 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3357 | *) ac_try_echo=$ac_try;; |
| 3358 | esac |
| 3359 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3360 | (eval "$ac_link") 2>conftest.er1 |
| 3361 | ac_status=$? |
| 3362 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3363 | rm -f conftest.er1 |
| 3364 | cat conftest.err >&5 |
| 3365 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3366 | (exit $ac_status); } && { |
| 3367 | test -z "$ac_c_werror_flag" || |
| 3368 | test ! -s conftest.err |
| 3369 | } && test -s conftest$ac_exeext && |
| 3370 | $as_test_x conftest$ac_exeext; then |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3371 | ac_cv_lib_pthread_pthread_create=yes |
| 3372 | else |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 3373 | echo "$as_me: failed program was:" >&5 |
| 3374 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3375 | |
| 3376 | ac_cv_lib_pthread_pthread_create=no |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3377 | fi |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 3378 | |
| 3379 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 3380 | conftest$ac_exeext conftest.$ac_ext |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3381 | LIBS=$ac_check_lib_save_LIBS |
| 3382 | fi |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 3383 | { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5 |
| 3384 | echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6; } |
| 3385 | if test $ac_cv_lib_pthread_pthread_create = yes; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3386 | cat >>confdefs.h <<_ACEOF |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3387 | #define HAVE_LIBPTHREAD 1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3388 | _ACEOF |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3389 | |
| 3390 | LIBS="-lpthread $LIBS" |
| 3391 | |
| 3392 | fi |
| 3393 | |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 3394 | |
| 3395 | { echo "$as_me:$LINENO: checking for puts in -lwsock32" >&5 |
| 3396 | echo $ECHO_N "checking for puts in -lwsock32... $ECHO_C" >&6; } |
| 3397 | if test "${ac_cv_lib_wsock32_puts+set}" = set; then |
| 3398 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3399 | else |
| 3400 | ac_check_lib_save_LIBS=$LIBS |
| 3401 | LIBS="-lwsock32 $LIBS" |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 3402 | cat >conftest.$ac_ext <<_ACEOF |
| 3403 | /* confdefs.h. */ |
| 3404 | _ACEOF |
| 3405 | cat confdefs.h >>conftest.$ac_ext |
| 3406 | cat >>conftest.$ac_ext <<_ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3407 | /* end confdefs.h. */ |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3408 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3409 | /* Override any GCC internal prototype to avoid an error. |
| 3410 | Use char because int might match the return type of a GCC |
| 3411 | builtin and then its argument prototype would still apply. */ |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3412 | #ifdef __cplusplus |
| 3413 | extern "C" |
| 3414 | #endif |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3415 | char puts (); |
| 3416 | int |
| 3417 | main () |
| 3418 | { |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3419 | return puts (); |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3420 | ; |
| 3421 | return 0; |
| 3422 | } |
| 3423 | _ACEOF |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 3424 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 3425 | if { (ac_try="$ac_link" |
| 3426 | case "(($ac_try" in |
| 3427 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3428 | *) ac_try_echo=$ac_try;; |
| 3429 | esac |
| 3430 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3431 | (eval "$ac_link") 2>conftest.er1 |
| 3432 | ac_status=$? |
| 3433 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3434 | rm -f conftest.er1 |
| 3435 | cat conftest.err >&5 |
| 3436 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3437 | (exit $ac_status); } && { |
| 3438 | test -z "$ac_c_werror_flag" || |
| 3439 | test ! -s conftest.err |
| 3440 | } && test -s conftest$ac_exeext && |
| 3441 | $as_test_x conftest$ac_exeext; then |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3442 | ac_cv_lib_wsock32_puts=yes |
| 3443 | else |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 3444 | echo "$as_me: failed program was:" >&5 |
| 3445 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3446 | |
| 3447 | ac_cv_lib_wsock32_puts=no |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3448 | fi |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 3449 | |
| 3450 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 3451 | conftest$ac_exeext conftest.$ac_ext |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3452 | LIBS=$ac_check_lib_save_LIBS |
| 3453 | fi |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 3454 | { echo "$as_me:$LINENO: result: $ac_cv_lib_wsock32_puts" >&5 |
| 3455 | echo "${ECHO_T}$ac_cv_lib_wsock32_puts" >&6; } |
| 3456 | if test $ac_cv_lib_wsock32_puts = yes; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3457 | cat >>confdefs.h <<_ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3458 | #define HAVE_LIBWSOCK32 1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3459 | _ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3460 | |
| 3461 | LIBS="-lwsock32 $LIBS" |
| 3462 | |
| 3463 | fi |
| 3464 | |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 3465 | |
| 3466 | { echo "$as_me:$LINENO: checking for puts in -lws2_32" >&5 |
| 3467 | echo $ECHO_N "checking for puts in -lws2_32... $ECHO_C" >&6; } |
| 3468 | if test "${ac_cv_lib_ws2_32_puts+set}" = set; then |
| 3469 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3470 | else |
| 3471 | ac_check_lib_save_LIBS=$LIBS |
| 3472 | LIBS="-lws2_32 $LIBS" |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 3473 | cat >conftest.$ac_ext <<_ACEOF |
| 3474 | /* confdefs.h. */ |
| 3475 | _ACEOF |
| 3476 | cat confdefs.h >>conftest.$ac_ext |
| 3477 | cat >>conftest.$ac_ext <<_ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3478 | /* end confdefs.h. */ |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3479 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3480 | /* Override any GCC internal prototype to avoid an error. |
| 3481 | Use char because int might match the return type of a GCC |
| 3482 | builtin and then its argument prototype would still apply. */ |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3483 | #ifdef __cplusplus |
| 3484 | extern "C" |
| 3485 | #endif |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3486 | char puts (); |
| 3487 | int |
| 3488 | main () |
| 3489 | { |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3490 | return puts (); |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3491 | ; |
| 3492 | return 0; |
| 3493 | } |
| 3494 | _ACEOF |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 3495 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 3496 | if { (ac_try="$ac_link" |
| 3497 | case "(($ac_try" in |
| 3498 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3499 | *) ac_try_echo=$ac_try;; |
| 3500 | esac |
| 3501 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3502 | (eval "$ac_link") 2>conftest.er1 |
| 3503 | ac_status=$? |
| 3504 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3505 | rm -f conftest.er1 |
| 3506 | cat conftest.err >&5 |
| 3507 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3508 | (exit $ac_status); } && { |
| 3509 | test -z "$ac_c_werror_flag" || |
| 3510 | test ! -s conftest.err |
| 3511 | } && test -s conftest$ac_exeext && |
| 3512 | $as_test_x conftest$ac_exeext; then |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3513 | ac_cv_lib_ws2_32_puts=yes |
| 3514 | else |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 3515 | echo "$as_me: failed program was:" >&5 |
| 3516 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3517 | |
| 3518 | ac_cv_lib_ws2_32_puts=no |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3519 | fi |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 3520 | |
| 3521 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 3522 | conftest$ac_exeext conftest.$ac_ext |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3523 | LIBS=$ac_check_lib_save_LIBS |
| 3524 | fi |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 3525 | { echo "$as_me:$LINENO: result: $ac_cv_lib_ws2_32_puts" >&5 |
| 3526 | echo "${ECHO_T}$ac_cv_lib_ws2_32_puts" >&6; } |
| 3527 | if test $ac_cv_lib_ws2_32_puts = yes; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3528 | cat >>confdefs.h <<_ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3529 | #define HAVE_LIBWS2_32 1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3530 | _ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3531 | |
| 3532 | LIBS="-lws2_32 $LIBS" |
| 3533 | |
| 3534 | fi |
| 3535 | |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 3536 | |
| 3537 | { echo "$as_me:$LINENO: checking for puts in -lole32" >&5 |
| 3538 | echo $ECHO_N "checking for puts in -lole32... $ECHO_C" >&6; } |
| 3539 | if test "${ac_cv_lib_ole32_puts+set}" = set; then |
| 3540 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3541 | else |
| 3542 | ac_check_lib_save_LIBS=$LIBS |
| 3543 | LIBS="-lole32 $LIBS" |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 3544 | cat >conftest.$ac_ext <<_ACEOF |
| 3545 | /* confdefs.h. */ |
| 3546 | _ACEOF |
| 3547 | cat confdefs.h >>conftest.$ac_ext |
| 3548 | cat >>conftest.$ac_ext <<_ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3549 | /* end confdefs.h. */ |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3550 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3551 | /* Override any GCC internal prototype to avoid an error. |
| 3552 | Use char because int might match the return type of a GCC |
| 3553 | builtin and then its argument prototype would still apply. */ |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3554 | #ifdef __cplusplus |
| 3555 | extern "C" |
| 3556 | #endif |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3557 | char puts (); |
| 3558 | int |
| 3559 | main () |
| 3560 | { |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3561 | return puts (); |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3562 | ; |
| 3563 | return 0; |
| 3564 | } |
| 3565 | _ACEOF |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 3566 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 3567 | if { (ac_try="$ac_link" |
| 3568 | case "(($ac_try" in |
| 3569 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3570 | *) ac_try_echo=$ac_try;; |
| 3571 | esac |
| 3572 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3573 | (eval "$ac_link") 2>conftest.er1 |
| 3574 | ac_status=$? |
| 3575 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3576 | rm -f conftest.er1 |
| 3577 | cat conftest.err >&5 |
| 3578 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3579 | (exit $ac_status); } && { |
| 3580 | test -z "$ac_c_werror_flag" || |
| 3581 | test ! -s conftest.err |
| 3582 | } && test -s conftest$ac_exeext && |
| 3583 | $as_test_x conftest$ac_exeext; then |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3584 | ac_cv_lib_ole32_puts=yes |
| 3585 | else |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 3586 | echo "$as_me: failed program was:" >&5 |
| 3587 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3588 | |
| 3589 | ac_cv_lib_ole32_puts=no |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3590 | fi |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 3591 | |
| 3592 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 3593 | conftest$ac_exeext conftest.$ac_ext |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3594 | LIBS=$ac_check_lib_save_LIBS |
| 3595 | fi |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 3596 | { echo "$as_me:$LINENO: result: $ac_cv_lib_ole32_puts" >&5 |
| 3597 | echo "${ECHO_T}$ac_cv_lib_ole32_puts" >&6; } |
| 3598 | if test $ac_cv_lib_ole32_puts = yes; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3599 | cat >>confdefs.h <<_ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3600 | #define HAVE_LIBOLE32 1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3601 | _ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3602 | |
| 3603 | LIBS="-lole32 $LIBS" |
| 3604 | |
| 3605 | fi |
| 3606 | |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 3607 | |
| 3608 | { echo "$as_me:$LINENO: checking for puts in -lwinmm" >&5 |
| 3609 | echo $ECHO_N "checking for puts in -lwinmm... $ECHO_C" >&6; } |
| 3610 | if test "${ac_cv_lib_winmm_puts+set}" = set; then |
| 3611 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3612 | else |
| 3613 | ac_check_lib_save_LIBS=$LIBS |
| 3614 | LIBS="-lwinmm $LIBS" |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 3615 | cat >conftest.$ac_ext <<_ACEOF |
| 3616 | /* confdefs.h. */ |
| 3617 | _ACEOF |
| 3618 | cat confdefs.h >>conftest.$ac_ext |
| 3619 | cat >>conftest.$ac_ext <<_ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3620 | /* end confdefs.h. */ |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3621 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3622 | /* Override any GCC internal prototype to avoid an error. |
| 3623 | Use char because int might match the return type of a GCC |
| 3624 | builtin and then its argument prototype would still apply. */ |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3625 | #ifdef __cplusplus |
| 3626 | extern "C" |
| 3627 | #endif |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3628 | char puts (); |
| 3629 | int |
| 3630 | main () |
| 3631 | { |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3632 | return puts (); |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3633 | ; |
| 3634 | return 0; |
| 3635 | } |
| 3636 | _ACEOF |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 3637 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 3638 | if { (ac_try="$ac_link" |
| 3639 | case "(($ac_try" in |
| 3640 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3641 | *) ac_try_echo=$ac_try;; |
| 3642 | esac |
| 3643 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3644 | (eval "$ac_link") 2>conftest.er1 |
| 3645 | ac_status=$? |
| 3646 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3647 | rm -f conftest.er1 |
| 3648 | cat conftest.err >&5 |
| 3649 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3650 | (exit $ac_status); } && { |
| 3651 | test -z "$ac_c_werror_flag" || |
| 3652 | test ! -s conftest.err |
| 3653 | } && test -s conftest$ac_exeext && |
| 3654 | $as_test_x conftest$ac_exeext; then |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3655 | ac_cv_lib_winmm_puts=yes |
| 3656 | else |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 3657 | echo "$as_me: failed program was:" >&5 |
| 3658 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3659 | |
| 3660 | ac_cv_lib_winmm_puts=no |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3661 | fi |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 3662 | |
| 3663 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 3664 | conftest$ac_exeext conftest.$ac_ext |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3665 | LIBS=$ac_check_lib_save_LIBS |
| 3666 | fi |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 3667 | { echo "$as_me:$LINENO: result: $ac_cv_lib_winmm_puts" >&5 |
| 3668 | echo "${ECHO_T}$ac_cv_lib_winmm_puts" >&6; } |
| 3669 | if test $ac_cv_lib_winmm_puts = yes; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3670 | cat >>confdefs.h <<_ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3671 | #define HAVE_LIBWINMM 1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3672 | _ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3673 | |
| 3674 | LIBS="-lwinmm $LIBS" |
| 3675 | |
| 3676 | fi |
| 3677 | |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 3678 | |
| 3679 | { echo "$as_me:$LINENO: checking for puts in -lsocket" >&5 |
| 3680 | echo $ECHO_N "checking for puts in -lsocket... $ECHO_C" >&6; } |
| 3681 | if test "${ac_cv_lib_socket_puts+set}" = set; then |
| 3682 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3683 | else |
| 3684 | ac_check_lib_save_LIBS=$LIBS |
| 3685 | LIBS="-lsocket $LIBS" |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 3686 | cat >conftest.$ac_ext <<_ACEOF |
| 3687 | /* confdefs.h. */ |
| 3688 | _ACEOF |
| 3689 | cat confdefs.h >>conftest.$ac_ext |
| 3690 | cat >>conftest.$ac_ext <<_ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3691 | /* end confdefs.h. */ |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3692 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3693 | /* Override any GCC internal prototype to avoid an error. |
| 3694 | Use char because int might match the return type of a GCC |
| 3695 | builtin and then its argument prototype would still apply. */ |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3696 | #ifdef __cplusplus |
| 3697 | extern "C" |
| 3698 | #endif |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3699 | char puts (); |
| 3700 | int |
| 3701 | main () |
| 3702 | { |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3703 | return puts (); |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3704 | ; |
| 3705 | return 0; |
| 3706 | } |
| 3707 | _ACEOF |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 3708 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 3709 | if { (ac_try="$ac_link" |
| 3710 | case "(($ac_try" in |
| 3711 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3712 | *) ac_try_echo=$ac_try;; |
| 3713 | esac |
| 3714 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3715 | (eval "$ac_link") 2>conftest.er1 |
| 3716 | ac_status=$? |
| 3717 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3718 | rm -f conftest.er1 |
| 3719 | cat conftest.err >&5 |
| 3720 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3721 | (exit $ac_status); } && { |
| 3722 | test -z "$ac_c_werror_flag" || |
| 3723 | test ! -s conftest.err |
| 3724 | } && test -s conftest$ac_exeext && |
| 3725 | $as_test_x conftest$ac_exeext; then |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3726 | ac_cv_lib_socket_puts=yes |
| 3727 | else |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 3728 | echo "$as_me: failed program was:" >&5 |
| 3729 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3730 | |
| 3731 | ac_cv_lib_socket_puts=no |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3732 | fi |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 3733 | |
| 3734 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 3735 | conftest$ac_exeext conftest.$ac_ext |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3736 | LIBS=$ac_check_lib_save_LIBS |
| 3737 | fi |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 3738 | { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_puts" >&5 |
| 3739 | echo "${ECHO_T}$ac_cv_lib_socket_puts" >&6; } |
| 3740 | if test $ac_cv_lib_socket_puts = yes; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3741 | cat >>confdefs.h <<_ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3742 | #define HAVE_LIBSOCKET 1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3743 | _ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3744 | |
| 3745 | LIBS="-lsocket $LIBS" |
| 3746 | |
| 3747 | fi |
| 3748 | |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 3749 | |
| 3750 | { echo "$as_me:$LINENO: checking for puts in -lrt" >&5 |
| 3751 | echo $ECHO_N "checking for puts in -lrt... $ECHO_C" >&6; } |
| 3752 | if test "${ac_cv_lib_rt_puts+set}" = set; then |
| 3753 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3754 | else |
| 3755 | ac_check_lib_save_LIBS=$LIBS |
| 3756 | LIBS="-lrt $LIBS" |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 3757 | cat >conftest.$ac_ext <<_ACEOF |
| 3758 | /* confdefs.h. */ |
| 3759 | _ACEOF |
| 3760 | cat confdefs.h >>conftest.$ac_ext |
| 3761 | cat >>conftest.$ac_ext <<_ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3762 | /* end confdefs.h. */ |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3763 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3764 | /* Override any GCC internal prototype to avoid an error. |
| 3765 | Use char because int might match the return type of a GCC |
| 3766 | builtin and then its argument prototype would still apply. */ |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3767 | #ifdef __cplusplus |
| 3768 | extern "C" |
| 3769 | #endif |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3770 | char puts (); |
| 3771 | int |
| 3772 | main () |
| 3773 | { |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3774 | return puts (); |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3775 | ; |
| 3776 | return 0; |
| 3777 | } |
| 3778 | _ACEOF |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 3779 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 3780 | if { (ac_try="$ac_link" |
| 3781 | case "(($ac_try" in |
| 3782 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3783 | *) ac_try_echo=$ac_try;; |
| 3784 | esac |
| 3785 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3786 | (eval "$ac_link") 2>conftest.er1 |
| 3787 | ac_status=$? |
| 3788 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3789 | rm -f conftest.er1 |
| 3790 | cat conftest.err >&5 |
| 3791 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3792 | (exit $ac_status); } && { |
| 3793 | test -z "$ac_c_werror_flag" || |
| 3794 | test ! -s conftest.err |
| 3795 | } && test -s conftest$ac_exeext && |
| 3796 | $as_test_x conftest$ac_exeext; then |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3797 | ac_cv_lib_rt_puts=yes |
| 3798 | else |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 3799 | echo "$as_me: failed program was:" >&5 |
| 3800 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3801 | |
| 3802 | ac_cv_lib_rt_puts=no |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3803 | fi |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 3804 | |
| 3805 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 3806 | conftest$ac_exeext conftest.$ac_ext |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3807 | LIBS=$ac_check_lib_save_LIBS |
| 3808 | fi |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 3809 | { echo "$as_me:$LINENO: result: $ac_cv_lib_rt_puts" >&5 |
| 3810 | echo "${ECHO_T}$ac_cv_lib_rt_puts" >&6; } |
| 3811 | if test $ac_cv_lib_rt_puts = yes; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3812 | cat >>confdefs.h <<_ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3813 | #define HAVE_LIBRT 1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3814 | _ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3815 | |
| 3816 | LIBS="-lrt $LIBS" |
| 3817 | |
| 3818 | fi |
| 3819 | |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 3820 | |
| 3821 | { echo "$as_me:$LINENO: checking for puts in -lnsl" >&5 |
| 3822 | echo $ECHO_N "checking for puts in -lnsl... $ECHO_C" >&6; } |
| 3823 | if test "${ac_cv_lib_nsl_puts+set}" = set; then |
| 3824 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3825 | else |
| 3826 | ac_check_lib_save_LIBS=$LIBS |
| 3827 | LIBS="-lnsl $LIBS" |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 3828 | cat >conftest.$ac_ext <<_ACEOF |
| 3829 | /* confdefs.h. */ |
| 3830 | _ACEOF |
| 3831 | cat confdefs.h >>conftest.$ac_ext |
| 3832 | cat >>conftest.$ac_ext <<_ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3833 | /* end confdefs.h. */ |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3834 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3835 | /* Override any GCC internal prototype to avoid an error. |
| 3836 | Use char because int might match the return type of a GCC |
| 3837 | builtin and then its argument prototype would still apply. */ |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3838 | #ifdef __cplusplus |
| 3839 | extern "C" |
| 3840 | #endif |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3841 | char puts (); |
| 3842 | int |
| 3843 | main () |
| 3844 | { |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3845 | return puts (); |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3846 | ; |
| 3847 | return 0; |
| 3848 | } |
| 3849 | _ACEOF |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 3850 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 3851 | if { (ac_try="$ac_link" |
| 3852 | case "(($ac_try" in |
| 3853 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3854 | *) ac_try_echo=$ac_try;; |
| 3855 | esac |
| 3856 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3857 | (eval "$ac_link") 2>conftest.er1 |
| 3858 | ac_status=$? |
| 3859 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3860 | rm -f conftest.er1 |
| 3861 | cat conftest.err >&5 |
| 3862 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3863 | (exit $ac_status); } && { |
| 3864 | test -z "$ac_c_werror_flag" || |
| 3865 | test ! -s conftest.err |
| 3866 | } && test -s conftest$ac_exeext && |
| 3867 | $as_test_x conftest$ac_exeext; then |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3868 | ac_cv_lib_nsl_puts=yes |
| 3869 | else |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 3870 | echo "$as_me: failed program was:" >&5 |
| 3871 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3872 | |
| 3873 | ac_cv_lib_nsl_puts=no |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3874 | fi |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 3875 | |
| 3876 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 3877 | conftest$ac_exeext conftest.$ac_ext |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3878 | LIBS=$ac_check_lib_save_LIBS |
| 3879 | fi |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 3880 | { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_puts" >&5 |
| 3881 | echo "${ECHO_T}$ac_cv_lib_nsl_puts" >&6; } |
| 3882 | if test $ac_cv_lib_nsl_puts = yes; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3883 | cat >>confdefs.h <<_ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3884 | #define HAVE_LIBNSL 1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3885 | _ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3886 | |
| 3887 | LIBS="-lnsl $LIBS" |
| 3888 | |
| 3889 | fi |
| 3890 | |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 3891 | |
| 3892 | { echo "$as_me:$LINENO: checking for uuid_generate in -luuid" >&5 |
| 3893 | echo $ECHO_N "checking for uuid_generate in -luuid... $ECHO_C" >&6; } |
| 3894 | if test "${ac_cv_lib_uuid_uuid_generate+set}" = set; then |
| 3895 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Benny Prijono | 4e48b51 | 2007-05-16 13:41:00 +0000 | [diff] [blame] | 3896 | else |
| 3897 | ac_check_lib_save_LIBS=$LIBS |
| 3898 | LIBS="-luuid $LIBS" |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 3899 | cat >conftest.$ac_ext <<_ACEOF |
| 3900 | /* confdefs.h. */ |
| 3901 | _ACEOF |
| 3902 | cat confdefs.h >>conftest.$ac_ext |
| 3903 | cat >>conftest.$ac_ext <<_ACEOF |
Benny Prijono | 4e48b51 | 2007-05-16 13:41:00 +0000 | [diff] [blame] | 3904 | /* end confdefs.h. */ |
| 3905 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3906 | /* Override any GCC internal prototype to avoid an error. |
| 3907 | Use char because int might match the return type of a GCC |
| 3908 | builtin and then its argument prototype would still apply. */ |
Benny Prijono | 4e48b51 | 2007-05-16 13:41:00 +0000 | [diff] [blame] | 3909 | #ifdef __cplusplus |
| 3910 | extern "C" |
| 3911 | #endif |
Benny Prijono | 4e48b51 | 2007-05-16 13:41:00 +0000 | [diff] [blame] | 3912 | char uuid_generate (); |
| 3913 | int |
| 3914 | main () |
| 3915 | { |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3916 | return uuid_generate (); |
Benny Prijono | 4e48b51 | 2007-05-16 13:41:00 +0000 | [diff] [blame] | 3917 | ; |
| 3918 | return 0; |
| 3919 | } |
| 3920 | _ACEOF |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 3921 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 3922 | if { (ac_try="$ac_link" |
| 3923 | case "(($ac_try" in |
| 3924 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3925 | *) ac_try_echo=$ac_try;; |
| 3926 | esac |
| 3927 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3928 | (eval "$ac_link") 2>conftest.er1 |
| 3929 | ac_status=$? |
| 3930 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3931 | rm -f conftest.er1 |
| 3932 | cat conftest.err >&5 |
| 3933 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3934 | (exit $ac_status); } && { |
| 3935 | test -z "$ac_c_werror_flag" || |
| 3936 | test ! -s conftest.err |
| 3937 | } && test -s conftest$ac_exeext && |
| 3938 | $as_test_x conftest$ac_exeext; then |
Benny Prijono | 4e48b51 | 2007-05-16 13:41:00 +0000 | [diff] [blame] | 3939 | ac_cv_lib_uuid_uuid_generate=yes |
| 3940 | else |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 3941 | echo "$as_me: failed program was:" >&5 |
| 3942 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3943 | |
| 3944 | ac_cv_lib_uuid_uuid_generate=no |
Benny Prijono | 4e48b51 | 2007-05-16 13:41:00 +0000 | [diff] [blame] | 3945 | fi |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 3946 | |
| 3947 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 3948 | conftest$ac_exeext conftest.$ac_ext |
Benny Prijono | 4e48b51 | 2007-05-16 13:41:00 +0000 | [diff] [blame] | 3949 | LIBS=$ac_check_lib_save_LIBS |
| 3950 | fi |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 3951 | { echo "$as_me:$LINENO: result: $ac_cv_lib_uuid_uuid_generate" >&5 |
| 3952 | echo "${ECHO_T}$ac_cv_lib_uuid_uuid_generate" >&6; } |
| 3953 | if test $ac_cv_lib_uuid_uuid_generate = yes; then |
Benny Prijono | 4e48b51 | 2007-05-16 13:41:00 +0000 | [diff] [blame] | 3954 | cat >>confdefs.h <<_ACEOF |
| 3955 | #define HAVE_LIBUUID 1 |
| 3956 | _ACEOF |
| 3957 | |
| 3958 | LIBS="-luuid $LIBS" |
| 3959 | |
| 3960 | fi |
| 3961 | |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 3962 | { echo "$as_me:$LINENO: checking for uuid_generate in -luuid" >&5 |
| 3963 | echo $ECHO_N "checking for uuid_generate in -luuid... $ECHO_C" >&6; } |
| 3964 | if test "${ac_cv_lib_uuid_uuid_generate+set}" = set; then |
| 3965 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Benny Prijono | 4e48b51 | 2007-05-16 13:41:00 +0000 | [diff] [blame] | 3966 | else |
| 3967 | ac_check_lib_save_LIBS=$LIBS |
| 3968 | LIBS="-luuid $LIBS" |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 3969 | cat >conftest.$ac_ext <<_ACEOF |
| 3970 | /* confdefs.h. */ |
| 3971 | _ACEOF |
| 3972 | cat confdefs.h >>conftest.$ac_ext |
| 3973 | cat >>conftest.$ac_ext <<_ACEOF |
Benny Prijono | 4e48b51 | 2007-05-16 13:41:00 +0000 | [diff] [blame] | 3974 | /* end confdefs.h. */ |
| 3975 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3976 | /* Override any GCC internal prototype to avoid an error. |
| 3977 | Use char because int might match the return type of a GCC |
| 3978 | builtin and then its argument prototype would still apply. */ |
Benny Prijono | 4e48b51 | 2007-05-16 13:41:00 +0000 | [diff] [blame] | 3979 | #ifdef __cplusplus |
| 3980 | extern "C" |
| 3981 | #endif |
Benny Prijono | 4e48b51 | 2007-05-16 13:41:00 +0000 | [diff] [blame] | 3982 | char uuid_generate (); |
| 3983 | int |
| 3984 | main () |
| 3985 | { |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3986 | return uuid_generate (); |
Benny Prijono | 4e48b51 | 2007-05-16 13:41:00 +0000 | [diff] [blame] | 3987 | ; |
| 3988 | return 0; |
| 3989 | } |
| 3990 | _ACEOF |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 3991 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 3992 | if { (ac_try="$ac_link" |
| 3993 | case "(($ac_try" in |
| 3994 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3995 | *) ac_try_echo=$ac_try;; |
| 3996 | esac |
| 3997 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3998 | (eval "$ac_link") 2>conftest.er1 |
| 3999 | ac_status=$? |
| 4000 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4001 | rm -f conftest.er1 |
| 4002 | cat conftest.err >&5 |
| 4003 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4004 | (exit $ac_status); } && { |
| 4005 | test -z "$ac_c_werror_flag" || |
| 4006 | test ! -s conftest.err |
| 4007 | } && test -s conftest$ac_exeext && |
| 4008 | $as_test_x conftest$ac_exeext; then |
Benny Prijono | 4e48b51 | 2007-05-16 13:41:00 +0000 | [diff] [blame] | 4009 | ac_cv_lib_uuid_uuid_generate=yes |
| 4010 | else |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 4011 | echo "$as_me: failed program was:" >&5 |
| 4012 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4013 | |
| 4014 | ac_cv_lib_uuid_uuid_generate=no |
Benny Prijono | 4e48b51 | 2007-05-16 13:41:00 +0000 | [diff] [blame] | 4015 | fi |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 4016 | |
| 4017 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 4018 | conftest$ac_exeext conftest.$ac_ext |
Benny Prijono | 4e48b51 | 2007-05-16 13:41:00 +0000 | [diff] [blame] | 4019 | LIBS=$ac_check_lib_save_LIBS |
| 4020 | fi |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 4021 | { echo "$as_me:$LINENO: result: $ac_cv_lib_uuid_uuid_generate" >&5 |
| 4022 | echo "${ECHO_T}$ac_cv_lib_uuid_uuid_generate" >&6; } |
| 4023 | if test $ac_cv_lib_uuid_uuid_generate = yes; then |
Benny Prijono | 4e48b51 | 2007-05-16 13:41:00 +0000 | [diff] [blame] | 4024 | ac_has_uuid_lib=1 |
| 4025 | fi |
| 4026 | |
| 4027 | |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 4028 | { echo "$as_me:$LINENO: result: Setting PJ_M_NAME to $target_cpu" >&5 |
| 4029 | echo "${ECHO_T}Setting PJ_M_NAME to $target_cpu" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4030 | cat >>confdefs.h <<_ACEOF |
| 4031 | #define PJ_M_NAME "$target_cpu" |
| 4032 | _ACEOF |
| 4033 | |
| 4034 | |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 4035 | { echo "$as_me:$LINENO: checking memory alignment" >&5 |
| 4036 | echo $ECHO_N "checking memory alignment... $ECHO_C" >&6; } |
Benny Prijono | 1d97162 | 2006-09-10 22:27:40 +0000 | [diff] [blame] | 4037 | case $target in |
Benny Prijono | b18e950 | 2010-05-19 05:51:38 +0000 | [diff] [blame] | 4038 | sparc64-* | ia64-* | x86_64-* ) |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 4039 | cat >>confdefs.h <<\_ACEOF |
| 4040 | #define PJ_POOL_ALIGNMENT 8 |
| 4041 | _ACEOF |
Benny Prijono | 1d97162 | 2006-09-10 22:27:40 +0000 | [diff] [blame] | 4042 | |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 4043 | { echo "$as_me:$LINENO: result: 8 bytes" >&5 |
| 4044 | echo "${ECHO_T}8 bytes" >&6; } |
Benny Prijono | 1d97162 | 2006-09-10 22:27:40 +0000 | [diff] [blame] | 4045 | ;; |
| 4046 | * ) |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 4047 | cat >>confdefs.h <<\_ACEOF |
| 4048 | #define PJ_POOL_ALIGNMENT 4 |
| 4049 | _ACEOF |
Benny Prijono | 1d97162 | 2006-09-10 22:27:40 +0000 | [diff] [blame] | 4050 | |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 4051 | { echo "$as_me:$LINENO: result: 4 bytes (default)" >&5 |
| 4052 | echo "${ECHO_T}4 bytes (default)" >&6; } |
Benny Prijono | 1d97162 | 2006-09-10 22:27:40 +0000 | [diff] [blame] | 4053 | ;; |
| 4054 | esac |
| 4055 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4056 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4057 | ac_ext=c |
| 4058 | ac_cpp='$CPP $CPPFLAGS' |
| 4059 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 4060 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 4061 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 4062 | { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
| 4063 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; } |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4064 | # On Suns, sometimes $CPP names a directory. |
| 4065 | if test -n "$CPP" && test -d "$CPP"; then |
| 4066 | CPP= |
| 4067 | fi |
| 4068 | if test -z "$CPP"; then |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 4069 | if test "${ac_cv_prog_CPP+set}" = set; then |
| 4070 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4071 | else |
| 4072 | # Double quotes because CPP needs to be expanded |
| 4073 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
| 4074 | do |
| 4075 | ac_preproc_ok=false |
| 4076 | for ac_c_preproc_warn_flag in '' yes |
| 4077 | do |
| 4078 | # Use a header file that comes with gcc, so configuring glibc |
| 4079 | # with a fresh cross-compiler works. |
| 4080 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 4081 | # <limits.h> exists even on freestanding compilers. |
| 4082 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 4083 | # not just through cpp. "Syntax error" is here to catch this case. |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 4084 | cat >conftest.$ac_ext <<_ACEOF |
| 4085 | /* confdefs.h. */ |
| 4086 | _ACEOF |
| 4087 | cat confdefs.h >>conftest.$ac_ext |
| 4088 | cat >>conftest.$ac_ext <<_ACEOF |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4089 | /* end confdefs.h. */ |
| 4090 | #ifdef __STDC__ |
| 4091 | # include <limits.h> |
| 4092 | #else |
| 4093 | # include <assert.h> |
| 4094 | #endif |
| 4095 | Syntax error |
| 4096 | _ACEOF |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 4097 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 4098 | case "(($ac_try" in |
| 4099 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4100 | *) ac_try_echo=$ac_try;; |
| 4101 | esac |
| 4102 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4103 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 4104 | ac_status=$? |
| 4105 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4106 | rm -f conftest.er1 |
| 4107 | cat conftest.err >&5 |
| 4108 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4109 | (exit $ac_status); } >/dev/null && { |
| 4110 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 4111 | test ! -s conftest.err |
| 4112 | }; then |
| 4113 | : |
Benny Prijono | c45d951 | 2010-12-10 11:04:30 +0000 | [diff] [blame] | 4114 | else |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 4115 | echo "$as_me: failed program was:" >&5 |
| 4116 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4117 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4118 | # Broken: fails on valid input. |
| 4119 | continue |
| 4120 | fi |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 4121 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4122 | rm -f conftest.err conftest.$ac_ext |
| 4123 | |
| 4124 | # OK, works on sane cases. Now check whether nonexistent headers |
| 4125 | # can be detected and how. |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 4126 | cat >conftest.$ac_ext <<_ACEOF |
| 4127 | /* confdefs.h. */ |
| 4128 | _ACEOF |
| 4129 | cat confdefs.h >>conftest.$ac_ext |
| 4130 | cat >>conftest.$ac_ext <<_ACEOF |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4131 | /* end confdefs.h. */ |
| 4132 | #include <ac_nonexistent.h> |
| 4133 | _ACEOF |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 4134 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 4135 | case "(($ac_try" in |
| 4136 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4137 | *) ac_try_echo=$ac_try;; |
| 4138 | esac |
| 4139 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4140 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 4141 | ac_status=$? |
| 4142 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4143 | rm -f conftest.er1 |
| 4144 | cat conftest.err >&5 |
| 4145 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4146 | (exit $ac_status); } >/dev/null && { |
| 4147 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 4148 | test ! -s conftest.err |
| 4149 | }; then |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4150 | # Broken: success on invalid input. |
| 4151 | continue |
| 4152 | else |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 4153 | echo "$as_me: failed program was:" >&5 |
| 4154 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4155 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4156 | # Passes both tests. |
| 4157 | ac_preproc_ok=: |
| 4158 | break |
| 4159 | fi |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 4160 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4161 | rm -f conftest.err conftest.$ac_ext |
| 4162 | |
| 4163 | done |
| 4164 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 4165 | rm -f conftest.err conftest.$ac_ext |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 4166 | if $ac_preproc_ok; then |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4167 | break |
| 4168 | fi |
| 4169 | |
| 4170 | done |
| 4171 | ac_cv_prog_CPP=$CPP |
| 4172 | |
| 4173 | fi |
| 4174 | CPP=$ac_cv_prog_CPP |
| 4175 | else |
| 4176 | ac_cv_prog_CPP=$CPP |
| 4177 | fi |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 4178 | { echo "$as_me:$LINENO: result: $CPP" >&5 |
| 4179 | echo "${ECHO_T}$CPP" >&6; } |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4180 | ac_preproc_ok=false |
| 4181 | for ac_c_preproc_warn_flag in '' yes |
| 4182 | do |
| 4183 | # Use a header file that comes with gcc, so configuring glibc |
| 4184 | # with a fresh cross-compiler works. |
| 4185 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 4186 | # <limits.h> exists even on freestanding compilers. |
| 4187 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 4188 | # not just through cpp. "Syntax error" is here to catch this case. |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 4189 | cat >conftest.$ac_ext <<_ACEOF |
| 4190 | /* confdefs.h. */ |
| 4191 | _ACEOF |
| 4192 | cat confdefs.h >>conftest.$ac_ext |
| 4193 | cat >>conftest.$ac_ext <<_ACEOF |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4194 | /* end confdefs.h. */ |
| 4195 | #ifdef __STDC__ |
| 4196 | # include <limits.h> |
| 4197 | #else |
| 4198 | # include <assert.h> |
| 4199 | #endif |
| 4200 | Syntax error |
| 4201 | _ACEOF |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 4202 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 4203 | case "(($ac_try" in |
| 4204 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4205 | *) ac_try_echo=$ac_try;; |
| 4206 | esac |
| 4207 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4208 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 4209 | ac_status=$? |
| 4210 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4211 | rm -f conftest.er1 |
| 4212 | cat conftest.err >&5 |
| 4213 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4214 | (exit $ac_status); } >/dev/null && { |
| 4215 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 4216 | test ! -s conftest.err |
| 4217 | }; then |
| 4218 | : |
Benny Prijono | c45d951 | 2010-12-10 11:04:30 +0000 | [diff] [blame] | 4219 | else |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 4220 | echo "$as_me: failed program was:" >&5 |
| 4221 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4222 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4223 | # Broken: fails on valid input. |
| 4224 | continue |
| 4225 | fi |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 4226 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4227 | rm -f conftest.err conftest.$ac_ext |
| 4228 | |
| 4229 | # OK, works on sane cases. Now check whether nonexistent headers |
| 4230 | # can be detected and how. |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 4231 | cat >conftest.$ac_ext <<_ACEOF |
| 4232 | /* confdefs.h. */ |
| 4233 | _ACEOF |
| 4234 | cat confdefs.h >>conftest.$ac_ext |
| 4235 | cat >>conftest.$ac_ext <<_ACEOF |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4236 | /* end confdefs.h. */ |
| 4237 | #include <ac_nonexistent.h> |
| 4238 | _ACEOF |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 4239 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 4240 | case "(($ac_try" in |
| 4241 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4242 | *) ac_try_echo=$ac_try;; |
| 4243 | esac |
| 4244 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4245 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 4246 | ac_status=$? |
| 4247 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4248 | rm -f conftest.er1 |
| 4249 | cat conftest.err >&5 |
| 4250 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4251 | (exit $ac_status); } >/dev/null && { |
| 4252 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 4253 | test ! -s conftest.err |
| 4254 | }; then |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4255 | # Broken: success on invalid input. |
| 4256 | continue |
| 4257 | else |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 4258 | echo "$as_me: failed program was:" >&5 |
| 4259 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4260 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4261 | # Passes both tests. |
| 4262 | ac_preproc_ok=: |
| 4263 | break |
| 4264 | fi |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 4265 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4266 | rm -f conftest.err conftest.$ac_ext |
| 4267 | |
| 4268 | done |
| 4269 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 4270 | rm -f conftest.err conftest.$ac_ext |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 4271 | if $ac_preproc_ok; then |
| 4272 | : |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4273 | else |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 4274 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check |
| 4275 | See \`config.log' for more details." >&5 |
| 4276 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check |
| 4277 | See \`config.log' for more details." >&2;} |
| 4278 | { (exit 1); exit 1; }; } |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4279 | fi |
| 4280 | |
| 4281 | ac_ext=c |
| 4282 | ac_cpp='$CPP $CPPFLAGS' |
| 4283 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 4284 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 4285 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 4286 | |
| 4287 | |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 4288 | { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 |
| 4289 | echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; } |
| 4290 | if test "${ac_cv_path_GREP+set}" = set; then |
| 4291 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4292 | else |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 4293 | # Extract the first word of "grep ggrep" to use in msg output |
| 4294 | if test -z "$GREP"; then |
| 4295 | set dummy grep ggrep; ac_prog_name=$2 |
| 4296 | if test "${ac_cv_path_GREP+set}" = set; then |
| 4297 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4298 | else |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4299 | ac_path_GREP_found=false |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 4300 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 4301 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4302 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 4303 | do |
| 4304 | IFS=$as_save_IFS |
| 4305 | test -z "$as_dir" && as_dir=. |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 4306 | for ac_prog in grep ggrep; do |
| 4307 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4308 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" |
| 4309 | { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue |
| 4310 | # Check for GNU ac_path_GREP and select it if it is found. |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4311 | # Check for GNU $ac_path_GREP |
| 4312 | case `"$ac_path_GREP" --version 2>&1` in |
| 4313 | *GNU*) |
| 4314 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; |
| 4315 | *) |
| 4316 | ac_count=0 |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 4317 | echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4318 | while : |
| 4319 | do |
| 4320 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 4321 | mv "conftest.tmp" "conftest.in" |
| 4322 | cp "conftest.in" "conftest.nl" |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 4323 | echo 'GREP' >> "conftest.nl" |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4324 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 4325 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 4326 | ac_count=`expr $ac_count + 1` |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4327 | if test $ac_count -gt ${ac_path_GREP_max-0}; then |
| 4328 | # Best one so far, save it but keep looking for a better one |
| 4329 | ac_cv_path_GREP="$ac_path_GREP" |
| 4330 | ac_path_GREP_max=$ac_count |
| 4331 | fi |
| 4332 | # 10*(2^10) chars as input seems more than enough |
| 4333 | test $ac_count -gt 10 && break |
| 4334 | done |
| 4335 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 4336 | esac |
| 4337 | |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 4338 | |
| 4339 | $ac_path_GREP_found && break 3 |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4340 | done |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 4341 | done |
| 4342 | |
| 4343 | done |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4344 | IFS=$as_save_IFS |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 4345 | |
| 4346 | |
| 4347 | fi |
| 4348 | |
| 4349 | GREP="$ac_cv_path_GREP" |
| 4350 | if test -z "$GREP"; then |
| 4351 | { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 |
| 4352 | echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} |
| 4353 | { (exit 1); exit 1; }; } |
| 4354 | fi |
| 4355 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4356 | else |
| 4357 | ac_cv_path_GREP=$GREP |
| 4358 | fi |
| 4359 | |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 4360 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4361 | fi |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 4362 | { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 |
| 4363 | echo "${ECHO_T}$ac_cv_path_GREP" >&6; } |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4364 | GREP="$ac_cv_path_GREP" |
| 4365 | |
| 4366 | |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 4367 | { echo "$as_me:$LINENO: checking for egrep" >&5 |
| 4368 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6; } |
| 4369 | if test "${ac_cv_path_EGREP+set}" = set; then |
| 4370 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4371 | else |
| 4372 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
| 4373 | then ac_cv_path_EGREP="$GREP -E" |
| 4374 | else |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 4375 | # Extract the first word of "egrep" to use in msg output |
| 4376 | if test -z "$EGREP"; then |
| 4377 | set dummy egrep; ac_prog_name=$2 |
| 4378 | if test "${ac_cv_path_EGREP+set}" = set; then |
| 4379 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4380 | else |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4381 | ac_path_EGREP_found=false |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 4382 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 4383 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4384 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 4385 | do |
| 4386 | IFS=$as_save_IFS |
| 4387 | test -z "$as_dir" && as_dir=. |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 4388 | for ac_prog in egrep; do |
| 4389 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4390 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" |
| 4391 | { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue |
| 4392 | # Check for GNU ac_path_EGREP and select it if it is found. |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4393 | # Check for GNU $ac_path_EGREP |
| 4394 | case `"$ac_path_EGREP" --version 2>&1` in |
| 4395 | *GNU*) |
| 4396 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; |
| 4397 | *) |
| 4398 | ac_count=0 |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 4399 | echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4400 | while : |
| 4401 | do |
| 4402 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 4403 | mv "conftest.tmp" "conftest.in" |
| 4404 | cp "conftest.in" "conftest.nl" |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 4405 | echo 'EGREP' >> "conftest.nl" |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4406 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 4407 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 4408 | ac_count=`expr $ac_count + 1` |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4409 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then |
| 4410 | # Best one so far, save it but keep looking for a better one |
| 4411 | ac_cv_path_EGREP="$ac_path_EGREP" |
| 4412 | ac_path_EGREP_max=$ac_count |
| 4413 | fi |
| 4414 | # 10*(2^10) chars as input seems more than enough |
| 4415 | test $ac_count -gt 10 && break |
| 4416 | done |
| 4417 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 4418 | esac |
| 4419 | |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 4420 | |
| 4421 | $ac_path_EGREP_found && break 3 |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4422 | done |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 4423 | done |
| 4424 | |
| 4425 | done |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4426 | IFS=$as_save_IFS |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 4427 | |
| 4428 | |
| 4429 | fi |
| 4430 | |
| 4431 | EGREP="$ac_cv_path_EGREP" |
| 4432 | if test -z "$EGREP"; then |
| 4433 | { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 |
| 4434 | echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} |
| 4435 | { (exit 1); exit 1; }; } |
| 4436 | fi |
| 4437 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4438 | else |
| 4439 | ac_cv_path_EGREP=$EGREP |
| 4440 | fi |
| 4441 | |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 4442 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4443 | fi |
| 4444 | fi |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 4445 | { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 |
| 4446 | echo "${ECHO_T}$ac_cv_path_EGREP" >&6; } |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4447 | EGREP="$ac_cv_path_EGREP" |
| 4448 | |
| 4449 | |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 4450 | { echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
| 4451 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } |
| 4452 | if test "${ac_cv_header_stdc+set}" = set; then |
| 4453 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4454 | else |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 4455 | cat >conftest.$ac_ext <<_ACEOF |
| 4456 | /* confdefs.h. */ |
| 4457 | _ACEOF |
| 4458 | cat confdefs.h >>conftest.$ac_ext |
| 4459 | cat >>conftest.$ac_ext <<_ACEOF |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4460 | /* end confdefs.h. */ |
| 4461 | #include <stdlib.h> |
| 4462 | #include <stdarg.h> |
| 4463 | #include <string.h> |
| 4464 | #include <float.h> |
| 4465 | |
| 4466 | int |
| 4467 | main () |
| 4468 | { |
| 4469 | |
| 4470 | ; |
| 4471 | return 0; |
| 4472 | } |
| 4473 | _ACEOF |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 4474 | rm -f conftest.$ac_objext |
| 4475 | if { (ac_try="$ac_compile" |
| 4476 | case "(($ac_try" in |
| 4477 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4478 | *) ac_try_echo=$ac_try;; |
| 4479 | esac |
| 4480 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4481 | (eval "$ac_compile") 2>conftest.er1 |
| 4482 | ac_status=$? |
| 4483 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4484 | rm -f conftest.er1 |
| 4485 | cat conftest.err >&5 |
| 4486 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4487 | (exit $ac_status); } && { |
| 4488 | test -z "$ac_c_werror_flag" || |
| 4489 | test ! -s conftest.err |
| 4490 | } && test -s conftest.$ac_objext; then |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4491 | ac_cv_header_stdc=yes |
| 4492 | else |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 4493 | echo "$as_me: failed program was:" >&5 |
| 4494 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4495 | |
| 4496 | ac_cv_header_stdc=no |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4497 | fi |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 4498 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4499 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4500 | |
| 4501 | if test $ac_cv_header_stdc = yes; then |
| 4502 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 4503 | cat >conftest.$ac_ext <<_ACEOF |
| 4504 | /* confdefs.h. */ |
| 4505 | _ACEOF |
| 4506 | cat confdefs.h >>conftest.$ac_ext |
| 4507 | cat >>conftest.$ac_ext <<_ACEOF |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4508 | /* end confdefs.h. */ |
| 4509 | #include <string.h> |
| 4510 | |
| 4511 | _ACEOF |
| 4512 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 4513 | $EGREP "memchr" >/dev/null 2>&1; then |
| 4514 | : |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4515 | else |
| 4516 | ac_cv_header_stdc=no |
| 4517 | fi |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 4518 | rm -f -r conftest* |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4519 | |
| 4520 | fi |
| 4521 | |
| 4522 | if test $ac_cv_header_stdc = yes; then |
| 4523 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 4524 | cat >conftest.$ac_ext <<_ACEOF |
| 4525 | /* confdefs.h. */ |
| 4526 | _ACEOF |
| 4527 | cat confdefs.h >>conftest.$ac_ext |
| 4528 | cat >>conftest.$ac_ext <<_ACEOF |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4529 | /* end confdefs.h. */ |
| 4530 | #include <stdlib.h> |
| 4531 | |
| 4532 | _ACEOF |
| 4533 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 4534 | $EGREP "free" >/dev/null 2>&1; then |
| 4535 | : |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4536 | else |
| 4537 | ac_cv_header_stdc=no |
| 4538 | fi |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 4539 | rm -f -r conftest* |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4540 | |
| 4541 | fi |
| 4542 | |
| 4543 | if test $ac_cv_header_stdc = yes; then |
| 4544 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 4545 | if test "$cross_compiling" = yes; then |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4546 | : |
| 4547 | else |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 4548 | cat >conftest.$ac_ext <<_ACEOF |
| 4549 | /* confdefs.h. */ |
| 4550 | _ACEOF |
| 4551 | cat confdefs.h >>conftest.$ac_ext |
| 4552 | cat >>conftest.$ac_ext <<_ACEOF |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4553 | /* end confdefs.h. */ |
| 4554 | #include <ctype.h> |
| 4555 | #include <stdlib.h> |
| 4556 | #if ((' ' & 0x0FF) == 0x020) |
| 4557 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 4558 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 4559 | #else |
| 4560 | # define ISLOWER(c) \ |
| 4561 | (('a' <= (c) && (c) <= 'i') \ |
| 4562 | || ('j' <= (c) && (c) <= 'r') \ |
| 4563 | || ('s' <= (c) && (c) <= 'z')) |
| 4564 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 4565 | #endif |
| 4566 | |
| 4567 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 4568 | int |
| 4569 | main () |
| 4570 | { |
| 4571 | int i; |
| 4572 | for (i = 0; i < 256; i++) |
| 4573 | if (XOR (islower (i), ISLOWER (i)) |
| 4574 | || toupper (i) != TOUPPER (i)) |
| 4575 | return 2; |
| 4576 | return 0; |
| 4577 | } |
| 4578 | _ACEOF |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 4579 | rm -f conftest$ac_exeext |
| 4580 | if { (ac_try="$ac_link" |
| 4581 | case "(($ac_try" in |
| 4582 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4583 | *) ac_try_echo=$ac_try;; |
| 4584 | esac |
| 4585 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4586 | (eval "$ac_link") 2>&5 |
| 4587 | ac_status=$? |
| 4588 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4589 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 4590 | { (case "(($ac_try" in |
| 4591 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4592 | *) ac_try_echo=$ac_try;; |
| 4593 | esac |
| 4594 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4595 | (eval "$ac_try") 2>&5 |
| 4596 | ac_status=$? |
| 4597 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4598 | (exit $ac_status); }; }; then |
| 4599 | : |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4600 | else |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 4601 | echo "$as_me: program exited with status $ac_status" >&5 |
| 4602 | echo "$as_me: failed program was:" >&5 |
| 4603 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4604 | |
| 4605 | ( exit $ac_status ) |
| 4606 | ac_cv_header_stdc=no |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4607 | fi |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 4608 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4609 | fi |
| 4610 | |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 4611 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4612 | fi |
| 4613 | fi |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 4614 | { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
| 4615 | echo "${ECHO_T}$ac_cv_header_stdc" >&6; } |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4616 | if test $ac_cv_header_stdc = yes; then |
| 4617 | |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 4618 | cat >>confdefs.h <<\_ACEOF |
| 4619 | #define STDC_HEADERS 1 |
| 4620 | _ACEOF |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4621 | |
| 4622 | fi |
| 4623 | |
| 4624 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 4625 | |
| 4626 | |
| 4627 | |
| 4628 | |
| 4629 | |
| 4630 | |
| 4631 | |
| 4632 | |
| 4633 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4634 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
| 4635 | inttypes.h stdint.h unistd.h |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 4636 | do |
| 4637 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 4638 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 4639 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 4640 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 4641 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4642 | else |
| 4643 | cat >conftest.$ac_ext <<_ACEOF |
| 4644 | /* confdefs.h. */ |
| 4645 | _ACEOF |
| 4646 | cat confdefs.h >>conftest.$ac_ext |
| 4647 | cat >>conftest.$ac_ext <<_ACEOF |
| 4648 | /* end confdefs.h. */ |
| 4649 | $ac_includes_default |
| 4650 | |
| 4651 | #include <$ac_header> |
| 4652 | _ACEOF |
| 4653 | rm -f conftest.$ac_objext |
| 4654 | if { (ac_try="$ac_compile" |
| 4655 | case "(($ac_try" in |
| 4656 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4657 | *) ac_try_echo=$ac_try;; |
| 4658 | esac |
| 4659 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4660 | (eval "$ac_compile") 2>conftest.er1 |
| 4661 | ac_status=$? |
| 4662 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4663 | rm -f conftest.er1 |
| 4664 | cat conftest.err >&5 |
| 4665 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4666 | (exit $ac_status); } && { |
| 4667 | test -z "$ac_c_werror_flag" || |
| 4668 | test ! -s conftest.err |
| 4669 | } && test -s conftest.$ac_objext; then |
| 4670 | eval "$as_ac_Header=yes" |
| 4671 | else |
| 4672 | echo "$as_me: failed program was:" >&5 |
| 4673 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4674 | |
| 4675 | eval "$as_ac_Header=no" |
| 4676 | fi |
| 4677 | |
| 4678 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4679 | fi |
| 4680 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 4681 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 4682 | echo "${ECHO_T}$ac_res" >&6; } |
| 4683 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4684 | cat >>confdefs.h <<_ACEOF |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 4685 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4686 | _ACEOF |
| 4687 | |
| 4688 | fi |
| 4689 | |
| 4690 | done |
| 4691 | |
| 4692 | |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 4693 | { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 |
| 4694 | echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; } |
| 4695 | if test "${ac_cv_c_bigendian+set}" = set; then |
| 4696 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 4697 | else |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 4698 | # See if sys/param.h defines the BYTE_ORDER macro. |
| 4699 | cat >conftest.$ac_ext <<_ACEOF |
| 4700 | /* confdefs.h. */ |
Benny Prijono | d523370 | 2010-01-13 13:09:45 +0000 | [diff] [blame] | 4701 | _ACEOF |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 4702 | cat confdefs.h >>conftest.$ac_ext |
| 4703 | cat >>conftest.$ac_ext <<_ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4704 | /* end confdefs.h. */ |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 4705 | #include <sys/types.h> |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 4706 | #include <sys/param.h> |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 4707 | |
| 4708 | int |
| 4709 | main () |
| 4710 | { |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 4711 | #if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \ |
| 4712 | && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN) |
| 4713 | bogus endian macros |
| 4714 | #endif |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 4715 | |
| 4716 | ; |
| 4717 | return 0; |
| 4718 | } |
| 4719 | _ACEOF |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 4720 | rm -f conftest.$ac_objext |
| 4721 | if { (ac_try="$ac_compile" |
| 4722 | case "(($ac_try" in |
| 4723 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4724 | *) ac_try_echo=$ac_try;; |
| 4725 | esac |
| 4726 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4727 | (eval "$ac_compile") 2>conftest.er1 |
| 4728 | ac_status=$? |
| 4729 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4730 | rm -f conftest.er1 |
| 4731 | cat conftest.err >&5 |
| 4732 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4733 | (exit $ac_status); } && { |
| 4734 | test -z "$ac_c_werror_flag" || |
| 4735 | test ! -s conftest.err |
| 4736 | } && test -s conftest.$ac_objext; then |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 4737 | # It does; now see whether it defined to BIG_ENDIAN or not. |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 4738 | cat >conftest.$ac_ext <<_ACEOF |
| 4739 | /* confdefs.h. */ |
| 4740 | _ACEOF |
| 4741 | cat confdefs.h >>conftest.$ac_ext |
| 4742 | cat >>conftest.$ac_ext <<_ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4743 | /* end confdefs.h. */ |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 4744 | #include <sys/types.h> |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 4745 | #include <sys/param.h> |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 4746 | |
| 4747 | int |
| 4748 | main () |
| 4749 | { |
| 4750 | #if BYTE_ORDER != BIG_ENDIAN |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 4751 | not big endian |
| 4752 | #endif |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 4753 | |
| 4754 | ; |
| 4755 | return 0; |
| 4756 | } |
| 4757 | _ACEOF |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 4758 | rm -f conftest.$ac_objext |
| 4759 | if { (ac_try="$ac_compile" |
| 4760 | case "(($ac_try" in |
| 4761 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4762 | *) ac_try_echo=$ac_try;; |
| 4763 | esac |
| 4764 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4765 | (eval "$ac_compile") 2>conftest.er1 |
| 4766 | ac_status=$? |
| 4767 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4768 | rm -f conftest.er1 |
| 4769 | cat conftest.err >&5 |
| 4770 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4771 | (exit $ac_status); } && { |
| 4772 | test -z "$ac_c_werror_flag" || |
| 4773 | test ! -s conftest.err |
| 4774 | } && test -s conftest.$ac_objext; then |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 4775 | ac_cv_c_bigendian=yes |
| 4776 | else |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 4777 | echo "$as_me: failed program was:" >&5 |
| 4778 | sed 's/^/| /' conftest.$ac_ext >&5 |
Benny Prijono | c45d951 | 2010-12-10 11:04:30 +0000 | [diff] [blame] | 4779 | |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 4780 | ac_cv_c_bigendian=no |
| 4781 | fi |
| 4782 | |
| 4783 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4784 | else |
| 4785 | echo "$as_me: failed program was:" >&5 |
| 4786 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4787 | |
| 4788 | # It does not; compile a test program. |
| 4789 | if test "$cross_compiling" = yes; then |
| 4790 | # try to guess the endianness by grepping values into an object file |
| 4791 | ac_cv_c_bigendian=unknown |
| 4792 | cat >conftest.$ac_ext <<_ACEOF |
| 4793 | /* confdefs.h. */ |
| 4794 | _ACEOF |
| 4795 | cat confdefs.h >>conftest.$ac_ext |
| 4796 | cat >>conftest.$ac_ext <<_ACEOF |
| 4797 | /* end confdefs.h. */ |
| 4798 | short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; |
| 4799 | short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; |
| 4800 | void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; } |
| 4801 | short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; |
| 4802 | short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; |
| 4803 | void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4804 | int |
| 4805 | main () |
| 4806 | { |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 4807 | _ascii (); _ebcdic (); |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4808 | ; |
| 4809 | return 0; |
| 4810 | } |
| 4811 | _ACEOF |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 4812 | rm -f conftest.$ac_objext |
| 4813 | if { (ac_try="$ac_compile" |
| 4814 | case "(($ac_try" in |
| 4815 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4816 | *) ac_try_echo=$ac_try;; |
| 4817 | esac |
| 4818 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4819 | (eval "$ac_compile") 2>conftest.er1 |
| 4820 | ac_status=$? |
| 4821 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4822 | rm -f conftest.er1 |
| 4823 | cat conftest.err >&5 |
| 4824 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4825 | (exit $ac_status); } && { |
| 4826 | test -z "$ac_c_werror_flag" || |
| 4827 | test ! -s conftest.err |
| 4828 | } && test -s conftest.$ac_objext; then |
| 4829 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4830 | ac_cv_c_bigendian=yes |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 4831 | fi |
| 4832 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then |
| 4833 | if test "$ac_cv_c_bigendian" = unknown; then |
| 4834 | ac_cv_c_bigendian=no |
| 4835 | else |
| 4836 | # finding both strings is unlikely to happen, but who knows? |
| 4837 | ac_cv_c_bigendian=unknown |
| 4838 | fi |
| 4839 | fi |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4840 | else |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 4841 | echo "$as_me: failed program was:" >&5 |
| 4842 | sed 's/^/| /' conftest.$ac_ext >&5 |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 4843 | |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 4844 | |
Benny Prijono | c45d951 | 2010-12-10 11:04:30 +0000 | [diff] [blame] | 4845 | fi |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 4846 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4847 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 4848 | else |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 4849 | cat >conftest.$ac_ext <<_ACEOF |
| 4850 | /* confdefs.h. */ |
| 4851 | _ACEOF |
| 4852 | cat confdefs.h >>conftest.$ac_ext |
| 4853 | cat >>conftest.$ac_ext <<_ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4854 | /* end confdefs.h. */ |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4855 | $ac_includes_default |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 4856 | int |
| 4857 | main () |
| 4858 | { |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4859 | |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 4860 | /* Are we little or big endian? From Harbison&Steele. */ |
| 4861 | union |
| 4862 | { |
| 4863 | long int l; |
| 4864 | char c[sizeof (long int)]; |
| 4865 | } u; |
| 4866 | u.l = 1; |
| 4867 | return u.c[sizeof (long int) - 1] == 1; |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4868 | |
| 4869 | ; |
| 4870 | return 0; |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 4871 | } |
| 4872 | _ACEOF |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 4873 | rm -f conftest$ac_exeext |
| 4874 | if { (ac_try="$ac_link" |
| 4875 | case "(($ac_try" in |
| 4876 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4877 | *) ac_try_echo=$ac_try;; |
| 4878 | esac |
| 4879 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4880 | (eval "$ac_link") 2>&5 |
| 4881 | ac_status=$? |
| 4882 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4883 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 4884 | { (case "(($ac_try" in |
| 4885 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4886 | *) ac_try_echo=$ac_try;; |
| 4887 | esac |
| 4888 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4889 | (eval "$ac_try") 2>&5 |
| 4890 | ac_status=$? |
| 4891 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4892 | (exit $ac_status); }; }; then |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 4893 | ac_cv_c_bigendian=no |
| 4894 | else |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 4895 | echo "$as_me: program exited with status $ac_status" >&5 |
| 4896 | echo "$as_me: failed program was:" >&5 |
| 4897 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4898 | |
| 4899 | ( exit $ac_status ) |
| 4900 | ac_cv_c_bigendian=yes |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 4901 | fi |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 4902 | 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] | 4903 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4904 | |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 4905 | |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 4906 | fi |
Benny Prijono | d523370 | 2010-01-13 13:09:45 +0000 | [diff] [blame] | 4907 | |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 4908 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4909 | fi |
| 4910 | { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 |
| 4911 | echo "${ECHO_T}$ac_cv_c_bigendian" >&6; } |
| 4912 | case $ac_cv_c_bigendian in |
| 4913 | yes) |
Benny Prijono | d523370 | 2010-01-13 13:09:45 +0000 | [diff] [blame] | 4914 | |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 4915 | cat >>confdefs.h <<\_ACEOF |
| 4916 | #define WORDS_BIGENDIAN 1 |
| 4917 | _ACEOF |
| 4918 | ;; |
| 4919 | no) |
| 4920 | ;; |
| 4921 | *) |
| 4922 | { { echo "$as_me:$LINENO: error: unknown endianness |
| 4923 | presetting ac_cv_c_bigendian=no (or yes) will help" >&5 |
| 4924 | echo "$as_me: error: unknown endianness |
| 4925 | presetting ac_cv_c_bigendian=no (or yes) will help" >&2;} |
| 4926 | { (exit 1); exit 1; }; } ;; |
| 4927 | esac |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 4928 | |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 4929 | |
| 4930 | case $target in |
| 4931 | *mingw* | *cygw* | *win32* | *w32* ) |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 4932 | cat >>confdefs.h <<\_ACEOF |
| 4933 | #define PJ_WIN32 1 |
| 4934 | _ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 4935 | |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 4936 | cat >>confdefs.h <<\_ACEOF |
| 4937 | #define PJ_WIN32_WINNT 0x0400 |
| 4938 | _ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 4939 | |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 4940 | cat >>confdefs.h <<\_ACEOF |
| 4941 | #define WIN32_LEAN_AND_MEAN 1 |
| 4942 | _ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 4943 | |
| 4944 | ;; |
| 4945 | *darwin*) |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 4946 | cat >>confdefs.h <<\_ACEOF |
| 4947 | #define PJ_DARWINOS 1 |
| 4948 | _ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 4949 | |
| 4950 | ;; |
| 4951 | *linux*) |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 4952 | cat >>confdefs.h <<\_ACEOF |
| 4953 | #define PJ_LINUX 1 |
| 4954 | _ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 4955 | |
| 4956 | ;; |
| 4957 | *rtems*) |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 4958 | cat >>confdefs.h <<\_ACEOF |
| 4959 | #define PJ_RTEMS 1 |
| 4960 | _ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 4961 | |
| 4962 | ;; |
| 4963 | *sunos* | *solaris* ) |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 4964 | cat >>confdefs.h <<\_ACEOF |
| 4965 | #define PJ_SUNOS 1 |
| 4966 | _ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 4967 | |
| 4968 | ;; |
| 4969 | *) |
| 4970 | ;; |
| 4971 | esac |
| 4972 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4973 | |
| 4974 | |
| 4975 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4976 | # Check whether --enable-floating-point was given. |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 4977 | if test "${enable_floating_point+set}" = set; then |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4978 | enableval=$enable_floating_point; if test "$enable_floating_point" = "no"; then |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 4979 | cat >>confdefs.h <<\_ACEOF |
| 4980 | #define PJ_HAS_FLOATING_POINT 0 |
| 4981 | _ACEOF |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 4982 | |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 4983 | { echo "$as_me:$LINENO: result: Checking if floating point is disabled... yes" >&5 |
| 4984 | echo "${ECHO_T}Checking if floating point is disabled... yes" >&6; } |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 4985 | fi |
| 4986 | else |
| 4987 | |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 4988 | cat >>confdefs.h <<\_ACEOF |
| 4989 | #define PJ_HAS_FLOATING_POINT 1 |
| 4990 | _ACEOF |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 4991 | |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 4992 | { echo "$as_me:$LINENO: result: Checking if floating point is disabled... no" >&5 |
| 4993 | echo "${ECHO_T}Checking if floating point is disabled... no" >&6; } |
| 4994 | |
| 4995 | { echo "$as_me:$LINENO: checking for fmod in -lm" >&5 |
| 4996 | echo $ECHO_N "checking for fmod in -lm... $ECHO_C" >&6; } |
| 4997 | if test "${ac_cv_lib_m_fmod+set}" = set; then |
| 4998 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 4999 | else |
| 5000 | ac_check_lib_save_LIBS=$LIBS |
| 5001 | LIBS="-lm $LIBS" |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 5002 | cat >conftest.$ac_ext <<_ACEOF |
| 5003 | /* confdefs.h. */ |
| 5004 | _ACEOF |
| 5005 | cat confdefs.h >>conftest.$ac_ext |
| 5006 | cat >>conftest.$ac_ext <<_ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5007 | /* end confdefs.h. */ |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 5008 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5009 | /* Override any GCC internal prototype to avoid an error. |
| 5010 | Use char because int might match the return type of a GCC |
| 5011 | builtin and then its argument prototype would still apply. */ |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 5012 | #ifdef __cplusplus |
| 5013 | extern "C" |
| 5014 | #endif |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 5015 | char fmod (); |
| 5016 | int |
| 5017 | main () |
| 5018 | { |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5019 | return fmod (); |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 5020 | ; |
| 5021 | return 0; |
| 5022 | } |
| 5023 | _ACEOF |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 5024 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 5025 | if { (ac_try="$ac_link" |
| 5026 | case "(($ac_try" in |
| 5027 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5028 | *) ac_try_echo=$ac_try;; |
| 5029 | esac |
| 5030 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5031 | (eval "$ac_link") 2>conftest.er1 |
| 5032 | ac_status=$? |
| 5033 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5034 | rm -f conftest.er1 |
| 5035 | cat conftest.err >&5 |
| 5036 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5037 | (exit $ac_status); } && { |
| 5038 | test -z "$ac_c_werror_flag" || |
| 5039 | test ! -s conftest.err |
| 5040 | } && test -s conftest$ac_exeext && |
| 5041 | $as_test_x conftest$ac_exeext; then |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 5042 | ac_cv_lib_m_fmod=yes |
| 5043 | else |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 5044 | echo "$as_me: failed program was:" >&5 |
| 5045 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5046 | |
| 5047 | ac_cv_lib_m_fmod=no |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 5048 | fi |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 5049 | |
| 5050 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 5051 | conftest$ac_exeext conftest.$ac_ext |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 5052 | LIBS=$ac_check_lib_save_LIBS |
| 5053 | fi |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 5054 | { echo "$as_me:$LINENO: result: $ac_cv_lib_m_fmod" >&5 |
| 5055 | echo "${ECHO_T}$ac_cv_lib_m_fmod" >&6; } |
| 5056 | if test $ac_cv_lib_m_fmod = yes; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5057 | cat >>confdefs.h <<_ACEOF |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 5058 | #define HAVE_LIBM 1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5059 | _ACEOF |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 5060 | |
| 5061 | LIBS="-lm $LIBS" |
| 5062 | |
| 5063 | fi |
| 5064 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5065 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 5066 | fi |
| 5067 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5068 | |
| 5069 | |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 5070 | if test "${ac_cv_header_arpa_inet_h+set}" = set; then |
| 5071 | { echo "$as_me:$LINENO: checking for arpa/inet.h" >&5 |
| 5072 | echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6; } |
| 5073 | if test "${ac_cv_header_arpa_inet_h+set}" = set; then |
| 5074 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5075 | fi |
| 5076 | { echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5 |
| 5077 | echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6; } |
| 5078 | else |
| 5079 | # Is the header compilable? |
| 5080 | { echo "$as_me:$LINENO: checking arpa/inet.h usability" >&5 |
| 5081 | echo $ECHO_N "checking arpa/inet.h usability... $ECHO_C" >&6; } |
| 5082 | cat >conftest.$ac_ext <<_ACEOF |
| 5083 | /* confdefs.h. */ |
| 5084 | _ACEOF |
| 5085 | cat confdefs.h >>conftest.$ac_ext |
| 5086 | cat >>conftest.$ac_ext <<_ACEOF |
| 5087 | /* end confdefs.h. */ |
| 5088 | $ac_includes_default |
| 5089 | #include <arpa/inet.h> |
| 5090 | _ACEOF |
| 5091 | rm -f conftest.$ac_objext |
| 5092 | if { (ac_try="$ac_compile" |
| 5093 | case "(($ac_try" in |
| 5094 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5095 | *) ac_try_echo=$ac_try;; |
| 5096 | esac |
| 5097 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5098 | (eval "$ac_compile") 2>conftest.er1 |
| 5099 | ac_status=$? |
| 5100 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5101 | rm -f conftest.er1 |
| 5102 | cat conftest.err >&5 |
| 5103 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5104 | (exit $ac_status); } && { |
| 5105 | test -z "$ac_c_werror_flag" || |
| 5106 | test ! -s conftest.err |
| 5107 | } && test -s conftest.$ac_objext; then |
| 5108 | ac_header_compiler=yes |
| 5109 | else |
| 5110 | echo "$as_me: failed program was:" >&5 |
| 5111 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5112 | |
| 5113 | ac_header_compiler=no |
| 5114 | fi |
| 5115 | |
| 5116 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5117 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 5118 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 5119 | |
| 5120 | # Is the header present? |
| 5121 | { echo "$as_me:$LINENO: checking arpa/inet.h presence" >&5 |
| 5122 | echo $ECHO_N "checking arpa/inet.h presence... $ECHO_C" >&6; } |
| 5123 | cat >conftest.$ac_ext <<_ACEOF |
| 5124 | /* confdefs.h. */ |
| 5125 | _ACEOF |
| 5126 | cat confdefs.h >>conftest.$ac_ext |
| 5127 | cat >>conftest.$ac_ext <<_ACEOF |
| 5128 | /* end confdefs.h. */ |
| 5129 | #include <arpa/inet.h> |
| 5130 | _ACEOF |
| 5131 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 5132 | case "(($ac_try" in |
| 5133 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5134 | *) ac_try_echo=$ac_try;; |
| 5135 | esac |
| 5136 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5137 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 5138 | ac_status=$? |
| 5139 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5140 | rm -f conftest.er1 |
| 5141 | cat conftest.err >&5 |
| 5142 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5143 | (exit $ac_status); } >/dev/null && { |
| 5144 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 5145 | test ! -s conftest.err |
| 5146 | }; then |
| 5147 | ac_header_preproc=yes |
| 5148 | else |
| 5149 | echo "$as_me: failed program was:" >&5 |
| 5150 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5151 | |
| 5152 | ac_header_preproc=no |
| 5153 | fi |
| 5154 | |
| 5155 | rm -f conftest.err conftest.$ac_ext |
| 5156 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 5157 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 5158 | |
| 5159 | # So? What about this header? |
| 5160 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 5161 | yes:no: ) |
| 5162 | { echo "$as_me:$LINENO: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 5163 | echo "$as_me: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 5164 | { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the compiler's result" >&5 |
| 5165 | echo "$as_me: WARNING: arpa/inet.h: proceeding with the compiler's result" >&2;} |
| 5166 | ac_header_preproc=yes |
| 5167 | ;; |
| 5168 | no:yes:* ) |
| 5169 | { echo "$as_me:$LINENO: WARNING: arpa/inet.h: present but cannot be compiled" >&5 |
| 5170 | echo "$as_me: WARNING: arpa/inet.h: present but cannot be compiled" >&2;} |
| 5171 | { echo "$as_me:$LINENO: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&5 |
| 5172 | echo "$as_me: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&2;} |
| 5173 | { echo "$as_me:$LINENO: WARNING: arpa/inet.h: see the Autoconf documentation" >&5 |
| 5174 | echo "$as_me: WARNING: arpa/inet.h: see the Autoconf documentation" >&2;} |
| 5175 | { echo "$as_me:$LINENO: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 5176 | echo "$as_me: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 5177 | { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&5 |
| 5178 | echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&2;} |
| 5179 | { echo "$as_me:$LINENO: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&5 |
| 5180 | echo "$as_me: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&2;} |
| 5181 | |
| 5182 | ;; |
| 5183 | esac |
| 5184 | { echo "$as_me:$LINENO: checking for arpa/inet.h" >&5 |
| 5185 | echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6; } |
| 5186 | if test "${ac_cv_header_arpa_inet_h+set}" = set; then |
| 5187 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5188 | else |
| 5189 | ac_cv_header_arpa_inet_h=$ac_header_preproc |
| 5190 | fi |
| 5191 | { echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5 |
| 5192 | echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6; } |
| 5193 | |
| 5194 | fi |
| 5195 | if test $ac_cv_header_arpa_inet_h = yes; then |
| 5196 | cat >>confdefs.h <<\_ACEOF |
| 5197 | #define PJ_HAS_ARPA_INET_H 1 |
| 5198 | _ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5199 | |
| 5200 | fi |
| 5201 | |
| 5202 | |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 5203 | if test "${ac_cv_header_assert_h+set}" = set; then |
| 5204 | { echo "$as_me:$LINENO: checking for assert.h" >&5 |
| 5205 | echo $ECHO_N "checking for assert.h... $ECHO_C" >&6; } |
| 5206 | if test "${ac_cv_header_assert_h+set}" = set; then |
| 5207 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5208 | fi |
| 5209 | { echo "$as_me:$LINENO: result: $ac_cv_header_assert_h" >&5 |
| 5210 | echo "${ECHO_T}$ac_cv_header_assert_h" >&6; } |
| 5211 | else |
| 5212 | # Is the header compilable? |
| 5213 | { echo "$as_me:$LINENO: checking assert.h usability" >&5 |
| 5214 | echo $ECHO_N "checking assert.h usability... $ECHO_C" >&6; } |
| 5215 | cat >conftest.$ac_ext <<_ACEOF |
| 5216 | /* confdefs.h. */ |
| 5217 | _ACEOF |
| 5218 | cat confdefs.h >>conftest.$ac_ext |
| 5219 | cat >>conftest.$ac_ext <<_ACEOF |
| 5220 | /* end confdefs.h. */ |
| 5221 | $ac_includes_default |
| 5222 | #include <assert.h> |
| 5223 | _ACEOF |
| 5224 | rm -f conftest.$ac_objext |
| 5225 | if { (ac_try="$ac_compile" |
| 5226 | case "(($ac_try" in |
| 5227 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5228 | *) ac_try_echo=$ac_try;; |
| 5229 | esac |
| 5230 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5231 | (eval "$ac_compile") 2>conftest.er1 |
| 5232 | ac_status=$? |
| 5233 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5234 | rm -f conftest.er1 |
| 5235 | cat conftest.err >&5 |
| 5236 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5237 | (exit $ac_status); } && { |
| 5238 | test -z "$ac_c_werror_flag" || |
| 5239 | test ! -s conftest.err |
| 5240 | } && test -s conftest.$ac_objext; then |
| 5241 | ac_header_compiler=yes |
| 5242 | else |
| 5243 | echo "$as_me: failed program was:" >&5 |
| 5244 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5245 | |
| 5246 | ac_header_compiler=no |
| 5247 | fi |
| 5248 | |
| 5249 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5250 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 5251 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 5252 | |
| 5253 | # Is the header present? |
| 5254 | { echo "$as_me:$LINENO: checking assert.h presence" >&5 |
| 5255 | echo $ECHO_N "checking assert.h presence... $ECHO_C" >&6; } |
| 5256 | cat >conftest.$ac_ext <<_ACEOF |
| 5257 | /* confdefs.h. */ |
| 5258 | _ACEOF |
| 5259 | cat confdefs.h >>conftest.$ac_ext |
| 5260 | cat >>conftest.$ac_ext <<_ACEOF |
| 5261 | /* end confdefs.h. */ |
| 5262 | #include <assert.h> |
| 5263 | _ACEOF |
| 5264 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 5265 | case "(($ac_try" in |
| 5266 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5267 | *) ac_try_echo=$ac_try;; |
| 5268 | esac |
| 5269 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5270 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 5271 | ac_status=$? |
| 5272 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5273 | rm -f conftest.er1 |
| 5274 | cat conftest.err >&5 |
| 5275 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5276 | (exit $ac_status); } >/dev/null && { |
| 5277 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 5278 | test ! -s conftest.err |
| 5279 | }; then |
| 5280 | ac_header_preproc=yes |
| 5281 | else |
| 5282 | echo "$as_me: failed program was:" >&5 |
| 5283 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5284 | |
| 5285 | ac_header_preproc=no |
| 5286 | fi |
| 5287 | |
| 5288 | rm -f conftest.err conftest.$ac_ext |
| 5289 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 5290 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 5291 | |
| 5292 | # So? What about this header? |
| 5293 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 5294 | yes:no: ) |
| 5295 | { echo "$as_me:$LINENO: WARNING: assert.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 5296 | echo "$as_me: WARNING: assert.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 5297 | { echo "$as_me:$LINENO: WARNING: assert.h: proceeding with the compiler's result" >&5 |
| 5298 | echo "$as_me: WARNING: assert.h: proceeding with the compiler's result" >&2;} |
| 5299 | ac_header_preproc=yes |
| 5300 | ;; |
| 5301 | no:yes:* ) |
| 5302 | { echo "$as_me:$LINENO: WARNING: assert.h: present but cannot be compiled" >&5 |
| 5303 | echo "$as_me: WARNING: assert.h: present but cannot be compiled" >&2;} |
| 5304 | { echo "$as_me:$LINENO: WARNING: assert.h: check for missing prerequisite headers?" >&5 |
| 5305 | echo "$as_me: WARNING: assert.h: check for missing prerequisite headers?" >&2;} |
| 5306 | { echo "$as_me:$LINENO: WARNING: assert.h: see the Autoconf documentation" >&5 |
| 5307 | echo "$as_me: WARNING: assert.h: see the Autoconf documentation" >&2;} |
| 5308 | { echo "$as_me:$LINENO: WARNING: assert.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 5309 | echo "$as_me: WARNING: assert.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 5310 | { echo "$as_me:$LINENO: WARNING: assert.h: proceeding with the preprocessor's result" >&5 |
| 5311 | echo "$as_me: WARNING: assert.h: proceeding with the preprocessor's result" >&2;} |
| 5312 | { echo "$as_me:$LINENO: WARNING: assert.h: in the future, the compiler will take precedence" >&5 |
| 5313 | echo "$as_me: WARNING: assert.h: in the future, the compiler will take precedence" >&2;} |
| 5314 | |
| 5315 | ;; |
| 5316 | esac |
| 5317 | { echo "$as_me:$LINENO: checking for assert.h" >&5 |
| 5318 | echo $ECHO_N "checking for assert.h... $ECHO_C" >&6; } |
| 5319 | if test "${ac_cv_header_assert_h+set}" = set; then |
| 5320 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5321 | else |
| 5322 | ac_cv_header_assert_h=$ac_header_preproc |
| 5323 | fi |
| 5324 | { echo "$as_me:$LINENO: result: $ac_cv_header_assert_h" >&5 |
| 5325 | echo "${ECHO_T}$ac_cv_header_assert_h" >&6; } |
| 5326 | |
| 5327 | fi |
| 5328 | if test $ac_cv_header_assert_h = yes; then |
| 5329 | cat >>confdefs.h <<\_ACEOF |
| 5330 | #define PJ_HAS_ASSERT_H 1 |
| 5331 | _ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5332 | |
| 5333 | fi |
| 5334 | |
| 5335 | |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 5336 | if test "${ac_cv_header_ctype_h+set}" = set; then |
| 5337 | { echo "$as_me:$LINENO: checking for ctype.h" >&5 |
| 5338 | echo $ECHO_N "checking for ctype.h... $ECHO_C" >&6; } |
| 5339 | if test "${ac_cv_header_ctype_h+set}" = set; then |
| 5340 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5341 | fi |
| 5342 | { echo "$as_me:$LINENO: result: $ac_cv_header_ctype_h" >&5 |
| 5343 | echo "${ECHO_T}$ac_cv_header_ctype_h" >&6; } |
| 5344 | else |
| 5345 | # Is the header compilable? |
| 5346 | { echo "$as_me:$LINENO: checking ctype.h usability" >&5 |
| 5347 | echo $ECHO_N "checking ctype.h usability... $ECHO_C" >&6; } |
| 5348 | cat >conftest.$ac_ext <<_ACEOF |
| 5349 | /* confdefs.h. */ |
| 5350 | _ACEOF |
| 5351 | cat confdefs.h >>conftest.$ac_ext |
| 5352 | cat >>conftest.$ac_ext <<_ACEOF |
| 5353 | /* end confdefs.h. */ |
| 5354 | $ac_includes_default |
| 5355 | #include <ctype.h> |
| 5356 | _ACEOF |
| 5357 | rm -f conftest.$ac_objext |
| 5358 | if { (ac_try="$ac_compile" |
| 5359 | case "(($ac_try" in |
| 5360 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5361 | *) ac_try_echo=$ac_try;; |
| 5362 | esac |
| 5363 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5364 | (eval "$ac_compile") 2>conftest.er1 |
| 5365 | ac_status=$? |
| 5366 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5367 | rm -f conftest.er1 |
| 5368 | cat conftest.err >&5 |
| 5369 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5370 | (exit $ac_status); } && { |
| 5371 | test -z "$ac_c_werror_flag" || |
| 5372 | test ! -s conftest.err |
| 5373 | } && test -s conftest.$ac_objext; then |
| 5374 | ac_header_compiler=yes |
| 5375 | else |
| 5376 | echo "$as_me: failed program was:" >&5 |
| 5377 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5378 | |
| 5379 | ac_header_compiler=no |
| 5380 | fi |
| 5381 | |
| 5382 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5383 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 5384 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 5385 | |
| 5386 | # Is the header present? |
| 5387 | { echo "$as_me:$LINENO: checking ctype.h presence" >&5 |
| 5388 | echo $ECHO_N "checking ctype.h presence... $ECHO_C" >&6; } |
| 5389 | cat >conftest.$ac_ext <<_ACEOF |
| 5390 | /* confdefs.h. */ |
| 5391 | _ACEOF |
| 5392 | cat confdefs.h >>conftest.$ac_ext |
| 5393 | cat >>conftest.$ac_ext <<_ACEOF |
| 5394 | /* end confdefs.h. */ |
| 5395 | #include <ctype.h> |
| 5396 | _ACEOF |
| 5397 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 5398 | case "(($ac_try" in |
| 5399 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5400 | *) ac_try_echo=$ac_try;; |
| 5401 | esac |
| 5402 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5403 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 5404 | ac_status=$? |
| 5405 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5406 | rm -f conftest.er1 |
| 5407 | cat conftest.err >&5 |
| 5408 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5409 | (exit $ac_status); } >/dev/null && { |
| 5410 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 5411 | test ! -s conftest.err |
| 5412 | }; then |
| 5413 | ac_header_preproc=yes |
| 5414 | else |
| 5415 | echo "$as_me: failed program was:" >&5 |
| 5416 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5417 | |
| 5418 | ac_header_preproc=no |
| 5419 | fi |
| 5420 | |
| 5421 | rm -f conftest.err conftest.$ac_ext |
| 5422 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 5423 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 5424 | |
| 5425 | # So? What about this header? |
| 5426 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 5427 | yes:no: ) |
| 5428 | { echo "$as_me:$LINENO: WARNING: ctype.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 5429 | echo "$as_me: WARNING: ctype.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 5430 | { echo "$as_me:$LINENO: WARNING: ctype.h: proceeding with the compiler's result" >&5 |
| 5431 | echo "$as_me: WARNING: ctype.h: proceeding with the compiler's result" >&2;} |
| 5432 | ac_header_preproc=yes |
| 5433 | ;; |
| 5434 | no:yes:* ) |
| 5435 | { echo "$as_me:$LINENO: WARNING: ctype.h: present but cannot be compiled" >&5 |
| 5436 | echo "$as_me: WARNING: ctype.h: present but cannot be compiled" >&2;} |
| 5437 | { echo "$as_me:$LINENO: WARNING: ctype.h: check for missing prerequisite headers?" >&5 |
| 5438 | echo "$as_me: WARNING: ctype.h: check for missing prerequisite headers?" >&2;} |
| 5439 | { echo "$as_me:$LINENO: WARNING: ctype.h: see the Autoconf documentation" >&5 |
| 5440 | echo "$as_me: WARNING: ctype.h: see the Autoconf documentation" >&2;} |
| 5441 | { echo "$as_me:$LINENO: WARNING: ctype.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 5442 | echo "$as_me: WARNING: ctype.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 5443 | { echo "$as_me:$LINENO: WARNING: ctype.h: proceeding with the preprocessor's result" >&5 |
| 5444 | echo "$as_me: WARNING: ctype.h: proceeding with the preprocessor's result" >&2;} |
| 5445 | { echo "$as_me:$LINENO: WARNING: ctype.h: in the future, the compiler will take precedence" >&5 |
| 5446 | echo "$as_me: WARNING: ctype.h: in the future, the compiler will take precedence" >&2;} |
| 5447 | |
| 5448 | ;; |
| 5449 | esac |
| 5450 | { echo "$as_me:$LINENO: checking for ctype.h" >&5 |
| 5451 | echo $ECHO_N "checking for ctype.h... $ECHO_C" >&6; } |
| 5452 | if test "${ac_cv_header_ctype_h+set}" = set; then |
| 5453 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5454 | else |
| 5455 | ac_cv_header_ctype_h=$ac_header_preproc |
| 5456 | fi |
| 5457 | { echo "$as_me:$LINENO: result: $ac_cv_header_ctype_h" >&5 |
| 5458 | echo "${ECHO_T}$ac_cv_header_ctype_h" >&6; } |
| 5459 | |
| 5460 | fi |
| 5461 | if test $ac_cv_header_ctype_h = yes; then |
| 5462 | cat >>confdefs.h <<\_ACEOF |
| 5463 | #define PJ_HAS_CTYPE_H 1 |
| 5464 | _ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5465 | |
| 5466 | fi |
| 5467 | |
| 5468 | |
| 5469 | |
| 5470 | case $target in |
| 5471 | *mingw* | *cygw* | *win32* | *w32* ) |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 5472 | cat >>confdefs.h <<\_ACEOF |
| 5473 | #define PJ_HAS_ERRNO_H 0 |
| 5474 | _ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5475 | |
| 5476 | ;; |
| 5477 | *) |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 5478 | if test "${ac_cv_header_errno_h+set}" = set; then |
| 5479 | { echo "$as_me:$LINENO: checking for errno.h" >&5 |
| 5480 | echo $ECHO_N "checking for errno.h... $ECHO_C" >&6; } |
| 5481 | if test "${ac_cv_header_errno_h+set}" = set; then |
| 5482 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5483 | fi |
| 5484 | { echo "$as_me:$LINENO: result: $ac_cv_header_errno_h" >&5 |
| 5485 | echo "${ECHO_T}$ac_cv_header_errno_h" >&6; } |
| 5486 | else |
| 5487 | # Is the header compilable? |
| 5488 | { echo "$as_me:$LINENO: checking errno.h usability" >&5 |
| 5489 | echo $ECHO_N "checking errno.h usability... $ECHO_C" >&6; } |
| 5490 | cat >conftest.$ac_ext <<_ACEOF |
| 5491 | /* confdefs.h. */ |
| 5492 | _ACEOF |
| 5493 | cat confdefs.h >>conftest.$ac_ext |
| 5494 | cat >>conftest.$ac_ext <<_ACEOF |
| 5495 | /* end confdefs.h. */ |
| 5496 | $ac_includes_default |
| 5497 | #include <errno.h> |
| 5498 | _ACEOF |
| 5499 | rm -f conftest.$ac_objext |
| 5500 | if { (ac_try="$ac_compile" |
| 5501 | case "(($ac_try" in |
| 5502 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5503 | *) ac_try_echo=$ac_try;; |
| 5504 | esac |
| 5505 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5506 | (eval "$ac_compile") 2>conftest.er1 |
| 5507 | ac_status=$? |
| 5508 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5509 | rm -f conftest.er1 |
| 5510 | cat conftest.err >&5 |
| 5511 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5512 | (exit $ac_status); } && { |
| 5513 | test -z "$ac_c_werror_flag" || |
| 5514 | test ! -s conftest.err |
| 5515 | } && test -s conftest.$ac_objext; then |
| 5516 | ac_header_compiler=yes |
| 5517 | else |
| 5518 | echo "$as_me: failed program was:" >&5 |
| 5519 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5520 | |
| 5521 | ac_header_compiler=no |
| 5522 | fi |
| 5523 | |
| 5524 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5525 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 5526 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 5527 | |
| 5528 | # Is the header present? |
| 5529 | { echo "$as_me:$LINENO: checking errno.h presence" >&5 |
| 5530 | echo $ECHO_N "checking errno.h presence... $ECHO_C" >&6; } |
| 5531 | cat >conftest.$ac_ext <<_ACEOF |
| 5532 | /* confdefs.h. */ |
| 5533 | _ACEOF |
| 5534 | cat confdefs.h >>conftest.$ac_ext |
| 5535 | cat >>conftest.$ac_ext <<_ACEOF |
| 5536 | /* end confdefs.h. */ |
| 5537 | #include <errno.h> |
| 5538 | _ACEOF |
| 5539 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 5540 | case "(($ac_try" in |
| 5541 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5542 | *) ac_try_echo=$ac_try;; |
| 5543 | esac |
| 5544 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5545 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 5546 | ac_status=$? |
| 5547 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5548 | rm -f conftest.er1 |
| 5549 | cat conftest.err >&5 |
| 5550 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5551 | (exit $ac_status); } >/dev/null && { |
| 5552 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 5553 | test ! -s conftest.err |
| 5554 | }; then |
| 5555 | ac_header_preproc=yes |
| 5556 | else |
| 5557 | echo "$as_me: failed program was:" >&5 |
| 5558 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5559 | |
| 5560 | ac_header_preproc=no |
| 5561 | fi |
| 5562 | |
| 5563 | rm -f conftest.err conftest.$ac_ext |
| 5564 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 5565 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 5566 | |
| 5567 | # So? What about this header? |
| 5568 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 5569 | yes:no: ) |
| 5570 | { echo "$as_me:$LINENO: WARNING: errno.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 5571 | echo "$as_me: WARNING: errno.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 5572 | { echo "$as_me:$LINENO: WARNING: errno.h: proceeding with the compiler's result" >&5 |
| 5573 | echo "$as_me: WARNING: errno.h: proceeding with the compiler's result" >&2;} |
| 5574 | ac_header_preproc=yes |
| 5575 | ;; |
| 5576 | no:yes:* ) |
| 5577 | { echo "$as_me:$LINENO: WARNING: errno.h: present but cannot be compiled" >&5 |
| 5578 | echo "$as_me: WARNING: errno.h: present but cannot be compiled" >&2;} |
| 5579 | { echo "$as_me:$LINENO: WARNING: errno.h: check for missing prerequisite headers?" >&5 |
| 5580 | echo "$as_me: WARNING: errno.h: check for missing prerequisite headers?" >&2;} |
| 5581 | { echo "$as_me:$LINENO: WARNING: errno.h: see the Autoconf documentation" >&5 |
| 5582 | echo "$as_me: WARNING: errno.h: see the Autoconf documentation" >&2;} |
| 5583 | { echo "$as_me:$LINENO: WARNING: errno.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 5584 | echo "$as_me: WARNING: errno.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 5585 | { echo "$as_me:$LINENO: WARNING: errno.h: proceeding with the preprocessor's result" >&5 |
| 5586 | echo "$as_me: WARNING: errno.h: proceeding with the preprocessor's result" >&2;} |
| 5587 | { echo "$as_me:$LINENO: WARNING: errno.h: in the future, the compiler will take precedence" >&5 |
| 5588 | echo "$as_me: WARNING: errno.h: in the future, the compiler will take precedence" >&2;} |
| 5589 | |
| 5590 | ;; |
| 5591 | esac |
| 5592 | { echo "$as_me:$LINENO: checking for errno.h" >&5 |
| 5593 | echo $ECHO_N "checking for errno.h... $ECHO_C" >&6; } |
| 5594 | if test "${ac_cv_header_errno_h+set}" = set; then |
| 5595 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5596 | else |
| 5597 | ac_cv_header_errno_h=$ac_header_preproc |
| 5598 | fi |
| 5599 | { echo "$as_me:$LINENO: result: $ac_cv_header_errno_h" >&5 |
| 5600 | echo "${ECHO_T}$ac_cv_header_errno_h" >&6; } |
| 5601 | |
| 5602 | fi |
| 5603 | if test $ac_cv_header_errno_h = yes; then |
| 5604 | cat >>confdefs.h <<\_ACEOF |
| 5605 | #define PJ_HAS_ERRNO_H 1 |
| 5606 | _ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5607 | |
| 5608 | fi |
| 5609 | |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 5610 | |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 5611 | ;; |
| 5612 | esac |
| 5613 | |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 5614 | if test "${ac_cv_header_fcntl_h+set}" = set; then |
| 5615 | { echo "$as_me:$LINENO: checking for fcntl.h" >&5 |
| 5616 | echo $ECHO_N "checking for fcntl.h... $ECHO_C" >&6; } |
| 5617 | if test "${ac_cv_header_fcntl_h+set}" = set; then |
| 5618 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5619 | fi |
| 5620 | { echo "$as_me:$LINENO: result: $ac_cv_header_fcntl_h" >&5 |
| 5621 | echo "${ECHO_T}$ac_cv_header_fcntl_h" >&6; } |
| 5622 | else |
| 5623 | # Is the header compilable? |
| 5624 | { echo "$as_me:$LINENO: checking fcntl.h usability" >&5 |
| 5625 | echo $ECHO_N "checking fcntl.h usability... $ECHO_C" >&6; } |
| 5626 | cat >conftest.$ac_ext <<_ACEOF |
| 5627 | /* confdefs.h. */ |
| 5628 | _ACEOF |
| 5629 | cat confdefs.h >>conftest.$ac_ext |
| 5630 | cat >>conftest.$ac_ext <<_ACEOF |
| 5631 | /* end confdefs.h. */ |
| 5632 | $ac_includes_default |
| 5633 | #include <fcntl.h> |
| 5634 | _ACEOF |
| 5635 | rm -f conftest.$ac_objext |
| 5636 | if { (ac_try="$ac_compile" |
| 5637 | case "(($ac_try" in |
| 5638 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5639 | *) ac_try_echo=$ac_try;; |
| 5640 | esac |
| 5641 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5642 | (eval "$ac_compile") 2>conftest.er1 |
| 5643 | ac_status=$? |
| 5644 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5645 | rm -f conftest.er1 |
| 5646 | cat conftest.err >&5 |
| 5647 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5648 | (exit $ac_status); } && { |
| 5649 | test -z "$ac_c_werror_flag" || |
| 5650 | test ! -s conftest.err |
| 5651 | } && test -s conftest.$ac_objext; then |
| 5652 | ac_header_compiler=yes |
| 5653 | else |
| 5654 | echo "$as_me: failed program was:" >&5 |
| 5655 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5656 | |
| 5657 | ac_header_compiler=no |
| 5658 | fi |
| 5659 | |
| 5660 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5661 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 5662 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 5663 | |
| 5664 | # Is the header present? |
| 5665 | { echo "$as_me:$LINENO: checking fcntl.h presence" >&5 |
| 5666 | echo $ECHO_N "checking fcntl.h presence... $ECHO_C" >&6; } |
| 5667 | cat >conftest.$ac_ext <<_ACEOF |
| 5668 | /* confdefs.h. */ |
| 5669 | _ACEOF |
| 5670 | cat confdefs.h >>conftest.$ac_ext |
| 5671 | cat >>conftest.$ac_ext <<_ACEOF |
| 5672 | /* end confdefs.h. */ |
| 5673 | #include <fcntl.h> |
| 5674 | _ACEOF |
| 5675 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 5676 | case "(($ac_try" in |
| 5677 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5678 | *) ac_try_echo=$ac_try;; |
| 5679 | esac |
| 5680 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5681 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 5682 | ac_status=$? |
| 5683 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5684 | rm -f conftest.er1 |
| 5685 | cat conftest.err >&5 |
| 5686 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5687 | (exit $ac_status); } >/dev/null && { |
| 5688 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 5689 | test ! -s conftest.err |
| 5690 | }; then |
| 5691 | ac_header_preproc=yes |
| 5692 | else |
| 5693 | echo "$as_me: failed program was:" >&5 |
| 5694 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5695 | |
| 5696 | ac_header_preproc=no |
| 5697 | fi |
| 5698 | |
| 5699 | rm -f conftest.err conftest.$ac_ext |
| 5700 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 5701 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 5702 | |
| 5703 | # So? What about this header? |
| 5704 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 5705 | yes:no: ) |
| 5706 | { echo "$as_me:$LINENO: WARNING: fcntl.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 5707 | echo "$as_me: WARNING: fcntl.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 5708 | { echo "$as_me:$LINENO: WARNING: fcntl.h: proceeding with the compiler's result" >&5 |
| 5709 | echo "$as_me: WARNING: fcntl.h: proceeding with the compiler's result" >&2;} |
| 5710 | ac_header_preproc=yes |
| 5711 | ;; |
| 5712 | no:yes:* ) |
| 5713 | { echo "$as_me:$LINENO: WARNING: fcntl.h: present but cannot be compiled" >&5 |
| 5714 | echo "$as_me: WARNING: fcntl.h: present but cannot be compiled" >&2;} |
| 5715 | { echo "$as_me:$LINENO: WARNING: fcntl.h: check for missing prerequisite headers?" >&5 |
| 5716 | echo "$as_me: WARNING: fcntl.h: check for missing prerequisite headers?" >&2;} |
| 5717 | { echo "$as_me:$LINENO: WARNING: fcntl.h: see the Autoconf documentation" >&5 |
| 5718 | echo "$as_me: WARNING: fcntl.h: see the Autoconf documentation" >&2;} |
| 5719 | { echo "$as_me:$LINENO: WARNING: fcntl.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 5720 | echo "$as_me: WARNING: fcntl.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 5721 | { echo "$as_me:$LINENO: WARNING: fcntl.h: proceeding with the preprocessor's result" >&5 |
| 5722 | echo "$as_me: WARNING: fcntl.h: proceeding with the preprocessor's result" >&2;} |
| 5723 | { echo "$as_me:$LINENO: WARNING: fcntl.h: in the future, the compiler will take precedence" >&5 |
| 5724 | echo "$as_me: WARNING: fcntl.h: in the future, the compiler will take precedence" >&2;} |
| 5725 | |
| 5726 | ;; |
| 5727 | esac |
| 5728 | { echo "$as_me:$LINENO: checking for fcntl.h" >&5 |
| 5729 | echo $ECHO_N "checking for fcntl.h... $ECHO_C" >&6; } |
| 5730 | if test "${ac_cv_header_fcntl_h+set}" = set; then |
| 5731 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5732 | else |
| 5733 | ac_cv_header_fcntl_h=$ac_header_preproc |
| 5734 | fi |
| 5735 | { echo "$as_me:$LINENO: result: $ac_cv_header_fcntl_h" >&5 |
| 5736 | echo "${ECHO_T}$ac_cv_header_fcntl_h" >&6; } |
| 5737 | |
| 5738 | fi |
| 5739 | if test $ac_cv_header_fcntl_h = yes; then |
| 5740 | cat >>confdefs.h <<\_ACEOF |
| 5741 | #define PJ_HAS_FCNTL_H 1 |
| 5742 | _ACEOF |
Benny Prijono | 1d481ab | 2008-01-24 15:27:30 +0000 | [diff] [blame] | 5743 | |
| 5744 | fi |
| 5745 | |
| 5746 | |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 5747 | if test "${ac_cv_header_linux_socket_h+set}" = set; then |
| 5748 | { echo "$as_me:$LINENO: checking for linux/socket.h" >&5 |
| 5749 | echo $ECHO_N "checking for linux/socket.h... $ECHO_C" >&6; } |
| 5750 | if test "${ac_cv_header_linux_socket_h+set}" = set; then |
| 5751 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5752 | fi |
| 5753 | { echo "$as_me:$LINENO: result: $ac_cv_header_linux_socket_h" >&5 |
| 5754 | echo "${ECHO_T}$ac_cv_header_linux_socket_h" >&6; } |
| 5755 | else |
| 5756 | # Is the header compilable? |
| 5757 | { echo "$as_me:$LINENO: checking linux/socket.h usability" >&5 |
| 5758 | echo $ECHO_N "checking linux/socket.h usability... $ECHO_C" >&6; } |
| 5759 | cat >conftest.$ac_ext <<_ACEOF |
| 5760 | /* confdefs.h. */ |
| 5761 | _ACEOF |
| 5762 | cat confdefs.h >>conftest.$ac_ext |
| 5763 | cat >>conftest.$ac_ext <<_ACEOF |
| 5764 | /* end confdefs.h. */ |
| 5765 | $ac_includes_default |
| 5766 | #include <linux/socket.h> |
| 5767 | _ACEOF |
| 5768 | rm -f conftest.$ac_objext |
| 5769 | if { (ac_try="$ac_compile" |
| 5770 | case "(($ac_try" in |
| 5771 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5772 | *) ac_try_echo=$ac_try;; |
| 5773 | esac |
| 5774 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5775 | (eval "$ac_compile") 2>conftest.er1 |
| 5776 | ac_status=$? |
| 5777 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5778 | rm -f conftest.er1 |
| 5779 | cat conftest.err >&5 |
| 5780 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5781 | (exit $ac_status); } && { |
| 5782 | test -z "$ac_c_werror_flag" || |
| 5783 | test ! -s conftest.err |
| 5784 | } && test -s conftest.$ac_objext; then |
| 5785 | ac_header_compiler=yes |
| 5786 | else |
| 5787 | echo "$as_me: failed program was:" >&5 |
| 5788 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5789 | |
| 5790 | ac_header_compiler=no |
| 5791 | fi |
| 5792 | |
| 5793 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5794 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 5795 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 5796 | |
| 5797 | # Is the header present? |
| 5798 | { echo "$as_me:$LINENO: checking linux/socket.h presence" >&5 |
| 5799 | echo $ECHO_N "checking linux/socket.h presence... $ECHO_C" >&6; } |
| 5800 | cat >conftest.$ac_ext <<_ACEOF |
| 5801 | /* confdefs.h. */ |
| 5802 | _ACEOF |
| 5803 | cat confdefs.h >>conftest.$ac_ext |
| 5804 | cat >>conftest.$ac_ext <<_ACEOF |
| 5805 | /* end confdefs.h. */ |
| 5806 | #include <linux/socket.h> |
| 5807 | _ACEOF |
| 5808 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 5809 | case "(($ac_try" in |
| 5810 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5811 | *) ac_try_echo=$ac_try;; |
| 5812 | esac |
| 5813 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5814 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 5815 | ac_status=$? |
| 5816 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5817 | rm -f conftest.er1 |
| 5818 | cat conftest.err >&5 |
| 5819 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5820 | (exit $ac_status); } >/dev/null && { |
| 5821 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 5822 | test ! -s conftest.err |
| 5823 | }; then |
| 5824 | ac_header_preproc=yes |
| 5825 | else |
| 5826 | echo "$as_me: failed program was:" >&5 |
| 5827 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5828 | |
| 5829 | ac_header_preproc=no |
| 5830 | fi |
| 5831 | |
| 5832 | rm -f conftest.err conftest.$ac_ext |
| 5833 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 5834 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 5835 | |
| 5836 | # So? What about this header? |
| 5837 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 5838 | yes:no: ) |
| 5839 | { echo "$as_me:$LINENO: WARNING: linux/socket.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 5840 | echo "$as_me: WARNING: linux/socket.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 5841 | { echo "$as_me:$LINENO: WARNING: linux/socket.h: proceeding with the compiler's result" >&5 |
| 5842 | echo "$as_me: WARNING: linux/socket.h: proceeding with the compiler's result" >&2;} |
| 5843 | ac_header_preproc=yes |
| 5844 | ;; |
| 5845 | no:yes:* ) |
| 5846 | { echo "$as_me:$LINENO: WARNING: linux/socket.h: present but cannot be compiled" >&5 |
| 5847 | echo "$as_me: WARNING: linux/socket.h: present but cannot be compiled" >&2;} |
| 5848 | { echo "$as_me:$LINENO: WARNING: linux/socket.h: check for missing prerequisite headers?" >&5 |
| 5849 | echo "$as_me: WARNING: linux/socket.h: check for missing prerequisite headers?" >&2;} |
| 5850 | { echo "$as_me:$LINENO: WARNING: linux/socket.h: see the Autoconf documentation" >&5 |
| 5851 | echo "$as_me: WARNING: linux/socket.h: see the Autoconf documentation" >&2;} |
| 5852 | { echo "$as_me:$LINENO: WARNING: linux/socket.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 5853 | echo "$as_me: WARNING: linux/socket.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 5854 | { echo "$as_me:$LINENO: WARNING: linux/socket.h: proceeding with the preprocessor's result" >&5 |
| 5855 | echo "$as_me: WARNING: linux/socket.h: proceeding with the preprocessor's result" >&2;} |
| 5856 | { echo "$as_me:$LINENO: WARNING: linux/socket.h: in the future, the compiler will take precedence" >&5 |
| 5857 | echo "$as_me: WARNING: linux/socket.h: in the future, the compiler will take precedence" >&2;} |
| 5858 | |
| 5859 | ;; |
| 5860 | esac |
| 5861 | { echo "$as_me:$LINENO: checking for linux/socket.h" >&5 |
| 5862 | echo $ECHO_N "checking for linux/socket.h... $ECHO_C" >&6; } |
| 5863 | if test "${ac_cv_header_linux_socket_h+set}" = set; then |
| 5864 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5865 | else |
| 5866 | ac_cv_header_linux_socket_h=$ac_header_preproc |
| 5867 | fi |
| 5868 | { echo "$as_me:$LINENO: result: $ac_cv_header_linux_socket_h" >&5 |
| 5869 | echo "${ECHO_T}$ac_cv_header_linux_socket_h" >&6; } |
| 5870 | |
| 5871 | fi |
| 5872 | if test $ac_cv_header_linux_socket_h = yes; then |
| 5873 | cat >>confdefs.h <<\_ACEOF |
| 5874 | #define PJ_HAS_LINUX_SOCKET_H 1 |
| 5875 | _ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5876 | |
| 5877 | fi |
| 5878 | |
| 5879 | |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 5880 | if test "${ac_cv_header_malloc_h+set}" = set; then |
| 5881 | { echo "$as_me:$LINENO: checking for malloc.h" >&5 |
| 5882 | echo $ECHO_N "checking for malloc.h... $ECHO_C" >&6; } |
| 5883 | if test "${ac_cv_header_malloc_h+set}" = set; then |
| 5884 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5885 | fi |
| 5886 | { echo "$as_me:$LINENO: result: $ac_cv_header_malloc_h" >&5 |
| 5887 | echo "${ECHO_T}$ac_cv_header_malloc_h" >&6; } |
| 5888 | else |
| 5889 | # Is the header compilable? |
| 5890 | { echo "$as_me:$LINENO: checking malloc.h usability" >&5 |
| 5891 | echo $ECHO_N "checking malloc.h usability... $ECHO_C" >&6; } |
| 5892 | cat >conftest.$ac_ext <<_ACEOF |
| 5893 | /* confdefs.h. */ |
| 5894 | _ACEOF |
| 5895 | cat confdefs.h >>conftest.$ac_ext |
| 5896 | cat >>conftest.$ac_ext <<_ACEOF |
| 5897 | /* end confdefs.h. */ |
| 5898 | $ac_includes_default |
| 5899 | #include <malloc.h> |
| 5900 | _ACEOF |
| 5901 | rm -f conftest.$ac_objext |
| 5902 | if { (ac_try="$ac_compile" |
| 5903 | case "(($ac_try" in |
| 5904 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5905 | *) ac_try_echo=$ac_try;; |
| 5906 | esac |
| 5907 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5908 | (eval "$ac_compile") 2>conftest.er1 |
| 5909 | ac_status=$? |
| 5910 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5911 | rm -f conftest.er1 |
| 5912 | cat conftest.err >&5 |
| 5913 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5914 | (exit $ac_status); } && { |
| 5915 | test -z "$ac_c_werror_flag" || |
| 5916 | test ! -s conftest.err |
| 5917 | } && test -s conftest.$ac_objext; then |
| 5918 | ac_header_compiler=yes |
| 5919 | else |
| 5920 | echo "$as_me: failed program was:" >&5 |
| 5921 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5922 | |
| 5923 | ac_header_compiler=no |
| 5924 | fi |
| 5925 | |
| 5926 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5927 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 5928 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 5929 | |
| 5930 | # Is the header present? |
| 5931 | { echo "$as_me:$LINENO: checking malloc.h presence" >&5 |
| 5932 | echo $ECHO_N "checking malloc.h presence... $ECHO_C" >&6; } |
| 5933 | cat >conftest.$ac_ext <<_ACEOF |
| 5934 | /* confdefs.h. */ |
| 5935 | _ACEOF |
| 5936 | cat confdefs.h >>conftest.$ac_ext |
| 5937 | cat >>conftest.$ac_ext <<_ACEOF |
| 5938 | /* end confdefs.h. */ |
| 5939 | #include <malloc.h> |
| 5940 | _ACEOF |
| 5941 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 5942 | case "(($ac_try" in |
| 5943 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5944 | *) ac_try_echo=$ac_try;; |
| 5945 | esac |
| 5946 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5947 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 5948 | ac_status=$? |
| 5949 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5950 | rm -f conftest.er1 |
| 5951 | cat conftest.err >&5 |
| 5952 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5953 | (exit $ac_status); } >/dev/null && { |
| 5954 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 5955 | test ! -s conftest.err |
| 5956 | }; then |
| 5957 | ac_header_preproc=yes |
| 5958 | else |
| 5959 | echo "$as_me: failed program was:" >&5 |
| 5960 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5961 | |
| 5962 | ac_header_preproc=no |
| 5963 | fi |
| 5964 | |
| 5965 | rm -f conftest.err conftest.$ac_ext |
| 5966 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 5967 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 5968 | |
| 5969 | # So? What about this header? |
| 5970 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 5971 | yes:no: ) |
| 5972 | { echo "$as_me:$LINENO: WARNING: malloc.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 5973 | echo "$as_me: WARNING: malloc.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 5974 | { echo "$as_me:$LINENO: WARNING: malloc.h: proceeding with the compiler's result" >&5 |
| 5975 | echo "$as_me: WARNING: malloc.h: proceeding with the compiler's result" >&2;} |
| 5976 | ac_header_preproc=yes |
| 5977 | ;; |
| 5978 | no:yes:* ) |
| 5979 | { echo "$as_me:$LINENO: WARNING: malloc.h: present but cannot be compiled" >&5 |
| 5980 | echo "$as_me: WARNING: malloc.h: present but cannot be compiled" >&2;} |
| 5981 | { echo "$as_me:$LINENO: WARNING: malloc.h: check for missing prerequisite headers?" >&5 |
| 5982 | echo "$as_me: WARNING: malloc.h: check for missing prerequisite headers?" >&2;} |
| 5983 | { echo "$as_me:$LINENO: WARNING: malloc.h: see the Autoconf documentation" >&5 |
| 5984 | echo "$as_me: WARNING: malloc.h: see the Autoconf documentation" >&2;} |
| 5985 | { echo "$as_me:$LINENO: WARNING: malloc.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 5986 | echo "$as_me: WARNING: malloc.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 5987 | { echo "$as_me:$LINENO: WARNING: malloc.h: proceeding with the preprocessor's result" >&5 |
| 5988 | echo "$as_me: WARNING: malloc.h: proceeding with the preprocessor's result" >&2;} |
| 5989 | { echo "$as_me:$LINENO: WARNING: malloc.h: in the future, the compiler will take precedence" >&5 |
| 5990 | echo "$as_me: WARNING: malloc.h: in the future, the compiler will take precedence" >&2;} |
| 5991 | |
| 5992 | ;; |
| 5993 | esac |
| 5994 | { echo "$as_me:$LINENO: checking for malloc.h" >&5 |
| 5995 | echo $ECHO_N "checking for malloc.h... $ECHO_C" >&6; } |
| 5996 | if test "${ac_cv_header_malloc_h+set}" = set; then |
| 5997 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5998 | else |
| 5999 | ac_cv_header_malloc_h=$ac_header_preproc |
| 6000 | fi |
| 6001 | { echo "$as_me:$LINENO: result: $ac_cv_header_malloc_h" >&5 |
| 6002 | echo "${ECHO_T}$ac_cv_header_malloc_h" >&6; } |
| 6003 | |
| 6004 | fi |
| 6005 | if test $ac_cv_header_malloc_h = yes; then |
| 6006 | cat >>confdefs.h <<\_ACEOF |
| 6007 | #define PJ_HAS_MALLOC_H 1 |
| 6008 | _ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6009 | |
| 6010 | fi |
| 6011 | |
| 6012 | |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 6013 | if test "${ac_cv_header_netdb_h+set}" = set; then |
| 6014 | { echo "$as_me:$LINENO: checking for netdb.h" >&5 |
| 6015 | echo $ECHO_N "checking for netdb.h... $ECHO_C" >&6; } |
| 6016 | if test "${ac_cv_header_netdb_h+set}" = set; then |
| 6017 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6018 | fi |
| 6019 | { echo "$as_me:$LINENO: result: $ac_cv_header_netdb_h" >&5 |
| 6020 | echo "${ECHO_T}$ac_cv_header_netdb_h" >&6; } |
| 6021 | else |
| 6022 | # Is the header compilable? |
| 6023 | { echo "$as_me:$LINENO: checking netdb.h usability" >&5 |
| 6024 | echo $ECHO_N "checking netdb.h usability... $ECHO_C" >&6; } |
| 6025 | cat >conftest.$ac_ext <<_ACEOF |
| 6026 | /* confdefs.h. */ |
| 6027 | _ACEOF |
| 6028 | cat confdefs.h >>conftest.$ac_ext |
| 6029 | cat >>conftest.$ac_ext <<_ACEOF |
| 6030 | /* end confdefs.h. */ |
| 6031 | $ac_includes_default |
| 6032 | #include <netdb.h> |
| 6033 | _ACEOF |
| 6034 | rm -f conftest.$ac_objext |
| 6035 | if { (ac_try="$ac_compile" |
| 6036 | case "(($ac_try" in |
| 6037 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6038 | *) ac_try_echo=$ac_try;; |
| 6039 | esac |
| 6040 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6041 | (eval "$ac_compile") 2>conftest.er1 |
| 6042 | ac_status=$? |
| 6043 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6044 | rm -f conftest.er1 |
| 6045 | cat conftest.err >&5 |
| 6046 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6047 | (exit $ac_status); } && { |
| 6048 | test -z "$ac_c_werror_flag" || |
| 6049 | test ! -s conftest.err |
| 6050 | } && test -s conftest.$ac_objext; then |
| 6051 | ac_header_compiler=yes |
| 6052 | else |
| 6053 | echo "$as_me: failed program was:" >&5 |
| 6054 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6055 | |
| 6056 | ac_header_compiler=no |
| 6057 | fi |
| 6058 | |
| 6059 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6060 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 6061 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 6062 | |
| 6063 | # Is the header present? |
| 6064 | { echo "$as_me:$LINENO: checking netdb.h presence" >&5 |
| 6065 | echo $ECHO_N "checking netdb.h presence... $ECHO_C" >&6; } |
| 6066 | cat >conftest.$ac_ext <<_ACEOF |
| 6067 | /* confdefs.h. */ |
| 6068 | _ACEOF |
| 6069 | cat confdefs.h >>conftest.$ac_ext |
| 6070 | cat >>conftest.$ac_ext <<_ACEOF |
| 6071 | /* end confdefs.h. */ |
| 6072 | #include <netdb.h> |
| 6073 | _ACEOF |
| 6074 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 6075 | case "(($ac_try" in |
| 6076 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6077 | *) ac_try_echo=$ac_try;; |
| 6078 | esac |
| 6079 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6080 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 6081 | ac_status=$? |
| 6082 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6083 | rm -f conftest.er1 |
| 6084 | cat conftest.err >&5 |
| 6085 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6086 | (exit $ac_status); } >/dev/null && { |
| 6087 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 6088 | test ! -s conftest.err |
| 6089 | }; then |
| 6090 | ac_header_preproc=yes |
| 6091 | else |
| 6092 | echo "$as_me: failed program was:" >&5 |
| 6093 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6094 | |
| 6095 | ac_header_preproc=no |
| 6096 | fi |
| 6097 | |
| 6098 | rm -f conftest.err conftest.$ac_ext |
| 6099 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 6100 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 6101 | |
| 6102 | # So? What about this header? |
| 6103 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 6104 | yes:no: ) |
| 6105 | { echo "$as_me:$LINENO: WARNING: netdb.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 6106 | echo "$as_me: WARNING: netdb.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 6107 | { echo "$as_me:$LINENO: WARNING: netdb.h: proceeding with the compiler's result" >&5 |
| 6108 | echo "$as_me: WARNING: netdb.h: proceeding with the compiler's result" >&2;} |
| 6109 | ac_header_preproc=yes |
| 6110 | ;; |
| 6111 | no:yes:* ) |
| 6112 | { echo "$as_me:$LINENO: WARNING: netdb.h: present but cannot be compiled" >&5 |
| 6113 | echo "$as_me: WARNING: netdb.h: present but cannot be compiled" >&2;} |
| 6114 | { echo "$as_me:$LINENO: WARNING: netdb.h: check for missing prerequisite headers?" >&5 |
| 6115 | echo "$as_me: WARNING: netdb.h: check for missing prerequisite headers?" >&2;} |
| 6116 | { echo "$as_me:$LINENO: WARNING: netdb.h: see the Autoconf documentation" >&5 |
| 6117 | echo "$as_me: WARNING: netdb.h: see the Autoconf documentation" >&2;} |
| 6118 | { echo "$as_me:$LINENO: WARNING: netdb.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 6119 | echo "$as_me: WARNING: netdb.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 6120 | { echo "$as_me:$LINENO: WARNING: netdb.h: proceeding with the preprocessor's result" >&5 |
| 6121 | echo "$as_me: WARNING: netdb.h: proceeding with the preprocessor's result" >&2;} |
| 6122 | { echo "$as_me:$LINENO: WARNING: netdb.h: in the future, the compiler will take precedence" >&5 |
| 6123 | echo "$as_me: WARNING: netdb.h: in the future, the compiler will take precedence" >&2;} |
| 6124 | |
| 6125 | ;; |
| 6126 | esac |
| 6127 | { echo "$as_me:$LINENO: checking for netdb.h" >&5 |
| 6128 | echo $ECHO_N "checking for netdb.h... $ECHO_C" >&6; } |
| 6129 | if test "${ac_cv_header_netdb_h+set}" = set; then |
| 6130 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6131 | else |
| 6132 | ac_cv_header_netdb_h=$ac_header_preproc |
| 6133 | fi |
| 6134 | { echo "$as_me:$LINENO: result: $ac_cv_header_netdb_h" >&5 |
| 6135 | echo "${ECHO_T}$ac_cv_header_netdb_h" >&6; } |
| 6136 | |
| 6137 | fi |
| 6138 | if test $ac_cv_header_netdb_h = yes; then |
| 6139 | cat >>confdefs.h <<\_ACEOF |
| 6140 | #define PJ_HAS_NETDB_H 1 |
| 6141 | _ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6142 | |
| 6143 | fi |
| 6144 | |
| 6145 | |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 6146 | if test "${ac_cv_header_netinet_in_systm_h+set}" = set; then |
| 6147 | { echo "$as_me:$LINENO: checking for netinet/in_systm.h" >&5 |
| 6148 | echo $ECHO_N "checking for netinet/in_systm.h... $ECHO_C" >&6; } |
| 6149 | if test "${ac_cv_header_netinet_in_systm_h+set}" = set; then |
| 6150 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6151 | fi |
| 6152 | { echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_systm_h" >&5 |
| 6153 | echo "${ECHO_T}$ac_cv_header_netinet_in_systm_h" >&6; } |
| 6154 | else |
| 6155 | # Is the header compilable? |
| 6156 | { echo "$as_me:$LINENO: checking netinet/in_systm.h usability" >&5 |
| 6157 | echo $ECHO_N "checking netinet/in_systm.h usability... $ECHO_C" >&6; } |
| 6158 | cat >conftest.$ac_ext <<_ACEOF |
| 6159 | /* confdefs.h. */ |
| 6160 | _ACEOF |
| 6161 | cat confdefs.h >>conftest.$ac_ext |
| 6162 | cat >>conftest.$ac_ext <<_ACEOF |
| 6163 | /* end confdefs.h. */ |
| 6164 | $ac_includes_default |
| 6165 | #include <netinet/in_systm.h> |
| 6166 | _ACEOF |
| 6167 | rm -f conftest.$ac_objext |
| 6168 | if { (ac_try="$ac_compile" |
| 6169 | case "(($ac_try" in |
| 6170 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6171 | *) ac_try_echo=$ac_try;; |
| 6172 | esac |
| 6173 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6174 | (eval "$ac_compile") 2>conftest.er1 |
| 6175 | ac_status=$? |
| 6176 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6177 | rm -f conftest.er1 |
| 6178 | cat conftest.err >&5 |
| 6179 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6180 | (exit $ac_status); } && { |
| 6181 | test -z "$ac_c_werror_flag" || |
| 6182 | test ! -s conftest.err |
| 6183 | } && test -s conftest.$ac_objext; then |
| 6184 | ac_header_compiler=yes |
| 6185 | else |
| 6186 | echo "$as_me: failed program was:" >&5 |
| 6187 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6188 | |
| 6189 | ac_header_compiler=no |
| 6190 | fi |
| 6191 | |
| 6192 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6193 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 6194 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 6195 | |
| 6196 | # Is the header present? |
| 6197 | { echo "$as_me:$LINENO: checking netinet/in_systm.h presence" >&5 |
| 6198 | echo $ECHO_N "checking netinet/in_systm.h presence... $ECHO_C" >&6; } |
| 6199 | cat >conftest.$ac_ext <<_ACEOF |
| 6200 | /* confdefs.h. */ |
| 6201 | _ACEOF |
| 6202 | cat confdefs.h >>conftest.$ac_ext |
| 6203 | cat >>conftest.$ac_ext <<_ACEOF |
| 6204 | /* end confdefs.h. */ |
| 6205 | #include <netinet/in_systm.h> |
| 6206 | _ACEOF |
| 6207 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 6208 | case "(($ac_try" in |
| 6209 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6210 | *) ac_try_echo=$ac_try;; |
| 6211 | esac |
| 6212 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6213 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 6214 | ac_status=$? |
| 6215 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6216 | rm -f conftest.er1 |
| 6217 | cat conftest.err >&5 |
| 6218 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6219 | (exit $ac_status); } >/dev/null && { |
| 6220 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 6221 | test ! -s conftest.err |
| 6222 | }; then |
| 6223 | ac_header_preproc=yes |
| 6224 | else |
| 6225 | echo "$as_me: failed program was:" >&5 |
| 6226 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6227 | |
| 6228 | ac_header_preproc=no |
| 6229 | fi |
| 6230 | |
| 6231 | rm -f conftest.err conftest.$ac_ext |
| 6232 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 6233 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 6234 | |
| 6235 | # So? What about this header? |
| 6236 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 6237 | yes:no: ) |
| 6238 | { echo "$as_me:$LINENO: WARNING: netinet/in_systm.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 6239 | echo "$as_me: WARNING: netinet/in_systm.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 6240 | { echo "$as_me:$LINENO: WARNING: netinet/in_systm.h: proceeding with the compiler's result" >&5 |
| 6241 | echo "$as_me: WARNING: netinet/in_systm.h: proceeding with the compiler's result" >&2;} |
| 6242 | ac_header_preproc=yes |
| 6243 | ;; |
| 6244 | no:yes:* ) |
| 6245 | { echo "$as_me:$LINENO: WARNING: netinet/in_systm.h: present but cannot be compiled" >&5 |
| 6246 | echo "$as_me: WARNING: netinet/in_systm.h: present but cannot be compiled" >&2;} |
| 6247 | { echo "$as_me:$LINENO: WARNING: netinet/in_systm.h: check for missing prerequisite headers?" >&5 |
| 6248 | echo "$as_me: WARNING: netinet/in_systm.h: check for missing prerequisite headers?" >&2;} |
| 6249 | { echo "$as_me:$LINENO: WARNING: netinet/in_systm.h: see the Autoconf documentation" >&5 |
| 6250 | echo "$as_me: WARNING: netinet/in_systm.h: see the Autoconf documentation" >&2;} |
| 6251 | { echo "$as_me:$LINENO: WARNING: netinet/in_systm.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 6252 | echo "$as_me: WARNING: netinet/in_systm.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 6253 | { echo "$as_me:$LINENO: WARNING: netinet/in_systm.h: proceeding with the preprocessor's result" >&5 |
| 6254 | echo "$as_me: WARNING: netinet/in_systm.h: proceeding with the preprocessor's result" >&2;} |
| 6255 | { echo "$as_me:$LINENO: WARNING: netinet/in_systm.h: in the future, the compiler will take precedence" >&5 |
| 6256 | echo "$as_me: WARNING: netinet/in_systm.h: in the future, the compiler will take precedence" >&2;} |
| 6257 | |
| 6258 | ;; |
| 6259 | esac |
| 6260 | { echo "$as_me:$LINENO: checking for netinet/in_systm.h" >&5 |
| 6261 | echo $ECHO_N "checking for netinet/in_systm.h... $ECHO_C" >&6; } |
| 6262 | if test "${ac_cv_header_netinet_in_systm_h+set}" = set; then |
| 6263 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6264 | else |
| 6265 | ac_cv_header_netinet_in_systm_h=$ac_header_preproc |
| 6266 | fi |
| 6267 | { echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_systm_h" >&5 |
| 6268 | echo "${ECHO_T}$ac_cv_header_netinet_in_systm_h" >&6; } |
| 6269 | |
| 6270 | fi |
| 6271 | if test $ac_cv_header_netinet_in_systm_h = yes; then |
| 6272 | cat >>confdefs.h <<\_ACEOF |
| 6273 | #define PJ_HAS_NETINET_IN_SYSTM_H 1 |
| 6274 | _ACEOF |
Benny Prijono | 37fc9de | 2008-08-04 14:45:02 +0000 | [diff] [blame] | 6275 | |
| 6276 | fi |
| 6277 | |
| 6278 | |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 6279 | if test "${ac_cv_header_netinet_in_h+set}" = set; then |
| 6280 | { echo "$as_me:$LINENO: checking for netinet/in.h" >&5 |
| 6281 | echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6; } |
| 6282 | if test "${ac_cv_header_netinet_in_h+set}" = set; then |
| 6283 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6284 | fi |
| 6285 | { echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5 |
| 6286 | echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6; } |
| 6287 | else |
| 6288 | # Is the header compilable? |
| 6289 | { echo "$as_me:$LINENO: checking netinet/in.h usability" >&5 |
| 6290 | echo $ECHO_N "checking netinet/in.h usability... $ECHO_C" >&6; } |
| 6291 | cat >conftest.$ac_ext <<_ACEOF |
| 6292 | /* confdefs.h. */ |
| 6293 | _ACEOF |
| 6294 | cat confdefs.h >>conftest.$ac_ext |
| 6295 | cat >>conftest.$ac_ext <<_ACEOF |
| 6296 | /* end confdefs.h. */ |
| 6297 | $ac_includes_default |
| 6298 | #include <netinet/in.h> |
| 6299 | _ACEOF |
| 6300 | rm -f conftest.$ac_objext |
| 6301 | if { (ac_try="$ac_compile" |
| 6302 | case "(($ac_try" in |
| 6303 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6304 | *) ac_try_echo=$ac_try;; |
| 6305 | esac |
| 6306 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6307 | (eval "$ac_compile") 2>conftest.er1 |
| 6308 | ac_status=$? |
| 6309 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6310 | rm -f conftest.er1 |
| 6311 | cat conftest.err >&5 |
| 6312 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6313 | (exit $ac_status); } && { |
| 6314 | test -z "$ac_c_werror_flag" || |
| 6315 | test ! -s conftest.err |
| 6316 | } && test -s conftest.$ac_objext; then |
| 6317 | ac_header_compiler=yes |
| 6318 | else |
| 6319 | echo "$as_me: failed program was:" >&5 |
| 6320 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6321 | |
| 6322 | ac_header_compiler=no |
| 6323 | fi |
| 6324 | |
| 6325 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6326 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 6327 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 6328 | |
| 6329 | # Is the header present? |
| 6330 | { echo "$as_me:$LINENO: checking netinet/in.h presence" >&5 |
| 6331 | echo $ECHO_N "checking netinet/in.h presence... $ECHO_C" >&6; } |
| 6332 | cat >conftest.$ac_ext <<_ACEOF |
| 6333 | /* confdefs.h. */ |
| 6334 | _ACEOF |
| 6335 | cat confdefs.h >>conftest.$ac_ext |
| 6336 | cat >>conftest.$ac_ext <<_ACEOF |
| 6337 | /* end confdefs.h. */ |
| 6338 | #include <netinet/in.h> |
| 6339 | _ACEOF |
| 6340 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 6341 | case "(($ac_try" in |
| 6342 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6343 | *) ac_try_echo=$ac_try;; |
| 6344 | esac |
| 6345 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6346 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 6347 | ac_status=$? |
| 6348 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6349 | rm -f conftest.er1 |
| 6350 | cat conftest.err >&5 |
| 6351 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6352 | (exit $ac_status); } >/dev/null && { |
| 6353 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 6354 | test ! -s conftest.err |
| 6355 | }; then |
| 6356 | ac_header_preproc=yes |
| 6357 | else |
| 6358 | echo "$as_me: failed program was:" >&5 |
| 6359 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6360 | |
| 6361 | ac_header_preproc=no |
| 6362 | fi |
| 6363 | |
| 6364 | rm -f conftest.err conftest.$ac_ext |
| 6365 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 6366 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 6367 | |
| 6368 | # So? What about this header? |
| 6369 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 6370 | yes:no: ) |
| 6371 | { echo "$as_me:$LINENO: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 6372 | echo "$as_me: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 6373 | { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the compiler's result" >&5 |
| 6374 | echo "$as_me: WARNING: netinet/in.h: proceeding with the compiler's result" >&2;} |
| 6375 | ac_header_preproc=yes |
| 6376 | ;; |
| 6377 | no:yes:* ) |
| 6378 | { echo "$as_me:$LINENO: WARNING: netinet/in.h: present but cannot be compiled" >&5 |
| 6379 | echo "$as_me: WARNING: netinet/in.h: present but cannot be compiled" >&2;} |
| 6380 | { echo "$as_me:$LINENO: WARNING: netinet/in.h: check for missing prerequisite headers?" >&5 |
| 6381 | echo "$as_me: WARNING: netinet/in.h: check for missing prerequisite headers?" >&2;} |
| 6382 | { echo "$as_me:$LINENO: WARNING: netinet/in.h: see the Autoconf documentation" >&5 |
| 6383 | echo "$as_me: WARNING: netinet/in.h: see the Autoconf documentation" >&2;} |
| 6384 | { echo "$as_me:$LINENO: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 6385 | echo "$as_me: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 6386 | { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&5 |
| 6387 | echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&2;} |
| 6388 | { echo "$as_me:$LINENO: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&5 |
| 6389 | echo "$as_me: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&2;} |
| 6390 | |
| 6391 | ;; |
| 6392 | esac |
| 6393 | { echo "$as_me:$LINENO: checking for netinet/in.h" >&5 |
| 6394 | echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6; } |
| 6395 | if test "${ac_cv_header_netinet_in_h+set}" = set; then |
| 6396 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6397 | else |
| 6398 | ac_cv_header_netinet_in_h=$ac_header_preproc |
| 6399 | fi |
| 6400 | { echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5 |
| 6401 | echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6; } |
| 6402 | |
| 6403 | fi |
| 6404 | if test $ac_cv_header_netinet_in_h = yes; then |
| 6405 | cat >>confdefs.h <<\_ACEOF |
| 6406 | #define PJ_HAS_NETINET_IN_H 1 |
| 6407 | _ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6408 | |
| 6409 | fi |
| 6410 | |
| 6411 | |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 6412 | { echo "$as_me:$LINENO: checking for netinet/ip.h" >&5 |
| 6413 | echo $ECHO_N "checking for netinet/ip.h... $ECHO_C" >&6; } |
| 6414 | if test "${ac_cv_header_netinet_ip_h+set}" = set; then |
| 6415 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6416 | else |
| 6417 | cat >conftest.$ac_ext <<_ACEOF |
| 6418 | /* confdefs.h. */ |
| 6419 | _ACEOF |
| 6420 | cat confdefs.h >>conftest.$ac_ext |
| 6421 | cat >>conftest.$ac_ext <<_ACEOF |
| 6422 | /* end confdefs.h. */ |
| 6423 | #if PJ_HAS_SYS_TYPES_H |
Benny Prijono | d523370 | 2010-01-13 13:09:45 +0000 | [diff] [blame] | 6424 | # include <sys/types.h> |
| 6425 | #endif |
| 6426 | #if PJ_HAS_NETINET_IN_SYSTM_H |
Benny Prijono | 37fc9de | 2008-08-04 14:45:02 +0000 | [diff] [blame] | 6427 | # include <netinet/in_systm.h> |
| 6428 | #endif |
Benny Prijono | d523370 | 2010-01-13 13:09:45 +0000 | [diff] [blame] | 6429 | #if PJ_HAS_NETINET_IN_H |
| 6430 | # include <netinet/in.h> |
| 6431 | #endif |
Benny Prijono | 37fc9de | 2008-08-04 14:45:02 +0000 | [diff] [blame] | 6432 | |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 6433 | |
| 6434 | #include <netinet/ip.h> |
| 6435 | _ACEOF |
| 6436 | rm -f conftest.$ac_objext |
| 6437 | if { (ac_try="$ac_compile" |
| 6438 | case "(($ac_try" in |
| 6439 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6440 | *) ac_try_echo=$ac_try;; |
| 6441 | esac |
| 6442 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6443 | (eval "$ac_compile") 2>conftest.er1 |
| 6444 | ac_status=$? |
| 6445 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6446 | rm -f conftest.er1 |
| 6447 | cat conftest.err >&5 |
| 6448 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6449 | (exit $ac_status); } && { |
| 6450 | test -z "$ac_c_werror_flag" || |
| 6451 | test ! -s conftest.err |
| 6452 | } && test -s conftest.$ac_objext; then |
| 6453 | ac_cv_header_netinet_ip_h=yes |
| 6454 | else |
| 6455 | echo "$as_me: failed program was:" >&5 |
| 6456 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6457 | |
| 6458 | ac_cv_header_netinet_ip_h=no |
| 6459 | fi |
| 6460 | |
| 6461 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6462 | fi |
| 6463 | { echo "$as_me:$LINENO: result: $ac_cv_header_netinet_ip_h" >&5 |
| 6464 | echo "${ECHO_T}$ac_cv_header_netinet_ip_h" >&6; } |
| 6465 | if test $ac_cv_header_netinet_ip_h = yes; then |
| 6466 | cat >>confdefs.h <<\_ACEOF |
| 6467 | #define PJ_HAS_NETINET_IP_H 1 |
| 6468 | _ACEOF |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 6469 | |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 6470 | fi |
| 6471 | |
Benny Prijono | 46bd084 | 2010-02-12 14:12:41 +0000 | [diff] [blame] | 6472 | |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 6473 | if test "${ac_cv_header_netinet_tcp_h+set}" = set; then |
| 6474 | { echo "$as_me:$LINENO: checking for netinet/tcp.h" >&5 |
| 6475 | echo $ECHO_N "checking for netinet/tcp.h... $ECHO_C" >&6; } |
| 6476 | if test "${ac_cv_header_netinet_tcp_h+set}" = set; then |
| 6477 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6478 | fi |
| 6479 | { echo "$as_me:$LINENO: result: $ac_cv_header_netinet_tcp_h" >&5 |
| 6480 | echo "${ECHO_T}$ac_cv_header_netinet_tcp_h" >&6; } |
| 6481 | else |
| 6482 | # Is the header compilable? |
| 6483 | { echo "$as_me:$LINENO: checking netinet/tcp.h usability" >&5 |
| 6484 | echo $ECHO_N "checking netinet/tcp.h usability... $ECHO_C" >&6; } |
| 6485 | cat >conftest.$ac_ext <<_ACEOF |
| 6486 | /* confdefs.h. */ |
| 6487 | _ACEOF |
| 6488 | cat confdefs.h >>conftest.$ac_ext |
| 6489 | cat >>conftest.$ac_ext <<_ACEOF |
| 6490 | /* end confdefs.h. */ |
| 6491 | $ac_includes_default |
| 6492 | #include <netinet/tcp.h> |
| 6493 | _ACEOF |
| 6494 | rm -f conftest.$ac_objext |
| 6495 | if { (ac_try="$ac_compile" |
| 6496 | case "(($ac_try" in |
| 6497 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6498 | *) ac_try_echo=$ac_try;; |
| 6499 | esac |
| 6500 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6501 | (eval "$ac_compile") 2>conftest.er1 |
| 6502 | ac_status=$? |
| 6503 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6504 | rm -f conftest.er1 |
| 6505 | cat conftest.err >&5 |
| 6506 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6507 | (exit $ac_status); } && { |
| 6508 | test -z "$ac_c_werror_flag" || |
| 6509 | test ! -s conftest.err |
| 6510 | } && test -s conftest.$ac_objext; then |
| 6511 | ac_header_compiler=yes |
| 6512 | else |
| 6513 | echo "$as_me: failed program was:" >&5 |
| 6514 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6515 | |
| 6516 | ac_header_compiler=no |
| 6517 | fi |
| 6518 | |
| 6519 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6520 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 6521 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 6522 | |
| 6523 | # Is the header present? |
| 6524 | { echo "$as_me:$LINENO: checking netinet/tcp.h presence" >&5 |
| 6525 | echo $ECHO_N "checking netinet/tcp.h presence... $ECHO_C" >&6; } |
| 6526 | cat >conftest.$ac_ext <<_ACEOF |
| 6527 | /* confdefs.h. */ |
| 6528 | _ACEOF |
| 6529 | cat confdefs.h >>conftest.$ac_ext |
| 6530 | cat >>conftest.$ac_ext <<_ACEOF |
| 6531 | /* end confdefs.h. */ |
| 6532 | #include <netinet/tcp.h> |
| 6533 | _ACEOF |
| 6534 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 6535 | case "(($ac_try" in |
| 6536 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6537 | *) ac_try_echo=$ac_try;; |
| 6538 | esac |
| 6539 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6540 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 6541 | ac_status=$? |
| 6542 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6543 | rm -f conftest.er1 |
| 6544 | cat conftest.err >&5 |
| 6545 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6546 | (exit $ac_status); } >/dev/null && { |
| 6547 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 6548 | test ! -s conftest.err |
| 6549 | }; then |
| 6550 | ac_header_preproc=yes |
| 6551 | else |
| 6552 | echo "$as_me: failed program was:" >&5 |
| 6553 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6554 | |
| 6555 | ac_header_preproc=no |
| 6556 | fi |
| 6557 | |
| 6558 | rm -f conftest.err conftest.$ac_ext |
| 6559 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 6560 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 6561 | |
| 6562 | # So? What about this header? |
| 6563 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 6564 | yes:no: ) |
| 6565 | { echo "$as_me:$LINENO: WARNING: netinet/tcp.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 6566 | echo "$as_me: WARNING: netinet/tcp.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 6567 | { echo "$as_me:$LINENO: WARNING: netinet/tcp.h: proceeding with the compiler's result" >&5 |
| 6568 | echo "$as_me: WARNING: netinet/tcp.h: proceeding with the compiler's result" >&2;} |
| 6569 | ac_header_preproc=yes |
| 6570 | ;; |
| 6571 | no:yes:* ) |
| 6572 | { echo "$as_me:$LINENO: WARNING: netinet/tcp.h: present but cannot be compiled" >&5 |
| 6573 | echo "$as_me: WARNING: netinet/tcp.h: present but cannot be compiled" >&2;} |
| 6574 | { echo "$as_me:$LINENO: WARNING: netinet/tcp.h: check for missing prerequisite headers?" >&5 |
| 6575 | echo "$as_me: WARNING: netinet/tcp.h: check for missing prerequisite headers?" >&2;} |
| 6576 | { echo "$as_me:$LINENO: WARNING: netinet/tcp.h: see the Autoconf documentation" >&5 |
| 6577 | echo "$as_me: WARNING: netinet/tcp.h: see the Autoconf documentation" >&2;} |
| 6578 | { echo "$as_me:$LINENO: WARNING: netinet/tcp.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 6579 | echo "$as_me: WARNING: netinet/tcp.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 6580 | { echo "$as_me:$LINENO: WARNING: netinet/tcp.h: proceeding with the preprocessor's result" >&5 |
| 6581 | echo "$as_me: WARNING: netinet/tcp.h: proceeding with the preprocessor's result" >&2;} |
| 6582 | { echo "$as_me:$LINENO: WARNING: netinet/tcp.h: in the future, the compiler will take precedence" >&5 |
| 6583 | echo "$as_me: WARNING: netinet/tcp.h: in the future, the compiler will take precedence" >&2;} |
| 6584 | |
| 6585 | ;; |
| 6586 | esac |
| 6587 | { echo "$as_me:$LINENO: checking for netinet/tcp.h" >&5 |
| 6588 | echo $ECHO_N "checking for netinet/tcp.h... $ECHO_C" >&6; } |
| 6589 | if test "${ac_cv_header_netinet_tcp_h+set}" = set; then |
| 6590 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6591 | else |
| 6592 | ac_cv_header_netinet_tcp_h=$ac_header_preproc |
| 6593 | fi |
| 6594 | { echo "$as_me:$LINENO: result: $ac_cv_header_netinet_tcp_h" >&5 |
| 6595 | echo "${ECHO_T}$ac_cv_header_netinet_tcp_h" >&6; } |
| 6596 | |
| 6597 | fi |
| 6598 | if test $ac_cv_header_netinet_tcp_h = yes; then |
| 6599 | cat >>confdefs.h <<\_ACEOF |
| 6600 | #define PJ_HAS_NETINET_TCP_H 1 |
| 6601 | _ACEOF |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 6602 | |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 6603 | fi |
| 6604 | |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 6605 | |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 6606 | if test "${ac_cv_header_ifaddrs_h+set}" = set; then |
| 6607 | { echo "$as_me:$LINENO: checking for ifaddrs.h" >&5 |
| 6608 | echo $ECHO_N "checking for ifaddrs.h... $ECHO_C" >&6; } |
| 6609 | if test "${ac_cv_header_ifaddrs_h+set}" = set; then |
| 6610 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6611 | fi |
| 6612 | { echo "$as_me:$LINENO: result: $ac_cv_header_ifaddrs_h" >&5 |
| 6613 | echo "${ECHO_T}$ac_cv_header_ifaddrs_h" >&6; } |
| 6614 | else |
| 6615 | # Is the header compilable? |
| 6616 | { echo "$as_me:$LINENO: checking ifaddrs.h usability" >&5 |
| 6617 | echo $ECHO_N "checking ifaddrs.h usability... $ECHO_C" >&6; } |
| 6618 | cat >conftest.$ac_ext <<_ACEOF |
| 6619 | /* confdefs.h. */ |
| 6620 | _ACEOF |
| 6621 | cat confdefs.h >>conftest.$ac_ext |
| 6622 | cat >>conftest.$ac_ext <<_ACEOF |
| 6623 | /* end confdefs.h. */ |
| 6624 | $ac_includes_default |
| 6625 | #include <ifaddrs.h> |
| 6626 | _ACEOF |
| 6627 | rm -f conftest.$ac_objext |
| 6628 | if { (ac_try="$ac_compile" |
| 6629 | case "(($ac_try" in |
| 6630 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6631 | *) ac_try_echo=$ac_try;; |
| 6632 | esac |
| 6633 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6634 | (eval "$ac_compile") 2>conftest.er1 |
| 6635 | ac_status=$? |
| 6636 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6637 | rm -f conftest.er1 |
| 6638 | cat conftest.err >&5 |
| 6639 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6640 | (exit $ac_status); } && { |
| 6641 | test -z "$ac_c_werror_flag" || |
| 6642 | test ! -s conftest.err |
| 6643 | } && test -s conftest.$ac_objext; then |
| 6644 | ac_header_compiler=yes |
| 6645 | else |
| 6646 | echo "$as_me: failed program was:" >&5 |
| 6647 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6648 | |
| 6649 | ac_header_compiler=no |
| 6650 | fi |
| 6651 | |
| 6652 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6653 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 6654 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 6655 | |
| 6656 | # Is the header present? |
| 6657 | { echo "$as_me:$LINENO: checking ifaddrs.h presence" >&5 |
| 6658 | echo $ECHO_N "checking ifaddrs.h presence... $ECHO_C" >&6; } |
| 6659 | cat >conftest.$ac_ext <<_ACEOF |
| 6660 | /* confdefs.h. */ |
| 6661 | _ACEOF |
| 6662 | cat confdefs.h >>conftest.$ac_ext |
| 6663 | cat >>conftest.$ac_ext <<_ACEOF |
| 6664 | /* end confdefs.h. */ |
| 6665 | #include <ifaddrs.h> |
| 6666 | _ACEOF |
| 6667 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 6668 | case "(($ac_try" in |
| 6669 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6670 | *) ac_try_echo=$ac_try;; |
| 6671 | esac |
| 6672 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6673 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 6674 | ac_status=$? |
| 6675 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6676 | rm -f conftest.er1 |
| 6677 | cat conftest.err >&5 |
| 6678 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6679 | (exit $ac_status); } >/dev/null && { |
| 6680 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 6681 | test ! -s conftest.err |
| 6682 | }; then |
| 6683 | ac_header_preproc=yes |
| 6684 | else |
| 6685 | echo "$as_me: failed program was:" >&5 |
| 6686 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6687 | |
| 6688 | ac_header_preproc=no |
| 6689 | fi |
| 6690 | |
| 6691 | rm -f conftest.err conftest.$ac_ext |
| 6692 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 6693 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 6694 | |
| 6695 | # So? What about this header? |
| 6696 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 6697 | yes:no: ) |
| 6698 | { echo "$as_me:$LINENO: WARNING: ifaddrs.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 6699 | echo "$as_me: WARNING: ifaddrs.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 6700 | { echo "$as_me:$LINENO: WARNING: ifaddrs.h: proceeding with the compiler's result" >&5 |
| 6701 | echo "$as_me: WARNING: ifaddrs.h: proceeding with the compiler's result" >&2;} |
| 6702 | ac_header_preproc=yes |
| 6703 | ;; |
| 6704 | no:yes:* ) |
| 6705 | { echo "$as_me:$LINENO: WARNING: ifaddrs.h: present but cannot be compiled" >&5 |
| 6706 | echo "$as_me: WARNING: ifaddrs.h: present but cannot be compiled" >&2;} |
| 6707 | { echo "$as_me:$LINENO: WARNING: ifaddrs.h: check for missing prerequisite headers?" >&5 |
| 6708 | echo "$as_me: WARNING: ifaddrs.h: check for missing prerequisite headers?" >&2;} |
| 6709 | { echo "$as_me:$LINENO: WARNING: ifaddrs.h: see the Autoconf documentation" >&5 |
| 6710 | echo "$as_me: WARNING: ifaddrs.h: see the Autoconf documentation" >&2;} |
| 6711 | { echo "$as_me:$LINENO: WARNING: ifaddrs.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 6712 | echo "$as_me: WARNING: ifaddrs.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 6713 | { echo "$as_me:$LINENO: WARNING: ifaddrs.h: proceeding with the preprocessor's result" >&5 |
| 6714 | echo "$as_me: WARNING: ifaddrs.h: proceeding with the preprocessor's result" >&2;} |
| 6715 | { echo "$as_me:$LINENO: WARNING: ifaddrs.h: in the future, the compiler will take precedence" >&5 |
| 6716 | echo "$as_me: WARNING: ifaddrs.h: in the future, the compiler will take precedence" >&2;} |
| 6717 | |
| 6718 | ;; |
| 6719 | esac |
| 6720 | { echo "$as_me:$LINENO: checking for ifaddrs.h" >&5 |
| 6721 | echo $ECHO_N "checking for ifaddrs.h... $ECHO_C" >&6; } |
| 6722 | if test "${ac_cv_header_ifaddrs_h+set}" = set; then |
| 6723 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6724 | else |
| 6725 | ac_cv_header_ifaddrs_h=$ac_header_preproc |
| 6726 | fi |
| 6727 | { echo "$as_me:$LINENO: result: $ac_cv_header_ifaddrs_h" >&5 |
| 6728 | echo "${ECHO_T}$ac_cv_header_ifaddrs_h" >&6; } |
| 6729 | |
| 6730 | fi |
| 6731 | if test $ac_cv_header_ifaddrs_h = yes; then |
| 6732 | { echo "$as_me:$LINENO: checking for getifaddrs" >&5 |
| 6733 | echo $ECHO_N "checking for getifaddrs... $ECHO_C" >&6; } |
| 6734 | if test "${ac_cv_func_getifaddrs+set}" = set; then |
| 6735 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6736 | else |
| 6737 | cat >conftest.$ac_ext <<_ACEOF |
| 6738 | /* confdefs.h. */ |
| 6739 | _ACEOF |
| 6740 | cat confdefs.h >>conftest.$ac_ext |
| 6741 | cat >>conftest.$ac_ext <<_ACEOF |
| 6742 | /* end confdefs.h. */ |
| 6743 | /* Define getifaddrs to an innocuous variant, in case <limits.h> declares getifaddrs. |
| 6744 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 6745 | #define getifaddrs innocuous_getifaddrs |
| 6746 | |
| 6747 | /* System header to define __stub macros and hopefully few prototypes, |
| 6748 | which can conflict with char getifaddrs (); below. |
| 6749 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 6750 | <limits.h> exists even on freestanding compilers. */ |
| 6751 | |
| 6752 | #ifdef __STDC__ |
| 6753 | # include <limits.h> |
| 6754 | #else |
| 6755 | # include <assert.h> |
| 6756 | #endif |
| 6757 | |
| 6758 | #undef getifaddrs |
| 6759 | |
| 6760 | /* Override any GCC internal prototype to avoid an error. |
| 6761 | Use char because int might match the return type of a GCC |
| 6762 | builtin and then its argument prototype would still apply. */ |
| 6763 | #ifdef __cplusplus |
| 6764 | extern "C" |
| 6765 | #endif |
| 6766 | char getifaddrs (); |
| 6767 | /* The GNU C library defines this for functions which it implements |
| 6768 | to always fail with ENOSYS. Some functions are actually named |
| 6769 | something starting with __ and the normal name is an alias. */ |
| 6770 | #if defined __stub_getifaddrs || defined __stub___getifaddrs |
| 6771 | choke me |
| 6772 | #endif |
| 6773 | |
| 6774 | int |
| 6775 | main () |
| 6776 | { |
| 6777 | return getifaddrs (); |
| 6778 | ; |
| 6779 | return 0; |
| 6780 | } |
| 6781 | _ACEOF |
| 6782 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 6783 | if { (ac_try="$ac_link" |
| 6784 | case "(($ac_try" in |
| 6785 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6786 | *) ac_try_echo=$ac_try;; |
| 6787 | esac |
| 6788 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6789 | (eval "$ac_link") 2>conftest.er1 |
| 6790 | ac_status=$? |
| 6791 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6792 | rm -f conftest.er1 |
| 6793 | cat conftest.err >&5 |
| 6794 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6795 | (exit $ac_status); } && { |
| 6796 | test -z "$ac_c_werror_flag" || |
| 6797 | test ! -s conftest.err |
| 6798 | } && test -s conftest$ac_exeext && |
| 6799 | $as_test_x conftest$ac_exeext; then |
| 6800 | ac_cv_func_getifaddrs=yes |
| 6801 | else |
| 6802 | echo "$as_me: failed program was:" >&5 |
| 6803 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6804 | |
| 6805 | ac_cv_func_getifaddrs=no |
| 6806 | fi |
| 6807 | |
| 6808 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 6809 | conftest$ac_exeext conftest.$ac_ext |
| 6810 | fi |
| 6811 | { echo "$as_me:$LINENO: result: $ac_cv_func_getifaddrs" >&5 |
| 6812 | echo "${ECHO_T}$ac_cv_func_getifaddrs" >&6; } |
| 6813 | if test $ac_cv_func_getifaddrs = yes; then |
| 6814 | cat >>confdefs.h <<\_ACEOF |
| 6815 | #define PJ_HAS_IFADDRS_H 1 |
| 6816 | _ACEOF |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 6817 | |
| 6818 | fi |
Benny Prijono | 46bd084 | 2010-02-12 14:12:41 +0000 | [diff] [blame] | 6819 | |
Benny Prijono | 46bd084 | 2010-02-12 14:12:41 +0000 | [diff] [blame] | 6820 | fi |
| 6821 | |
Benny Prijono | 46bd084 | 2010-02-12 14:12:41 +0000 | [diff] [blame] | 6822 | |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 6823 | if test "${ac_cv_header_semaphore_h+set}" = set; then |
| 6824 | { echo "$as_me:$LINENO: checking for semaphore.h" >&5 |
| 6825 | echo $ECHO_N "checking for semaphore.h... $ECHO_C" >&6; } |
| 6826 | if test "${ac_cv_header_semaphore_h+set}" = set; then |
| 6827 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6828 | fi |
| 6829 | { echo "$as_me:$LINENO: result: $ac_cv_header_semaphore_h" >&5 |
| 6830 | echo "${ECHO_T}$ac_cv_header_semaphore_h" >&6; } |
| 6831 | else |
| 6832 | # Is the header compilable? |
| 6833 | { echo "$as_me:$LINENO: checking semaphore.h usability" >&5 |
| 6834 | echo $ECHO_N "checking semaphore.h usability... $ECHO_C" >&6; } |
| 6835 | cat >conftest.$ac_ext <<_ACEOF |
| 6836 | /* confdefs.h. */ |
| 6837 | _ACEOF |
| 6838 | cat confdefs.h >>conftest.$ac_ext |
| 6839 | cat >>conftest.$ac_ext <<_ACEOF |
| 6840 | /* end confdefs.h. */ |
| 6841 | $ac_includes_default |
| 6842 | #include <semaphore.h> |
| 6843 | _ACEOF |
| 6844 | rm -f conftest.$ac_objext |
| 6845 | if { (ac_try="$ac_compile" |
| 6846 | case "(($ac_try" in |
| 6847 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6848 | *) ac_try_echo=$ac_try;; |
| 6849 | esac |
| 6850 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6851 | (eval "$ac_compile") 2>conftest.er1 |
| 6852 | ac_status=$? |
| 6853 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6854 | rm -f conftest.er1 |
| 6855 | cat conftest.err >&5 |
| 6856 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6857 | (exit $ac_status); } && { |
| 6858 | test -z "$ac_c_werror_flag" || |
| 6859 | test ! -s conftest.err |
| 6860 | } && test -s conftest.$ac_objext; then |
| 6861 | ac_header_compiler=yes |
| 6862 | else |
| 6863 | echo "$as_me: failed program was:" >&5 |
| 6864 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6865 | |
| 6866 | ac_header_compiler=no |
| 6867 | fi |
| 6868 | |
| 6869 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6870 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 6871 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 6872 | |
| 6873 | # Is the header present? |
| 6874 | { echo "$as_me:$LINENO: checking semaphore.h presence" >&5 |
| 6875 | echo $ECHO_N "checking semaphore.h presence... $ECHO_C" >&6; } |
| 6876 | cat >conftest.$ac_ext <<_ACEOF |
| 6877 | /* confdefs.h. */ |
| 6878 | _ACEOF |
| 6879 | cat confdefs.h >>conftest.$ac_ext |
| 6880 | cat >>conftest.$ac_ext <<_ACEOF |
| 6881 | /* end confdefs.h. */ |
| 6882 | #include <semaphore.h> |
| 6883 | _ACEOF |
| 6884 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 6885 | case "(($ac_try" in |
| 6886 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6887 | *) ac_try_echo=$ac_try;; |
| 6888 | esac |
| 6889 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6890 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 6891 | ac_status=$? |
| 6892 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6893 | rm -f conftest.er1 |
| 6894 | cat conftest.err >&5 |
| 6895 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6896 | (exit $ac_status); } >/dev/null && { |
| 6897 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 6898 | test ! -s conftest.err |
| 6899 | }; then |
| 6900 | ac_header_preproc=yes |
| 6901 | else |
| 6902 | echo "$as_me: failed program was:" >&5 |
| 6903 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6904 | |
| 6905 | ac_header_preproc=no |
| 6906 | fi |
| 6907 | |
| 6908 | rm -f conftest.err conftest.$ac_ext |
| 6909 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 6910 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 6911 | |
| 6912 | # So? What about this header? |
| 6913 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 6914 | yes:no: ) |
| 6915 | { echo "$as_me:$LINENO: WARNING: semaphore.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 6916 | echo "$as_me: WARNING: semaphore.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 6917 | { echo "$as_me:$LINENO: WARNING: semaphore.h: proceeding with the compiler's result" >&5 |
| 6918 | echo "$as_me: WARNING: semaphore.h: proceeding with the compiler's result" >&2;} |
| 6919 | ac_header_preproc=yes |
| 6920 | ;; |
| 6921 | no:yes:* ) |
| 6922 | { echo "$as_me:$LINENO: WARNING: semaphore.h: present but cannot be compiled" >&5 |
| 6923 | echo "$as_me: WARNING: semaphore.h: present but cannot be compiled" >&2;} |
| 6924 | { echo "$as_me:$LINENO: WARNING: semaphore.h: check for missing prerequisite headers?" >&5 |
| 6925 | echo "$as_me: WARNING: semaphore.h: check for missing prerequisite headers?" >&2;} |
| 6926 | { echo "$as_me:$LINENO: WARNING: semaphore.h: see the Autoconf documentation" >&5 |
| 6927 | echo "$as_me: WARNING: semaphore.h: see the Autoconf documentation" >&2;} |
| 6928 | { echo "$as_me:$LINENO: WARNING: semaphore.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 6929 | echo "$as_me: WARNING: semaphore.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 6930 | { echo "$as_me:$LINENO: WARNING: semaphore.h: proceeding with the preprocessor's result" >&5 |
| 6931 | echo "$as_me: WARNING: semaphore.h: proceeding with the preprocessor's result" >&2;} |
| 6932 | { echo "$as_me:$LINENO: WARNING: semaphore.h: in the future, the compiler will take precedence" >&5 |
| 6933 | echo "$as_me: WARNING: semaphore.h: in the future, the compiler will take precedence" >&2;} |
| 6934 | |
| 6935 | ;; |
| 6936 | esac |
| 6937 | { echo "$as_me:$LINENO: checking for semaphore.h" >&5 |
| 6938 | echo $ECHO_N "checking for semaphore.h... $ECHO_C" >&6; } |
| 6939 | if test "${ac_cv_header_semaphore_h+set}" = set; then |
| 6940 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6941 | else |
| 6942 | ac_cv_header_semaphore_h=$ac_header_preproc |
| 6943 | fi |
| 6944 | { echo "$as_me:$LINENO: result: $ac_cv_header_semaphore_h" >&5 |
| 6945 | echo "${ECHO_T}$ac_cv_header_semaphore_h" >&6; } |
| 6946 | |
| 6947 | fi |
| 6948 | if test $ac_cv_header_semaphore_h = yes; then |
| 6949 | cat >>confdefs.h <<\_ACEOF |
| 6950 | #define PJ_HAS_SEMAPHORE_H 1 |
| 6951 | _ACEOF |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 6952 | |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 6953 | fi |
| 6954 | |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 6955 | |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 6956 | if test "${ac_cv_header_setjmp_h+set}" = set; then |
| 6957 | { echo "$as_me:$LINENO: checking for setjmp.h" >&5 |
| 6958 | echo $ECHO_N "checking for setjmp.h... $ECHO_C" >&6; } |
| 6959 | if test "${ac_cv_header_setjmp_h+set}" = set; then |
| 6960 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6961 | fi |
| 6962 | { echo "$as_me:$LINENO: result: $ac_cv_header_setjmp_h" >&5 |
| 6963 | echo "${ECHO_T}$ac_cv_header_setjmp_h" >&6; } |
| 6964 | else |
| 6965 | # Is the header compilable? |
| 6966 | { echo "$as_me:$LINENO: checking setjmp.h usability" >&5 |
| 6967 | echo $ECHO_N "checking setjmp.h usability... $ECHO_C" >&6; } |
| 6968 | cat >conftest.$ac_ext <<_ACEOF |
| 6969 | /* confdefs.h. */ |
| 6970 | _ACEOF |
| 6971 | cat confdefs.h >>conftest.$ac_ext |
| 6972 | cat >>conftest.$ac_ext <<_ACEOF |
| 6973 | /* end confdefs.h. */ |
| 6974 | $ac_includes_default |
| 6975 | #include <setjmp.h> |
| 6976 | _ACEOF |
| 6977 | rm -f conftest.$ac_objext |
| 6978 | if { (ac_try="$ac_compile" |
| 6979 | case "(($ac_try" in |
| 6980 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6981 | *) ac_try_echo=$ac_try;; |
| 6982 | esac |
| 6983 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6984 | (eval "$ac_compile") 2>conftest.er1 |
| 6985 | ac_status=$? |
| 6986 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6987 | rm -f conftest.er1 |
| 6988 | cat conftest.err >&5 |
| 6989 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6990 | (exit $ac_status); } && { |
| 6991 | test -z "$ac_c_werror_flag" || |
| 6992 | test ! -s conftest.err |
| 6993 | } && test -s conftest.$ac_objext; then |
| 6994 | ac_header_compiler=yes |
| 6995 | else |
| 6996 | echo "$as_me: failed program was:" >&5 |
| 6997 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6998 | |
| 6999 | ac_header_compiler=no |
| 7000 | fi |
| 7001 | |
| 7002 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7003 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 7004 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 7005 | |
| 7006 | # Is the header present? |
| 7007 | { echo "$as_me:$LINENO: checking setjmp.h presence" >&5 |
| 7008 | echo $ECHO_N "checking setjmp.h presence... $ECHO_C" >&6; } |
| 7009 | cat >conftest.$ac_ext <<_ACEOF |
| 7010 | /* confdefs.h. */ |
| 7011 | _ACEOF |
| 7012 | cat confdefs.h >>conftest.$ac_ext |
| 7013 | cat >>conftest.$ac_ext <<_ACEOF |
| 7014 | /* end confdefs.h. */ |
| 7015 | #include <setjmp.h> |
| 7016 | _ACEOF |
| 7017 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 7018 | case "(($ac_try" in |
| 7019 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7020 | *) ac_try_echo=$ac_try;; |
| 7021 | esac |
| 7022 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7023 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 7024 | ac_status=$? |
| 7025 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7026 | rm -f conftest.er1 |
| 7027 | cat conftest.err >&5 |
| 7028 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7029 | (exit $ac_status); } >/dev/null && { |
| 7030 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 7031 | test ! -s conftest.err |
| 7032 | }; then |
| 7033 | ac_header_preproc=yes |
| 7034 | else |
| 7035 | echo "$as_me: failed program was:" >&5 |
| 7036 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7037 | |
| 7038 | ac_header_preproc=no |
| 7039 | fi |
| 7040 | |
| 7041 | rm -f conftest.err conftest.$ac_ext |
| 7042 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 7043 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 7044 | |
| 7045 | # So? What about this header? |
| 7046 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 7047 | yes:no: ) |
| 7048 | { echo "$as_me:$LINENO: WARNING: setjmp.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 7049 | echo "$as_me: WARNING: setjmp.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 7050 | { echo "$as_me:$LINENO: WARNING: setjmp.h: proceeding with the compiler's result" >&5 |
| 7051 | echo "$as_me: WARNING: setjmp.h: proceeding with the compiler's result" >&2;} |
| 7052 | ac_header_preproc=yes |
| 7053 | ;; |
| 7054 | no:yes:* ) |
| 7055 | { echo "$as_me:$LINENO: WARNING: setjmp.h: present but cannot be compiled" >&5 |
| 7056 | echo "$as_me: WARNING: setjmp.h: present but cannot be compiled" >&2;} |
| 7057 | { echo "$as_me:$LINENO: WARNING: setjmp.h: check for missing prerequisite headers?" >&5 |
| 7058 | echo "$as_me: WARNING: setjmp.h: check for missing prerequisite headers?" >&2;} |
| 7059 | { echo "$as_me:$LINENO: WARNING: setjmp.h: see the Autoconf documentation" >&5 |
| 7060 | echo "$as_me: WARNING: setjmp.h: see the Autoconf documentation" >&2;} |
| 7061 | { echo "$as_me:$LINENO: WARNING: setjmp.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 7062 | echo "$as_me: WARNING: setjmp.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 7063 | { echo "$as_me:$LINENO: WARNING: setjmp.h: proceeding with the preprocessor's result" >&5 |
| 7064 | echo "$as_me: WARNING: setjmp.h: proceeding with the preprocessor's result" >&2;} |
| 7065 | { echo "$as_me:$LINENO: WARNING: setjmp.h: in the future, the compiler will take precedence" >&5 |
| 7066 | echo "$as_me: WARNING: setjmp.h: in the future, the compiler will take precedence" >&2;} |
| 7067 | |
| 7068 | ;; |
| 7069 | esac |
| 7070 | { echo "$as_me:$LINENO: checking for setjmp.h" >&5 |
| 7071 | echo $ECHO_N "checking for setjmp.h... $ECHO_C" >&6; } |
| 7072 | if test "${ac_cv_header_setjmp_h+set}" = set; then |
| 7073 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7074 | else |
| 7075 | ac_cv_header_setjmp_h=$ac_header_preproc |
| 7076 | fi |
| 7077 | { echo "$as_me:$LINENO: result: $ac_cv_header_setjmp_h" >&5 |
| 7078 | echo "${ECHO_T}$ac_cv_header_setjmp_h" >&6; } |
| 7079 | |
| 7080 | fi |
| 7081 | if test $ac_cv_header_setjmp_h = yes; then |
| 7082 | cat >>confdefs.h <<\_ACEOF |
| 7083 | #define PJ_HAS_SETJMP_H 1 |
| 7084 | _ACEOF |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 7085 | |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 7086 | fi |
| 7087 | |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 7088 | |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 7089 | if test "${ac_cv_header_stdarg_h+set}" = set; then |
| 7090 | { echo "$as_me:$LINENO: checking for stdarg.h" >&5 |
| 7091 | echo $ECHO_N "checking for stdarg.h... $ECHO_C" >&6; } |
| 7092 | if test "${ac_cv_header_stdarg_h+set}" = set; then |
| 7093 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7094 | fi |
| 7095 | { echo "$as_me:$LINENO: result: $ac_cv_header_stdarg_h" >&5 |
| 7096 | echo "${ECHO_T}$ac_cv_header_stdarg_h" >&6; } |
| 7097 | else |
| 7098 | # Is the header compilable? |
| 7099 | { echo "$as_me:$LINENO: checking stdarg.h usability" >&5 |
| 7100 | echo $ECHO_N "checking stdarg.h usability... $ECHO_C" >&6; } |
| 7101 | cat >conftest.$ac_ext <<_ACEOF |
| 7102 | /* confdefs.h. */ |
| 7103 | _ACEOF |
| 7104 | cat confdefs.h >>conftest.$ac_ext |
| 7105 | cat >>conftest.$ac_ext <<_ACEOF |
| 7106 | /* end confdefs.h. */ |
| 7107 | $ac_includes_default |
| 7108 | #include <stdarg.h> |
| 7109 | _ACEOF |
| 7110 | rm -f conftest.$ac_objext |
| 7111 | if { (ac_try="$ac_compile" |
| 7112 | case "(($ac_try" in |
| 7113 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7114 | *) ac_try_echo=$ac_try;; |
| 7115 | esac |
| 7116 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7117 | (eval "$ac_compile") 2>conftest.er1 |
| 7118 | ac_status=$? |
| 7119 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7120 | rm -f conftest.er1 |
| 7121 | cat conftest.err >&5 |
| 7122 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7123 | (exit $ac_status); } && { |
| 7124 | test -z "$ac_c_werror_flag" || |
| 7125 | test ! -s conftest.err |
| 7126 | } && test -s conftest.$ac_objext; then |
| 7127 | ac_header_compiler=yes |
| 7128 | else |
| 7129 | echo "$as_me: failed program was:" >&5 |
| 7130 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7131 | |
| 7132 | ac_header_compiler=no |
| 7133 | fi |
| 7134 | |
| 7135 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7136 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 7137 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 7138 | |
| 7139 | # Is the header present? |
| 7140 | { echo "$as_me:$LINENO: checking stdarg.h presence" >&5 |
| 7141 | echo $ECHO_N "checking stdarg.h presence... $ECHO_C" >&6; } |
| 7142 | cat >conftest.$ac_ext <<_ACEOF |
| 7143 | /* confdefs.h. */ |
| 7144 | _ACEOF |
| 7145 | cat confdefs.h >>conftest.$ac_ext |
| 7146 | cat >>conftest.$ac_ext <<_ACEOF |
| 7147 | /* end confdefs.h. */ |
| 7148 | #include <stdarg.h> |
| 7149 | _ACEOF |
| 7150 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 7151 | case "(($ac_try" in |
| 7152 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7153 | *) ac_try_echo=$ac_try;; |
| 7154 | esac |
| 7155 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7156 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 7157 | ac_status=$? |
| 7158 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7159 | rm -f conftest.er1 |
| 7160 | cat conftest.err >&5 |
| 7161 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7162 | (exit $ac_status); } >/dev/null && { |
| 7163 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 7164 | test ! -s conftest.err |
| 7165 | }; then |
| 7166 | ac_header_preproc=yes |
| 7167 | else |
| 7168 | echo "$as_me: failed program was:" >&5 |
| 7169 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7170 | |
| 7171 | ac_header_preproc=no |
| 7172 | fi |
| 7173 | |
| 7174 | rm -f conftest.err conftest.$ac_ext |
| 7175 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 7176 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 7177 | |
| 7178 | # So? What about this header? |
| 7179 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 7180 | yes:no: ) |
| 7181 | { echo "$as_me:$LINENO: WARNING: stdarg.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 7182 | echo "$as_me: WARNING: stdarg.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 7183 | { echo "$as_me:$LINENO: WARNING: stdarg.h: proceeding with the compiler's result" >&5 |
| 7184 | echo "$as_me: WARNING: stdarg.h: proceeding with the compiler's result" >&2;} |
| 7185 | ac_header_preproc=yes |
| 7186 | ;; |
| 7187 | no:yes:* ) |
| 7188 | { echo "$as_me:$LINENO: WARNING: stdarg.h: present but cannot be compiled" >&5 |
| 7189 | echo "$as_me: WARNING: stdarg.h: present but cannot be compiled" >&2;} |
| 7190 | { echo "$as_me:$LINENO: WARNING: stdarg.h: check for missing prerequisite headers?" >&5 |
| 7191 | echo "$as_me: WARNING: stdarg.h: check for missing prerequisite headers?" >&2;} |
| 7192 | { echo "$as_me:$LINENO: WARNING: stdarg.h: see the Autoconf documentation" >&5 |
| 7193 | echo "$as_me: WARNING: stdarg.h: see the Autoconf documentation" >&2;} |
| 7194 | { echo "$as_me:$LINENO: WARNING: stdarg.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 7195 | echo "$as_me: WARNING: stdarg.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 7196 | { echo "$as_me:$LINENO: WARNING: stdarg.h: proceeding with the preprocessor's result" >&5 |
| 7197 | echo "$as_me: WARNING: stdarg.h: proceeding with the preprocessor's result" >&2;} |
| 7198 | { echo "$as_me:$LINENO: WARNING: stdarg.h: in the future, the compiler will take precedence" >&5 |
| 7199 | echo "$as_me: WARNING: stdarg.h: in the future, the compiler will take precedence" >&2;} |
| 7200 | |
| 7201 | ;; |
| 7202 | esac |
| 7203 | { echo "$as_me:$LINENO: checking for stdarg.h" >&5 |
| 7204 | echo $ECHO_N "checking for stdarg.h... $ECHO_C" >&6; } |
| 7205 | if test "${ac_cv_header_stdarg_h+set}" = set; then |
| 7206 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7207 | else |
| 7208 | ac_cv_header_stdarg_h=$ac_header_preproc |
| 7209 | fi |
| 7210 | { echo "$as_me:$LINENO: result: $ac_cv_header_stdarg_h" >&5 |
| 7211 | echo "${ECHO_T}$ac_cv_header_stdarg_h" >&6; } |
| 7212 | |
| 7213 | fi |
| 7214 | if test $ac_cv_header_stdarg_h = yes; then |
| 7215 | cat >>confdefs.h <<\_ACEOF |
| 7216 | #define PJ_HAS_STDARG_H 1 |
| 7217 | _ACEOF |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 7218 | |
| 7219 | fi |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 7220 | |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 7221 | |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 7222 | if test "${ac_cv_header_stddef_h+set}" = set; then |
| 7223 | { echo "$as_me:$LINENO: checking for stddef.h" >&5 |
| 7224 | echo $ECHO_N "checking for stddef.h... $ECHO_C" >&6; } |
| 7225 | if test "${ac_cv_header_stddef_h+set}" = set; then |
| 7226 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7227 | fi |
| 7228 | { echo "$as_me:$LINENO: result: $ac_cv_header_stddef_h" >&5 |
| 7229 | echo "${ECHO_T}$ac_cv_header_stddef_h" >&6; } |
| 7230 | else |
| 7231 | # Is the header compilable? |
| 7232 | { echo "$as_me:$LINENO: checking stddef.h usability" >&5 |
| 7233 | echo $ECHO_N "checking stddef.h usability... $ECHO_C" >&6; } |
| 7234 | cat >conftest.$ac_ext <<_ACEOF |
| 7235 | /* confdefs.h. */ |
| 7236 | _ACEOF |
| 7237 | cat confdefs.h >>conftest.$ac_ext |
| 7238 | cat >>conftest.$ac_ext <<_ACEOF |
| 7239 | /* end confdefs.h. */ |
| 7240 | $ac_includes_default |
| 7241 | #include <stddef.h> |
| 7242 | _ACEOF |
| 7243 | rm -f conftest.$ac_objext |
| 7244 | if { (ac_try="$ac_compile" |
| 7245 | case "(($ac_try" in |
| 7246 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7247 | *) ac_try_echo=$ac_try;; |
| 7248 | esac |
| 7249 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7250 | (eval "$ac_compile") 2>conftest.er1 |
| 7251 | ac_status=$? |
| 7252 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7253 | rm -f conftest.er1 |
| 7254 | cat conftest.err >&5 |
| 7255 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7256 | (exit $ac_status); } && { |
| 7257 | test -z "$ac_c_werror_flag" || |
| 7258 | test ! -s conftest.err |
| 7259 | } && test -s conftest.$ac_objext; then |
| 7260 | ac_header_compiler=yes |
| 7261 | else |
| 7262 | echo "$as_me: failed program was:" >&5 |
| 7263 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7264 | |
| 7265 | ac_header_compiler=no |
| 7266 | fi |
| 7267 | |
| 7268 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7269 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 7270 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 7271 | |
| 7272 | # Is the header present? |
| 7273 | { echo "$as_me:$LINENO: checking stddef.h presence" >&5 |
| 7274 | echo $ECHO_N "checking stddef.h presence... $ECHO_C" >&6; } |
| 7275 | cat >conftest.$ac_ext <<_ACEOF |
| 7276 | /* confdefs.h. */ |
| 7277 | _ACEOF |
| 7278 | cat confdefs.h >>conftest.$ac_ext |
| 7279 | cat >>conftest.$ac_ext <<_ACEOF |
| 7280 | /* end confdefs.h. */ |
| 7281 | #include <stddef.h> |
| 7282 | _ACEOF |
| 7283 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 7284 | case "(($ac_try" in |
| 7285 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7286 | *) ac_try_echo=$ac_try;; |
| 7287 | esac |
| 7288 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7289 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 7290 | ac_status=$? |
| 7291 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7292 | rm -f conftest.er1 |
| 7293 | cat conftest.err >&5 |
| 7294 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7295 | (exit $ac_status); } >/dev/null && { |
| 7296 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 7297 | test ! -s conftest.err |
| 7298 | }; then |
| 7299 | ac_header_preproc=yes |
| 7300 | else |
| 7301 | echo "$as_me: failed program was:" >&5 |
| 7302 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7303 | |
| 7304 | ac_header_preproc=no |
| 7305 | fi |
| 7306 | |
| 7307 | rm -f conftest.err conftest.$ac_ext |
| 7308 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 7309 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 7310 | |
| 7311 | # So? What about this header? |
| 7312 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 7313 | yes:no: ) |
| 7314 | { echo "$as_me:$LINENO: WARNING: stddef.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 7315 | echo "$as_me: WARNING: stddef.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 7316 | { echo "$as_me:$LINENO: WARNING: stddef.h: proceeding with the compiler's result" >&5 |
| 7317 | echo "$as_me: WARNING: stddef.h: proceeding with the compiler's result" >&2;} |
| 7318 | ac_header_preproc=yes |
| 7319 | ;; |
| 7320 | no:yes:* ) |
| 7321 | { echo "$as_me:$LINENO: WARNING: stddef.h: present but cannot be compiled" >&5 |
| 7322 | echo "$as_me: WARNING: stddef.h: present but cannot be compiled" >&2;} |
| 7323 | { echo "$as_me:$LINENO: WARNING: stddef.h: check for missing prerequisite headers?" >&5 |
| 7324 | echo "$as_me: WARNING: stddef.h: check for missing prerequisite headers?" >&2;} |
| 7325 | { echo "$as_me:$LINENO: WARNING: stddef.h: see the Autoconf documentation" >&5 |
| 7326 | echo "$as_me: WARNING: stddef.h: see the Autoconf documentation" >&2;} |
| 7327 | { echo "$as_me:$LINENO: WARNING: stddef.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 7328 | echo "$as_me: WARNING: stddef.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 7329 | { echo "$as_me:$LINENO: WARNING: stddef.h: proceeding with the preprocessor's result" >&5 |
| 7330 | echo "$as_me: WARNING: stddef.h: proceeding with the preprocessor's result" >&2;} |
| 7331 | { echo "$as_me:$LINENO: WARNING: stddef.h: in the future, the compiler will take precedence" >&5 |
| 7332 | echo "$as_me: WARNING: stddef.h: in the future, the compiler will take precedence" >&2;} |
| 7333 | |
| 7334 | ;; |
| 7335 | esac |
| 7336 | { echo "$as_me:$LINENO: checking for stddef.h" >&5 |
| 7337 | echo $ECHO_N "checking for stddef.h... $ECHO_C" >&6; } |
| 7338 | if test "${ac_cv_header_stddef_h+set}" = set; then |
| 7339 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7340 | else |
| 7341 | ac_cv_header_stddef_h=$ac_header_preproc |
| 7342 | fi |
| 7343 | { echo "$as_me:$LINENO: result: $ac_cv_header_stddef_h" >&5 |
| 7344 | echo "${ECHO_T}$ac_cv_header_stddef_h" >&6; } |
| 7345 | |
| 7346 | fi |
| 7347 | if test $ac_cv_header_stddef_h = yes; then |
| 7348 | cat >>confdefs.h <<\_ACEOF |
| 7349 | #define PJ_HAS_STDDEF_H 1 |
| 7350 | _ACEOF |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 7351 | |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 7352 | fi |
| 7353 | |
Benny Prijono | 46bd084 | 2010-02-12 14:12:41 +0000 | [diff] [blame] | 7354 | |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 7355 | if test "${ac_cv_header_stdio_h+set}" = set; then |
| 7356 | { echo "$as_me:$LINENO: checking for stdio.h" >&5 |
| 7357 | echo $ECHO_N "checking for stdio.h... $ECHO_C" >&6; } |
| 7358 | if test "${ac_cv_header_stdio_h+set}" = set; then |
| 7359 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7360 | fi |
| 7361 | { echo "$as_me:$LINENO: result: $ac_cv_header_stdio_h" >&5 |
| 7362 | echo "${ECHO_T}$ac_cv_header_stdio_h" >&6; } |
| 7363 | else |
| 7364 | # Is the header compilable? |
| 7365 | { echo "$as_me:$LINENO: checking stdio.h usability" >&5 |
| 7366 | echo $ECHO_N "checking stdio.h usability... $ECHO_C" >&6; } |
| 7367 | cat >conftest.$ac_ext <<_ACEOF |
| 7368 | /* confdefs.h. */ |
| 7369 | _ACEOF |
| 7370 | cat confdefs.h >>conftest.$ac_ext |
| 7371 | cat >>conftest.$ac_ext <<_ACEOF |
| 7372 | /* end confdefs.h. */ |
| 7373 | $ac_includes_default |
| 7374 | #include <stdio.h> |
| 7375 | _ACEOF |
| 7376 | rm -f conftest.$ac_objext |
| 7377 | if { (ac_try="$ac_compile" |
| 7378 | case "(($ac_try" in |
| 7379 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7380 | *) ac_try_echo=$ac_try;; |
| 7381 | esac |
| 7382 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7383 | (eval "$ac_compile") 2>conftest.er1 |
| 7384 | ac_status=$? |
| 7385 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7386 | rm -f conftest.er1 |
| 7387 | cat conftest.err >&5 |
| 7388 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7389 | (exit $ac_status); } && { |
| 7390 | test -z "$ac_c_werror_flag" || |
| 7391 | test ! -s conftest.err |
| 7392 | } && test -s conftest.$ac_objext; then |
| 7393 | ac_header_compiler=yes |
| 7394 | else |
| 7395 | echo "$as_me: failed program was:" >&5 |
| 7396 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7397 | |
| 7398 | ac_header_compiler=no |
| 7399 | fi |
| 7400 | |
| 7401 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7402 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 7403 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 7404 | |
| 7405 | # Is the header present? |
| 7406 | { echo "$as_me:$LINENO: checking stdio.h presence" >&5 |
| 7407 | echo $ECHO_N "checking stdio.h presence... $ECHO_C" >&6; } |
| 7408 | cat >conftest.$ac_ext <<_ACEOF |
| 7409 | /* confdefs.h. */ |
| 7410 | _ACEOF |
| 7411 | cat confdefs.h >>conftest.$ac_ext |
| 7412 | cat >>conftest.$ac_ext <<_ACEOF |
| 7413 | /* end confdefs.h. */ |
| 7414 | #include <stdio.h> |
| 7415 | _ACEOF |
| 7416 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 7417 | case "(($ac_try" in |
| 7418 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7419 | *) ac_try_echo=$ac_try;; |
| 7420 | esac |
| 7421 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7422 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 7423 | ac_status=$? |
| 7424 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7425 | rm -f conftest.er1 |
| 7426 | cat conftest.err >&5 |
| 7427 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7428 | (exit $ac_status); } >/dev/null && { |
| 7429 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 7430 | test ! -s conftest.err |
| 7431 | }; then |
| 7432 | ac_header_preproc=yes |
| 7433 | else |
| 7434 | echo "$as_me: failed program was:" >&5 |
| 7435 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7436 | |
| 7437 | ac_header_preproc=no |
| 7438 | fi |
| 7439 | |
| 7440 | rm -f conftest.err conftest.$ac_ext |
| 7441 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 7442 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 7443 | |
| 7444 | # So? What about this header? |
| 7445 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 7446 | yes:no: ) |
| 7447 | { echo "$as_me:$LINENO: WARNING: stdio.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 7448 | echo "$as_me: WARNING: stdio.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 7449 | { echo "$as_me:$LINENO: WARNING: stdio.h: proceeding with the compiler's result" >&5 |
| 7450 | echo "$as_me: WARNING: stdio.h: proceeding with the compiler's result" >&2;} |
| 7451 | ac_header_preproc=yes |
| 7452 | ;; |
| 7453 | no:yes:* ) |
| 7454 | { echo "$as_me:$LINENO: WARNING: stdio.h: present but cannot be compiled" >&5 |
| 7455 | echo "$as_me: WARNING: stdio.h: present but cannot be compiled" >&2;} |
| 7456 | { echo "$as_me:$LINENO: WARNING: stdio.h: check for missing prerequisite headers?" >&5 |
| 7457 | echo "$as_me: WARNING: stdio.h: check for missing prerequisite headers?" >&2;} |
| 7458 | { echo "$as_me:$LINENO: WARNING: stdio.h: see the Autoconf documentation" >&5 |
| 7459 | echo "$as_me: WARNING: stdio.h: see the Autoconf documentation" >&2;} |
| 7460 | { echo "$as_me:$LINENO: WARNING: stdio.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 7461 | echo "$as_me: WARNING: stdio.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 7462 | { echo "$as_me:$LINENO: WARNING: stdio.h: proceeding with the preprocessor's result" >&5 |
| 7463 | echo "$as_me: WARNING: stdio.h: proceeding with the preprocessor's result" >&2;} |
| 7464 | { echo "$as_me:$LINENO: WARNING: stdio.h: in the future, the compiler will take precedence" >&5 |
| 7465 | echo "$as_me: WARNING: stdio.h: in the future, the compiler will take precedence" >&2;} |
| 7466 | |
| 7467 | ;; |
| 7468 | esac |
| 7469 | { echo "$as_me:$LINENO: checking for stdio.h" >&5 |
| 7470 | echo $ECHO_N "checking for stdio.h... $ECHO_C" >&6; } |
| 7471 | if test "${ac_cv_header_stdio_h+set}" = set; then |
| 7472 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7473 | else |
| 7474 | ac_cv_header_stdio_h=$ac_header_preproc |
| 7475 | fi |
| 7476 | { echo "$as_me:$LINENO: result: $ac_cv_header_stdio_h" >&5 |
| 7477 | echo "${ECHO_T}$ac_cv_header_stdio_h" >&6; } |
| 7478 | |
| 7479 | fi |
| 7480 | if test $ac_cv_header_stdio_h = yes; then |
| 7481 | cat >>confdefs.h <<\_ACEOF |
| 7482 | #define PJ_HAS_STDIO_H 1 |
| 7483 | _ACEOF |
Benny Prijono | 46bd084 | 2010-02-12 14:12:41 +0000 | [diff] [blame] | 7484 | |
Benny Prijono | 5bbebc0 | 2010-06-15 05:21:43 +0000 | [diff] [blame] | 7485 | fi |
| 7486 | |
Benny Prijono | 46bd084 | 2010-02-12 14:12:41 +0000 | [diff] [blame] | 7487 | |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 7488 | if test "${ac_cv_header_stdint_h+set}" = set; then |
| 7489 | { echo "$as_me:$LINENO: checking for stdint.h" >&5 |
| 7490 | echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6; } |
| 7491 | if test "${ac_cv_header_stdint_h+set}" = set; then |
| 7492 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7493 | fi |
| 7494 | { echo "$as_me:$LINENO: result: $ac_cv_header_stdint_h" >&5 |
| 7495 | echo "${ECHO_T}$ac_cv_header_stdint_h" >&6; } |
| 7496 | else |
| 7497 | # Is the header compilable? |
| 7498 | { echo "$as_me:$LINENO: checking stdint.h usability" >&5 |
| 7499 | echo $ECHO_N "checking stdint.h usability... $ECHO_C" >&6; } |
| 7500 | cat >conftest.$ac_ext <<_ACEOF |
| 7501 | /* confdefs.h. */ |
| 7502 | _ACEOF |
| 7503 | cat confdefs.h >>conftest.$ac_ext |
| 7504 | cat >>conftest.$ac_ext <<_ACEOF |
| 7505 | /* end confdefs.h. */ |
| 7506 | $ac_includes_default |
| 7507 | #include <stdint.h> |
| 7508 | _ACEOF |
| 7509 | rm -f conftest.$ac_objext |
| 7510 | if { (ac_try="$ac_compile" |
| 7511 | case "(($ac_try" in |
| 7512 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7513 | *) ac_try_echo=$ac_try;; |
| 7514 | esac |
| 7515 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7516 | (eval "$ac_compile") 2>conftest.er1 |
| 7517 | ac_status=$? |
| 7518 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7519 | rm -f conftest.er1 |
| 7520 | cat conftest.err >&5 |
| 7521 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7522 | (exit $ac_status); } && { |
| 7523 | test -z "$ac_c_werror_flag" || |
| 7524 | test ! -s conftest.err |
| 7525 | } && test -s conftest.$ac_objext; then |
| 7526 | ac_header_compiler=yes |
| 7527 | else |
| 7528 | echo "$as_me: failed program was:" >&5 |
| 7529 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7530 | |
| 7531 | ac_header_compiler=no |
| 7532 | fi |
| 7533 | |
| 7534 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7535 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 7536 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 7537 | |
| 7538 | # Is the header present? |
| 7539 | { echo "$as_me:$LINENO: checking stdint.h presence" >&5 |
| 7540 | echo $ECHO_N "checking stdint.h presence... $ECHO_C" >&6; } |
| 7541 | cat >conftest.$ac_ext <<_ACEOF |
| 7542 | /* confdefs.h. */ |
| 7543 | _ACEOF |
| 7544 | cat confdefs.h >>conftest.$ac_ext |
| 7545 | cat >>conftest.$ac_ext <<_ACEOF |
| 7546 | /* end confdefs.h. */ |
| 7547 | #include <stdint.h> |
| 7548 | _ACEOF |
| 7549 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 7550 | case "(($ac_try" in |
| 7551 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7552 | *) ac_try_echo=$ac_try;; |
| 7553 | esac |
| 7554 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7555 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 7556 | ac_status=$? |
| 7557 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7558 | rm -f conftest.er1 |
| 7559 | cat conftest.err >&5 |
| 7560 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7561 | (exit $ac_status); } >/dev/null && { |
| 7562 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 7563 | test ! -s conftest.err |
| 7564 | }; then |
| 7565 | ac_header_preproc=yes |
| 7566 | else |
| 7567 | echo "$as_me: failed program was:" >&5 |
| 7568 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7569 | |
| 7570 | ac_header_preproc=no |
| 7571 | fi |
| 7572 | |
| 7573 | rm -f conftest.err conftest.$ac_ext |
| 7574 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 7575 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 7576 | |
| 7577 | # So? What about this header? |
| 7578 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 7579 | yes:no: ) |
| 7580 | { echo "$as_me:$LINENO: WARNING: stdint.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 7581 | echo "$as_me: WARNING: stdint.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 7582 | { echo "$as_me:$LINENO: WARNING: stdint.h: proceeding with the compiler's result" >&5 |
| 7583 | echo "$as_me: WARNING: stdint.h: proceeding with the compiler's result" >&2;} |
| 7584 | ac_header_preproc=yes |
| 7585 | ;; |
| 7586 | no:yes:* ) |
| 7587 | { echo "$as_me:$LINENO: WARNING: stdint.h: present but cannot be compiled" >&5 |
| 7588 | echo "$as_me: WARNING: stdint.h: present but cannot be compiled" >&2;} |
| 7589 | { echo "$as_me:$LINENO: WARNING: stdint.h: check for missing prerequisite headers?" >&5 |
| 7590 | echo "$as_me: WARNING: stdint.h: check for missing prerequisite headers?" >&2;} |
| 7591 | { echo "$as_me:$LINENO: WARNING: stdint.h: see the Autoconf documentation" >&5 |
| 7592 | echo "$as_me: WARNING: stdint.h: see the Autoconf documentation" >&2;} |
| 7593 | { echo "$as_me:$LINENO: WARNING: stdint.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 7594 | echo "$as_me: WARNING: stdint.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 7595 | { echo "$as_me:$LINENO: WARNING: stdint.h: proceeding with the preprocessor's result" >&5 |
| 7596 | echo "$as_me: WARNING: stdint.h: proceeding with the preprocessor's result" >&2;} |
| 7597 | { echo "$as_me:$LINENO: WARNING: stdint.h: in the future, the compiler will take precedence" >&5 |
| 7598 | echo "$as_me: WARNING: stdint.h: in the future, the compiler will take precedence" >&2;} |
| 7599 | |
| 7600 | ;; |
| 7601 | esac |
| 7602 | { echo "$as_me:$LINENO: checking for stdint.h" >&5 |
| 7603 | echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6; } |
| 7604 | if test "${ac_cv_header_stdint_h+set}" = set; then |
| 7605 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7606 | else |
| 7607 | ac_cv_header_stdint_h=$ac_header_preproc |
| 7608 | fi |
| 7609 | { echo "$as_me:$LINENO: result: $ac_cv_header_stdint_h" >&5 |
| 7610 | echo "${ECHO_T}$ac_cv_header_stdint_h" >&6; } |
| 7611 | |
| 7612 | fi |
| 7613 | if test $ac_cv_header_stdint_h = yes; then |
| 7614 | cat >>confdefs.h <<\_ACEOF |
| 7615 | #define PJ_HAS_STDINT_H 1 |
| 7616 | _ACEOF |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 7617 | |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 7618 | fi |
| 7619 | |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 7620 | |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 7621 | if test "${ac_cv_header_stdlib_h+set}" = set; then |
| 7622 | { echo "$as_me:$LINENO: checking for stdlib.h" >&5 |
| 7623 | echo $ECHO_N "checking for stdlib.h... $ECHO_C" >&6; } |
| 7624 | if test "${ac_cv_header_stdlib_h+set}" = set; then |
| 7625 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7626 | fi |
| 7627 | { echo "$as_me:$LINENO: result: $ac_cv_header_stdlib_h" >&5 |
| 7628 | echo "${ECHO_T}$ac_cv_header_stdlib_h" >&6; } |
| 7629 | else |
| 7630 | # Is the header compilable? |
| 7631 | { echo "$as_me:$LINENO: checking stdlib.h usability" >&5 |
| 7632 | echo $ECHO_N "checking stdlib.h usability... $ECHO_C" >&6; } |
| 7633 | cat >conftest.$ac_ext <<_ACEOF |
| 7634 | /* confdefs.h. */ |
| 7635 | _ACEOF |
| 7636 | cat confdefs.h >>conftest.$ac_ext |
| 7637 | cat >>conftest.$ac_ext <<_ACEOF |
| 7638 | /* end confdefs.h. */ |
| 7639 | $ac_includes_default |
| 7640 | #include <stdlib.h> |
| 7641 | _ACEOF |
| 7642 | rm -f conftest.$ac_objext |
| 7643 | if { (ac_try="$ac_compile" |
| 7644 | case "(($ac_try" in |
| 7645 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7646 | *) ac_try_echo=$ac_try;; |
| 7647 | esac |
| 7648 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7649 | (eval "$ac_compile") 2>conftest.er1 |
| 7650 | ac_status=$? |
| 7651 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7652 | rm -f conftest.er1 |
| 7653 | cat conftest.err >&5 |
| 7654 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7655 | (exit $ac_status); } && { |
| 7656 | test -z "$ac_c_werror_flag" || |
| 7657 | test ! -s conftest.err |
| 7658 | } && test -s conftest.$ac_objext; then |
| 7659 | ac_header_compiler=yes |
| 7660 | else |
| 7661 | echo "$as_me: failed program was:" >&5 |
| 7662 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7663 | |
| 7664 | ac_header_compiler=no |
| 7665 | fi |
| 7666 | |
| 7667 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7668 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 7669 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 7670 | |
| 7671 | # Is the header present? |
| 7672 | { echo "$as_me:$LINENO: checking stdlib.h presence" >&5 |
| 7673 | echo $ECHO_N "checking stdlib.h presence... $ECHO_C" >&6; } |
| 7674 | cat >conftest.$ac_ext <<_ACEOF |
| 7675 | /* confdefs.h. */ |
| 7676 | _ACEOF |
| 7677 | cat confdefs.h >>conftest.$ac_ext |
| 7678 | cat >>conftest.$ac_ext <<_ACEOF |
| 7679 | /* end confdefs.h. */ |
| 7680 | #include <stdlib.h> |
| 7681 | _ACEOF |
| 7682 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 7683 | case "(($ac_try" in |
| 7684 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7685 | *) ac_try_echo=$ac_try;; |
| 7686 | esac |
| 7687 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7688 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 7689 | ac_status=$? |
| 7690 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7691 | rm -f conftest.er1 |
| 7692 | cat conftest.err >&5 |
| 7693 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7694 | (exit $ac_status); } >/dev/null && { |
| 7695 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 7696 | test ! -s conftest.err |
| 7697 | }; then |
| 7698 | ac_header_preproc=yes |
| 7699 | else |
| 7700 | echo "$as_me: failed program was:" >&5 |
| 7701 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7702 | |
| 7703 | ac_header_preproc=no |
| 7704 | fi |
| 7705 | |
| 7706 | rm -f conftest.err conftest.$ac_ext |
| 7707 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 7708 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 7709 | |
| 7710 | # So? What about this header? |
| 7711 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 7712 | yes:no: ) |
| 7713 | { echo "$as_me:$LINENO: WARNING: stdlib.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 7714 | echo "$as_me: WARNING: stdlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 7715 | { echo "$as_me:$LINENO: WARNING: stdlib.h: proceeding with the compiler's result" >&5 |
| 7716 | echo "$as_me: WARNING: stdlib.h: proceeding with the compiler's result" >&2;} |
| 7717 | ac_header_preproc=yes |
| 7718 | ;; |
| 7719 | no:yes:* ) |
| 7720 | { echo "$as_me:$LINENO: WARNING: stdlib.h: present but cannot be compiled" >&5 |
| 7721 | echo "$as_me: WARNING: stdlib.h: present but cannot be compiled" >&2;} |
| 7722 | { echo "$as_me:$LINENO: WARNING: stdlib.h: check for missing prerequisite headers?" >&5 |
| 7723 | echo "$as_me: WARNING: stdlib.h: check for missing prerequisite headers?" >&2;} |
| 7724 | { echo "$as_me:$LINENO: WARNING: stdlib.h: see the Autoconf documentation" >&5 |
| 7725 | echo "$as_me: WARNING: stdlib.h: see the Autoconf documentation" >&2;} |
| 7726 | { echo "$as_me:$LINENO: WARNING: stdlib.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 7727 | echo "$as_me: WARNING: stdlib.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 7728 | { echo "$as_me:$LINENO: WARNING: stdlib.h: proceeding with the preprocessor's result" >&5 |
| 7729 | echo "$as_me: WARNING: stdlib.h: proceeding with the preprocessor's result" >&2;} |
| 7730 | { echo "$as_me:$LINENO: WARNING: stdlib.h: in the future, the compiler will take precedence" >&5 |
| 7731 | echo "$as_me: WARNING: stdlib.h: in the future, the compiler will take precedence" >&2;} |
| 7732 | |
| 7733 | ;; |
| 7734 | esac |
| 7735 | { echo "$as_me:$LINENO: checking for stdlib.h" >&5 |
| 7736 | echo $ECHO_N "checking for stdlib.h... $ECHO_C" >&6; } |
| 7737 | if test "${ac_cv_header_stdlib_h+set}" = set; then |
| 7738 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7739 | else |
| 7740 | ac_cv_header_stdlib_h=$ac_header_preproc |
| 7741 | fi |
| 7742 | { echo "$as_me:$LINENO: result: $ac_cv_header_stdlib_h" >&5 |
| 7743 | echo "${ECHO_T}$ac_cv_header_stdlib_h" >&6; } |
| 7744 | |
| 7745 | fi |
| 7746 | if test $ac_cv_header_stdlib_h = yes; then |
| 7747 | cat >>confdefs.h <<\_ACEOF |
| 7748 | #define PJ_HAS_STDLIB_H 1 |
| 7749 | _ACEOF |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 7750 | |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 7751 | fi |
| 7752 | |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 7753 | |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 7754 | if test "${ac_cv_header_string_h+set}" = set; then |
| 7755 | { echo "$as_me:$LINENO: checking for string.h" >&5 |
| 7756 | echo $ECHO_N "checking for string.h... $ECHO_C" >&6; } |
| 7757 | if test "${ac_cv_header_string_h+set}" = set; then |
| 7758 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7759 | fi |
| 7760 | { echo "$as_me:$LINENO: result: $ac_cv_header_string_h" >&5 |
| 7761 | echo "${ECHO_T}$ac_cv_header_string_h" >&6; } |
| 7762 | else |
| 7763 | # Is the header compilable? |
| 7764 | { echo "$as_me:$LINENO: checking string.h usability" >&5 |
| 7765 | echo $ECHO_N "checking string.h usability... $ECHO_C" >&6; } |
| 7766 | cat >conftest.$ac_ext <<_ACEOF |
| 7767 | /* confdefs.h. */ |
| 7768 | _ACEOF |
| 7769 | cat confdefs.h >>conftest.$ac_ext |
| 7770 | cat >>conftest.$ac_ext <<_ACEOF |
| 7771 | /* end confdefs.h. */ |
| 7772 | $ac_includes_default |
| 7773 | #include <string.h> |
| 7774 | _ACEOF |
| 7775 | rm -f conftest.$ac_objext |
| 7776 | if { (ac_try="$ac_compile" |
| 7777 | case "(($ac_try" in |
| 7778 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7779 | *) ac_try_echo=$ac_try;; |
| 7780 | esac |
| 7781 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7782 | (eval "$ac_compile") 2>conftest.er1 |
| 7783 | ac_status=$? |
| 7784 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7785 | rm -f conftest.er1 |
| 7786 | cat conftest.err >&5 |
| 7787 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7788 | (exit $ac_status); } && { |
| 7789 | test -z "$ac_c_werror_flag" || |
| 7790 | test ! -s conftest.err |
| 7791 | } && test -s conftest.$ac_objext; then |
| 7792 | ac_header_compiler=yes |
| 7793 | else |
| 7794 | echo "$as_me: failed program was:" >&5 |
| 7795 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7796 | |
| 7797 | ac_header_compiler=no |
| 7798 | fi |
| 7799 | |
| 7800 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7801 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 7802 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 7803 | |
| 7804 | # Is the header present? |
| 7805 | { echo "$as_me:$LINENO: checking string.h presence" >&5 |
| 7806 | echo $ECHO_N "checking string.h presence... $ECHO_C" >&6; } |
| 7807 | cat >conftest.$ac_ext <<_ACEOF |
| 7808 | /* confdefs.h. */ |
| 7809 | _ACEOF |
| 7810 | cat confdefs.h >>conftest.$ac_ext |
| 7811 | cat >>conftest.$ac_ext <<_ACEOF |
| 7812 | /* end confdefs.h. */ |
| 7813 | #include <string.h> |
| 7814 | _ACEOF |
| 7815 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 7816 | case "(($ac_try" in |
| 7817 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7818 | *) ac_try_echo=$ac_try;; |
| 7819 | esac |
| 7820 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7821 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 7822 | ac_status=$? |
| 7823 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7824 | rm -f conftest.er1 |
| 7825 | cat conftest.err >&5 |
| 7826 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7827 | (exit $ac_status); } >/dev/null && { |
| 7828 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 7829 | test ! -s conftest.err |
| 7830 | }; then |
| 7831 | ac_header_preproc=yes |
| 7832 | else |
| 7833 | echo "$as_me: failed program was:" >&5 |
| 7834 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7835 | |
| 7836 | ac_header_preproc=no |
| 7837 | fi |
| 7838 | |
| 7839 | rm -f conftest.err conftest.$ac_ext |
| 7840 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 7841 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 7842 | |
| 7843 | # So? What about this header? |
| 7844 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 7845 | yes:no: ) |
| 7846 | { echo "$as_me:$LINENO: WARNING: string.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 7847 | echo "$as_me: WARNING: string.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 7848 | { echo "$as_me:$LINENO: WARNING: string.h: proceeding with the compiler's result" >&5 |
| 7849 | echo "$as_me: WARNING: string.h: proceeding with the compiler's result" >&2;} |
| 7850 | ac_header_preproc=yes |
| 7851 | ;; |
| 7852 | no:yes:* ) |
| 7853 | { echo "$as_me:$LINENO: WARNING: string.h: present but cannot be compiled" >&5 |
| 7854 | echo "$as_me: WARNING: string.h: present but cannot be compiled" >&2;} |
| 7855 | { echo "$as_me:$LINENO: WARNING: string.h: check for missing prerequisite headers?" >&5 |
| 7856 | echo "$as_me: WARNING: string.h: check for missing prerequisite headers?" >&2;} |
| 7857 | { echo "$as_me:$LINENO: WARNING: string.h: see the Autoconf documentation" >&5 |
| 7858 | echo "$as_me: WARNING: string.h: see the Autoconf documentation" >&2;} |
| 7859 | { echo "$as_me:$LINENO: WARNING: string.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 7860 | echo "$as_me: WARNING: string.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 7861 | { echo "$as_me:$LINENO: WARNING: string.h: proceeding with the preprocessor's result" >&5 |
| 7862 | echo "$as_me: WARNING: string.h: proceeding with the preprocessor's result" >&2;} |
| 7863 | { echo "$as_me:$LINENO: WARNING: string.h: in the future, the compiler will take precedence" >&5 |
| 7864 | echo "$as_me: WARNING: string.h: in the future, the compiler will take precedence" >&2;} |
| 7865 | |
| 7866 | ;; |
| 7867 | esac |
| 7868 | { echo "$as_me:$LINENO: checking for string.h" >&5 |
| 7869 | echo $ECHO_N "checking for string.h... $ECHO_C" >&6; } |
| 7870 | if test "${ac_cv_header_string_h+set}" = set; then |
| 7871 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7872 | else |
| 7873 | ac_cv_header_string_h=$ac_header_preproc |
| 7874 | fi |
| 7875 | { echo "$as_me:$LINENO: result: $ac_cv_header_string_h" >&5 |
| 7876 | echo "${ECHO_T}$ac_cv_header_string_h" >&6; } |
| 7877 | |
| 7878 | fi |
| 7879 | if test $ac_cv_header_string_h = yes; then |
| 7880 | cat >>confdefs.h <<\_ACEOF |
| 7881 | #define PJ_HAS_STRING_H 1 |
| 7882 | _ACEOF |
Benny Prijono | 1d61ba5 | 2009-10-24 00:00:40 +0000 | [diff] [blame] | 7883 | |
Benny Prijono | 1d61ba5 | 2009-10-24 00:00:40 +0000 | [diff] [blame] | 7884 | fi |
| 7885 | |
Benny Prijono | 1d61ba5 | 2009-10-24 00:00:40 +0000 | [diff] [blame] | 7886 | |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 7887 | if test "${ac_cv_header_sys_ioctl_h+set}" = set; then |
| 7888 | { echo "$as_me:$LINENO: checking for sys/ioctl.h" >&5 |
| 7889 | echo $ECHO_N "checking for sys/ioctl.h... $ECHO_C" >&6; } |
| 7890 | if test "${ac_cv_header_sys_ioctl_h+set}" = set; then |
| 7891 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7892 | fi |
| 7893 | { echo "$as_me:$LINENO: result: $ac_cv_header_sys_ioctl_h" >&5 |
| 7894 | echo "${ECHO_T}$ac_cv_header_sys_ioctl_h" >&6; } |
| 7895 | else |
| 7896 | # Is the header compilable? |
| 7897 | { echo "$as_me:$LINENO: checking sys/ioctl.h usability" >&5 |
| 7898 | echo $ECHO_N "checking sys/ioctl.h usability... $ECHO_C" >&6; } |
| 7899 | cat >conftest.$ac_ext <<_ACEOF |
| 7900 | /* confdefs.h. */ |
| 7901 | _ACEOF |
| 7902 | cat confdefs.h >>conftest.$ac_ext |
| 7903 | cat >>conftest.$ac_ext <<_ACEOF |
| 7904 | /* end confdefs.h. */ |
| 7905 | $ac_includes_default |
| 7906 | #include <sys/ioctl.h> |
| 7907 | _ACEOF |
| 7908 | rm -f conftest.$ac_objext |
| 7909 | if { (ac_try="$ac_compile" |
| 7910 | case "(($ac_try" in |
| 7911 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7912 | *) ac_try_echo=$ac_try;; |
| 7913 | esac |
| 7914 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7915 | (eval "$ac_compile") 2>conftest.er1 |
| 7916 | ac_status=$? |
| 7917 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7918 | rm -f conftest.er1 |
| 7919 | cat conftest.err >&5 |
| 7920 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7921 | (exit $ac_status); } && { |
| 7922 | test -z "$ac_c_werror_flag" || |
| 7923 | test ! -s conftest.err |
| 7924 | } && test -s conftest.$ac_objext; then |
| 7925 | ac_header_compiler=yes |
| 7926 | else |
| 7927 | echo "$as_me: failed program was:" >&5 |
| 7928 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7929 | |
| 7930 | ac_header_compiler=no |
| 7931 | fi |
| 7932 | |
| 7933 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7934 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 7935 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 7936 | |
| 7937 | # Is the header present? |
| 7938 | { echo "$as_me:$LINENO: checking sys/ioctl.h presence" >&5 |
| 7939 | echo $ECHO_N "checking sys/ioctl.h presence... $ECHO_C" >&6; } |
| 7940 | cat >conftest.$ac_ext <<_ACEOF |
| 7941 | /* confdefs.h. */ |
| 7942 | _ACEOF |
| 7943 | cat confdefs.h >>conftest.$ac_ext |
| 7944 | cat >>conftest.$ac_ext <<_ACEOF |
| 7945 | /* end confdefs.h. */ |
| 7946 | #include <sys/ioctl.h> |
| 7947 | _ACEOF |
| 7948 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 7949 | case "(($ac_try" in |
| 7950 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7951 | *) ac_try_echo=$ac_try;; |
| 7952 | esac |
| 7953 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7954 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 7955 | ac_status=$? |
| 7956 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7957 | rm -f conftest.er1 |
| 7958 | cat conftest.err >&5 |
| 7959 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7960 | (exit $ac_status); } >/dev/null && { |
| 7961 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 7962 | test ! -s conftest.err |
| 7963 | }; then |
| 7964 | ac_header_preproc=yes |
| 7965 | else |
| 7966 | echo "$as_me: failed program was:" >&5 |
| 7967 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7968 | |
| 7969 | ac_header_preproc=no |
| 7970 | fi |
| 7971 | |
| 7972 | rm -f conftest.err conftest.$ac_ext |
| 7973 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 7974 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 7975 | |
| 7976 | # So? What about this header? |
| 7977 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 7978 | yes:no: ) |
| 7979 | { echo "$as_me:$LINENO: WARNING: sys/ioctl.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 7980 | echo "$as_me: WARNING: sys/ioctl.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 7981 | { echo "$as_me:$LINENO: WARNING: sys/ioctl.h: proceeding with the compiler's result" >&5 |
| 7982 | echo "$as_me: WARNING: sys/ioctl.h: proceeding with the compiler's result" >&2;} |
| 7983 | ac_header_preproc=yes |
| 7984 | ;; |
| 7985 | no:yes:* ) |
| 7986 | { echo "$as_me:$LINENO: WARNING: sys/ioctl.h: present but cannot be compiled" >&5 |
| 7987 | echo "$as_me: WARNING: sys/ioctl.h: present but cannot be compiled" >&2;} |
| 7988 | { echo "$as_me:$LINENO: WARNING: sys/ioctl.h: check for missing prerequisite headers?" >&5 |
| 7989 | echo "$as_me: WARNING: sys/ioctl.h: check for missing prerequisite headers?" >&2;} |
| 7990 | { echo "$as_me:$LINENO: WARNING: sys/ioctl.h: see the Autoconf documentation" >&5 |
| 7991 | echo "$as_me: WARNING: sys/ioctl.h: see the Autoconf documentation" >&2;} |
| 7992 | { echo "$as_me:$LINENO: WARNING: sys/ioctl.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 7993 | echo "$as_me: WARNING: sys/ioctl.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 7994 | { echo "$as_me:$LINENO: WARNING: sys/ioctl.h: proceeding with the preprocessor's result" >&5 |
| 7995 | echo "$as_me: WARNING: sys/ioctl.h: proceeding with the preprocessor's result" >&2;} |
| 7996 | { echo "$as_me:$LINENO: WARNING: sys/ioctl.h: in the future, the compiler will take precedence" >&5 |
| 7997 | echo "$as_me: WARNING: sys/ioctl.h: in the future, the compiler will take precedence" >&2;} |
| 7998 | |
| 7999 | ;; |
| 8000 | esac |
| 8001 | { echo "$as_me:$LINENO: checking for sys/ioctl.h" >&5 |
| 8002 | echo $ECHO_N "checking for sys/ioctl.h... $ECHO_C" >&6; } |
| 8003 | if test "${ac_cv_header_sys_ioctl_h+set}" = set; then |
| 8004 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8005 | else |
| 8006 | ac_cv_header_sys_ioctl_h=$ac_header_preproc |
| 8007 | fi |
| 8008 | { echo "$as_me:$LINENO: result: $ac_cv_header_sys_ioctl_h" >&5 |
| 8009 | echo "${ECHO_T}$ac_cv_header_sys_ioctl_h" >&6; } |
| 8010 | |
| 8011 | fi |
| 8012 | if test $ac_cv_header_sys_ioctl_h = yes; then |
| 8013 | cat >>confdefs.h <<\_ACEOF |
| 8014 | #define PJ_HAS_SYS_IOCTL_H 1 |
| 8015 | _ACEOF |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 8016 | |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 8017 | fi |
| 8018 | |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 8019 | |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 8020 | if test "${ac_cv_header_sys_select_h+set}" = set; then |
| 8021 | { echo "$as_me:$LINENO: checking for sys/select.h" >&5 |
| 8022 | echo $ECHO_N "checking for sys/select.h... $ECHO_C" >&6; } |
| 8023 | if test "${ac_cv_header_sys_select_h+set}" = set; then |
| 8024 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8025 | fi |
| 8026 | { echo "$as_me:$LINENO: result: $ac_cv_header_sys_select_h" >&5 |
| 8027 | echo "${ECHO_T}$ac_cv_header_sys_select_h" >&6; } |
| 8028 | else |
| 8029 | # Is the header compilable? |
| 8030 | { echo "$as_me:$LINENO: checking sys/select.h usability" >&5 |
| 8031 | echo $ECHO_N "checking sys/select.h usability... $ECHO_C" >&6; } |
| 8032 | cat >conftest.$ac_ext <<_ACEOF |
| 8033 | /* confdefs.h. */ |
| 8034 | _ACEOF |
| 8035 | cat confdefs.h >>conftest.$ac_ext |
| 8036 | cat >>conftest.$ac_ext <<_ACEOF |
| 8037 | /* end confdefs.h. */ |
| 8038 | $ac_includes_default |
| 8039 | #include <sys/select.h> |
| 8040 | _ACEOF |
| 8041 | rm -f conftest.$ac_objext |
| 8042 | if { (ac_try="$ac_compile" |
| 8043 | case "(($ac_try" in |
| 8044 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8045 | *) ac_try_echo=$ac_try;; |
| 8046 | esac |
| 8047 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8048 | (eval "$ac_compile") 2>conftest.er1 |
| 8049 | ac_status=$? |
| 8050 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8051 | rm -f conftest.er1 |
| 8052 | cat conftest.err >&5 |
| 8053 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8054 | (exit $ac_status); } && { |
| 8055 | test -z "$ac_c_werror_flag" || |
| 8056 | test ! -s conftest.err |
| 8057 | } && test -s conftest.$ac_objext; then |
| 8058 | ac_header_compiler=yes |
| 8059 | else |
| 8060 | echo "$as_me: failed program was:" >&5 |
| 8061 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8062 | |
| 8063 | ac_header_compiler=no |
| 8064 | fi |
| 8065 | |
| 8066 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 8067 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 8068 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 8069 | |
| 8070 | # Is the header present? |
| 8071 | { echo "$as_me:$LINENO: checking sys/select.h presence" >&5 |
| 8072 | echo $ECHO_N "checking sys/select.h presence... $ECHO_C" >&6; } |
| 8073 | cat >conftest.$ac_ext <<_ACEOF |
| 8074 | /* confdefs.h. */ |
| 8075 | _ACEOF |
| 8076 | cat confdefs.h >>conftest.$ac_ext |
| 8077 | cat >>conftest.$ac_ext <<_ACEOF |
| 8078 | /* end confdefs.h. */ |
| 8079 | #include <sys/select.h> |
| 8080 | _ACEOF |
| 8081 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 8082 | case "(($ac_try" in |
| 8083 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8084 | *) ac_try_echo=$ac_try;; |
| 8085 | esac |
| 8086 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8087 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 8088 | ac_status=$? |
| 8089 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8090 | rm -f conftest.er1 |
| 8091 | cat conftest.err >&5 |
| 8092 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8093 | (exit $ac_status); } >/dev/null && { |
| 8094 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 8095 | test ! -s conftest.err |
| 8096 | }; then |
| 8097 | ac_header_preproc=yes |
| 8098 | else |
| 8099 | echo "$as_me: failed program was:" >&5 |
| 8100 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8101 | |
| 8102 | ac_header_preproc=no |
| 8103 | fi |
| 8104 | |
| 8105 | rm -f conftest.err conftest.$ac_ext |
| 8106 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 8107 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 8108 | |
| 8109 | # So? What about this header? |
| 8110 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 8111 | yes:no: ) |
| 8112 | { echo "$as_me:$LINENO: WARNING: sys/select.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 8113 | echo "$as_me: WARNING: sys/select.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 8114 | { echo "$as_me:$LINENO: WARNING: sys/select.h: proceeding with the compiler's result" >&5 |
| 8115 | echo "$as_me: WARNING: sys/select.h: proceeding with the compiler's result" >&2;} |
| 8116 | ac_header_preproc=yes |
| 8117 | ;; |
| 8118 | no:yes:* ) |
| 8119 | { echo "$as_me:$LINENO: WARNING: sys/select.h: present but cannot be compiled" >&5 |
| 8120 | echo "$as_me: WARNING: sys/select.h: present but cannot be compiled" >&2;} |
| 8121 | { echo "$as_me:$LINENO: WARNING: sys/select.h: check for missing prerequisite headers?" >&5 |
| 8122 | echo "$as_me: WARNING: sys/select.h: check for missing prerequisite headers?" >&2;} |
| 8123 | { echo "$as_me:$LINENO: WARNING: sys/select.h: see the Autoconf documentation" >&5 |
| 8124 | echo "$as_me: WARNING: sys/select.h: see the Autoconf documentation" >&2;} |
| 8125 | { echo "$as_me:$LINENO: WARNING: sys/select.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 8126 | echo "$as_me: WARNING: sys/select.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 8127 | { echo "$as_me:$LINENO: WARNING: sys/select.h: proceeding with the preprocessor's result" >&5 |
| 8128 | echo "$as_me: WARNING: sys/select.h: proceeding with the preprocessor's result" >&2;} |
| 8129 | { echo "$as_me:$LINENO: WARNING: sys/select.h: in the future, the compiler will take precedence" >&5 |
| 8130 | echo "$as_me: WARNING: sys/select.h: in the future, the compiler will take precedence" >&2;} |
| 8131 | |
| 8132 | ;; |
| 8133 | esac |
| 8134 | { echo "$as_me:$LINENO: checking for sys/select.h" >&5 |
| 8135 | echo $ECHO_N "checking for sys/select.h... $ECHO_C" >&6; } |
| 8136 | if test "${ac_cv_header_sys_select_h+set}" = set; then |
| 8137 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8138 | else |
| 8139 | ac_cv_header_sys_select_h=$ac_header_preproc |
| 8140 | fi |
| 8141 | { echo "$as_me:$LINENO: result: $ac_cv_header_sys_select_h" >&5 |
| 8142 | echo "${ECHO_T}$ac_cv_header_sys_select_h" >&6; } |
| 8143 | |
| 8144 | fi |
| 8145 | if test $ac_cv_header_sys_select_h = yes; then |
| 8146 | cat >>confdefs.h <<\_ACEOF |
| 8147 | #define PJ_HAS_SYS_SELECT_H 1 |
| 8148 | _ACEOF |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 8149 | |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 8150 | fi |
| 8151 | |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 8152 | |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 8153 | if test "${ac_cv_header_sys_socket_h+set}" = set; then |
| 8154 | { echo "$as_me:$LINENO: checking for sys/socket.h" >&5 |
| 8155 | echo $ECHO_N "checking for sys/socket.h... $ECHO_C" >&6; } |
| 8156 | if test "${ac_cv_header_sys_socket_h+set}" = set; then |
| 8157 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8158 | fi |
| 8159 | { echo "$as_me:$LINENO: result: $ac_cv_header_sys_socket_h" >&5 |
| 8160 | echo "${ECHO_T}$ac_cv_header_sys_socket_h" >&6; } |
| 8161 | else |
| 8162 | # Is the header compilable? |
| 8163 | { echo "$as_me:$LINENO: checking sys/socket.h usability" >&5 |
| 8164 | echo $ECHO_N "checking sys/socket.h usability... $ECHO_C" >&6; } |
| 8165 | cat >conftest.$ac_ext <<_ACEOF |
| 8166 | /* confdefs.h. */ |
| 8167 | _ACEOF |
| 8168 | cat confdefs.h >>conftest.$ac_ext |
| 8169 | cat >>conftest.$ac_ext <<_ACEOF |
| 8170 | /* end confdefs.h. */ |
| 8171 | $ac_includes_default |
| 8172 | #include <sys/socket.h> |
| 8173 | _ACEOF |
| 8174 | rm -f conftest.$ac_objext |
| 8175 | if { (ac_try="$ac_compile" |
| 8176 | case "(($ac_try" in |
| 8177 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8178 | *) ac_try_echo=$ac_try;; |
| 8179 | esac |
| 8180 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8181 | (eval "$ac_compile") 2>conftest.er1 |
| 8182 | ac_status=$? |
| 8183 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8184 | rm -f conftest.er1 |
| 8185 | cat conftest.err >&5 |
| 8186 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8187 | (exit $ac_status); } && { |
| 8188 | test -z "$ac_c_werror_flag" || |
| 8189 | test ! -s conftest.err |
| 8190 | } && test -s conftest.$ac_objext; then |
| 8191 | ac_header_compiler=yes |
| 8192 | else |
| 8193 | echo "$as_me: failed program was:" >&5 |
| 8194 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8195 | |
| 8196 | ac_header_compiler=no |
| 8197 | fi |
| 8198 | |
| 8199 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 8200 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 8201 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 8202 | |
| 8203 | # Is the header present? |
| 8204 | { echo "$as_me:$LINENO: checking sys/socket.h presence" >&5 |
| 8205 | echo $ECHO_N "checking sys/socket.h presence... $ECHO_C" >&6; } |
| 8206 | cat >conftest.$ac_ext <<_ACEOF |
| 8207 | /* confdefs.h. */ |
| 8208 | _ACEOF |
| 8209 | cat confdefs.h >>conftest.$ac_ext |
| 8210 | cat >>conftest.$ac_ext <<_ACEOF |
| 8211 | /* end confdefs.h. */ |
| 8212 | #include <sys/socket.h> |
| 8213 | _ACEOF |
| 8214 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 8215 | case "(($ac_try" in |
| 8216 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8217 | *) ac_try_echo=$ac_try;; |
| 8218 | esac |
| 8219 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8220 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 8221 | ac_status=$? |
| 8222 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8223 | rm -f conftest.er1 |
| 8224 | cat conftest.err >&5 |
| 8225 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8226 | (exit $ac_status); } >/dev/null && { |
| 8227 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 8228 | test ! -s conftest.err |
| 8229 | }; then |
| 8230 | ac_header_preproc=yes |
| 8231 | else |
| 8232 | echo "$as_me: failed program was:" >&5 |
| 8233 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8234 | |
| 8235 | ac_header_preproc=no |
| 8236 | fi |
| 8237 | |
| 8238 | rm -f conftest.err conftest.$ac_ext |
| 8239 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 8240 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 8241 | |
| 8242 | # So? What about this header? |
| 8243 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 8244 | yes:no: ) |
| 8245 | { echo "$as_me:$LINENO: WARNING: sys/socket.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 8246 | echo "$as_me: WARNING: sys/socket.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 8247 | { echo "$as_me:$LINENO: WARNING: sys/socket.h: proceeding with the compiler's result" >&5 |
| 8248 | echo "$as_me: WARNING: sys/socket.h: proceeding with the compiler's result" >&2;} |
| 8249 | ac_header_preproc=yes |
| 8250 | ;; |
| 8251 | no:yes:* ) |
| 8252 | { echo "$as_me:$LINENO: WARNING: sys/socket.h: present but cannot be compiled" >&5 |
| 8253 | echo "$as_me: WARNING: sys/socket.h: present but cannot be compiled" >&2;} |
| 8254 | { echo "$as_me:$LINENO: WARNING: sys/socket.h: check for missing prerequisite headers?" >&5 |
| 8255 | echo "$as_me: WARNING: sys/socket.h: check for missing prerequisite headers?" >&2;} |
| 8256 | { echo "$as_me:$LINENO: WARNING: sys/socket.h: see the Autoconf documentation" >&5 |
| 8257 | echo "$as_me: WARNING: sys/socket.h: see the Autoconf documentation" >&2;} |
| 8258 | { echo "$as_me:$LINENO: WARNING: sys/socket.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 8259 | echo "$as_me: WARNING: sys/socket.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 8260 | { echo "$as_me:$LINENO: WARNING: sys/socket.h: proceeding with the preprocessor's result" >&5 |
| 8261 | echo "$as_me: WARNING: sys/socket.h: proceeding with the preprocessor's result" >&2;} |
| 8262 | { echo "$as_me:$LINENO: WARNING: sys/socket.h: in the future, the compiler will take precedence" >&5 |
| 8263 | echo "$as_me: WARNING: sys/socket.h: in the future, the compiler will take precedence" >&2;} |
| 8264 | |
| 8265 | ;; |
| 8266 | esac |
| 8267 | { echo "$as_me:$LINENO: checking for sys/socket.h" >&5 |
| 8268 | echo $ECHO_N "checking for sys/socket.h... $ECHO_C" >&6; } |
| 8269 | if test "${ac_cv_header_sys_socket_h+set}" = set; then |
| 8270 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8271 | else |
| 8272 | ac_cv_header_sys_socket_h=$ac_header_preproc |
| 8273 | fi |
| 8274 | { echo "$as_me:$LINENO: result: $ac_cv_header_sys_socket_h" >&5 |
| 8275 | echo "${ECHO_T}$ac_cv_header_sys_socket_h" >&6; } |
| 8276 | |
| 8277 | fi |
| 8278 | if test $ac_cv_header_sys_socket_h = yes; then |
| 8279 | cat >>confdefs.h <<\_ACEOF |
| 8280 | #define PJ_HAS_SYS_SOCKET_H 1 |
| 8281 | _ACEOF |
Benny Prijono | 46bd084 | 2010-02-12 14:12:41 +0000 | [diff] [blame] | 8282 | |
Benny Prijono | 46bd084 | 2010-02-12 14:12:41 +0000 | [diff] [blame] | 8283 | fi |
| 8284 | |
Benny Prijono | 46bd084 | 2010-02-12 14:12:41 +0000 | [diff] [blame] | 8285 | |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 8286 | if test "${ac_cv_header_sys_time_h+set}" = set; then |
| 8287 | { echo "$as_me:$LINENO: checking for sys/time.h" >&5 |
| 8288 | echo $ECHO_N "checking for sys/time.h... $ECHO_C" >&6; } |
| 8289 | if test "${ac_cv_header_sys_time_h+set}" = set; then |
| 8290 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8291 | fi |
| 8292 | { echo "$as_me:$LINENO: result: $ac_cv_header_sys_time_h" >&5 |
| 8293 | echo "${ECHO_T}$ac_cv_header_sys_time_h" >&6; } |
| 8294 | else |
| 8295 | # Is the header compilable? |
| 8296 | { echo "$as_me:$LINENO: checking sys/time.h usability" >&5 |
| 8297 | echo $ECHO_N "checking sys/time.h usability... $ECHO_C" >&6; } |
| 8298 | cat >conftest.$ac_ext <<_ACEOF |
| 8299 | /* confdefs.h. */ |
| 8300 | _ACEOF |
| 8301 | cat confdefs.h >>conftest.$ac_ext |
| 8302 | cat >>conftest.$ac_ext <<_ACEOF |
| 8303 | /* end confdefs.h. */ |
| 8304 | $ac_includes_default |
| 8305 | #include <sys/time.h> |
| 8306 | _ACEOF |
| 8307 | rm -f conftest.$ac_objext |
| 8308 | if { (ac_try="$ac_compile" |
| 8309 | case "(($ac_try" in |
| 8310 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8311 | *) ac_try_echo=$ac_try;; |
| 8312 | esac |
| 8313 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8314 | (eval "$ac_compile") 2>conftest.er1 |
| 8315 | ac_status=$? |
| 8316 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8317 | rm -f conftest.er1 |
| 8318 | cat conftest.err >&5 |
| 8319 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8320 | (exit $ac_status); } && { |
| 8321 | test -z "$ac_c_werror_flag" || |
| 8322 | test ! -s conftest.err |
| 8323 | } && test -s conftest.$ac_objext; then |
| 8324 | ac_header_compiler=yes |
| 8325 | else |
| 8326 | echo "$as_me: failed program was:" >&5 |
| 8327 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8328 | |
| 8329 | ac_header_compiler=no |
| 8330 | fi |
| 8331 | |
| 8332 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 8333 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 8334 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 8335 | |
| 8336 | # Is the header present? |
| 8337 | { echo "$as_me:$LINENO: checking sys/time.h presence" >&5 |
| 8338 | echo $ECHO_N "checking sys/time.h presence... $ECHO_C" >&6; } |
| 8339 | cat >conftest.$ac_ext <<_ACEOF |
| 8340 | /* confdefs.h. */ |
| 8341 | _ACEOF |
| 8342 | cat confdefs.h >>conftest.$ac_ext |
| 8343 | cat >>conftest.$ac_ext <<_ACEOF |
| 8344 | /* end confdefs.h. */ |
| 8345 | #include <sys/time.h> |
| 8346 | _ACEOF |
| 8347 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 8348 | case "(($ac_try" in |
| 8349 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8350 | *) ac_try_echo=$ac_try;; |
| 8351 | esac |
| 8352 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8353 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 8354 | ac_status=$? |
| 8355 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8356 | rm -f conftest.er1 |
| 8357 | cat conftest.err >&5 |
| 8358 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8359 | (exit $ac_status); } >/dev/null && { |
| 8360 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 8361 | test ! -s conftest.err |
| 8362 | }; then |
| 8363 | ac_header_preproc=yes |
| 8364 | else |
| 8365 | echo "$as_me: failed program was:" >&5 |
| 8366 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8367 | |
| 8368 | ac_header_preproc=no |
| 8369 | fi |
| 8370 | |
| 8371 | rm -f conftest.err conftest.$ac_ext |
| 8372 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 8373 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 8374 | |
| 8375 | # So? What about this header? |
| 8376 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 8377 | yes:no: ) |
| 8378 | { echo "$as_me:$LINENO: WARNING: sys/time.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 8379 | echo "$as_me: WARNING: sys/time.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 8380 | { echo "$as_me:$LINENO: WARNING: sys/time.h: proceeding with the compiler's result" >&5 |
| 8381 | echo "$as_me: WARNING: sys/time.h: proceeding with the compiler's result" >&2;} |
| 8382 | ac_header_preproc=yes |
| 8383 | ;; |
| 8384 | no:yes:* ) |
| 8385 | { echo "$as_me:$LINENO: WARNING: sys/time.h: present but cannot be compiled" >&5 |
| 8386 | echo "$as_me: WARNING: sys/time.h: present but cannot be compiled" >&2;} |
| 8387 | { echo "$as_me:$LINENO: WARNING: sys/time.h: check for missing prerequisite headers?" >&5 |
| 8388 | echo "$as_me: WARNING: sys/time.h: check for missing prerequisite headers?" >&2;} |
| 8389 | { echo "$as_me:$LINENO: WARNING: sys/time.h: see the Autoconf documentation" >&5 |
| 8390 | echo "$as_me: WARNING: sys/time.h: see the Autoconf documentation" >&2;} |
| 8391 | { echo "$as_me:$LINENO: WARNING: sys/time.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 8392 | echo "$as_me: WARNING: sys/time.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 8393 | { echo "$as_me:$LINENO: WARNING: sys/time.h: proceeding with the preprocessor's result" >&5 |
| 8394 | echo "$as_me: WARNING: sys/time.h: proceeding with the preprocessor's result" >&2;} |
| 8395 | { echo "$as_me:$LINENO: WARNING: sys/time.h: in the future, the compiler will take precedence" >&5 |
| 8396 | echo "$as_me: WARNING: sys/time.h: in the future, the compiler will take precedence" >&2;} |
| 8397 | |
| 8398 | ;; |
| 8399 | esac |
| 8400 | { echo "$as_me:$LINENO: checking for sys/time.h" >&5 |
| 8401 | echo $ECHO_N "checking for sys/time.h... $ECHO_C" >&6; } |
| 8402 | if test "${ac_cv_header_sys_time_h+set}" = set; then |
| 8403 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8404 | else |
| 8405 | ac_cv_header_sys_time_h=$ac_header_preproc |
| 8406 | fi |
| 8407 | { echo "$as_me:$LINENO: result: $ac_cv_header_sys_time_h" >&5 |
| 8408 | echo "${ECHO_T}$ac_cv_header_sys_time_h" >&6; } |
| 8409 | |
| 8410 | fi |
| 8411 | if test $ac_cv_header_sys_time_h = yes; then |
| 8412 | cat >>confdefs.h <<\_ACEOF |
| 8413 | #define PJ_HAS_SYS_TIME_H 1 |
| 8414 | _ACEOF |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 8415 | |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 8416 | fi |
| 8417 | |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 8418 | |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 8419 | if test "${ac_cv_header_sys_timeb_h+set}" = set; then |
| 8420 | { echo "$as_me:$LINENO: checking for sys/timeb.h" >&5 |
| 8421 | echo $ECHO_N "checking for sys/timeb.h... $ECHO_C" >&6; } |
| 8422 | if test "${ac_cv_header_sys_timeb_h+set}" = set; then |
| 8423 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8424 | fi |
| 8425 | { echo "$as_me:$LINENO: result: $ac_cv_header_sys_timeb_h" >&5 |
| 8426 | echo "${ECHO_T}$ac_cv_header_sys_timeb_h" >&6; } |
| 8427 | else |
| 8428 | # Is the header compilable? |
| 8429 | { echo "$as_me:$LINENO: checking sys/timeb.h usability" >&5 |
| 8430 | echo $ECHO_N "checking sys/timeb.h usability... $ECHO_C" >&6; } |
| 8431 | cat >conftest.$ac_ext <<_ACEOF |
| 8432 | /* confdefs.h. */ |
| 8433 | _ACEOF |
| 8434 | cat confdefs.h >>conftest.$ac_ext |
| 8435 | cat >>conftest.$ac_ext <<_ACEOF |
| 8436 | /* end confdefs.h. */ |
| 8437 | $ac_includes_default |
| 8438 | #include <sys/timeb.h> |
| 8439 | _ACEOF |
| 8440 | rm -f conftest.$ac_objext |
| 8441 | if { (ac_try="$ac_compile" |
| 8442 | case "(($ac_try" in |
| 8443 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8444 | *) ac_try_echo=$ac_try;; |
| 8445 | esac |
| 8446 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8447 | (eval "$ac_compile") 2>conftest.er1 |
| 8448 | ac_status=$? |
| 8449 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8450 | rm -f conftest.er1 |
| 8451 | cat conftest.err >&5 |
| 8452 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8453 | (exit $ac_status); } && { |
| 8454 | test -z "$ac_c_werror_flag" || |
| 8455 | test ! -s conftest.err |
| 8456 | } && test -s conftest.$ac_objext; then |
| 8457 | ac_header_compiler=yes |
| 8458 | else |
| 8459 | echo "$as_me: failed program was:" >&5 |
| 8460 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8461 | |
| 8462 | ac_header_compiler=no |
| 8463 | fi |
| 8464 | |
| 8465 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 8466 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 8467 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 8468 | |
| 8469 | # Is the header present? |
| 8470 | { echo "$as_me:$LINENO: checking sys/timeb.h presence" >&5 |
| 8471 | echo $ECHO_N "checking sys/timeb.h presence... $ECHO_C" >&6; } |
| 8472 | cat >conftest.$ac_ext <<_ACEOF |
| 8473 | /* confdefs.h. */ |
| 8474 | _ACEOF |
| 8475 | cat confdefs.h >>conftest.$ac_ext |
| 8476 | cat >>conftest.$ac_ext <<_ACEOF |
| 8477 | /* end confdefs.h. */ |
| 8478 | #include <sys/timeb.h> |
| 8479 | _ACEOF |
| 8480 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 8481 | case "(($ac_try" in |
| 8482 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8483 | *) ac_try_echo=$ac_try;; |
| 8484 | esac |
| 8485 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8486 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 8487 | ac_status=$? |
| 8488 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8489 | rm -f conftest.er1 |
| 8490 | cat conftest.err >&5 |
| 8491 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8492 | (exit $ac_status); } >/dev/null && { |
| 8493 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 8494 | test ! -s conftest.err |
| 8495 | }; then |
| 8496 | ac_header_preproc=yes |
| 8497 | else |
| 8498 | echo "$as_me: failed program was:" >&5 |
| 8499 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8500 | |
| 8501 | ac_header_preproc=no |
| 8502 | fi |
| 8503 | |
| 8504 | rm -f conftest.err conftest.$ac_ext |
| 8505 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 8506 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 8507 | |
| 8508 | # So? What about this header? |
| 8509 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 8510 | yes:no: ) |
| 8511 | { echo "$as_me:$LINENO: WARNING: sys/timeb.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 8512 | echo "$as_me: WARNING: sys/timeb.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 8513 | { echo "$as_me:$LINENO: WARNING: sys/timeb.h: proceeding with the compiler's result" >&5 |
| 8514 | echo "$as_me: WARNING: sys/timeb.h: proceeding with the compiler's result" >&2;} |
| 8515 | ac_header_preproc=yes |
| 8516 | ;; |
| 8517 | no:yes:* ) |
| 8518 | { echo "$as_me:$LINENO: WARNING: sys/timeb.h: present but cannot be compiled" >&5 |
| 8519 | echo "$as_me: WARNING: sys/timeb.h: present but cannot be compiled" >&2;} |
| 8520 | { echo "$as_me:$LINENO: WARNING: sys/timeb.h: check for missing prerequisite headers?" >&5 |
| 8521 | echo "$as_me: WARNING: sys/timeb.h: check for missing prerequisite headers?" >&2;} |
| 8522 | { echo "$as_me:$LINENO: WARNING: sys/timeb.h: see the Autoconf documentation" >&5 |
| 8523 | echo "$as_me: WARNING: sys/timeb.h: see the Autoconf documentation" >&2;} |
| 8524 | { echo "$as_me:$LINENO: WARNING: sys/timeb.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 8525 | echo "$as_me: WARNING: sys/timeb.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 8526 | { echo "$as_me:$LINENO: WARNING: sys/timeb.h: proceeding with the preprocessor's result" >&5 |
| 8527 | echo "$as_me: WARNING: sys/timeb.h: proceeding with the preprocessor's result" >&2;} |
| 8528 | { echo "$as_me:$LINENO: WARNING: sys/timeb.h: in the future, the compiler will take precedence" >&5 |
| 8529 | echo "$as_me: WARNING: sys/timeb.h: in the future, the compiler will take precedence" >&2;} |
| 8530 | |
| 8531 | ;; |
| 8532 | esac |
| 8533 | { echo "$as_me:$LINENO: checking for sys/timeb.h" >&5 |
| 8534 | echo $ECHO_N "checking for sys/timeb.h... $ECHO_C" >&6; } |
| 8535 | if test "${ac_cv_header_sys_timeb_h+set}" = set; then |
| 8536 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8537 | else |
| 8538 | ac_cv_header_sys_timeb_h=$ac_header_preproc |
| 8539 | fi |
| 8540 | { echo "$as_me:$LINENO: result: $ac_cv_header_sys_timeb_h" >&5 |
| 8541 | echo "${ECHO_T}$ac_cv_header_sys_timeb_h" >&6; } |
| 8542 | |
| 8543 | fi |
| 8544 | if test $ac_cv_header_sys_timeb_h = yes; then |
| 8545 | cat >>confdefs.h <<\_ACEOF |
| 8546 | #define PJ_HAS_SYS_TIMEB_H 1 |
| 8547 | _ACEOF |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 8548 | |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 8549 | fi |
| 8550 | |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 8551 | |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 8552 | if test "${ac_cv_header_sys_types_h+set}" = set; then |
| 8553 | { echo "$as_me:$LINENO: checking for sys/types.h" >&5 |
| 8554 | echo $ECHO_N "checking for sys/types.h... $ECHO_C" >&6; } |
| 8555 | if test "${ac_cv_header_sys_types_h+set}" = set; then |
| 8556 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8557 | fi |
| 8558 | { echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h" >&5 |
| 8559 | echo "${ECHO_T}$ac_cv_header_sys_types_h" >&6; } |
| 8560 | else |
| 8561 | # Is the header compilable? |
| 8562 | { echo "$as_me:$LINENO: checking sys/types.h usability" >&5 |
| 8563 | echo $ECHO_N "checking sys/types.h usability... $ECHO_C" >&6; } |
| 8564 | cat >conftest.$ac_ext <<_ACEOF |
| 8565 | /* confdefs.h. */ |
| 8566 | _ACEOF |
| 8567 | cat confdefs.h >>conftest.$ac_ext |
| 8568 | cat >>conftest.$ac_ext <<_ACEOF |
| 8569 | /* end confdefs.h. */ |
| 8570 | $ac_includes_default |
| 8571 | #include <sys/types.h> |
| 8572 | _ACEOF |
| 8573 | rm -f conftest.$ac_objext |
| 8574 | if { (ac_try="$ac_compile" |
| 8575 | case "(($ac_try" in |
| 8576 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8577 | *) ac_try_echo=$ac_try;; |
| 8578 | esac |
| 8579 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8580 | (eval "$ac_compile") 2>conftest.er1 |
| 8581 | ac_status=$? |
| 8582 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8583 | rm -f conftest.er1 |
| 8584 | cat conftest.err >&5 |
| 8585 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8586 | (exit $ac_status); } && { |
| 8587 | test -z "$ac_c_werror_flag" || |
| 8588 | test ! -s conftest.err |
| 8589 | } && test -s conftest.$ac_objext; then |
| 8590 | ac_header_compiler=yes |
| 8591 | else |
| 8592 | echo "$as_me: failed program was:" >&5 |
| 8593 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8594 | |
| 8595 | ac_header_compiler=no |
| 8596 | fi |
| 8597 | |
| 8598 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 8599 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 8600 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 8601 | |
| 8602 | # Is the header present? |
| 8603 | { echo "$as_me:$LINENO: checking sys/types.h presence" >&5 |
| 8604 | echo $ECHO_N "checking sys/types.h presence... $ECHO_C" >&6; } |
| 8605 | cat >conftest.$ac_ext <<_ACEOF |
| 8606 | /* confdefs.h. */ |
| 8607 | _ACEOF |
| 8608 | cat confdefs.h >>conftest.$ac_ext |
| 8609 | cat >>conftest.$ac_ext <<_ACEOF |
| 8610 | /* end confdefs.h. */ |
| 8611 | #include <sys/types.h> |
| 8612 | _ACEOF |
| 8613 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 8614 | case "(($ac_try" in |
| 8615 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8616 | *) ac_try_echo=$ac_try;; |
| 8617 | esac |
| 8618 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8619 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 8620 | ac_status=$? |
| 8621 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8622 | rm -f conftest.er1 |
| 8623 | cat conftest.err >&5 |
| 8624 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8625 | (exit $ac_status); } >/dev/null && { |
| 8626 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 8627 | test ! -s conftest.err |
| 8628 | }; then |
| 8629 | ac_header_preproc=yes |
| 8630 | else |
| 8631 | echo "$as_me: failed program was:" >&5 |
| 8632 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8633 | |
| 8634 | ac_header_preproc=no |
| 8635 | fi |
| 8636 | |
| 8637 | rm -f conftest.err conftest.$ac_ext |
| 8638 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 8639 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 8640 | |
| 8641 | # So? What about this header? |
| 8642 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 8643 | yes:no: ) |
| 8644 | { echo "$as_me:$LINENO: WARNING: sys/types.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 8645 | echo "$as_me: WARNING: sys/types.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 8646 | { echo "$as_me:$LINENO: WARNING: sys/types.h: proceeding with the compiler's result" >&5 |
| 8647 | echo "$as_me: WARNING: sys/types.h: proceeding with the compiler's result" >&2;} |
| 8648 | ac_header_preproc=yes |
| 8649 | ;; |
| 8650 | no:yes:* ) |
| 8651 | { echo "$as_me:$LINENO: WARNING: sys/types.h: present but cannot be compiled" >&5 |
| 8652 | echo "$as_me: WARNING: sys/types.h: present but cannot be compiled" >&2;} |
| 8653 | { echo "$as_me:$LINENO: WARNING: sys/types.h: check for missing prerequisite headers?" >&5 |
| 8654 | echo "$as_me: WARNING: sys/types.h: check for missing prerequisite headers?" >&2;} |
| 8655 | { echo "$as_me:$LINENO: WARNING: sys/types.h: see the Autoconf documentation" >&5 |
| 8656 | echo "$as_me: WARNING: sys/types.h: see the Autoconf documentation" >&2;} |
| 8657 | { echo "$as_me:$LINENO: WARNING: sys/types.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 8658 | echo "$as_me: WARNING: sys/types.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 8659 | { echo "$as_me:$LINENO: WARNING: sys/types.h: proceeding with the preprocessor's result" >&5 |
| 8660 | echo "$as_me: WARNING: sys/types.h: proceeding with the preprocessor's result" >&2;} |
| 8661 | { echo "$as_me:$LINENO: WARNING: sys/types.h: in the future, the compiler will take precedence" >&5 |
| 8662 | echo "$as_me: WARNING: sys/types.h: in the future, the compiler will take precedence" >&2;} |
| 8663 | |
| 8664 | ;; |
| 8665 | esac |
| 8666 | { echo "$as_me:$LINENO: checking for sys/types.h" >&5 |
| 8667 | echo $ECHO_N "checking for sys/types.h... $ECHO_C" >&6; } |
| 8668 | if test "${ac_cv_header_sys_types_h+set}" = set; then |
| 8669 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8670 | else |
| 8671 | ac_cv_header_sys_types_h=$ac_header_preproc |
| 8672 | fi |
| 8673 | { echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h" >&5 |
| 8674 | echo "${ECHO_T}$ac_cv_header_sys_types_h" >&6; } |
| 8675 | |
| 8676 | fi |
| 8677 | if test $ac_cv_header_sys_types_h = yes; then |
| 8678 | cat >>confdefs.h <<\_ACEOF |
| 8679 | #define PJ_HAS_SYS_TYPES_H 1 |
| 8680 | _ACEOF |
Benny Prijono | 46bd084 | 2010-02-12 14:12:41 +0000 | [diff] [blame] | 8681 | |
Benny Prijono | 46bd084 | 2010-02-12 14:12:41 +0000 | [diff] [blame] | 8682 | fi |
| 8683 | |
Benny Prijono | 46bd084 | 2010-02-12 14:12:41 +0000 | [diff] [blame] | 8684 | |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 8685 | if test "${ac_cv_header_sys_filio_h+set}" = set; then |
| 8686 | { echo "$as_me:$LINENO: checking for sys/filio.h" >&5 |
| 8687 | echo $ECHO_N "checking for sys/filio.h... $ECHO_C" >&6; } |
| 8688 | if test "${ac_cv_header_sys_filio_h+set}" = set; then |
| 8689 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8690 | fi |
| 8691 | { echo "$as_me:$LINENO: result: $ac_cv_header_sys_filio_h" >&5 |
| 8692 | echo "${ECHO_T}$ac_cv_header_sys_filio_h" >&6; } |
| 8693 | else |
| 8694 | # Is the header compilable? |
| 8695 | { echo "$as_me:$LINENO: checking sys/filio.h usability" >&5 |
| 8696 | echo $ECHO_N "checking sys/filio.h usability... $ECHO_C" >&6; } |
| 8697 | cat >conftest.$ac_ext <<_ACEOF |
| 8698 | /* confdefs.h. */ |
| 8699 | _ACEOF |
| 8700 | cat confdefs.h >>conftest.$ac_ext |
| 8701 | cat >>conftest.$ac_ext <<_ACEOF |
| 8702 | /* end confdefs.h. */ |
| 8703 | $ac_includes_default |
| 8704 | #include <sys/filio.h> |
| 8705 | _ACEOF |
| 8706 | rm -f conftest.$ac_objext |
| 8707 | if { (ac_try="$ac_compile" |
| 8708 | case "(($ac_try" in |
| 8709 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8710 | *) ac_try_echo=$ac_try;; |
| 8711 | esac |
| 8712 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8713 | (eval "$ac_compile") 2>conftest.er1 |
| 8714 | ac_status=$? |
| 8715 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8716 | rm -f conftest.er1 |
| 8717 | cat conftest.err >&5 |
| 8718 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8719 | (exit $ac_status); } && { |
| 8720 | test -z "$ac_c_werror_flag" || |
| 8721 | test ! -s conftest.err |
| 8722 | } && test -s conftest.$ac_objext; then |
| 8723 | ac_header_compiler=yes |
| 8724 | else |
| 8725 | echo "$as_me: failed program was:" >&5 |
| 8726 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8727 | |
| 8728 | ac_header_compiler=no |
| 8729 | fi |
| 8730 | |
| 8731 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 8732 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 8733 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 8734 | |
| 8735 | # Is the header present? |
| 8736 | { echo "$as_me:$LINENO: checking sys/filio.h presence" >&5 |
| 8737 | echo $ECHO_N "checking sys/filio.h presence... $ECHO_C" >&6; } |
| 8738 | cat >conftest.$ac_ext <<_ACEOF |
| 8739 | /* confdefs.h. */ |
| 8740 | _ACEOF |
| 8741 | cat confdefs.h >>conftest.$ac_ext |
| 8742 | cat >>conftest.$ac_ext <<_ACEOF |
| 8743 | /* end confdefs.h. */ |
| 8744 | #include <sys/filio.h> |
| 8745 | _ACEOF |
| 8746 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 8747 | case "(($ac_try" in |
| 8748 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8749 | *) ac_try_echo=$ac_try;; |
| 8750 | esac |
| 8751 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8752 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 8753 | ac_status=$? |
| 8754 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8755 | rm -f conftest.er1 |
| 8756 | cat conftest.err >&5 |
| 8757 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8758 | (exit $ac_status); } >/dev/null && { |
| 8759 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 8760 | test ! -s conftest.err |
| 8761 | }; then |
| 8762 | ac_header_preproc=yes |
| 8763 | else |
| 8764 | echo "$as_me: failed program was:" >&5 |
| 8765 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8766 | |
| 8767 | ac_header_preproc=no |
| 8768 | fi |
| 8769 | |
| 8770 | rm -f conftest.err conftest.$ac_ext |
| 8771 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 8772 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 8773 | |
| 8774 | # So? What about this header? |
| 8775 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 8776 | yes:no: ) |
| 8777 | { echo "$as_me:$LINENO: WARNING: sys/filio.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 8778 | echo "$as_me: WARNING: sys/filio.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 8779 | { echo "$as_me:$LINENO: WARNING: sys/filio.h: proceeding with the compiler's result" >&5 |
| 8780 | echo "$as_me: WARNING: sys/filio.h: proceeding with the compiler's result" >&2;} |
| 8781 | ac_header_preproc=yes |
| 8782 | ;; |
| 8783 | no:yes:* ) |
| 8784 | { echo "$as_me:$LINENO: WARNING: sys/filio.h: present but cannot be compiled" >&5 |
| 8785 | echo "$as_me: WARNING: sys/filio.h: present but cannot be compiled" >&2;} |
| 8786 | { echo "$as_me:$LINENO: WARNING: sys/filio.h: check for missing prerequisite headers?" >&5 |
| 8787 | echo "$as_me: WARNING: sys/filio.h: check for missing prerequisite headers?" >&2;} |
| 8788 | { echo "$as_me:$LINENO: WARNING: sys/filio.h: see the Autoconf documentation" >&5 |
| 8789 | echo "$as_me: WARNING: sys/filio.h: see the Autoconf documentation" >&2;} |
| 8790 | { echo "$as_me:$LINENO: WARNING: sys/filio.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 8791 | echo "$as_me: WARNING: sys/filio.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 8792 | { echo "$as_me:$LINENO: WARNING: sys/filio.h: proceeding with the preprocessor's result" >&5 |
| 8793 | echo "$as_me: WARNING: sys/filio.h: proceeding with the preprocessor's result" >&2;} |
| 8794 | { echo "$as_me:$LINENO: WARNING: sys/filio.h: in the future, the compiler will take precedence" >&5 |
| 8795 | echo "$as_me: WARNING: sys/filio.h: in the future, the compiler will take precedence" >&2;} |
| 8796 | |
| 8797 | ;; |
| 8798 | esac |
| 8799 | { echo "$as_me:$LINENO: checking for sys/filio.h" >&5 |
| 8800 | echo $ECHO_N "checking for sys/filio.h... $ECHO_C" >&6; } |
| 8801 | if test "${ac_cv_header_sys_filio_h+set}" = set; then |
| 8802 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8803 | else |
| 8804 | ac_cv_header_sys_filio_h=$ac_header_preproc |
| 8805 | fi |
| 8806 | { echo "$as_me:$LINENO: result: $ac_cv_header_sys_filio_h" >&5 |
| 8807 | echo "${ECHO_T}$ac_cv_header_sys_filio_h" >&6; } |
| 8808 | |
| 8809 | fi |
| 8810 | if test $ac_cv_header_sys_filio_h = yes; then |
| 8811 | cat >>confdefs.h <<\_ACEOF |
| 8812 | #define PJ_HAS_SYS_FILIO_H 1 |
| 8813 | _ACEOF |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 8814 | |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 8815 | fi |
| 8816 | |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 8817 | |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 8818 | if test "${ac_cv_header_sys_sockio_h+set}" = set; then |
| 8819 | { echo "$as_me:$LINENO: checking for sys/sockio.h" >&5 |
| 8820 | echo $ECHO_N "checking for sys/sockio.h... $ECHO_C" >&6; } |
| 8821 | if test "${ac_cv_header_sys_sockio_h+set}" = set; then |
| 8822 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8823 | fi |
| 8824 | { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sockio_h" >&5 |
| 8825 | echo "${ECHO_T}$ac_cv_header_sys_sockio_h" >&6; } |
| 8826 | else |
| 8827 | # Is the header compilable? |
| 8828 | { echo "$as_me:$LINENO: checking sys/sockio.h usability" >&5 |
| 8829 | echo $ECHO_N "checking sys/sockio.h usability... $ECHO_C" >&6; } |
| 8830 | cat >conftest.$ac_ext <<_ACEOF |
| 8831 | /* confdefs.h. */ |
| 8832 | _ACEOF |
| 8833 | cat confdefs.h >>conftest.$ac_ext |
| 8834 | cat >>conftest.$ac_ext <<_ACEOF |
| 8835 | /* end confdefs.h. */ |
| 8836 | $ac_includes_default |
| 8837 | #include <sys/sockio.h> |
| 8838 | _ACEOF |
| 8839 | rm -f conftest.$ac_objext |
| 8840 | if { (ac_try="$ac_compile" |
| 8841 | case "(($ac_try" in |
| 8842 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8843 | *) ac_try_echo=$ac_try;; |
| 8844 | esac |
| 8845 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8846 | (eval "$ac_compile") 2>conftest.er1 |
| 8847 | ac_status=$? |
| 8848 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8849 | rm -f conftest.er1 |
| 8850 | cat conftest.err >&5 |
| 8851 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8852 | (exit $ac_status); } && { |
| 8853 | test -z "$ac_c_werror_flag" || |
| 8854 | test ! -s conftest.err |
| 8855 | } && test -s conftest.$ac_objext; then |
| 8856 | ac_header_compiler=yes |
| 8857 | else |
| 8858 | echo "$as_me: failed program was:" >&5 |
| 8859 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8860 | |
| 8861 | ac_header_compiler=no |
| 8862 | fi |
| 8863 | |
| 8864 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 8865 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 8866 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 8867 | |
| 8868 | # Is the header present? |
| 8869 | { echo "$as_me:$LINENO: checking sys/sockio.h presence" >&5 |
| 8870 | echo $ECHO_N "checking sys/sockio.h presence... $ECHO_C" >&6; } |
| 8871 | cat >conftest.$ac_ext <<_ACEOF |
| 8872 | /* confdefs.h. */ |
| 8873 | _ACEOF |
| 8874 | cat confdefs.h >>conftest.$ac_ext |
| 8875 | cat >>conftest.$ac_ext <<_ACEOF |
| 8876 | /* end confdefs.h. */ |
| 8877 | #include <sys/sockio.h> |
| 8878 | _ACEOF |
| 8879 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 8880 | case "(($ac_try" in |
| 8881 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8882 | *) ac_try_echo=$ac_try;; |
| 8883 | esac |
| 8884 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8885 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 8886 | ac_status=$? |
| 8887 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8888 | rm -f conftest.er1 |
| 8889 | cat conftest.err >&5 |
| 8890 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8891 | (exit $ac_status); } >/dev/null && { |
| 8892 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 8893 | test ! -s conftest.err |
| 8894 | }; then |
| 8895 | ac_header_preproc=yes |
| 8896 | else |
| 8897 | echo "$as_me: failed program was:" >&5 |
| 8898 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8899 | |
| 8900 | ac_header_preproc=no |
| 8901 | fi |
| 8902 | |
| 8903 | rm -f conftest.err conftest.$ac_ext |
| 8904 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 8905 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 8906 | |
| 8907 | # So? What about this header? |
| 8908 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 8909 | yes:no: ) |
| 8910 | { echo "$as_me:$LINENO: WARNING: sys/sockio.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 8911 | echo "$as_me: WARNING: sys/sockio.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 8912 | { echo "$as_me:$LINENO: WARNING: sys/sockio.h: proceeding with the compiler's result" >&5 |
| 8913 | echo "$as_me: WARNING: sys/sockio.h: proceeding with the compiler's result" >&2;} |
| 8914 | ac_header_preproc=yes |
| 8915 | ;; |
| 8916 | no:yes:* ) |
| 8917 | { echo "$as_me:$LINENO: WARNING: sys/sockio.h: present but cannot be compiled" >&5 |
| 8918 | echo "$as_me: WARNING: sys/sockio.h: present but cannot be compiled" >&2;} |
| 8919 | { echo "$as_me:$LINENO: WARNING: sys/sockio.h: check for missing prerequisite headers?" >&5 |
| 8920 | echo "$as_me: WARNING: sys/sockio.h: check for missing prerequisite headers?" >&2;} |
| 8921 | { echo "$as_me:$LINENO: WARNING: sys/sockio.h: see the Autoconf documentation" >&5 |
| 8922 | echo "$as_me: WARNING: sys/sockio.h: see the Autoconf documentation" >&2;} |
| 8923 | { echo "$as_me:$LINENO: WARNING: sys/sockio.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 8924 | echo "$as_me: WARNING: sys/sockio.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 8925 | { echo "$as_me:$LINENO: WARNING: sys/sockio.h: proceeding with the preprocessor's result" >&5 |
| 8926 | echo "$as_me: WARNING: sys/sockio.h: proceeding with the preprocessor's result" >&2;} |
| 8927 | { echo "$as_me:$LINENO: WARNING: sys/sockio.h: in the future, the compiler will take precedence" >&5 |
| 8928 | echo "$as_me: WARNING: sys/sockio.h: in the future, the compiler will take precedence" >&2;} |
| 8929 | |
| 8930 | ;; |
| 8931 | esac |
| 8932 | { echo "$as_me:$LINENO: checking for sys/sockio.h" >&5 |
| 8933 | echo $ECHO_N "checking for sys/sockio.h... $ECHO_C" >&6; } |
| 8934 | if test "${ac_cv_header_sys_sockio_h+set}" = set; then |
| 8935 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8936 | else |
| 8937 | ac_cv_header_sys_sockio_h=$ac_header_preproc |
| 8938 | fi |
| 8939 | { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sockio_h" >&5 |
| 8940 | echo "${ECHO_T}$ac_cv_header_sys_sockio_h" >&6; } |
| 8941 | |
| 8942 | fi |
| 8943 | if test $ac_cv_header_sys_sockio_h = yes; then |
| 8944 | cat >>confdefs.h <<\_ACEOF |
| 8945 | #define PJ_HAS_SYS_SOCKIO_H 1 |
| 8946 | _ACEOF |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 8947 | |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 8948 | fi |
| 8949 | |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 8950 | |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 8951 | if test "${ac_cv_header_time_h+set}" = set; then |
| 8952 | { echo "$as_me:$LINENO: checking for time.h" >&5 |
| 8953 | echo $ECHO_N "checking for time.h... $ECHO_C" >&6; } |
| 8954 | if test "${ac_cv_header_time_h+set}" = set; then |
| 8955 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8956 | fi |
| 8957 | { echo "$as_me:$LINENO: result: $ac_cv_header_time_h" >&5 |
| 8958 | echo "${ECHO_T}$ac_cv_header_time_h" >&6; } |
| 8959 | else |
| 8960 | # Is the header compilable? |
| 8961 | { echo "$as_me:$LINENO: checking time.h usability" >&5 |
| 8962 | echo $ECHO_N "checking time.h usability... $ECHO_C" >&6; } |
| 8963 | cat >conftest.$ac_ext <<_ACEOF |
| 8964 | /* confdefs.h. */ |
| 8965 | _ACEOF |
| 8966 | cat confdefs.h >>conftest.$ac_ext |
| 8967 | cat >>conftest.$ac_ext <<_ACEOF |
| 8968 | /* end confdefs.h. */ |
| 8969 | $ac_includes_default |
| 8970 | #include <time.h> |
| 8971 | _ACEOF |
| 8972 | rm -f conftest.$ac_objext |
| 8973 | if { (ac_try="$ac_compile" |
| 8974 | case "(($ac_try" in |
| 8975 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8976 | *) ac_try_echo=$ac_try;; |
| 8977 | esac |
| 8978 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8979 | (eval "$ac_compile") 2>conftest.er1 |
| 8980 | ac_status=$? |
| 8981 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8982 | rm -f conftest.er1 |
| 8983 | cat conftest.err >&5 |
| 8984 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8985 | (exit $ac_status); } && { |
| 8986 | test -z "$ac_c_werror_flag" || |
| 8987 | test ! -s conftest.err |
| 8988 | } && test -s conftest.$ac_objext; then |
| 8989 | ac_header_compiler=yes |
| 8990 | else |
| 8991 | echo "$as_me: failed program was:" >&5 |
| 8992 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8993 | |
| 8994 | ac_header_compiler=no |
| 8995 | fi |
| 8996 | |
| 8997 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 8998 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 8999 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 9000 | |
| 9001 | # Is the header present? |
| 9002 | { echo "$as_me:$LINENO: checking time.h presence" >&5 |
| 9003 | echo $ECHO_N "checking time.h presence... $ECHO_C" >&6; } |
| 9004 | cat >conftest.$ac_ext <<_ACEOF |
| 9005 | /* confdefs.h. */ |
| 9006 | _ACEOF |
| 9007 | cat confdefs.h >>conftest.$ac_ext |
| 9008 | cat >>conftest.$ac_ext <<_ACEOF |
| 9009 | /* end confdefs.h. */ |
| 9010 | #include <time.h> |
| 9011 | _ACEOF |
| 9012 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 9013 | case "(($ac_try" in |
| 9014 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9015 | *) ac_try_echo=$ac_try;; |
| 9016 | esac |
| 9017 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9018 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 9019 | ac_status=$? |
| 9020 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9021 | rm -f conftest.er1 |
| 9022 | cat conftest.err >&5 |
| 9023 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9024 | (exit $ac_status); } >/dev/null && { |
| 9025 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 9026 | test ! -s conftest.err |
| 9027 | }; then |
| 9028 | ac_header_preproc=yes |
| 9029 | else |
| 9030 | echo "$as_me: failed program was:" >&5 |
| 9031 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9032 | |
| 9033 | ac_header_preproc=no |
| 9034 | fi |
| 9035 | |
| 9036 | rm -f conftest.err conftest.$ac_ext |
| 9037 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 9038 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 9039 | |
| 9040 | # So? What about this header? |
| 9041 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 9042 | yes:no: ) |
| 9043 | { echo "$as_me:$LINENO: WARNING: time.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 9044 | echo "$as_me: WARNING: time.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 9045 | { echo "$as_me:$LINENO: WARNING: time.h: proceeding with the compiler's result" >&5 |
| 9046 | echo "$as_me: WARNING: time.h: proceeding with the compiler's result" >&2;} |
| 9047 | ac_header_preproc=yes |
| 9048 | ;; |
| 9049 | no:yes:* ) |
| 9050 | { echo "$as_me:$LINENO: WARNING: time.h: present but cannot be compiled" >&5 |
| 9051 | echo "$as_me: WARNING: time.h: present but cannot be compiled" >&2;} |
| 9052 | { echo "$as_me:$LINENO: WARNING: time.h: check for missing prerequisite headers?" >&5 |
| 9053 | echo "$as_me: WARNING: time.h: check for missing prerequisite headers?" >&2;} |
| 9054 | { echo "$as_me:$LINENO: WARNING: time.h: see the Autoconf documentation" >&5 |
| 9055 | echo "$as_me: WARNING: time.h: see the Autoconf documentation" >&2;} |
| 9056 | { echo "$as_me:$LINENO: WARNING: time.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 9057 | echo "$as_me: WARNING: time.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 9058 | { echo "$as_me:$LINENO: WARNING: time.h: proceeding with the preprocessor's result" >&5 |
| 9059 | echo "$as_me: WARNING: time.h: proceeding with the preprocessor's result" >&2;} |
| 9060 | { echo "$as_me:$LINENO: WARNING: time.h: in the future, the compiler will take precedence" >&5 |
| 9061 | echo "$as_me: WARNING: time.h: in the future, the compiler will take precedence" >&2;} |
| 9062 | |
| 9063 | ;; |
| 9064 | esac |
| 9065 | { echo "$as_me:$LINENO: checking for time.h" >&5 |
| 9066 | echo $ECHO_N "checking for time.h... $ECHO_C" >&6; } |
| 9067 | if test "${ac_cv_header_time_h+set}" = set; then |
| 9068 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9069 | else |
| 9070 | ac_cv_header_time_h=$ac_header_preproc |
| 9071 | fi |
| 9072 | { echo "$as_me:$LINENO: result: $ac_cv_header_time_h" >&5 |
| 9073 | echo "${ECHO_T}$ac_cv_header_time_h" >&6; } |
| 9074 | |
| 9075 | fi |
| 9076 | if test $ac_cv_header_time_h = yes; then |
| 9077 | cat >>confdefs.h <<\_ACEOF |
| 9078 | #define PJ_HAS_TIME_H 1 |
| 9079 | _ACEOF |
Benny Prijono | 1d61ba5 | 2009-10-24 00:00:40 +0000 | [diff] [blame] | 9080 | |
Benny Prijono | 1d61ba5 | 2009-10-24 00:00:40 +0000 | [diff] [blame] | 9081 | fi |
| 9082 | |
Benny Prijono | 1d61ba5 | 2009-10-24 00:00:40 +0000 | [diff] [blame] | 9083 | |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 9084 | if test "${ac_cv_header_unistd_h+set}" = set; then |
| 9085 | { echo "$as_me:$LINENO: checking for unistd.h" >&5 |
| 9086 | echo $ECHO_N "checking for unistd.h... $ECHO_C" >&6; } |
| 9087 | if test "${ac_cv_header_unistd_h+set}" = set; then |
| 9088 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9089 | fi |
| 9090 | { echo "$as_me:$LINENO: result: $ac_cv_header_unistd_h" >&5 |
| 9091 | echo "${ECHO_T}$ac_cv_header_unistd_h" >&6; } |
| 9092 | else |
| 9093 | # Is the header compilable? |
| 9094 | { echo "$as_me:$LINENO: checking unistd.h usability" >&5 |
| 9095 | echo $ECHO_N "checking unistd.h usability... $ECHO_C" >&6; } |
| 9096 | cat >conftest.$ac_ext <<_ACEOF |
| 9097 | /* confdefs.h. */ |
| 9098 | _ACEOF |
| 9099 | cat confdefs.h >>conftest.$ac_ext |
| 9100 | cat >>conftest.$ac_ext <<_ACEOF |
| 9101 | /* end confdefs.h. */ |
| 9102 | $ac_includes_default |
| 9103 | #include <unistd.h> |
| 9104 | _ACEOF |
| 9105 | rm -f conftest.$ac_objext |
| 9106 | if { (ac_try="$ac_compile" |
| 9107 | case "(($ac_try" in |
| 9108 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9109 | *) ac_try_echo=$ac_try;; |
| 9110 | esac |
| 9111 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9112 | (eval "$ac_compile") 2>conftest.er1 |
| 9113 | ac_status=$? |
| 9114 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9115 | rm -f conftest.er1 |
| 9116 | cat conftest.err >&5 |
| 9117 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9118 | (exit $ac_status); } && { |
| 9119 | test -z "$ac_c_werror_flag" || |
| 9120 | test ! -s conftest.err |
| 9121 | } && test -s conftest.$ac_objext; then |
| 9122 | ac_header_compiler=yes |
| 9123 | else |
| 9124 | echo "$as_me: failed program was:" >&5 |
| 9125 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9126 | |
| 9127 | ac_header_compiler=no |
| 9128 | fi |
| 9129 | |
| 9130 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 9131 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 9132 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 9133 | |
| 9134 | # Is the header present? |
| 9135 | { echo "$as_me:$LINENO: checking unistd.h presence" >&5 |
| 9136 | echo $ECHO_N "checking unistd.h presence... $ECHO_C" >&6; } |
| 9137 | cat >conftest.$ac_ext <<_ACEOF |
| 9138 | /* confdefs.h. */ |
| 9139 | _ACEOF |
| 9140 | cat confdefs.h >>conftest.$ac_ext |
| 9141 | cat >>conftest.$ac_ext <<_ACEOF |
| 9142 | /* end confdefs.h. */ |
| 9143 | #include <unistd.h> |
| 9144 | _ACEOF |
| 9145 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 9146 | case "(($ac_try" in |
| 9147 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9148 | *) ac_try_echo=$ac_try;; |
| 9149 | esac |
| 9150 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9151 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 9152 | ac_status=$? |
| 9153 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9154 | rm -f conftest.er1 |
| 9155 | cat conftest.err >&5 |
| 9156 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9157 | (exit $ac_status); } >/dev/null && { |
| 9158 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 9159 | test ! -s conftest.err |
| 9160 | }; then |
| 9161 | ac_header_preproc=yes |
| 9162 | else |
| 9163 | echo "$as_me: failed program was:" >&5 |
| 9164 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9165 | |
| 9166 | ac_header_preproc=no |
| 9167 | fi |
| 9168 | |
| 9169 | rm -f conftest.err conftest.$ac_ext |
| 9170 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 9171 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 9172 | |
| 9173 | # So? What about this header? |
| 9174 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 9175 | yes:no: ) |
| 9176 | { echo "$as_me:$LINENO: WARNING: unistd.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 9177 | echo "$as_me: WARNING: unistd.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 9178 | { echo "$as_me:$LINENO: WARNING: unistd.h: proceeding with the compiler's result" >&5 |
| 9179 | echo "$as_me: WARNING: unistd.h: proceeding with the compiler's result" >&2;} |
| 9180 | ac_header_preproc=yes |
| 9181 | ;; |
| 9182 | no:yes:* ) |
| 9183 | { echo "$as_me:$LINENO: WARNING: unistd.h: present but cannot be compiled" >&5 |
| 9184 | echo "$as_me: WARNING: unistd.h: present but cannot be compiled" >&2;} |
| 9185 | { echo "$as_me:$LINENO: WARNING: unistd.h: check for missing prerequisite headers?" >&5 |
| 9186 | echo "$as_me: WARNING: unistd.h: check for missing prerequisite headers?" >&2;} |
| 9187 | { echo "$as_me:$LINENO: WARNING: unistd.h: see the Autoconf documentation" >&5 |
| 9188 | echo "$as_me: WARNING: unistd.h: see the Autoconf documentation" >&2;} |
| 9189 | { echo "$as_me:$LINENO: WARNING: unistd.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 9190 | echo "$as_me: WARNING: unistd.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 9191 | { echo "$as_me:$LINENO: WARNING: unistd.h: proceeding with the preprocessor's result" >&5 |
| 9192 | echo "$as_me: WARNING: unistd.h: proceeding with the preprocessor's result" >&2;} |
| 9193 | { echo "$as_me:$LINENO: WARNING: unistd.h: in the future, the compiler will take precedence" >&5 |
| 9194 | echo "$as_me: WARNING: unistd.h: in the future, the compiler will take precedence" >&2;} |
| 9195 | |
| 9196 | ;; |
| 9197 | esac |
| 9198 | { echo "$as_me:$LINENO: checking for unistd.h" >&5 |
| 9199 | echo $ECHO_N "checking for unistd.h... $ECHO_C" >&6; } |
| 9200 | if test "${ac_cv_header_unistd_h+set}" = set; then |
| 9201 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9202 | else |
| 9203 | ac_cv_header_unistd_h=$ac_header_preproc |
| 9204 | fi |
| 9205 | { echo "$as_me:$LINENO: result: $ac_cv_header_unistd_h" >&5 |
| 9206 | echo "${ECHO_T}$ac_cv_header_unistd_h" >&6; } |
| 9207 | |
| 9208 | fi |
| 9209 | if test $ac_cv_header_unistd_h = yes; then |
| 9210 | cat >>confdefs.h <<\_ACEOF |
| 9211 | #define PJ_HAS_UNISTD_H 1 |
| 9212 | _ACEOF |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 9213 | |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 9214 | fi |
| 9215 | |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 9216 | |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 9217 | if test "${ac_cv_header_winsock_h+set}" = set; then |
| 9218 | { echo "$as_me:$LINENO: checking for winsock.h" >&5 |
| 9219 | echo $ECHO_N "checking for winsock.h... $ECHO_C" >&6; } |
| 9220 | if test "${ac_cv_header_winsock_h+set}" = set; then |
| 9221 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9222 | fi |
| 9223 | { echo "$as_me:$LINENO: result: $ac_cv_header_winsock_h" >&5 |
| 9224 | echo "${ECHO_T}$ac_cv_header_winsock_h" >&6; } |
| 9225 | else |
| 9226 | # Is the header compilable? |
| 9227 | { echo "$as_me:$LINENO: checking winsock.h usability" >&5 |
| 9228 | echo $ECHO_N "checking winsock.h usability... $ECHO_C" >&6; } |
| 9229 | cat >conftest.$ac_ext <<_ACEOF |
| 9230 | /* confdefs.h. */ |
| 9231 | _ACEOF |
| 9232 | cat confdefs.h >>conftest.$ac_ext |
| 9233 | cat >>conftest.$ac_ext <<_ACEOF |
| 9234 | /* end confdefs.h. */ |
| 9235 | $ac_includes_default |
| 9236 | #include <winsock.h> |
| 9237 | _ACEOF |
| 9238 | rm -f conftest.$ac_objext |
| 9239 | if { (ac_try="$ac_compile" |
| 9240 | case "(($ac_try" in |
| 9241 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9242 | *) ac_try_echo=$ac_try;; |
| 9243 | esac |
| 9244 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9245 | (eval "$ac_compile") 2>conftest.er1 |
| 9246 | ac_status=$? |
| 9247 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9248 | rm -f conftest.er1 |
| 9249 | cat conftest.err >&5 |
| 9250 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9251 | (exit $ac_status); } && { |
| 9252 | test -z "$ac_c_werror_flag" || |
| 9253 | test ! -s conftest.err |
| 9254 | } && test -s conftest.$ac_objext; then |
| 9255 | ac_header_compiler=yes |
| 9256 | else |
| 9257 | echo "$as_me: failed program was:" >&5 |
| 9258 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9259 | |
| 9260 | ac_header_compiler=no |
| 9261 | fi |
| 9262 | |
| 9263 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 9264 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 9265 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 9266 | |
| 9267 | # Is the header present? |
| 9268 | { echo "$as_me:$LINENO: checking winsock.h presence" >&5 |
| 9269 | echo $ECHO_N "checking winsock.h presence... $ECHO_C" >&6; } |
| 9270 | cat >conftest.$ac_ext <<_ACEOF |
| 9271 | /* confdefs.h. */ |
| 9272 | _ACEOF |
| 9273 | cat confdefs.h >>conftest.$ac_ext |
| 9274 | cat >>conftest.$ac_ext <<_ACEOF |
| 9275 | /* end confdefs.h. */ |
| 9276 | #include <winsock.h> |
| 9277 | _ACEOF |
| 9278 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 9279 | case "(($ac_try" in |
| 9280 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9281 | *) ac_try_echo=$ac_try;; |
| 9282 | esac |
| 9283 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9284 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 9285 | ac_status=$? |
| 9286 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9287 | rm -f conftest.er1 |
| 9288 | cat conftest.err >&5 |
| 9289 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9290 | (exit $ac_status); } >/dev/null && { |
| 9291 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 9292 | test ! -s conftest.err |
| 9293 | }; then |
| 9294 | ac_header_preproc=yes |
| 9295 | else |
| 9296 | echo "$as_me: failed program was:" >&5 |
| 9297 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9298 | |
| 9299 | ac_header_preproc=no |
| 9300 | fi |
| 9301 | |
| 9302 | rm -f conftest.err conftest.$ac_ext |
| 9303 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 9304 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 9305 | |
| 9306 | # So? What about this header? |
| 9307 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 9308 | yes:no: ) |
| 9309 | { echo "$as_me:$LINENO: WARNING: winsock.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 9310 | echo "$as_me: WARNING: winsock.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 9311 | { echo "$as_me:$LINENO: WARNING: winsock.h: proceeding with the compiler's result" >&5 |
| 9312 | echo "$as_me: WARNING: winsock.h: proceeding with the compiler's result" >&2;} |
| 9313 | ac_header_preproc=yes |
| 9314 | ;; |
| 9315 | no:yes:* ) |
| 9316 | { echo "$as_me:$LINENO: WARNING: winsock.h: present but cannot be compiled" >&5 |
| 9317 | echo "$as_me: WARNING: winsock.h: present but cannot be compiled" >&2;} |
| 9318 | { echo "$as_me:$LINENO: WARNING: winsock.h: check for missing prerequisite headers?" >&5 |
| 9319 | echo "$as_me: WARNING: winsock.h: check for missing prerequisite headers?" >&2;} |
| 9320 | { echo "$as_me:$LINENO: WARNING: winsock.h: see the Autoconf documentation" >&5 |
| 9321 | echo "$as_me: WARNING: winsock.h: see the Autoconf documentation" >&2;} |
| 9322 | { echo "$as_me:$LINENO: WARNING: winsock.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 9323 | echo "$as_me: WARNING: winsock.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 9324 | { echo "$as_me:$LINENO: WARNING: winsock.h: proceeding with the preprocessor's result" >&5 |
| 9325 | echo "$as_me: WARNING: winsock.h: proceeding with the preprocessor's result" >&2;} |
| 9326 | { echo "$as_me:$LINENO: WARNING: winsock.h: in the future, the compiler will take precedence" >&5 |
| 9327 | echo "$as_me: WARNING: winsock.h: in the future, the compiler will take precedence" >&2;} |
| 9328 | |
| 9329 | ;; |
| 9330 | esac |
| 9331 | { echo "$as_me:$LINENO: checking for winsock.h" >&5 |
| 9332 | echo $ECHO_N "checking for winsock.h... $ECHO_C" >&6; } |
| 9333 | if test "${ac_cv_header_winsock_h+set}" = set; then |
| 9334 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9335 | else |
| 9336 | ac_cv_header_winsock_h=$ac_header_preproc |
| 9337 | fi |
| 9338 | { echo "$as_me:$LINENO: result: $ac_cv_header_winsock_h" >&5 |
| 9339 | echo "${ECHO_T}$ac_cv_header_winsock_h" >&6; } |
| 9340 | |
| 9341 | fi |
| 9342 | if test $ac_cv_header_winsock_h = yes; then |
| 9343 | cat >>confdefs.h <<\_ACEOF |
| 9344 | #define PJ_HAS_WINSOCK_H 1 |
| 9345 | _ACEOF |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 9346 | |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 9347 | fi |
| 9348 | |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 9349 | |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 9350 | if test "${ac_cv_header_winsock2_h+set}" = set; then |
| 9351 | { echo "$as_me:$LINENO: checking for winsock2.h" >&5 |
| 9352 | echo $ECHO_N "checking for winsock2.h... $ECHO_C" >&6; } |
| 9353 | if test "${ac_cv_header_winsock2_h+set}" = set; then |
| 9354 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9355 | fi |
| 9356 | { echo "$as_me:$LINENO: result: $ac_cv_header_winsock2_h" >&5 |
| 9357 | echo "${ECHO_T}$ac_cv_header_winsock2_h" >&6; } |
| 9358 | else |
| 9359 | # Is the header compilable? |
| 9360 | { echo "$as_me:$LINENO: checking winsock2.h usability" >&5 |
| 9361 | echo $ECHO_N "checking winsock2.h usability... $ECHO_C" >&6; } |
| 9362 | cat >conftest.$ac_ext <<_ACEOF |
| 9363 | /* confdefs.h. */ |
| 9364 | _ACEOF |
| 9365 | cat confdefs.h >>conftest.$ac_ext |
| 9366 | cat >>conftest.$ac_ext <<_ACEOF |
| 9367 | /* end confdefs.h. */ |
| 9368 | $ac_includes_default |
| 9369 | #include <winsock2.h> |
| 9370 | _ACEOF |
| 9371 | rm -f conftest.$ac_objext |
| 9372 | if { (ac_try="$ac_compile" |
| 9373 | case "(($ac_try" in |
| 9374 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9375 | *) ac_try_echo=$ac_try;; |
| 9376 | esac |
| 9377 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9378 | (eval "$ac_compile") 2>conftest.er1 |
| 9379 | ac_status=$? |
| 9380 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9381 | rm -f conftest.er1 |
| 9382 | cat conftest.err >&5 |
| 9383 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9384 | (exit $ac_status); } && { |
| 9385 | test -z "$ac_c_werror_flag" || |
| 9386 | test ! -s conftest.err |
| 9387 | } && test -s conftest.$ac_objext; then |
| 9388 | ac_header_compiler=yes |
| 9389 | else |
| 9390 | echo "$as_me: failed program was:" >&5 |
| 9391 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9392 | |
| 9393 | ac_header_compiler=no |
| 9394 | fi |
| 9395 | |
| 9396 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 9397 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 9398 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 9399 | |
| 9400 | # Is the header present? |
| 9401 | { echo "$as_me:$LINENO: checking winsock2.h presence" >&5 |
| 9402 | echo $ECHO_N "checking winsock2.h presence... $ECHO_C" >&6; } |
| 9403 | cat >conftest.$ac_ext <<_ACEOF |
| 9404 | /* confdefs.h. */ |
| 9405 | _ACEOF |
| 9406 | cat confdefs.h >>conftest.$ac_ext |
| 9407 | cat >>conftest.$ac_ext <<_ACEOF |
| 9408 | /* end confdefs.h. */ |
| 9409 | #include <winsock2.h> |
| 9410 | _ACEOF |
| 9411 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 9412 | case "(($ac_try" in |
| 9413 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9414 | *) ac_try_echo=$ac_try;; |
| 9415 | esac |
| 9416 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9417 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 9418 | ac_status=$? |
| 9419 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9420 | rm -f conftest.er1 |
| 9421 | cat conftest.err >&5 |
| 9422 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9423 | (exit $ac_status); } >/dev/null && { |
| 9424 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 9425 | test ! -s conftest.err |
| 9426 | }; then |
| 9427 | ac_header_preproc=yes |
| 9428 | else |
| 9429 | echo "$as_me: failed program was:" >&5 |
| 9430 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9431 | |
| 9432 | ac_header_preproc=no |
| 9433 | fi |
| 9434 | |
| 9435 | rm -f conftest.err conftest.$ac_ext |
| 9436 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 9437 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 9438 | |
| 9439 | # So? What about this header? |
| 9440 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 9441 | yes:no: ) |
| 9442 | { echo "$as_me:$LINENO: WARNING: winsock2.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 9443 | echo "$as_me: WARNING: winsock2.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 9444 | { echo "$as_me:$LINENO: WARNING: winsock2.h: proceeding with the compiler's result" >&5 |
| 9445 | echo "$as_me: WARNING: winsock2.h: proceeding with the compiler's result" >&2;} |
| 9446 | ac_header_preproc=yes |
| 9447 | ;; |
| 9448 | no:yes:* ) |
| 9449 | { echo "$as_me:$LINENO: WARNING: winsock2.h: present but cannot be compiled" >&5 |
| 9450 | echo "$as_me: WARNING: winsock2.h: present but cannot be compiled" >&2;} |
| 9451 | { echo "$as_me:$LINENO: WARNING: winsock2.h: check for missing prerequisite headers?" >&5 |
| 9452 | echo "$as_me: WARNING: winsock2.h: check for missing prerequisite headers?" >&2;} |
| 9453 | { echo "$as_me:$LINENO: WARNING: winsock2.h: see the Autoconf documentation" >&5 |
| 9454 | echo "$as_me: WARNING: winsock2.h: see the Autoconf documentation" >&2;} |
| 9455 | { echo "$as_me:$LINENO: WARNING: winsock2.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 9456 | echo "$as_me: WARNING: winsock2.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 9457 | { echo "$as_me:$LINENO: WARNING: winsock2.h: proceeding with the preprocessor's result" >&5 |
| 9458 | echo "$as_me: WARNING: winsock2.h: proceeding with the preprocessor's result" >&2;} |
| 9459 | { echo "$as_me:$LINENO: WARNING: winsock2.h: in the future, the compiler will take precedence" >&5 |
| 9460 | echo "$as_me: WARNING: winsock2.h: in the future, the compiler will take precedence" >&2;} |
| 9461 | |
| 9462 | ;; |
| 9463 | esac |
| 9464 | { echo "$as_me:$LINENO: checking for winsock2.h" >&5 |
| 9465 | echo $ECHO_N "checking for winsock2.h... $ECHO_C" >&6; } |
| 9466 | if test "${ac_cv_header_winsock2_h+set}" = set; then |
| 9467 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9468 | else |
| 9469 | ac_cv_header_winsock2_h=$ac_header_preproc |
| 9470 | fi |
| 9471 | { echo "$as_me:$LINENO: result: $ac_cv_header_winsock2_h" >&5 |
| 9472 | echo "${ECHO_T}$ac_cv_header_winsock2_h" >&6; } |
| 9473 | |
| 9474 | fi |
| 9475 | if test $ac_cv_header_winsock2_h = yes; then |
| 9476 | cat >>confdefs.h <<\_ACEOF |
| 9477 | #define PJ_HAS_WINSOCK2_H 1 |
| 9478 | _ACEOF |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 9479 | |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 9480 | fi |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 9481 | |
Benny Prijono | 46bd084 | 2010-02-12 14:12:41 +0000 | [diff] [blame] | 9482 | |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 9483 | { echo "$as_me:$LINENO: checking for mswsock.h" >&5 |
| 9484 | echo $ECHO_N "checking for mswsock.h... $ECHO_C" >&6; } |
| 9485 | if test "${ac_cv_header_mswsock_h+set}" = set; then |
| 9486 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9487 | else |
| 9488 | cat >conftest.$ac_ext <<_ACEOF |
| 9489 | /* confdefs.h. */ |
| 9490 | _ACEOF |
| 9491 | cat confdefs.h >>conftest.$ac_ext |
| 9492 | cat >>conftest.$ac_ext <<_ACEOF |
| 9493 | /* end confdefs.h. */ |
| 9494 | #if PJ_HAS_WINSOCK2_H |
Benny Prijono | a9948e6 | 2008-03-25 14:03:01 +0000 | [diff] [blame] | 9495 | # include <winsock2.h> |
| 9496 | #elif PJ_HAS_WINSOCK_H |
| 9497 | # include <winsock.h> |
| 9498 | #endif |
| 9499 | |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 9500 | |
| 9501 | #include <mswsock.h> |
| 9502 | _ACEOF |
| 9503 | rm -f conftest.$ac_objext |
| 9504 | if { (ac_try="$ac_compile" |
| 9505 | case "(($ac_try" in |
| 9506 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9507 | *) ac_try_echo=$ac_try;; |
| 9508 | esac |
| 9509 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9510 | (eval "$ac_compile") 2>conftest.er1 |
| 9511 | ac_status=$? |
| 9512 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9513 | rm -f conftest.er1 |
| 9514 | cat conftest.err >&5 |
| 9515 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9516 | (exit $ac_status); } && { |
| 9517 | test -z "$ac_c_werror_flag" || |
| 9518 | test ! -s conftest.err |
| 9519 | } && test -s conftest.$ac_objext; then |
| 9520 | ac_cv_header_mswsock_h=yes |
| 9521 | else |
| 9522 | echo "$as_me: failed program was:" >&5 |
| 9523 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9524 | |
| 9525 | ac_cv_header_mswsock_h=no |
| 9526 | fi |
| 9527 | |
| 9528 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 9529 | fi |
| 9530 | { echo "$as_me:$LINENO: result: $ac_cv_header_mswsock_h" >&5 |
| 9531 | echo "${ECHO_T}$ac_cv_header_mswsock_h" >&6; } |
| 9532 | if test $ac_cv_header_mswsock_h = yes; then |
| 9533 | cat >>confdefs.h <<\_ACEOF |
| 9534 | #define PJ_HAS_MSWSOCK_H 1 |
| 9535 | _ACEOF |
Benny Prijono | a9948e6 | 2008-03-25 14:03:01 +0000 | [diff] [blame] | 9536 | |
| 9537 | fi |
| 9538 | |
| 9539 | |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 9540 | if test "${ac_cv_header_ws2tcpip_h+set}" = set; then |
| 9541 | { echo "$as_me:$LINENO: checking for ws2tcpip.h" >&5 |
| 9542 | echo $ECHO_N "checking for ws2tcpip.h... $ECHO_C" >&6; } |
| 9543 | if test "${ac_cv_header_ws2tcpip_h+set}" = set; then |
| 9544 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9545 | fi |
| 9546 | { echo "$as_me:$LINENO: result: $ac_cv_header_ws2tcpip_h" >&5 |
| 9547 | echo "${ECHO_T}$ac_cv_header_ws2tcpip_h" >&6; } |
| 9548 | else |
| 9549 | # Is the header compilable? |
| 9550 | { echo "$as_me:$LINENO: checking ws2tcpip.h usability" >&5 |
| 9551 | echo $ECHO_N "checking ws2tcpip.h usability... $ECHO_C" >&6; } |
| 9552 | cat >conftest.$ac_ext <<_ACEOF |
| 9553 | /* confdefs.h. */ |
| 9554 | _ACEOF |
| 9555 | cat confdefs.h >>conftest.$ac_ext |
| 9556 | cat >>conftest.$ac_ext <<_ACEOF |
| 9557 | /* end confdefs.h. */ |
| 9558 | $ac_includes_default |
| 9559 | #include <ws2tcpip.h> |
| 9560 | _ACEOF |
| 9561 | rm -f conftest.$ac_objext |
| 9562 | if { (ac_try="$ac_compile" |
| 9563 | case "(($ac_try" in |
| 9564 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9565 | *) ac_try_echo=$ac_try;; |
| 9566 | esac |
| 9567 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9568 | (eval "$ac_compile") 2>conftest.er1 |
| 9569 | ac_status=$? |
| 9570 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9571 | rm -f conftest.er1 |
| 9572 | cat conftest.err >&5 |
| 9573 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9574 | (exit $ac_status); } && { |
| 9575 | test -z "$ac_c_werror_flag" || |
| 9576 | test ! -s conftest.err |
| 9577 | } && test -s conftest.$ac_objext; then |
| 9578 | ac_header_compiler=yes |
| 9579 | else |
| 9580 | echo "$as_me: failed program was:" >&5 |
| 9581 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9582 | |
| 9583 | ac_header_compiler=no |
| 9584 | fi |
| 9585 | |
| 9586 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 9587 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 9588 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 9589 | |
| 9590 | # Is the header present? |
| 9591 | { echo "$as_me:$LINENO: checking ws2tcpip.h presence" >&5 |
| 9592 | echo $ECHO_N "checking ws2tcpip.h presence... $ECHO_C" >&6; } |
| 9593 | cat >conftest.$ac_ext <<_ACEOF |
| 9594 | /* confdefs.h. */ |
| 9595 | _ACEOF |
| 9596 | cat confdefs.h >>conftest.$ac_ext |
| 9597 | cat >>conftest.$ac_ext <<_ACEOF |
| 9598 | /* end confdefs.h. */ |
| 9599 | #include <ws2tcpip.h> |
| 9600 | _ACEOF |
| 9601 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 9602 | case "(($ac_try" in |
| 9603 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9604 | *) ac_try_echo=$ac_try;; |
| 9605 | esac |
| 9606 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9607 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 9608 | ac_status=$? |
| 9609 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9610 | rm -f conftest.er1 |
| 9611 | cat conftest.err >&5 |
| 9612 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9613 | (exit $ac_status); } >/dev/null && { |
| 9614 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 9615 | test ! -s conftest.err |
| 9616 | }; then |
| 9617 | ac_header_preproc=yes |
| 9618 | else |
| 9619 | echo "$as_me: failed program was:" >&5 |
| 9620 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9621 | |
| 9622 | ac_header_preproc=no |
| 9623 | fi |
| 9624 | |
| 9625 | rm -f conftest.err conftest.$ac_ext |
| 9626 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 9627 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 9628 | |
| 9629 | # So? What about this header? |
| 9630 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 9631 | yes:no: ) |
| 9632 | { echo "$as_me:$LINENO: WARNING: ws2tcpip.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 9633 | echo "$as_me: WARNING: ws2tcpip.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 9634 | { echo "$as_me:$LINENO: WARNING: ws2tcpip.h: proceeding with the compiler's result" >&5 |
| 9635 | echo "$as_me: WARNING: ws2tcpip.h: proceeding with the compiler's result" >&2;} |
| 9636 | ac_header_preproc=yes |
| 9637 | ;; |
| 9638 | no:yes:* ) |
| 9639 | { echo "$as_me:$LINENO: WARNING: ws2tcpip.h: present but cannot be compiled" >&5 |
| 9640 | echo "$as_me: WARNING: ws2tcpip.h: present but cannot be compiled" >&2;} |
| 9641 | { echo "$as_me:$LINENO: WARNING: ws2tcpip.h: check for missing prerequisite headers?" >&5 |
| 9642 | echo "$as_me: WARNING: ws2tcpip.h: check for missing prerequisite headers?" >&2;} |
| 9643 | { echo "$as_me:$LINENO: WARNING: ws2tcpip.h: see the Autoconf documentation" >&5 |
| 9644 | echo "$as_me: WARNING: ws2tcpip.h: see the Autoconf documentation" >&2;} |
| 9645 | { echo "$as_me:$LINENO: WARNING: ws2tcpip.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 9646 | echo "$as_me: WARNING: ws2tcpip.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 9647 | { echo "$as_me:$LINENO: WARNING: ws2tcpip.h: proceeding with the preprocessor's result" >&5 |
| 9648 | echo "$as_me: WARNING: ws2tcpip.h: proceeding with the preprocessor's result" >&2;} |
| 9649 | { echo "$as_me:$LINENO: WARNING: ws2tcpip.h: in the future, the compiler will take precedence" >&5 |
| 9650 | echo "$as_me: WARNING: ws2tcpip.h: in the future, the compiler will take precedence" >&2;} |
| 9651 | |
| 9652 | ;; |
| 9653 | esac |
| 9654 | { echo "$as_me:$LINENO: checking for ws2tcpip.h" >&5 |
| 9655 | echo $ECHO_N "checking for ws2tcpip.h... $ECHO_C" >&6; } |
| 9656 | if test "${ac_cv_header_ws2tcpip_h+set}" = set; then |
| 9657 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9658 | else |
| 9659 | ac_cv_header_ws2tcpip_h=$ac_header_preproc |
| 9660 | fi |
| 9661 | { echo "$as_me:$LINENO: result: $ac_cv_header_ws2tcpip_h" >&5 |
| 9662 | echo "${ECHO_T}$ac_cv_header_ws2tcpip_h" >&6; } |
| 9663 | |
| 9664 | fi |
| 9665 | if test $ac_cv_header_ws2tcpip_h = yes; then |
| 9666 | cat >>confdefs.h <<\_ACEOF |
| 9667 | #define PJ_HAS_WS2TCPIP_H 1 |
| 9668 | _ACEOF |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 9669 | |
| 9670 | fi |
| 9671 | |
| 9672 | |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 9673 | if test "${ac_cv_header_uuid_uuid_h+set}" = set; then |
| 9674 | { echo "$as_me:$LINENO: checking for uuid/uuid.h" >&5 |
| 9675 | echo $ECHO_N "checking for uuid/uuid.h... $ECHO_C" >&6; } |
| 9676 | if test "${ac_cv_header_uuid_uuid_h+set}" = set; then |
| 9677 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9678 | fi |
| 9679 | { echo "$as_me:$LINENO: result: $ac_cv_header_uuid_uuid_h" >&5 |
| 9680 | echo "${ECHO_T}$ac_cv_header_uuid_uuid_h" >&6; } |
| 9681 | else |
| 9682 | # Is the header compilable? |
| 9683 | { echo "$as_me:$LINENO: checking uuid/uuid.h usability" >&5 |
| 9684 | echo $ECHO_N "checking uuid/uuid.h usability... $ECHO_C" >&6; } |
| 9685 | cat >conftest.$ac_ext <<_ACEOF |
| 9686 | /* confdefs.h. */ |
| 9687 | _ACEOF |
| 9688 | cat confdefs.h >>conftest.$ac_ext |
| 9689 | cat >>conftest.$ac_ext <<_ACEOF |
| 9690 | /* end confdefs.h. */ |
| 9691 | $ac_includes_default |
| 9692 | #include <uuid/uuid.h> |
| 9693 | _ACEOF |
| 9694 | rm -f conftest.$ac_objext |
| 9695 | if { (ac_try="$ac_compile" |
| 9696 | case "(($ac_try" in |
| 9697 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9698 | *) ac_try_echo=$ac_try;; |
| 9699 | esac |
| 9700 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9701 | (eval "$ac_compile") 2>conftest.er1 |
| 9702 | ac_status=$? |
| 9703 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9704 | rm -f conftest.er1 |
| 9705 | cat conftest.err >&5 |
| 9706 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9707 | (exit $ac_status); } && { |
| 9708 | test -z "$ac_c_werror_flag" || |
| 9709 | test ! -s conftest.err |
| 9710 | } && test -s conftest.$ac_objext; then |
| 9711 | ac_header_compiler=yes |
| 9712 | else |
| 9713 | echo "$as_me: failed program was:" >&5 |
| 9714 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9715 | |
| 9716 | ac_header_compiler=no |
| 9717 | fi |
| 9718 | |
| 9719 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 9720 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 9721 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 9722 | |
| 9723 | # Is the header present? |
| 9724 | { echo "$as_me:$LINENO: checking uuid/uuid.h presence" >&5 |
| 9725 | echo $ECHO_N "checking uuid/uuid.h presence... $ECHO_C" >&6; } |
| 9726 | cat >conftest.$ac_ext <<_ACEOF |
| 9727 | /* confdefs.h. */ |
| 9728 | _ACEOF |
| 9729 | cat confdefs.h >>conftest.$ac_ext |
| 9730 | cat >>conftest.$ac_ext <<_ACEOF |
| 9731 | /* end confdefs.h. */ |
| 9732 | #include <uuid/uuid.h> |
| 9733 | _ACEOF |
| 9734 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 9735 | case "(($ac_try" in |
| 9736 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9737 | *) ac_try_echo=$ac_try;; |
| 9738 | esac |
| 9739 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9740 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 9741 | ac_status=$? |
| 9742 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9743 | rm -f conftest.er1 |
| 9744 | cat conftest.err >&5 |
| 9745 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9746 | (exit $ac_status); } >/dev/null && { |
| 9747 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 9748 | test ! -s conftest.err |
| 9749 | }; then |
| 9750 | ac_header_preproc=yes |
| 9751 | else |
| 9752 | echo "$as_me: failed program was:" >&5 |
| 9753 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9754 | |
| 9755 | ac_header_preproc=no |
| 9756 | fi |
| 9757 | |
| 9758 | rm -f conftest.err conftest.$ac_ext |
| 9759 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 9760 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 9761 | |
| 9762 | # So? What about this header? |
| 9763 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 9764 | yes:no: ) |
| 9765 | { echo "$as_me:$LINENO: WARNING: uuid/uuid.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 9766 | echo "$as_me: WARNING: uuid/uuid.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 9767 | { echo "$as_me:$LINENO: WARNING: uuid/uuid.h: proceeding with the compiler's result" >&5 |
| 9768 | echo "$as_me: WARNING: uuid/uuid.h: proceeding with the compiler's result" >&2;} |
| 9769 | ac_header_preproc=yes |
| 9770 | ;; |
| 9771 | no:yes:* ) |
| 9772 | { echo "$as_me:$LINENO: WARNING: uuid/uuid.h: present but cannot be compiled" >&5 |
| 9773 | echo "$as_me: WARNING: uuid/uuid.h: present but cannot be compiled" >&2;} |
| 9774 | { echo "$as_me:$LINENO: WARNING: uuid/uuid.h: check for missing prerequisite headers?" >&5 |
| 9775 | echo "$as_me: WARNING: uuid/uuid.h: check for missing prerequisite headers?" >&2;} |
| 9776 | { echo "$as_me:$LINENO: WARNING: uuid/uuid.h: see the Autoconf documentation" >&5 |
| 9777 | echo "$as_me: WARNING: uuid/uuid.h: see the Autoconf documentation" >&2;} |
| 9778 | { echo "$as_me:$LINENO: WARNING: uuid/uuid.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 9779 | echo "$as_me: WARNING: uuid/uuid.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 9780 | { echo "$as_me:$LINENO: WARNING: uuid/uuid.h: proceeding with the preprocessor's result" >&5 |
| 9781 | echo "$as_me: WARNING: uuid/uuid.h: proceeding with the preprocessor's result" >&2;} |
| 9782 | { echo "$as_me:$LINENO: WARNING: uuid/uuid.h: in the future, the compiler will take precedence" >&5 |
| 9783 | echo "$as_me: WARNING: uuid/uuid.h: in the future, the compiler will take precedence" >&2;} |
| 9784 | |
| 9785 | ;; |
| 9786 | esac |
| 9787 | { echo "$as_me:$LINENO: checking for uuid/uuid.h" >&5 |
| 9788 | echo $ECHO_N "checking for uuid/uuid.h... $ECHO_C" >&6; } |
| 9789 | if test "${ac_cv_header_uuid_uuid_h+set}" = set; then |
| 9790 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9791 | else |
| 9792 | ac_cv_header_uuid_uuid_h=$ac_header_preproc |
| 9793 | fi |
| 9794 | { echo "$as_me:$LINENO: result: $ac_cv_header_uuid_uuid_h" >&5 |
| 9795 | echo "${ECHO_T}$ac_cv_header_uuid_uuid_h" >&6; } |
| 9796 | |
| 9797 | fi |
| 9798 | if test $ac_cv_header_uuid_uuid_h = yes; then |
Benny Prijono | 4e48b51 | 2007-05-16 13:41:00 +0000 | [diff] [blame] | 9799 | ac_has_uuid_h=1 |
| 9800 | fi |
| 9801 | |
| 9802 | |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 9803 | { echo "$as_me:$LINENO: checking for net/if.h" >&5 |
| 9804 | echo $ECHO_N "checking for net/if.h... $ECHO_C" >&6; } |
| 9805 | if test "${ac_cv_header_net_if_h+set}" = set; then |
| 9806 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9807 | else |
| 9808 | cat >conftest.$ac_ext <<_ACEOF |
| 9809 | /* confdefs.h. */ |
| 9810 | _ACEOF |
| 9811 | cat confdefs.h >>conftest.$ac_ext |
| 9812 | cat >>conftest.$ac_ext <<_ACEOF |
| 9813 | /* end confdefs.h. */ |
| 9814 | #if PJ_HAS_SYS_TYPES_H |
Benny Prijono | d523370 | 2010-01-13 13:09:45 +0000 | [diff] [blame] | 9815 | # include <sys/types.h> |
| 9816 | #endif |
| 9817 | #if PJ_HAS_SYS_SOCKET_H |
| 9818 | |
Benny Prijono | 188ba7e | 2008-03-25 13:53:16 +0000 | [diff] [blame] | 9819 | # include <sys/socket.h> |
| 9820 | #endif |
| 9821 | |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 9822 | |
| 9823 | #include <net/if.h> |
| 9824 | _ACEOF |
| 9825 | rm -f conftest.$ac_objext |
| 9826 | if { (ac_try="$ac_compile" |
| 9827 | case "(($ac_try" in |
| 9828 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9829 | *) ac_try_echo=$ac_try;; |
| 9830 | esac |
| 9831 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9832 | (eval "$ac_compile") 2>conftest.er1 |
| 9833 | ac_status=$? |
| 9834 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9835 | rm -f conftest.er1 |
| 9836 | cat conftest.err >&5 |
| 9837 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9838 | (exit $ac_status); } && { |
| 9839 | test -z "$ac_c_werror_flag" || |
| 9840 | test ! -s conftest.err |
| 9841 | } && test -s conftest.$ac_objext; then |
| 9842 | ac_cv_header_net_if_h=yes |
| 9843 | else |
| 9844 | echo "$as_me: failed program was:" >&5 |
| 9845 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9846 | |
| 9847 | ac_cv_header_net_if_h=no |
| 9848 | fi |
| 9849 | |
| 9850 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 9851 | fi |
| 9852 | { echo "$as_me:$LINENO: result: $ac_cv_header_net_if_h" >&5 |
| 9853 | echo "${ECHO_T}$ac_cv_header_net_if_h" >&6; } |
| 9854 | if test $ac_cv_header_net_if_h = yes; then |
| 9855 | cat >>confdefs.h <<\_ACEOF |
| 9856 | #define PJ_HAS_NET_IF_H 1 |
| 9857 | _ACEOF |
Benny Prijono | 188ba7e | 2008-03-25 13:53:16 +0000 | [diff] [blame] | 9858 | |
| 9859 | fi |
| 9860 | |
Benny Prijono | 188ba7e | 2008-03-25 13:53:16 +0000 | [diff] [blame] | 9861 | |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 9862 | { echo "$as_me:$LINENO: result: Setting PJ_OS_NAME to $target" >&5 |
| 9863 | echo "${ECHO_T}Setting PJ_OS_NAME to $target" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9864 | cat >>confdefs.h <<_ACEOF |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 9865 | #define PJ_OS_NAME "$target" |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9866 | _ACEOF |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 9867 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9868 | |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 9869 | { echo "$as_me:$LINENO: result: Setting PJ_HAS_ERRNO_VAR to 1" >&5 |
| 9870 | echo "${ECHO_T}Setting PJ_HAS_ERRNO_VAR to 1" >&6; } |
| 9871 | cat >>confdefs.h <<\_ACEOF |
| 9872 | #define PJ_HAS_ERRNO_VAR 1 |
| 9873 | _ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9874 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9875 | |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 9876 | { echo "$as_me:$LINENO: result: Setting PJ_HAS_HIGH_RES_TIMER to 1" >&5 |
| 9877 | echo "${ECHO_T}Setting PJ_HAS_HIGH_RES_TIMER to 1" >&6; } |
| 9878 | cat >>confdefs.h <<\_ACEOF |
| 9879 | #define PJ_HAS_HIGH_RES_TIMER 1 |
| 9880 | _ACEOF |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 9881 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9882 | |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 9883 | { echo "$as_me:$LINENO: result: Setting PJ_HAS_MALLOC to 1" >&5 |
| 9884 | echo "${ECHO_T}Setting PJ_HAS_MALLOC to 1" >&6; } |
| 9885 | cat >>confdefs.h <<\_ACEOF |
| 9886 | #define PJ_HAS_MALLOC 1 |
| 9887 | _ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9888 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9889 | |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 9890 | { echo "$as_me:$LINENO: result: Setting PJ_NATIVE_STRING_IS_UNICODE to 0" >&5 |
| 9891 | echo "${ECHO_T}Setting PJ_NATIVE_STRING_IS_UNICODE to 0" >&6; } |
| 9892 | cat >>confdefs.h <<\_ACEOF |
| 9893 | #define PJ_NATIVE_STRING_IS_UNICODE 0 |
| 9894 | _ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9895 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9896 | |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 9897 | { echo "$as_me:$LINENO: result: Setting PJ_ATOMIC_VALUE_TYPE to long" >&5 |
| 9898 | echo "${ECHO_T}Setting PJ_ATOMIC_VALUE_TYPE to long" >&6; } |
| 9899 | cat >>confdefs.h <<\_ACEOF |
| 9900 | #define PJ_ATOMIC_VALUE_TYPE long |
| 9901 | _ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9902 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9903 | |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 9904 | { echo "$as_me:$LINENO: checking if inet_aton() is available" >&5 |
| 9905 | echo $ECHO_N "checking if inet_aton() is available... $ECHO_C" >&6; } |
| 9906 | cat >conftest.$ac_ext <<_ACEOF |
| 9907 | /* confdefs.h. */ |
| 9908 | _ACEOF |
| 9909 | cat confdefs.h >>conftest.$ac_ext |
| 9910 | cat >>conftest.$ac_ext <<_ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9911 | /* end confdefs.h. */ |
Benny Prijono | c16c6e3 | 2007-11-18 14:53:47 +0000 | [diff] [blame] | 9912 | #include <sys/types.h> |
| 9913 | #include <sys/socket.h> |
| 9914 | #include <arpa/inet.h> |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9915 | int |
| 9916 | main () |
| 9917 | { |
| 9918 | inet_aton(0, 0); |
| 9919 | ; |
| 9920 | return 0; |
| 9921 | } |
| 9922 | _ACEOF |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 9923 | rm -f conftest.$ac_objext |
| 9924 | if { (ac_try="$ac_compile" |
| 9925 | case "(($ac_try" in |
| 9926 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9927 | *) ac_try_echo=$ac_try;; |
| 9928 | esac |
| 9929 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9930 | (eval "$ac_compile") 2>conftest.er1 |
| 9931 | ac_status=$? |
| 9932 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9933 | rm -f conftest.er1 |
| 9934 | cat conftest.err >&5 |
| 9935 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9936 | (exit $ac_status); } && { |
| 9937 | test -z "$ac_c_werror_flag" || |
| 9938 | test ! -s conftest.err |
| 9939 | } && test -s conftest.$ac_objext; then |
| 9940 | cat >>confdefs.h <<\_ACEOF |
| 9941 | #define PJ_SOCK_HAS_INET_ATON 1 |
| 9942 | _ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9943 | |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 9944 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 9945 | echo "${ECHO_T}yes" >&6; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9946 | else |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 9947 | echo "$as_me: failed program was:" >&5 |
| 9948 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9949 | |
| 9950 | { echo "$as_me:$LINENO: result: no" >&5 |
| 9951 | echo "${ECHO_T}no" >&6; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9952 | fi |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 9953 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 9954 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 9955 | |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 9956 | { echo "$as_me:$LINENO: checking if inet_pton() is available" >&5 |
| 9957 | echo $ECHO_N "checking if inet_pton() is available... $ECHO_C" >&6; } |
| 9958 | cat >conftest.$ac_ext <<_ACEOF |
| 9959 | /* confdefs.h. */ |
| 9960 | _ACEOF |
| 9961 | cat confdefs.h >>conftest.$ac_ext |
| 9962 | cat >>conftest.$ac_ext <<_ACEOF |
Benny Prijono | c16c6e3 | 2007-11-18 14:53:47 +0000 | [diff] [blame] | 9963 | /* end confdefs.h. */ |
| 9964 | #include <sys/types.h> |
| 9965 | #include <sys/socket.h> |
| 9966 | #include <arpa/inet.h> |
| 9967 | int |
| 9968 | main () |
| 9969 | { |
| 9970 | inet_pton(0, 0, 0); |
| 9971 | ; |
| 9972 | return 0; |
| 9973 | } |
| 9974 | _ACEOF |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 9975 | rm -f conftest.$ac_objext |
| 9976 | if { (ac_try="$ac_compile" |
| 9977 | case "(($ac_try" in |
| 9978 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9979 | *) ac_try_echo=$ac_try;; |
| 9980 | esac |
| 9981 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9982 | (eval "$ac_compile") 2>conftest.er1 |
| 9983 | ac_status=$? |
| 9984 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9985 | rm -f conftest.er1 |
| 9986 | cat conftest.err >&5 |
| 9987 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9988 | (exit $ac_status); } && { |
| 9989 | test -z "$ac_c_werror_flag" || |
| 9990 | test ! -s conftest.err |
| 9991 | } && test -s conftest.$ac_objext; then |
| 9992 | cat >>confdefs.h <<\_ACEOF |
| 9993 | #define PJ_SOCK_HAS_INET_PTON 1 |
| 9994 | _ACEOF |
Benny Prijono | c16c6e3 | 2007-11-18 14:53:47 +0000 | [diff] [blame] | 9995 | |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 9996 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 9997 | echo "${ECHO_T}yes" >&6; } |
Benny Prijono | c16c6e3 | 2007-11-18 14:53:47 +0000 | [diff] [blame] | 9998 | else |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 9999 | echo "$as_me: failed program was:" >&5 |
| 10000 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10001 | |
| 10002 | { echo "$as_me:$LINENO: result: no" >&5 |
| 10003 | echo "${ECHO_T}no" >&6; } |
Benny Prijono | c16c6e3 | 2007-11-18 14:53:47 +0000 | [diff] [blame] | 10004 | fi |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 10005 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 10006 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 10007 | |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 10008 | { echo "$as_me:$LINENO: checking if inet_ntop() is available" >&5 |
| 10009 | echo $ECHO_N "checking if inet_ntop() is available... $ECHO_C" >&6; } |
| 10010 | cat >conftest.$ac_ext <<_ACEOF |
| 10011 | /* confdefs.h. */ |
| 10012 | _ACEOF |
| 10013 | cat confdefs.h >>conftest.$ac_ext |
| 10014 | cat >>conftest.$ac_ext <<_ACEOF |
Benny Prijono | c16c6e3 | 2007-11-18 14:53:47 +0000 | [diff] [blame] | 10015 | /* end confdefs.h. */ |
| 10016 | #include <sys/types.h> |
| 10017 | #include <sys/socket.h> |
| 10018 | #include <arpa/inet.h> |
| 10019 | int |
| 10020 | main () |
| 10021 | { |
| 10022 | inet_ntop(0, 0, 0, 0); |
| 10023 | ; |
| 10024 | return 0; |
| 10025 | } |
| 10026 | _ACEOF |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 10027 | rm -f conftest.$ac_objext |
| 10028 | if { (ac_try="$ac_compile" |
| 10029 | case "(($ac_try" in |
| 10030 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10031 | *) ac_try_echo=$ac_try;; |
| 10032 | esac |
| 10033 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10034 | (eval "$ac_compile") 2>conftest.er1 |
| 10035 | ac_status=$? |
| 10036 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10037 | rm -f conftest.er1 |
| 10038 | cat conftest.err >&5 |
| 10039 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10040 | (exit $ac_status); } && { |
| 10041 | test -z "$ac_c_werror_flag" || |
| 10042 | test ! -s conftest.err |
| 10043 | } && test -s conftest.$ac_objext; then |
| 10044 | cat >>confdefs.h <<\_ACEOF |
| 10045 | #define PJ_SOCK_HAS_INET_NTOP 1 |
| 10046 | _ACEOF |
Benny Prijono | c16c6e3 | 2007-11-18 14:53:47 +0000 | [diff] [blame] | 10047 | |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 10048 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 10049 | echo "${ECHO_T}yes" >&6; } |
Benny Prijono | c16c6e3 | 2007-11-18 14:53:47 +0000 | [diff] [blame] | 10050 | else |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 10051 | echo "$as_me: failed program was:" >&5 |
| 10052 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10053 | |
| 10054 | { echo "$as_me:$LINENO: result: no" >&5 |
| 10055 | echo "${ECHO_T}no" >&6; } |
Benny Prijono | c16c6e3 | 2007-11-18 14:53:47 +0000 | [diff] [blame] | 10056 | fi |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 10057 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 10058 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 10059 | |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 10060 | { echo "$as_me:$LINENO: checking if getaddrinfo() is available" >&5 |
| 10061 | echo $ECHO_N "checking if getaddrinfo() is available... $ECHO_C" >&6; } |
| 10062 | cat >conftest.$ac_ext <<_ACEOF |
| 10063 | /* confdefs.h. */ |
| 10064 | _ACEOF |
| 10065 | cat confdefs.h >>conftest.$ac_ext |
| 10066 | cat >>conftest.$ac_ext <<_ACEOF |
Benny Prijono | c16c6e3 | 2007-11-18 14:53:47 +0000 | [diff] [blame] | 10067 | /* end confdefs.h. */ |
| 10068 | #include <sys/types.h> |
| 10069 | #include <sys/socket.h> |
| 10070 | #include <netdb.h> |
| 10071 | int |
| 10072 | main () |
| 10073 | { |
| 10074 | getaddrinfo(0, 0, 0, 0); |
| 10075 | ; |
| 10076 | return 0; |
| 10077 | } |
| 10078 | _ACEOF |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 10079 | rm -f conftest.$ac_objext |
| 10080 | if { (ac_try="$ac_compile" |
| 10081 | case "(($ac_try" in |
| 10082 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10083 | *) ac_try_echo=$ac_try;; |
| 10084 | esac |
| 10085 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10086 | (eval "$ac_compile") 2>conftest.er1 |
| 10087 | ac_status=$? |
| 10088 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10089 | rm -f conftest.er1 |
| 10090 | cat conftest.err >&5 |
| 10091 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10092 | (exit $ac_status); } && { |
| 10093 | test -z "$ac_c_werror_flag" || |
| 10094 | test ! -s conftest.err |
| 10095 | } && test -s conftest.$ac_objext; then |
| 10096 | cat >>confdefs.h <<\_ACEOF |
| 10097 | #define PJ_SOCK_HAS_GETADDRINFO 1 |
| 10098 | _ACEOF |
Benny Prijono | c16c6e3 | 2007-11-18 14:53:47 +0000 | [diff] [blame] | 10099 | |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 10100 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 10101 | echo "${ECHO_T}yes" >&6; } |
Benny Prijono | c16c6e3 | 2007-11-18 14:53:47 +0000 | [diff] [blame] | 10102 | else |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 10103 | echo "$as_me: failed program was:" >&5 |
| 10104 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10105 | |
| 10106 | { echo "$as_me:$LINENO: result: no" >&5 |
| 10107 | echo "${ECHO_T}no" >&6; } |
Benny Prijono | c16c6e3 | 2007-11-18 14:53:47 +0000 | [diff] [blame] | 10108 | fi |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 10109 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 10110 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 10111 | |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 10112 | { echo "$as_me:$LINENO: checking if sockaddr_in has sin_len member" >&5 |
| 10113 | echo $ECHO_N "checking if sockaddr_in has sin_len member... $ECHO_C" >&6; } |
| 10114 | cat >conftest.$ac_ext <<_ACEOF |
| 10115 | /* confdefs.h. */ |
| 10116 | _ACEOF |
| 10117 | cat confdefs.h >>conftest.$ac_ext |
| 10118 | cat >>conftest.$ac_ext <<_ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10119 | /* end confdefs.h. */ |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame] | 10120 | #include <sys/types.h> |
| 10121 | #include <sys/socket.h> |
| 10122 | #include <netinet/in.h> |
| 10123 | #include <arpa/inet.h> |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 10124 | int |
| 10125 | main () |
| 10126 | { |
| 10127 | struct sockaddr_in a; a.sin_len=0; |
| 10128 | ; |
| 10129 | return 0; |
| 10130 | } |
| 10131 | _ACEOF |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 10132 | rm -f conftest.$ac_objext |
| 10133 | if { (ac_try="$ac_compile" |
| 10134 | case "(($ac_try" in |
| 10135 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10136 | *) ac_try_echo=$ac_try;; |
| 10137 | esac |
| 10138 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10139 | (eval "$ac_compile") 2>conftest.er1 |
| 10140 | ac_status=$? |
| 10141 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10142 | rm -f conftest.er1 |
| 10143 | cat conftest.err >&5 |
| 10144 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10145 | (exit $ac_status); } && { |
| 10146 | test -z "$ac_c_werror_flag" || |
| 10147 | test ! -s conftest.err |
| 10148 | } && test -s conftest.$ac_objext; then |
| 10149 | cat >>confdefs.h <<\_ACEOF |
| 10150 | #define PJ_SOCKADDR_HAS_LEN 1 |
| 10151 | _ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 10152 | |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 10153 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 10154 | echo "${ECHO_T}yes" >&6; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 10155 | else |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 10156 | echo "$as_me: failed program was:" >&5 |
| 10157 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10158 | |
| 10159 | { echo "$as_me:$LINENO: result: no" >&5 |
| 10160 | echo "${ECHO_T}no" >&6; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 10161 | fi |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 10162 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 10163 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 10164 | |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 10165 | { echo "$as_me:$LINENO: checking if socklen_t is available" >&5 |
| 10166 | echo $ECHO_N "checking if socklen_t is available... $ECHO_C" >&6; } |
| 10167 | cat >conftest.$ac_ext <<_ACEOF |
| 10168 | /* confdefs.h. */ |
| 10169 | _ACEOF |
| 10170 | cat confdefs.h >>conftest.$ac_ext |
| 10171 | cat >>conftest.$ac_ext <<_ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10172 | /* end confdefs.h. */ |
Benny Prijono | d523370 | 2010-01-13 13:09:45 +0000 | [diff] [blame] | 10173 | #include <sys/types.h> |
| 10174 | #include <sys/socket.h> |
Benny Prijono | 30f85c6 | 2006-09-09 20:05:33 +0000 | [diff] [blame] | 10175 | int |
| 10176 | main () |
| 10177 | { |
| 10178 | socklen_t xxx = 0; |
| 10179 | ; |
| 10180 | return 0; |
| 10181 | } |
| 10182 | _ACEOF |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 10183 | rm -f conftest.$ac_objext |
| 10184 | if { (ac_try="$ac_compile" |
| 10185 | case "(($ac_try" in |
| 10186 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10187 | *) ac_try_echo=$ac_try;; |
| 10188 | esac |
| 10189 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10190 | (eval "$ac_compile") 2>conftest.er1 |
| 10191 | ac_status=$? |
| 10192 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10193 | rm -f conftest.er1 |
| 10194 | cat conftest.err >&5 |
| 10195 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10196 | (exit $ac_status); } && { |
| 10197 | test -z "$ac_c_werror_flag" || |
| 10198 | test ! -s conftest.err |
| 10199 | } && test -s conftest.$ac_objext; then |
| 10200 | cat >>confdefs.h <<\_ACEOF |
| 10201 | #define PJ_HAS_SOCKLEN_T 1 |
| 10202 | _ACEOF |
Benny Prijono | 30f85c6 | 2006-09-09 20:05:33 +0000 | [diff] [blame] | 10203 | |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 10204 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 10205 | echo "${ECHO_T}yes" >&6; } |
Benny Prijono | 30f85c6 | 2006-09-09 20:05:33 +0000 | [diff] [blame] | 10206 | else |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 10207 | echo "$as_me: failed program was:" >&5 |
| 10208 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10209 | |
| 10210 | { echo "$as_me:$LINENO: result: no" >&5 |
| 10211 | echo "${ECHO_T}no" >&6; } |
Benny Prijono | 30f85c6 | 2006-09-09 20:05:33 +0000 | [diff] [blame] | 10212 | fi |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 10213 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 10214 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 10215 | |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 10216 | { echo "$as_me:$LINENO: checking if SO_ERROR is available" >&5 |
| 10217 | echo $ECHO_N "checking if SO_ERROR is available... $ECHO_C" >&6; } |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 10218 | case $target in |
| 10219 | *mingw* | *cygw* | *win32* | *w32* ) |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 10220 | cat >>confdefs.h <<\_ACEOF |
| 10221 | #define PJ_HAS_SO_ERROR 1 |
| 10222 | _ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 10223 | |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 10224 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 10225 | echo "${ECHO_T}yes" >&6; } |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 10226 | ;; |
| 10227 | *) |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 10228 | cat >conftest.$ac_ext <<_ACEOF |
| 10229 | /* confdefs.h. */ |
| 10230 | _ACEOF |
| 10231 | cat confdefs.h >>conftest.$ac_ext |
| 10232 | cat >>conftest.$ac_ext <<_ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10233 | /* end confdefs.h. */ |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame] | 10234 | #include <sys/types.h> |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 10235 | #include <sys/socket.h> |
| 10236 | #include <netinet/in.h> |
| 10237 | #include <arpa/inet.h> |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 10238 | int |
| 10239 | main () |
| 10240 | { |
| 10241 | int i=SO_ERROR; |
| 10242 | ; |
| 10243 | return 0; |
| 10244 | } |
| 10245 | _ACEOF |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 10246 | rm -f conftest.$ac_objext |
| 10247 | if { (ac_try="$ac_compile" |
| 10248 | case "(($ac_try" in |
| 10249 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10250 | *) ac_try_echo=$ac_try;; |
| 10251 | esac |
| 10252 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10253 | (eval "$ac_compile") 2>conftest.er1 |
| 10254 | ac_status=$? |
| 10255 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10256 | rm -f conftest.er1 |
| 10257 | cat conftest.err >&5 |
| 10258 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10259 | (exit $ac_status); } && { |
| 10260 | test -z "$ac_c_werror_flag" || |
| 10261 | test ! -s conftest.err |
| 10262 | } && test -s conftest.$ac_objext; then |
| 10263 | cat >>confdefs.h <<\_ACEOF |
| 10264 | #define PJ_HAS_SO_ERROR 1 |
| 10265 | _ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 10266 | |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 10267 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 10268 | echo "${ECHO_T}yes" >&6; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 10269 | else |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 10270 | echo "$as_me: failed program was:" >&5 |
| 10271 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10272 | |
| 10273 | { echo "$as_me:$LINENO: result: no" >&5 |
| 10274 | echo "${ECHO_T}no" >&6; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 10275 | fi |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 10276 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 10277 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 10278 | ;; |
| 10279 | esac |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 10280 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10281 | |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 10282 | { echo "$as_me:$LINENO: checking if pthread_rwlock_t is available" >&5 |
| 10283 | echo $ECHO_N "checking if pthread_rwlock_t is available... $ECHO_C" >&6; } |
| 10284 | cat >conftest.$ac_ext <<_ACEOF |
| 10285 | /* confdefs.h. */ |
| 10286 | _ACEOF |
| 10287 | cat confdefs.h >>conftest.$ac_ext |
| 10288 | cat >>conftest.$ac_ext <<_ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10289 | /* end confdefs.h. */ |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 10290 | #include <pthread.h> |
| 10291 | int |
| 10292 | main () |
| 10293 | { |
| 10294 | pthread_rwlock_t *x; |
| 10295 | ; |
| 10296 | return 0; |
| 10297 | } |
| 10298 | _ACEOF |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 10299 | rm -f conftest.$ac_objext |
| 10300 | if { (ac_try="$ac_compile" |
| 10301 | case "(($ac_try" in |
| 10302 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10303 | *) ac_try_echo=$ac_try;; |
| 10304 | esac |
| 10305 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10306 | (eval "$ac_compile") 2>conftest.er1 |
| 10307 | ac_status=$? |
| 10308 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10309 | rm -f conftest.er1 |
| 10310 | cat conftest.err >&5 |
| 10311 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10312 | (exit $ac_status); } && { |
| 10313 | test -z "$ac_c_werror_flag" || |
| 10314 | test ! -s conftest.err |
| 10315 | } && test -s conftest.$ac_objext; then |
| 10316 | cat >>confdefs.h <<\_ACEOF |
| 10317 | #define PJ_EMULATE_RWMUTEX 0 |
| 10318 | _ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 10319 | |
Benny Prijono | 1c5f4e4 | 2008-02-07 13:11:39 +0000 | [diff] [blame] | 10320 | ac_rwmutex="yes" |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 10321 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 10322 | echo "${ECHO_T}yes" >&6; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 10323 | else |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 10324 | echo "$as_me: failed program was:" >&5 |
| 10325 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10326 | |
| 10327 | cat >>confdefs.h <<\_ACEOF |
| 10328 | #define PJ_EMULATE_RWMUTEX 1 |
| 10329 | _ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10330 | |
Benny Prijono | 1c5f4e4 | 2008-02-07 13:11:39 +0000 | [diff] [blame] | 10331 | ac_rwmutex="no" |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 10332 | { echo "$as_me:$LINENO: result: no" >&5 |
| 10333 | echo "${ECHO_T}no" >&6; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 10334 | fi |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 10335 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 10336 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10337 | |
Benny Prijono | 1c5f4e4 | 2008-02-07 13:11:39 +0000 | [diff] [blame] | 10338 | if test "$ac_rwmutex" = "no"; then |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 10339 | { echo "$as_me:$LINENO: checking if pthread_rwlock_t is available with _POSIX_READER_WRITER_LOCKS" >&5 |
| 10340 | echo $ECHO_N "checking if pthread_rwlock_t is available with _POSIX_READER_WRITER_LOCKS... $ECHO_C" >&6; } |
| 10341 | cat >conftest.$ac_ext <<_ACEOF |
| 10342 | /* confdefs.h. */ |
| 10343 | _ACEOF |
| 10344 | cat confdefs.h >>conftest.$ac_ext |
| 10345 | cat >>conftest.$ac_ext <<_ACEOF |
Benny Prijono | 1c5f4e4 | 2008-02-07 13:11:39 +0000 | [diff] [blame] | 10346 | /* end confdefs.h. */ |
| 10347 | #define _POSIX_READER_WRITER_LOCKS |
| 10348 | #include <pthread.h> |
| 10349 | int |
| 10350 | main () |
| 10351 | { |
| 10352 | pthread_rwlock_t *x; |
| 10353 | ; |
| 10354 | return 0; |
| 10355 | } |
| 10356 | _ACEOF |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 10357 | rm -f conftest.$ac_objext |
| 10358 | if { (ac_try="$ac_compile" |
| 10359 | case "(($ac_try" in |
| 10360 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10361 | *) ac_try_echo=$ac_try;; |
| 10362 | esac |
| 10363 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10364 | (eval "$ac_compile") 2>conftest.er1 |
| 10365 | ac_status=$? |
| 10366 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10367 | rm -f conftest.er1 |
| 10368 | cat conftest.err >&5 |
| 10369 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10370 | (exit $ac_status); } && { |
| 10371 | test -z "$ac_c_werror_flag" || |
| 10372 | test ! -s conftest.err |
| 10373 | } && test -s conftest.$ac_objext; then |
| 10374 | cat >>confdefs.h <<\_ACEOF |
| 10375 | #define PJ_EMULATE_RWMUTEX 0 |
| 10376 | _ACEOF |
Benny Prijono | 1c5f4e4 | 2008-02-07 13:11:39 +0000 | [diff] [blame] | 10377 | |
| 10378 | CFLAGS="$CFLAGS -D_POSIX_THREADS -D_POSIX_READER_WRITER_LOCKS" |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 10379 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 10380 | echo "${ECHO_T}yes" >&6; } |
Benny Prijono | 1c5f4e4 | 2008-02-07 13:11:39 +0000 | [diff] [blame] | 10381 | else |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 10382 | echo "$as_me: failed program was:" >&5 |
| 10383 | sed 's/^/| /' conftest.$ac_ext >&5 |
Benny Prijono | 1c5f4e4 | 2008-02-07 13:11:39 +0000 | [diff] [blame] | 10384 | |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 10385 | cat >>confdefs.h <<\_ACEOF |
| 10386 | #define PJ_EMULATE_RWMUTEX 1 |
| 10387 | _ACEOF |
| 10388 | |
| 10389 | { echo "$as_me:$LINENO: result: no" >&5 |
| 10390 | echo "${ECHO_T}no" >&6; } |
Benny Prijono | 1c5f4e4 | 2008-02-07 13:11:39 +0000 | [diff] [blame] | 10391 | fi |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 10392 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 10393 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 10394 | fi |
| 10395 | |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 10396 | { echo "$as_me:$LINENO: checking if pthread_mutexattr_settype() is available" >&5 |
| 10397 | echo $ECHO_N "checking if pthread_mutexattr_settype() is available... $ECHO_C" >&6; } |
| 10398 | cat >conftest.$ac_ext <<_ACEOF |
| 10399 | /* confdefs.h. */ |
| 10400 | _ACEOF |
| 10401 | cat confdefs.h >>conftest.$ac_ext |
| 10402 | cat >>conftest.$ac_ext <<_ACEOF |
Benny Prijono | 1c5f4e4 | 2008-02-07 13:11:39 +0000 | [diff] [blame] | 10403 | /* end confdefs.h. */ |
| 10404 | #include <pthread.h> |
| 10405 | int |
| 10406 | main () |
| 10407 | { |
| 10408 | pthread_mutexattr_settype(0,PTHREAD_MUTEX_FAST_NP); |
| 10409 | ; |
| 10410 | return 0; |
| 10411 | } |
| 10412 | _ACEOF |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 10413 | rm -f conftest.$ac_objext |
| 10414 | if { (ac_try="$ac_compile" |
| 10415 | case "(($ac_try" in |
| 10416 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10417 | *) ac_try_echo=$ac_try;; |
| 10418 | esac |
| 10419 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10420 | (eval "$ac_compile") 2>conftest.er1 |
| 10421 | ac_status=$? |
| 10422 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10423 | rm -f conftest.er1 |
| 10424 | cat conftest.err >&5 |
| 10425 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10426 | (exit $ac_status); } && { |
| 10427 | test -z "$ac_c_werror_flag" || |
| 10428 | test ! -s conftest.err |
| 10429 | } && test -s conftest.$ac_objext; then |
| 10430 | cat >>confdefs.h <<\_ACEOF |
| 10431 | #define PJ_HAS_PTHREAD_MUTEXATTR_SETTYPE 1 |
| 10432 | _ACEOF |
Benny Prijono | 1c5f4e4 | 2008-02-07 13:11:39 +0000 | [diff] [blame] | 10433 | |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 10434 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 10435 | echo "${ECHO_T}yes" >&6; } |
Benny Prijono | 1c5f4e4 | 2008-02-07 13:11:39 +0000 | [diff] [blame] | 10436 | else |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 10437 | echo "$as_me: failed program was:" >&5 |
| 10438 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10439 | |
| 10440 | { echo "$as_me:$LINENO: result: no" >&5 |
| 10441 | echo "${ECHO_T}no" >&6; } |
Benny Prijono | 1c5f4e4 | 2008-02-07 13:11:39 +0000 | [diff] [blame] | 10442 | fi |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 10443 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 10444 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 10445 | |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 10446 | { echo "$as_me:$LINENO: checking if pthread_mutexattr_t has recursive member" >&5 |
| 10447 | echo $ECHO_N "checking if pthread_mutexattr_t has recursive member... $ECHO_C" >&6; } |
| 10448 | cat >conftest.$ac_ext <<_ACEOF |
| 10449 | /* confdefs.h. */ |
| 10450 | _ACEOF |
| 10451 | cat confdefs.h >>conftest.$ac_ext |
| 10452 | cat >>conftest.$ac_ext <<_ACEOF |
Benny Prijono | 1c5f4e4 | 2008-02-07 13:11:39 +0000 | [diff] [blame] | 10453 | /* end confdefs.h. */ |
| 10454 | #include <pthread.h> |
| 10455 | int |
| 10456 | main () |
| 10457 | { |
| 10458 | pthread_mutexattr_t attr; |
| 10459 | attr.recursive=1; |
| 10460 | ; |
| 10461 | return 0; |
| 10462 | } |
| 10463 | _ACEOF |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 10464 | rm -f conftest.$ac_objext |
| 10465 | if { (ac_try="$ac_compile" |
| 10466 | case "(($ac_try" in |
| 10467 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10468 | *) ac_try_echo=$ac_try;; |
| 10469 | esac |
| 10470 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10471 | (eval "$ac_compile") 2>conftest.er1 |
| 10472 | ac_status=$? |
| 10473 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10474 | rm -f conftest.er1 |
| 10475 | cat conftest.err >&5 |
| 10476 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10477 | (exit $ac_status); } && { |
| 10478 | test -z "$ac_c_werror_flag" || |
| 10479 | test ! -s conftest.err |
| 10480 | } && test -s conftest.$ac_objext; then |
| 10481 | cat >>confdefs.h <<\_ACEOF |
| 10482 | #define PJ_PTHREAD_MUTEXATTR_T_HAS_RECURSIVE 1 |
| 10483 | _ACEOF |
Benny Prijono | 1c5f4e4 | 2008-02-07 13:11:39 +0000 | [diff] [blame] | 10484 | |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 10485 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 10486 | echo "${ECHO_T}yes" >&6; } |
Benny Prijono | 1c5f4e4 | 2008-02-07 13:11:39 +0000 | [diff] [blame] | 10487 | else |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 10488 | echo "$as_me: failed program was:" >&5 |
| 10489 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10490 | |
| 10491 | { echo "$as_me:$LINENO: result: no" >&5 |
| 10492 | echo "${ECHO_T}no" >&6; } |
Benny Prijono | 1c5f4e4 | 2008-02-07 13:11:39 +0000 | [diff] [blame] | 10493 | fi |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 10494 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 10495 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 10496 | |
Benny Prijono | 99eec38 | 2008-09-18 21:22:16 +0000 | [diff] [blame] | 10497 | |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 10498 | { echo "$as_me:$LINENO: checking ioqueue backend" >&5 |
| 10499 | echo $ECHO_N "checking ioqueue backend... $ECHO_C" >&6; } |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 10500 | # Check whether --enable-epoll was given. |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 10501 | if test "${enable_epoll+set}" = set; then |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 10502 | enableval=$enable_epoll; |
Benny Prijono | 99eec38 | 2008-09-18 21:22:16 +0000 | [diff] [blame] | 10503 | ac_os_objs=ioqueue_epoll.o |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 10504 | { echo "$as_me:$LINENO: result: /dev/epoll" >&5 |
| 10505 | echo "${ECHO_T}/dev/epoll" >&6; } |
Benny Prijono | 99eec38 | 2008-09-18 21:22:16 +0000 | [diff] [blame] | 10506 | |
| 10507 | else |
| 10508 | |
| 10509 | ac_os_objs=ioqueue_select.o |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 10510 | { echo "$as_me:$LINENO: result: select()" >&5 |
| 10511 | echo "${ECHO_T}select()" >&6; } |
Benny Prijono | 99eec38 | 2008-09-18 21:22:16 +0000 | [diff] [blame] | 10512 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 10513 | fi |
| 10514 | |
Benny Prijono | 1c5f4e4 | 2008-02-07 13:11:39 +0000 | [diff] [blame] | 10515 | |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 10516 | |
| 10517 | case $target in |
| 10518 | *mingw* | *cygw* | *win32* | *w32* ) |
Benny Prijono | 99eec38 | 2008-09-18 21:22:16 +0000 | [diff] [blame] | 10519 | 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] | 10520 | ;; |
| 10521 | *) |
Benny Prijono | 99eec38 | 2008-09-18 21:22:16 +0000 | [diff] [blame] | 10522 | 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] | 10523 | # UUID |
| 10524 | if test "$ac_has_uuid_lib" = "1" -a "$ac_has_uuid_h" = "1"; then |
| 10525 | ac_os_objs="$ac_os_objs guid_uuid.o" |
| 10526 | else |
| 10527 | ac_os_objs="$ac_os_objs guid_simple.o" |
| 10528 | fi |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 10529 | ;; |
| 10530 | esac |
| 10531 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10532 | |
| 10533 | |
| 10534 | |
Benny Prijono | 8a9b3b2 | 2010-01-14 14:46:54 +0000 | [diff] [blame] | 10535 | ac_external_speex=0 |
| 10536 | |
| 10537 | |
| 10538 | # Check whether --with-external-speex was given. |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 10539 | if test "${with_external_speex+set}" = set; then |
Benny Prijono | 8a9b3b2 | 2010-01-14 14:46:54 +0000 | [diff] [blame] | 10540 | withval=$with_external_speex; |
| 10541 | if test "x$with_external_speex" != "xno"; then |
| 10542 | # Test Speex installation |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 10543 | { echo "$as_me:$LINENO: checking if external Speex devkit is installed" >&5 |
| 10544 | echo $ECHO_N "checking if external Speex devkit is installed... $ECHO_C" >&6; } |
| 10545 | cat >conftest.$ac_ext <<_ACEOF |
| 10546 | /* confdefs.h. */ |
| 10547 | _ACEOF |
| 10548 | cat confdefs.h >>conftest.$ac_ext |
| 10549 | cat >>conftest.$ac_ext <<_ACEOF |
Benny Prijono | 8a9b3b2 | 2010-01-14 14:46:54 +0000 | [diff] [blame] | 10550 | /* end confdefs.h. */ |
| 10551 | #include <speex/speex.h> |
| 10552 | #include <speex/speex_echo.h> |
| 10553 | |
| 10554 | int |
| 10555 | main () |
| 10556 | { |
| 10557 | speex_echo_state_init(0, 0); speex_encoder_init(0); |
| 10558 | ; |
| 10559 | return 0; |
| 10560 | } |
| 10561 | _ACEOF |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 10562 | rm -f conftest.$ac_objext |
| 10563 | if { (ac_try="$ac_compile" |
| 10564 | case "(($ac_try" in |
| 10565 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10566 | *) ac_try_echo=$ac_try;; |
| 10567 | esac |
| 10568 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10569 | (eval "$ac_compile") 2>conftest.er1 |
| 10570 | ac_status=$? |
| 10571 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10572 | rm -f conftest.er1 |
| 10573 | cat conftest.err >&5 |
| 10574 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10575 | (exit $ac_status); } && { |
| 10576 | test -z "$ac_c_werror_flag" || |
| 10577 | test ! -s conftest.err |
| 10578 | } && test -s conftest.$ac_objext; then |
| 10579 | { echo "$as_me:$LINENO: result: yes!!" >&5 |
| 10580 | echo "${ECHO_T}yes!!" >&6; } |
| 10581 | cat >>confdefs.h <<\_ACEOF |
| 10582 | #define PJMEDIA_EXTERNAL_SPEEX_CODEC 1 |
| 10583 | _ACEOF |
Benny Prijono | 8a9b3b2 | 2010-01-14 14:46:54 +0000 | [diff] [blame] | 10584 | |
| 10585 | ac_external_speex="1" |
| 10586 | |
| 10587 | else |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 10588 | echo "$as_me: failed program was:" >&5 |
| 10589 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10590 | |
| 10591 | { { echo "$as_me:$LINENO: error: Unable to use external Speex library. If Speex development files are not available in the default locations, use CFLAGS and LDFLAGS env var to set the include/lib paths" >&5 |
| 10592 | echo "$as_me: error: Unable to use external Speex library. If Speex development files are not available in the default locations, use CFLAGS and LDFLAGS env var to set the include/lib paths" >&2;} |
| 10593 | { (exit 1); exit 1; }; } |
Benny Prijono | 8a9b3b2 | 2010-01-14 14:46:54 +0000 | [diff] [blame] | 10594 | fi |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 10595 | |
Benny Prijono | 8a9b3b2 | 2010-01-14 14:46:54 +0000 | [diff] [blame] | 10596 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 10597 | fi |
| 10598 | |
| 10599 | |
| 10600 | fi |
| 10601 | |
| 10602 | |
| 10603 | ac_external_gsm=0 |
| 10604 | |
| 10605 | |
| 10606 | # Check whether --with-external-gsm was given. |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 10607 | if test "${with_external_gsm+set}" = set; then |
Benny Prijono | 8a9b3b2 | 2010-01-14 14:46:54 +0000 | [diff] [blame] | 10608 | withval=$with_external_gsm; |
| 10609 | if test "x$with_external_gsm" != "xno"; then |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 10610 | # Test GSM library installation |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 10611 | { echo "$as_me:$LINENO: checking if external GSM devkit is installed as gsm/gsm.h" >&5 |
| 10612 | echo $ECHO_N "checking if external GSM devkit is installed as gsm/gsm.h... $ECHO_C" >&6; } |
| 10613 | cat >conftest.$ac_ext <<_ACEOF |
| 10614 | /* confdefs.h. */ |
| 10615 | _ACEOF |
| 10616 | cat confdefs.h >>conftest.$ac_ext |
| 10617 | cat >>conftest.$ac_ext <<_ACEOF |
Benny Prijono | 8a9b3b2 | 2010-01-14 14:46:54 +0000 | [diff] [blame] | 10618 | /* end confdefs.h. */ |
| 10619 | #include <gsm/gsm.h> |
Benny Prijono | 8a9b3b2 | 2010-01-14 14:46:54 +0000 | [diff] [blame] | 10620 | int |
| 10621 | main () |
| 10622 | { |
| 10623 | gsm_create(); |
| 10624 | ; |
| 10625 | return 0; |
| 10626 | } |
Benny Prijono | 8a9b3b2 | 2010-01-14 14:46:54 +0000 | [diff] [blame] | 10627 | _ACEOF |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 10628 | rm -f conftest.$ac_objext |
| 10629 | if { (ac_try="$ac_compile" |
| 10630 | case "(($ac_try" in |
| 10631 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10632 | *) ac_try_echo=$ac_try;; |
| 10633 | esac |
| 10634 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10635 | (eval "$ac_compile") 2>conftest.er1 |
| 10636 | ac_status=$? |
| 10637 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10638 | rm -f conftest.er1 |
| 10639 | cat conftest.err >&5 |
| 10640 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10641 | (exit $ac_status); } && { |
| 10642 | test -z "$ac_c_werror_flag" || |
| 10643 | test ! -s conftest.err |
| 10644 | } && test -s conftest.$ac_objext; then |
| 10645 | { echo "$as_me:$LINENO: result: yes!!" >&5 |
| 10646 | echo "${ECHO_T}yes!!" >&6; } |
| 10647 | cat >>confdefs.h <<\_ACEOF |
| 10648 | #define PJMEDIA_EXTERNAL_GSM_CODEC 1 |
| 10649 | _ACEOF |
Benny Prijono | 8a9b3b2 | 2010-01-14 14:46:54 +0000 | [diff] [blame] | 10650 | |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 10651 | cat >>confdefs.h <<\_ACEOF |
| 10652 | #define PJMEDIA_EXTERNAL_GSM_GSM_H 1 |
| 10653 | _ACEOF |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 10654 | |
| 10655 | ac_external_gsm="1" |
Benny Prijono | 8a9b3b2 | 2010-01-14 14:46:54 +0000 | [diff] [blame] | 10656 | |
| 10657 | else |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 10658 | echo "$as_me: failed program was:" >&5 |
| 10659 | sed 's/^/| /' conftest.$ac_ext >&5 |
Benny Prijono | 46bd084 | 2010-02-12 14:12:41 +0000 | [diff] [blame] | 10660 | |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 10661 | |
| 10662 | { echo "$as_me:$LINENO: result: no" >&5 |
| 10663 | echo "${ECHO_T}no" >&6; } |
| 10664 | { echo "$as_me:$LINENO: checking if external GSM devkit is installed as gsm.h" >&5 |
| 10665 | echo $ECHO_N "checking if external GSM devkit is installed as gsm.h... $ECHO_C" >&6; } |
| 10666 | cat >conftest.$ac_ext <<_ACEOF |
| 10667 | /* confdefs.h. */ |
| 10668 | _ACEOF |
| 10669 | cat confdefs.h >>conftest.$ac_ext |
| 10670 | cat >>conftest.$ac_ext <<_ACEOF |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 10671 | /* end confdefs.h. */ |
| 10672 | #include <gsm.h> |
| 10673 | int |
| 10674 | main () |
| 10675 | { |
| 10676 | gsm_create(); |
| 10677 | ; |
| 10678 | return 0; |
| 10679 | } |
| 10680 | _ACEOF |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 10681 | rm -f conftest.$ac_objext |
| 10682 | if { (ac_try="$ac_compile" |
| 10683 | case "(($ac_try" in |
| 10684 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10685 | *) ac_try_echo=$ac_try;; |
| 10686 | esac |
| 10687 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10688 | (eval "$ac_compile") 2>conftest.er1 |
| 10689 | ac_status=$? |
| 10690 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10691 | rm -f conftest.er1 |
| 10692 | cat conftest.err >&5 |
| 10693 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10694 | (exit $ac_status); } && { |
| 10695 | test -z "$ac_c_werror_flag" || |
| 10696 | test ! -s conftest.err |
| 10697 | } && test -s conftest.$ac_objext; then |
| 10698 | { echo "$as_me:$LINENO: result: yes!!" >&5 |
| 10699 | echo "${ECHO_T}yes!!" >&6; } |
| 10700 | cat >>confdefs.h <<\_ACEOF |
| 10701 | #define PJMEDIA_EXTERNAL_GSM_CODEC 1 |
| 10702 | _ACEOF |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 10703 | |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 10704 | cat >>confdefs.h <<\_ACEOF |
| 10705 | #define PJMEDIA_EXTERNAL_GSM_H 1 |
| 10706 | _ACEOF |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 10707 | |
| 10708 | ac_external_gsm="1" |
| 10709 | |
| 10710 | else |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 10711 | echo "$as_me: failed program was:" >&5 |
| 10712 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10713 | |
| 10714 | { { echo "$as_me:$LINENO: error: Unable to use external GSM library. If GSM development files are not available in the default locations, use CFLAGS and LDFLAGS env var to set the include/lib paths" >&5 |
| 10715 | echo "$as_me: error: Unable to use external GSM library. If GSM development files are not available in the default locations, use CFLAGS and LDFLAGS env var to set the include/lib paths" >&2;} |
| 10716 | { (exit 1); exit 1; }; } |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 10717 | |
| 10718 | |
Benny Prijono | 8a9b3b2 | 2010-01-14 14:46:54 +0000 | [diff] [blame] | 10719 | fi |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 10720 | |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 10721 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Benny Prijono | 46bd084 | 2010-02-12 14:12:41 +0000 | [diff] [blame] | 10722 | |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 10723 | |
| 10724 | fi |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 10725 | |
Benny Prijono | 8a9b3b2 | 2010-01-14 14:46:54 +0000 | [diff] [blame] | 10726 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 10727 | fi |
| 10728 | |
| 10729 | |
| 10730 | fi |
| 10731 | |
| 10732 | |
| 10733 | |
| 10734 | |
Benny Prijono | 4e48b51 | 2007-05-16 13:41:00 +0000 | [diff] [blame] | 10735 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 10736 | # Check whether --enable-sound was given. |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 10737 | if test "${enable_sound+set}" = set; then |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 10738 | enableval=$enable_sound; if test "$enable_sound" = "no"; then |
Benny Prijono | 1d97162 | 2006-09-10 22:27:40 +0000 | [diff] [blame] | 10739 | ac_pjmedia_snd=null |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 10740 | { echo "$as_me:$LINENO: result: Checking if sound is disabled... yes" >&5 |
| 10741 | echo "${ECHO_T}Checking if sound is disabled... yes" >&6; } |
Benny Prijono | 1d97162 | 2006-09-10 22:27:40 +0000 | [diff] [blame] | 10742 | fi |
| 10743 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 10744 | fi |
| 10745 | |
Benny Prijono | 1d97162 | 2006-09-10 22:27:40 +0000 | [diff] [blame] | 10746 | |
Benny Prijono | 8a9b3b2 | 2010-01-14 14:46:54 +0000 | [diff] [blame] | 10747 | ac_external_pa=0 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10748 | |
Benny Prijono | 27c9872 | 2007-04-09 21:28:15 +0000 | [diff] [blame] | 10749 | |
Benny Prijono | 8a9b3b2 | 2010-01-14 14:46:54 +0000 | [diff] [blame] | 10750 | # Check whether --with-external-pa was given. |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 10751 | if test "${with_external_pa+set}" = set; then |
Benny Prijono | 8a9b3b2 | 2010-01-14 14:46:54 +0000 | [diff] [blame] | 10752 | withval=$with_external_pa; |
| 10753 | if test "x$with_external_pa" != "xno"; then |
| 10754 | # Test PortAudio installation |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 10755 | { echo "$as_me:$LINENO: checking if external PortAudio devkit is installed" >&5 |
| 10756 | echo $ECHO_N "checking if external PortAudio devkit is installed... $ECHO_C" >&6; } |
| 10757 | cat >conftest.$ac_ext <<_ACEOF |
| 10758 | /* confdefs.h. */ |
| 10759 | _ACEOF |
| 10760 | cat confdefs.h >>conftest.$ac_ext |
| 10761 | cat >>conftest.$ac_ext <<_ACEOF |
Benny Prijono | 8a9b3b2 | 2010-01-14 14:46:54 +0000 | [diff] [blame] | 10762 | /* end confdefs.h. */ |
| 10763 | #include <portaudio.h> |
| 10764 | |
| 10765 | int |
| 10766 | main () |
| 10767 | { |
| 10768 | Pa_Initialize(); |
| 10769 | ; |
| 10770 | return 0; |
| 10771 | } |
| 10772 | _ACEOF |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 10773 | rm -f conftest.$ac_objext |
| 10774 | if { (ac_try="$ac_compile" |
| 10775 | case "(($ac_try" in |
| 10776 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10777 | *) ac_try_echo=$ac_try;; |
| 10778 | esac |
| 10779 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10780 | (eval "$ac_compile") 2>conftest.er1 |
| 10781 | ac_status=$? |
| 10782 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10783 | rm -f conftest.er1 |
| 10784 | cat conftest.err >&5 |
| 10785 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10786 | (exit $ac_status); } && { |
| 10787 | test -z "$ac_c_werror_flag" || |
| 10788 | test ! -s conftest.err |
| 10789 | } && test -s conftest.$ac_objext; then |
| 10790 | { echo "$as_me:$LINENO: result: yes!!" >&5 |
| 10791 | echo "${ECHO_T}yes!!" >&6; } |
Benny Prijono | 8a9b3b2 | 2010-01-14 14:46:54 +0000 | [diff] [blame] | 10792 | ac_external_pa="1" |
| 10793 | |
| 10794 | else |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 10795 | echo "$as_me: failed program was:" >&5 |
| 10796 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10797 | |
| 10798 | { { echo "$as_me:$LINENO: error: Unable to use PortAudio. If PortAudio development files are not available in the default locations, use CFLAGS and LDFLAGS env var to set the include/lib paths" >&5 |
| 10799 | echo "$as_me: error: Unable to use PortAudio. If PortAudio development files are not available in the default locations, use CFLAGS and LDFLAGS env var to set the include/lib paths" >&2;} |
| 10800 | { (exit 1); exit 1; }; } |
Benny Prijono | 8a9b3b2 | 2010-01-14 14:46:54 +0000 | [diff] [blame] | 10801 | fi |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 10802 | |
Benny Prijono | 8a9b3b2 | 2010-01-14 14:46:54 +0000 | [diff] [blame] | 10803 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Benny Prijono | fe0c127 | 2010-01-13 16:28:15 +0000 | [diff] [blame] | 10804 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 10805 | |
Benny Prijono | 27c9872 | 2007-04-09 21:28:15 +0000 | [diff] [blame] | 10806 | |
| 10807 | fi |
Benny Prijono | fe0c127 | 2010-01-13 16:28:15 +0000 | [diff] [blame] | 10808 | |
| 10809 | |
| 10810 | |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 10811 | if test "${ac_cv_header_sys_soundcard_h+set}" = set; then |
| 10812 | { echo "$as_me:$LINENO: checking for sys/soundcard.h" >&5 |
| 10813 | echo $ECHO_N "checking for sys/soundcard.h... $ECHO_C" >&6; } |
| 10814 | if test "${ac_cv_header_sys_soundcard_h+set}" = set; then |
| 10815 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10816 | fi |
| 10817 | { echo "$as_me:$LINENO: result: $ac_cv_header_sys_soundcard_h" >&5 |
| 10818 | echo "${ECHO_T}$ac_cv_header_sys_soundcard_h" >&6; } |
| 10819 | else |
| 10820 | # Is the header compilable? |
| 10821 | { echo "$as_me:$LINENO: checking sys/soundcard.h usability" >&5 |
| 10822 | echo $ECHO_N "checking sys/soundcard.h usability... $ECHO_C" >&6; } |
| 10823 | cat >conftest.$ac_ext <<_ACEOF |
| 10824 | /* confdefs.h. */ |
| 10825 | _ACEOF |
| 10826 | cat confdefs.h >>conftest.$ac_ext |
| 10827 | cat >>conftest.$ac_ext <<_ACEOF |
| 10828 | /* end confdefs.h. */ |
| 10829 | $ac_includes_default |
| 10830 | #include <sys/soundcard.h> |
| 10831 | _ACEOF |
| 10832 | rm -f conftest.$ac_objext |
| 10833 | if { (ac_try="$ac_compile" |
| 10834 | case "(($ac_try" in |
| 10835 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10836 | *) ac_try_echo=$ac_try;; |
| 10837 | esac |
| 10838 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10839 | (eval "$ac_compile") 2>conftest.er1 |
| 10840 | ac_status=$? |
| 10841 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10842 | rm -f conftest.er1 |
| 10843 | cat conftest.err >&5 |
| 10844 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10845 | (exit $ac_status); } && { |
| 10846 | test -z "$ac_c_werror_flag" || |
| 10847 | test ! -s conftest.err |
| 10848 | } && test -s conftest.$ac_objext; then |
| 10849 | ac_header_compiler=yes |
| 10850 | else |
| 10851 | echo "$as_me: failed program was:" >&5 |
| 10852 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10853 | |
| 10854 | ac_header_compiler=no |
| 10855 | fi |
| 10856 | |
| 10857 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 10858 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 10859 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 10860 | |
| 10861 | # Is the header present? |
| 10862 | { echo "$as_me:$LINENO: checking sys/soundcard.h presence" >&5 |
| 10863 | echo $ECHO_N "checking sys/soundcard.h presence... $ECHO_C" >&6; } |
| 10864 | cat >conftest.$ac_ext <<_ACEOF |
| 10865 | /* confdefs.h. */ |
| 10866 | _ACEOF |
| 10867 | cat confdefs.h >>conftest.$ac_ext |
| 10868 | cat >>conftest.$ac_ext <<_ACEOF |
| 10869 | /* end confdefs.h. */ |
| 10870 | #include <sys/soundcard.h> |
| 10871 | _ACEOF |
| 10872 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 10873 | case "(($ac_try" in |
| 10874 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10875 | *) ac_try_echo=$ac_try;; |
| 10876 | esac |
| 10877 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10878 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 10879 | ac_status=$? |
| 10880 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10881 | rm -f conftest.er1 |
| 10882 | cat conftest.err >&5 |
| 10883 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10884 | (exit $ac_status); } >/dev/null && { |
| 10885 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 10886 | test ! -s conftest.err |
| 10887 | }; then |
| 10888 | ac_header_preproc=yes |
| 10889 | else |
| 10890 | echo "$as_me: failed program was:" >&5 |
| 10891 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10892 | |
| 10893 | ac_header_preproc=no |
| 10894 | fi |
| 10895 | |
| 10896 | rm -f conftest.err conftest.$ac_ext |
| 10897 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 10898 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 10899 | |
| 10900 | # So? What about this header? |
| 10901 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 10902 | yes:no: ) |
| 10903 | { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 10904 | echo "$as_me: WARNING: sys/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 10905 | { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: proceeding with the compiler's result" >&5 |
| 10906 | echo "$as_me: WARNING: sys/soundcard.h: proceeding with the compiler's result" >&2;} |
| 10907 | ac_header_preproc=yes |
| 10908 | ;; |
| 10909 | no:yes:* ) |
| 10910 | { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: present but cannot be compiled" >&5 |
| 10911 | echo "$as_me: WARNING: sys/soundcard.h: present but cannot be compiled" >&2;} |
| 10912 | { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: check for missing prerequisite headers?" >&5 |
| 10913 | echo "$as_me: WARNING: sys/soundcard.h: check for missing prerequisite headers?" >&2;} |
| 10914 | { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: see the Autoconf documentation" >&5 |
| 10915 | echo "$as_me: WARNING: sys/soundcard.h: see the Autoconf documentation" >&2;} |
| 10916 | { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 10917 | echo "$as_me: WARNING: sys/soundcard.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 10918 | { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: proceeding with the preprocessor's result" >&5 |
| 10919 | echo "$as_me: WARNING: sys/soundcard.h: proceeding with the preprocessor's result" >&2;} |
| 10920 | { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: in the future, the compiler will take precedence" >&5 |
| 10921 | echo "$as_me: WARNING: sys/soundcard.h: in the future, the compiler will take precedence" >&2;} |
| 10922 | |
| 10923 | ;; |
| 10924 | esac |
| 10925 | { echo "$as_me:$LINENO: checking for sys/soundcard.h" >&5 |
| 10926 | echo $ECHO_N "checking for sys/soundcard.h... $ECHO_C" >&6; } |
| 10927 | if test "${ac_cv_header_sys_soundcard_h+set}" = set; then |
| 10928 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10929 | else |
| 10930 | ac_cv_header_sys_soundcard_h=$ac_header_preproc |
| 10931 | fi |
| 10932 | { echo "$as_me:$LINENO: result: $ac_cv_header_sys_soundcard_h" >&5 |
| 10933 | echo "${ECHO_T}$ac_cv_header_sys_soundcard_h" >&6; } |
| 10934 | |
| 10935 | fi |
| 10936 | if test $ac_cv_header_sys_soundcard_h = yes; then |
Benny Prijono | 27c9872 | 2007-04-09 21:28:15 +0000 | [diff] [blame] | 10937 | ac_pa_cflags="$ac_pa_cflags -DHAVE_SYS_SOUNDCARD_H" |
| 10938 | fi |
| 10939 | |
| 10940 | |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 10941 | if test "${ac_cv_header_linux_soundcard_h+set}" = set; then |
| 10942 | { echo "$as_me:$LINENO: checking for linux/soundcard.h" >&5 |
| 10943 | echo $ECHO_N "checking for linux/soundcard.h... $ECHO_C" >&6; } |
| 10944 | if test "${ac_cv_header_linux_soundcard_h+set}" = set; then |
| 10945 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10946 | fi |
| 10947 | { echo "$as_me:$LINENO: result: $ac_cv_header_linux_soundcard_h" >&5 |
| 10948 | echo "${ECHO_T}$ac_cv_header_linux_soundcard_h" >&6; } |
| 10949 | else |
| 10950 | # Is the header compilable? |
| 10951 | { echo "$as_me:$LINENO: checking linux/soundcard.h usability" >&5 |
| 10952 | echo $ECHO_N "checking linux/soundcard.h usability... $ECHO_C" >&6; } |
| 10953 | cat >conftest.$ac_ext <<_ACEOF |
| 10954 | /* confdefs.h. */ |
| 10955 | _ACEOF |
| 10956 | cat confdefs.h >>conftest.$ac_ext |
| 10957 | cat >>conftest.$ac_ext <<_ACEOF |
| 10958 | /* end confdefs.h. */ |
| 10959 | $ac_includes_default |
| 10960 | #include <linux/soundcard.h> |
| 10961 | _ACEOF |
| 10962 | rm -f conftest.$ac_objext |
| 10963 | if { (ac_try="$ac_compile" |
| 10964 | case "(($ac_try" in |
| 10965 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10966 | *) ac_try_echo=$ac_try;; |
| 10967 | esac |
| 10968 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10969 | (eval "$ac_compile") 2>conftest.er1 |
| 10970 | ac_status=$? |
| 10971 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10972 | rm -f conftest.er1 |
| 10973 | cat conftest.err >&5 |
| 10974 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10975 | (exit $ac_status); } && { |
| 10976 | test -z "$ac_c_werror_flag" || |
| 10977 | test ! -s conftest.err |
| 10978 | } && test -s conftest.$ac_objext; then |
| 10979 | ac_header_compiler=yes |
| 10980 | else |
| 10981 | echo "$as_me: failed program was:" >&5 |
| 10982 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10983 | |
| 10984 | ac_header_compiler=no |
| 10985 | fi |
| 10986 | |
| 10987 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 10988 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 10989 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 10990 | |
| 10991 | # Is the header present? |
| 10992 | { echo "$as_me:$LINENO: checking linux/soundcard.h presence" >&5 |
| 10993 | echo $ECHO_N "checking linux/soundcard.h presence... $ECHO_C" >&6; } |
| 10994 | cat >conftest.$ac_ext <<_ACEOF |
| 10995 | /* confdefs.h. */ |
| 10996 | _ACEOF |
| 10997 | cat confdefs.h >>conftest.$ac_ext |
| 10998 | cat >>conftest.$ac_ext <<_ACEOF |
| 10999 | /* end confdefs.h. */ |
| 11000 | #include <linux/soundcard.h> |
| 11001 | _ACEOF |
| 11002 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 11003 | case "(($ac_try" in |
| 11004 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11005 | *) ac_try_echo=$ac_try;; |
| 11006 | esac |
| 11007 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11008 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 11009 | ac_status=$? |
| 11010 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11011 | rm -f conftest.er1 |
| 11012 | cat conftest.err >&5 |
| 11013 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11014 | (exit $ac_status); } >/dev/null && { |
| 11015 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 11016 | test ! -s conftest.err |
| 11017 | }; then |
| 11018 | ac_header_preproc=yes |
| 11019 | else |
| 11020 | echo "$as_me: failed program was:" >&5 |
| 11021 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11022 | |
| 11023 | ac_header_preproc=no |
| 11024 | fi |
| 11025 | |
| 11026 | rm -f conftest.err conftest.$ac_ext |
| 11027 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 11028 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 11029 | |
| 11030 | # So? What about this header? |
| 11031 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 11032 | yes:no: ) |
| 11033 | { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 11034 | echo "$as_me: WARNING: linux/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 11035 | { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: proceeding with the compiler's result" >&5 |
| 11036 | echo "$as_me: WARNING: linux/soundcard.h: proceeding with the compiler's result" >&2;} |
| 11037 | ac_header_preproc=yes |
| 11038 | ;; |
| 11039 | no:yes:* ) |
| 11040 | { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: present but cannot be compiled" >&5 |
| 11041 | echo "$as_me: WARNING: linux/soundcard.h: present but cannot be compiled" >&2;} |
| 11042 | { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: check for missing prerequisite headers?" >&5 |
| 11043 | echo "$as_me: WARNING: linux/soundcard.h: check for missing prerequisite headers?" >&2;} |
| 11044 | { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: see the Autoconf documentation" >&5 |
| 11045 | echo "$as_me: WARNING: linux/soundcard.h: see the Autoconf documentation" >&2;} |
| 11046 | { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 11047 | echo "$as_me: WARNING: linux/soundcard.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 11048 | { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: proceeding with the preprocessor's result" >&5 |
| 11049 | echo "$as_me: WARNING: linux/soundcard.h: proceeding with the preprocessor's result" >&2;} |
| 11050 | { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: in the future, the compiler will take precedence" >&5 |
| 11051 | echo "$as_me: WARNING: linux/soundcard.h: in the future, the compiler will take precedence" >&2;} |
| 11052 | |
| 11053 | ;; |
| 11054 | esac |
| 11055 | { echo "$as_me:$LINENO: checking for linux/soundcard.h" >&5 |
| 11056 | echo $ECHO_N "checking for linux/soundcard.h... $ECHO_C" >&6; } |
| 11057 | if test "${ac_cv_header_linux_soundcard_h+set}" = set; then |
| 11058 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11059 | else |
| 11060 | ac_cv_header_linux_soundcard_h=$ac_header_preproc |
| 11061 | fi |
| 11062 | { echo "$as_me:$LINENO: result: $ac_cv_header_linux_soundcard_h" >&5 |
| 11063 | echo "${ECHO_T}$ac_cv_header_linux_soundcard_h" >&6; } |
| 11064 | |
| 11065 | fi |
| 11066 | if test $ac_cv_header_linux_soundcard_h = yes; then |
Benny Prijono | 27c9872 | 2007-04-09 21:28:15 +0000 | [diff] [blame] | 11067 | ac_pa_cflags="$ac_pa_cflags -DHAVE_LINUX_SOUNDCARD_H" |
| 11068 | fi |
| 11069 | |
| 11070 | |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 11071 | if test "${ac_cv_header_machine_soundcard_h+set}" = set; then |
| 11072 | { echo "$as_me:$LINENO: checking for machine/soundcard.h" >&5 |
| 11073 | echo $ECHO_N "checking for machine/soundcard.h... $ECHO_C" >&6; } |
| 11074 | if test "${ac_cv_header_machine_soundcard_h+set}" = set; then |
| 11075 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11076 | fi |
| 11077 | { echo "$as_me:$LINENO: result: $ac_cv_header_machine_soundcard_h" >&5 |
| 11078 | echo "${ECHO_T}$ac_cv_header_machine_soundcard_h" >&6; } |
| 11079 | else |
| 11080 | # Is the header compilable? |
| 11081 | { echo "$as_me:$LINENO: checking machine/soundcard.h usability" >&5 |
| 11082 | echo $ECHO_N "checking machine/soundcard.h usability... $ECHO_C" >&6; } |
| 11083 | cat >conftest.$ac_ext <<_ACEOF |
| 11084 | /* confdefs.h. */ |
| 11085 | _ACEOF |
| 11086 | cat confdefs.h >>conftest.$ac_ext |
| 11087 | cat >>conftest.$ac_ext <<_ACEOF |
| 11088 | /* end confdefs.h. */ |
| 11089 | $ac_includes_default |
| 11090 | #include <machine/soundcard.h> |
| 11091 | _ACEOF |
| 11092 | rm -f conftest.$ac_objext |
| 11093 | if { (ac_try="$ac_compile" |
| 11094 | case "(($ac_try" in |
| 11095 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11096 | *) ac_try_echo=$ac_try;; |
| 11097 | esac |
| 11098 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11099 | (eval "$ac_compile") 2>conftest.er1 |
| 11100 | ac_status=$? |
| 11101 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11102 | rm -f conftest.er1 |
| 11103 | cat conftest.err >&5 |
| 11104 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11105 | (exit $ac_status); } && { |
| 11106 | test -z "$ac_c_werror_flag" || |
| 11107 | test ! -s conftest.err |
| 11108 | } && test -s conftest.$ac_objext; then |
| 11109 | ac_header_compiler=yes |
| 11110 | else |
| 11111 | echo "$as_me: failed program was:" >&5 |
| 11112 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11113 | |
| 11114 | ac_header_compiler=no |
| 11115 | fi |
| 11116 | |
| 11117 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11118 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 11119 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 11120 | |
| 11121 | # Is the header present? |
| 11122 | { echo "$as_me:$LINENO: checking machine/soundcard.h presence" >&5 |
| 11123 | echo $ECHO_N "checking machine/soundcard.h presence... $ECHO_C" >&6; } |
| 11124 | cat >conftest.$ac_ext <<_ACEOF |
| 11125 | /* confdefs.h. */ |
| 11126 | _ACEOF |
| 11127 | cat confdefs.h >>conftest.$ac_ext |
| 11128 | cat >>conftest.$ac_ext <<_ACEOF |
| 11129 | /* end confdefs.h. */ |
| 11130 | #include <machine/soundcard.h> |
| 11131 | _ACEOF |
| 11132 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 11133 | case "(($ac_try" in |
| 11134 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11135 | *) ac_try_echo=$ac_try;; |
| 11136 | esac |
| 11137 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11138 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 11139 | ac_status=$? |
| 11140 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11141 | rm -f conftest.er1 |
| 11142 | cat conftest.err >&5 |
| 11143 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11144 | (exit $ac_status); } >/dev/null && { |
| 11145 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 11146 | test ! -s conftest.err |
| 11147 | }; then |
| 11148 | ac_header_preproc=yes |
| 11149 | else |
| 11150 | echo "$as_me: failed program was:" >&5 |
| 11151 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11152 | |
| 11153 | ac_header_preproc=no |
| 11154 | fi |
| 11155 | |
| 11156 | rm -f conftest.err conftest.$ac_ext |
| 11157 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 11158 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 11159 | |
| 11160 | # So? What about this header? |
| 11161 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 11162 | yes:no: ) |
| 11163 | { echo "$as_me:$LINENO: WARNING: machine/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 11164 | echo "$as_me: WARNING: machine/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 11165 | { echo "$as_me:$LINENO: WARNING: machine/soundcard.h: proceeding with the compiler's result" >&5 |
| 11166 | echo "$as_me: WARNING: machine/soundcard.h: proceeding with the compiler's result" >&2;} |
| 11167 | ac_header_preproc=yes |
| 11168 | ;; |
| 11169 | no:yes:* ) |
| 11170 | { echo "$as_me:$LINENO: WARNING: machine/soundcard.h: present but cannot be compiled" >&5 |
| 11171 | echo "$as_me: WARNING: machine/soundcard.h: present but cannot be compiled" >&2;} |
| 11172 | { echo "$as_me:$LINENO: WARNING: machine/soundcard.h: check for missing prerequisite headers?" >&5 |
| 11173 | echo "$as_me: WARNING: machine/soundcard.h: check for missing prerequisite headers?" >&2;} |
| 11174 | { echo "$as_me:$LINENO: WARNING: machine/soundcard.h: see the Autoconf documentation" >&5 |
| 11175 | echo "$as_me: WARNING: machine/soundcard.h: see the Autoconf documentation" >&2;} |
| 11176 | { echo "$as_me:$LINENO: WARNING: machine/soundcard.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 11177 | echo "$as_me: WARNING: machine/soundcard.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 11178 | { echo "$as_me:$LINENO: WARNING: machine/soundcard.h: proceeding with the preprocessor's result" >&5 |
| 11179 | echo "$as_me: WARNING: machine/soundcard.h: proceeding with the preprocessor's result" >&2;} |
| 11180 | { echo "$as_me:$LINENO: WARNING: machine/soundcard.h: in the future, the compiler will take precedence" >&5 |
| 11181 | echo "$as_me: WARNING: machine/soundcard.h: in the future, the compiler will take precedence" >&2;} |
| 11182 | |
| 11183 | ;; |
| 11184 | esac |
| 11185 | { echo "$as_me:$LINENO: checking for machine/soundcard.h" >&5 |
| 11186 | echo $ECHO_N "checking for machine/soundcard.h... $ECHO_C" >&6; } |
| 11187 | if test "${ac_cv_header_machine_soundcard_h+set}" = set; then |
| 11188 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11189 | else |
| 11190 | ac_cv_header_machine_soundcard_h=$ac_header_preproc |
| 11191 | fi |
| 11192 | { echo "$as_me:$LINENO: result: $ac_cv_header_machine_soundcard_h" >&5 |
| 11193 | echo "${ECHO_T}$ac_cv_header_machine_soundcard_h" >&6; } |
| 11194 | |
| 11195 | fi |
| 11196 | if test $ac_cv_header_machine_soundcard_h = yes; then |
Benny Prijono | 27c9872 | 2007-04-09 21:28:15 +0000 | [diff] [blame] | 11197 | ac_pa_cflags="$ac_pa_cflags -DHAVE_MACHINE_SOUNDCARD_H" |
| 11198 | fi |
| 11199 | |
| 11200 | |
| 11201 | |
Benny Prijono | 3e09167 | 2008-01-09 15:43:02 +0000 | [diff] [blame] | 11202 | if test "x$ac_cv_c_bigendian" = "xyes"; then |
| 11203 | ac_pa_cflags="$ac_pa_cflags -DPA_BIG_ENDIAN" |
| 11204 | else |
| 11205 | ac_pa_cflags="$ac_pa_cflags -DPA_LITTLE_ENDIAN" |
| 11206 | fi |
| 11207 | |
Benny Prijono | 1d97162 | 2006-09-10 22:27:40 +0000 | [diff] [blame] | 11208 | if test "$enable_sound" = "no"; then |
| 11209 | true; |
| 11210 | else |
| 11211 | case $target in |
Benny Prijono | 8ec5eae | 2010-05-12 10:59:20 +0000 | [diff] [blame] | 11212 | arm-apple-darwin*) |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 11213 | LIBS="$LIBS -framework CoreAudio -framework CoreFoundation -framework AudioToolbox -framework CFNetwork" |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 11214 | { echo "$as_me:$LINENO: result: Checking sound device backend... AudioUnit" >&5 |
| 11215 | echo "${ECHO_T}Checking sound device backend... AudioUnit" >&6; } |
Benny Prijono | 8ec5eae | 2010-05-12 10:59:20 +0000 | [diff] [blame] | 11216 | ;; |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame] | 11217 | *darwin*) |
Benny Prijono | 39ae2da | 2006-10-13 17:57:42 +0000 | [diff] [blame] | 11218 | LIBS="$LIBS -framework CoreAudio -framework CoreServices -framework AudioUnit -framework AudioToolbox" |
| 11219 | if test "`uname -r`" = "6.8"; then |
Benny Prijono | 27c9872 | 2007-04-09 21:28:15 +0000 | [diff] [blame] | 11220 | #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] | 11221 | #AC_MSG_RESULT([Setting additional PortAudio CFLAGS.. -DPA_OLD_CORE_AUDIO -DMOSX_USE_NON_ATOMIC_FLAG_BITS]) |
| 11222 | ac_pjmedia_snd=pa_old_darwinos |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 11223 | { echo "$as_me:$LINENO: result: Checking sound device backend... old coreaudio" >&5 |
| 11224 | echo "${ECHO_T}Checking sound device backend... old coreaudio" >&6; } |
Benny Prijono | 39ae2da | 2006-10-13 17:57:42 +0000 | [diff] [blame] | 11225 | else |
| 11226 | ac_pjmedia_snd=pa_darwinos |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 11227 | { echo "$as_me:$LINENO: result: Checking sound device backend... coreaudio" >&5 |
| 11228 | echo "${ECHO_T}Checking sound device backend... coreaudio" >&6; } |
Benny Prijono | 39ae2da | 2006-10-13 17:57:42 +0000 | [diff] [blame] | 11229 | fi |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame] | 11230 | ;; |
| 11231 | *cygwin* | *mingw*) |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 11232 | ac_pjmedia_snd=pa_win32 |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 11233 | { echo "$as_me:$LINENO: result: Checking sound device backend... win32 sound" >&5 |
| 11234 | echo "${ECHO_T}Checking sound device backend... win32 sound" >&6; } |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 11235 | ;; |
| 11236 | *rtems*) |
| 11237 | ac_pjmedia_snd=null |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 11238 | { echo "$as_me:$LINENO: result: Checking sound device backend... null sound" >&5 |
| 11239 | echo "${ECHO_T}Checking sound device backend... null sound" >&6; } |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 11240 | ;; |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 11241 | *) |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 11242 | ac_pjmedia_snd=pa_unix |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 11243 | if test "${ac_cv_header_alsa_version_h+set}" = set; then |
| 11244 | { echo "$as_me:$LINENO: checking for alsa/version.h" >&5 |
| 11245 | echo $ECHO_N "checking for alsa/version.h... $ECHO_C" >&6; } |
| 11246 | if test "${ac_cv_header_alsa_version_h+set}" = set; then |
| 11247 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11248 | fi |
| 11249 | { echo "$as_me:$LINENO: result: $ac_cv_header_alsa_version_h" >&5 |
| 11250 | echo "${ECHO_T}$ac_cv_header_alsa_version_h" >&6; } |
| 11251 | else |
| 11252 | # Is the header compilable? |
| 11253 | { echo "$as_me:$LINENO: checking alsa/version.h usability" >&5 |
| 11254 | echo $ECHO_N "checking alsa/version.h usability... $ECHO_C" >&6; } |
| 11255 | cat >conftest.$ac_ext <<_ACEOF |
| 11256 | /* confdefs.h. */ |
| 11257 | _ACEOF |
| 11258 | cat confdefs.h >>conftest.$ac_ext |
| 11259 | cat >>conftest.$ac_ext <<_ACEOF |
| 11260 | /* end confdefs.h. */ |
| 11261 | $ac_includes_default |
| 11262 | #include <alsa/version.h> |
| 11263 | _ACEOF |
| 11264 | rm -f conftest.$ac_objext |
| 11265 | if { (ac_try="$ac_compile" |
| 11266 | case "(($ac_try" in |
| 11267 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11268 | *) ac_try_echo=$ac_try;; |
| 11269 | esac |
| 11270 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11271 | (eval "$ac_compile") 2>conftest.er1 |
| 11272 | ac_status=$? |
| 11273 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11274 | rm -f conftest.er1 |
| 11275 | cat conftest.err >&5 |
| 11276 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11277 | (exit $ac_status); } && { |
| 11278 | test -z "$ac_c_werror_flag" || |
| 11279 | test ! -s conftest.err |
| 11280 | } && test -s conftest.$ac_objext; then |
| 11281 | ac_header_compiler=yes |
| 11282 | else |
| 11283 | echo "$as_me: failed program was:" >&5 |
| 11284 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11285 | |
| 11286 | ac_header_compiler=no |
| 11287 | fi |
| 11288 | |
| 11289 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11290 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 11291 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 11292 | |
| 11293 | # Is the header present? |
| 11294 | { echo "$as_me:$LINENO: checking alsa/version.h presence" >&5 |
| 11295 | echo $ECHO_N "checking alsa/version.h presence... $ECHO_C" >&6; } |
| 11296 | cat >conftest.$ac_ext <<_ACEOF |
| 11297 | /* confdefs.h. */ |
| 11298 | _ACEOF |
| 11299 | cat confdefs.h >>conftest.$ac_ext |
| 11300 | cat >>conftest.$ac_ext <<_ACEOF |
| 11301 | /* end confdefs.h. */ |
| 11302 | #include <alsa/version.h> |
| 11303 | _ACEOF |
| 11304 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 11305 | case "(($ac_try" in |
| 11306 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11307 | *) ac_try_echo=$ac_try;; |
| 11308 | esac |
| 11309 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11310 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 11311 | ac_status=$? |
| 11312 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11313 | rm -f conftest.er1 |
| 11314 | cat conftest.err >&5 |
| 11315 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11316 | (exit $ac_status); } >/dev/null && { |
| 11317 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 11318 | test ! -s conftest.err |
| 11319 | }; then |
| 11320 | ac_header_preproc=yes |
| 11321 | else |
| 11322 | echo "$as_me: failed program was:" >&5 |
| 11323 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11324 | |
| 11325 | ac_header_preproc=no |
| 11326 | fi |
| 11327 | |
| 11328 | rm -f conftest.err conftest.$ac_ext |
| 11329 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 11330 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 11331 | |
| 11332 | # So? What about this header? |
| 11333 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 11334 | yes:no: ) |
| 11335 | { echo "$as_me:$LINENO: WARNING: alsa/version.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 11336 | echo "$as_me: WARNING: alsa/version.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 11337 | { echo "$as_me:$LINENO: WARNING: alsa/version.h: proceeding with the compiler's result" >&5 |
| 11338 | echo "$as_me: WARNING: alsa/version.h: proceeding with the compiler's result" >&2;} |
| 11339 | ac_header_preproc=yes |
| 11340 | ;; |
| 11341 | no:yes:* ) |
| 11342 | { echo "$as_me:$LINENO: WARNING: alsa/version.h: present but cannot be compiled" >&5 |
| 11343 | echo "$as_me: WARNING: alsa/version.h: present but cannot be compiled" >&2;} |
| 11344 | { echo "$as_me:$LINENO: WARNING: alsa/version.h: check for missing prerequisite headers?" >&5 |
| 11345 | echo "$as_me: WARNING: alsa/version.h: check for missing prerequisite headers?" >&2;} |
| 11346 | { echo "$as_me:$LINENO: WARNING: alsa/version.h: see the Autoconf documentation" >&5 |
| 11347 | echo "$as_me: WARNING: alsa/version.h: see the Autoconf documentation" >&2;} |
| 11348 | { echo "$as_me:$LINENO: WARNING: alsa/version.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 11349 | echo "$as_me: WARNING: alsa/version.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 11350 | { echo "$as_me:$LINENO: WARNING: alsa/version.h: proceeding with the preprocessor's result" >&5 |
| 11351 | echo "$as_me: WARNING: alsa/version.h: proceeding with the preprocessor's result" >&2;} |
| 11352 | { echo "$as_me:$LINENO: WARNING: alsa/version.h: in the future, the compiler will take precedence" >&5 |
| 11353 | echo "$as_me: WARNING: alsa/version.h: in the future, the compiler will take precedence" >&2;} |
| 11354 | |
| 11355 | ;; |
| 11356 | esac |
| 11357 | { echo "$as_me:$LINENO: checking for alsa/version.h" >&5 |
| 11358 | echo $ECHO_N "checking for alsa/version.h... $ECHO_C" >&6; } |
| 11359 | if test "${ac_cv_header_alsa_version_h+set}" = set; then |
| 11360 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11361 | else |
| 11362 | ac_cv_header_alsa_version_h=$ac_header_preproc |
| 11363 | fi |
| 11364 | { echo "$as_me:$LINENO: result: $ac_cv_header_alsa_version_h" >&5 |
| 11365 | echo "${ECHO_T}$ac_cv_header_alsa_version_h" >&6; } |
| 11366 | |
| 11367 | fi |
| 11368 | if test $ac_cv_header_alsa_version_h = yes; then |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 11369 | ac_pa_use_alsa=1 |
| 11370 | |
| 11371 | LIBS="$LIBS -lasound" |
| 11372 | |
| 11373 | else |
| 11374 | ac_pa_use_alsa=0 |
| 11375 | |
| 11376 | fi |
| 11377 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11378 | |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 11379 | { echo "$as_me:$LINENO: result: Checking sound device backend... unix" >&5 |
| 11380 | echo "${ECHO_T}Checking sound device backend... unix" >&6; } |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 11381 | |
| 11382 | ac_pa_use_oss=1 |
| 11383 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 11384 | # Check whether --enable-oss was given. |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 11385 | if test "${enable_oss+set}" = set; then |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 11386 | enableval=$enable_oss; |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 11387 | if test "$enable_oss" = "no"; then |
| 11388 | ac_pa_use_oss=0 |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 11389 | { echo "$as_me:$LINENO: result: Checking if OSS audio is disabled... yes" >&5 |
| 11390 | echo "${ECHO_T}Checking if OSS audio is disabled... yes" >&6; } |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 11391 | fi |
| 11392 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 11393 | fi |
| 11394 | |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 11395 | ;; |
Benny Prijono | 1d97162 | 2006-09-10 22:27:40 +0000 | [diff] [blame] | 11396 | esac |
| 11397 | fi |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 11398 | |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 11399 | |
| 11400 | if test "$enable_video" = "no"; then |
| 11401 | true; |
| 11402 | else |
| 11403 | case $target in |
| 11404 | arm-apple-darwin*) |
| 11405 | ac_pjmedia_video=iphone_os |
| 11406 | |
| 11407 | ac_ios_cflags="-DPJMEDIA_VIDEO_DEV_HAS_IOS=1" |
| 11408 | LIBS="$LIBS -framework AVFoundation -framework UIKit -framework CoreGraphics -framework QuartzCore -framework CoreVideo -framework CoreMedia" |
| 11409 | { echo "$as_me:$LINENO: result: Checking video device backend... AVFoundation" >&5 |
| 11410 | echo "${ECHO_T}Checking video device backend... AVFoundation" >&6; } |
| 11411 | ;; |
| 11412 | *darwin*) |
| 11413 | ac_pjmedia_video=mac_os |
| 11414 | |
| 11415 | |
| 11416 | SAVED_LIBS="$LIBS" |
| 11417 | LIBS="-framework QTKit" |
| 11418 | cat >conftest.$ac_ext <<_ACEOF |
| 11419 | /* confdefs.h. */ |
| 11420 | _ACEOF |
| 11421 | cat confdefs.h >>conftest.$ac_ext |
| 11422 | cat >>conftest.$ac_ext <<_ACEOF |
| 11423 | /* end confdefs.h. */ |
| 11424 | |
| 11425 | int |
| 11426 | main () |
| 11427 | { |
| 11428 | |
| 11429 | ; |
| 11430 | return 0; |
| 11431 | } |
| 11432 | _ACEOF |
| 11433 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11434 | if { (ac_try="$ac_link" |
| 11435 | case "(($ac_try" in |
| 11436 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11437 | *) ac_try_echo=$ac_try;; |
| 11438 | esac |
| 11439 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11440 | (eval "$ac_link") 2>conftest.er1 |
| 11441 | ac_status=$? |
| 11442 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11443 | rm -f conftest.er1 |
| 11444 | cat conftest.err >&5 |
| 11445 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11446 | (exit $ac_status); } && { |
| 11447 | test -z "$ac_c_werror_flag" || |
| 11448 | test ! -s conftest.err |
| 11449 | } && test -s conftest$ac_exeext && |
| 11450 | $as_test_x conftest$ac_exeext; then |
| 11451 | ac_pjmedia_video_has_qt=yes |
| 11452 | else |
| 11453 | echo "$as_me: failed program was:" >&5 |
| 11454 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11455 | |
| 11456 | ac_pjmedia_video_has_qt=no |
| 11457 | fi |
| 11458 | |
| 11459 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 11460 | conftest$ac_exeext conftest.$ac_ext |
| 11461 | LIBS="$SAVED_LIBS" |
| 11462 | if test "$ac_pjmedia_video_has_qt" = "yes"; then |
| 11463 | ac_qt_cflags="-DPJMEDIA_VIDEO_DEV_HAS_QT=1" |
| 11464 | LIBS="$LIBS -framework QTKit -framework Foundation -framework AppKit -framework QuartzCore" |
| 11465 | { echo "$as_me:$LINENO: result: Checking if QTKit framework is available... yes" >&5 |
| 11466 | echo "${ECHO_T}Checking if QTKit framework is available... yes" >&6; } |
| 11467 | else |
| 11468 | { echo "$as_me:$LINENO: result: Checking if QTKit framework is available... no" >&5 |
| 11469 | echo "${ECHO_T}Checking if QTKit framework is available... no" >&6; } |
| 11470 | fi |
| 11471 | ;; |
| 11472 | esac |
| 11473 | fi |
| 11474 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 11475 | # Check whether --enable-ext_sound was given. |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 11476 | if test "${enable_ext_sound+set}" = set; then |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 11477 | enableval=$enable_ext_sound; if test "$enable_ext_sound" = "yes"; then |
Benny Prijono | ebb2c33 | 2008-07-28 23:40:58 +0000 | [diff] [blame] | 11478 | ac_pjmedia_snd=external |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 11479 | { echo "$as_me:$LINENO: result: Checking if external sound is set... yes" >&5 |
| 11480 | echo "${ECHO_T}Checking if external sound is set... yes" >&6; } |
Benny Prijono | ebb2c33 | 2008-07-28 23:40:58 +0000 | [diff] [blame] | 11481 | fi |
| 11482 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 11483 | fi |
Benny Prijono | ebb2c33 | 2008-07-28 23:40:58 +0000 | [diff] [blame] | 11484 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11485 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 11486 | |
| 11487 | # Check whether --enable-small-filter was given. |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 11488 | if test "${enable_small_filter+set}" = set; then |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 11489 | enableval=$enable_small_filter; if test "$enable_small_filter" = "no"; then |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 11490 | ac_no_small_filter='-DPJMEDIA_HAS_SMALL_FILTER=0' |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 11491 | { echo "$as_me:$LINENO: result: Checking if small filter is disabled... yes" >&5 |
| 11492 | echo "${ECHO_T}Checking if small filter is disabled... yes" >&6; } |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 11493 | fi |
| 11494 | else |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 11495 | { echo "$as_me:$LINENO: result: Checking if small filter is disabled... no" >&5 |
| 11496 | echo "${ECHO_T}Checking if small filter is disabled... no" >&6; } |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 11497 | fi |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 11498 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11499 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 11500 | |
| 11501 | # Check whether --enable-large-filter was given. |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 11502 | if test "${enable_large_filter+set}" = set; then |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 11503 | enableval=$enable_large_filter; if test "$enable_large_filter" = "no"; then |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 11504 | ac_no_large_filter='-DPJMEDIA_HAS_LARGE_FILTER=0' |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 11505 | { echo "$as_me:$LINENO: result: Checking if large filter is disabled... yes" >&5 |
| 11506 | echo "${ECHO_T}Checking if large filter is disabled... yes" >&6; } |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 11507 | fi |
| 11508 | else |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 11509 | { echo "$as_me:$LINENO: result: Checking if large filter is disabled... no" >&5 |
| 11510 | echo "${ECHO_T}Checking if large filter is disabled... no" >&6; } |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 11511 | fi |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 11512 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11513 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 11514 | |
| 11515 | # Check whether --enable-speex-aec was given. |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 11516 | if test "${enable_speex_aec+set}" = set; then |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 11517 | enableval=$enable_speex_aec; if test "$enable_speex_aec" = "no"; then |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 11518 | ac_no_speex_aec='-DPJMEDIA_HAS_SPEEX_AEC=0' |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 11519 | { echo "$as_me:$LINENO: result: Checking if Speex AEC is disabled...yes" >&5 |
| 11520 | echo "${ECHO_T}Checking if Speex AEC is disabled...yes" >&6; } |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 11521 | fi |
| 11522 | else |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 11523 | { echo "$as_me:$LINENO: result: Checking if Speex AEC is disabled...no" >&5 |
| 11524 | echo "${ECHO_T}Checking if Speex AEC is disabled...no" >&6; } |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 11525 | fi |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 11526 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11527 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 11528 | |
| 11529 | # Check whether --enable-g711-codec was given. |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 11530 | if test "${enable_g711_codec+set}" = set; then |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 11531 | enableval=$enable_g711_codec; if test "$enable_g711_codec" = "no"; then |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 11532 | ac_no_g711_codec=1 |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 11533 | cat >>confdefs.h <<\_ACEOF |
| 11534 | #define PJMEDIA_HAS_G711_CODEC 0 |
| 11535 | _ACEOF |
Benny Prijono | 06d1d0e | 2007-01-27 18:09:28 +0000 | [diff] [blame] | 11536 | |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 11537 | { echo "$as_me:$LINENO: result: Checking if G.711 codec is disabled...yes" >&5 |
| 11538 | echo "${ECHO_T}Checking if G.711 codec is disabled...yes" >&6; } |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 11539 | fi |
| 11540 | else |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 11541 | { echo "$as_me:$LINENO: result: Checking if G.711 codec is disabled...no" >&5 |
| 11542 | echo "${ECHO_T}Checking if G.711 codec is disabled...no" >&6; } |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 11543 | fi |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 11544 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11545 | |
| 11546 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 11547 | |
| 11548 | # Check whether --enable-l16-codec was given. |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 11549 | if test "${enable_l16_codec+set}" = set; then |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 11550 | enableval=$enable_l16_codec; if test "$enable_l16_codec" = "no"; then |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 11551 | ac_no_l16_codec=1 |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 11552 | cat >>confdefs.h <<\_ACEOF |
| 11553 | #define PJMEDIA_HAS_L16_CODEC 0 |
| 11554 | _ACEOF |
Benny Prijono | 06d1d0e | 2007-01-27 18:09:28 +0000 | [diff] [blame] | 11555 | |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 11556 | { echo "$as_me:$LINENO: result: Checking if L16 codecs are disabled...yes" >&5 |
| 11557 | echo "${ECHO_T}Checking if L16 codecs are disabled...yes" >&6; } |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 11558 | fi |
| 11559 | else |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 11560 | { echo "$as_me:$LINENO: result: Checking if L16 codec is disabled...no" >&5 |
| 11561 | echo "${ECHO_T}Checking if L16 codec is disabled...no" >&6; } |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 11562 | fi |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 11563 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11564 | |
| 11565 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 11566 | |
| 11567 | # Check whether --enable-gsm-codec was given. |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 11568 | if test "${enable_gsm_codec+set}" = set; then |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 11569 | enableval=$enable_gsm_codec; if test "$enable_gsm_codec" = "no"; then |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 11570 | ac_no_gsm_codec=1 |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 11571 | cat >>confdefs.h <<\_ACEOF |
| 11572 | #define PJMEDIA_HAS_GSM_CODEC 0 |
| 11573 | _ACEOF |
Benny Prijono | 06d1d0e | 2007-01-27 18:09:28 +0000 | [diff] [blame] | 11574 | |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 11575 | { echo "$as_me:$LINENO: result: Checking if GSM codec is disabled...yes" >&5 |
| 11576 | echo "${ECHO_T}Checking if GSM codec is disabled...yes" >&6; } |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 11577 | fi |
| 11578 | else |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 11579 | { echo "$as_me:$LINENO: result: Checking if GSM codec is disabled...no" >&5 |
| 11580 | echo "${ECHO_T}Checking if GSM codec is disabled...no" >&6; } |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 11581 | fi |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 11582 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11583 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 11584 | |
| 11585 | # Check whether --enable-g722-codec was given. |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 11586 | if test "${enable_g722_codec+set}" = set; then |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 11587 | enableval=$enable_g722_codec; if test "$enable_g722_codec" = "no"; then |
Benny Prijono | 71f657d | 2008-03-17 14:24:21 +0000 | [diff] [blame] | 11588 | ac_no_g722_codec=1 |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 11589 | cat >>confdefs.h <<\_ACEOF |
| 11590 | #define PJMEDIA_HAS_G722_CODEC 0 |
| 11591 | _ACEOF |
Benny Prijono | 71f657d | 2008-03-17 14:24:21 +0000 | [diff] [blame] | 11592 | |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 11593 | { echo "$as_me:$LINENO: result: Checking if G.722 codec is disabled...yes" >&5 |
| 11594 | echo "${ECHO_T}Checking if G.722 codec is disabled...yes" >&6; } |
Benny Prijono | 71f657d | 2008-03-17 14:24:21 +0000 | [diff] [blame] | 11595 | fi |
| 11596 | else |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 11597 | { echo "$as_me:$LINENO: result: Checking if G.722 codec is disabled...no" >&5 |
| 11598 | echo "${ECHO_T}Checking if G.722 codec is disabled...no" >&6; } |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 11599 | fi |
Benny Prijono | 71f657d | 2008-03-17 14:24:21 +0000 | [diff] [blame] | 11600 | |
| 11601 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 11602 | |
| 11603 | # Check whether --enable-g7221-codec was given. |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 11604 | if test "${enable_g7221_codec+set}" = set; then |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 11605 | enableval=$enable_g7221_codec; if test "$enable_g7221_codec" = "no"; then |
| 11606 | ac_no_g7221_codec=1 |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 11607 | cat >>confdefs.h <<\_ACEOF |
| 11608 | #define PJMEDIA_HAS_G7221_CODEC 0 |
| 11609 | _ACEOF |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 11610 | |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 11611 | { echo "$as_me:$LINENO: result: Checking if G.722.1 codec is disabled...yes" >&5 |
| 11612 | echo "${ECHO_T}Checking if G.722.1 codec is disabled...yes" >&6; } |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 11613 | fi |
| 11614 | else |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 11615 | { echo "$as_me:$LINENO: result: Checking if G.722.1 codec is disabled...no" >&5 |
| 11616 | echo "${ECHO_T}Checking if G.722.1 codec is disabled...no" >&6; } |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 11617 | fi |
| 11618 | |
| 11619 | |
| 11620 | |
| 11621 | # Check whether --enable-speex-codec was given. |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 11622 | if test "${enable_speex_codec+set}" = set; then |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 11623 | enableval=$enable_speex_codec; if test "$enable_speex_codec" = "no"; then |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 11624 | ac_no_speex_codec=1 |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 11625 | cat >>confdefs.h <<\_ACEOF |
| 11626 | #define PJMEDIA_HAS_SPEEX_CODEC 0 |
| 11627 | _ACEOF |
Benny Prijono | 06d1d0e | 2007-01-27 18:09:28 +0000 | [diff] [blame] | 11628 | |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 11629 | { echo "$as_me:$LINENO: result: Checking if Speex codec is disabled...yes" >&5 |
| 11630 | echo "${ECHO_T}Checking if Speex codec is disabled...yes" >&6; } |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 11631 | fi |
| 11632 | else |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 11633 | { echo "$as_me:$LINENO: result: Checking if Speex codec is disabled...no" >&5 |
| 11634 | echo "${ECHO_T}Checking if Speex codec is disabled...no" >&6; } |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 11635 | fi |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 11636 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11637 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 11638 | |
| 11639 | # Check whether --enable-ilbc-codec was given. |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 11640 | if test "${enable_ilbc_codec+set}" = set; then |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 11641 | enableval=$enable_ilbc_codec; if test "$enable_ilbc_codec" = "no"; then |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 11642 | ac_no_ilbc_codec=1 |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 11643 | cat >>confdefs.h <<\_ACEOF |
| 11644 | #define PJMEDIA_HAS_ILBC_CODEC 0 |
| 11645 | _ACEOF |
Benny Prijono | 06d1d0e | 2007-01-27 18:09:28 +0000 | [diff] [blame] | 11646 | |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 11647 | { echo "$as_me:$LINENO: result: Checking if iLBC codec is disabled...yes" >&5 |
| 11648 | echo "${ECHO_T}Checking if iLBC codec is disabled...yes" >&6; } |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 11649 | fi |
| 11650 | else |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 11651 | { echo "$as_me:$LINENO: result: Checking if iLBC codec is disabled...no" >&5 |
| 11652 | echo "${ECHO_T}Checking if iLBC codec is disabled...no" >&6; } |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 11653 | fi |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 11654 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 11655 | |
| 11656 | # Check whether --enable-libsamplerate was given. |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 11657 | if test "${enable_libsamplerate+set}" = set; then |
| 11658 | enableval=$enable_libsamplerate; |
| 11659 | { echo "$as_me:$LINENO: checking for src_new in -lsamplerate" >&5 |
| 11660 | echo $ECHO_N "checking for src_new in -lsamplerate... $ECHO_C" >&6; } |
| 11661 | if test "${ac_cv_lib_samplerate_src_new+set}" = set; then |
| 11662 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Benny Prijono | 550a1a6 | 2007-10-16 08:54:00 +0000 | [diff] [blame] | 11663 | else |
| 11664 | ac_check_lib_save_LIBS=$LIBS |
| 11665 | LIBS="-lsamplerate $LIBS" |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 11666 | cat >conftest.$ac_ext <<_ACEOF |
| 11667 | /* confdefs.h. */ |
| 11668 | _ACEOF |
| 11669 | cat confdefs.h >>conftest.$ac_ext |
| 11670 | cat >>conftest.$ac_ext <<_ACEOF |
Benny Prijono | 550a1a6 | 2007-10-16 08:54:00 +0000 | [diff] [blame] | 11671 | /* end confdefs.h. */ |
| 11672 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 11673 | /* Override any GCC internal prototype to avoid an error. |
| 11674 | Use char because int might match the return type of a GCC |
| 11675 | builtin and then its argument prototype would still apply. */ |
Benny Prijono | 550a1a6 | 2007-10-16 08:54:00 +0000 | [diff] [blame] | 11676 | #ifdef __cplusplus |
| 11677 | extern "C" |
| 11678 | #endif |
Benny Prijono | 550a1a6 | 2007-10-16 08:54:00 +0000 | [diff] [blame] | 11679 | char src_new (); |
| 11680 | int |
| 11681 | main () |
| 11682 | { |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 11683 | return src_new (); |
Benny Prijono | 550a1a6 | 2007-10-16 08:54:00 +0000 | [diff] [blame] | 11684 | ; |
| 11685 | return 0; |
| 11686 | } |
| 11687 | _ACEOF |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 11688 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11689 | if { (ac_try="$ac_link" |
| 11690 | case "(($ac_try" in |
| 11691 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11692 | *) ac_try_echo=$ac_try;; |
| 11693 | esac |
| 11694 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11695 | (eval "$ac_link") 2>conftest.er1 |
| 11696 | ac_status=$? |
| 11697 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11698 | rm -f conftest.er1 |
| 11699 | cat conftest.err >&5 |
| 11700 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11701 | (exit $ac_status); } && { |
| 11702 | test -z "$ac_c_werror_flag" || |
| 11703 | test ! -s conftest.err |
| 11704 | } && test -s conftest$ac_exeext && |
| 11705 | $as_test_x conftest$ac_exeext; then |
Benny Prijono | 550a1a6 | 2007-10-16 08:54:00 +0000 | [diff] [blame] | 11706 | ac_cv_lib_samplerate_src_new=yes |
| 11707 | else |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 11708 | echo "$as_me: failed program was:" >&5 |
| 11709 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11710 | |
| 11711 | ac_cv_lib_samplerate_src_new=no |
Benny Prijono | 550a1a6 | 2007-10-16 08:54:00 +0000 | [diff] [blame] | 11712 | fi |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 11713 | |
| 11714 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 11715 | conftest$ac_exeext conftest.$ac_ext |
Benny Prijono | 550a1a6 | 2007-10-16 08:54:00 +0000 | [diff] [blame] | 11716 | LIBS=$ac_check_lib_save_LIBS |
| 11717 | fi |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 11718 | { echo "$as_me:$LINENO: result: $ac_cv_lib_samplerate_src_new" >&5 |
| 11719 | echo "${ECHO_T}$ac_cv_lib_samplerate_src_new" >&6; } |
| 11720 | if test $ac_cv_lib_samplerate_src_new = yes; then |
Benny Prijono | 550a1a6 | 2007-10-16 08:54:00 +0000 | [diff] [blame] | 11721 | cat >>confdefs.h <<_ACEOF |
| 11722 | #define HAVE_LIBSAMPLERATE 1 |
| 11723 | _ACEOF |
| 11724 | |
| 11725 | LIBS="-lsamplerate $LIBS" |
| 11726 | |
| 11727 | fi |
| 11728 | |
| 11729 | else |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 11730 | { echo "$as_me:$LINENO: result: Skipping libsamplerate detection" >&5 |
| 11731 | echo "${ECHO_T}Skipping libsamplerate detection" >&6; } |
Benny Prijono | c45d951 | 2010-12-10 11:04:30 +0000 | [diff] [blame] | 11732 | |
| 11733 | fi |
| 11734 | |
| 11735 | |
| 11736 | # Check whether --enable-sdl was given. |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 11737 | if test "${enable_sdl+set}" = set; then |
Benny Prijono | c45d951 | 2010-12-10 11:04:30 +0000 | [diff] [blame] | 11738 | enableval=$enable_sdl; |
| 11739 | if test "$enable_sdl" = "no"; then |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 11740 | { echo "$as_me:$LINENO: result: Checking if SDL is disabled... yes" >&5 |
| 11741 | echo "${ECHO_T}Checking if SDL is disabled... yes" >&6; } |
Benny Prijono | c45d951 | 2010-12-10 11:04:30 +0000 | [diff] [blame] | 11742 | fi |
| 11743 | |
| 11744 | else |
| 11745 | |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 11746 | { echo "$as_me:$LINENO: checking SDL availability.." >&5 |
| 11747 | echo $ECHO_N "checking SDL availability..... $ECHO_C" >&6; } |
Benny Prijono | c45d951 | 2010-12-10 11:04:30 +0000 | [diff] [blame] | 11748 | if sdl-config --version; then |
| 11749 | |
| 11750 | |
| 11751 | ac_sdl_cflags=`sdl-config --cflags` |
| 11752 | ac_sdl_cflags="-DPJMEDIA_VIDEO_DEV_HAS_SDL=1 $ac_sdl_cflags" |
| 11753 | ac_sdl_ldflags=`sdl-config --libs` |
Benny Prijono | 69b1f82 | 2010-12-10 11:33:01 +0000 | [diff] [blame] | 11754 | LIBS="$LIBS $ac_sdl_ldflags" |
Benny Prijono | c45d951 | 2010-12-10 11:04:30 +0000 | [diff] [blame] | 11755 | fi |
Benny Prijono | 550a1a6 | 2007-10-16 08:54:00 +0000 | [diff] [blame] | 11756 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 11757 | fi |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 11758 | |
| 11759 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 11760 | |
Benny Prijono | c45d951 | 2010-12-10 11:04:30 +0000 | [diff] [blame] | 11761 | # Check whether --enable-ffmpeg was given. |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 11762 | if test "${enable_ffmpeg+set}" = set; then |
Benny Prijono | c45d951 | 2010-12-10 11:04:30 +0000 | [diff] [blame] | 11763 | enableval=$enable_ffmpeg; |
| 11764 | ac_has_ffmpeg=0 |
| 11765 | |
| 11766 | if test "$enable_ffmpeg" = "no"; then |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 11767 | { echo "$as_me:$LINENO: result: Checking if ffmpeg is disabled... yes" >&5 |
| 11768 | echo "${ECHO_T}Checking if ffmpeg is disabled... yes" >&6; } |
Benny Prijono | c45d951 | 2010-12-10 11:04:30 +0000 | [diff] [blame] | 11769 | fi |
| 11770 | |
| 11771 | else |
| 11772 | |
| 11773 | |
| 11774 | |
| 11775 | |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 11776 | { echo "$as_me:$LINENO: checking for avdevice_version in -lavdevice" >&5 |
| 11777 | echo $ECHO_N "checking for avdevice_version in -lavdevice... $ECHO_C" >&6; } |
| 11778 | if test "${ac_cv_lib_avdevice_avdevice_version+set}" = set; then |
| 11779 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Benny Prijono | c45d951 | 2010-12-10 11:04:30 +0000 | [diff] [blame] | 11780 | else |
| 11781 | ac_check_lib_save_LIBS=$LIBS |
| 11782 | LIBS="-lavdevice $LIBS" |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 11783 | cat >conftest.$ac_ext <<_ACEOF |
| 11784 | /* confdefs.h. */ |
| 11785 | _ACEOF |
| 11786 | cat confdefs.h >>conftest.$ac_ext |
| 11787 | cat >>conftest.$ac_ext <<_ACEOF |
Benny Prijono | c45d951 | 2010-12-10 11:04:30 +0000 | [diff] [blame] | 11788 | /* end confdefs.h. */ |
| 11789 | |
| 11790 | /* Override any GCC internal prototype to avoid an error. |
| 11791 | Use char because int might match the return type of a GCC |
| 11792 | builtin and then its argument prototype would still apply. */ |
| 11793 | #ifdef __cplusplus |
| 11794 | extern "C" |
| 11795 | #endif |
| 11796 | char avdevice_version (); |
| 11797 | int |
| 11798 | main () |
| 11799 | { |
| 11800 | return avdevice_version (); |
| 11801 | ; |
| 11802 | return 0; |
| 11803 | } |
| 11804 | _ACEOF |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 11805 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11806 | if { (ac_try="$ac_link" |
| 11807 | case "(($ac_try" in |
| 11808 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11809 | *) ac_try_echo=$ac_try;; |
| 11810 | esac |
| 11811 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11812 | (eval "$ac_link") 2>conftest.er1 |
| 11813 | ac_status=$? |
| 11814 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11815 | rm -f conftest.er1 |
| 11816 | cat conftest.err >&5 |
| 11817 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11818 | (exit $ac_status); } && { |
| 11819 | test -z "$ac_c_werror_flag" || |
| 11820 | test ! -s conftest.err |
| 11821 | } && test -s conftest$ac_exeext && |
| 11822 | $as_test_x conftest$ac_exeext; then |
Benny Prijono | c45d951 | 2010-12-10 11:04:30 +0000 | [diff] [blame] | 11823 | ac_cv_lib_avdevice_avdevice_version=yes |
| 11824 | else |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 11825 | echo "$as_me: failed program was:" >&5 |
| 11826 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11827 | |
| 11828 | ac_cv_lib_avdevice_avdevice_version=no |
Benny Prijono | c45d951 | 2010-12-10 11:04:30 +0000 | [diff] [blame] | 11829 | fi |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 11830 | |
| 11831 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 11832 | conftest$ac_exeext conftest.$ac_ext |
Benny Prijono | c45d951 | 2010-12-10 11:04:30 +0000 | [diff] [blame] | 11833 | LIBS=$ac_check_lib_save_LIBS |
| 11834 | fi |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 11835 | { echo "$as_me:$LINENO: result: $ac_cv_lib_avdevice_avdevice_version" >&5 |
| 11836 | echo "${ECHO_T}$ac_cv_lib_avdevice_avdevice_version" >&6; } |
| 11837 | if test $ac_cv_lib_avdevice_avdevice_version = yes; then |
Benny Prijono | c45d951 | 2010-12-10 11:04:30 +0000 | [diff] [blame] | 11838 | ac_ffmpeg_cflags="$ac_ffmpeg_cflags -DPJMEDIA_HAS_LIBAVDEVICE=1" |
| 11839 | ac_ffmpeg_ldflags="$ac_ffmpeg_ldflags -lavdevice" |
| 11840 | |
| 11841 | |
| 11842 | fi |
| 11843 | |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 11844 | { echo "$as_me:$LINENO: checking for av_register_all in -lavformat" >&5 |
| 11845 | echo $ECHO_N "checking for av_register_all in -lavformat... $ECHO_C" >&6; } |
| 11846 | if test "${ac_cv_lib_avformat_av_register_all+set}" = set; then |
| 11847 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Benny Prijono | c45d951 | 2010-12-10 11:04:30 +0000 | [diff] [blame] | 11848 | else |
| 11849 | ac_check_lib_save_LIBS=$LIBS |
| 11850 | LIBS="-lavformat $LIBS" |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 11851 | cat >conftest.$ac_ext <<_ACEOF |
| 11852 | /* confdefs.h. */ |
| 11853 | _ACEOF |
| 11854 | cat confdefs.h >>conftest.$ac_ext |
| 11855 | cat >>conftest.$ac_ext <<_ACEOF |
Benny Prijono | c45d951 | 2010-12-10 11:04:30 +0000 | [diff] [blame] | 11856 | /* end confdefs.h. */ |
| 11857 | |
| 11858 | /* Override any GCC internal prototype to avoid an error. |
| 11859 | Use char because int might match the return type of a GCC |
| 11860 | builtin and then its argument prototype would still apply. */ |
| 11861 | #ifdef __cplusplus |
| 11862 | extern "C" |
| 11863 | #endif |
| 11864 | char av_register_all (); |
| 11865 | int |
| 11866 | main () |
| 11867 | { |
| 11868 | return av_register_all (); |
| 11869 | ; |
| 11870 | return 0; |
| 11871 | } |
| 11872 | _ACEOF |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 11873 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11874 | if { (ac_try="$ac_link" |
| 11875 | case "(($ac_try" in |
| 11876 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11877 | *) ac_try_echo=$ac_try;; |
| 11878 | esac |
| 11879 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11880 | (eval "$ac_link") 2>conftest.er1 |
| 11881 | ac_status=$? |
| 11882 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11883 | rm -f conftest.er1 |
| 11884 | cat conftest.err >&5 |
| 11885 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11886 | (exit $ac_status); } && { |
| 11887 | test -z "$ac_c_werror_flag" || |
| 11888 | test ! -s conftest.err |
| 11889 | } && test -s conftest$ac_exeext && |
| 11890 | $as_test_x conftest$ac_exeext; then |
Benny Prijono | c45d951 | 2010-12-10 11:04:30 +0000 | [diff] [blame] | 11891 | ac_cv_lib_avformat_av_register_all=yes |
| 11892 | else |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 11893 | echo "$as_me: failed program was:" >&5 |
| 11894 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11895 | |
| 11896 | ac_cv_lib_avformat_av_register_all=no |
Benny Prijono | c45d951 | 2010-12-10 11:04:30 +0000 | [diff] [blame] | 11897 | fi |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 11898 | |
| 11899 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 11900 | conftest$ac_exeext conftest.$ac_ext |
Benny Prijono | c45d951 | 2010-12-10 11:04:30 +0000 | [diff] [blame] | 11901 | LIBS=$ac_check_lib_save_LIBS |
| 11902 | fi |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 11903 | { echo "$as_me:$LINENO: result: $ac_cv_lib_avformat_av_register_all" >&5 |
| 11904 | echo "${ECHO_T}$ac_cv_lib_avformat_av_register_all" >&6; } |
| 11905 | if test $ac_cv_lib_avformat_av_register_all = yes; then |
Benny Prijono | c45d951 | 2010-12-10 11:04:30 +0000 | [diff] [blame] | 11906 | ac_ffmpeg_cflags="$ac_ffmpeg_cflags -DPJMEDIA_HAS_LIBAVFORMAT=1" |
| 11907 | ac_ffmpeg_ldflags="$ac_ffmpeg_ldflags -lavformat" |
| 11908 | |
| 11909 | |
| 11910 | fi |
| 11911 | |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 11912 | { echo "$as_me:$LINENO: checking for avcodec_init in -lavcodec" >&5 |
| 11913 | echo $ECHO_N "checking for avcodec_init in -lavcodec... $ECHO_C" >&6; } |
| 11914 | if test "${ac_cv_lib_avcodec_avcodec_init+set}" = set; then |
| 11915 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Benny Prijono | c45d951 | 2010-12-10 11:04:30 +0000 | [diff] [blame] | 11916 | else |
| 11917 | ac_check_lib_save_LIBS=$LIBS |
| 11918 | LIBS="-lavcodec $LIBS" |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 11919 | cat >conftest.$ac_ext <<_ACEOF |
| 11920 | /* confdefs.h. */ |
| 11921 | _ACEOF |
| 11922 | cat confdefs.h >>conftest.$ac_ext |
| 11923 | cat >>conftest.$ac_ext <<_ACEOF |
Benny Prijono | c45d951 | 2010-12-10 11:04:30 +0000 | [diff] [blame] | 11924 | /* end confdefs.h. */ |
| 11925 | |
| 11926 | /* Override any GCC internal prototype to avoid an error. |
| 11927 | Use char because int might match the return type of a GCC |
| 11928 | builtin and then its argument prototype would still apply. */ |
| 11929 | #ifdef __cplusplus |
| 11930 | extern "C" |
| 11931 | #endif |
| 11932 | char avcodec_init (); |
| 11933 | int |
| 11934 | main () |
| 11935 | { |
| 11936 | return avcodec_init (); |
| 11937 | ; |
| 11938 | return 0; |
| 11939 | } |
| 11940 | _ACEOF |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 11941 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11942 | if { (ac_try="$ac_link" |
| 11943 | case "(($ac_try" in |
| 11944 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11945 | *) ac_try_echo=$ac_try;; |
| 11946 | esac |
| 11947 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11948 | (eval "$ac_link") 2>conftest.er1 |
| 11949 | ac_status=$? |
| 11950 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11951 | rm -f conftest.er1 |
| 11952 | cat conftest.err >&5 |
| 11953 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11954 | (exit $ac_status); } && { |
| 11955 | test -z "$ac_c_werror_flag" || |
| 11956 | test ! -s conftest.err |
| 11957 | } && test -s conftest$ac_exeext && |
| 11958 | $as_test_x conftest$ac_exeext; then |
Benny Prijono | c45d951 | 2010-12-10 11:04:30 +0000 | [diff] [blame] | 11959 | ac_cv_lib_avcodec_avcodec_init=yes |
| 11960 | else |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 11961 | echo "$as_me: failed program was:" >&5 |
| 11962 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11963 | |
| 11964 | ac_cv_lib_avcodec_avcodec_init=no |
Benny Prijono | c45d951 | 2010-12-10 11:04:30 +0000 | [diff] [blame] | 11965 | fi |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 11966 | |
| 11967 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 11968 | conftest$ac_exeext conftest.$ac_ext |
Benny Prijono | c45d951 | 2010-12-10 11:04:30 +0000 | [diff] [blame] | 11969 | LIBS=$ac_check_lib_save_LIBS |
| 11970 | fi |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 11971 | { echo "$as_me:$LINENO: result: $ac_cv_lib_avcodec_avcodec_init" >&5 |
| 11972 | echo "${ECHO_T}$ac_cv_lib_avcodec_avcodec_init" >&6; } |
| 11973 | if test $ac_cv_lib_avcodec_avcodec_init = yes; then |
Benny Prijono | c45d951 | 2010-12-10 11:04:30 +0000 | [diff] [blame] | 11974 | ac_ffmpeg_cflags="$ac_ffmpeg_cflags -DPJMEDIA_HAS_LIBAVCODEC=1" |
| 11975 | ac_ffmpeg_ldflags="$ac_ffmpeg_ldflags -lavcodec" |
| 11976 | |
| 11977 | |
| 11978 | fi |
| 11979 | |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 11980 | { echo "$as_me:$LINENO: checking for sws_scale in -lswscale" >&5 |
| 11981 | echo $ECHO_N "checking for sws_scale in -lswscale... $ECHO_C" >&6; } |
| 11982 | if test "${ac_cv_lib_swscale_sws_scale+set}" = set; then |
| 11983 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Benny Prijono | c45d951 | 2010-12-10 11:04:30 +0000 | [diff] [blame] | 11984 | else |
| 11985 | ac_check_lib_save_LIBS=$LIBS |
| 11986 | LIBS="-lswscale $LIBS" |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 11987 | cat >conftest.$ac_ext <<_ACEOF |
| 11988 | /* confdefs.h. */ |
| 11989 | _ACEOF |
| 11990 | cat confdefs.h >>conftest.$ac_ext |
| 11991 | cat >>conftest.$ac_ext <<_ACEOF |
Benny Prijono | c45d951 | 2010-12-10 11:04:30 +0000 | [diff] [blame] | 11992 | /* end confdefs.h. */ |
| 11993 | |
| 11994 | /* Override any GCC internal prototype to avoid an error. |
| 11995 | Use char because int might match the return type of a GCC |
| 11996 | builtin and then its argument prototype would still apply. */ |
| 11997 | #ifdef __cplusplus |
| 11998 | extern "C" |
| 11999 | #endif |
| 12000 | char sws_scale (); |
| 12001 | int |
| 12002 | main () |
| 12003 | { |
| 12004 | return sws_scale (); |
| 12005 | ; |
| 12006 | return 0; |
| 12007 | } |
| 12008 | _ACEOF |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 12009 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12010 | if { (ac_try="$ac_link" |
| 12011 | case "(($ac_try" in |
| 12012 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12013 | *) ac_try_echo=$ac_try;; |
| 12014 | esac |
| 12015 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12016 | (eval "$ac_link") 2>conftest.er1 |
| 12017 | ac_status=$? |
| 12018 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12019 | rm -f conftest.er1 |
| 12020 | cat conftest.err >&5 |
| 12021 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12022 | (exit $ac_status); } && { |
| 12023 | test -z "$ac_c_werror_flag" || |
| 12024 | test ! -s conftest.err |
| 12025 | } && test -s conftest$ac_exeext && |
| 12026 | $as_test_x conftest$ac_exeext; then |
Benny Prijono | c45d951 | 2010-12-10 11:04:30 +0000 | [diff] [blame] | 12027 | ac_cv_lib_swscale_sws_scale=yes |
| 12028 | else |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 12029 | echo "$as_me: failed program was:" >&5 |
| 12030 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12031 | |
| 12032 | ac_cv_lib_swscale_sws_scale=no |
Benny Prijono | c45d951 | 2010-12-10 11:04:30 +0000 | [diff] [blame] | 12033 | fi |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 12034 | |
| 12035 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 12036 | conftest$ac_exeext conftest.$ac_ext |
Benny Prijono | c45d951 | 2010-12-10 11:04:30 +0000 | [diff] [blame] | 12037 | LIBS=$ac_check_lib_save_LIBS |
| 12038 | fi |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 12039 | { echo "$as_me:$LINENO: result: $ac_cv_lib_swscale_sws_scale" >&5 |
| 12040 | echo "${ECHO_T}$ac_cv_lib_swscale_sws_scale" >&6; } |
| 12041 | if test $ac_cv_lib_swscale_sws_scale = yes; then |
Benny Prijono | c45d951 | 2010-12-10 11:04:30 +0000 | [diff] [blame] | 12042 | ac_ffmpeg_cflags="$ac_ffmpeg_cflags -DPJMEDIA_HAS_LIBSWSCALE=1" |
| 12043 | ac_ffmpeg_ldflags="$ac_ffmpeg_ldflags -lswscale" |
| 12044 | |
| 12045 | |
| 12046 | fi |
| 12047 | |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 12048 | { echo "$as_me:$LINENO: checking for av_malloc in -lavutil" >&5 |
| 12049 | echo $ECHO_N "checking for av_malloc in -lavutil... $ECHO_C" >&6; } |
| 12050 | if test "${ac_cv_lib_avutil_av_malloc+set}" = set; then |
| 12051 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Benny Prijono | c45d951 | 2010-12-10 11:04:30 +0000 | [diff] [blame] | 12052 | else |
| 12053 | ac_check_lib_save_LIBS=$LIBS |
| 12054 | LIBS="-lavutil $LIBS" |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 12055 | cat >conftest.$ac_ext <<_ACEOF |
| 12056 | /* confdefs.h. */ |
| 12057 | _ACEOF |
| 12058 | cat confdefs.h >>conftest.$ac_ext |
| 12059 | cat >>conftest.$ac_ext <<_ACEOF |
Benny Prijono | c45d951 | 2010-12-10 11:04:30 +0000 | [diff] [blame] | 12060 | /* end confdefs.h. */ |
| 12061 | |
| 12062 | /* Override any GCC internal prototype to avoid an error. |
| 12063 | Use char because int might match the return type of a GCC |
| 12064 | builtin and then its argument prototype would still apply. */ |
| 12065 | #ifdef __cplusplus |
| 12066 | extern "C" |
| 12067 | #endif |
| 12068 | char av_malloc (); |
| 12069 | int |
| 12070 | main () |
| 12071 | { |
| 12072 | return av_malloc (); |
| 12073 | ; |
| 12074 | return 0; |
| 12075 | } |
| 12076 | _ACEOF |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 12077 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12078 | if { (ac_try="$ac_link" |
| 12079 | case "(($ac_try" in |
| 12080 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12081 | *) ac_try_echo=$ac_try;; |
| 12082 | esac |
| 12083 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12084 | (eval "$ac_link") 2>conftest.er1 |
| 12085 | ac_status=$? |
| 12086 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12087 | rm -f conftest.er1 |
| 12088 | cat conftest.err >&5 |
| 12089 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12090 | (exit $ac_status); } && { |
| 12091 | test -z "$ac_c_werror_flag" || |
| 12092 | test ! -s conftest.err |
| 12093 | } && test -s conftest$ac_exeext && |
| 12094 | $as_test_x conftest$ac_exeext; then |
Benny Prijono | c45d951 | 2010-12-10 11:04:30 +0000 | [diff] [blame] | 12095 | ac_cv_lib_avutil_av_malloc=yes |
| 12096 | else |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 12097 | echo "$as_me: failed program was:" >&5 |
| 12098 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12099 | |
| 12100 | ac_cv_lib_avutil_av_malloc=no |
Benny Prijono | c45d951 | 2010-12-10 11:04:30 +0000 | [diff] [blame] | 12101 | fi |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 12102 | |
| 12103 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 12104 | conftest$ac_exeext conftest.$ac_ext |
Benny Prijono | c45d951 | 2010-12-10 11:04:30 +0000 | [diff] [blame] | 12105 | LIBS=$ac_check_lib_save_LIBS |
| 12106 | fi |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 12107 | { echo "$as_me:$LINENO: result: $ac_cv_lib_avutil_av_malloc" >&5 |
| 12108 | echo "${ECHO_T}$ac_cv_lib_avutil_av_malloc" >&6; } |
| 12109 | if test $ac_cv_lib_avutil_av_malloc = yes; then |
Benny Prijono | c45d951 | 2010-12-10 11:04:30 +0000 | [diff] [blame] | 12110 | ac_ffmpeg_cflags="$ac_ffmpeg_cflags -DPJMEDIA_HAS_LIBAVUTIL=1" |
| 12111 | ac_ffmpeg_ldflags="$ac_ffmpeg_ldflags -lavutil" |
| 12112 | |
| 12113 | |
| 12114 | fi |
| 12115 | |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 12116 | { echo "$as_me:$LINENO: checking for avcore_version in -lavcore" >&5 |
| 12117 | echo $ECHO_N "checking for avcore_version in -lavcore... $ECHO_C" >&6; } |
| 12118 | if test "${ac_cv_lib_avcore_avcore_version+set}" = set; then |
| 12119 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Benny Prijono | c45d951 | 2010-12-10 11:04:30 +0000 | [diff] [blame] | 12120 | else |
| 12121 | ac_check_lib_save_LIBS=$LIBS |
| 12122 | LIBS="-lavcore $LIBS" |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 12123 | cat >conftest.$ac_ext <<_ACEOF |
| 12124 | /* confdefs.h. */ |
| 12125 | _ACEOF |
| 12126 | cat confdefs.h >>conftest.$ac_ext |
| 12127 | cat >>conftest.$ac_ext <<_ACEOF |
Benny Prijono | c45d951 | 2010-12-10 11:04:30 +0000 | [diff] [blame] | 12128 | /* end confdefs.h. */ |
| 12129 | |
| 12130 | /* Override any GCC internal prototype to avoid an error. |
| 12131 | Use char because int might match the return type of a GCC |
| 12132 | builtin and then its argument prototype would still apply. */ |
| 12133 | #ifdef __cplusplus |
| 12134 | extern "C" |
| 12135 | #endif |
| 12136 | char avcore_version (); |
| 12137 | int |
| 12138 | main () |
| 12139 | { |
| 12140 | return avcore_version (); |
| 12141 | ; |
| 12142 | return 0; |
| 12143 | } |
| 12144 | _ACEOF |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 12145 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12146 | if { (ac_try="$ac_link" |
| 12147 | case "(($ac_try" in |
| 12148 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12149 | *) ac_try_echo=$ac_try;; |
| 12150 | esac |
| 12151 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12152 | (eval "$ac_link") 2>conftest.er1 |
| 12153 | ac_status=$? |
| 12154 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12155 | rm -f conftest.er1 |
| 12156 | cat conftest.err >&5 |
| 12157 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12158 | (exit $ac_status); } && { |
| 12159 | test -z "$ac_c_werror_flag" || |
| 12160 | test ! -s conftest.err |
| 12161 | } && test -s conftest$ac_exeext && |
| 12162 | $as_test_x conftest$ac_exeext; then |
Benny Prijono | c45d951 | 2010-12-10 11:04:30 +0000 | [diff] [blame] | 12163 | ac_cv_lib_avcore_avcore_version=yes |
| 12164 | else |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 12165 | echo "$as_me: failed program was:" >&5 |
| 12166 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12167 | |
| 12168 | ac_cv_lib_avcore_avcore_version=no |
Benny Prijono | c45d951 | 2010-12-10 11:04:30 +0000 | [diff] [blame] | 12169 | fi |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 12170 | |
| 12171 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 12172 | conftest$ac_exeext conftest.$ac_ext |
Benny Prijono | c45d951 | 2010-12-10 11:04:30 +0000 | [diff] [blame] | 12173 | LIBS=$ac_check_lib_save_LIBS |
| 12174 | fi |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 12175 | { echo "$as_me:$LINENO: result: $ac_cv_lib_avcore_avcore_version" >&5 |
| 12176 | echo "${ECHO_T}$ac_cv_lib_avcore_avcore_version" >&6; } |
| 12177 | if test $ac_cv_lib_avcore_avcore_version = yes; then |
Benny Prijono | c45d951 | 2010-12-10 11:04:30 +0000 | [diff] [blame] | 12178 | ac_ffmpeg_cflags="$ac_ffmpeg_cflags -DPJMEDIA_HAS_LIBAVCORE=1" |
| 12179 | ac_ffmpeg_ldflags="$ac_ffmpeg_ldflags -lavcore" |
| 12180 | |
| 12181 | |
| 12182 | fi |
| 12183 | |
Benny Prijono | 69b1f82 | 2010-12-10 11:33:01 +0000 | [diff] [blame] | 12184 | LIBS="$LIBS $ac_ffmpeg_ldflags" |
Benny Prijono | c45d951 | 2010-12-10 11:04:30 +0000 | [diff] [blame] | 12185 | |
| 12186 | |
| 12187 | fi |
| 12188 | |
| 12189 | |
| 12190 | # Check whether --enable-v4l2 was given. |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 12191 | if test "${enable_v4l2+set}" = set; then |
Benny Prijono | c45d951 | 2010-12-10 11:04:30 +0000 | [diff] [blame] | 12192 | enableval=$enable_v4l2; |
| 12193 | if test "$enable_v4l2" = "no"; then |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 12194 | { echo "$as_me:$LINENO: result: Checking if V4L2 is disabled... yes" >&5 |
| 12195 | echo "${ECHO_T}Checking if V4L2 is disabled... yes" >&6; } |
Benny Prijono | c45d951 | 2010-12-10 11:04:30 +0000 | [diff] [blame] | 12196 | fi |
| 12197 | |
| 12198 | else |
| 12199 | |
| 12200 | |
| 12201 | |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 12202 | { echo "$as_me:$LINENO: checking for v4l2_open in -lv4l2" >&5 |
| 12203 | echo $ECHO_N "checking for v4l2_open in -lv4l2... $ECHO_C" >&6; } |
| 12204 | if test "${ac_cv_lib_v4l2_v4l2_open+set}" = set; then |
| 12205 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Benny Prijono | c45d951 | 2010-12-10 11:04:30 +0000 | [diff] [blame] | 12206 | else |
| 12207 | ac_check_lib_save_LIBS=$LIBS |
| 12208 | LIBS="-lv4l2 $LIBS" |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 12209 | cat >conftest.$ac_ext <<_ACEOF |
| 12210 | /* confdefs.h. */ |
| 12211 | _ACEOF |
| 12212 | cat confdefs.h >>conftest.$ac_ext |
| 12213 | cat >>conftest.$ac_ext <<_ACEOF |
Benny Prijono | c45d951 | 2010-12-10 11:04:30 +0000 | [diff] [blame] | 12214 | /* end confdefs.h. */ |
| 12215 | |
| 12216 | /* Override any GCC internal prototype to avoid an error. |
| 12217 | Use char because int might match the return type of a GCC |
| 12218 | builtin and then its argument prototype would still apply. */ |
| 12219 | #ifdef __cplusplus |
| 12220 | extern "C" |
| 12221 | #endif |
| 12222 | char v4l2_open (); |
| 12223 | int |
| 12224 | main () |
| 12225 | { |
| 12226 | return v4l2_open (); |
| 12227 | ; |
| 12228 | return 0; |
| 12229 | } |
| 12230 | _ACEOF |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 12231 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12232 | if { (ac_try="$ac_link" |
| 12233 | case "(($ac_try" in |
| 12234 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12235 | *) ac_try_echo=$ac_try;; |
| 12236 | esac |
| 12237 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12238 | (eval "$ac_link") 2>conftest.er1 |
| 12239 | ac_status=$? |
| 12240 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12241 | rm -f conftest.er1 |
| 12242 | cat conftest.err >&5 |
| 12243 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12244 | (exit $ac_status); } && { |
| 12245 | test -z "$ac_c_werror_flag" || |
| 12246 | test ! -s conftest.err |
| 12247 | } && test -s conftest$ac_exeext && |
| 12248 | $as_test_x conftest$ac_exeext; then |
Benny Prijono | c45d951 | 2010-12-10 11:04:30 +0000 | [diff] [blame] | 12249 | ac_cv_lib_v4l2_v4l2_open=yes |
| 12250 | else |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 12251 | echo "$as_me: failed program was:" >&5 |
| 12252 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12253 | |
| 12254 | ac_cv_lib_v4l2_v4l2_open=no |
Benny Prijono | c45d951 | 2010-12-10 11:04:30 +0000 | [diff] [blame] | 12255 | fi |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 12256 | |
| 12257 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 12258 | conftest$ac_exeext conftest.$ac_ext |
Benny Prijono | c45d951 | 2010-12-10 11:04:30 +0000 | [diff] [blame] | 12259 | LIBS=$ac_check_lib_save_LIBS |
| 12260 | fi |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 12261 | { echo "$as_me:$LINENO: result: $ac_cv_lib_v4l2_v4l2_open" >&5 |
| 12262 | echo "${ECHO_T}$ac_cv_lib_v4l2_v4l2_open" >&6; } |
| 12263 | if test $ac_cv_lib_v4l2_v4l2_open = yes; then |
Benny Prijono | c45d951 | 2010-12-10 11:04:30 +0000 | [diff] [blame] | 12264 | ac_v4l2_cflags="-DPJMEDIA_VIDEO_DEV_HAS_V4L2=1" |
| 12265 | ac_v4l2_ldflags="-lv4l2" |
Benny Prijono | 69b1f82 | 2010-12-10 11:33:01 +0000 | [diff] [blame] | 12266 | LIBS="$LIBS -lv4l2" |
Benny Prijono | c45d951 | 2010-12-10 11:04:30 +0000 | [diff] [blame] | 12267 | |
| 12268 | |
| 12269 | fi |
| 12270 | |
| 12271 | |
| 12272 | fi |
| 12273 | |
| 12274 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 12275 | # Check whether --enable-ipp was given. |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 12276 | if test "${enable_ipp+set}" = set; then |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 12277 | enableval=$enable_ipp; |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 12278 | else |
| 12279 | enable_ipp=no |
| 12280 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 12281 | fi |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 12282 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 12283 | |
Benny Prijono | 3965f19 | 2010-02-10 18:46:05 +0000 | [diff] [blame] | 12284 | |
| 12285 | # Check whether --with-ipp was given. |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 12286 | if test "${with_ipp+set}" = set; then |
Benny Prijono | 3965f19 | 2010-02-10 18:46:05 +0000 | [diff] [blame] | 12287 | withval=$with_ipp; |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 12288 | else |
| 12289 | with_ipp=no |
| 12290 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 12291 | fi |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 12292 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 12293 | |
Benny Prijono | 3965f19 | 2010-02-10 18:46:05 +0000 | [diff] [blame] | 12294 | |
| 12295 | # Check whether --with-ipp-samples was given. |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 12296 | if test "${with_ipp_samples+set}" = set; then |
Benny Prijono | 3965f19 | 2010-02-10 18:46:05 +0000 | [diff] [blame] | 12297 | withval=$with_ipp_samples; |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 12298 | else |
| 12299 | with_ipp_samples=no |
| 12300 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 12301 | fi |
| 12302 | |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 12303 | |
Benny Prijono | 3965f19 | 2010-02-10 18:46:05 +0000 | [diff] [blame] | 12304 | |
| 12305 | # Check whether --with-ipp-arch was given. |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 12306 | if test "${with_ipp_arch+set}" = set; then |
Benny Prijono | 3965f19 | 2010-02-10 18:46:05 +0000 | [diff] [blame] | 12307 | withval=$with_ipp_arch; |
| 12308 | else |
| 12309 | with_ipp_arch=no |
| 12310 | |
| 12311 | fi |
| 12312 | |
| 12313 | |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 12314 | if test "x$enable_ipp" != "xno"; then |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 12315 | { echo "$as_me:$LINENO: checking Intel IPP location" >&5 |
| 12316 | echo $ECHO_N "checking Intel IPP location... $ECHO_C" >&6; } |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 12317 | |
| 12318 | if test "x$with_ipp" != "xno" -a "x$with_ipp" != "x"; then |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 12319 | { echo "$as_me:$LINENO: result: $with_ipp" >&5 |
| 12320 | echo "${ECHO_T}$with_ipp" >&6; } |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 12321 | IPPROOT=$with_ipp |
| 12322 | elif test "x$IPPROOT" = "x"; then |
| 12323 | if test -d /opt/intel/ipp; then |
| 12324 | IPPROOT=`ls -d /opt/intel/ipp/*/* | head -1` |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 12325 | { echo "$as_me:$LINENO: result: autodetected in $IPPROOT" >&5 |
| 12326 | echo "${ECHO_T}autodetected in $IPPROOT" >&6; } |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 12327 | fi |
| 12328 | else |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 12329 | { echo "$as_me:$LINENO: result: $IPPROOT" >&5 |
| 12330 | echo "${ECHO_T}$IPPROOT" >&6; } |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 12331 | fi |
| 12332 | |
Benny Prijono | 3965f19 | 2010-02-10 18:46:05 +0000 | [diff] [blame] | 12333 | if test "x$with_ipp_arch" != "xno"; then |
Benny Prijono | 896be29 | 2010-08-17 12:16:46 +0000 | [diff] [blame] | 12334 | IPP_SUFFIX=$with_ipp_arch |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 12335 | { echo "$as_me:$LINENO: result: IPP arch suffix is set to $IPP_SUFFIX" >&5 |
| 12336 | echo "${ECHO_T}IPP arch suffix is set to $IPP_SUFFIX" >&6; } |
Benny Prijono | 3965f19 | 2010-02-10 18:46:05 +0000 | [diff] [blame] | 12337 | else |
| 12338 | IPP_SUFFIX="" |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 12339 | { echo "$as_me:$LINENO: result: IPP arch suffix is set to empty" >&5 |
| 12340 | echo "${ECHO_T}IPP arch suffix is set to empty" >&6; } |
Benny Prijono | 3965f19 | 2010-02-10 18:46:05 +0000 | [diff] [blame] | 12341 | fi |
| 12342 | |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 12343 | if test x$IPPROOT = x; then |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 12344 | { { 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 |
| 12345 | 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;} |
| 12346 | { (exit 1); exit 1; }; } |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 12347 | elif test ! -d $IPPROOT; then |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 12348 | { { echo "$as_me:$LINENO: error: not found" >&5 |
| 12349 | echo "$as_me: error: not found" >&2;} |
| 12350 | { (exit 1); exit 1; }; } |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 12351 | elif test ! -d $IPPROOT/include; then |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 12352 | { { echo "$as_me:$LINENO: error: directory doesn't seem to be valid" >&5 |
| 12353 | echo "$as_me: error: directory doesn't seem to be valid" >&2;} |
| 12354 | { (exit 1); exit 1; }; } |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 12355 | else |
| 12356 | # IPP directory looks okay. |
| 12357 | # Remove trailing backslash |
Benny Prijono | 3965f19 | 2010-02-10 18:46:05 +0000 | [diff] [blame] | 12358 | IPPROOT=`echo $IPPROOT | sed 's/\/$//'` |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 12359 | |
| 12360 | SAVED_CFLAGS="$CFLAGS" |
| 12361 | SAVED_LDFLAGS="$LDFLAGS" |
| 12362 | SAVED_LIBS="$LIBS" |
| 12363 | |
| 12364 | IPP_CFLAGS="-I$IPPROOT/include" |
Benny Prijono | 46bd084 | 2010-02-12 14:12:41 +0000 | [diff] [blame] | 12365 | IPP_LIBS="-lippsc${IPP_SUFFIX} -lipps${IPP_SUFFIX} -lippsr${IPP_SUFFIX} -lippcore${IPP_SUFFIX}" |
| 12366 | |
| 12367 | # Some differences between Mac OS X and Linux |
| 12368 | case $target in |
| 12369 | *darwin* ) |
| 12370 | IPP_LDFLAGS="-L$IPPROOT/Libraries -L$IPPROOT/lib" |
| 12371 | ;; |
| 12372 | *) |
| 12373 | IPP_LDFLAGS="-L$IPPROOT/sharedlib" |
| 12374 | IPP_LIBS="$IPP_LIBS -lguide" |
| 12375 | ;; |
| 12376 | esac |
| 12377 | |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 12378 | #IPP_LDFLAGS="-L$IPPROOT/sharedlib" |
Benny Prijono | 46bd084 | 2010-02-12 14:12:41 +0000 | [diff] [blame] | 12379 | #Static: |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 12380 | #IPP_LIBS="-lippscmerged -lippsrmerged -lippsmerged -lippcore" |
| 12381 | |
| 12382 | CFLAGS="$CFLAGS $IPP_CFLAGS" |
| 12383 | LDFLAGS="$LDFLAGS $IPP_LDFLAGS" |
| 12384 | LIBS="$IPP_LIBS $LIBS" |
| 12385 | |
| 12386 | |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 12387 | { echo "$as_me:$LINENO: checking Intel IPP usability" >&5 |
| 12388 | echo $ECHO_N "checking Intel IPP usability... $ECHO_C" >&6; } |
| 12389 | cat >conftest.$ac_ext <<_ACEOF |
| 12390 | /* confdefs.h. */ |
| 12391 | _ACEOF |
| 12392 | cat confdefs.h >>conftest.$ac_ext |
| 12393 | cat >>conftest.$ac_ext <<_ACEOF |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 12394 | /* end confdefs.h. */ |
| 12395 | #include <ippcore.h> |
| 12396 | |
| 12397 | int |
| 12398 | main () |
| 12399 | { |
| 12400 | ippStaticInit(); |
| 12401 | ; |
| 12402 | return 0; |
| 12403 | } |
| 12404 | _ACEOF |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 12405 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12406 | if { (ac_try="$ac_link" |
| 12407 | case "(($ac_try" in |
| 12408 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12409 | *) ac_try_echo=$ac_try;; |
| 12410 | esac |
| 12411 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12412 | (eval "$ac_link") 2>conftest.er1 |
| 12413 | ac_status=$? |
| 12414 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12415 | rm -f conftest.er1 |
| 12416 | cat conftest.err >&5 |
| 12417 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12418 | (exit $ac_status); } && { |
| 12419 | test -z "$ac_c_werror_flag" || |
| 12420 | test ! -s conftest.err |
| 12421 | } && test -s conftest$ac_exeext && |
| 12422 | $as_test_x conftest$ac_exeext; then |
| 12423 | { echo "$as_me:$LINENO: result: ok" >&5 |
| 12424 | echo "${ECHO_T}ok" >&6; } |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 12425 | else |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 12426 | echo "$as_me: failed program was:" >&5 |
| 12427 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12428 | |
| 12429 | { { echo "$as_me:$LINENO: error: Error: unable to recognize your IPP installation. Make sure the paths and ARCH suffix are set correctly |
| 12430 | See \`config.log' for more details." >&5 |
| 12431 | echo "$as_me: error: Error: unable to recognize your IPP installation. Make sure the paths and ARCH suffix are set correctly |
| 12432 | See \`config.log' for more details." >&2;} |
| 12433 | { (exit run with --help for more info); exit run with --help for more info; }; } |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 12434 | fi |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 12435 | |
| 12436 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 12437 | conftest$ac_exeext conftest.$ac_ext |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 12438 | |
| 12439 | CFLAGS="$SAVED_CFLAGS" |
| 12440 | LDFLAGS="$SAVED_LDFLAGS" |
| 12441 | LIBS="$SAVED_LIBS" |
| 12442 | fi |
| 12443 | |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 12444 | { echo "$as_me:$LINENO: checking Intel IPP samples location" >&5 |
| 12445 | echo $ECHO_N "checking Intel IPP samples location... $ECHO_C" >&6; } |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 12446 | |
| 12447 | if test "x$with_ipp_samples" != "xno" -a "x$with_ipp_samples" != "x"; then |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 12448 | { echo "$as_me:$LINENO: result: $with_ipp_samples" >&5 |
| 12449 | echo "${ECHO_T}$with_ipp_samples" >&6; } |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 12450 | IPPSAMPLES=$with_ipp_samples |
| 12451 | elif test "x$IPPSAMPLES" = "x"; then |
| 12452 | if test -d /opt/intel/ipp-samples; then |
| 12453 | IPPSAMPLES=/opt/intel/ipp-samples |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 12454 | { echo "$as_me:$LINENO: result: autodetected in $IPPSAMPLES" >&5 |
| 12455 | echo "${ECHO_T}autodetected in $IPPSAMPLES" >&6; } |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 12456 | fi |
| 12457 | else |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 12458 | { echo "$as_me:$LINENO: result: $IPPSAMPLES" >&5 |
| 12459 | echo "${ECHO_T}$IPPSAMPLES" >&6; } |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 12460 | fi |
| 12461 | |
| 12462 | if test x$IPPSAMPLES = x; then |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 12463 | { { 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 |
| 12464 | 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;} |
| 12465 | { (exit 1); exit 1; }; } |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 12466 | elif test ! -d $IPPSAMPLES; then |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 12467 | { { echo "$as_me:$LINENO: error: not found" >&5 |
| 12468 | echo "$as_me: error: not found" >&2;} |
| 12469 | { (exit 1); exit 1; }; } |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 12470 | elif test ! -d $IPPSAMPLES/speech-codecs; then |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 12471 | { { echo "$as_me:$LINENO: error: directory doesn't seem to be valid" >&5 |
| 12472 | echo "$as_me: error: directory doesn't seem to be valid" >&2;} |
| 12473 | { (exit 1); exit 1; }; } |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 12474 | else |
| 12475 | # Remove trailing backslash |
| 12476 | IPPSAMPLES=`echo $IPPSAMPLES | sed 's/\/$//'` |
| 12477 | |
Benny Prijono | 3965f19 | 2010-02-10 18:46:05 +0000 | [diff] [blame] | 12478 | # Guess the libusc.a/libspeech.a build location |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 12479 | { echo "$as_me:$LINENO: checking Intel IPP USC build location" >&5 |
| 12480 | echo $ECHO_N "checking Intel IPP USC build location... $ECHO_C" >&6; } |
Benny Prijono | 3965f19 | 2010-02-10 18:46:05 +0000 | [diff] [blame] | 12481 | if test -d $IPPSAMPLES/speech-codecs/bin; then |
| 12482 | IPPVER=5 |
| 12483 | IPPSAMP_DIR=`ls -d $IPPSAMPLES/speech-codecs/bin/*gcc*/lib | head -1` |
| 12484 | elif test -d $IPPSAMPLES/speech-codecs/_bin; then |
| 12485 | IPPVER=6 |
Benny Prijono | 46bd084 | 2010-02-12 14:12:41 +0000 | [diff] [blame] | 12486 | if test -d $IPPSAMPLES/speech-codecs/_bin/*gcc*; then |
| 12487 | # gcc compiler |
| 12488 | IPPSAMP_DIR=`ls -d $IPPSAMPLES/speech-codecs/_bin/*gcc*/lib | head -1` |
| 12489 | elif test -d $IPPSAMPLES/speech-codecs/_bin/*icc*; then |
| 12490 | # icc compiler |
| 12491 | IPPSAMP_DIR=`ls -d $IPPSAMPLES/speech-codecs/_bin/*icc*/lib | head -1` |
| 12492 | else |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 12493 | { { echo "$as_me:$LINENO: error: Unable to find to find built binaries under $IPPSAMPLES/speech-codecs/{bin,_bin}. Have you built the IPP samples? |
| 12494 | See \`config.log' for more details." >&5 |
| 12495 | echo "$as_me: error: Unable to find to find built binaries under $IPPSAMPLES/speech-codecs/{bin,_bin}. Have you built the IPP samples? |
| 12496 | See \`config.log' for more details." >&2;} |
| 12497 | { (exit 1); exit 1; }; } |
Benny Prijono | 46bd084 | 2010-02-12 14:12:41 +0000 | [diff] [blame] | 12498 | fi |
Benny Prijono | 3965f19 | 2010-02-10 18:46:05 +0000 | [diff] [blame] | 12499 | else |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 12500 | { { echo "$as_me:$LINENO: error: unable to find $IPPSAMPLES/speech-codecs/bin/*gcc*/lib or $IPPSAMPLES/speech-codecs/_bin/*gcc*/lib directory. Have you built the samples? |
| 12501 | See \`config.log' for more details." >&5 |
| 12502 | echo "$as_me: error: unable to find $IPPSAMPLES/speech-codecs/bin/*gcc*/lib or $IPPSAMPLES/speech-codecs/_bin/*gcc*/lib directory. Have you built the samples? |
| 12503 | See \`config.log' for more details." >&2;} |
| 12504 | { (exit 1); exit 1; }; } |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 12505 | fi |
Benny Prijono | 3965f19 | 2010-02-10 18:46:05 +0000 | [diff] [blame] | 12506 | |
| 12507 | # Test the directory |
| 12508 | if test ! -d $IPPSAMP_DIR; then |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 12509 | { { echo "$as_me:$LINENO: error: There's something wrong with this script, directory $IPPSAMP_DIR does not exist |
| 12510 | See \`config.log' for more details." >&5 |
| 12511 | echo "$as_me: error: There's something wrong with this script, directory $IPPSAMP_DIR does not exist |
| 12512 | See \`config.log' for more details." >&2;} |
| 12513 | { (exit 1); exit 1; }; } |
Benny Prijono | 3965f19 | 2010-02-10 18:46:05 +0000 | [diff] [blame] | 12514 | exit 1; |
| 12515 | fi |
| 12516 | |
| 12517 | if test "x$IPPVER" = "x5"; then |
| 12518 | IPPSAMP_LIBS="libusc.a" |
| 12519 | IPPSAMP_LDLIBS="-lusc" |
| 12520 | elif test "x$IPPVER" = "x6"; then |
| 12521 | IPPSAMP_LIBS="libspeech.a" |
| 12522 | IPPSAMP_LDLIBS="-lspeech" |
| 12523 | else |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 12524 | { { echo "$as_me:$LINENO: error: bug in this script: unsupported IPP version |
| 12525 | See \`config.log' for more details." >&5 |
| 12526 | echo "$as_me: error: bug in this script: unsupported IPP version |
| 12527 | See \`config.log' for more details." >&2;} |
| 12528 | { (exit 1); exit 1; }; } |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 12529 | fi |
Benny Prijono | 3965f19 | 2010-02-10 18:46:05 +0000 | [diff] [blame] | 12530 | |
| 12531 | if test ! -f $IPPSAMP_DIR/$IPPSAMP_LIBS; then |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 12532 | { { echo "$as_me:$LINENO: error: $IPPSAMP_LIBS doesn't exist in $IPPSAMP_DIR |
| 12533 | See \`config.log' for more details." >&5 |
| 12534 | echo "$as_me: error: $IPPSAMP_LIBS doesn't exist in $IPPSAMP_DIR |
| 12535 | See \`config.log' for more details." >&2;} |
| 12536 | { (exit 1); exit 1; }; } |
Benny Prijono | 3965f19 | 2010-02-10 18:46:05 +0000 | [diff] [blame] | 12537 | fi |
| 12538 | |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 12539 | { echo "$as_me:$LINENO: result: $IPPSAMP_DIR" >&5 |
| 12540 | echo "${ECHO_T}$IPPSAMP_DIR" >&6; } |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 12541 | |
| 12542 | SAVED_CFLAGS="$CFLAGS" |
| 12543 | SAVED_LDFLAGS="$LDFLAGS" |
| 12544 | SAVED_LIBS="$LIBS" |
| 12545 | |
Benny Prijono | 3965f19 | 2010-02-10 18:46:05 +0000 | [diff] [blame] | 12546 | IPPSAMP_INC="-I$IPPSAMPLES/speech-codecs/core/usc/include" |
| 12547 | CFLAGS="$CFLAGS $IPPSAMP_INC" |
| 12548 | LDFLAGS="$LDFLAGS -L$IPPSAMP_DIR" |
| 12549 | LIBS="$IPPSAMP_LDLIBS $LIBS" |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 12550 | |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 12551 | { echo "$as_me:$LINENO: checking Intel IPP USC usability" >&5 |
| 12552 | echo $ECHO_N "checking Intel IPP USC usability... $ECHO_C" >&6; } |
| 12553 | cat >conftest.$ac_ext <<_ACEOF |
| 12554 | /* confdefs.h. */ |
| 12555 | _ACEOF |
| 12556 | cat confdefs.h >>conftest.$ac_ext |
| 12557 | cat >>conftest.$ac_ext <<_ACEOF |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 12558 | /* end confdefs.h. */ |
| 12559 | #include <usc.h> |
| 12560 | |
| 12561 | int |
| 12562 | main () |
| 12563 | { |
| 12564 | extern USC_Fxns USC_G729AFP_Fxns; |
| 12565 | ; |
| 12566 | return 0; |
| 12567 | } |
| 12568 | _ACEOF |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 12569 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12570 | if { (ac_try="$ac_link" |
| 12571 | case "(($ac_try" in |
| 12572 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12573 | *) ac_try_echo=$ac_try;; |
| 12574 | esac |
| 12575 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12576 | (eval "$ac_link") 2>conftest.er1 |
| 12577 | ac_status=$? |
| 12578 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12579 | rm -f conftest.er1 |
| 12580 | cat conftest.err >&5 |
| 12581 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12582 | (exit $ac_status); } && { |
| 12583 | test -z "$ac_c_werror_flag" || |
| 12584 | test ! -s conftest.err |
| 12585 | } && test -s conftest$ac_exeext && |
| 12586 | $as_test_x conftest$ac_exeext; then |
| 12587 | { echo "$as_me:$LINENO: result: ok" >&5 |
| 12588 | echo "${ECHO_T}ok" >&6; } |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 12589 | else |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 12590 | echo "$as_me: failed program was:" >&5 |
| 12591 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12592 | |
| 12593 | { { echo "$as_me:$LINENO: error: failed |
| 12594 | See \`config.log' for more details." >&5 |
| 12595 | echo "$as_me: error: failed |
| 12596 | See \`config.log' for more details." >&2;} |
| 12597 | { (exit 1); exit 1; }; } |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 12598 | fi |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 12599 | |
| 12600 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 12601 | conftest$ac_exeext conftest.$ac_ext |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 12602 | |
| 12603 | CFLAGS="$SAVED_CFLAGS" |
Benny Prijono | 3965f19 | 2010-02-10 18:46:05 +0000 | [diff] [blame] | 12604 | LDFLAGS="$IPP_LDFLAGS $SAVED_LDFLAGS" |
| 12605 | LIBS="$IPP_LIBS $SAVED_LIBS" |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 12606 | |
Benny Prijono | 3965f19 | 2010-02-10 18:46:05 +0000 | [diff] [blame] | 12607 | IPP_CFLAGS="$IPP_CFLAGS $IPPSAMP_INC" |
| 12608 | IPP_LDFLAGS="$IPP_LDFLAGS -L$IPPSAMP_DIR" |
| 12609 | IPP_LIBS="$IPPSAMP_LDLIBS $IPP_LIBS" |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 12610 | fi |
| 12611 | |
Benny Prijono | 3965f19 | 2010-02-10 18:46:05 +0000 | [diff] [blame] | 12612 | CFLAGS="$CFLAGS $IPP_CFLAGS" |
| 12613 | LDFLAGS="$LDFLAGS $IPP_LDFLAGS" |
| 12614 | LIBS="$LIBS $IPP_LIBS" |
| 12615 | |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 12616 | ac_build_mak_vars="$ac_build_mak_vars\n\ |
| 12617 | export IPP_CFLAGS=$IPP_CFLAGS\n\ |
| 12618 | export IPP_LDFLAGS=$IPP_LDFLAGS\n\ |
| 12619 | export IPP_LIBS=$IPP_LIBS" |
| 12620 | else |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 12621 | { echo "$as_me:$LINENO: result: Skipping Intel IPP settings (not wanted)" >&5 |
| 12622 | echo "${ECHO_T}Skipping Intel IPP settings (not wanted)" >&6; } |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 12623 | fi |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 12624 | |
| 12625 | |
| 12626 | |
| 12627 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 12628 | # Check whether --enable-ssl was given. |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 12629 | if test "${enable_ssl+set}" = set; then |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 12630 | enableval=$enable_ssl; |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 12631 | if test "$enable_ssl" = "no"; then |
| 12632 | ac_no_ssl=1 |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 12633 | { echo "$as_me:$LINENO: result: Checking if SSL support is disabled... yes" >&5 |
| 12634 | echo "${ECHO_T}Checking if SSL support is disabled... yes" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 12635 | fi |
| 12636 | |
| 12637 | else |
| 12638 | |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 12639 | { echo "$as_me:$LINENO: result: checking for OpenSSL installations.." >&5 |
| 12640 | echo "${ECHO_T}checking for OpenSSL installations.." >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 12641 | |
| 12642 | |
| 12643 | |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 12644 | if test "${ac_cv_header_openssl_ssl_h+set}" = set; then |
| 12645 | { echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5 |
| 12646 | echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6; } |
| 12647 | if test "${ac_cv_header_openssl_ssl_h+set}" = set; then |
| 12648 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12649 | fi |
| 12650 | { echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5 |
| 12651 | echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6; } |
| 12652 | else |
| 12653 | # Is the header compilable? |
| 12654 | { echo "$as_me:$LINENO: checking openssl/ssl.h usability" >&5 |
| 12655 | echo $ECHO_N "checking openssl/ssl.h usability... $ECHO_C" >&6; } |
| 12656 | cat >conftest.$ac_ext <<_ACEOF |
| 12657 | /* confdefs.h. */ |
| 12658 | _ACEOF |
| 12659 | cat confdefs.h >>conftest.$ac_ext |
| 12660 | cat >>conftest.$ac_ext <<_ACEOF |
| 12661 | /* end confdefs.h. */ |
| 12662 | $ac_includes_default |
| 12663 | #include <openssl/ssl.h> |
| 12664 | _ACEOF |
| 12665 | rm -f conftest.$ac_objext |
| 12666 | if { (ac_try="$ac_compile" |
| 12667 | case "(($ac_try" in |
| 12668 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12669 | *) ac_try_echo=$ac_try;; |
| 12670 | esac |
| 12671 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12672 | (eval "$ac_compile") 2>conftest.er1 |
| 12673 | ac_status=$? |
| 12674 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12675 | rm -f conftest.er1 |
| 12676 | cat conftest.err >&5 |
| 12677 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12678 | (exit $ac_status); } && { |
| 12679 | test -z "$ac_c_werror_flag" || |
| 12680 | test ! -s conftest.err |
| 12681 | } && test -s conftest.$ac_objext; then |
| 12682 | ac_header_compiler=yes |
| 12683 | else |
| 12684 | echo "$as_me: failed program was:" >&5 |
| 12685 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12686 | |
| 12687 | ac_header_compiler=no |
| 12688 | fi |
| 12689 | |
| 12690 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 12691 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 12692 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 12693 | |
| 12694 | # Is the header present? |
| 12695 | { echo "$as_me:$LINENO: checking openssl/ssl.h presence" >&5 |
| 12696 | echo $ECHO_N "checking openssl/ssl.h presence... $ECHO_C" >&6; } |
| 12697 | cat >conftest.$ac_ext <<_ACEOF |
| 12698 | /* confdefs.h. */ |
| 12699 | _ACEOF |
| 12700 | cat confdefs.h >>conftest.$ac_ext |
| 12701 | cat >>conftest.$ac_ext <<_ACEOF |
| 12702 | /* end confdefs.h. */ |
| 12703 | #include <openssl/ssl.h> |
| 12704 | _ACEOF |
| 12705 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 12706 | case "(($ac_try" in |
| 12707 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12708 | *) ac_try_echo=$ac_try;; |
| 12709 | esac |
| 12710 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12711 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 12712 | ac_status=$? |
| 12713 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12714 | rm -f conftest.er1 |
| 12715 | cat conftest.err >&5 |
| 12716 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12717 | (exit $ac_status); } >/dev/null && { |
| 12718 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 12719 | test ! -s conftest.err |
| 12720 | }; then |
| 12721 | ac_header_preproc=yes |
| 12722 | else |
| 12723 | echo "$as_me: failed program was:" >&5 |
| 12724 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12725 | |
| 12726 | ac_header_preproc=no |
| 12727 | fi |
| 12728 | |
| 12729 | rm -f conftest.err conftest.$ac_ext |
| 12730 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 12731 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 12732 | |
| 12733 | # So? What about this header? |
| 12734 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 12735 | yes:no: ) |
| 12736 | { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 12737 | echo "$as_me: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 12738 | { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the compiler's result" >&5 |
| 12739 | echo "$as_me: WARNING: openssl/ssl.h: proceeding with the compiler's result" >&2;} |
| 12740 | ac_header_preproc=yes |
| 12741 | ;; |
| 12742 | no:yes:* ) |
| 12743 | { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: present but cannot be compiled" >&5 |
| 12744 | echo "$as_me: WARNING: openssl/ssl.h: present but cannot be compiled" >&2;} |
| 12745 | { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&5 |
| 12746 | echo "$as_me: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&2;} |
| 12747 | { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: see the Autoconf documentation" >&5 |
| 12748 | echo "$as_me: WARNING: openssl/ssl.h: see the Autoconf documentation" >&2;} |
| 12749 | { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 12750 | echo "$as_me: WARNING: openssl/ssl.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 12751 | { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&5 |
| 12752 | echo "$as_me: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&2;} |
| 12753 | { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: in the future, the compiler will take precedence" >&5 |
| 12754 | echo "$as_me: WARNING: openssl/ssl.h: in the future, the compiler will take precedence" >&2;} |
| 12755 | |
| 12756 | ;; |
| 12757 | esac |
| 12758 | { echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5 |
| 12759 | echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6; } |
| 12760 | if test "${ac_cv_header_openssl_ssl_h+set}" = set; then |
| 12761 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12762 | else |
| 12763 | ac_cv_header_openssl_ssl_h=$ac_header_preproc |
| 12764 | fi |
| 12765 | { echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5 |
| 12766 | echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6; } |
| 12767 | |
| 12768 | fi |
| 12769 | if test $ac_cv_header_openssl_ssl_h = yes; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 12770 | openssl_h_present=1 |
| 12771 | fi |
| 12772 | |
| 12773 | |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 12774 | { echo "$as_me:$LINENO: checking for ERR_load_BIO_strings in -lcrypto" >&5 |
| 12775 | echo $ECHO_N "checking for ERR_load_BIO_strings in -lcrypto... $ECHO_C" >&6; } |
| 12776 | if test "${ac_cv_lib_crypto_ERR_load_BIO_strings+set}" = set; then |
| 12777 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 12778 | else |
| 12779 | ac_check_lib_save_LIBS=$LIBS |
| 12780 | LIBS="-lcrypto $LIBS" |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 12781 | cat >conftest.$ac_ext <<_ACEOF |
| 12782 | /* confdefs.h. */ |
| 12783 | _ACEOF |
| 12784 | cat confdefs.h >>conftest.$ac_ext |
| 12785 | cat >>conftest.$ac_ext <<_ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 12786 | /* end confdefs.h. */ |
| 12787 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 12788 | /* Override any GCC internal prototype to avoid an error. |
| 12789 | Use char because int might match the return type of a GCC |
| 12790 | builtin and then its argument prototype would still apply. */ |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 12791 | #ifdef __cplusplus |
| 12792 | extern "C" |
| 12793 | #endif |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 12794 | char ERR_load_BIO_strings (); |
| 12795 | int |
| 12796 | main () |
| 12797 | { |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 12798 | return ERR_load_BIO_strings (); |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 12799 | ; |
| 12800 | return 0; |
| 12801 | } |
| 12802 | _ACEOF |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 12803 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12804 | if { (ac_try="$ac_link" |
| 12805 | case "(($ac_try" in |
| 12806 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12807 | *) ac_try_echo=$ac_try;; |
| 12808 | esac |
| 12809 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12810 | (eval "$ac_link") 2>conftest.er1 |
| 12811 | ac_status=$? |
| 12812 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12813 | rm -f conftest.er1 |
| 12814 | cat conftest.err >&5 |
| 12815 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12816 | (exit $ac_status); } && { |
| 12817 | test -z "$ac_c_werror_flag" || |
| 12818 | test ! -s conftest.err |
| 12819 | } && test -s conftest$ac_exeext && |
| 12820 | $as_test_x conftest$ac_exeext; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 12821 | ac_cv_lib_crypto_ERR_load_BIO_strings=yes |
| 12822 | else |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 12823 | echo "$as_me: failed program was:" >&5 |
| 12824 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12825 | |
| 12826 | ac_cv_lib_crypto_ERR_load_BIO_strings=no |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 12827 | fi |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 12828 | |
| 12829 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 12830 | conftest$ac_exeext conftest.$ac_ext |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 12831 | LIBS=$ac_check_lib_save_LIBS |
| 12832 | fi |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 12833 | { echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_ERR_load_BIO_strings" >&5 |
| 12834 | echo "${ECHO_T}$ac_cv_lib_crypto_ERR_load_BIO_strings" >&6; } |
| 12835 | if test $ac_cv_lib_crypto_ERR_load_BIO_strings = yes; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 12836 | libcrypto_present=1 && LIBS="$LIBS -lcrypto" |
| 12837 | fi |
| 12838 | |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 12839 | { echo "$as_me:$LINENO: checking for SSL_library_init in -lssl" >&5 |
| 12840 | echo $ECHO_N "checking for SSL_library_init in -lssl... $ECHO_C" >&6; } |
| 12841 | if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then |
| 12842 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Benny Prijono | d523370 | 2010-01-13 13:09:45 +0000 | [diff] [blame] | 12843 | else |
| 12844 | ac_check_lib_save_LIBS=$LIBS |
| 12845 | LIBS="-lssl $LIBS" |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 12846 | cat >conftest.$ac_ext <<_ACEOF |
| 12847 | /* confdefs.h. */ |
| 12848 | _ACEOF |
| 12849 | cat confdefs.h >>conftest.$ac_ext |
| 12850 | cat >>conftest.$ac_ext <<_ACEOF |
Benny Prijono | d523370 | 2010-01-13 13:09:45 +0000 | [diff] [blame] | 12851 | /* end confdefs.h. */ |
| 12852 | |
| 12853 | /* Override any GCC internal prototype to avoid an error. |
| 12854 | Use char because int might match the return type of a GCC |
| 12855 | builtin and then its argument prototype would still apply. */ |
| 12856 | #ifdef __cplusplus |
| 12857 | extern "C" |
| 12858 | #endif |
| 12859 | char SSL_library_init (); |
| 12860 | int |
| 12861 | main () |
| 12862 | { |
| 12863 | return SSL_library_init (); |
| 12864 | ; |
| 12865 | return 0; |
| 12866 | } |
| 12867 | _ACEOF |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 12868 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12869 | if { (ac_try="$ac_link" |
| 12870 | case "(($ac_try" in |
| 12871 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12872 | *) ac_try_echo=$ac_try;; |
| 12873 | esac |
| 12874 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12875 | (eval "$ac_link") 2>conftest.er1 |
| 12876 | ac_status=$? |
| 12877 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12878 | rm -f conftest.er1 |
| 12879 | cat conftest.err >&5 |
| 12880 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12881 | (exit $ac_status); } && { |
| 12882 | test -z "$ac_c_werror_flag" || |
| 12883 | test ! -s conftest.err |
| 12884 | } && test -s conftest$ac_exeext && |
| 12885 | $as_test_x conftest$ac_exeext; then |
Benny Prijono | d523370 | 2010-01-13 13:09:45 +0000 | [diff] [blame] | 12886 | ac_cv_lib_ssl_SSL_library_init=yes |
| 12887 | else |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 12888 | echo "$as_me: failed program was:" >&5 |
| 12889 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12890 | |
| 12891 | ac_cv_lib_ssl_SSL_library_init=no |
Benny Prijono | d523370 | 2010-01-13 13:09:45 +0000 | [diff] [blame] | 12892 | fi |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 12893 | |
| 12894 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 12895 | conftest$ac_exeext conftest.$ac_ext |
Benny Prijono | d523370 | 2010-01-13 13:09:45 +0000 | [diff] [blame] | 12896 | LIBS=$ac_check_lib_save_LIBS |
| 12897 | fi |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 12898 | { echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_library_init" >&5 |
| 12899 | echo "${ECHO_T}$ac_cv_lib_ssl_SSL_library_init" >&6; } |
| 12900 | if test $ac_cv_lib_ssl_SSL_library_init = yes; then |
Benny Prijono | d523370 | 2010-01-13 13:09:45 +0000 | [diff] [blame] | 12901 | libssl_present=1 && LIBS="$LIBS -lssl" |
| 12902 | fi |
| 12903 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 12904 | if test "x$openssl_h_present" = "x1" -a "x$libssl_present" = "x1" -a "x$libcrypto_present" = "x1"; then |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 12905 | { echo "$as_me:$LINENO: result: OpenSSL library found, SSL support enabled" >&5 |
| 12906 | echo "${ECHO_T}OpenSSL library found, SSL support enabled" >&6; } |
Nanang Izzuddin | 9c7616f | 2009-10-28 06:09:15 +0000 | [diff] [blame] | 12907 | # PJSIP_HAS_TLS_TRANSPORT setting follows PJ_HAS_SSL_SOCK |
| 12908 | #AC_DEFINE(PJSIP_HAS_TLS_TRANSPORT, 1) |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 12909 | cat >>confdefs.h <<\_ACEOF |
| 12910 | #define PJ_HAS_SSL_SOCK 1 |
| 12911 | _ACEOF |
Nanang Izzuddin | ea6d3c4 | 2009-10-26 15:47:52 +0000 | [diff] [blame] | 12912 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 12913 | else |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 12914 | { echo "$as_me:$LINENO: result: ** OpenSSL libraries not found, disabling SSL support **" >&5 |
| 12915 | echo "${ECHO_T}** OpenSSL libraries not found, disabling SSL support **" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 12916 | fi |
| 12917 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 12918 | fi |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 12919 | |
| 12920 | |
| 12921 | |
| 12922 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 12923 | |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 12924 | { echo "$as_me:$LINENO: checking if select() needs correct nfds" >&5 |
| 12925 | echo $ECHO_N "checking if select() needs correct nfds... $ECHO_C" >&6; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 12926 | case $target in |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 12927 | *rtems*) cat >>confdefs.h <<\_ACEOF |
| 12928 | #define PJ_SELECT_NEEDS_NFDS 1 |
| 12929 | _ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 12930 | |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 12931 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 12932 | echo "${ECHO_T}yes" >&6; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 12933 | ;; |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 12934 | *) cat >>confdefs.h <<\_ACEOF |
| 12935 | #define PJ_SELECT_NEEDS_NFDS 0 |
| 12936 | _ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 12937 | |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 12938 | { echo "$as_me:$LINENO: result: no (default)" >&5 |
| 12939 | echo "${ECHO_T}no (default)" >&6; } |
| 12940 | { echo "$as_me:$LINENO: result: ** Decided that select() doesn't need correct nfds (please check)" >&5 |
| 12941 | 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] | 12942 | ;; |
| 12943 | esac |
| 12944 | |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 12945 | { echo "$as_me:$LINENO: checking if pj_thread_create() should enforce stack size" >&5 |
| 12946 | 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] | 12947 | case $target in |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 12948 | *rtems*) cat >>confdefs.h <<\_ACEOF |
| 12949 | #define PJ_THREAD_SET_STACK_SIZE 1 |
| 12950 | _ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 12951 | |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 12952 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 12953 | echo "${ECHO_T}yes" >&6; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 12954 | ;; |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 12955 | *) cat >>confdefs.h <<\_ACEOF |
| 12956 | #define PJ_THREAD_SET_STACK_SIZE 0 |
| 12957 | _ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 12958 | |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 12959 | { echo "$as_me:$LINENO: result: no (default)" >&5 |
| 12960 | echo "${ECHO_T}no (default)" >&6; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 12961 | ;; |
| 12962 | esac |
| 12963 | |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 12964 | { echo "$as_me:$LINENO: checking if pj_thread_create() should allocate stack" >&5 |
| 12965 | 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] | 12966 | case $target in |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 12967 | *rtems*) cat >>confdefs.h <<\_ACEOF |
| 12968 | #define PJ_THREAD_ALLOCATE_STACK 1 |
| 12969 | _ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 12970 | |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 12971 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 12972 | echo "${ECHO_T}yes" >&6; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 12973 | ;; |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 12974 | *) cat >>confdefs.h <<\_ACEOF |
| 12975 | #define PJ_THREAD_ALLOCATE_STACK 0 |
| 12976 | _ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 12977 | |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 12978 | { echo "$as_me:$LINENO: result: no (default)" >&5 |
| 12979 | echo "${ECHO_T}no (default)" >&6; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 12980 | ;; |
| 12981 | esac |
| 12982 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 12983 | case $target in |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 12984 | *mingw* | *cygw* | *win32* | *w32* ) |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 12985 | cat >>confdefs.h <<\_ACEOF |
| 12986 | #define PJ_BLOCKING_ERROR_VAL WSAEWOULDBLOCK |
| 12987 | _ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 12988 | |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 12989 | ;; |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 12990 | *) cat >>confdefs.h <<\_ACEOF |
| 12991 | #define PJ_BLOCKING_ERROR_VAL EAGAIN |
| 12992 | _ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 12993 | |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 12994 | { echo "$as_me:$LINENO: result: ** Setting non-blocking recv() retval to EAGAIN (please check)" >&5 |
| 12995 | 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] | 12996 | ;; |
| 12997 | esac |
| 12998 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 12999 | case $target in |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 13000 | *mingw* | *cygw* | *win32* | *w32* ) |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 13001 | cat >>confdefs.h <<\_ACEOF |
| 13002 | #define PJ_BLOCKING_CONNECT_ERROR_VAL WSAEWOULDBLOCK |
| 13003 | _ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 13004 | |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 13005 | ;; |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 13006 | *) cat >>confdefs.h <<\_ACEOF |
| 13007 | #define PJ_BLOCKING_CONNECT_ERROR_VAL EINPROGRESS |
| 13008 | _ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 13009 | |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 13010 | { echo "$as_me:$LINENO: result: ** Setting non-blocking connect() retval to EINPROGRESS (please check)" >&5 |
| 13011 | 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] | 13012 | ;; |
| 13013 | esac |
| 13014 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 13015 | |
| 13016 | |
| 13017 | |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 13018 | if test "$build" = "$host"; then |
| 13019 | ac_cross_compile= |
| 13020 | else |
Benny Prijono | 5b818b2 | 2006-09-17 22:58:51 +0000 | [diff] [blame] | 13021 | ac_cross_compile=${host_orig}- |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 13022 | fi |
| 13023 | ac_linux_poll=select |
| 13024 | |
| 13025 | ac_host=unix |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 13026 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 13027 | |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 13028 | case $target in |
| 13029 | *rtems*) |
| 13030 | ac_main_obj=main_rtems.o |
| 13031 | ;; |
| 13032 | *) |
| 13033 | ac_main_obj=main.o |
| 13034 | ;; |
| 13035 | esac |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 13036 | |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 13037 | |
| 13038 | 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] | 13039 | cat >confcache <<\_ACEOF |
| 13040 | # This file is a shell script that caches the results of configure |
| 13041 | # tests run on this system so they can be shared between configure |
| 13042 | # scripts and configure runs, see configure's option --config-cache. |
| 13043 | # It is not useful on other systems. If it contains results you don't |
| 13044 | # want to keep, you may remove or edit it. |
| 13045 | # |
| 13046 | # config.status only pays attention to the cache file if you give it |
| 13047 | # the --recheck option to rerun configure. |
| 13048 | # |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 13049 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 13050 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
| 13051 | # following values. |
| 13052 | |
| 13053 | _ACEOF |
| 13054 | |
| 13055 | # The following way of writing the cache mishandles newlines in values, |
| 13056 | # but we know of no workaround that is simple, portable, and efficient. |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 13057 | # So, we kill variables containing newlines. |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 13058 | # Ultrix sh set writes to stderr and can't be redirected directly, |
| 13059 | # 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] | 13060 | ( |
| 13061 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do |
| 13062 | eval ac_val=\$$ac_var |
| 13063 | case $ac_val in #( |
| 13064 | *${as_nl}*) |
| 13065 | case $ac_var in #( |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 13066 | *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 |
| 13067 | echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 13068 | esac |
| 13069 | case $ac_var in #( |
| 13070 | _ | IFS | as_nl) ;; #( |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 13071 | *) $as_unset $ac_var ;; |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 13072 | esac ;; |
| 13073 | esac |
| 13074 | done |
| 13075 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 13076 | (set) 2>&1 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 13077 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
| 13078 | *${as_nl}ac_space=\ *) |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 13079 | # `set' does not quote correctly, so add quotes (double-quote |
| 13080 | # substitution turns \\\\ into \\, and sed turns \\ into \). |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 13081 | sed -n \ |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 13082 | "s/'/'\\\\''/g; |
| 13083 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 13084 | ;; #( |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 13085 | *) |
| 13086 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 13087 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 13088 | ;; |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 13089 | esac | |
| 13090 | sort |
| 13091 | ) | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 13092 | sed ' |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 13093 | /^ac_cv_env_/b end |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 13094 | t clear |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 13095 | :clear |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 13096 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
| 13097 | t end |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 13098 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
| 13099 | :end' >>confcache |
| 13100 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else |
| 13101 | if test -w "$cache_file"; then |
| 13102 | test "x$cache_file" != "x/dev/null" && |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 13103 | { echo "$as_me:$LINENO: updating cache $cache_file" >&5 |
| 13104 | echo "$as_me: updating cache $cache_file" >&6;} |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 13105 | cat confcache >$cache_file |
| 13106 | else |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 13107 | { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 |
| 13108 | echo "$as_me: not updating unwritable cache $cache_file" >&6;} |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 13109 | fi |
| 13110 | fi |
| 13111 | rm -f confcache |
| 13112 | |
| 13113 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
| 13114 | # Let make expand exec_prefix. |
| 13115 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
| 13116 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 13117 | DEFS=-DHAVE_CONFIG_H |
| 13118 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 13119 | ac_libobjs= |
| 13120 | ac_ltlibobjs= |
| 13121 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
| 13122 | # 1. Remove the extension, and $U if already installed. |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 13123 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 13124 | ac_i=`echo "$ac_i" | sed "$ac_script"` |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 13125 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
| 13126 | # will be set to the directory where LIBOBJS objects are built. |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 13127 | ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" |
| 13128 | ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 13129 | done |
| 13130 | LIBOBJS=$ac_libobjs |
| 13131 | |
| 13132 | LTLIBOBJS=$ac_ltlibobjs |
| 13133 | |
| 13134 | |
| 13135 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 13136 | : ${CONFIG_STATUS=./config.status} |
| 13137 | ac_clean_files_save=$ac_clean_files |
| 13138 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 13139 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 |
| 13140 | echo "$as_me: creating $CONFIG_STATUS" >&6;} |
| 13141 | cat >$CONFIG_STATUS <<_ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 13142 | #! $SHELL |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 13143 | # Generated by $as_me. |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 13144 | # Run this file to recreate the current configuration. |
| 13145 | # Compiler output produced by configure, useful for debugging |
| 13146 | # configure, is in config.log if it exists. |
| 13147 | |
| 13148 | debug=false |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 13149 | ac_cs_recheck=false |
| 13150 | ac_cs_silent=false |
Benny Prijono | c45d951 | 2010-12-10 11:04:30 +0000 | [diff] [blame] | 13151 | SHELL=\${CONFIG_SHELL-$SHELL} |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 13152 | _ACEOF |
| 13153 | |
| 13154 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 13155 | ## --------------------- ## |
| 13156 | ## M4sh Initialization. ## |
| 13157 | ## --------------------- ## |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 13158 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 13159 | # Be more Bourne compatible |
| 13160 | DUALCASE=1; export DUALCASE # for MKS sh |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 13161 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 13162 | emulate sh |
| 13163 | NULLCMD=: |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 13164 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 13165 | # is contrary to our usage. Disable this feature. |
| 13166 | alias -g '${1+"$@"}'='"$@"' |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 13167 | setopt NO_GLOB_SUBST |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 13168 | else |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 13169 | case `(set -o) 2>/dev/null` in |
| 13170 | *posix*) set -o posix ;; |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 13171 | esac |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 13172 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 13173 | fi |
| 13174 | |
| 13175 | |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 13176 | |
| 13177 | |
| 13178 | # PATH needs CR |
| 13179 | # Avoid depending upon Character Ranges. |
| 13180 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 13181 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 13182 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 13183 | as_cr_digits='0123456789' |
| 13184 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
Benny Prijono | d523370 | 2010-01-13 13:09:45 +0000 | [diff] [blame] | 13185 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 13186 | # The user is always right. |
| 13187 | if test "${PATH_SEPARATOR+set}" != set; then |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 13188 | echo "#! /bin/sh" >conf$$.sh |
| 13189 | echo "exit 0" >>conf$$.sh |
| 13190 | chmod +x conf$$.sh |
| 13191 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
| 13192 | PATH_SEPARATOR=';' |
| 13193 | else |
| 13194 | PATH_SEPARATOR=: |
| 13195 | fi |
| 13196 | rm -f conf$$.sh |
| 13197 | fi |
| 13198 | |
| 13199 | # Support unset when possible. |
| 13200 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
| 13201 | as_unset=unset |
| 13202 | else |
| 13203 | as_unset=false |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 13204 | fi |
| 13205 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 13206 | |
| 13207 | # IFS |
| 13208 | # We need space, tab and new line, in precisely that order. Quoting is |
| 13209 | # there to prevent editors from complaining about space-tab. |
| 13210 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
| 13211 | # splitting by setting IFS to empty value.) |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 13212 | as_nl=' |
| 13213 | ' |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 13214 | IFS=" "" $as_nl" |
| 13215 | |
| 13216 | # Find who we are. Look in the path if we contain no directory separator. |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 13217 | case $0 in |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 13218 | *[\\/]* ) as_myself=$0 ;; |
| 13219 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 13220 | for as_dir in $PATH |
| 13221 | do |
| 13222 | IFS=$as_save_IFS |
| 13223 | test -z "$as_dir" && as_dir=. |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 13224 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 13225 | done |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 13226 | IFS=$as_save_IFS |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 13227 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 13228 | ;; |
| 13229 | esac |
| 13230 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 13231 | # in which case we are not to be found in the path. |
| 13232 | if test "x$as_myself" = x; then |
| 13233 | as_myself=$0 |
| 13234 | fi |
| 13235 | if test ! -f "$as_myself"; then |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 13236 | echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
| 13237 | { (exit 1); exit 1; } |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 13238 | fi |
| 13239 | |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 13240 | # Work around bugs in pre-3.0 UWIN ksh. |
| 13241 | for as_var in ENV MAIL MAILPATH |
| 13242 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 13243 | done |
| 13244 | PS1='$ ' |
| 13245 | PS2='> ' |
| 13246 | PS4='+ ' |
| 13247 | |
| 13248 | # NLS nuisances. |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 13249 | for as_var in \ |
| 13250 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
| 13251 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
| 13252 | LC_TELEPHONE LC_TIME |
| 13253 | do |
| 13254 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
| 13255 | eval $as_var=C; export $as_var |
| 13256 | else |
| 13257 | ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
Benny Prijono | c45d951 | 2010-12-10 11:04:30 +0000 | [diff] [blame] | 13258 | fi |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 13259 | done |
Benny Prijono | c45d951 | 2010-12-10 11:04:30 +0000 | [diff] [blame] | 13260 | |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 13261 | # Required to use basename. |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 13262 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 13263 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
| 13264 | as_expr=expr |
| 13265 | else |
| 13266 | as_expr=false |
| 13267 | fi |
| 13268 | |
| 13269 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
| 13270 | as_basename=basename |
| 13271 | else |
| 13272 | as_basename=false |
| 13273 | fi |
| 13274 | |
| 13275 | |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 13276 | # Name of the executable. |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 13277 | as_me=`$as_basename -- "$0" || |
| 13278 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 13279 | X"$0" : 'X\(//\)$' \| \ |
| 13280 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 13281 | echo X/"$0" | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 13282 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
| 13283 | s//\1/ |
| 13284 | q |
| 13285 | } |
| 13286 | /^X\/\(\/\/\)$/{ |
| 13287 | s//\1/ |
| 13288 | q |
| 13289 | } |
| 13290 | /^X\/\(\/\).*/{ |
| 13291 | s//\1/ |
| 13292 | q |
| 13293 | } |
| 13294 | s/.*/./; q'` |
| 13295 | |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 13296 | # CDPATH. |
| 13297 | $as_unset CDPATH |
| 13298 | |
| 13299 | |
| 13300 | |
| 13301 | as_lineno_1=$LINENO |
| 13302 | as_lineno_2=$LINENO |
| 13303 | test "x$as_lineno_1" != "x$as_lineno_2" && |
| 13304 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { |
| 13305 | |
| 13306 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
| 13307 | # uniformly replaced by the line number. The first 'sed' inserts a |
| 13308 | # line-number line after each line using $LINENO; the second 'sed' |
| 13309 | # does the real work. The second script uses 'N' to pair each |
| 13310 | # line-number line with the line containing $LINENO, and appends |
| 13311 | # trailing '-' during substitution so that $LINENO is not a special |
| 13312 | # case at line end. |
| 13313 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
| 13314 | # scripts with optimization help from Paolo Bonzini. Blame Lee |
| 13315 | # E. McMahon (1931-1989) for sed's syntax. :-) |
| 13316 | sed -n ' |
| 13317 | p |
| 13318 | /[$]LINENO/= |
| 13319 | ' <$as_myself | |
| 13320 | sed ' |
| 13321 | s/[$]LINENO.*/&-/ |
| 13322 | t lineno |
| 13323 | b |
| 13324 | :lineno |
| 13325 | N |
| 13326 | :loop |
| 13327 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ |
| 13328 | t loop |
| 13329 | s/-\n.*// |
| 13330 | ' >$as_me.lineno && |
| 13331 | chmod +x "$as_me.lineno" || |
| 13332 | { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 |
| 13333 | { (exit 1); exit 1; }; } |
| 13334 | |
| 13335 | # Don't try to exec as it changes $[0], causing all sort of problems |
| 13336 | # (the dirname of $[0] is not the place where we might find the |
| 13337 | # original and so on. Autoconf is especially sensitive to this). |
| 13338 | . "./$as_me.lineno" |
| 13339 | # Exit status is that of the last command. |
| 13340 | exit |
| 13341 | } |
| 13342 | |
| 13343 | |
| 13344 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
| 13345 | as_dirname=dirname |
| 13346 | else |
| 13347 | as_dirname=false |
| 13348 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 13349 | |
| 13350 | ECHO_C= ECHO_N= ECHO_T= |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 13351 | case `echo -n x` in |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 13352 | -n*) |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 13353 | case `echo 'x\c'` in |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 13354 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 13355 | *) ECHO_C='\c';; |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 13356 | esac;; |
| 13357 | *) |
| 13358 | ECHO_N='-n';; |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 13359 | esac |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 13360 | |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 13361 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 13362 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
| 13363 | as_expr=expr |
| 13364 | else |
| 13365 | as_expr=false |
| 13366 | fi |
| 13367 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 13368 | rm -f conf$$ conf$$.exe conf$$.file |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 13369 | if test -d conf$$.dir; then |
| 13370 | rm -f conf$$.dir/conf$$.file |
| 13371 | else |
| 13372 | rm -f conf$$.dir |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 13373 | mkdir conf$$.dir |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 13374 | fi |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 13375 | echo >conf$$.file |
| 13376 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 13377 | as_ln_s='ln -s' |
| 13378 | # ... but there are two gotchas: |
| 13379 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
| 13380 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
| 13381 | # In both cases, we have to default to `cp -p'. |
| 13382 | 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] | 13383 | as_ln_s='cp -p' |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 13384 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 13385 | as_ln_s=ln |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 13386 | else |
| 13387 | as_ln_s='cp -p' |
| 13388 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 13389 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
| 13390 | rmdir conf$$.dir 2>/dev/null |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 13391 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 13392 | if mkdir -p . 2>/dev/null; then |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 13393 | as_mkdir_p=: |
Benny Prijono | 39ae2da | 2006-10-13 17:57:42 +0000 | [diff] [blame] | 13394 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 13395 | test -d ./-p && rmdir ./-p |
| 13396 | as_mkdir_p=false |
Benny Prijono | 39ae2da | 2006-10-13 17:57:42 +0000 | [diff] [blame] | 13397 | fi |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 13398 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 13399 | if test -x / >/dev/null 2>&1; then |
| 13400 | as_test_x='test -x' |
| 13401 | else |
| 13402 | if ls -dL / >/dev/null 2>&1; then |
| 13403 | as_ls_L_option=L |
| 13404 | else |
| 13405 | as_ls_L_option= |
| 13406 | fi |
| 13407 | as_test_x=' |
| 13408 | eval sh -c '\'' |
| 13409 | if test -d "$1"; then |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 13410 | test -d "$1/."; |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 13411 | else |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 13412 | case $1 in |
| 13413 | -*)set "./$1";; |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 13414 | esac; |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 13415 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 13416 | ???[sx]*):;;*)false;;esac;fi |
| 13417 | '\'' sh |
| 13418 | ' |
| 13419 | fi |
| 13420 | as_executable_p=$as_test_x |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 13421 | |
| 13422 | # Sed expression to map a string onto a valid CPP name. |
| 13423 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
| 13424 | |
| 13425 | # Sed expression to map a string onto a valid variable name. |
| 13426 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
| 13427 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 13428 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 13429 | exec 6>&1 |
| 13430 | |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 13431 | # 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] | 13432 | # report actual input values of CONFIG_FILES etc. instead of their |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 13433 | # values after options handling. |
| 13434 | ac_log=" |
Benny Prijono | 8a9b3b2 | 2010-01-14 14:46:54 +0000 | [diff] [blame] | 13435 | This file was extended by pjproject $as_me 1.x, which was |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 13436 | generated by GNU Autoconf 2.61. Invocation command line was |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 13437 | |
| 13438 | CONFIG_FILES = $CONFIG_FILES |
| 13439 | CONFIG_HEADERS = $CONFIG_HEADERS |
| 13440 | CONFIG_LINKS = $CONFIG_LINKS |
| 13441 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
| 13442 | $ $0 $@ |
| 13443 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 13444 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 13445 | " |
| 13446 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 13447 | _ACEOF |
| 13448 | |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 13449 | cat >>$CONFIG_STATUS <<_ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 13450 | # Files that config.status was made for. |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 13451 | config_files="$ac_config_files" |
| 13452 | config_headers="$ac_config_headers" |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 13453 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 13454 | _ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 13455 | |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 13456 | cat >>$CONFIG_STATUS <<\_ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 13457 | ac_cs_usage="\ |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 13458 | \`$as_me' instantiates files from templates according to the |
| 13459 | current configuration. |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 13460 | |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 13461 | Usage: $0 [OPTIONS] [FILE]... |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 13462 | |
| 13463 | -h, --help print this help, then exit |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 13464 | -V, --version print version number and configuration settings, then exit |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 13465 | -q, --quiet do not print progress messages |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 13466 | -d, --debug don't remove temporary files |
| 13467 | --recheck update $as_me by reconfiguring in the same conditions |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 13468 | --file=FILE[:TEMPLATE] |
| 13469 | instantiate the configuration file FILE |
| 13470 | --header=FILE[:TEMPLATE] |
| 13471 | instantiate the configuration header FILE |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 13472 | |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 13473 | Configuration files: |
| 13474 | $config_files |
| 13475 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 13476 | Configuration headers: |
| 13477 | $config_headers |
| 13478 | |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 13479 | Report bugs to <bug-autoconf@gnu.org>." |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 13480 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 13481 | _ACEOF |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 13482 | cat >>$CONFIG_STATUS <<_ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 13483 | ac_cs_version="\\ |
Benny Prijono | 8a9b3b2 | 2010-01-14 14:46:54 +0000 | [diff] [blame] | 13484 | pjproject config.status 1.x |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 13485 | configured by $0, generated by GNU Autoconf 2.61, |
| 13486 | with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 13487 | |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 13488 | Copyright (C) 2006 Free Software Foundation, Inc. |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 13489 | This config.status script is free software; the Free Software Foundation |
| 13490 | gives unlimited permission to copy, distribute and modify it." |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 13491 | |
| 13492 | ac_pwd='$ac_pwd' |
| 13493 | srcdir='$srcdir' |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 13494 | _ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 13495 | |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 13496 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 13497 | # If no file are specified by the user, then we need to provide default |
| 13498 | # value. By we need to know if files were specified by the user. |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 13499 | ac_need_defaults=: |
| 13500 | while test $# != 0 |
| 13501 | do |
| 13502 | case $1 in |
| 13503 | --*=*) |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 13504 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
| 13505 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 13506 | ac_shift=: |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 13507 | ;; |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 13508 | *) |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 13509 | ac_option=$1 |
| 13510 | ac_optarg=$2 |
| 13511 | ac_shift=shift |
| 13512 | ;; |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 13513 | esac |
| 13514 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 13515 | case $ac_option in |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 13516 | # Handling of the options. |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 13517 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 13518 | ac_cs_recheck=: ;; |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 13519 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 13520 | echo "$ac_cs_version"; exit ;; |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 13521 | --debug | --debu | --deb | --de | --d | -d ) |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 13522 | debug=: ;; |
| 13523 | --file | --fil | --fi | --f ) |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 13524 | $ac_shift |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 13525 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 13526 | ac_need_defaults=false;; |
| 13527 | --header | --heade | --head | --hea ) |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 13528 | $ac_shift |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 13529 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 13530 | ac_need_defaults=false;; |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 13531 | --he | --h) |
| 13532 | # Conflict between --help and --header |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 13533 | { echo "$as_me: error: ambiguous option: $1 |
| 13534 | Try \`$0 --help' for more information." >&2 |
| 13535 | { (exit 1); exit 1; }; };; |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 13536 | --help | --hel | -h ) |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 13537 | echo "$ac_cs_usage"; exit ;; |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 13538 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 13539 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
| 13540 | ac_cs_silent=: ;; |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 13541 | |
| 13542 | # This is an error. |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 13543 | -*) { echo "$as_me: error: unrecognized option: $1 |
| 13544 | Try \`$0 --help' for more information." >&2 |
| 13545 | { (exit 1); exit 1; }; } ;; |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 13546 | |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 13547 | *) ac_config_targets="$ac_config_targets $1" |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 13548 | ac_need_defaults=false ;; |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 13549 | |
| 13550 | esac |
| 13551 | shift |
| 13552 | done |
| 13553 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 13554 | ac_configure_extra_args= |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 13555 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 13556 | if $ac_cs_silent; then |
| 13557 | exec 6>/dev/null |
| 13558 | ac_configure_extra_args="$ac_configure_extra_args --silent" |
| 13559 | fi |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 13560 | |
| 13561 | _ACEOF |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 13562 | cat >>$CONFIG_STATUS <<_ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 13563 | if \$ac_cs_recheck; then |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 13564 | echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 |
| 13565 | CONFIG_SHELL=$SHELL |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 13566 | export CONFIG_SHELL |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 13567 | 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] | 13568 | fi |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 13569 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 13570 | _ACEOF |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 13571 | cat >>$CONFIG_STATUS <<\_ACEOF |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 13572 | exec 5>>config.log |
| 13573 | { |
| 13574 | echo |
| 13575 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
| 13576 | ## Running $as_me. ## |
| 13577 | _ASBOX |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 13578 | echo "$ac_log" |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 13579 | } >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 13580 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 13581 | _ACEOF |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 13582 | cat >>$CONFIG_STATUS <<_ACEOF |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 13583 | _ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 13584 | |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 13585 | cat >>$CONFIG_STATUS <<\_ACEOF |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 13586 | |
| 13587 | # Handling of arguments. |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 13588 | for ac_config_target in $ac_config_targets |
| 13589 | do |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 13590 | case $ac_config_target in |
| 13591 | "pjlib/include/pj/compat/os_auto.h") CONFIG_HEADERS="$CONFIG_HEADERS pjlib/include/pj/compat/os_auto.h" ;; |
| 13592 | "pjlib/include/pj/compat/m_auto.h") CONFIG_HEADERS="$CONFIG_HEADERS pjlib/include/pj/compat/m_auto.h" ;; |
| 13593 | "pjmedia/include/pjmedia/config_auto.h") CONFIG_HEADERS="$CONFIG_HEADERS pjmedia/include/pjmedia/config_auto.h" ;; |
| 13594 | "pjmedia/include/pjmedia-codec/config_auto.h") CONFIG_HEADERS="$CONFIG_HEADERS pjmedia/include/pjmedia-codec/config_auto.h" ;; |
| 13595 | "pjsip/include/pjsip/sip_autoconf.h") CONFIG_HEADERS="$CONFIG_HEADERS pjsip/include/pjsip/sip_autoconf.h" ;; |
| 13596 | "build.mak") CONFIG_FILES="$CONFIG_FILES build.mak" ;; |
| 13597 | "build/os-auto.mak") CONFIG_FILES="$CONFIG_FILES build/os-auto.mak" ;; |
Benny Prijono | 8ec5eae | 2010-05-12 10:59:20 +0000 | [diff] [blame] | 13598 | "build/cc-auto.mak") CONFIG_FILES="$CONFIG_FILES build/cc-auto.mak" ;; |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 13599 | "pjlib/build/os-auto.mak") CONFIG_FILES="$CONFIG_FILES pjlib/build/os-auto.mak" ;; |
| 13600 | "pjlib-util/build/os-auto.mak") CONFIG_FILES="$CONFIG_FILES pjlib-util/build/os-auto.mak" ;; |
| 13601 | "pjmedia/build/os-auto.mak") CONFIG_FILES="$CONFIG_FILES pjmedia/build/os-auto.mak" ;; |
| 13602 | "pjsip/build/os-auto.mak") CONFIG_FILES="$CONFIG_FILES pjsip/build/os-auto.mak" ;; |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 13603 | "third_party/build/os-auto.mak") CONFIG_FILES="$CONFIG_FILES third_party/build/os-auto.mak" ;; |
Benny Prijono | 8a9b3b2 | 2010-01-14 14:46:54 +0000 | [diff] [blame] | 13604 | "third_party/build/portaudio/os-auto.mak") CONFIG_FILES="$CONFIG_FILES third_party/build/portaudio/os-auto.mak" ;; |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 13605 | |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 13606 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
| 13607 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
| 13608 | { (exit 1); exit 1; }; };; |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 13609 | esac |
| 13610 | done |
| 13611 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 13612 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 13613 | # If the user did not use the arguments to specify the items to instantiate, |
| 13614 | # then the envvar interface is used. Set only those that are not. |
| 13615 | # We use the long form for the default assignment because of an extremely |
| 13616 | # bizarre bug on SunOS 4.1.3. |
| 13617 | if $ac_need_defaults; then |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 13618 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 13619 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
| 13620 | fi |
| 13621 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 13622 | # Have a temporary directory for convenience. Make it in the build tree |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 13623 | # 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] | 13624 | # creating and moving files from /tmp can sometimes cause problems. |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 13625 | # Hook for its removal unless debugging. |
| 13626 | # Note that there is a small window in which the directory will not be cleaned: |
| 13627 | # after its creation but before its name has been assigned to `$tmp'. |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 13628 | $debug || |
| 13629 | { |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 13630 | tmp= |
| 13631 | trap 'exit_status=$? |
| 13632 | { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status |
| 13633 | ' 0 |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 13634 | trap '{ (exit 1); exit 1; }' 1 2 13 15 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 13635 | } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 13636 | # Create a (secure) tmp directory for tmp files. |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 13637 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 13638 | { |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 13639 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 13640 | test -n "$tmp" && test -d "$tmp" |
| 13641 | } || |
| 13642 | { |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 13643 | tmp=./conf$$-$RANDOM |
| 13644 | (umask 077 && mkdir "$tmp") |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 13645 | } || |
| 13646 | { |
| 13647 | echo "$me: cannot create a temporary directory in ." >&2 |
| 13648 | { (exit 1); exit 1; } |
| 13649 | } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 13650 | |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 13651 | # |
| 13652 | # Set up the sed scripts for CONFIG_FILES section. |
| 13653 | # |
| 13654 | |
| 13655 | # No need to generate the scripts if there are no CONFIG_FILES. |
| 13656 | # This happens for instance when ./config.status config.h |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 13657 | if test -n "$CONFIG_FILES"; then |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 13658 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 13659 | _ACEOF |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 13660 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 13661 | |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 13662 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 13663 | ac_delim='%!_!# ' |
| 13664 | for ac_last_try in false false false false false :; do |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 13665 | cat >conf$$subs.sed <<_ACEOF |
| 13666 | SHELL!$SHELL$ac_delim |
| 13667 | PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim |
| 13668 | PACKAGE_NAME!$PACKAGE_NAME$ac_delim |
| 13669 | PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim |
| 13670 | PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim |
| 13671 | PACKAGE_STRING!$PACKAGE_STRING$ac_delim |
| 13672 | PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim |
| 13673 | exec_prefix!$exec_prefix$ac_delim |
| 13674 | prefix!$prefix$ac_delim |
| 13675 | program_transform_name!$program_transform_name$ac_delim |
| 13676 | bindir!$bindir$ac_delim |
| 13677 | sbindir!$sbindir$ac_delim |
| 13678 | libexecdir!$libexecdir$ac_delim |
| 13679 | datarootdir!$datarootdir$ac_delim |
| 13680 | datadir!$datadir$ac_delim |
| 13681 | sysconfdir!$sysconfdir$ac_delim |
| 13682 | sharedstatedir!$sharedstatedir$ac_delim |
| 13683 | localstatedir!$localstatedir$ac_delim |
| 13684 | includedir!$includedir$ac_delim |
| 13685 | oldincludedir!$oldincludedir$ac_delim |
| 13686 | docdir!$docdir$ac_delim |
| 13687 | infodir!$infodir$ac_delim |
| 13688 | htmldir!$htmldir$ac_delim |
| 13689 | dvidir!$dvidir$ac_delim |
| 13690 | pdfdir!$pdfdir$ac_delim |
| 13691 | psdir!$psdir$ac_delim |
| 13692 | libdir!$libdir$ac_delim |
| 13693 | localedir!$localedir$ac_delim |
| 13694 | mandir!$mandir$ac_delim |
| 13695 | DEFS!$DEFS$ac_delim |
| 13696 | ECHO_C!$ECHO_C$ac_delim |
| 13697 | ECHO_N!$ECHO_N$ac_delim |
| 13698 | ECHO_T!$ECHO_T$ac_delim |
| 13699 | LIBS!$LIBS$ac_delim |
| 13700 | build_alias!$build_alias$ac_delim |
| 13701 | host_alias!$host_alias$ac_delim |
| 13702 | target_alias!$target_alias$ac_delim |
| 13703 | build!$build$ac_delim |
| 13704 | build_cpu!$build_cpu$ac_delim |
| 13705 | build_vendor!$build_vendor$ac_delim |
| 13706 | build_os!$build_os$ac_delim |
| 13707 | host!$host$ac_delim |
| 13708 | host_cpu!$host_cpu$ac_delim |
| 13709 | host_vendor!$host_vendor$ac_delim |
| 13710 | host_os!$host_os$ac_delim |
| 13711 | target!$target$ac_delim |
| 13712 | target_cpu!$target_cpu$ac_delim |
| 13713 | target_vendor!$target_vendor$ac_delim |
| 13714 | target_os!$target_os$ac_delim |
| 13715 | CC!$CC$ac_delim |
| 13716 | CFLAGS!$CFLAGS$ac_delim |
| 13717 | LDFLAGS!$LDFLAGS$ac_delim |
| 13718 | CPPFLAGS!$CPPFLAGS$ac_delim |
| 13719 | ac_ct_CC!$ac_ct_CC$ac_delim |
| 13720 | EXEEXT!$EXEEXT$ac_delim |
| 13721 | OBJEXT!$OBJEXT$ac_delim |
| 13722 | CXX!$CXX$ac_delim |
| 13723 | CXXFLAGS!$CXXFLAGS$ac_delim |
| 13724 | ac_ct_CXX!$ac_ct_CXX$ac_delim |
| 13725 | AR!$AR$ac_delim |
| 13726 | LD!$LD$ac_delim |
| 13727 | LDOUT!$LDOUT$ac_delim |
| 13728 | RANLIB!$RANLIB$ac_delim |
| 13729 | LIBEXT!$LIBEXT$ac_delim |
| 13730 | LIBEXT2!$LIBEXT2$ac_delim |
| 13731 | CC_OUT!$CC_OUT$ac_delim |
| 13732 | CC_INC!$CC_INC$ac_delim |
| 13733 | CC_DEF!$CC_DEF$ac_delim |
| 13734 | CC_OPTIMIZE!$CC_OPTIMIZE$ac_delim |
| 13735 | CC_CFLAGS!$CC_CFLAGS$ac_delim |
| 13736 | ac_pjdir!$ac_pjdir$ac_delim |
| 13737 | ac_build_mak_vars!$ac_build_mak_vars$ac_delim |
| 13738 | CPP!$CPP$ac_delim |
| 13739 | GREP!$GREP$ac_delim |
| 13740 | EGREP!$EGREP$ac_delim |
| 13741 | ac_os_objs!$ac_os_objs$ac_delim |
| 13742 | ac_external_speex!$ac_external_speex$ac_delim |
| 13743 | ac_external_gsm!$ac_external_gsm$ac_delim |
| 13744 | ac_pjmedia_snd!$ac_pjmedia_snd$ac_delim |
| 13745 | ac_external_pa!$ac_external_pa$ac_delim |
| 13746 | ac_pa_cflags!$ac_pa_cflags$ac_delim |
| 13747 | ac_pa_use_alsa!$ac_pa_use_alsa$ac_delim |
| 13748 | ac_pa_use_oss!$ac_pa_use_oss$ac_delim |
| 13749 | ac_pjmedia_video!$ac_pjmedia_video$ac_delim |
| 13750 | ac_ios_cflags!$ac_ios_cflags$ac_delim |
| 13751 | ac_pjmedia_video_has_qt!$ac_pjmedia_video_has_qt$ac_delim |
| 13752 | ac_qt_cflags!$ac_qt_cflags$ac_delim |
| 13753 | ac_no_small_filter!$ac_no_small_filter$ac_delim |
| 13754 | ac_no_large_filter!$ac_no_large_filter$ac_delim |
| 13755 | ac_no_speex_aec!$ac_no_speex_aec$ac_delim |
| 13756 | ac_no_g711_codec!$ac_no_g711_codec$ac_delim |
| 13757 | ac_no_l16_codec!$ac_no_l16_codec$ac_delim |
| 13758 | ac_no_gsm_codec!$ac_no_gsm_codec$ac_delim |
| 13759 | ac_no_g722_codec!$ac_no_g722_codec$ac_delim |
| 13760 | ac_no_g7221_codec!$ac_no_g7221_codec$ac_delim |
| 13761 | ac_no_speex_codec!$ac_no_speex_codec$ac_delim |
| 13762 | ac_no_ilbc_codec!$ac_no_ilbc_codec$ac_delim |
| 13763 | _ACEOF |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 13764 | |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 13765 | if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 13766 | break |
| 13767 | elif $ac_last_try; then |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 13768 | { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |
| 13769 | echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} |
| 13770 | { (exit 1); exit 1; }; } |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 13771 | else |
| 13772 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 13773 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 13774 | done |
| 13775 | |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 13776 | ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` |
| 13777 | if test -n "$ac_eof"; then |
| 13778 | ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` |
| 13779 | ac_eof=`expr $ac_eof + 1` |
| 13780 | fi |
| 13781 | |
| 13782 | cat >>$CONFIG_STATUS <<_ACEOF |
| 13783 | cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof |
| 13784 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 13785 | _ACEOF |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 13786 | sed ' |
| 13787 | s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g |
| 13788 | s/^/s,@/; s/!/@,|#_!!_#|/ |
| 13789 | :n |
| 13790 | t n |
| 13791 | s/'"$ac_delim"'$/,g/; t |
| 13792 | s/$/\\/; p |
| 13793 | N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n |
| 13794 | ' >>$CONFIG_STATUS <conf$$subs.sed |
| 13795 | rm -f conf$$subs.sed |
| 13796 | cat >>$CONFIG_STATUS <<_ACEOF |
| 13797 | CEOF$ac_eof |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 13798 | _ACEOF |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 13799 | |
| 13800 | |
| 13801 | ac_delim='%!_!# ' |
| 13802 | for ac_last_try in false false false false false :; do |
| 13803 | cat >conf$$subs.sed <<_ACEOF |
| 13804 | ac_sdl_cflags!$ac_sdl_cflags$ac_delim |
| 13805 | ac_sdl_ldflags!$ac_sdl_ldflags$ac_delim |
| 13806 | ac_has_ffmpeg!$ac_has_ffmpeg$ac_delim |
| 13807 | ac_ffmpeg_cflags!$ac_ffmpeg_cflags$ac_delim |
| 13808 | ac_ffmpeg_ldflags!$ac_ffmpeg_ldflags$ac_delim |
| 13809 | ac_v4l2_cflags!$ac_v4l2_cflags$ac_delim |
| 13810 | ac_v4l2_ldflags!$ac_v4l2_ldflags$ac_delim |
| 13811 | ac_no_ssl!$ac_no_ssl$ac_delim |
| 13812 | openssl_h_present!$openssl_h_present$ac_delim |
| 13813 | libssl_present!$libssl_present$ac_delim |
| 13814 | libcrypto_present!$libcrypto_present$ac_delim |
| 13815 | ac_cross_compile!$ac_cross_compile$ac_delim |
| 13816 | ac_linux_poll!$ac_linux_poll$ac_delim |
| 13817 | ac_host!$ac_host$ac_delim |
| 13818 | ac_main_obj!$ac_main_obj$ac_delim |
| 13819 | LIBOBJS!$LIBOBJS$ac_delim |
| 13820 | LTLIBOBJS!$LTLIBOBJS$ac_delim |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 13821 | _ACEOF |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 13822 | |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 13823 | if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 17; then |
| 13824 | break |
| 13825 | elif $ac_last_try; then |
| 13826 | { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |
| 13827 | echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} |
| 13828 | { (exit 1); exit 1; }; } |
| 13829 | else |
| 13830 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
| 13831 | fi |
| 13832 | done |
| 13833 | |
| 13834 | ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` |
| 13835 | if test -n "$ac_eof"; then |
| 13836 | ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` |
| 13837 | ac_eof=`expr $ac_eof + 1` |
| 13838 | fi |
| 13839 | |
| 13840 | cat >>$CONFIG_STATUS <<_ACEOF |
| 13841 | cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof |
| 13842 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end |
| 13843 | _ACEOF |
| 13844 | sed ' |
| 13845 | s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g |
| 13846 | s/^/s,@/; s/!/@,|#_!!_#|/ |
| 13847 | :n |
| 13848 | t n |
| 13849 | s/'"$ac_delim"'$/,g/; t |
| 13850 | s/$/\\/; p |
| 13851 | N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n |
| 13852 | ' >>$CONFIG_STATUS <conf$$subs.sed |
| 13853 | rm -f conf$$subs.sed |
| 13854 | cat >>$CONFIG_STATUS <<_ACEOF |
| 13855 | :end |
| 13856 | s/|#_!!_#|//g |
| 13857 | CEOF$ac_eof |
| 13858 | _ACEOF |
| 13859 | |
| 13860 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 13861 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
| 13862 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and |
| 13863 | # trailing colons and then remove the whole line if VPATH becomes empty |
| 13864 | # (actually we leave an empty line to preserve line numbers). |
| 13865 | if test "x$srcdir" = x.; then |
| 13866 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
| 13867 | s/:*\$(srcdir):*/:/ |
| 13868 | s/:*\${srcdir}:*/:/ |
| 13869 | s/:*@srcdir@:*/:/ |
| 13870 | s/^\([^=]*=[ ]*\):*/\1/ |
| 13871 | s/:*$// |
| 13872 | s/^[^=]*=[ ]*$// |
| 13873 | }' |
| 13874 | fi |
| 13875 | |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 13876 | cat >>$CONFIG_STATUS <<\_ACEOF |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 13877 | fi # test -n "$CONFIG_FILES" |
| 13878 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 13879 | |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 13880 | for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 13881 | do |
| 13882 | case $ac_tag in |
| 13883 | :[FHLC]) ac_mode=$ac_tag; continue;; |
| 13884 | esac |
| 13885 | case $ac_mode$ac_tag in |
| 13886 | :[FHL]*:*);; |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 13887 | :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5 |
| 13888 | echo "$as_me: error: Invalid tag $ac_tag." >&2;} |
| 13889 | { (exit 1); exit 1; }; };; |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 13890 | :[FH]-) ac_tag=-:-;; |
| 13891 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; |
| 13892 | esac |
| 13893 | ac_save_IFS=$IFS |
| 13894 | IFS=: |
| 13895 | set x $ac_tag |
| 13896 | IFS=$ac_save_IFS |
| 13897 | shift |
| 13898 | ac_file=$1 |
| 13899 | shift |
| 13900 | |
| 13901 | case $ac_mode in |
| 13902 | :L) ac_source=$1;; |
| 13903 | :[FH]) |
| 13904 | ac_file_inputs= |
| 13905 | for ac_f |
| 13906 | do |
| 13907 | case $ac_f in |
| 13908 | -) ac_f="$tmp/stdin";; |
| 13909 | *) # Look for the file first in the build tree, then in the source tree |
| 13910 | # (if the path is not absolute). The absolute path cannot be DOS-style, |
| 13911 | # because $ac_f cannot contain `:'. |
| 13912 | test -f "$ac_f" || |
| 13913 | case $ac_f in |
| 13914 | [\\/$]*) false;; |
| 13915 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; |
| 13916 | esac || |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 13917 | { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 |
| 13918 | echo "$as_me: error: cannot find input file: $ac_f" >&2;} |
| 13919 | { (exit 1); exit 1; }; };; |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 13920 | esac |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 13921 | ac_file_inputs="$ac_file_inputs $ac_f" |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 13922 | done |
| 13923 | |
| 13924 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
| 13925 | # use $as_me), people would be surprised to read: |
| 13926 | # /* config.h. Generated by config.status. */ |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 13927 | configure_input="Generated from "`IFS=: |
| 13928 | echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure." |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 13929 | if test x"$ac_file" != x-; then |
| 13930 | configure_input="$ac_file. $configure_input" |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 13931 | { echo "$as_me:$LINENO: creating $ac_file" >&5 |
| 13932 | echo "$as_me: creating $ac_file" >&6;} |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 13933 | fi |
| 13934 | |
| 13935 | case $ac_tag in |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 13936 | *:-:* | *:-) cat >"$tmp/stdin";; |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 13937 | esac |
| 13938 | ;; |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 13939 | esac |
| 13940 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 13941 | ac_dir=`$as_dirname -- "$ac_file" || |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 13942 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 13943 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 13944 | X"$ac_file" : 'X\(//\)$' \| \ |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 13945 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 13946 | echo X"$ac_file" | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 13947 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 13948 | s//\1/ |
| 13949 | q |
| 13950 | } |
| 13951 | /^X\(\/\/\)[^/].*/{ |
| 13952 | s//\1/ |
| 13953 | q |
| 13954 | } |
| 13955 | /^X\(\/\/\)$/{ |
| 13956 | s//\1/ |
| 13957 | q |
| 13958 | } |
| 13959 | /^X\(\/\).*/{ |
| 13960 | s//\1/ |
| 13961 | q |
| 13962 | } |
| 13963 | s/.*/./; q'` |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 13964 | { as_dir="$ac_dir" |
| 13965 | case $as_dir in #( |
| 13966 | -*) as_dir=./$as_dir;; |
| 13967 | esac |
| 13968 | test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { |
| 13969 | as_dirs= |
| 13970 | while :; do |
| 13971 | case $as_dir in #( |
| 13972 | *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( |
| 13973 | *) as_qdir=$as_dir;; |
| 13974 | esac |
| 13975 | as_dirs="'$as_qdir' $as_dirs" |
| 13976 | as_dir=`$as_dirname -- "$as_dir" || |
| 13977 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 13978 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 13979 | X"$as_dir" : 'X\(//\)$' \| \ |
| 13980 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
| 13981 | echo X"$as_dir" | |
| 13982 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 13983 | s//\1/ |
| 13984 | q |
| 13985 | } |
| 13986 | /^X\(\/\/\)[^/].*/{ |
| 13987 | s//\1/ |
| 13988 | q |
| 13989 | } |
| 13990 | /^X\(\/\/\)$/{ |
| 13991 | s//\1/ |
| 13992 | q |
| 13993 | } |
| 13994 | /^X\(\/\).*/{ |
| 13995 | s//\1/ |
| 13996 | q |
| 13997 | } |
| 13998 | s/.*/./; q'` |
| 13999 | test -d "$as_dir" && break |
| 14000 | done |
| 14001 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
| 14002 | } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 |
| 14003 | echo "$as_me: error: cannot create directory $as_dir" >&2;} |
| 14004 | { (exit 1); exit 1; }; }; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 14005 | ac_builddir=. |
| 14006 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 14007 | case "$ac_dir" in |
| 14008 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 14009 | *) |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 14010 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 14011 | # A ".." for each directory in $ac_dir_suffix. |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 14012 | ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 14013 | case $ac_top_builddir_sub in |
| 14014 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 14015 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 14016 | esac ;; |
| 14017 | esac |
| 14018 | ac_abs_top_builddir=$ac_pwd |
| 14019 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 14020 | # for backward compatibility: |
| 14021 | ac_top_builddir=$ac_top_build_prefix |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 14022 | |
| 14023 | case $srcdir in |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 14024 | .) # We are building in place. |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 14025 | ac_srcdir=. |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 14026 | ac_top_srcdir=$ac_top_builddir_sub |
| 14027 | ac_abs_top_srcdir=$ac_pwd ;; |
| 14028 | [\\/]* | ?:[\\/]* ) # Absolute name. |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 14029 | ac_srcdir=$srcdir$ac_dir_suffix; |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 14030 | ac_top_srcdir=$srcdir |
| 14031 | ac_abs_top_srcdir=$srcdir ;; |
| 14032 | *) # Relative name. |
| 14033 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 14034 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 14035 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 14036 | esac |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 14037 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
Benny Prijono | 9489e7a | 2008-09-19 22:18:50 +0000 | [diff] [blame] | 14038 | |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 14039 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 14040 | case $ac_mode in |
| 14041 | :F) |
| 14042 | # |
| 14043 | # CONFIG_FILE |
| 14044 | # |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 14045 | |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 14046 | _ACEOF |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 14047 | |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 14048 | cat >>$CONFIG_STATUS <<\_ACEOF |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 14049 | # If the template does not know about datarootdir, expand it. |
| 14050 | # FIXME: This hack should be removed a few years after 2.60. |
| 14051 | ac_datarootdir_hack=; ac_datarootdir_seen= |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 14052 | |
| 14053 | case `sed -n '/datarootdir/ { |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 14054 | p |
| 14055 | q |
| 14056 | } |
| 14057 | /@datadir@/p |
| 14058 | /@docdir@/p |
| 14059 | /@infodir@/p |
| 14060 | /@localedir@/p |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 14061 | /@mandir@/p |
| 14062 | ' $ac_file_inputs` in |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 14063 | *datarootdir*) ac_datarootdir_seen=yes;; |
| 14064 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 14065 | { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 |
| 14066 | echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 14067 | _ACEOF |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 14068 | cat >>$CONFIG_STATUS <<_ACEOF |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 14069 | ac_datarootdir_hack=' |
| 14070 | s&@datadir@&$datadir&g |
| 14071 | s&@docdir@&$docdir&g |
| 14072 | s&@infodir@&$infodir&g |
| 14073 | s&@localedir@&$localedir&g |
| 14074 | s&@mandir@&$mandir&g |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 14075 | s&\\\${datarootdir}&$datarootdir&g' ;; |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 14076 | esac |
| 14077 | _ACEOF |
| 14078 | |
| 14079 | # Neutralize VPATH when `$srcdir' = `.'. |
| 14080 | # Shell code in configure.ac might set extrasub. |
| 14081 | # FIXME: do we really want to maintain this feature? |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 14082 | cat >>$CONFIG_STATUS <<_ACEOF |
| 14083 | sed "$ac_vpsub |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 14084 | $extrasub |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 14085 | _ACEOF |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 14086 | cat >>$CONFIG_STATUS <<\_ACEOF |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 14087 | :t |
| 14088 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 14089 | s&@configure_input@&$configure_input&;t t |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 14090 | s&@top_builddir@&$ac_top_builddir_sub&;t t |
| 14091 | s&@srcdir@&$ac_srcdir&;t t |
| 14092 | s&@abs_srcdir@&$ac_abs_srcdir&;t t |
| 14093 | s&@top_srcdir@&$ac_top_srcdir&;t t |
| 14094 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t |
| 14095 | s&@builddir@&$ac_builddir&;t t |
| 14096 | s&@abs_builddir@&$ac_abs_builddir&;t t |
| 14097 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t |
| 14098 | $ac_datarootdir_hack |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 14099 | " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 14100 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 14101 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && |
| 14102 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && |
| 14103 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 14104 | { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 14105 | which seems to be undefined. Please make sure it is defined." >&5 |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 14106 | echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 14107 | which seems to be undefined. Please make sure it is defined." >&2;} |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 14108 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 14109 | rm -f "$tmp/stdin" |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 14110 | case $ac_file in |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 14111 | -) cat "$tmp/out"; rm -f "$tmp/out";; |
| 14112 | *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;; |
| 14113 | esac |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 14114 | ;; |
| 14115 | :H) |
| 14116 | # |
| 14117 | # CONFIG_HEADER |
| 14118 | # |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 14119 | _ACEOF |
| 14120 | |
| 14121 | # Transform confdefs.h into a sed script `conftest.defines', that |
| 14122 | # substitutes the proper values into config.h.in to produce config.h. |
| 14123 | rm -f conftest.defines conftest.tail |
| 14124 | # First, append a space to every undef/define line, to ease matching. |
| 14125 | echo 's/$/ /' >conftest.defines |
| 14126 | # Then, protect against being on the right side of a sed subst, or in |
| 14127 | # an unquoted here document, in config.status. If some macros were |
| 14128 | # called several times there might be several #defines for the same |
| 14129 | # symbol, which is useless. But do not sort them, since the last |
| 14130 | # AC_DEFINE must be honored. |
| 14131 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* |
| 14132 | # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where |
| 14133 | # NAME is the cpp macro being defined, VALUE is the value it is being given. |
| 14134 | # PARAMS is the parameter list in the macro definition--in most cases, it's |
| 14135 | # just an empty string. |
| 14136 | ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*' |
| 14137 | ac_dB='\\)[ (].*,\\1define\\2' |
| 14138 | ac_dC=' ' |
| 14139 | ac_dD=' ,' |
| 14140 | |
| 14141 | uniq confdefs.h | |
| 14142 | sed -n ' |
| 14143 | t rset |
| 14144 | :rset |
| 14145 | s/^[ ]*#[ ]*define[ ][ ]*// |
| 14146 | t ok |
| 14147 | d |
| 14148 | :ok |
| 14149 | s/[\\&,]/\\&/g |
| 14150 | s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p |
| 14151 | s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p |
| 14152 | ' >>conftest.defines |
| 14153 | |
| 14154 | # Remove the space that was appended to ease matching. |
| 14155 | # Then replace #undef with comments. This is necessary, for |
| 14156 | # example, in the case of _POSIX_SOURCE, which is predefined and required |
| 14157 | # on some systems where configure will not decide to define it. |
| 14158 | # (The regexp can be short, since the line contains either #define or #undef.) |
| 14159 | echo 's/ $// |
| 14160 | s,^[ #]*u.*,/* & */,' >>conftest.defines |
| 14161 | |
| 14162 | # Break up conftest.defines: |
| 14163 | ac_max_sed_lines=50 |
| 14164 | |
| 14165 | # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1" |
| 14166 | # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2" |
| 14167 | # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1" |
| 14168 | # et cetera. |
| 14169 | ac_in='$ac_file_inputs' |
| 14170 | ac_out='"$tmp/out1"' |
| 14171 | ac_nxt='"$tmp/out2"' |
| 14172 | |
| 14173 | while : |
| 14174 | do |
| 14175 | # Write a here document: |
| 14176 | cat >>$CONFIG_STATUS <<_ACEOF |
| 14177 | # First, check the format of the line: |
| 14178 | cat >"\$tmp/defines.sed" <<\\CEOF |
| 14179 | /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def |
| 14180 | /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def |
| 14181 | b |
| 14182 | :def |
| 14183 | _ACEOF |
| 14184 | sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS |
| 14185 | echo 'CEOF |
| 14186 | sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS |
| 14187 | ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in |
| 14188 | sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail |
| 14189 | grep . conftest.tail >/dev/null || break |
| 14190 | rm -f conftest.defines |
| 14191 | mv conftest.tail conftest.defines |
| 14192 | done |
| 14193 | rm -f conftest.defines conftest.tail |
| 14194 | |
| 14195 | echo "ac_result=$ac_in" >>$CONFIG_STATUS |
| 14196 | cat >>$CONFIG_STATUS <<\_ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 14197 | if test x"$ac_file" != x-; then |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 14198 | echo "/* $configure_input */" >"$tmp/config.h" |
| 14199 | cat "$ac_result" >>"$tmp/config.h" |
| 14200 | if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then |
| 14201 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 |
| 14202 | echo "$as_me: $ac_file is unchanged" >&6;} |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 14203 | else |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 14204 | rm -f $ac_file |
| 14205 | mv "$tmp/config.h" $ac_file |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 14206 | fi |
| 14207 | else |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 14208 | echo "/* $configure_input */" |
| 14209 | cat "$ac_result" |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 14210 | fi |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 14211 | rm -f "$tmp/out12" |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 14212 | ;; |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 14213 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 14214 | |
| 14215 | esac |
| 14216 | |
| 14217 | done # for ac_tag |
| 14218 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 14219 | |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 14220 | { (exit 0); exit 0; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 14221 | _ACEOF |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 14222 | chmod +x $CONFIG_STATUS |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 14223 | ac_clean_files=$ac_clean_files_save |
| 14224 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 14225 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 14226 | # configure is writing to config.log, and then calls config.status. |
| 14227 | # config.status does its own redirection, appending to config.log. |
| 14228 | # Unfortunately, on DOS this fails, as config.log is still kept open |
| 14229 | # by configure, so config.status won't be able to write to it; its |
| 14230 | # output is simply discarded. So we exec the FD to /dev/null, |
| 14231 | # effectively closing config.log, so it can be properly (re)opened and |
| 14232 | # appended to by config.status. When coming back to configure, we |
| 14233 | # need to make the FD available again. |
| 14234 | if test "$no_create" != yes; then |
| 14235 | ac_cs_success=: |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 14236 | ac_config_status_args= |
| 14237 | test "$silent" = yes && |
| 14238 | ac_config_status_args="$ac_config_status_args --quiet" |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 14239 | exec 5>/dev/null |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 14240 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 14241 | exec 5>>config.log |
| 14242 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
| 14243 | # would make configure fail if this is the last instruction. |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 14244 | $ac_cs_success || { (exit 1); exit 1; } |
Benny Prijono | d523370 | 2010-01-13 13:09:45 +0000 | [diff] [blame] | 14245 | fi |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 14246 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 14247 | |
Benny Prijono | d962784 | 2007-04-18 09:24:31 +0000 | [diff] [blame] | 14248 | |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 14249 | { echo "$as_me:$LINENO: result: |
Benny Prijono | d962784 | 2007-04-18 09:24:31 +0000 | [diff] [blame] | 14250 | |
Benny Prijono | c16c6e3 | 2007-11-18 14:53:47 +0000 | [diff] [blame] | 14251 | 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] | 14252 | |
Benny Prijono | c16c6e3 | 2007-11-18 14:53:47 +0000 | [diff] [blame] | 14253 | Further customizations can be put in: |
Benny Prijono | d962784 | 2007-04-18 09:24:31 +0000 | [diff] [blame] | 14254 | - 'user.mak' |
| 14255 | - 'pjlib/include/pj/config_site.h' |
| 14256 | |
| 14257 | The next step now is to run 'make dep' and 'make'. |
| 14258 | " >&5 |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 14259 | echo "${ECHO_T} |
Benny Prijono | d962784 | 2007-04-18 09:24:31 +0000 | [diff] [blame] | 14260 | |
Benny Prijono | c16c6e3 | 2007-11-18 14:53:47 +0000 | [diff] [blame] | 14261 | 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] | 14262 | |
Benny Prijono | c16c6e3 | 2007-11-18 14:53:47 +0000 | [diff] [blame] | 14263 | Further customizations can be put in: |
Benny Prijono | d962784 | 2007-04-18 09:24:31 +0000 | [diff] [blame] | 14264 | - 'user.mak' |
| 14265 | - 'pjlib/include/pj/config_site.h' |
| 14266 | |
| 14267 | The next step now is to run 'make dep' and 'make'. |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 14268 | " >&6; } |
Benny Prijono | d962784 | 2007-04-18 09:24:31 +0000 | [diff] [blame] | 14269 | |