Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1 | #! /bin/sh |
| 2 | # Guess values for system-dependent variables and create Makefiles. |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 3 | # Generated by GNU Autoconf 2.59 for pjproject 1.0. |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 4 | # |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 5 | # Copyright (C) 2003 Free Software Foundation, Inc. |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6 | # This configure script is free software; the Free Software Foundation |
| 7 | # gives unlimited permission to copy, distribute and modify it. |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8 | ## --------------------- ## |
| 9 | ## M4sh Initialization. ## |
| 10 | ## --------------------- ## |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11 | |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 12 | # Be Bourne compatible |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 13 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
| 14 | emulate sh |
| 15 | NULLCMD=: |
| 16 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
| 17 | # is contrary to our usage. Disable this feature. |
| 18 | alias -g '${1+"$@"}'='"$@"' |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 19 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then |
| 20 | set -o posix |
| 21 | fi |
| 22 | DUALCASE=1; export DUALCASE # for MKS sh |
Benny Prijono | 9489e7a | 2008-09-19 22:18:50 +0000 | [diff] [blame] | 23 | |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 24 | # Support unset when possible. |
| 25 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
| 26 | as_unset=unset |
| 27 | else |
| 28 | as_unset=false |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 29 | fi |
| 30 | |
| 31 | |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 32 | # Work around bugs in pre-3.0 UWIN ksh. |
| 33 | $as_unset ENV MAIL MAILPATH |
| 34 | PS1='$ ' |
| 35 | PS2='> ' |
| 36 | PS4='+ ' |
| 37 | |
| 38 | # NLS nuisances. |
| 39 | for as_var in \ |
| 40 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
| 41 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
| 42 | LC_TELEPHONE LC_TIME |
| 43 | do |
| 44 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
| 45 | eval $as_var=C; export $as_var |
| 46 | else |
| 47 | $as_unset $as_var |
| 48 | fi |
| 49 | done |
| 50 | |
| 51 | # Required to use basename. |
| 52 | if expr a : '\(a\)' >/dev/null 2>&1; then |
| 53 | as_expr=expr |
| 54 | else |
| 55 | as_expr=false |
| 56 | fi |
| 57 | |
| 58 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then |
| 59 | as_basename=basename |
| 60 | else |
| 61 | as_basename=false |
| 62 | fi |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 63 | |
| 64 | |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 65 | # Name of the executable. |
| 66 | as_me=`$as_basename "$0" || |
| 67 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 68 | X"$0" : 'X\(//\)$' \| \ |
| 69 | X"$0" : 'X\(/\)$' \| \ |
| 70 | . : '\(.\)' 2>/dev/null || |
| 71 | echo X/"$0" | |
| 72 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } |
| 73 | /^X\/\(\/\/\)$/{ s//\1/; q; } |
| 74 | /^X\/\(\/\).*/{ s//\1/; q; } |
| 75 | s/.*/./; q'` |
| 76 | |
| 77 | |
| 78 | # PATH needs CR, and LINENO needs CR and PATH. |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 79 | # Avoid depending upon Character Ranges. |
| 80 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 81 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 82 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 83 | as_cr_digits='0123456789' |
| 84 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
| 85 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 86 | # The user is always right. |
| 87 | if test "${PATH_SEPARATOR+set}" != set; then |
| 88 | echo "#! /bin/sh" >conf$$.sh |
| 89 | echo "exit 0" >>conf$$.sh |
| 90 | chmod +x conf$$.sh |
| 91 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
| 92 | PATH_SEPARATOR=';' |
| 93 | else |
| 94 | PATH_SEPARATOR=: |
| 95 | fi |
| 96 | rm -f conf$$.sh |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 97 | fi |
| 98 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 99 | |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 100 | as_lineno_1=$LINENO |
| 101 | as_lineno_2=$LINENO |
| 102 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
| 103 | test "x$as_lineno_1" != "x$as_lineno_2" && |
| 104 | test "x$as_lineno_3" = "x$as_lineno_2" || { |
| 105 | # Find who we are. Look in the path if we contain no path at all |
| 106 | # relative or not. |
| 107 | case $0 in |
| 108 | *[\\/]* ) as_myself=$0 ;; |
| 109 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 110 | for as_dir in $PATH |
| 111 | do |
| 112 | IFS=$as_save_IFS |
| 113 | test -z "$as_dir" && as_dir=. |
| 114 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 115 | done |
| 116 | |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 117 | ;; |
| 118 | esac |
| 119 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 120 | # in which case we are not to be found in the path. |
| 121 | if test "x$as_myself" = x; then |
| 122 | as_myself=$0 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 123 | fi |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 124 | if test ! -f "$as_myself"; then |
| 125 | { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2 |
| 126 | { (exit 1); exit 1; }; } |
| 127 | fi |
| 128 | case $CONFIG_SHELL in |
| 129 | '') |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 130 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 131 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
| 132 | do |
| 133 | IFS=$as_save_IFS |
| 134 | test -z "$as_dir" && as_dir=. |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 135 | for as_base in sh bash ksh sh5; do |
| 136 | case $as_dir in |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 137 | /*) |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 138 | if ("$as_dir/$as_base" -c ' |
| 139 | as_lineno_1=$LINENO |
| 140 | as_lineno_2=$LINENO |
| 141 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
| 142 | test "x$as_lineno_1" != "x$as_lineno_2" && |
| 143 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then |
| 144 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } |
| 145 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } |
| 146 | CONFIG_SHELL=$as_dir/$as_base |
| 147 | export CONFIG_SHELL |
| 148 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} |
| 149 | fi;; |
| 150 | esac |
| 151 | done |
Benny Prijono | 9489e7a | 2008-09-19 22:18:50 +0000 | [diff] [blame] | 152 | done |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 153 | ;; |
| 154 | esac |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 155 | |
| 156 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
| 157 | # uniformly replaced by the line number. The first 'sed' inserts a |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 158 | # line-number line before each line; the second 'sed' does the real |
| 159 | # work. The second script uses 'N' to pair each line-number line |
| 160 | # with the numbered line, and appends trailing '-' during |
| 161 | # substitution so that $LINENO is not a special case at line end. |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 162 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 163 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) |
| 164 | sed '=' <$as_myself | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 165 | sed ' |
| 166 | N |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 167 | s,$,-, |
| 168 | : loop |
| 169 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 170 | t loop |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 171 | s,-$,, |
| 172 | s,^['$as_cr_digits']*\n,, |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 173 | ' >$as_me.lineno && |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 174 | chmod +x $as_me.lineno || |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 175 | { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 |
| 176 | { (exit 1); exit 1; }; } |
| 177 | |
| 178 | # Don't try to exec as it changes $[0], causing all sort of problems |
| 179 | # (the dirname of $[0] is not the place where we might find the |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 180 | # original and so on. Autoconf is especially sensible to this). |
| 181 | . ./$as_me.lineno |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 182 | # Exit status is that of the last command. |
| 183 | exit |
| 184 | } |
| 185 | |
| 186 | |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 187 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in |
| 188 | *c*,-n*) ECHO_N= ECHO_C=' |
| 189 | ' ECHO_T=' ' ;; |
| 190 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; |
| 191 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 192 | esac |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 193 | |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 194 | if expr a : '\(a\)' >/dev/null 2>&1; then |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 195 | as_expr=expr |
| 196 | else |
| 197 | as_expr=false |
| 198 | fi |
| 199 | |
| 200 | rm -f conf$$ conf$$.exe conf$$.file |
| 201 | echo >conf$$.file |
| 202 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 203 | # We could just check for DJGPP; but this test a) works b) is more generic |
| 204 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). |
| 205 | if test -f conf$$.exe; then |
| 206 | # Don't use ln at all; we don't have any links |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 207 | as_ln_s='cp -p' |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 208 | else |
| 209 | as_ln_s='ln -s' |
| 210 | fi |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 211 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 212 | as_ln_s=ln |
| 213 | else |
| 214 | as_ln_s='cp -p' |
| 215 | fi |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 216 | rm -f conf$$ conf$$.exe conf$$.file |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 217 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 218 | if mkdir -p . 2>/dev/null; then |
| 219 | as_mkdir_p=: |
Benny Prijono | 39ae2da | 2006-10-13 17:57:42 +0000 | [diff] [blame] | 220 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 221 | test -d ./-p && rmdir ./-p |
| 222 | as_mkdir_p=false |
Benny Prijono | 39ae2da | 2006-10-13 17:57:42 +0000 | [diff] [blame] | 223 | fi |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 224 | |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 225 | as_executable_p="test -f" |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 226 | |
| 227 | # Sed expression to map a string onto a valid CPP name. |
| 228 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
| 229 | |
| 230 | # Sed expression to map a string onto a valid variable name. |
| 231 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
| 232 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 233 | |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 234 | # IFS |
| 235 | # We need space, tab and new line, in precisely that order. |
| 236 | as_nl=' |
| 237 | ' |
| 238 | IFS=" $as_nl" |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 239 | |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 240 | # CDPATH. |
| 241 | $as_unset CDPATH |
| 242 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 243 | |
| 244 | # Name of the host. |
| 245 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, |
| 246 | # so uname gets run too. |
| 247 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` |
| 248 | |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 249 | exec 6>&1 |
| 250 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 251 | # |
| 252 | # Initializations. |
| 253 | # |
| 254 | ac_default_prefix=/usr/local |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 255 | ac_config_libobj_dir=. |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 256 | cross_compiling=no |
| 257 | subdirs= |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 258 | MFLAGS= |
| 259 | MAKEFLAGS= |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 260 | SHELL=${CONFIG_SHELL-/bin/sh} |
| 261 | |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 262 | # Maximum number of lines to put in a shell here document. |
| 263 | # This variable seems obsolete. It should probably be removed, and |
| 264 | # only ac_max_sed_lines should be used. |
| 265 | : ${ac_max_here_lines=38} |
| 266 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 267 | # Identity of this package. |
| 268 | PACKAGE_NAME='pjproject' |
| 269 | PACKAGE_TARNAME='pjproject' |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 270 | PACKAGE_VERSION='1.0' |
| 271 | PACKAGE_STRING='pjproject 1.0' |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 272 | PACKAGE_BUGREPORT='' |
| 273 | |
| 274 | # Factoring default headers for most tests. |
| 275 | ac_includes_default="\ |
| 276 | #include <stdio.h> |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 277 | #if HAVE_SYS_TYPES_H |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 278 | # include <sys/types.h> |
| 279 | #endif |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 280 | #if HAVE_SYS_STAT_H |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 281 | # include <sys/stat.h> |
| 282 | #endif |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 283 | #if STDC_HEADERS |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 284 | # include <stdlib.h> |
| 285 | # include <stddef.h> |
| 286 | #else |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 287 | # if HAVE_STDLIB_H |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 288 | # include <stdlib.h> |
| 289 | # endif |
| 290 | #endif |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 291 | #if HAVE_STRING_H |
| 292 | # if !STDC_HEADERS && HAVE_MEMORY_H |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 293 | # include <memory.h> |
| 294 | # endif |
| 295 | # include <string.h> |
| 296 | #endif |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 297 | #if HAVE_STRINGS_H |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 298 | # include <strings.h> |
| 299 | #endif |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 300 | #if HAVE_INTTYPES_H |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 301 | # include <inttypes.h> |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 302 | #else |
| 303 | # if HAVE_STDINT_H |
| 304 | # include <stdint.h> |
| 305 | # endif |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 306 | #endif |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 307 | #if HAVE_UNISTD_H |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 308 | # include <unistd.h> |
| 309 | #endif" |
| 310 | |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 311 | ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CXX CXXFLAGS ac_ct_CXX ac_pjdir ac_build_mak_vars CPP EGREP ac_os_objs ac_pjmedia_snd ac_pa_cflags ac_pa_use_alsa ac_pa_use_oss ac_no_small_filter ac_no_large_filter ac_no_speex_aec ac_no_g711_codec ac_no_l16_codec ac_no_gsm_codec ac_no_g722_codec ac_no_speex_codec ac_no_ilbc_codec ac_no_ssl openssl_h_present libssl_present libcrypto_present ac_cross_compile ac_linux_poll ac_host ac_main_obj LIBOBJS LTLIBOBJS' |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 312 | ac_subst_files='' |
| 313 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 314 | # Initialize some variables set by options. |
| 315 | ac_init_help= |
| 316 | ac_init_version=false |
| 317 | # The variables have the same names as the options, with |
| 318 | # dashes changed to underlines. |
| 319 | cache_file=/dev/null |
| 320 | exec_prefix=NONE |
| 321 | no_create= |
| 322 | no_recursion= |
| 323 | prefix=NONE |
| 324 | program_prefix=NONE |
| 325 | program_suffix=NONE |
| 326 | program_transform_name=s,x,x, |
| 327 | silent= |
| 328 | site= |
| 329 | srcdir= |
| 330 | verbose= |
| 331 | x_includes=NONE |
| 332 | x_libraries=NONE |
| 333 | |
| 334 | # Installation directory options. |
| 335 | # These are left unexpanded so users can "make install exec_prefix=/foo" |
| 336 | # and all the variables that are supposed to be based on exec_prefix |
| 337 | # by default will actually change. |
| 338 | # Use braces instead of parens because sh, perl, etc. also accept them. |
| 339 | bindir='${exec_prefix}/bin' |
| 340 | sbindir='${exec_prefix}/sbin' |
| 341 | libexecdir='${exec_prefix}/libexec' |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 342 | datadir='${prefix}/share' |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 343 | sysconfdir='${prefix}/etc' |
| 344 | sharedstatedir='${prefix}/com' |
| 345 | localstatedir='${prefix}/var' |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 346 | libdir='${exec_prefix}/lib' |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 347 | includedir='${prefix}/include' |
| 348 | oldincludedir='/usr/include' |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 349 | infodir='${prefix}/info' |
| 350 | mandir='${prefix}/man' |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 351 | |
| 352 | ac_prev= |
| 353 | for ac_option |
| 354 | do |
| 355 | # If the previous option needs an argument, assign it. |
| 356 | if test -n "$ac_prev"; then |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 357 | eval "$ac_prev=\$ac_option" |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 358 | ac_prev= |
| 359 | continue |
| 360 | fi |
| 361 | |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 362 | ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 363 | |
| 364 | # Accept the important Cygnus configure options, so we can diagnose typos. |
| 365 | |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 366 | case $ac_option in |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 367 | |
| 368 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
| 369 | ac_prev=bindir ;; |
| 370 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
| 371 | bindir=$ac_optarg ;; |
| 372 | |
| 373 | -build | --build | --buil | --bui | --bu) |
| 374 | ac_prev=build_alias ;; |
| 375 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
| 376 | build_alias=$ac_optarg ;; |
| 377 | |
| 378 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
| 379 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
| 380 | ac_prev=cache_file ;; |
| 381 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
| 382 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
| 383 | cache_file=$ac_optarg ;; |
| 384 | |
| 385 | --config-cache | -C) |
| 386 | cache_file=config.cache ;; |
| 387 | |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 388 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 389 | ac_prev=datadir ;; |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 390 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ |
| 391 | | --da=*) |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 392 | datadir=$ac_optarg ;; |
| 393 | |
| 394 | -disable-* | --disable-*) |
| 395 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
| 396 | # Reject names that are not valid shell variable names. |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 397 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 398 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
| 399 | { (exit 1); exit 1; }; } |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 400 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` |
| 401 | eval "enable_$ac_feature=no" ;; |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 402 | |
| 403 | -enable-* | --enable-*) |
| 404 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
| 405 | # Reject names that are not valid shell variable names. |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 406 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 407 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
| 408 | { (exit 1); exit 1; }; } |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 409 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` |
| 410 | case $ac_option in |
| 411 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; |
| 412 | *) ac_optarg=yes ;; |
| 413 | esac |
| 414 | eval "enable_$ac_feature='$ac_optarg'" ;; |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 415 | |
| 416 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
| 417 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
| 418 | | --exec | --exe | --ex) |
| 419 | ac_prev=exec_prefix ;; |
| 420 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
| 421 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
| 422 | | --exec=* | --exe=* | --ex=*) |
| 423 | exec_prefix=$ac_optarg ;; |
| 424 | |
| 425 | -gas | --gas | --ga | --g) |
| 426 | # Obsolete; use --with-gas. |
| 427 | with_gas=yes ;; |
| 428 | |
| 429 | -help | --help | --hel | --he | -h) |
| 430 | ac_init_help=long ;; |
| 431 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
| 432 | ac_init_help=recursive ;; |
| 433 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
| 434 | ac_init_help=short ;; |
| 435 | |
| 436 | -host | --host | --hos | --ho) |
| 437 | ac_prev=host_alias ;; |
| 438 | -host=* | --host=* | --hos=* | --ho=*) |
| 439 | host_alias=$ac_optarg ;; |
| 440 | |
| 441 | -includedir | --includedir | --includedi | --included | --include \ |
| 442 | | --includ | --inclu | --incl | --inc) |
| 443 | ac_prev=includedir ;; |
| 444 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
| 445 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
| 446 | includedir=$ac_optarg ;; |
| 447 | |
| 448 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
| 449 | ac_prev=infodir ;; |
| 450 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
| 451 | infodir=$ac_optarg ;; |
| 452 | |
| 453 | -libdir | --libdir | --libdi | --libd) |
| 454 | ac_prev=libdir ;; |
| 455 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
| 456 | libdir=$ac_optarg ;; |
| 457 | |
| 458 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
| 459 | | --libexe | --libex | --libe) |
| 460 | ac_prev=libexecdir ;; |
| 461 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
| 462 | | --libexe=* | --libex=* | --libe=*) |
| 463 | libexecdir=$ac_optarg ;; |
| 464 | |
| 465 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 466 | | --localstate | --localstat | --localsta | --localst \ |
| 467 | | --locals | --local | --loca | --loc | --lo) |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 468 | ac_prev=localstatedir ;; |
| 469 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 470 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ |
| 471 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 472 | localstatedir=$ac_optarg ;; |
| 473 | |
| 474 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
| 475 | ac_prev=mandir ;; |
| 476 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
| 477 | mandir=$ac_optarg ;; |
| 478 | |
| 479 | -nfp | --nfp | --nf) |
| 480 | # Obsolete; use --without-fp. |
| 481 | with_fp=no ;; |
| 482 | |
| 483 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 484 | | --no-cr | --no-c | -n) |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 485 | no_create=yes ;; |
| 486 | |
| 487 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
| 488 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
| 489 | no_recursion=yes ;; |
| 490 | |
| 491 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
| 492 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
| 493 | | --oldin | --oldi | --old | --ol | --o) |
| 494 | ac_prev=oldincludedir ;; |
| 495 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
| 496 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
| 497 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
| 498 | oldincludedir=$ac_optarg ;; |
| 499 | |
| 500 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
| 501 | ac_prev=prefix ;; |
| 502 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
| 503 | prefix=$ac_optarg ;; |
| 504 | |
| 505 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
| 506 | | --program-pre | --program-pr | --program-p) |
| 507 | ac_prev=program_prefix ;; |
| 508 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
| 509 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
| 510 | program_prefix=$ac_optarg ;; |
| 511 | |
| 512 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
| 513 | | --program-suf | --program-su | --program-s) |
| 514 | ac_prev=program_suffix ;; |
| 515 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
| 516 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
| 517 | program_suffix=$ac_optarg ;; |
| 518 | |
| 519 | -program-transform-name | --program-transform-name \ |
| 520 | | --program-transform-nam | --program-transform-na \ |
| 521 | | --program-transform-n | --program-transform- \ |
| 522 | | --program-transform | --program-transfor \ |
| 523 | | --program-transfo | --program-transf \ |
| 524 | | --program-trans | --program-tran \ |
| 525 | | --progr-tra | --program-tr | --program-t) |
| 526 | ac_prev=program_transform_name ;; |
| 527 | -program-transform-name=* | --program-transform-name=* \ |
| 528 | | --program-transform-nam=* | --program-transform-na=* \ |
| 529 | | --program-transform-n=* | --program-transform-=* \ |
| 530 | | --program-transform=* | --program-transfor=* \ |
| 531 | | --program-transfo=* | --program-transf=* \ |
| 532 | | --program-trans=* | --program-tran=* \ |
| 533 | | --progr-tra=* | --program-tr=* | --program-t=*) |
| 534 | program_transform_name=$ac_optarg ;; |
| 535 | |
| 536 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 537 | | -silent | --silent | --silen | --sile | --sil) |
| 538 | silent=yes ;; |
| 539 | |
| 540 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
| 541 | ac_prev=sbindir ;; |
| 542 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
| 543 | | --sbi=* | --sb=*) |
| 544 | sbindir=$ac_optarg ;; |
| 545 | |
| 546 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
| 547 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
| 548 | | --sharedst | --shareds | --shared | --share | --shar \ |
| 549 | | --sha | --sh) |
| 550 | ac_prev=sharedstatedir ;; |
| 551 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
| 552 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
| 553 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
| 554 | | --sha=* | --sh=*) |
| 555 | sharedstatedir=$ac_optarg ;; |
| 556 | |
| 557 | -site | --site | --sit) |
| 558 | ac_prev=site ;; |
| 559 | -site=* | --site=* | --sit=*) |
| 560 | site=$ac_optarg ;; |
| 561 | |
| 562 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
| 563 | ac_prev=srcdir ;; |
| 564 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
| 565 | srcdir=$ac_optarg ;; |
| 566 | |
| 567 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
| 568 | | --syscon | --sysco | --sysc | --sys | --sy) |
| 569 | ac_prev=sysconfdir ;; |
| 570 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
| 571 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
| 572 | sysconfdir=$ac_optarg ;; |
| 573 | |
| 574 | -target | --target | --targe | --targ | --tar | --ta | --t) |
| 575 | ac_prev=target_alias ;; |
| 576 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
| 577 | target_alias=$ac_optarg ;; |
| 578 | |
| 579 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
| 580 | verbose=yes ;; |
| 581 | |
| 582 | -version | --version | --versio | --versi | --vers | -V) |
| 583 | ac_init_version=: ;; |
| 584 | |
| 585 | -with-* | --with-*) |
| 586 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
| 587 | # Reject names that are not valid shell variable names. |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 588 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 589 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
| 590 | { (exit 1); exit 1; }; } |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 591 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
| 592 | case $ac_option in |
| 593 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; |
| 594 | *) ac_optarg=yes ;; |
| 595 | esac |
| 596 | eval "with_$ac_package='$ac_optarg'" ;; |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 597 | |
| 598 | -without-* | --without-*) |
| 599 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
| 600 | # Reject names that are not valid shell variable names. |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 601 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 602 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
| 603 | { (exit 1); exit 1; }; } |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 604 | ac_package=`echo $ac_package | sed 's/-/_/g'` |
| 605 | eval "with_$ac_package=no" ;; |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 606 | |
| 607 | --x) |
| 608 | # Obsolete; use --with-x. |
| 609 | with_x=yes ;; |
| 610 | |
| 611 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
| 612 | | --x-incl | --x-inc | --x-in | --x-i) |
| 613 | ac_prev=x_includes ;; |
| 614 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
| 615 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
| 616 | x_includes=$ac_optarg ;; |
| 617 | |
| 618 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
| 619 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
| 620 | ac_prev=x_libraries ;; |
| 621 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
| 622 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
| 623 | x_libraries=$ac_optarg ;; |
| 624 | |
| 625 | -*) { echo "$as_me: error: unrecognized option: $ac_option |
| 626 | Try \`$0 --help' for more information." >&2 |
| 627 | { (exit 1); exit 1; }; } |
| 628 | ;; |
| 629 | |
| 630 | *=*) |
| 631 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
| 632 | # Reject names that are not valid shell variable names. |
| 633 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && |
| 634 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 |
| 635 | { (exit 1); exit 1; }; } |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 636 | ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` |
| 637 | eval "$ac_envvar='$ac_optarg'" |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 638 | export $ac_envvar ;; |
| 639 | |
| 640 | *) |
| 641 | # FIXME: should be removed in autoconf 3.0. |
| 642 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
| 643 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
| 644 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
| 645 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} |
| 646 | ;; |
| 647 | |
| 648 | esac |
| 649 | done |
| 650 | |
| 651 | if test -n "$ac_prev"; then |
| 652 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
| 653 | { echo "$as_me: error: missing argument to $ac_option" >&2 |
| 654 | { (exit 1); exit 1; }; } |
| 655 | fi |
| 656 | |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 657 | # Be sure to have absolute paths. |
| 658 | for ac_var in exec_prefix prefix |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 659 | do |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 660 | eval ac_val=$`echo $ac_var` |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 661 | case $ac_val in |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 662 | [\\/$]* | ?:[\\/]* | NONE | '' ) ;; |
| 663 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
| 664 | { (exit 1); exit 1; }; };; |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 665 | esac |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 666 | done |
| 667 | |
| 668 | # Be sure to have absolute paths. |
| 669 | for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ |
| 670 | localstatedir libdir includedir oldincludedir infodir mandir |
| 671 | do |
| 672 | eval ac_val=$`echo $ac_var` |
| 673 | case $ac_val in |
| 674 | [\\/$]* | ?:[\\/]* ) ;; |
| 675 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
| 676 | { (exit 1); exit 1; }; };; |
| 677 | esac |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 678 | done |
| 679 | |
| 680 | # There might be people who depend on the old broken behavior: `$host' |
| 681 | # used to hold the argument of --host etc. |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 682 | # FIXME: To remove some day. |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 683 | build=$build_alias |
| 684 | host=$host_alias |
| 685 | target=$target_alias |
| 686 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 687 | # FIXME: To remove some day. |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 688 | if test "x$host_alias" != x; then |
| 689 | if test "x$build_alias" = x; then |
| 690 | cross_compiling=maybe |
| 691 | echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. |
| 692 | If a cross compiler is detected then cross compile mode will be used." >&2 |
| 693 | elif test "x$build_alias" != "x$host_alias"; then |
| 694 | cross_compiling=yes |
| 695 | fi |
| 696 | fi |
| 697 | |
| 698 | ac_tool_prefix= |
| 699 | test -n "$host_alias" && ac_tool_prefix=$host_alias- |
| 700 | |
| 701 | test "$silent" = yes && exec 6>/dev/null |
| 702 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 703 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 704 | # Find the source files, if location was not specified. |
| 705 | if test -z "$srcdir"; then |
| 706 | ac_srcdir_defaulted=yes |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 707 | # Try the directory containing this script, then its parent. |
| 708 | ac_confdir=`(dirname "$0") 2>/dev/null || |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 709 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 710 | X"$0" : 'X\(//\)[^/]' \| \ |
| 711 | X"$0" : 'X\(//\)$' \| \ |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 712 | X"$0" : 'X\(/\)' \| \ |
| 713 | . : '\(.\)' 2>/dev/null || |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 714 | echo X"$0" | |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 715 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 716 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 717 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 718 | /^X\(\/\).*/{ s//\1/; q; } |
| 719 | s/.*/./; q'` |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 720 | srcdir=$ac_confdir |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 721 | if test ! -r $srcdir/$ac_unique_file; then |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 722 | srcdir=.. |
| 723 | fi |
| 724 | else |
| 725 | ac_srcdir_defaulted=no |
| 726 | fi |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 727 | if test ! -r $srcdir/$ac_unique_file; then |
| 728 | if test "$ac_srcdir_defaulted" = yes; then |
| 729 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 730 | { (exit 1); exit 1; }; } |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 731 | else |
| 732 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 |
Benny Prijono | 99eec38 | 2008-09-18 21:22:16 +0000 | [diff] [blame] | 733 | { (exit 1); exit 1; }; } |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 734 | fi |
Benny Prijono | 9489e7a | 2008-09-19 22:18:50 +0000 | [diff] [blame] | 735 | fi |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 736 | (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null || |
| 737 | { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2 |
| 738 | { (exit 1); exit 1; }; } |
| 739 | srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` |
| 740 | ac_env_build_alias_set=${build_alias+set} |
| 741 | ac_env_build_alias_value=$build_alias |
| 742 | ac_cv_env_build_alias_set=${build_alias+set} |
| 743 | ac_cv_env_build_alias_value=$build_alias |
| 744 | ac_env_host_alias_set=${host_alias+set} |
| 745 | ac_env_host_alias_value=$host_alias |
| 746 | ac_cv_env_host_alias_set=${host_alias+set} |
| 747 | ac_cv_env_host_alias_value=$host_alias |
| 748 | ac_env_target_alias_set=${target_alias+set} |
| 749 | ac_env_target_alias_value=$target_alias |
| 750 | ac_cv_env_target_alias_set=${target_alias+set} |
| 751 | ac_cv_env_target_alias_value=$target_alias |
| 752 | ac_env_CC_set=${CC+set} |
| 753 | ac_env_CC_value=$CC |
| 754 | ac_cv_env_CC_set=${CC+set} |
| 755 | ac_cv_env_CC_value=$CC |
| 756 | ac_env_CFLAGS_set=${CFLAGS+set} |
| 757 | ac_env_CFLAGS_value=$CFLAGS |
| 758 | ac_cv_env_CFLAGS_set=${CFLAGS+set} |
| 759 | ac_cv_env_CFLAGS_value=$CFLAGS |
| 760 | ac_env_LDFLAGS_set=${LDFLAGS+set} |
| 761 | ac_env_LDFLAGS_value=$LDFLAGS |
| 762 | ac_cv_env_LDFLAGS_set=${LDFLAGS+set} |
| 763 | ac_cv_env_LDFLAGS_value=$LDFLAGS |
| 764 | ac_env_CPPFLAGS_set=${CPPFLAGS+set} |
| 765 | ac_env_CPPFLAGS_value=$CPPFLAGS |
| 766 | ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} |
| 767 | ac_cv_env_CPPFLAGS_value=$CPPFLAGS |
| 768 | ac_env_CXX_set=${CXX+set} |
| 769 | ac_env_CXX_value=$CXX |
| 770 | ac_cv_env_CXX_set=${CXX+set} |
| 771 | ac_cv_env_CXX_value=$CXX |
| 772 | ac_env_CXXFLAGS_set=${CXXFLAGS+set} |
| 773 | ac_env_CXXFLAGS_value=$CXXFLAGS |
| 774 | ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set} |
| 775 | ac_cv_env_CXXFLAGS_value=$CXXFLAGS |
| 776 | ac_env_CPP_set=${CPP+set} |
| 777 | ac_env_CPP_value=$CPP |
| 778 | ac_cv_env_CPP_set=${CPP+set} |
| 779 | ac_cv_env_CPP_value=$CPP |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 780 | |
| 781 | # |
| 782 | # Report the --help message. |
| 783 | # |
| 784 | if test "$ac_init_help" = "long"; then |
| 785 | # Omit some internal or obsolete options to make the list less imposing. |
| 786 | # 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] | 787 | cat <<_ACEOF |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 788 | \`configure' configures pjproject 1.0 to adapt to many kinds of systems. |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 789 | |
| 790 | Usage: $0 [OPTION]... [VAR=VALUE]... |
| 791 | |
| 792 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
| 793 | VAR=VALUE. See below for descriptions of some of the useful variables. |
| 794 | |
| 795 | Defaults for the options are specified in brackets. |
| 796 | |
| 797 | Configuration: |
| 798 | -h, --help display this help and exit |
| 799 | --help=short display options specific to this package |
| 800 | --help=recursive display the short help of all the included packages |
| 801 | -V, --version display version information and exit |
| 802 | -q, --quiet, --silent do not print \`checking...' messages |
| 803 | --cache-file=FILE cache test results in FILE [disabled] |
| 804 | -C, --config-cache alias for \`--cache-file=config.cache' |
| 805 | -n, --no-create do not create output files |
| 806 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] |
| 807 | |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 808 | _ACEOF |
| 809 | |
| 810 | cat <<_ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 811 | Installation directories: |
| 812 | --prefix=PREFIX install architecture-independent files in PREFIX |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 813 | [$ac_default_prefix] |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 814 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 815 | [PREFIX] |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 816 | |
| 817 | By default, \`make install' will install all the files in |
| 818 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
| 819 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
| 820 | for instance \`--prefix=\$HOME'. |
| 821 | |
| 822 | For better control, use the options below. |
| 823 | |
| 824 | Fine tuning of the installation directories: |
| 825 | --bindir=DIR user executables [EPREFIX/bin] |
| 826 | --sbindir=DIR system admin executables [EPREFIX/sbin] |
| 827 | --libexecdir=DIR program executables [EPREFIX/libexec] |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 828 | --datadir=DIR read-only architecture-independent data [PREFIX/share] |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 829 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
| 830 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
| 831 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
| 832 | --libdir=DIR object code libraries [EPREFIX/lib] |
| 833 | --includedir=DIR C header files [PREFIX/include] |
| 834 | --oldincludedir=DIR C header files for non-gcc [/usr/include] |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 835 | --infodir=DIR info documentation [PREFIX/info] |
| 836 | --mandir=DIR man documentation [PREFIX/man] |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 837 | _ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 838 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 839 | cat <<\_ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 840 | |
| 841 | System types: |
| 842 | --build=BUILD configure for building on BUILD [guessed] |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 843 | --host=HOST cross-compile to build programs to run on HOST [BUILD] |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 844 | --target=TARGET configure for building compilers for TARGET [HOST] |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 845 | _ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 846 | fi |
| 847 | |
| 848 | if test -n "$ac_init_help"; then |
| 849 | case $ac_init_help in |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 850 | short | recursive ) echo "Configuration of pjproject 1.0:";; |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 851 | esac |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 852 | cat <<\_ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 853 | |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 854 | Optional Features: |
| 855 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
| 856 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
| 857 | --disable-floating-point |
| 858 | Disable floating point where possible |
Benny Prijono | 9489e7a | 2008-09-19 22:18:50 +0000 | [diff] [blame] | 859 | --enable-epoll Use /dev/epoll ioqueue on Linux (experimental) |
Benny Prijono | 1d97162 | 2006-09-10 22:27:40 +0000 | [diff] [blame] | 860 | --disable-sound Exclude sound (i.e. use null sound) |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 861 | --disable-oss Disable OSS audio (default: not disabled) |
| 862 | |
Benny Prijono | ebb2c33 | 2008-07-28 23:40:58 +0000 | [diff] [blame] | 863 | --enable-ext-sound PJMEDIA will not provide any sound device backend |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 864 | --disable-small-filter Exclude small filter in resampling |
| 865 | --disable-large-filter Exclude large filter in resampling |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 866 | --disable-speex-aec Exclude Speex Acoustic Echo Canceller/AEC |
| 867 | --disable-g711-codec Exclude G.711 codecs from the build |
| 868 | --disable-l16-codec Exclude Linear/L16 codec family from the build |
| 869 | --disable-gsm-codec Exclude GSM codec in the build |
Benny Prijono | 71f657d | 2008-03-17 14:24:21 +0000 | [diff] [blame] | 870 | --disable-g722-codec Exclude G.722 codec in the build |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 871 | --disable-speex-codec Exclude Speex codecs in the build |
| 872 | --disable-ilbc-codec Exclude iLBC codec in the build |
Benny Prijono | 550a1a6 | 2007-10-16 08:54:00 +0000 | [diff] [blame] | 873 | --enable-libsamplerate Link with libsamplerate when available. Note that |
| 874 | PJMEDIA_RESAMPLE_IMP must also be configured |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 875 | --enable-ipp Enable Intel IPP support. Specify the Intel IPP |
| 876 | package and samples location using IPPROOT and |
| 877 | IPPSAMPLES env var or with --with-ipp and |
| 878 | --with-ipp-samples options |
| 879 | --with-ipp=DIR Specify the Intel IPP location |
| 880 | --with-ipp-samples=DIR Specify the Intel IPP samples location |
Benny Prijono | ce1db76 | 2007-02-14 02:21:08 +0000 | [diff] [blame] | 881 | --disable-ssl Exclude SSL support the build (default: autodetect) |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 882 | |
| 883 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 884 | Some influential environment variables: |
| 885 | CC C compiler command |
| 886 | CFLAGS C compiler flags |
| 887 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
| 888 | nonstandard directory <lib dir> |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 889 | CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have |
| 890 | headers in a nonstandard directory <include dir> |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 891 | CXX C++ compiler command |
| 892 | CXXFLAGS C++ compiler flags |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 893 | CPP C preprocessor |
| 894 | |
| 895 | Use these variables to override the choices made by `configure' or to help |
| 896 | it to find libraries and programs with nonstandard names/locations. |
| 897 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 898 | _ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 899 | fi |
| 900 | |
| 901 | if test "$ac_init_help" = "recursive"; then |
| 902 | # If there are subdirs, report their specific --help. |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 903 | ac_popdir=`pwd` |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 904 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 905 | test -d $ac_dir || continue |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 906 | ac_builddir=. |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 907 | |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 908 | if test "$ac_dir" != .; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 909 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 910 | # A "../" for each directory in $ac_dir_suffix. |
| 911 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
| 912 | else |
| 913 | ac_dir_suffix= ac_top_builddir= |
| 914 | fi |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 915 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 916 | case $srcdir in |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 917 | .) # No --srcdir option. We are building in place. |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 918 | ac_srcdir=. |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 919 | if test -z "$ac_top_builddir"; then |
| 920 | ac_top_srcdir=. |
| 921 | else |
| 922 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
| 923 | fi ;; |
| 924 | [\\/]* | ?:[\\/]* ) # Absolute path. |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 925 | ac_srcdir=$srcdir$ac_dir_suffix; |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 926 | ac_top_srcdir=$srcdir ;; |
| 927 | *) # Relative path. |
| 928 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
| 929 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 930 | esac |
| 931 | |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 932 | # Do not use `cd foo && pwd` to compute absolute paths, because |
| 933 | # the directories may not exist. |
| 934 | case `pwd` in |
| 935 | .) ac_abs_builddir="$ac_dir";; |
| 936 | *) |
| 937 | case "$ac_dir" in |
| 938 | .) ac_abs_builddir=`pwd`;; |
| 939 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; |
| 940 | *) ac_abs_builddir=`pwd`/"$ac_dir";; |
| 941 | esac;; |
| 942 | esac |
| 943 | case $ac_abs_builddir in |
| 944 | .) ac_abs_top_builddir=${ac_top_builddir}.;; |
| 945 | *) |
| 946 | case ${ac_top_builddir}. in |
| 947 | .) ac_abs_top_builddir=$ac_abs_builddir;; |
| 948 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; |
| 949 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; |
| 950 | esac;; |
| 951 | esac |
| 952 | case $ac_abs_builddir in |
| 953 | .) ac_abs_srcdir=$ac_srcdir;; |
| 954 | *) |
| 955 | case $ac_srcdir in |
| 956 | .) ac_abs_srcdir=$ac_abs_builddir;; |
| 957 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; |
| 958 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; |
| 959 | esac;; |
| 960 | esac |
| 961 | case $ac_abs_builddir in |
| 962 | .) ac_abs_top_srcdir=$ac_top_srcdir;; |
| 963 | *) |
| 964 | case $ac_top_srcdir in |
| 965 | .) ac_abs_top_srcdir=$ac_abs_builddir;; |
| 966 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; |
| 967 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; |
| 968 | esac;; |
| 969 | esac |
| 970 | |
| 971 | cd $ac_dir |
| 972 | # Check for guested configure; otherwise get Cygnus style configure. |
| 973 | if test -f $ac_srcdir/configure.gnu; then |
| 974 | echo |
| 975 | $SHELL $ac_srcdir/configure.gnu --help=recursive |
| 976 | elif test -f $ac_srcdir/configure; then |
| 977 | echo |
| 978 | $SHELL $ac_srcdir/configure --help=recursive |
| 979 | elif test -f $ac_srcdir/configure.ac || |
| 980 | test -f $ac_srcdir/configure.in; then |
| 981 | echo |
| 982 | $ac_configure --help |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 983 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 984 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 985 | fi |
| 986 | cd $ac_popdir |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 987 | done |
| 988 | fi |
| 989 | |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 990 | test -n "$ac_init_help" && exit 0 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 991 | if $ac_init_version; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 992 | cat <<\_ACEOF |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 993 | pjproject configure 1.0 |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 994 | generated by GNU Autoconf 2.59 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 995 | |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 996 | Copyright (C) 2003 Free Software Foundation, Inc. |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 997 | This configure script is free software; the Free Software Foundation |
| 998 | gives unlimited permission to copy, distribute and modify it. |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 999 | _ACEOF |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 1000 | exit 0 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1001 | fi |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 1002 | exec 5>config.log |
| 1003 | cat >&5 <<_ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1004 | This file contains any messages produced by compilers while |
| 1005 | running configure, to aid debugging if configure makes a mistake. |
| 1006 | |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 1007 | It was created by pjproject $as_me 1.0, which was |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 1008 | generated by GNU Autoconf 2.59. Invocation command line was |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1009 | |
| 1010 | $ $0 $@ |
| 1011 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1012 | _ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1013 | { |
| 1014 | cat <<_ASUNAME |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1015 | ## --------- ## |
| 1016 | ## Platform. ## |
| 1017 | ## --------- ## |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1018 | |
| 1019 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 1020 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
| 1021 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
| 1022 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
| 1023 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
| 1024 | |
| 1025 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
| 1026 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
| 1027 | |
| 1028 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
| 1029 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
| 1030 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 1031 | hostinfo = `(hostinfo) 2>/dev/null || echo unknown` |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1032 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
| 1033 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
| 1034 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
| 1035 | |
| 1036 | _ASUNAME |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1037 | |
| 1038 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1039 | for as_dir in $PATH |
| 1040 | do |
| 1041 | IFS=$as_save_IFS |
| 1042 | test -z "$as_dir" && as_dir=. |
| 1043 | echo "PATH: $as_dir" |
| 1044 | done |
| 1045 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1046 | } >&5 |
| 1047 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1048 | cat >&5 <<_ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1049 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1050 | |
| 1051 | ## ----------- ## |
| 1052 | ## Core tests. ## |
| 1053 | ## ----------- ## |
| 1054 | |
| 1055 | _ACEOF |
| 1056 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1057 | |
| 1058 | # Keep a trace of the command line. |
| 1059 | # 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] | 1060 | # 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] | 1061 | # Also quote any args containing shell meta-characters. |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1062 | # Make two passes to allow for proper duplicate-argument suppression. |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1063 | ac_configure_args= |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1064 | ac_configure_args0= |
| 1065 | ac_configure_args1= |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 1066 | ac_sep= |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1067 | ac_must_keep_next=false |
| 1068 | for ac_pass in 1 2 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1069 | do |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1070 | for ac_arg |
| 1071 | do |
| 1072 | case $ac_arg in |
| 1073 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
| 1074 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 1075 | | -silent | --silent | --silen | --sile | --sil) |
| 1076 | continue ;; |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 1077 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1078 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 1079 | esac |
| 1080 | case $ac_pass in |
| 1081 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; |
| 1082 | 2) |
| 1083 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" |
| 1084 | if test $ac_must_keep_next = true; then |
| 1085 | ac_must_keep_next=false # Got value, back to normal. |
| 1086 | else |
| 1087 | case $ac_arg in |
| 1088 | *=* | --config-cache | -C | -disable-* | --disable-* \ |
| 1089 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
| 1090 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
| 1091 | | -with-* | --with-* | -without-* | --without-* | --x) |
| 1092 | case "$ac_configure_args0 " in |
| 1093 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
| 1094 | esac |
| 1095 | ;; |
| 1096 | -* ) ac_must_keep_next=true ;; |
| 1097 | esac |
| 1098 | fi |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 1099 | ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" |
| 1100 | # Get rid of the leading space. |
| 1101 | ac_sep=" " |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1102 | ;; |
| 1103 | esac |
| 1104 | done |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1105 | done |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1106 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } |
| 1107 | $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] | 1108 | |
| 1109 | # When interrupted or exit'd, cleanup temporary files, and complete |
| 1110 | # config.log. We remove comments because anyway the quotes in there |
| 1111 | # would cause problems or look ugly. |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 1112 | # WARNING: Be sure not to use single quotes in there, as some shells, |
| 1113 | # such as our DU 5.0 friend, will then `close' the trap. |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1114 | trap 'exit_status=$? |
| 1115 | # Save into config.log some information that might help in debugging. |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1116 | { |
| 1117 | echo |
| 1118 | |
| 1119 | cat <<\_ASBOX |
| 1120 | ## ---------------- ## |
| 1121 | ## Cache variables. ## |
| 1122 | ## ---------------- ## |
| 1123 | _ASBOX |
| 1124 | echo |
| 1125 | # The following way of writing the cache mishandles newlines in values, |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 1126 | { |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1127 | (set) 2>&1 | |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 1128 | case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in |
| 1129 | *ac_space=\ *) |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1130 | sed -n \ |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 1131 | "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; |
| 1132 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" |
Benny Prijono | 99eec38 | 2008-09-18 21:22:16 +0000 | [diff] [blame] | 1133 | ;; |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 1134 | *) |
| 1135 | sed -n \ |
| 1136 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
| 1137 | ;; |
| 1138 | esac; |
| 1139 | } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1140 | echo |
| 1141 | |
| 1142 | cat <<\_ASBOX |
| 1143 | ## ----------------- ## |
| 1144 | ## Output variables. ## |
| 1145 | ## ----------------- ## |
| 1146 | _ASBOX |
| 1147 | echo |
| 1148 | for ac_var in $ac_subst_vars |
| 1149 | do |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 1150 | eval ac_val=$`echo $ac_var` |
| 1151 | echo "$ac_var='"'"'$ac_val'"'"'" |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1152 | done | sort |
| 1153 | echo |
| 1154 | |
| 1155 | if test -n "$ac_subst_files"; then |
| 1156 | cat <<\_ASBOX |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 1157 | ## ------------- ## |
| 1158 | ## Output files. ## |
| 1159 | ## ------------- ## |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1160 | _ASBOX |
| 1161 | echo |
| 1162 | for ac_var in $ac_subst_files |
| 1163 | do |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 1164 | eval ac_val=$`echo $ac_var` |
| 1165 | echo "$ac_var='"'"'$ac_val'"'"'" |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1166 | done | sort |
| 1167 | echo |
| 1168 | fi |
| 1169 | |
| 1170 | if test -s confdefs.h; then |
| 1171 | cat <<\_ASBOX |
| 1172 | ## ----------- ## |
| 1173 | ## confdefs.h. ## |
| 1174 | ## ----------- ## |
| 1175 | _ASBOX |
| 1176 | echo |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 1177 | sed "/^$/d" confdefs.h | sort |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1178 | echo |
| 1179 | fi |
| 1180 | test "$ac_signal" != 0 && |
| 1181 | echo "$as_me: caught signal $ac_signal" |
| 1182 | echo "$as_me: exit $exit_status" |
| 1183 | } >&5 |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 1184 | rm -f core *.core && |
| 1185 | rm -rf conftest* confdefs* conf$$* $ac_clean_files && |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1186 | exit $exit_status |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 1187 | ' 0 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1188 | for ac_signal in 1 2 13 15; do |
| 1189 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal |
| 1190 | done |
| 1191 | ac_signal=0 |
| 1192 | |
| 1193 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 1194 | rm -rf conftest* confdefs.h |
| 1195 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. |
| 1196 | echo >confdefs.h |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1197 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1198 | # Predefined preprocessor variables. |
| 1199 | |
| 1200 | cat >>confdefs.h <<_ACEOF |
| 1201 | #define PACKAGE_NAME "$PACKAGE_NAME" |
| 1202 | _ACEOF |
| 1203 | |
| 1204 | |
| 1205 | cat >>confdefs.h <<_ACEOF |
| 1206 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
| 1207 | _ACEOF |
| 1208 | |
| 1209 | |
| 1210 | cat >>confdefs.h <<_ACEOF |
| 1211 | #define PACKAGE_VERSION "$PACKAGE_VERSION" |
| 1212 | _ACEOF |
| 1213 | |
| 1214 | |
| 1215 | cat >>confdefs.h <<_ACEOF |
| 1216 | #define PACKAGE_STRING "$PACKAGE_STRING" |
| 1217 | _ACEOF |
| 1218 | |
| 1219 | |
| 1220 | cat >>confdefs.h <<_ACEOF |
| 1221 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
| 1222 | _ACEOF |
| 1223 | |
| 1224 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1225 | # Let the site file select an alternate cache file if it wants to. |
| 1226 | # Prefer explicitly selected file to automatically selected ones. |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 1227 | if test -z "$CONFIG_SITE"; then |
| 1228 | if test "x$prefix" != xNONE; then |
| 1229 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" |
| 1230 | else |
| 1231 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" |
| 1232 | fi |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1233 | fi |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 1234 | for ac_site_file in $CONFIG_SITE; do |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1235 | if test -r "$ac_site_file"; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1236 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1237 | echo "$as_me: loading site script $ac_site_file" >&6;} |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1238 | sed 's/^/| /' "$ac_site_file" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1239 | . "$ac_site_file" |
| 1240 | fi |
| 1241 | done |
| 1242 | |
| 1243 | if test -r "$cache_file"; then |
| 1244 | # Some versions of bash will fail to source /dev/null (special |
| 1245 | # files actually), so we avoid doing that. |
| 1246 | if test -f "$cache_file"; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1247 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1248 | echo "$as_me: loading cache $cache_file" >&6;} |
| 1249 | case $cache_file in |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 1250 | [\\/]* | ?:[\\/]* ) . $cache_file;; |
| 1251 | *) . ./$cache_file;; |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1252 | esac |
| 1253 | fi |
| 1254 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1255 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1256 | echo "$as_me: creating cache $cache_file" >&6;} |
| 1257 | >$cache_file |
| 1258 | fi |
| 1259 | |
| 1260 | # Check that the precious variables saved in the cache have kept the same |
| 1261 | # value. |
| 1262 | ac_cache_corrupted=false |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 1263 | for ac_var in `(set) 2>&1 | |
| 1264 | sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1265 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
| 1266 | eval ac_new_set=\$ac_env_${ac_var}_set |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 1267 | eval ac_old_val="\$ac_cv_env_${ac_var}_value" |
| 1268 | eval ac_new_val="\$ac_env_${ac_var}_value" |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1269 | case $ac_old_set,$ac_new_set in |
| 1270 | set,) |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1271 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1272 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
| 1273 | ac_cache_corrupted=: ;; |
| 1274 | ,set) |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1275 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1276 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
| 1277 | ac_cache_corrupted=: ;; |
| 1278 | ,);; |
| 1279 | *) |
| 1280 | if test "x$ac_old_val" != "x$ac_new_val"; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1281 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1282 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1283 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1284 | echo "$as_me: former value: $ac_old_val" >&2;} |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1285 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1286 | echo "$as_me: current value: $ac_new_val" >&2;} |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1287 | ac_cache_corrupted=: |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1288 | fi;; |
| 1289 | esac |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1290 | # Pass precious variables to config.status. |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1291 | if test "$ac_new_set" = set; then |
| 1292 | case $ac_new_val in |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 1293 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) |
| 1294 | ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1295 | *) ac_arg=$ac_var=$ac_new_val ;; |
| 1296 | esac |
| 1297 | case " $ac_configure_args " in |
| 1298 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
| 1299 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1300 | esac |
| 1301 | fi |
| 1302 | done |
| 1303 | if $ac_cache_corrupted; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1304 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1305 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1306 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1307 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} |
| 1308 | { (exit 1); exit 1; }; } |
| 1309 | fi |
| 1310 | |
| 1311 | ac_ext=c |
| 1312 | ac_cpp='$CPP $CPPFLAGS' |
| 1313 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 1314 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 1315 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 1316 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1317 | |
| 1318 | |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 1319 | |
| 1320 | |
| 1321 | |
| 1322 | |
| 1323 | |
| 1324 | |
| 1325 | |
| 1326 | |
| 1327 | |
| 1328 | |
| 1329 | |
| 1330 | |
| 1331 | |
| 1332 | |
| 1333 | |
| 1334 | |
| 1335 | |
| 1336 | |
| 1337 | |
| 1338 | |
| 1339 | |
| 1340 | |
| 1341 | |
| 1342 | |
| 1343 | |
Benny Prijono | 5b818b2 | 2006-09-17 22:58:51 +0000 | [diff] [blame] | 1344 | host_orig="$host" |
| 1345 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1346 | ac_aux_dir= |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 1347 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do |
| 1348 | if test -f $ac_dir/install-sh; then |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1349 | ac_aux_dir=$ac_dir |
| 1350 | ac_install_sh="$ac_aux_dir/install-sh -c" |
| 1351 | break |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 1352 | elif test -f $ac_dir/install.sh; then |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1353 | ac_aux_dir=$ac_dir |
| 1354 | ac_install_sh="$ac_aux_dir/install.sh -c" |
| 1355 | break |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 1356 | elif test -f $ac_dir/shtool; then |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1357 | ac_aux_dir=$ac_dir |
| 1358 | ac_install_sh="$ac_aux_dir/shtool install -c" |
| 1359 | break |
| 1360 | fi |
| 1361 | done |
| 1362 | if test -z "$ac_aux_dir"; then |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 1363 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 |
| 1364 | echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1365 | { (exit 1); exit 1; }; } |
| 1366 | fi |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 1367 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" |
| 1368 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" |
| 1369 | ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1370 | |
| 1371 | # Make sure we can run config.sub. |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 1372 | $ac_config_sub sun4 >/dev/null 2>&1 || |
| 1373 | { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 |
| 1374 | echo "$as_me: error: cannot run $ac_config_sub" >&2;} |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1375 | { (exit 1); exit 1; }; } |
| 1376 | |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 1377 | echo "$as_me:$LINENO: checking build system type" >&5 |
| 1378 | echo $ECHO_N "checking build system type... $ECHO_C" >&6 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1379 | if test "${ac_cv_build+set}" = set; then |
| 1380 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1381 | else |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 1382 | ac_cv_build_alias=$build_alias |
| 1383 | test -z "$ac_cv_build_alias" && |
| 1384 | ac_cv_build_alias=`$ac_config_guess` |
| 1385 | test -z "$ac_cv_build_alias" && |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1386 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1387 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} |
| 1388 | { (exit 1); exit 1; }; } |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 1389 | ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || |
| 1390 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 |
| 1391 | echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1392 | { (exit 1); exit 1; }; } |
| 1393 | |
| 1394 | fi |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 1395 | echo "$as_me:$LINENO: result: $ac_cv_build" >&5 |
| 1396 | echo "${ECHO_T}$ac_cv_build" >&6 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1397 | build=$ac_cv_build |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 1398 | build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
| 1399 | build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
| 1400 | build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1401 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1402 | |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 1403 | echo "$as_me:$LINENO: checking host system type" >&5 |
| 1404 | echo $ECHO_N "checking host system type... $ECHO_C" >&6 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1405 | if test "${ac_cv_host+set}" = set; then |
| 1406 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1407 | else |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 1408 | ac_cv_host_alias=$host_alias |
| 1409 | test -z "$ac_cv_host_alias" && |
| 1410 | ac_cv_host_alias=$ac_cv_build_alias |
| 1411 | ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || |
| 1412 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 |
| 1413 | echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1414 | { (exit 1); exit 1; }; } |
| 1415 | |
| 1416 | fi |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 1417 | echo "$as_me:$LINENO: result: $ac_cv_host" >&5 |
| 1418 | echo "${ECHO_T}$ac_cv_host" >&6 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1419 | host=$ac_cv_host |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 1420 | host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
| 1421 | host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
| 1422 | host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1423 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1424 | |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 1425 | echo "$as_me:$LINENO: checking target system type" >&5 |
| 1426 | echo $ECHO_N "checking target system type... $ECHO_C" >&6 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1427 | if test "${ac_cv_target+set}" = set; then |
| 1428 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1429 | else |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 1430 | ac_cv_target_alias=$target_alias |
| 1431 | test "x$ac_cv_target_alias" = "x" && |
| 1432 | ac_cv_target_alias=$ac_cv_host_alias |
| 1433 | ac_cv_target=`$ac_config_sub $ac_cv_target_alias` || |
| 1434 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5 |
| 1435 | echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;} |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1436 | { (exit 1); exit 1; }; } |
| 1437 | |
| 1438 | fi |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 1439 | echo "$as_me:$LINENO: result: $ac_cv_target" >&5 |
| 1440 | echo "${ECHO_T}$ac_cv_target" >&6 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1441 | target=$ac_cv_target |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 1442 | target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
| 1443 | target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
| 1444 | target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1445 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1446 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1447 | # The aliases save the names the user supplied, while $host etc. |
| 1448 | # will get canonicalized. |
| 1449 | test -n "$target_alias" && |
| 1450 | test "$program_prefix$program_suffix$program_transform_name" = \ |
| 1451 | NONENONEs,x,x, && |
| 1452 | program_prefix=${target_alias}- |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 1453 | 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] | 1454 | |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 1455 | ac_config_files="$ac_config_files build.mak build/os-auto.mak pjlib/build/os-auto.mak pjlib-util/build/os-auto.mak pjmedia/build/os-auto.mak pjsip/build/os-auto.mak third_party/build/portaudio/os-auto.mak third_party/build/os-auto.mak" |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1456 | |
Benny Prijono | c1fe23d | 2006-09-13 09:38:06 +0000 | [diff] [blame] | 1457 | |
Benny Prijono | 1248311 | 2007-03-12 10:44:38 +0000 | [diff] [blame] | 1458 | |
Benny Prijono | c1fe23d | 2006-09-13 09:38:06 +0000 | [diff] [blame] | 1459 | if test "$CFLAGS" = ""; then |
Benny Prijono | d145982 | 2006-10-04 20:56:39 +0000 | [diff] [blame] | 1460 | CFLAGS="-O2" |
Benny Prijono | c1fe23d | 2006-09-13 09:38:06 +0000 | [diff] [blame] | 1461 | else |
| 1462 | CFLAGS="$CFLAGS" |
| 1463 | fi |
| 1464 | |
| 1465 | CXXFLAGS="$CFLAGS $CXXFLAGS" |
| 1466 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1467 | ac_ext=c |
| 1468 | ac_cpp='$CPP $CPPFLAGS' |
| 1469 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 1470 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 1471 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 1472 | if test -n "$ac_tool_prefix"; then |
| 1473 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
| 1474 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 1475 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1476 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1477 | if test "${ac_cv_prog_CC+set}" = set; then |
| 1478 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1479 | else |
| 1480 | if test -n "$CC"; then |
| 1481 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 1482 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1483 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1484 | for as_dir in $PATH |
| 1485 | do |
| 1486 | IFS=$as_save_IFS |
| 1487 | test -z "$as_dir" && as_dir=. |
| 1488 | for ac_exec_ext in '' $ac_executable_extensions; do |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 1489 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1490 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
| 1491 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1492 | break 2 |
| 1493 | fi |
| 1494 | done |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1495 | done |
| 1496 | |
| 1497 | fi |
| 1498 | fi |
| 1499 | CC=$ac_cv_prog_CC |
| 1500 | if test -n "$CC"; then |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 1501 | echo "$as_me:$LINENO: result: $CC" >&5 |
| 1502 | echo "${ECHO_T}$CC" >&6 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1503 | else |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 1504 | echo "$as_me:$LINENO: result: no" >&5 |
| 1505 | echo "${ECHO_T}no" >&6 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1506 | fi |
| 1507 | |
| 1508 | fi |
| 1509 | if test -z "$ac_cv_prog_CC"; then |
| 1510 | ac_ct_CC=$CC |
| 1511 | # Extract the first word of "gcc", so it can be a program name with args. |
| 1512 | set dummy gcc; ac_word=$2 |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 1513 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1514 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1515 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 1516 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1517 | else |
| 1518 | if test -n "$ac_ct_CC"; then |
| 1519 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 1520 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1521 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1522 | for as_dir in $PATH |
| 1523 | do |
| 1524 | IFS=$as_save_IFS |
| 1525 | test -z "$as_dir" && as_dir=. |
| 1526 | for ac_exec_ext in '' $ac_executable_extensions; do |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 1527 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1528 | ac_cv_prog_ac_ct_CC="gcc" |
| 1529 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1530 | break 2 |
| 1531 | fi |
| 1532 | done |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1533 | done |
| 1534 | |
| 1535 | fi |
| 1536 | fi |
| 1537 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 1538 | if test -n "$ac_ct_CC"; then |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 1539 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 1540 | echo "${ECHO_T}$ac_ct_CC" >&6 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1541 | else |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 1542 | echo "$as_me:$LINENO: result: no" >&5 |
| 1543 | echo "${ECHO_T}no" >&6 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1544 | fi |
| 1545 | |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 1546 | CC=$ac_ct_CC |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1547 | else |
| 1548 | CC="$ac_cv_prog_CC" |
| 1549 | fi |
| 1550 | |
| 1551 | if test -z "$CC"; then |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 1552 | if test -n "$ac_tool_prefix"; then |
| 1553 | # 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] | 1554 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 1555 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1556 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1557 | if test "${ac_cv_prog_CC+set}" = set; then |
| 1558 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1559 | else |
| 1560 | if test -n "$CC"; then |
| 1561 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 1562 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1563 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1564 | for as_dir in $PATH |
| 1565 | do |
| 1566 | IFS=$as_save_IFS |
| 1567 | test -z "$as_dir" && as_dir=. |
| 1568 | for ac_exec_ext in '' $ac_executable_extensions; do |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 1569 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1570 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
| 1571 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1572 | break 2 |
| 1573 | fi |
| 1574 | done |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1575 | done |
| 1576 | |
| 1577 | fi |
| 1578 | fi |
| 1579 | CC=$ac_cv_prog_CC |
| 1580 | if test -n "$CC"; then |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 1581 | echo "$as_me:$LINENO: result: $CC" >&5 |
| 1582 | echo "${ECHO_T}$CC" >&6 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1583 | else |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 1584 | echo "$as_me:$LINENO: result: no" >&5 |
| 1585 | echo "${ECHO_T}no" >&6 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1586 | fi |
| 1587 | |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 1588 | fi |
| 1589 | if test -z "$ac_cv_prog_CC"; then |
| 1590 | ac_ct_CC=$CC |
| 1591 | # Extract the first word of "cc", so it can be a program name with args. |
| 1592 | set dummy cc; ac_word=$2 |
| 1593 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1594 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1595 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 1596 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1597 | else |
| 1598 | if test -n "$ac_ct_CC"; then |
| 1599 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 1600 | else |
| 1601 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1602 | for as_dir in $PATH |
| 1603 | do |
| 1604 | IFS=$as_save_IFS |
| 1605 | test -z "$as_dir" && as_dir=. |
| 1606 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1607 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1608 | ac_cv_prog_ac_ct_CC="cc" |
| 1609 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1610 | break 2 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1611 | fi |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 1612 | done |
| 1613 | done |
| 1614 | |
| 1615 | fi |
| 1616 | fi |
| 1617 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 1618 | if test -n "$ac_ct_CC"; then |
| 1619 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 1620 | echo "${ECHO_T}$ac_ct_CC" >&6 |
| 1621 | else |
| 1622 | echo "$as_me:$LINENO: result: no" >&5 |
| 1623 | echo "${ECHO_T}no" >&6 |
| 1624 | fi |
| 1625 | |
| 1626 | CC=$ac_ct_CC |
| 1627 | else |
| 1628 | CC="$ac_cv_prog_CC" |
| 1629 | fi |
| 1630 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1631 | fi |
| 1632 | if test -z "$CC"; then |
| 1633 | # Extract the first word of "cc", so it can be a program name with args. |
| 1634 | set dummy cc; ac_word=$2 |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 1635 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1636 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1637 | if test "${ac_cv_prog_CC+set}" = set; then |
| 1638 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1639 | else |
| 1640 | if test -n "$CC"; then |
| 1641 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 1642 | else |
| 1643 | ac_prog_rejected=no |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1644 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1645 | for as_dir in $PATH |
| 1646 | do |
| 1647 | IFS=$as_save_IFS |
| 1648 | test -z "$as_dir" && as_dir=. |
| 1649 | for ac_exec_ext in '' $ac_executable_extensions; do |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 1650 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1651 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
| 1652 | ac_prog_rejected=yes |
| 1653 | continue |
| 1654 | fi |
| 1655 | ac_cv_prog_CC="cc" |
| 1656 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1657 | break 2 |
| 1658 | fi |
| 1659 | done |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1660 | done |
| 1661 | |
| 1662 | if test $ac_prog_rejected = yes; then |
| 1663 | # We found a bogon in the path, so make sure we never use it. |
| 1664 | set dummy $ac_cv_prog_CC |
| 1665 | shift |
| 1666 | if test $# != 0; then |
| 1667 | # We chose a different compiler from the bogus one. |
| 1668 | # However, it has the same basename, so the bogon will be chosen |
| 1669 | # first if we set CC to just the basename; use the full file name. |
| 1670 | shift |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1671 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1672 | fi |
| 1673 | fi |
| 1674 | fi |
| 1675 | fi |
| 1676 | CC=$ac_cv_prog_CC |
| 1677 | if test -n "$CC"; then |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 1678 | echo "$as_me:$LINENO: result: $CC" >&5 |
| 1679 | echo "${ECHO_T}$CC" >&6 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1680 | else |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 1681 | echo "$as_me:$LINENO: result: no" >&5 |
| 1682 | echo "${ECHO_T}no" >&6 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1683 | fi |
| 1684 | |
| 1685 | fi |
| 1686 | if test -z "$CC"; then |
| 1687 | if test -n "$ac_tool_prefix"; then |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 1688 | for ac_prog in cl |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1689 | do |
| 1690 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 1691 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 1692 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1693 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1694 | if test "${ac_cv_prog_CC+set}" = set; then |
| 1695 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1696 | else |
| 1697 | if test -n "$CC"; then |
| 1698 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 1699 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1700 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1701 | for as_dir in $PATH |
| 1702 | do |
| 1703 | IFS=$as_save_IFS |
| 1704 | test -z "$as_dir" && as_dir=. |
| 1705 | for ac_exec_ext in '' $ac_executable_extensions; do |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 1706 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1707 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
| 1708 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1709 | break 2 |
| 1710 | fi |
| 1711 | done |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1712 | done |
| 1713 | |
| 1714 | fi |
| 1715 | fi |
| 1716 | CC=$ac_cv_prog_CC |
| 1717 | if test -n "$CC"; then |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 1718 | echo "$as_me:$LINENO: result: $CC" >&5 |
| 1719 | echo "${ECHO_T}$CC" >&6 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1720 | else |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 1721 | echo "$as_me:$LINENO: result: no" >&5 |
| 1722 | echo "${ECHO_T}no" >&6 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1723 | fi |
| 1724 | |
| 1725 | test -n "$CC" && break |
| 1726 | done |
| 1727 | fi |
| 1728 | if test -z "$CC"; then |
| 1729 | ac_ct_CC=$CC |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 1730 | for ac_prog in cl |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1731 | do |
| 1732 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 1733 | set dummy $ac_prog; ac_word=$2 |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 1734 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1735 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1736 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 1737 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1738 | else |
| 1739 | if test -n "$ac_ct_CC"; then |
| 1740 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 1741 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1742 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1743 | for as_dir in $PATH |
| 1744 | do |
| 1745 | IFS=$as_save_IFS |
| 1746 | test -z "$as_dir" && as_dir=. |
| 1747 | for ac_exec_ext in '' $ac_executable_extensions; do |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 1748 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1749 | ac_cv_prog_ac_ct_CC="$ac_prog" |
| 1750 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1751 | break 2 |
| 1752 | fi |
| 1753 | done |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1754 | done |
| 1755 | |
| 1756 | fi |
| 1757 | fi |
| 1758 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 1759 | if test -n "$ac_ct_CC"; then |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 1760 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 1761 | echo "${ECHO_T}$ac_ct_CC" >&6 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1762 | else |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 1763 | echo "$as_me:$LINENO: result: no" >&5 |
| 1764 | echo "${ECHO_T}no" >&6 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1765 | fi |
| 1766 | |
| 1767 | test -n "$ac_ct_CC" && break |
| 1768 | done |
| 1769 | |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 1770 | CC=$ac_ct_CC |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1771 | fi |
| 1772 | |
| 1773 | fi |
| 1774 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1775 | |
| 1776 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH |
| 1777 | See \`config.log' for more details." >&5 |
| 1778 | echo "$as_me: error: no acceptable C compiler found in \$PATH |
| 1779 | See \`config.log' for more details." >&2;} |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1780 | { (exit 1); exit 1; }; } |
| 1781 | |
| 1782 | # Provide some information about the compiler. |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 1783 | echo "$as_me:$LINENO:" \ |
| 1784 | "checking for C compiler version" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1785 | ac_compiler=`set X $ac_compile; echo $2` |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 1786 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 |
| 1787 | (eval $ac_compiler --version </dev/null >&5) 2>&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1788 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1789 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1790 | (exit $ac_status); } |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 1791 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 |
| 1792 | (eval $ac_compiler -v </dev/null >&5) 2>&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1793 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1794 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1795 | (exit $ac_status); } |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 1796 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 |
| 1797 | (eval $ac_compiler -V </dev/null >&5) 2>&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1798 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1799 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1800 | (exit $ac_status); } |
| 1801 | |
| 1802 | cat >conftest.$ac_ext <<_ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1803 | /* confdefs.h. */ |
| 1804 | _ACEOF |
| 1805 | cat confdefs.h >>conftest.$ac_ext |
| 1806 | cat >>conftest.$ac_ext <<_ACEOF |
| 1807 | /* end confdefs.h. */ |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1808 | |
| 1809 | int |
| 1810 | main () |
| 1811 | { |
| 1812 | |
| 1813 | ; |
| 1814 | return 0; |
| 1815 | } |
| 1816 | _ACEOF |
| 1817 | ac_clean_files_save=$ac_clean_files |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1818 | ac_clean_files="$ac_clean_files a.out a.exe b.out" |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1819 | # Try to create an executable without -o first, disregard a.out. |
| 1820 | # It will help us diagnose broken compilers, and finding out an intuition |
| 1821 | # of exeext. |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 1822 | echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 |
| 1823 | echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1824 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 1825 | if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 |
| 1826 | (eval $ac_link_default) 2>&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1827 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1828 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1829 | (exit $ac_status); }; then |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 1830 | # Find the output, starting from the most likely. This scheme is |
| 1831 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last |
| 1832 | # resort. |
| 1833 | |
| 1834 | # Be careful to initialize this variable, since it used to be cached. |
| 1835 | # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. |
| 1836 | ac_cv_exeext= |
| 1837 | # b.out is created by i960 compilers. |
| 1838 | for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1839 | do |
| 1840 | test -f "$ac_file" || continue |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1841 | case $ac_file in |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 1842 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) |
| 1843 | ;; |
| 1844 | conftest.$ac_ext ) |
| 1845 | # This is the source file. |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1846 | ;; |
| 1847 | [ab].out ) |
| 1848 | # We found the default executable, but exeext='' is most |
| 1849 | # certainly right. |
| 1850 | break;; |
| 1851 | *.* ) |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 1852 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 1853 | # FIXME: I believe we export ac_cv_exeext for Libtool, |
| 1854 | # but it would be cool to find out if it's true. Does anybody |
| 1855 | # maintain Libtool? --akim. |
| 1856 | export ac_cv_exeext |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1857 | break;; |
| 1858 | * ) |
| 1859 | break;; |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1860 | esac |
| 1861 | done |
| 1862 | else |
| 1863 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1864 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1865 | |
| 1866 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables |
| 1867 | See \`config.log' for more details." >&5 |
| 1868 | echo "$as_me: error: C compiler cannot create executables |
| 1869 | See \`config.log' for more details." >&2;} |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1870 | { (exit 77); exit 77; }; } |
| 1871 | fi |
| 1872 | |
| 1873 | ac_exeext=$ac_cv_exeext |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 1874 | echo "$as_me:$LINENO: result: $ac_file" >&5 |
| 1875 | echo "${ECHO_T}$ac_file" >&6 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1876 | |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 1877 | # Check the compiler produces executables we can run. If not, either |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1878 | # the compiler is broken, or we cross compile. |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 1879 | echo "$as_me:$LINENO: checking whether the C compiler works" >&5 |
| 1880 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1881 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
| 1882 | # If not cross compiling, check that we can run a simple program. |
| 1883 | if test "$cross_compiling" != yes; then |
| 1884 | if { ac_try='./$ac_file' |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 1885 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 1886 | (eval $ac_try) 2>&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1887 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1888 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1889 | (exit $ac_status); }; }; then |
| 1890 | cross_compiling=no |
| 1891 | else |
| 1892 | if test "$cross_compiling" = maybe; then |
| 1893 | cross_compiling=yes |
| 1894 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1895 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. |
| 1896 | If you meant to cross compile, use \`--host'. |
| 1897 | See \`config.log' for more details." >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1898 | echo "$as_me: error: cannot run C compiled programs. |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1899 | If you meant to cross compile, use \`--host'. |
| 1900 | See \`config.log' for more details." >&2;} |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1901 | { (exit 1); exit 1; }; } |
| 1902 | fi |
| 1903 | fi |
| 1904 | fi |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 1905 | echo "$as_me:$LINENO: result: yes" >&5 |
| 1906 | echo "${ECHO_T}yes" >&6 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1907 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1908 | rm -f a.out a.exe conftest$ac_cv_exeext b.out |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1909 | ac_clean_files=$ac_clean_files_save |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 1910 | # Check the compiler produces executables we can run. If not, either |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1911 | # the compiler is broken, or we cross compile. |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 1912 | echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
| 1913 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 |
| 1914 | echo "$as_me:$LINENO: result: $cross_compiling" >&5 |
| 1915 | echo "${ECHO_T}$cross_compiling" >&6 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1916 | |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 1917 | echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
| 1918 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 |
| 1919 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 1920 | (eval $ac_link) 2>&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1921 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1922 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1923 | (exit $ac_status); }; then |
| 1924 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
| 1925 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
| 1926 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
| 1927 | # `rm'. |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1928 | for ac_file in conftest.exe conftest conftest.*; do |
| 1929 | test -f "$ac_file" || continue |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1930 | case $ac_file in |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 1931 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1932 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 1933 | export ac_cv_exeext |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1934 | break;; |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1935 | * ) break;; |
| 1936 | esac |
| 1937 | done |
| 1938 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1939 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link |
| 1940 | See \`config.log' for more details." >&5 |
| 1941 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link |
| 1942 | See \`config.log' for more details." >&2;} |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1943 | { (exit 1); exit 1; }; } |
| 1944 | fi |
| 1945 | |
| 1946 | rm -f conftest$ac_cv_exeext |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 1947 | echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
| 1948 | echo "${ECHO_T}$ac_cv_exeext" >&6 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1949 | |
| 1950 | rm -f conftest.$ac_ext |
| 1951 | EXEEXT=$ac_cv_exeext |
| 1952 | ac_exeext=$EXEEXT |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 1953 | echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
| 1954 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1955 | if test "${ac_cv_objext+set}" = set; then |
| 1956 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1957 | else |
| 1958 | cat >conftest.$ac_ext <<_ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1959 | /* confdefs.h. */ |
| 1960 | _ACEOF |
| 1961 | cat confdefs.h >>conftest.$ac_ext |
| 1962 | cat >>conftest.$ac_ext <<_ACEOF |
| 1963 | /* end confdefs.h. */ |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1964 | |
| 1965 | int |
| 1966 | main () |
| 1967 | { |
| 1968 | |
| 1969 | ; |
| 1970 | return 0; |
| 1971 | } |
| 1972 | _ACEOF |
| 1973 | rm -f conftest.o conftest.obj |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 1974 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 1975 | (eval $ac_compile) 2>&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1976 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1977 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1978 | (exit $ac_status); }; then |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 1979 | for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1980 | case $ac_file in |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 1981 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1982 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
| 1983 | break;; |
| 1984 | esac |
| 1985 | done |
| 1986 | else |
| 1987 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1988 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1989 | |
| 1990 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile |
| 1991 | See \`config.log' for more details." >&5 |
| 1992 | echo "$as_me: error: cannot compute suffix of object files: cannot compile |
| 1993 | See \`config.log' for more details." >&2;} |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1994 | { (exit 1); exit 1; }; } |
| 1995 | fi |
| 1996 | |
| 1997 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
| 1998 | fi |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 1999 | echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
| 2000 | echo "${ECHO_T}$ac_cv_objext" >&6 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2001 | OBJEXT=$ac_cv_objext |
| 2002 | ac_objext=$OBJEXT |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 2003 | echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
| 2004 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2005 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
| 2006 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2007 | else |
| 2008 | cat >conftest.$ac_ext <<_ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2009 | /* confdefs.h. */ |
| 2010 | _ACEOF |
| 2011 | cat confdefs.h >>conftest.$ac_ext |
| 2012 | cat >>conftest.$ac_ext <<_ACEOF |
| 2013 | /* end confdefs.h. */ |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2014 | |
| 2015 | int |
| 2016 | main () |
| 2017 | { |
| 2018 | #ifndef __GNUC__ |
| 2019 | choke me |
| 2020 | #endif |
| 2021 | |
| 2022 | ; |
| 2023 | return 0; |
| 2024 | } |
| 2025 | _ACEOF |
| 2026 | rm -f conftest.$ac_objext |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 2027 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2028 | (eval $ac_compile) 2>conftest.er1 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2029 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2030 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2031 | rm -f conftest.er1 |
| 2032 | cat conftest.err >&5 |
| 2033 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 2034 | (exit $ac_status); } && |
| 2035 | { ac_try='test -z "$ac_c_werror_flag" |
| 2036 | || test ! -s conftest.err' |
| 2037 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2038 | (eval $ac_try) 2>&5 |
| 2039 | ac_status=$? |
| 2040 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2041 | (exit $ac_status); }; } && |
| 2042 | { ac_try='test -s conftest.$ac_objext' |
| 2043 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2044 | (eval $ac_try) 2>&5 |
| 2045 | ac_status=$? |
| 2046 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2047 | (exit $ac_status); }; }; then |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2048 | ac_compiler_gnu=yes |
| 2049 | else |
| 2050 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2051 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2052 | |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 2053 | ac_compiler_gnu=no |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2054 | fi |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 2055 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2056 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
| 2057 | |
| 2058 | fi |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 2059 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
| 2060 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2061 | GCC=`test $ac_compiler_gnu = yes && echo yes` |
| 2062 | ac_test_CFLAGS=${CFLAGS+set} |
| 2063 | ac_save_CFLAGS=$CFLAGS |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 2064 | CFLAGS="-g" |
| 2065 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
| 2066 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2067 | if test "${ac_cv_prog_cc_g+set}" = set; then |
| 2068 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2069 | else |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 2070 | cat >conftest.$ac_ext <<_ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2071 | /* confdefs.h. */ |
| 2072 | _ACEOF |
| 2073 | cat confdefs.h >>conftest.$ac_ext |
| 2074 | cat >>conftest.$ac_ext <<_ACEOF |
| 2075 | /* end confdefs.h. */ |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2076 | |
| 2077 | int |
| 2078 | main () |
| 2079 | { |
| 2080 | |
| 2081 | ; |
| 2082 | return 0; |
| 2083 | } |
| 2084 | _ACEOF |
| 2085 | rm -f conftest.$ac_objext |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 2086 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2087 | (eval $ac_compile) 2>conftest.er1 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2088 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2089 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2090 | rm -f conftest.er1 |
| 2091 | cat conftest.err >&5 |
| 2092 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 2093 | (exit $ac_status); } && |
| 2094 | { ac_try='test -z "$ac_c_werror_flag" |
| 2095 | || test ! -s conftest.err' |
| 2096 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2097 | (eval $ac_try) 2>&5 |
| 2098 | ac_status=$? |
| 2099 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2100 | (exit $ac_status); }; } && |
| 2101 | { ac_try='test -s conftest.$ac_objext' |
| 2102 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2103 | (eval $ac_try) 2>&5 |
| 2104 | ac_status=$? |
| 2105 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2106 | (exit $ac_status); }; }; then |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2107 | ac_cv_prog_cc_g=yes |
| 2108 | else |
| 2109 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2110 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2111 | |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 2112 | ac_cv_prog_cc_g=no |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2113 | fi |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 2114 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2115 | fi |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 2116 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
| 2117 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2118 | if test "$ac_test_CFLAGS" = set; then |
| 2119 | CFLAGS=$ac_save_CFLAGS |
| 2120 | elif test $ac_cv_prog_cc_g = yes; then |
| 2121 | if test "$GCC" = yes; then |
| 2122 | CFLAGS="-g -O2" |
| 2123 | else |
| 2124 | CFLAGS="-g" |
| 2125 | fi |
| 2126 | else |
| 2127 | if test "$GCC" = yes; then |
| 2128 | CFLAGS="-O2" |
| 2129 | else |
| 2130 | CFLAGS= |
| 2131 | fi |
| 2132 | fi |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 2133 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 |
| 2134 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 |
| 2135 | if test "${ac_cv_prog_cc_stdc+set}" = set; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2136 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2137 | else |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 2138 | ac_cv_prog_cc_stdc=no |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2139 | ac_save_CC=$CC |
| 2140 | cat >conftest.$ac_ext <<_ACEOF |
| 2141 | /* confdefs.h. */ |
| 2142 | _ACEOF |
| 2143 | cat confdefs.h >>conftest.$ac_ext |
| 2144 | cat >>conftest.$ac_ext <<_ACEOF |
| 2145 | /* end confdefs.h. */ |
| 2146 | #include <stdarg.h> |
| 2147 | #include <stdio.h> |
| 2148 | #include <sys/types.h> |
| 2149 | #include <sys/stat.h> |
| 2150 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
| 2151 | struct buf { int x; }; |
| 2152 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
| 2153 | static char *e (p, i) |
| 2154 | char **p; |
| 2155 | int i; |
| 2156 | { |
| 2157 | return p[i]; |
| 2158 | } |
| 2159 | static char *f (char * (*g) (char **, int), char **p, ...) |
| 2160 | { |
| 2161 | char *s; |
| 2162 | va_list v; |
| 2163 | va_start (v,p); |
| 2164 | s = g (p, va_arg (v,int)); |
| 2165 | va_end (v); |
| 2166 | return s; |
| 2167 | } |
| 2168 | |
| 2169 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
| 2170 | function prototypes and stuff, but not '\xHH' hex character constants. |
| 2171 | These don't provoke an error unfortunately, instead are silently treated |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 2172 | as 'x'. The following induces an error, until -std1 is added to get |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2173 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
| 2174 | array size at least. It's necessary to write '\x00'==0 to get something |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 2175 | that's true only with -std1. */ |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2176 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
| 2177 | |
| 2178 | int test (int i, double x); |
| 2179 | struct s1 {int (*f) (int a);}; |
| 2180 | struct s2 {int (*f) (double a);}; |
| 2181 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
| 2182 | int argc; |
| 2183 | char **argv; |
| 2184 | int |
| 2185 | main () |
| 2186 | { |
| 2187 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
| 2188 | ; |
| 2189 | return 0; |
| 2190 | } |
| 2191 | _ACEOF |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 2192 | # Don't try gcc -ansi; that turns off useful extensions and |
| 2193 | # breaks some systems' header files. |
| 2194 | # AIX -qlanglvl=ansi |
| 2195 | # Ultrix and OSF/1 -std1 |
| 2196 | # HP-UX 10.20 and later -Ae |
| 2197 | # HP-UX older versions -Aa -D_HPUX_SOURCE |
| 2198 | # SVR4 -Xc -D__EXTENSIONS__ |
| 2199 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2200 | do |
| 2201 | CC="$ac_save_CC $ac_arg" |
| 2202 | rm -f conftest.$ac_objext |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 2203 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2204 | (eval $ac_compile) 2>conftest.er1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2205 | ac_status=$? |
| 2206 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2207 | rm -f conftest.er1 |
| 2208 | cat conftest.err >&5 |
| 2209 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 2210 | (exit $ac_status); } && |
| 2211 | { ac_try='test -z "$ac_c_werror_flag" |
| 2212 | || test ! -s conftest.err' |
| 2213 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2214 | (eval $ac_try) 2>&5 |
| 2215 | ac_status=$? |
| 2216 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2217 | (exit $ac_status); }; } && |
| 2218 | { ac_try='test -s conftest.$ac_objext' |
| 2219 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2220 | (eval $ac_try) 2>&5 |
| 2221 | ac_status=$? |
| 2222 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2223 | (exit $ac_status); }; }; then |
| 2224 | ac_cv_prog_cc_stdc=$ac_arg |
| 2225 | break |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2226 | else |
| 2227 | echo "$as_me: failed program was:" >&5 |
| 2228 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2229 | |
| 2230 | fi |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 2231 | rm -f conftest.err conftest.$ac_objext |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2232 | done |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 2233 | rm -f conftest.$ac_ext conftest.$ac_objext |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2234 | CC=$ac_save_CC |
| 2235 | |
| 2236 | fi |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 2237 | |
| 2238 | case "x$ac_cv_prog_cc_stdc" in |
| 2239 | x|xno) |
| 2240 | echo "$as_me:$LINENO: result: none needed" >&5 |
| 2241 | echo "${ECHO_T}none needed" >&6 ;; |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2242 | *) |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 2243 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 |
| 2244 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 |
| 2245 | CC="$CC $ac_cv_prog_cc_stdc" ;; |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2246 | esac |
| 2247 | |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 2248 | # Some people use a C++ compiler to compile C. Since we use `exit', |
| 2249 | # in C++ we need to declare it. In case someone uses the same compiler |
| 2250 | # for both compiling C and C++ we need to have the C++ compiler decide |
| 2251 | # the declaration of exit, since it's the most demanding environment. |
| 2252 | cat >conftest.$ac_ext <<_ACEOF |
| 2253 | #ifndef __cplusplus |
| 2254 | choke me |
| 2255 | #endif |
| 2256 | _ACEOF |
| 2257 | rm -f conftest.$ac_objext |
| 2258 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2259 | (eval $ac_compile) 2>conftest.er1 |
| 2260 | ac_status=$? |
| 2261 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2262 | rm -f conftest.er1 |
| 2263 | cat conftest.err >&5 |
| 2264 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2265 | (exit $ac_status); } && |
| 2266 | { ac_try='test -z "$ac_c_werror_flag" |
| 2267 | || test ! -s conftest.err' |
| 2268 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2269 | (eval $ac_try) 2>&5 |
| 2270 | ac_status=$? |
| 2271 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2272 | (exit $ac_status); }; } && |
| 2273 | { ac_try='test -s conftest.$ac_objext' |
| 2274 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2275 | (eval $ac_try) 2>&5 |
| 2276 | ac_status=$? |
| 2277 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2278 | (exit $ac_status); }; }; then |
| 2279 | for ac_declaration in \ |
| 2280 | '' \ |
| 2281 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
| 2282 | 'extern "C" void std::exit (int); using std::exit;' \ |
| 2283 | 'extern "C" void exit (int) throw ();' \ |
| 2284 | 'extern "C" void exit (int);' \ |
| 2285 | 'void exit (int);' |
| 2286 | do |
| 2287 | cat >conftest.$ac_ext <<_ACEOF |
| 2288 | /* confdefs.h. */ |
| 2289 | _ACEOF |
| 2290 | cat confdefs.h >>conftest.$ac_ext |
| 2291 | cat >>conftest.$ac_ext <<_ACEOF |
| 2292 | /* end confdefs.h. */ |
| 2293 | $ac_declaration |
| 2294 | #include <stdlib.h> |
| 2295 | int |
| 2296 | main () |
| 2297 | { |
| 2298 | exit (42); |
| 2299 | ; |
| 2300 | return 0; |
| 2301 | } |
| 2302 | _ACEOF |
| 2303 | rm -f conftest.$ac_objext |
| 2304 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2305 | (eval $ac_compile) 2>conftest.er1 |
| 2306 | ac_status=$? |
| 2307 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2308 | rm -f conftest.er1 |
| 2309 | cat conftest.err >&5 |
| 2310 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2311 | (exit $ac_status); } && |
| 2312 | { ac_try='test -z "$ac_c_werror_flag" |
| 2313 | || test ! -s conftest.err' |
| 2314 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2315 | (eval $ac_try) 2>&5 |
| 2316 | ac_status=$? |
| 2317 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2318 | (exit $ac_status); }; } && |
| 2319 | { ac_try='test -s conftest.$ac_objext' |
| 2320 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2321 | (eval $ac_try) 2>&5 |
| 2322 | ac_status=$? |
| 2323 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2324 | (exit $ac_status); }; }; then |
| 2325 | : |
| 2326 | else |
| 2327 | echo "$as_me: failed program was:" >&5 |
| 2328 | sed 's/^/| /' conftest.$ac_ext >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2329 | |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 2330 | continue |
| 2331 | fi |
| 2332 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2333 | cat >conftest.$ac_ext <<_ACEOF |
| 2334 | /* confdefs.h. */ |
| 2335 | _ACEOF |
| 2336 | cat confdefs.h >>conftest.$ac_ext |
| 2337 | cat >>conftest.$ac_ext <<_ACEOF |
| 2338 | /* end confdefs.h. */ |
| 2339 | $ac_declaration |
| 2340 | int |
| 2341 | main () |
| 2342 | { |
| 2343 | exit (42); |
| 2344 | ; |
| 2345 | return 0; |
| 2346 | } |
| 2347 | _ACEOF |
| 2348 | rm -f conftest.$ac_objext |
| 2349 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2350 | (eval $ac_compile) 2>conftest.er1 |
| 2351 | ac_status=$? |
| 2352 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2353 | rm -f conftest.er1 |
| 2354 | cat conftest.err >&5 |
| 2355 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2356 | (exit $ac_status); } && |
| 2357 | { ac_try='test -z "$ac_c_werror_flag" |
| 2358 | || test ! -s conftest.err' |
| 2359 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2360 | (eval $ac_try) 2>&5 |
| 2361 | ac_status=$? |
| 2362 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2363 | (exit $ac_status); }; } && |
| 2364 | { ac_try='test -s conftest.$ac_objext' |
| 2365 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2366 | (eval $ac_try) 2>&5 |
| 2367 | ac_status=$? |
| 2368 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2369 | (exit $ac_status); }; }; then |
| 2370 | break |
| 2371 | else |
| 2372 | echo "$as_me: failed program was:" >&5 |
| 2373 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2374 | |
| 2375 | fi |
| 2376 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2377 | done |
| 2378 | rm -f conftest* |
| 2379 | if test -n "$ac_declaration"; then |
| 2380 | echo '#ifdef __cplusplus' >>confdefs.h |
| 2381 | echo $ac_declaration >>confdefs.h |
| 2382 | echo '#endif' >>confdefs.h |
| 2383 | fi |
| 2384 | |
| 2385 | else |
| 2386 | echo "$as_me: failed program was:" >&5 |
| 2387 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2388 | |
| 2389 | fi |
| 2390 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2391 | ac_ext=c |
| 2392 | ac_cpp='$CPP $CPPFLAGS' |
| 2393 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2394 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2395 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2396 | |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 2397 | ac_ext=cc |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2398 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 2399 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2400 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2401 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 2402 | if test -n "$ac_tool_prefix"; then |
| 2403 | for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2404 | do |
| 2405 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 2406 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 2407 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2408 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2409 | if test "${ac_cv_prog_CXX+set}" = set; then |
| 2410 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2411 | else |
| 2412 | if test -n "$CXX"; then |
| 2413 | ac_cv_prog_CXX="$CXX" # Let the user override the test. |
| 2414 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2415 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2416 | for as_dir in $PATH |
| 2417 | do |
| 2418 | IFS=$as_save_IFS |
| 2419 | test -z "$as_dir" && as_dir=. |
| 2420 | for ac_exec_ext in '' $ac_executable_extensions; do |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 2421 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2422 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
| 2423 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2424 | break 2 |
| 2425 | fi |
| 2426 | done |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2427 | done |
| 2428 | |
| 2429 | fi |
| 2430 | fi |
| 2431 | CXX=$ac_cv_prog_CXX |
| 2432 | if test -n "$CXX"; then |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 2433 | echo "$as_me:$LINENO: result: $CXX" >&5 |
| 2434 | echo "${ECHO_T}$CXX" >&6 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2435 | else |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 2436 | echo "$as_me:$LINENO: result: no" >&5 |
| 2437 | echo "${ECHO_T}no" >&6 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2438 | fi |
| 2439 | |
| 2440 | test -n "$CXX" && break |
| 2441 | done |
| 2442 | fi |
| 2443 | if test -z "$CXX"; then |
| 2444 | ac_ct_CXX=$CXX |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 2445 | for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2446 | do |
| 2447 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 2448 | set dummy $ac_prog; ac_word=$2 |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 2449 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2450 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2451 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then |
| 2452 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2453 | else |
| 2454 | if test -n "$ac_ct_CXX"; then |
| 2455 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. |
| 2456 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2457 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2458 | for as_dir in $PATH |
| 2459 | do |
| 2460 | IFS=$as_save_IFS |
| 2461 | test -z "$as_dir" && as_dir=. |
| 2462 | for ac_exec_ext in '' $ac_executable_extensions; do |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 2463 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2464 | ac_cv_prog_ac_ct_CXX="$ac_prog" |
| 2465 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2466 | break 2 |
| 2467 | fi |
| 2468 | done |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2469 | done |
| 2470 | |
| 2471 | fi |
| 2472 | fi |
| 2473 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX |
| 2474 | if test -n "$ac_ct_CXX"; then |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 2475 | echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 |
| 2476 | echo "${ECHO_T}$ac_ct_CXX" >&6 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2477 | else |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 2478 | echo "$as_me:$LINENO: result: no" >&5 |
| 2479 | echo "${ECHO_T}no" >&6 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2480 | fi |
| 2481 | |
| 2482 | test -n "$ac_ct_CXX" && break |
| 2483 | done |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 2484 | test -n "$ac_ct_CXX" || ac_ct_CXX="g++" |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2485 | |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 2486 | CXX=$ac_ct_CXX |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2487 | fi |
| 2488 | |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 2489 | |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2490 | # Provide some information about the compiler. |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 2491 | echo "$as_me:$LINENO:" \ |
| 2492 | "checking for C++ compiler version" >&5 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2493 | ac_compiler=`set X $ac_compile; echo $2` |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 2494 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 |
| 2495 | (eval $ac_compiler --version </dev/null >&5) 2>&5 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2496 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2497 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2498 | (exit $ac_status); } |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 2499 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 |
| 2500 | (eval $ac_compiler -v </dev/null >&5) 2>&5 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2501 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2502 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2503 | (exit $ac_status); } |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 2504 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 |
| 2505 | (eval $ac_compiler -V </dev/null >&5) 2>&5 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2506 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2507 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2508 | (exit $ac_status); } |
| 2509 | |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 2510 | echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 |
| 2511 | echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2512 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then |
| 2513 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2514 | else |
| 2515 | cat >conftest.$ac_ext <<_ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2516 | /* confdefs.h. */ |
| 2517 | _ACEOF |
| 2518 | cat confdefs.h >>conftest.$ac_ext |
| 2519 | cat >>conftest.$ac_ext <<_ACEOF |
| 2520 | /* end confdefs.h. */ |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2521 | |
| 2522 | int |
| 2523 | main () |
| 2524 | { |
| 2525 | #ifndef __GNUC__ |
| 2526 | choke me |
| 2527 | #endif |
| 2528 | |
| 2529 | ; |
| 2530 | return 0; |
| 2531 | } |
| 2532 | _ACEOF |
| 2533 | rm -f conftest.$ac_objext |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 2534 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2535 | (eval $ac_compile) 2>conftest.er1 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2536 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2537 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2538 | rm -f conftest.er1 |
| 2539 | cat conftest.err >&5 |
| 2540 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 2541 | (exit $ac_status); } && |
| 2542 | { ac_try='test -z "$ac_cxx_werror_flag" |
| 2543 | || test ! -s conftest.err' |
| 2544 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2545 | (eval $ac_try) 2>&5 |
| 2546 | ac_status=$? |
| 2547 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2548 | (exit $ac_status); }; } && |
| 2549 | { ac_try='test -s conftest.$ac_objext' |
| 2550 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2551 | (eval $ac_try) 2>&5 |
| 2552 | ac_status=$? |
| 2553 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2554 | (exit $ac_status); }; }; then |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2555 | ac_compiler_gnu=yes |
| 2556 | else |
| 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 | |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 2560 | ac_compiler_gnu=no |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2561 | fi |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 2562 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2563 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
| 2564 | |
| 2565 | fi |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 2566 | echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 |
| 2567 | echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2568 | GXX=`test $ac_compiler_gnu = yes && echo yes` |
| 2569 | ac_test_CXXFLAGS=${CXXFLAGS+set} |
| 2570 | ac_save_CXXFLAGS=$CXXFLAGS |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 2571 | CXXFLAGS="-g" |
| 2572 | echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 |
| 2573 | echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2574 | if test "${ac_cv_prog_cxx_g+set}" = set; then |
| 2575 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2576 | else |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 2577 | cat >conftest.$ac_ext <<_ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2578 | /* confdefs.h. */ |
| 2579 | _ACEOF |
| 2580 | cat confdefs.h >>conftest.$ac_ext |
| 2581 | cat >>conftest.$ac_ext <<_ACEOF |
| 2582 | /* end confdefs.h. */ |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2583 | |
| 2584 | int |
| 2585 | main () |
| 2586 | { |
| 2587 | |
| 2588 | ; |
| 2589 | return 0; |
| 2590 | } |
| 2591 | _ACEOF |
| 2592 | rm -f conftest.$ac_objext |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 2593 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2594 | (eval $ac_compile) 2>conftest.er1 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2595 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2596 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2597 | rm -f conftest.er1 |
| 2598 | cat conftest.err >&5 |
| 2599 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 2600 | (exit $ac_status); } && |
| 2601 | { ac_try='test -z "$ac_cxx_werror_flag" |
| 2602 | || test ! -s conftest.err' |
| 2603 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2604 | (eval $ac_try) 2>&5 |
| 2605 | ac_status=$? |
| 2606 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2607 | (exit $ac_status); }; } && |
| 2608 | { ac_try='test -s conftest.$ac_objext' |
| 2609 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2610 | (eval $ac_try) 2>&5 |
| 2611 | ac_status=$? |
| 2612 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2613 | (exit $ac_status); }; }; then |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2614 | ac_cv_prog_cxx_g=yes |
| 2615 | else |
| 2616 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2617 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2618 | |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 2619 | ac_cv_prog_cxx_g=no |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2620 | fi |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 2621 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2622 | fi |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 2623 | echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 |
| 2624 | echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2625 | if test "$ac_test_CXXFLAGS" = set; then |
| 2626 | CXXFLAGS=$ac_save_CXXFLAGS |
| 2627 | elif test $ac_cv_prog_cxx_g = yes; then |
| 2628 | if test "$GXX" = yes; then |
| 2629 | CXXFLAGS="-g -O2" |
| 2630 | else |
| 2631 | CXXFLAGS="-g" |
| 2632 | fi |
| 2633 | else |
| 2634 | if test "$GXX" = yes; then |
| 2635 | CXXFLAGS="-O2" |
| 2636 | else |
| 2637 | CXXFLAGS= |
| 2638 | fi |
| 2639 | fi |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 2640 | for ac_declaration in \ |
| 2641 | '' \ |
| 2642 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
| 2643 | 'extern "C" void std::exit (int); using std::exit;' \ |
| 2644 | 'extern "C" void exit (int) throw ();' \ |
| 2645 | 'extern "C" void exit (int);' \ |
| 2646 | 'void exit (int);' |
| 2647 | do |
| 2648 | cat >conftest.$ac_ext <<_ACEOF |
| 2649 | /* confdefs.h. */ |
| 2650 | _ACEOF |
| 2651 | cat confdefs.h >>conftest.$ac_ext |
| 2652 | cat >>conftest.$ac_ext <<_ACEOF |
| 2653 | /* end confdefs.h. */ |
| 2654 | $ac_declaration |
| 2655 | #include <stdlib.h> |
| 2656 | int |
| 2657 | main () |
| 2658 | { |
| 2659 | exit (42); |
| 2660 | ; |
| 2661 | return 0; |
| 2662 | } |
| 2663 | _ACEOF |
| 2664 | rm -f conftest.$ac_objext |
| 2665 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2666 | (eval $ac_compile) 2>conftest.er1 |
| 2667 | ac_status=$? |
| 2668 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2669 | rm -f conftest.er1 |
| 2670 | cat conftest.err >&5 |
| 2671 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2672 | (exit $ac_status); } && |
| 2673 | { ac_try='test -z "$ac_cxx_werror_flag" |
| 2674 | || test ! -s conftest.err' |
| 2675 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2676 | (eval $ac_try) 2>&5 |
| 2677 | ac_status=$? |
| 2678 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2679 | (exit $ac_status); }; } && |
| 2680 | { ac_try='test -s conftest.$ac_objext' |
| 2681 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2682 | (eval $ac_try) 2>&5 |
| 2683 | ac_status=$? |
| 2684 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2685 | (exit $ac_status); }; }; then |
| 2686 | : |
| 2687 | else |
| 2688 | echo "$as_me: failed program was:" >&5 |
| 2689 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2690 | |
| 2691 | continue |
| 2692 | fi |
| 2693 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2694 | cat >conftest.$ac_ext <<_ACEOF |
| 2695 | /* confdefs.h. */ |
| 2696 | _ACEOF |
| 2697 | cat confdefs.h >>conftest.$ac_ext |
| 2698 | cat >>conftest.$ac_ext <<_ACEOF |
| 2699 | /* end confdefs.h. */ |
| 2700 | $ac_declaration |
| 2701 | int |
| 2702 | main () |
| 2703 | { |
| 2704 | exit (42); |
| 2705 | ; |
| 2706 | return 0; |
| 2707 | } |
| 2708 | _ACEOF |
| 2709 | rm -f conftest.$ac_objext |
| 2710 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2711 | (eval $ac_compile) 2>conftest.er1 |
| 2712 | ac_status=$? |
| 2713 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2714 | rm -f conftest.er1 |
| 2715 | cat conftest.err >&5 |
| 2716 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2717 | (exit $ac_status); } && |
| 2718 | { ac_try='test -z "$ac_cxx_werror_flag" |
| 2719 | || test ! -s conftest.err' |
| 2720 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2721 | (eval $ac_try) 2>&5 |
| 2722 | ac_status=$? |
| 2723 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2724 | (exit $ac_status); }; } && |
| 2725 | { ac_try='test -s conftest.$ac_objext' |
| 2726 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2727 | (eval $ac_try) 2>&5 |
| 2728 | ac_status=$? |
| 2729 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2730 | (exit $ac_status); }; }; then |
| 2731 | break |
| 2732 | else |
| 2733 | echo "$as_me: failed program was:" >&5 |
| 2734 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2735 | |
| 2736 | fi |
| 2737 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2738 | done |
| 2739 | rm -f conftest* |
| 2740 | if test -n "$ac_declaration"; then |
| 2741 | echo '#ifdef __cplusplus' >>confdefs.h |
| 2742 | echo $ac_declaration >>confdefs.h |
| 2743 | echo '#endif' >>confdefs.h |
| 2744 | fi |
| 2745 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2746 | ac_ext=c |
| 2747 | ac_cpp='$CPP $CPPFLAGS' |
| 2748 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2749 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2750 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2751 | |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2752 | ac_ext=c |
| 2753 | ac_cpp='$CPP $CPPFLAGS' |
| 2754 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2755 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2756 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2757 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2758 | |
| 2759 | |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 2760 | |
Benny Prijono | 53847a3 | 2007-09-24 16:10:13 +0000 | [diff] [blame] | 2761 | case $target in |
| 2762 | *mingw* | *cygw* | *win32* | *w32* ) |
| 2763 | ac_pjdir=`pwd -W` |
| 2764 | ;; |
| 2765 | *) |
| 2766 | ac_pjdir=`pwd` |
| 2767 | ;; |
| 2768 | esac |
Benny Prijono | 1248311 | 2007-03-12 10:44:38 +0000 | [diff] [blame] | 2769 | |
| 2770 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2771 | |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 2772 | echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5 |
| 2773 | echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2774 | if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then |
| 2775 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2776 | else |
| 2777 | ac_check_lib_save_LIBS=$LIBS |
| 2778 | LIBS="-lpthread $LIBS" |
| 2779 | cat >conftest.$ac_ext <<_ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2780 | /* confdefs.h. */ |
| 2781 | _ACEOF |
| 2782 | cat confdefs.h >>conftest.$ac_ext |
| 2783 | cat >>conftest.$ac_ext <<_ACEOF |
| 2784 | /* end confdefs.h. */ |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2785 | |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 2786 | /* Override any gcc2 internal prototype to avoid an error. */ |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2787 | #ifdef __cplusplus |
| 2788 | extern "C" |
| 2789 | #endif |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 2790 | /* We use char because int might match the return type of a gcc2 |
| 2791 | builtin and then its argument prototype would still apply. */ |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2792 | char pthread_create (); |
| 2793 | int |
| 2794 | main () |
| 2795 | { |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 2796 | pthread_create (); |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2797 | ; |
| 2798 | return 0; |
| 2799 | } |
| 2800 | _ACEOF |
| 2801 | rm -f conftest.$ac_objext conftest$ac_exeext |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 2802 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 2803 | (eval $ac_link) 2>conftest.er1 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2804 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2805 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2806 | rm -f conftest.er1 |
| 2807 | cat conftest.err >&5 |
| 2808 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 2809 | (exit $ac_status); } && |
| 2810 | { ac_try='test -z "$ac_c_werror_flag" |
| 2811 | || test ! -s conftest.err' |
| 2812 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2813 | (eval $ac_try) 2>&5 |
| 2814 | ac_status=$? |
| 2815 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2816 | (exit $ac_status); }; } && |
| 2817 | { ac_try='test -s conftest$ac_exeext' |
| 2818 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2819 | (eval $ac_try) 2>&5 |
| 2820 | ac_status=$? |
| 2821 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2822 | (exit $ac_status); }; }; then |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2823 | ac_cv_lib_pthread_pthread_create=yes |
| 2824 | else |
| 2825 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2826 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2827 | |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 2828 | ac_cv_lib_pthread_pthread_create=no |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2829 | fi |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 2830 | rm -f conftest.err conftest.$ac_objext \ |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2831 | conftest$ac_exeext conftest.$ac_ext |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2832 | LIBS=$ac_check_lib_save_LIBS |
| 2833 | fi |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 2834 | echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5 |
| 2835 | echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2836 | if test $ac_cv_lib_pthread_pthread_create = yes; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2837 | cat >>confdefs.h <<_ACEOF |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2838 | #define HAVE_LIBPTHREAD 1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2839 | _ACEOF |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2840 | |
| 2841 | LIBS="-lpthread $LIBS" |
| 2842 | |
| 2843 | fi |
| 2844 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2845 | |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 2846 | echo "$as_me:$LINENO: checking for puts in -lwsock32" >&5 |
| 2847 | echo $ECHO_N "checking for puts in -lwsock32... $ECHO_C" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 2848 | if test "${ac_cv_lib_wsock32_puts+set}" = set; then |
| 2849 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2850 | else |
| 2851 | ac_check_lib_save_LIBS=$LIBS |
| 2852 | LIBS="-lwsock32 $LIBS" |
| 2853 | cat >conftest.$ac_ext <<_ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2854 | /* confdefs.h. */ |
| 2855 | _ACEOF |
| 2856 | cat confdefs.h >>conftest.$ac_ext |
| 2857 | cat >>conftest.$ac_ext <<_ACEOF |
| 2858 | /* end confdefs.h. */ |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 2859 | |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 2860 | /* Override any gcc2 internal prototype to avoid an error. */ |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 2861 | #ifdef __cplusplus |
| 2862 | extern "C" |
| 2863 | #endif |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 2864 | /* We use char because int might match the return type of a gcc2 |
| 2865 | builtin and then its argument prototype would still apply. */ |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 2866 | char puts (); |
| 2867 | int |
| 2868 | main () |
| 2869 | { |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 2870 | puts (); |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 2871 | ; |
| 2872 | return 0; |
| 2873 | } |
| 2874 | _ACEOF |
| 2875 | rm -f conftest.$ac_objext conftest$ac_exeext |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 2876 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 2877 | (eval $ac_link) 2>conftest.er1 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 2878 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2879 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2880 | rm -f conftest.er1 |
| 2881 | cat conftest.err >&5 |
| 2882 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 2883 | (exit $ac_status); } && |
| 2884 | { ac_try='test -z "$ac_c_werror_flag" |
| 2885 | || test ! -s conftest.err' |
| 2886 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2887 | (eval $ac_try) 2>&5 |
| 2888 | ac_status=$? |
| 2889 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2890 | (exit $ac_status); }; } && |
| 2891 | { ac_try='test -s conftest$ac_exeext' |
| 2892 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2893 | (eval $ac_try) 2>&5 |
| 2894 | ac_status=$? |
| 2895 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2896 | (exit $ac_status); }; }; then |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 2897 | ac_cv_lib_wsock32_puts=yes |
| 2898 | else |
| 2899 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2900 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2901 | |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 2902 | ac_cv_lib_wsock32_puts=no |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 2903 | fi |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 2904 | rm -f conftest.err conftest.$ac_objext \ |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2905 | conftest$ac_exeext conftest.$ac_ext |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 2906 | LIBS=$ac_check_lib_save_LIBS |
| 2907 | fi |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 2908 | echo "$as_me:$LINENO: result: $ac_cv_lib_wsock32_puts" >&5 |
| 2909 | echo "${ECHO_T}$ac_cv_lib_wsock32_puts" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 2910 | if test $ac_cv_lib_wsock32_puts = yes; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2911 | cat >>confdefs.h <<_ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 2912 | #define HAVE_LIBWSOCK32 1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2913 | _ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 2914 | |
| 2915 | LIBS="-lwsock32 $LIBS" |
| 2916 | |
| 2917 | fi |
| 2918 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2919 | |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 2920 | echo "$as_me:$LINENO: checking for puts in -lws2_32" >&5 |
| 2921 | echo $ECHO_N "checking for puts in -lws2_32... $ECHO_C" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 2922 | if test "${ac_cv_lib_ws2_32_puts+set}" = set; then |
| 2923 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2924 | else |
| 2925 | ac_check_lib_save_LIBS=$LIBS |
| 2926 | LIBS="-lws2_32 $LIBS" |
| 2927 | cat >conftest.$ac_ext <<_ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2928 | /* confdefs.h. */ |
| 2929 | _ACEOF |
| 2930 | cat confdefs.h >>conftest.$ac_ext |
| 2931 | cat >>conftest.$ac_ext <<_ACEOF |
| 2932 | /* end confdefs.h. */ |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 2933 | |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 2934 | /* Override any gcc2 internal prototype to avoid an error. */ |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 2935 | #ifdef __cplusplus |
| 2936 | extern "C" |
| 2937 | #endif |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 2938 | /* We use char because int might match the return type of a gcc2 |
| 2939 | builtin and then its argument prototype would still apply. */ |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 2940 | char puts (); |
| 2941 | int |
| 2942 | main () |
| 2943 | { |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 2944 | puts (); |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 2945 | ; |
| 2946 | return 0; |
| 2947 | } |
| 2948 | _ACEOF |
| 2949 | rm -f conftest.$ac_objext conftest$ac_exeext |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 2950 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 2951 | (eval $ac_link) 2>conftest.er1 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 2952 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2953 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2954 | rm -f conftest.er1 |
| 2955 | cat conftest.err >&5 |
| 2956 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 2957 | (exit $ac_status); } && |
| 2958 | { ac_try='test -z "$ac_c_werror_flag" |
| 2959 | || test ! -s conftest.err' |
| 2960 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2961 | (eval $ac_try) 2>&5 |
| 2962 | ac_status=$? |
| 2963 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2964 | (exit $ac_status); }; } && |
| 2965 | { ac_try='test -s conftest$ac_exeext' |
| 2966 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2967 | (eval $ac_try) 2>&5 |
| 2968 | ac_status=$? |
| 2969 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2970 | (exit $ac_status); }; }; then |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 2971 | ac_cv_lib_ws2_32_puts=yes |
| 2972 | else |
| 2973 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2974 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2975 | |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 2976 | ac_cv_lib_ws2_32_puts=no |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 2977 | fi |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 2978 | rm -f conftest.err conftest.$ac_objext \ |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2979 | conftest$ac_exeext conftest.$ac_ext |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 2980 | LIBS=$ac_check_lib_save_LIBS |
| 2981 | fi |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 2982 | echo "$as_me:$LINENO: result: $ac_cv_lib_ws2_32_puts" >&5 |
| 2983 | echo "${ECHO_T}$ac_cv_lib_ws2_32_puts" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 2984 | if test $ac_cv_lib_ws2_32_puts = yes; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2985 | cat >>confdefs.h <<_ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 2986 | #define HAVE_LIBWS2_32 1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2987 | _ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 2988 | |
| 2989 | LIBS="-lws2_32 $LIBS" |
| 2990 | |
| 2991 | fi |
| 2992 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2993 | |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 2994 | echo "$as_me:$LINENO: checking for puts in -lole32" >&5 |
| 2995 | echo $ECHO_N "checking for puts in -lole32... $ECHO_C" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 2996 | if test "${ac_cv_lib_ole32_puts+set}" = set; then |
| 2997 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2998 | else |
| 2999 | ac_check_lib_save_LIBS=$LIBS |
| 3000 | LIBS="-lole32 $LIBS" |
| 3001 | cat >conftest.$ac_ext <<_ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3002 | /* confdefs.h. */ |
| 3003 | _ACEOF |
| 3004 | cat confdefs.h >>conftest.$ac_ext |
| 3005 | cat >>conftest.$ac_ext <<_ACEOF |
| 3006 | /* end confdefs.h. */ |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3007 | |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 3008 | /* Override any gcc2 internal prototype to avoid an error. */ |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3009 | #ifdef __cplusplus |
| 3010 | extern "C" |
| 3011 | #endif |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 3012 | /* We use char because int might match the return type of a gcc2 |
| 3013 | builtin and then its argument prototype would still apply. */ |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3014 | char puts (); |
| 3015 | int |
| 3016 | main () |
| 3017 | { |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 3018 | puts (); |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3019 | ; |
| 3020 | return 0; |
| 3021 | } |
| 3022 | _ACEOF |
| 3023 | rm -f conftest.$ac_objext conftest$ac_exeext |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 3024 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 3025 | (eval $ac_link) 2>conftest.er1 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3026 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3027 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3028 | rm -f conftest.er1 |
| 3029 | cat conftest.err >&5 |
| 3030 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 3031 | (exit $ac_status); } && |
| 3032 | { ac_try='test -z "$ac_c_werror_flag" |
| 3033 | || test ! -s conftest.err' |
| 3034 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3035 | (eval $ac_try) 2>&5 |
| 3036 | ac_status=$? |
| 3037 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3038 | (exit $ac_status); }; } && |
| 3039 | { ac_try='test -s conftest$ac_exeext' |
| 3040 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3041 | (eval $ac_try) 2>&5 |
| 3042 | ac_status=$? |
| 3043 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3044 | (exit $ac_status); }; }; then |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3045 | ac_cv_lib_ole32_puts=yes |
| 3046 | else |
| 3047 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3048 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3049 | |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 3050 | ac_cv_lib_ole32_puts=no |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3051 | fi |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 3052 | rm -f conftest.err conftest.$ac_objext \ |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3053 | conftest$ac_exeext conftest.$ac_ext |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3054 | LIBS=$ac_check_lib_save_LIBS |
| 3055 | fi |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 3056 | echo "$as_me:$LINENO: result: $ac_cv_lib_ole32_puts" >&5 |
| 3057 | echo "${ECHO_T}$ac_cv_lib_ole32_puts" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3058 | if test $ac_cv_lib_ole32_puts = yes; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3059 | cat >>confdefs.h <<_ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3060 | #define HAVE_LIBOLE32 1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3061 | _ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3062 | |
| 3063 | LIBS="-lole32 $LIBS" |
| 3064 | |
| 3065 | fi |
| 3066 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3067 | |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 3068 | echo "$as_me:$LINENO: checking for puts in -lwinmm" >&5 |
| 3069 | echo $ECHO_N "checking for puts in -lwinmm... $ECHO_C" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3070 | if test "${ac_cv_lib_winmm_puts+set}" = set; then |
| 3071 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3072 | else |
| 3073 | ac_check_lib_save_LIBS=$LIBS |
| 3074 | LIBS="-lwinmm $LIBS" |
| 3075 | cat >conftest.$ac_ext <<_ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3076 | /* confdefs.h. */ |
| 3077 | _ACEOF |
| 3078 | cat confdefs.h >>conftest.$ac_ext |
| 3079 | cat >>conftest.$ac_ext <<_ACEOF |
| 3080 | /* end confdefs.h. */ |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3081 | |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 3082 | /* Override any gcc2 internal prototype to avoid an error. */ |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3083 | #ifdef __cplusplus |
| 3084 | extern "C" |
| 3085 | #endif |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 3086 | /* We use char because int might match the return type of a gcc2 |
| 3087 | builtin and then its argument prototype would still apply. */ |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3088 | char puts (); |
| 3089 | int |
| 3090 | main () |
| 3091 | { |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 3092 | puts (); |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3093 | ; |
| 3094 | return 0; |
| 3095 | } |
| 3096 | _ACEOF |
| 3097 | rm -f conftest.$ac_objext conftest$ac_exeext |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 3098 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 3099 | (eval $ac_link) 2>conftest.er1 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3100 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3101 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3102 | rm -f conftest.er1 |
| 3103 | cat conftest.err >&5 |
| 3104 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 3105 | (exit $ac_status); } && |
| 3106 | { ac_try='test -z "$ac_c_werror_flag" |
| 3107 | || test ! -s conftest.err' |
| 3108 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3109 | (eval $ac_try) 2>&5 |
| 3110 | ac_status=$? |
| 3111 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3112 | (exit $ac_status); }; } && |
| 3113 | { ac_try='test -s conftest$ac_exeext' |
| 3114 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3115 | (eval $ac_try) 2>&5 |
| 3116 | ac_status=$? |
| 3117 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3118 | (exit $ac_status); }; }; then |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3119 | ac_cv_lib_winmm_puts=yes |
| 3120 | else |
| 3121 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3122 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3123 | |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 3124 | ac_cv_lib_winmm_puts=no |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3125 | fi |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 3126 | rm -f conftest.err conftest.$ac_objext \ |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3127 | conftest$ac_exeext conftest.$ac_ext |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3128 | LIBS=$ac_check_lib_save_LIBS |
| 3129 | fi |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 3130 | echo "$as_me:$LINENO: result: $ac_cv_lib_winmm_puts" >&5 |
| 3131 | echo "${ECHO_T}$ac_cv_lib_winmm_puts" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3132 | if test $ac_cv_lib_winmm_puts = yes; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3133 | cat >>confdefs.h <<_ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3134 | #define HAVE_LIBWINMM 1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3135 | _ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3136 | |
| 3137 | LIBS="-lwinmm $LIBS" |
| 3138 | |
| 3139 | fi |
| 3140 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3141 | |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 3142 | echo "$as_me:$LINENO: checking for puts in -lsocket" >&5 |
| 3143 | echo $ECHO_N "checking for puts in -lsocket... $ECHO_C" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3144 | if test "${ac_cv_lib_socket_puts+set}" = set; then |
| 3145 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3146 | else |
| 3147 | ac_check_lib_save_LIBS=$LIBS |
| 3148 | LIBS="-lsocket $LIBS" |
| 3149 | cat >conftest.$ac_ext <<_ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3150 | /* confdefs.h. */ |
| 3151 | _ACEOF |
| 3152 | cat confdefs.h >>conftest.$ac_ext |
| 3153 | cat >>conftest.$ac_ext <<_ACEOF |
| 3154 | /* end confdefs.h. */ |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3155 | |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 3156 | /* Override any gcc2 internal prototype to avoid an error. */ |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3157 | #ifdef __cplusplus |
| 3158 | extern "C" |
| 3159 | #endif |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 3160 | /* We use char because int might match the return type of a gcc2 |
| 3161 | builtin and then its argument prototype would still apply. */ |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3162 | char puts (); |
| 3163 | int |
| 3164 | main () |
| 3165 | { |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 3166 | puts (); |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3167 | ; |
| 3168 | return 0; |
| 3169 | } |
| 3170 | _ACEOF |
| 3171 | rm -f conftest.$ac_objext conftest$ac_exeext |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 3172 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 3173 | (eval $ac_link) 2>conftest.er1 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3174 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3175 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3176 | rm -f conftest.er1 |
| 3177 | cat conftest.err >&5 |
| 3178 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 3179 | (exit $ac_status); } && |
| 3180 | { ac_try='test -z "$ac_c_werror_flag" |
| 3181 | || test ! -s conftest.err' |
| 3182 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3183 | (eval $ac_try) 2>&5 |
| 3184 | ac_status=$? |
| 3185 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3186 | (exit $ac_status); }; } && |
| 3187 | { ac_try='test -s conftest$ac_exeext' |
| 3188 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3189 | (eval $ac_try) 2>&5 |
| 3190 | ac_status=$? |
| 3191 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3192 | (exit $ac_status); }; }; then |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3193 | ac_cv_lib_socket_puts=yes |
| 3194 | else |
| 3195 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3196 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3197 | |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 3198 | ac_cv_lib_socket_puts=no |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3199 | fi |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 3200 | rm -f conftest.err conftest.$ac_objext \ |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3201 | conftest$ac_exeext conftest.$ac_ext |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3202 | LIBS=$ac_check_lib_save_LIBS |
| 3203 | fi |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 3204 | echo "$as_me:$LINENO: result: $ac_cv_lib_socket_puts" >&5 |
| 3205 | echo "${ECHO_T}$ac_cv_lib_socket_puts" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3206 | if test $ac_cv_lib_socket_puts = yes; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3207 | cat >>confdefs.h <<_ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3208 | #define HAVE_LIBSOCKET 1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3209 | _ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3210 | |
| 3211 | LIBS="-lsocket $LIBS" |
| 3212 | |
| 3213 | fi |
| 3214 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3215 | |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 3216 | echo "$as_me:$LINENO: checking for puts in -lrt" >&5 |
| 3217 | echo $ECHO_N "checking for puts in -lrt... $ECHO_C" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3218 | if test "${ac_cv_lib_rt_puts+set}" = set; then |
| 3219 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3220 | else |
| 3221 | ac_check_lib_save_LIBS=$LIBS |
| 3222 | LIBS="-lrt $LIBS" |
| 3223 | cat >conftest.$ac_ext <<_ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3224 | /* confdefs.h. */ |
| 3225 | _ACEOF |
| 3226 | cat confdefs.h >>conftest.$ac_ext |
| 3227 | cat >>conftest.$ac_ext <<_ACEOF |
| 3228 | /* end confdefs.h. */ |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3229 | |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 3230 | /* Override any gcc2 internal prototype to avoid an error. */ |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3231 | #ifdef __cplusplus |
| 3232 | extern "C" |
| 3233 | #endif |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 3234 | /* We use char because int might match the return type of a gcc2 |
| 3235 | builtin and then its argument prototype would still apply. */ |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3236 | char puts (); |
| 3237 | int |
| 3238 | main () |
| 3239 | { |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 3240 | puts (); |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3241 | ; |
| 3242 | return 0; |
| 3243 | } |
| 3244 | _ACEOF |
| 3245 | rm -f conftest.$ac_objext conftest$ac_exeext |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 3246 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 3247 | (eval $ac_link) 2>conftest.er1 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3248 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3249 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3250 | rm -f conftest.er1 |
| 3251 | cat conftest.err >&5 |
| 3252 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 3253 | (exit $ac_status); } && |
| 3254 | { ac_try='test -z "$ac_c_werror_flag" |
| 3255 | || test ! -s conftest.err' |
| 3256 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3257 | (eval $ac_try) 2>&5 |
| 3258 | ac_status=$? |
| 3259 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3260 | (exit $ac_status); }; } && |
| 3261 | { ac_try='test -s conftest$ac_exeext' |
| 3262 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3263 | (eval $ac_try) 2>&5 |
| 3264 | ac_status=$? |
| 3265 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3266 | (exit $ac_status); }; }; then |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3267 | ac_cv_lib_rt_puts=yes |
| 3268 | else |
| 3269 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3270 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3271 | |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 3272 | ac_cv_lib_rt_puts=no |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3273 | fi |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 3274 | rm -f conftest.err conftest.$ac_objext \ |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3275 | conftest$ac_exeext conftest.$ac_ext |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3276 | LIBS=$ac_check_lib_save_LIBS |
| 3277 | fi |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 3278 | echo "$as_me:$LINENO: result: $ac_cv_lib_rt_puts" >&5 |
| 3279 | echo "${ECHO_T}$ac_cv_lib_rt_puts" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3280 | if test $ac_cv_lib_rt_puts = yes; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3281 | cat >>confdefs.h <<_ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3282 | #define HAVE_LIBRT 1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3283 | _ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3284 | |
| 3285 | LIBS="-lrt $LIBS" |
| 3286 | |
| 3287 | fi |
| 3288 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3289 | |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 3290 | echo "$as_me:$LINENO: checking for puts in -lnsl" >&5 |
| 3291 | echo $ECHO_N "checking for puts in -lnsl... $ECHO_C" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3292 | if test "${ac_cv_lib_nsl_puts+set}" = set; then |
| 3293 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3294 | else |
| 3295 | ac_check_lib_save_LIBS=$LIBS |
| 3296 | LIBS="-lnsl $LIBS" |
| 3297 | cat >conftest.$ac_ext <<_ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3298 | /* confdefs.h. */ |
| 3299 | _ACEOF |
| 3300 | cat confdefs.h >>conftest.$ac_ext |
| 3301 | cat >>conftest.$ac_ext <<_ACEOF |
| 3302 | /* end confdefs.h. */ |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3303 | |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 3304 | /* Override any gcc2 internal prototype to avoid an error. */ |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3305 | #ifdef __cplusplus |
| 3306 | extern "C" |
| 3307 | #endif |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 3308 | /* We use char because int might match the return type of a gcc2 |
| 3309 | builtin and then its argument prototype would still apply. */ |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3310 | char puts (); |
| 3311 | int |
| 3312 | main () |
| 3313 | { |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 3314 | puts (); |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3315 | ; |
| 3316 | return 0; |
| 3317 | } |
| 3318 | _ACEOF |
| 3319 | rm -f conftest.$ac_objext conftest$ac_exeext |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 3320 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 3321 | (eval $ac_link) 2>conftest.er1 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3322 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3323 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3324 | rm -f conftest.er1 |
| 3325 | cat conftest.err >&5 |
| 3326 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 3327 | (exit $ac_status); } && |
| 3328 | { ac_try='test -z "$ac_c_werror_flag" |
| 3329 | || test ! -s conftest.err' |
| 3330 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3331 | (eval $ac_try) 2>&5 |
| 3332 | ac_status=$? |
| 3333 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3334 | (exit $ac_status); }; } && |
| 3335 | { ac_try='test -s conftest$ac_exeext' |
| 3336 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3337 | (eval $ac_try) 2>&5 |
| 3338 | ac_status=$? |
| 3339 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3340 | (exit $ac_status); }; }; then |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3341 | ac_cv_lib_nsl_puts=yes |
| 3342 | else |
| 3343 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3344 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3345 | |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 3346 | ac_cv_lib_nsl_puts=no |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3347 | fi |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 3348 | rm -f conftest.err conftest.$ac_objext \ |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3349 | conftest$ac_exeext conftest.$ac_ext |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3350 | LIBS=$ac_check_lib_save_LIBS |
| 3351 | fi |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 3352 | echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_puts" >&5 |
| 3353 | echo "${ECHO_T}$ac_cv_lib_nsl_puts" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3354 | if test $ac_cv_lib_nsl_puts = yes; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3355 | cat >>confdefs.h <<_ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3356 | #define HAVE_LIBNSL 1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3357 | _ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3358 | |
| 3359 | LIBS="-lnsl $LIBS" |
| 3360 | |
| 3361 | fi |
| 3362 | |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3363 | |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 3364 | echo "$as_me:$LINENO: checking for uuid_generate in -luuid" >&5 |
| 3365 | echo $ECHO_N "checking for uuid_generate in -luuid... $ECHO_C" >&6 |
Benny Prijono | 4e48b51 | 2007-05-16 13:41:00 +0000 | [diff] [blame] | 3366 | if test "${ac_cv_lib_uuid_uuid_generate+set}" = set; then |
| 3367 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3368 | else |
| 3369 | ac_check_lib_save_LIBS=$LIBS |
| 3370 | LIBS="-luuid $LIBS" |
| 3371 | cat >conftest.$ac_ext <<_ACEOF |
| 3372 | /* confdefs.h. */ |
| 3373 | _ACEOF |
| 3374 | cat confdefs.h >>conftest.$ac_ext |
| 3375 | cat >>conftest.$ac_ext <<_ACEOF |
| 3376 | /* end confdefs.h. */ |
| 3377 | |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 3378 | /* Override any gcc2 internal prototype to avoid an error. */ |
Benny Prijono | 4e48b51 | 2007-05-16 13:41:00 +0000 | [diff] [blame] | 3379 | #ifdef __cplusplus |
| 3380 | extern "C" |
| 3381 | #endif |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 3382 | /* We use char because int might match the return type of a gcc2 |
| 3383 | builtin and then its argument prototype would still apply. */ |
Benny Prijono | 4e48b51 | 2007-05-16 13:41:00 +0000 | [diff] [blame] | 3384 | char uuid_generate (); |
| 3385 | int |
| 3386 | main () |
| 3387 | { |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 3388 | uuid_generate (); |
Benny Prijono | 4e48b51 | 2007-05-16 13:41:00 +0000 | [diff] [blame] | 3389 | ; |
| 3390 | return 0; |
| 3391 | } |
| 3392 | _ACEOF |
| 3393 | rm -f conftest.$ac_objext conftest$ac_exeext |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 3394 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 3395 | (eval $ac_link) 2>conftest.er1 |
Benny Prijono | 4e48b51 | 2007-05-16 13:41:00 +0000 | [diff] [blame] | 3396 | ac_status=$? |
| 3397 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3398 | rm -f conftest.er1 |
| 3399 | cat conftest.err >&5 |
| 3400 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 3401 | (exit $ac_status); } && |
| 3402 | { ac_try='test -z "$ac_c_werror_flag" |
| 3403 | || test ! -s conftest.err' |
| 3404 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3405 | (eval $ac_try) 2>&5 |
| 3406 | ac_status=$? |
| 3407 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3408 | (exit $ac_status); }; } && |
| 3409 | { ac_try='test -s conftest$ac_exeext' |
| 3410 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3411 | (eval $ac_try) 2>&5 |
| 3412 | ac_status=$? |
| 3413 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3414 | (exit $ac_status); }; }; then |
Benny Prijono | 4e48b51 | 2007-05-16 13:41:00 +0000 | [diff] [blame] | 3415 | ac_cv_lib_uuid_uuid_generate=yes |
| 3416 | else |
| 3417 | echo "$as_me: failed program was:" >&5 |
| 3418 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3419 | |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 3420 | ac_cv_lib_uuid_uuid_generate=no |
Benny Prijono | 4e48b51 | 2007-05-16 13:41:00 +0000 | [diff] [blame] | 3421 | fi |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 3422 | rm -f conftest.err conftest.$ac_objext \ |
Benny Prijono | 4e48b51 | 2007-05-16 13:41:00 +0000 | [diff] [blame] | 3423 | conftest$ac_exeext conftest.$ac_ext |
| 3424 | LIBS=$ac_check_lib_save_LIBS |
| 3425 | fi |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 3426 | echo "$as_me:$LINENO: result: $ac_cv_lib_uuid_uuid_generate" >&5 |
| 3427 | echo "${ECHO_T}$ac_cv_lib_uuid_uuid_generate" >&6 |
Benny Prijono | 4e48b51 | 2007-05-16 13:41:00 +0000 | [diff] [blame] | 3428 | if test $ac_cv_lib_uuid_uuid_generate = yes; then |
| 3429 | cat >>confdefs.h <<_ACEOF |
| 3430 | #define HAVE_LIBUUID 1 |
| 3431 | _ACEOF |
| 3432 | |
| 3433 | LIBS="-luuid $LIBS" |
| 3434 | |
| 3435 | fi |
| 3436 | |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 3437 | echo "$as_me:$LINENO: checking for uuid_generate in -luuid" >&5 |
| 3438 | echo $ECHO_N "checking for uuid_generate in -luuid... $ECHO_C" >&6 |
Benny Prijono | 4e48b51 | 2007-05-16 13:41:00 +0000 | [diff] [blame] | 3439 | if test "${ac_cv_lib_uuid_uuid_generate+set}" = set; then |
| 3440 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3441 | else |
| 3442 | ac_check_lib_save_LIBS=$LIBS |
| 3443 | LIBS="-luuid $LIBS" |
| 3444 | cat >conftest.$ac_ext <<_ACEOF |
| 3445 | /* confdefs.h. */ |
| 3446 | _ACEOF |
| 3447 | cat confdefs.h >>conftest.$ac_ext |
| 3448 | cat >>conftest.$ac_ext <<_ACEOF |
| 3449 | /* end confdefs.h. */ |
| 3450 | |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 3451 | /* Override any gcc2 internal prototype to avoid an error. */ |
Benny Prijono | 4e48b51 | 2007-05-16 13:41:00 +0000 | [diff] [blame] | 3452 | #ifdef __cplusplus |
| 3453 | extern "C" |
| 3454 | #endif |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 3455 | /* We use char because int might match the return type of a gcc2 |
| 3456 | builtin and then its argument prototype would still apply. */ |
Benny Prijono | 4e48b51 | 2007-05-16 13:41:00 +0000 | [diff] [blame] | 3457 | char uuid_generate (); |
| 3458 | int |
| 3459 | main () |
| 3460 | { |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 3461 | uuid_generate (); |
Benny Prijono | 4e48b51 | 2007-05-16 13:41:00 +0000 | [diff] [blame] | 3462 | ; |
| 3463 | return 0; |
| 3464 | } |
| 3465 | _ACEOF |
| 3466 | rm -f conftest.$ac_objext conftest$ac_exeext |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 3467 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 3468 | (eval $ac_link) 2>conftest.er1 |
Benny Prijono | 4e48b51 | 2007-05-16 13:41:00 +0000 | [diff] [blame] | 3469 | ac_status=$? |
| 3470 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3471 | rm -f conftest.er1 |
| 3472 | cat conftest.err >&5 |
| 3473 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 3474 | (exit $ac_status); } && |
| 3475 | { ac_try='test -z "$ac_c_werror_flag" |
| 3476 | || test ! -s conftest.err' |
| 3477 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3478 | (eval $ac_try) 2>&5 |
| 3479 | ac_status=$? |
| 3480 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3481 | (exit $ac_status); }; } && |
| 3482 | { ac_try='test -s conftest$ac_exeext' |
| 3483 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3484 | (eval $ac_try) 2>&5 |
| 3485 | ac_status=$? |
| 3486 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3487 | (exit $ac_status); }; }; then |
Benny Prijono | 4e48b51 | 2007-05-16 13:41:00 +0000 | [diff] [blame] | 3488 | ac_cv_lib_uuid_uuid_generate=yes |
| 3489 | else |
| 3490 | echo "$as_me: failed program was:" >&5 |
| 3491 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3492 | |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 3493 | ac_cv_lib_uuid_uuid_generate=no |
Benny Prijono | 4e48b51 | 2007-05-16 13:41:00 +0000 | [diff] [blame] | 3494 | fi |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 3495 | rm -f conftest.err conftest.$ac_objext \ |
Benny Prijono | 4e48b51 | 2007-05-16 13:41:00 +0000 | [diff] [blame] | 3496 | conftest$ac_exeext conftest.$ac_ext |
| 3497 | LIBS=$ac_check_lib_save_LIBS |
| 3498 | fi |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 3499 | echo "$as_me:$LINENO: result: $ac_cv_lib_uuid_uuid_generate" >&5 |
| 3500 | echo "${ECHO_T}$ac_cv_lib_uuid_uuid_generate" >&6 |
Benny Prijono | 4e48b51 | 2007-05-16 13:41:00 +0000 | [diff] [blame] | 3501 | if test $ac_cv_lib_uuid_uuid_generate = yes; then |
| 3502 | ac_has_uuid_lib=1 |
| 3503 | fi |
| 3504 | |
| 3505 | |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 3506 | echo "$as_me:$LINENO: result: Setting PJ_M_NAME to $target_cpu" >&5 |
| 3507 | echo "${ECHO_T}Setting PJ_M_NAME to $target_cpu" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3508 | cat >>confdefs.h <<_ACEOF |
| 3509 | #define PJ_M_NAME "$target_cpu" |
| 3510 | _ACEOF |
| 3511 | |
| 3512 | |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 3513 | echo "$as_me:$LINENO: checking memory alignment" >&5 |
| 3514 | echo $ECHO_N "checking memory alignment... $ECHO_C" >&6 |
Benny Prijono | 1d97162 | 2006-09-10 22:27:40 +0000 | [diff] [blame] | 3515 | case $target in |
| 3516 | ia64-* | x86_64-* ) |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3517 | cat >>confdefs.h <<\_ACEOF |
Benny Prijono | 1d97162 | 2006-09-10 22:27:40 +0000 | [diff] [blame] | 3518 | #define PJ_POOL_ALIGNMENT 8 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3519 | _ACEOF |
Benny Prijono | 1d97162 | 2006-09-10 22:27:40 +0000 | [diff] [blame] | 3520 | |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 3521 | echo "$as_me:$LINENO: result: 8 bytes" >&5 |
| 3522 | echo "${ECHO_T}8 bytes" >&6 |
Benny Prijono | 1d97162 | 2006-09-10 22:27:40 +0000 | [diff] [blame] | 3523 | ;; |
| 3524 | * ) |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3525 | cat >>confdefs.h <<\_ACEOF |
Benny Prijono | 1d97162 | 2006-09-10 22:27:40 +0000 | [diff] [blame] | 3526 | #define PJ_POOL_ALIGNMENT 4 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3527 | _ACEOF |
Benny Prijono | 1d97162 | 2006-09-10 22:27:40 +0000 | [diff] [blame] | 3528 | |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 3529 | echo "$as_me:$LINENO: result: 4 bytes (default)" >&5 |
| 3530 | echo "${ECHO_T}4 bytes (default)" >&6 |
Benny Prijono | 1d97162 | 2006-09-10 22:27:40 +0000 | [diff] [blame] | 3531 | ;; |
| 3532 | esac |
| 3533 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3534 | |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 3535 | echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 |
| 3536 | echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3537 | if test "${ac_cv_c_bigendian+set}" = set; then |
| 3538 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3539 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3540 | # See if sys/param.h defines the BYTE_ORDER macro. |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3541 | cat >conftest.$ac_ext <<_ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3542 | /* confdefs.h. */ |
| 3543 | _ACEOF |
| 3544 | cat confdefs.h >>conftest.$ac_ext |
| 3545 | cat >>conftest.$ac_ext <<_ACEOF |
| 3546 | /* end confdefs.h. */ |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3547 | #include <sys/types.h> |
| 3548 | #include <sys/param.h> |
| 3549 | |
| 3550 | int |
| 3551 | main () |
| 3552 | { |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 3553 | #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3554 | bogus endian macros |
| 3555 | #endif |
| 3556 | |
| 3557 | ; |
| 3558 | return 0; |
| 3559 | } |
| 3560 | _ACEOF |
| 3561 | rm -f conftest.$ac_objext |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 3562 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 3563 | (eval $ac_compile) 2>conftest.er1 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3564 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3565 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3566 | rm -f conftest.er1 |
| 3567 | cat conftest.err >&5 |
| 3568 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 3569 | (exit $ac_status); } && |
| 3570 | { ac_try='test -z "$ac_c_werror_flag" |
| 3571 | || test ! -s conftest.err' |
| 3572 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3573 | (eval $ac_try) 2>&5 |
| 3574 | ac_status=$? |
| 3575 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3576 | (exit $ac_status); }; } && |
| 3577 | { ac_try='test -s conftest.$ac_objext' |
| 3578 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3579 | (eval $ac_try) 2>&5 |
| 3580 | ac_status=$? |
| 3581 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3582 | (exit $ac_status); }; }; then |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3583 | # It does; now see whether it defined to BIG_ENDIAN or not. |
| 3584 | cat >conftest.$ac_ext <<_ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3585 | /* confdefs.h. */ |
| 3586 | _ACEOF |
| 3587 | cat confdefs.h >>conftest.$ac_ext |
| 3588 | cat >>conftest.$ac_ext <<_ACEOF |
| 3589 | /* end confdefs.h. */ |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3590 | #include <sys/types.h> |
| 3591 | #include <sys/param.h> |
| 3592 | |
| 3593 | int |
| 3594 | main () |
| 3595 | { |
| 3596 | #if BYTE_ORDER != BIG_ENDIAN |
| 3597 | not big endian |
| 3598 | #endif |
| 3599 | |
| 3600 | ; |
| 3601 | return 0; |
| 3602 | } |
| 3603 | _ACEOF |
| 3604 | rm -f conftest.$ac_objext |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 3605 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 3606 | (eval $ac_compile) 2>conftest.er1 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3607 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3608 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3609 | rm -f conftest.er1 |
| 3610 | cat conftest.err >&5 |
| 3611 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 3612 | (exit $ac_status); } && |
| 3613 | { ac_try='test -z "$ac_c_werror_flag" |
| 3614 | || test ! -s conftest.err' |
| 3615 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3616 | (eval $ac_try) 2>&5 |
| 3617 | ac_status=$? |
| 3618 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3619 | (exit $ac_status); }; } && |
| 3620 | { ac_try='test -s conftest.$ac_objext' |
| 3621 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3622 | (eval $ac_try) 2>&5 |
| 3623 | ac_status=$? |
| 3624 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3625 | (exit $ac_status); }; }; then |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3626 | ac_cv_c_bigendian=yes |
| 3627 | else |
| 3628 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3629 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3630 | |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 3631 | ac_cv_c_bigendian=no |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3632 | fi |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 3633 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3634 | else |
| 3635 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3636 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3637 | |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 3638 | # It does not; compile a test program. |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3639 | if test "$cross_compiling" = yes; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3640 | # try to guess the endianness by grepping values into an object file |
| 3641 | ac_cv_c_bigendian=unknown |
| 3642 | cat >conftest.$ac_ext <<_ACEOF |
| 3643 | /* confdefs.h. */ |
| 3644 | _ACEOF |
| 3645 | cat confdefs.h >>conftest.$ac_ext |
| 3646 | cat >>conftest.$ac_ext <<_ACEOF |
| 3647 | /* end confdefs.h. */ |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 3648 | short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; |
| 3649 | short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3650 | void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; } |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 3651 | short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; |
| 3652 | short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3653 | void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; } |
| 3654 | int |
| 3655 | main () |
| 3656 | { |
| 3657 | _ascii (); _ebcdic (); |
| 3658 | ; |
| 3659 | return 0; |
| 3660 | } |
| 3661 | _ACEOF |
| 3662 | rm -f conftest.$ac_objext |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 3663 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 3664 | (eval $ac_compile) 2>conftest.er1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3665 | ac_status=$? |
| 3666 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3667 | rm -f conftest.er1 |
| 3668 | cat conftest.err >&5 |
| 3669 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 3670 | (exit $ac_status); } && |
| 3671 | { ac_try='test -z "$ac_c_werror_flag" |
| 3672 | || test ! -s conftest.err' |
| 3673 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3674 | (eval $ac_try) 2>&5 |
| 3675 | ac_status=$? |
| 3676 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3677 | (exit $ac_status); }; } && |
| 3678 | { ac_try='test -s conftest.$ac_objext' |
| 3679 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3680 | (eval $ac_try) 2>&5 |
| 3681 | ac_status=$? |
| 3682 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3683 | (exit $ac_status); }; }; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3684 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then |
| 3685 | ac_cv_c_bigendian=yes |
| 3686 | fi |
| 3687 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then |
| 3688 | if test "$ac_cv_c_bigendian" = unknown; then |
| 3689 | ac_cv_c_bigendian=no |
| 3690 | else |
| 3691 | # finding both strings is unlikely to happen, but who knows? |
| 3692 | ac_cv_c_bigendian=unknown |
| 3693 | fi |
| 3694 | fi |
| 3695 | else |
| 3696 | echo "$as_me: failed program was:" >&5 |
| 3697 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3698 | |
| 3699 | fi |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 3700 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3701 | else |
| 3702 | cat >conftest.$ac_ext <<_ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3703 | /* confdefs.h. */ |
| 3704 | _ACEOF |
| 3705 | cat confdefs.h >>conftest.$ac_ext |
| 3706 | cat >>conftest.$ac_ext <<_ACEOF |
| 3707 | /* end confdefs.h. */ |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3708 | int |
| 3709 | main () |
| 3710 | { |
| 3711 | /* Are we little or big endian? From Harbison&Steele. */ |
| 3712 | union |
| 3713 | { |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 3714 | long l; |
| 3715 | char c[sizeof (long)]; |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3716 | } u; |
| 3717 | u.l = 1; |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 3718 | exit (u.c[sizeof (long) - 1] == 1); |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3719 | } |
| 3720 | _ACEOF |
| 3721 | rm -f conftest$ac_exeext |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 3722 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 3723 | (eval $ac_link) 2>&5 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3724 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3725 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3726 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 3727 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3728 | (eval $ac_try) 2>&5 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3729 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3730 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3731 | (exit $ac_status); }; }; then |
| 3732 | ac_cv_c_bigendian=no |
| 3733 | else |
| 3734 | echo "$as_me: program exited with status $ac_status" >&5 |
| 3735 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3736 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3737 | |
| 3738 | ( exit $ac_status ) |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3739 | ac_cv_c_bigendian=yes |
| 3740 | fi |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 3741 | rm -f core *.core 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] | 3742 | fi |
| 3743 | fi |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 3744 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3745 | fi |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 3746 | echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 |
| 3747 | echo "${ECHO_T}$ac_cv_c_bigendian" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3748 | case $ac_cv_c_bigendian in |
| 3749 | yes) |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3750 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3751 | cat >>confdefs.h <<\_ACEOF |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame] | 3752 | #define WORDS_BIGENDIAN 1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3753 | _ACEOF |
| 3754 | ;; |
| 3755 | no) |
| 3756 | ;; |
| 3757 | *) |
| 3758 | { { echo "$as_me:$LINENO: error: unknown endianness |
| 3759 | presetting ac_cv_c_bigendian=no (or yes) will help" >&5 |
| 3760 | echo "$as_me: error: unknown endianness |
| 3761 | presetting ac_cv_c_bigendian=no (or yes) will help" >&2;} |
| 3762 | { (exit 1); exit 1; }; } ;; |
| 3763 | esac |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3764 | |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3765 | |
| 3766 | case $target in |
| 3767 | *mingw* | *cygw* | *win32* | *w32* ) |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3768 | cat >>confdefs.h <<\_ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3769 | #define PJ_WIN32 1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3770 | _ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3771 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3772 | cat >>confdefs.h <<\_ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3773 | #define PJ_WIN32_WINNT 0x0400 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3774 | _ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3775 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3776 | cat >>confdefs.h <<\_ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3777 | #define WIN32_LEAN_AND_MEAN 1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3778 | _ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3779 | |
| 3780 | ;; |
| 3781 | *darwin*) |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3782 | cat >>confdefs.h <<\_ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3783 | #define PJ_DARWINOS 1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3784 | _ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3785 | |
| 3786 | ;; |
| 3787 | *linux*) |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3788 | cat >>confdefs.h <<\_ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3789 | #define PJ_LINUX 1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3790 | _ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3791 | |
| 3792 | ;; |
| 3793 | *rtems*) |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3794 | cat >>confdefs.h <<\_ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3795 | #define PJ_RTEMS 1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3796 | _ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3797 | |
| 3798 | ;; |
| 3799 | *sunos* | *solaris* ) |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3800 | cat >>confdefs.h <<\_ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3801 | #define PJ_SUNOS 1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3802 | _ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3803 | |
| 3804 | ;; |
| 3805 | *) |
| 3806 | ;; |
| 3807 | esac |
| 3808 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3809 | |
| 3810 | |
| 3811 | |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 3812 | # Check whether --enable-floating-point or --disable-floating-point was given. |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3813 | if test "${enable_floating_point+set}" = set; then |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 3814 | enableval="$enable_floating_point" |
| 3815 | if test "$enable_floating_point" = "no"; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3816 | cat >>confdefs.h <<\_ACEOF |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3817 | #define PJ_HAS_FLOATING_POINT 0 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3818 | _ACEOF |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3819 | |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 3820 | echo "$as_me:$LINENO: result: Checking if floating point is disabled... yes" >&5 |
| 3821 | echo "${ECHO_T}Checking if floating point is disabled... yes" >&6 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3822 | fi |
| 3823 | else |
| 3824 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3825 | cat >>confdefs.h <<\_ACEOF |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3826 | #define PJ_HAS_FLOATING_POINT 1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3827 | _ACEOF |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3828 | |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 3829 | echo "$as_me:$LINENO: result: Checking if floating point is disabled... no" >&5 |
| 3830 | echo "${ECHO_T}Checking if floating point is disabled... no" >&6 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3831 | |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 3832 | echo "$as_me:$LINENO: checking for fmod in -lm" >&5 |
| 3833 | echo $ECHO_N "checking for fmod in -lm... $ECHO_C" >&6 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3834 | if test "${ac_cv_lib_m_fmod+set}" = set; then |
| 3835 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3836 | else |
| 3837 | ac_check_lib_save_LIBS=$LIBS |
| 3838 | LIBS="-lm $LIBS" |
| 3839 | cat >conftest.$ac_ext <<_ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3840 | /* confdefs.h. */ |
| 3841 | _ACEOF |
| 3842 | cat confdefs.h >>conftest.$ac_ext |
| 3843 | cat >>conftest.$ac_ext <<_ACEOF |
| 3844 | /* end confdefs.h. */ |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3845 | |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 3846 | /* Override any gcc2 internal prototype to avoid an error. */ |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3847 | #ifdef __cplusplus |
| 3848 | extern "C" |
| 3849 | #endif |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 3850 | /* We use char because int might match the return type of a gcc2 |
| 3851 | builtin and then its argument prototype would still apply. */ |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3852 | char fmod (); |
| 3853 | int |
| 3854 | main () |
| 3855 | { |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 3856 | fmod (); |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3857 | ; |
| 3858 | return 0; |
| 3859 | } |
| 3860 | _ACEOF |
| 3861 | rm -f conftest.$ac_objext conftest$ac_exeext |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 3862 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 3863 | (eval $ac_link) 2>conftest.er1 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3864 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3865 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3866 | rm -f conftest.er1 |
| 3867 | cat conftest.err >&5 |
| 3868 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 3869 | (exit $ac_status); } && |
| 3870 | { ac_try='test -z "$ac_c_werror_flag" |
| 3871 | || test ! -s conftest.err' |
| 3872 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3873 | (eval $ac_try) 2>&5 |
| 3874 | ac_status=$? |
| 3875 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3876 | (exit $ac_status); }; } && |
| 3877 | { ac_try='test -s conftest$ac_exeext' |
| 3878 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3879 | (eval $ac_try) 2>&5 |
| 3880 | ac_status=$? |
| 3881 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3882 | (exit $ac_status); }; }; then |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3883 | ac_cv_lib_m_fmod=yes |
| 3884 | else |
| 3885 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3886 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3887 | |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 3888 | ac_cv_lib_m_fmod=no |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3889 | fi |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 3890 | rm -f conftest.err conftest.$ac_objext \ |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3891 | conftest$ac_exeext conftest.$ac_ext |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3892 | LIBS=$ac_check_lib_save_LIBS |
| 3893 | fi |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 3894 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_fmod" >&5 |
| 3895 | echo "${ECHO_T}$ac_cv_lib_m_fmod" >&6 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3896 | if test $ac_cv_lib_m_fmod = yes; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3897 | cat >>confdefs.h <<_ACEOF |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3898 | #define HAVE_LIBM 1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3899 | _ACEOF |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3900 | |
| 3901 | LIBS="-lm $LIBS" |
| 3902 | |
| 3903 | fi |
| 3904 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3905 | |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 3906 | fi; |
| 3907 | |
| 3908 | |
| 3909 | ac_ext=c |
| 3910 | ac_cpp='$CPP $CPPFLAGS' |
| 3911 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3912 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3913 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3914 | echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
| 3915 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 |
| 3916 | # On Suns, sometimes $CPP names a directory. |
| 3917 | if test -n "$CPP" && test -d "$CPP"; then |
| 3918 | CPP= |
| 3919 | fi |
| 3920 | if test -z "$CPP"; then |
| 3921 | if test "${ac_cv_prog_CPP+set}" = set; then |
| 3922 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3923 | else |
| 3924 | # Double quotes because CPP needs to be expanded |
| 3925 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
| 3926 | do |
| 3927 | ac_preproc_ok=false |
| 3928 | for ac_c_preproc_warn_flag in '' yes |
| 3929 | do |
| 3930 | # Use a header file that comes with gcc, so configuring glibc |
| 3931 | # with a fresh cross-compiler works. |
| 3932 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 3933 | # <limits.h> exists even on freestanding compilers. |
| 3934 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 3935 | # not just through cpp. "Syntax error" is here to catch this case. |
| 3936 | cat >conftest.$ac_ext <<_ACEOF |
| 3937 | /* confdefs.h. */ |
| 3938 | _ACEOF |
| 3939 | cat confdefs.h >>conftest.$ac_ext |
| 3940 | cat >>conftest.$ac_ext <<_ACEOF |
| 3941 | /* end confdefs.h. */ |
| 3942 | #ifdef __STDC__ |
| 3943 | # include <limits.h> |
| 3944 | #else |
| 3945 | # include <assert.h> |
| 3946 | #endif |
| 3947 | Syntax error |
| 3948 | _ACEOF |
| 3949 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 3950 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 3951 | ac_status=$? |
| 3952 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3953 | rm -f conftest.er1 |
| 3954 | cat conftest.err >&5 |
| 3955 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3956 | (exit $ac_status); } >/dev/null; then |
| 3957 | if test -s conftest.err; then |
| 3958 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 3959 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 3960 | else |
| 3961 | ac_cpp_err= |
| 3962 | fi |
| 3963 | else |
| 3964 | ac_cpp_err=yes |
| 3965 | fi |
| 3966 | if test -z "$ac_cpp_err"; then |
| 3967 | : |
| 3968 | else |
| 3969 | echo "$as_me: failed program was:" >&5 |
| 3970 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3971 | |
| 3972 | # Broken: fails on valid input. |
| 3973 | continue |
| 3974 | fi |
| 3975 | rm -f conftest.err conftest.$ac_ext |
| 3976 | |
| 3977 | # OK, works on sane cases. Now check whether non-existent headers |
| 3978 | # can be detected and how. |
| 3979 | cat >conftest.$ac_ext <<_ACEOF |
| 3980 | /* confdefs.h. */ |
| 3981 | _ACEOF |
| 3982 | cat confdefs.h >>conftest.$ac_ext |
| 3983 | cat >>conftest.$ac_ext <<_ACEOF |
| 3984 | /* end confdefs.h. */ |
| 3985 | #include <ac_nonexistent.h> |
| 3986 | _ACEOF |
| 3987 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 3988 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 3989 | ac_status=$? |
| 3990 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3991 | rm -f conftest.er1 |
| 3992 | cat conftest.err >&5 |
| 3993 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3994 | (exit $ac_status); } >/dev/null; then |
| 3995 | if test -s conftest.err; then |
| 3996 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 3997 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 3998 | else |
| 3999 | ac_cpp_err= |
| 4000 | fi |
| 4001 | else |
| 4002 | ac_cpp_err=yes |
| 4003 | fi |
| 4004 | if test -z "$ac_cpp_err"; then |
| 4005 | # Broken: success on invalid input. |
| 4006 | continue |
| 4007 | else |
| 4008 | echo "$as_me: failed program was:" >&5 |
| 4009 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4010 | |
| 4011 | # Passes both tests. |
| 4012 | ac_preproc_ok=: |
| 4013 | break |
| 4014 | fi |
| 4015 | rm -f conftest.err conftest.$ac_ext |
| 4016 | |
| 4017 | done |
| 4018 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 4019 | rm -f conftest.err conftest.$ac_ext |
| 4020 | if $ac_preproc_ok; then |
| 4021 | break |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 4022 | fi |
| 4023 | |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 4024 | done |
| 4025 | ac_cv_prog_CPP=$CPP |
| 4026 | |
| 4027 | fi |
| 4028 | CPP=$ac_cv_prog_CPP |
| 4029 | else |
| 4030 | ac_cv_prog_CPP=$CPP |
| 4031 | fi |
| 4032 | echo "$as_me:$LINENO: result: $CPP" >&5 |
| 4033 | echo "${ECHO_T}$CPP" >&6 |
| 4034 | ac_preproc_ok=false |
| 4035 | for ac_c_preproc_warn_flag in '' yes |
| 4036 | do |
| 4037 | # Use a header file that comes with gcc, so configuring glibc |
| 4038 | # with a fresh cross-compiler works. |
| 4039 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 4040 | # <limits.h> exists even on freestanding compilers. |
| 4041 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 4042 | # not just through cpp. "Syntax error" is here to catch this case. |
| 4043 | cat >conftest.$ac_ext <<_ACEOF |
| 4044 | /* confdefs.h. */ |
| 4045 | _ACEOF |
| 4046 | cat confdefs.h >>conftest.$ac_ext |
| 4047 | cat >>conftest.$ac_ext <<_ACEOF |
| 4048 | /* end confdefs.h. */ |
| 4049 | #ifdef __STDC__ |
| 4050 | # include <limits.h> |
| 4051 | #else |
| 4052 | # include <assert.h> |
| 4053 | #endif |
| 4054 | Syntax error |
| 4055 | _ACEOF |
| 4056 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 4057 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 4058 | ac_status=$? |
| 4059 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4060 | rm -f conftest.er1 |
| 4061 | cat conftest.err >&5 |
| 4062 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4063 | (exit $ac_status); } >/dev/null; then |
| 4064 | if test -s conftest.err; then |
| 4065 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 4066 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 4067 | else |
| 4068 | ac_cpp_err= |
| 4069 | fi |
| 4070 | else |
| 4071 | ac_cpp_err=yes |
| 4072 | fi |
| 4073 | if test -z "$ac_cpp_err"; then |
| 4074 | : |
| 4075 | else |
| 4076 | echo "$as_me: failed program was:" >&5 |
| 4077 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4078 | |
| 4079 | # Broken: fails on valid input. |
| 4080 | continue |
| 4081 | fi |
| 4082 | rm -f conftest.err conftest.$ac_ext |
| 4083 | |
| 4084 | # OK, works on sane cases. Now check whether non-existent headers |
| 4085 | # can be detected and how. |
| 4086 | cat >conftest.$ac_ext <<_ACEOF |
| 4087 | /* confdefs.h. */ |
| 4088 | _ACEOF |
| 4089 | cat confdefs.h >>conftest.$ac_ext |
| 4090 | cat >>conftest.$ac_ext <<_ACEOF |
| 4091 | /* end confdefs.h. */ |
| 4092 | #include <ac_nonexistent.h> |
| 4093 | _ACEOF |
| 4094 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 4095 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 4096 | ac_status=$? |
| 4097 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4098 | rm -f conftest.er1 |
| 4099 | cat conftest.err >&5 |
| 4100 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4101 | (exit $ac_status); } >/dev/null; then |
| 4102 | if test -s conftest.err; then |
| 4103 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 4104 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 4105 | else |
| 4106 | ac_cpp_err= |
| 4107 | fi |
| 4108 | else |
| 4109 | ac_cpp_err=yes |
| 4110 | fi |
| 4111 | if test -z "$ac_cpp_err"; then |
| 4112 | # Broken: success on invalid input. |
| 4113 | continue |
| 4114 | else |
| 4115 | echo "$as_me: failed program was:" >&5 |
| 4116 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4117 | |
| 4118 | # Passes both tests. |
| 4119 | ac_preproc_ok=: |
| 4120 | break |
| 4121 | fi |
| 4122 | rm -f conftest.err conftest.$ac_ext |
| 4123 | |
| 4124 | done |
| 4125 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 4126 | rm -f conftest.err conftest.$ac_ext |
| 4127 | if $ac_preproc_ok; then |
| 4128 | : |
| 4129 | else |
| 4130 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check |
| 4131 | See \`config.log' for more details." >&5 |
| 4132 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check |
| 4133 | See \`config.log' for more details." >&2;} |
| 4134 | { (exit 1); exit 1; }; } |
| 4135 | fi |
| 4136 | |
| 4137 | ac_ext=c |
| 4138 | ac_cpp='$CPP $CPPFLAGS' |
| 4139 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 4140 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 4141 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 4142 | |
| 4143 | |
| 4144 | echo "$as_me:$LINENO: checking for egrep" >&5 |
| 4145 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6 |
| 4146 | if test "${ac_cv_prog_egrep+set}" = set; then |
| 4147 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4148 | else |
| 4149 | if echo a | (grep -E '(a|b)') >/dev/null 2>&1 |
| 4150 | then ac_cv_prog_egrep='grep -E' |
| 4151 | else ac_cv_prog_egrep='egrep' |
| 4152 | fi |
| 4153 | fi |
| 4154 | echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 |
| 4155 | echo "${ECHO_T}$ac_cv_prog_egrep" >&6 |
| 4156 | EGREP=$ac_cv_prog_egrep |
| 4157 | |
| 4158 | |
| 4159 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
| 4160 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 |
| 4161 | if test "${ac_cv_header_stdc+set}" = set; then |
| 4162 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4163 | else |
| 4164 | cat >conftest.$ac_ext <<_ACEOF |
| 4165 | /* confdefs.h. */ |
| 4166 | _ACEOF |
| 4167 | cat confdefs.h >>conftest.$ac_ext |
| 4168 | cat >>conftest.$ac_ext <<_ACEOF |
| 4169 | /* end confdefs.h. */ |
| 4170 | #include <stdlib.h> |
| 4171 | #include <stdarg.h> |
| 4172 | #include <string.h> |
| 4173 | #include <float.h> |
| 4174 | |
| 4175 | int |
| 4176 | main () |
| 4177 | { |
| 4178 | |
| 4179 | ; |
| 4180 | return 0; |
| 4181 | } |
| 4182 | _ACEOF |
| 4183 | rm -f conftest.$ac_objext |
| 4184 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4185 | (eval $ac_compile) 2>conftest.er1 |
| 4186 | ac_status=$? |
| 4187 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4188 | rm -f conftest.er1 |
| 4189 | cat conftest.err >&5 |
| 4190 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4191 | (exit $ac_status); } && |
| 4192 | { ac_try='test -z "$ac_c_werror_flag" |
| 4193 | || test ! -s conftest.err' |
| 4194 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4195 | (eval $ac_try) 2>&5 |
| 4196 | ac_status=$? |
| 4197 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4198 | (exit $ac_status); }; } && |
| 4199 | { ac_try='test -s conftest.$ac_objext' |
| 4200 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4201 | (eval $ac_try) 2>&5 |
| 4202 | ac_status=$? |
| 4203 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4204 | (exit $ac_status); }; }; then |
| 4205 | ac_cv_header_stdc=yes |
| 4206 | else |
| 4207 | echo "$as_me: failed program was:" >&5 |
| 4208 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4209 | |
| 4210 | ac_cv_header_stdc=no |
| 4211 | fi |
| 4212 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4213 | |
| 4214 | if test $ac_cv_header_stdc = yes; then |
| 4215 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
| 4216 | cat >conftest.$ac_ext <<_ACEOF |
| 4217 | /* confdefs.h. */ |
| 4218 | _ACEOF |
| 4219 | cat confdefs.h >>conftest.$ac_ext |
| 4220 | cat >>conftest.$ac_ext <<_ACEOF |
| 4221 | /* end confdefs.h. */ |
| 4222 | #include <string.h> |
| 4223 | |
| 4224 | _ACEOF |
| 4225 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 4226 | $EGREP "memchr" >/dev/null 2>&1; then |
| 4227 | : |
| 4228 | else |
| 4229 | ac_cv_header_stdc=no |
| 4230 | fi |
| 4231 | rm -f conftest* |
| 4232 | |
| 4233 | fi |
| 4234 | |
| 4235 | if test $ac_cv_header_stdc = yes; then |
| 4236 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
| 4237 | cat >conftest.$ac_ext <<_ACEOF |
| 4238 | /* confdefs.h. */ |
| 4239 | _ACEOF |
| 4240 | cat confdefs.h >>conftest.$ac_ext |
| 4241 | cat >>conftest.$ac_ext <<_ACEOF |
| 4242 | /* end confdefs.h. */ |
| 4243 | #include <stdlib.h> |
| 4244 | |
| 4245 | _ACEOF |
| 4246 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 4247 | $EGREP "free" >/dev/null 2>&1; then |
| 4248 | : |
| 4249 | else |
| 4250 | ac_cv_header_stdc=no |
| 4251 | fi |
| 4252 | rm -f conftest* |
| 4253 | |
| 4254 | fi |
| 4255 | |
| 4256 | if test $ac_cv_header_stdc = yes; then |
| 4257 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
| 4258 | if test "$cross_compiling" = yes; then |
| 4259 | : |
| 4260 | else |
| 4261 | cat >conftest.$ac_ext <<_ACEOF |
| 4262 | /* confdefs.h. */ |
| 4263 | _ACEOF |
| 4264 | cat confdefs.h >>conftest.$ac_ext |
| 4265 | cat >>conftest.$ac_ext <<_ACEOF |
| 4266 | /* end confdefs.h. */ |
| 4267 | #include <ctype.h> |
| 4268 | #if ((' ' & 0x0FF) == 0x020) |
| 4269 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 4270 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 4271 | #else |
| 4272 | # define ISLOWER(c) \ |
| 4273 | (('a' <= (c) && (c) <= 'i') \ |
| 4274 | || ('j' <= (c) && (c) <= 'r') \ |
| 4275 | || ('s' <= (c) && (c) <= 'z')) |
| 4276 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 4277 | #endif |
| 4278 | |
| 4279 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 4280 | int |
| 4281 | main () |
| 4282 | { |
| 4283 | int i; |
| 4284 | for (i = 0; i < 256; i++) |
| 4285 | if (XOR (islower (i), ISLOWER (i)) |
| 4286 | || toupper (i) != TOUPPER (i)) |
| 4287 | exit(2); |
| 4288 | exit (0); |
| 4289 | } |
| 4290 | _ACEOF |
| 4291 | rm -f conftest$ac_exeext |
| 4292 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 4293 | (eval $ac_link) 2>&5 |
| 4294 | ac_status=$? |
| 4295 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4296 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 4297 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4298 | (eval $ac_try) 2>&5 |
| 4299 | ac_status=$? |
| 4300 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4301 | (exit $ac_status); }; }; then |
| 4302 | : |
| 4303 | else |
| 4304 | echo "$as_me: program exited with status $ac_status" >&5 |
| 4305 | echo "$as_me: failed program was:" >&5 |
| 4306 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4307 | |
| 4308 | ( exit $ac_status ) |
| 4309 | ac_cv_header_stdc=no |
| 4310 | fi |
| 4311 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 4312 | fi |
| 4313 | fi |
| 4314 | fi |
| 4315 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
| 4316 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 |
| 4317 | if test $ac_cv_header_stdc = yes; then |
| 4318 | |
| 4319 | cat >>confdefs.h <<\_ACEOF |
| 4320 | #define STDC_HEADERS 1 |
| 4321 | _ACEOF |
| 4322 | |
| 4323 | fi |
| 4324 | |
| 4325 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
| 4326 | |
| 4327 | |
| 4328 | |
| 4329 | |
| 4330 | |
| 4331 | |
| 4332 | |
| 4333 | |
| 4334 | |
| 4335 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
| 4336 | inttypes.h stdint.h unistd.h |
| 4337 | do |
| 4338 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 4339 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 4340 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 4341 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 4342 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4343 | else |
| 4344 | cat >conftest.$ac_ext <<_ACEOF |
| 4345 | /* confdefs.h. */ |
| 4346 | _ACEOF |
| 4347 | cat confdefs.h >>conftest.$ac_ext |
| 4348 | cat >>conftest.$ac_ext <<_ACEOF |
| 4349 | /* end confdefs.h. */ |
| 4350 | $ac_includes_default |
| 4351 | |
| 4352 | #include <$ac_header> |
| 4353 | _ACEOF |
| 4354 | rm -f conftest.$ac_objext |
| 4355 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4356 | (eval $ac_compile) 2>conftest.er1 |
| 4357 | ac_status=$? |
| 4358 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4359 | rm -f conftest.er1 |
| 4360 | cat conftest.err >&5 |
| 4361 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4362 | (exit $ac_status); } && |
| 4363 | { ac_try='test -z "$ac_c_werror_flag" |
| 4364 | || test ! -s conftest.err' |
| 4365 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4366 | (eval $ac_try) 2>&5 |
| 4367 | ac_status=$? |
| 4368 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4369 | (exit $ac_status); }; } && |
| 4370 | { ac_try='test -s conftest.$ac_objext' |
| 4371 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4372 | (eval $ac_try) 2>&5 |
| 4373 | ac_status=$? |
| 4374 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4375 | (exit $ac_status); }; }; then |
| 4376 | eval "$as_ac_Header=yes" |
| 4377 | else |
| 4378 | echo "$as_me: failed program was:" >&5 |
| 4379 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4380 | |
| 4381 | eval "$as_ac_Header=no" |
| 4382 | fi |
| 4383 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4384 | fi |
| 4385 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 4386 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 4387 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 4388 | cat >>confdefs.h <<_ACEOF |
| 4389 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 4390 | _ACEOF |
| 4391 | |
| 4392 | fi |
| 4393 | |
| 4394 | done |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4395 | |
| 4396 | |
| 4397 | if test "${ac_cv_header_arpa_inet_h+set}" = set; then |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 4398 | echo "$as_me:$LINENO: checking for arpa/inet.h" >&5 |
| 4399 | echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4400 | if test "${ac_cv_header_arpa_inet_h+set}" = set; then |
| 4401 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4402 | fi |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 4403 | echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5 |
| 4404 | echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4405 | else |
| 4406 | # Is the header compilable? |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 4407 | echo "$as_me:$LINENO: checking arpa/inet.h usability" >&5 |
| 4408 | echo $ECHO_N "checking arpa/inet.h usability... $ECHO_C" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4409 | cat >conftest.$ac_ext <<_ACEOF |
| 4410 | /* confdefs.h. */ |
| 4411 | _ACEOF |
| 4412 | cat confdefs.h >>conftest.$ac_ext |
| 4413 | cat >>conftest.$ac_ext <<_ACEOF |
| 4414 | /* end confdefs.h. */ |
| 4415 | $ac_includes_default |
| 4416 | #include <arpa/inet.h> |
| 4417 | _ACEOF |
| 4418 | rm -f conftest.$ac_objext |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 4419 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4420 | (eval $ac_compile) 2>conftest.er1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4421 | ac_status=$? |
| 4422 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4423 | rm -f conftest.er1 |
| 4424 | cat conftest.err >&5 |
| 4425 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 4426 | (exit $ac_status); } && |
| 4427 | { ac_try='test -z "$ac_c_werror_flag" |
| 4428 | || test ! -s conftest.err' |
| 4429 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4430 | (eval $ac_try) 2>&5 |
| 4431 | ac_status=$? |
| 4432 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4433 | (exit $ac_status); }; } && |
| 4434 | { ac_try='test -s conftest.$ac_objext' |
| 4435 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4436 | (eval $ac_try) 2>&5 |
| 4437 | ac_status=$? |
| 4438 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4439 | (exit $ac_status); }; }; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4440 | ac_header_compiler=yes |
| 4441 | else |
| 4442 | echo "$as_me: failed program was:" >&5 |
| 4443 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4444 | |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 4445 | ac_header_compiler=no |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4446 | fi |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 4447 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4448 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 4449 | echo "${ECHO_T}$ac_header_compiler" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4450 | |
| 4451 | # Is the header present? |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 4452 | echo "$as_me:$LINENO: checking arpa/inet.h presence" >&5 |
| 4453 | echo $ECHO_N "checking arpa/inet.h presence... $ECHO_C" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4454 | cat >conftest.$ac_ext <<_ACEOF |
| 4455 | /* confdefs.h. */ |
| 4456 | _ACEOF |
| 4457 | cat confdefs.h >>conftest.$ac_ext |
| 4458 | cat >>conftest.$ac_ext <<_ACEOF |
| 4459 | /* end confdefs.h. */ |
| 4460 | #include <arpa/inet.h> |
| 4461 | _ACEOF |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 4462 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 4463 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4464 | ac_status=$? |
| 4465 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4466 | rm -f conftest.er1 |
| 4467 | cat conftest.err >&5 |
| 4468 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 4469 | (exit $ac_status); } >/dev/null; then |
| 4470 | if test -s conftest.err; then |
| 4471 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 4472 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 4473 | else |
| 4474 | ac_cpp_err= |
| 4475 | fi |
| 4476 | else |
| 4477 | ac_cpp_err=yes |
| 4478 | fi |
| 4479 | if test -z "$ac_cpp_err"; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4480 | ac_header_preproc=yes |
| 4481 | else |
| 4482 | echo "$as_me: failed program was:" >&5 |
| 4483 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4484 | |
| 4485 | ac_header_preproc=no |
| 4486 | fi |
| 4487 | rm -f conftest.err conftest.$ac_ext |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 4488 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 4489 | echo "${ECHO_T}$ac_header_preproc" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4490 | |
| 4491 | # So? What about this header? |
| 4492 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 4493 | yes:no: ) |
| 4494 | { echo "$as_me:$LINENO: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 4495 | echo "$as_me: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 4496 | { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the compiler's result" >&5 |
| 4497 | echo "$as_me: WARNING: arpa/inet.h: proceeding with the compiler's result" >&2;} |
| 4498 | ac_header_preproc=yes |
| 4499 | ;; |
| 4500 | no:yes:* ) |
| 4501 | { echo "$as_me:$LINENO: WARNING: arpa/inet.h: present but cannot be compiled" >&5 |
| 4502 | echo "$as_me: WARNING: arpa/inet.h: present but cannot be compiled" >&2;} |
| 4503 | { echo "$as_me:$LINENO: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&5 |
| 4504 | echo "$as_me: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&2;} |
| 4505 | { echo "$as_me:$LINENO: WARNING: arpa/inet.h: see the Autoconf documentation" >&5 |
| 4506 | echo "$as_me: WARNING: arpa/inet.h: see the Autoconf documentation" >&2;} |
| 4507 | { echo "$as_me:$LINENO: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 4508 | echo "$as_me: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 4509 | { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&5 |
| 4510 | echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&2;} |
| 4511 | { echo "$as_me:$LINENO: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&5 |
| 4512 | echo "$as_me: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&2;} |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 4513 | ( |
| 4514 | cat <<\_ASBOX |
| 4515 | ## ------------------------------------ ## |
| 4516 | ## Report this to the pjproject lists. ## |
| 4517 | ## ------------------------------------ ## |
| 4518 | _ASBOX |
| 4519 | ) | |
| 4520 | sed "s/^/$as_me: WARNING: /" >&2 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4521 | ;; |
| 4522 | esac |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 4523 | echo "$as_me:$LINENO: checking for arpa/inet.h" >&5 |
| 4524 | echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 4525 | if test "${ac_cv_header_arpa_inet_h+set}" = set; then |
| 4526 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 4527 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4528 | ac_cv_header_arpa_inet_h=$ac_header_preproc |
| 4529 | fi |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 4530 | echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5 |
| 4531 | echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4532 | |
| 4533 | fi |
| 4534 | if test $ac_cv_header_arpa_inet_h = yes; then |
| 4535 | cat >>confdefs.h <<\_ACEOF |
| 4536 | #define PJ_HAS_ARPA_INET_H 1 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 4537 | _ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4538 | |
| 4539 | fi |
| 4540 | |
| 4541 | |
| 4542 | if test "${ac_cv_header_assert_h+set}" = set; then |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 4543 | echo "$as_me:$LINENO: checking for assert.h" >&5 |
| 4544 | echo $ECHO_N "checking for assert.h... $ECHO_C" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4545 | if test "${ac_cv_header_assert_h+set}" = set; then |
| 4546 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4547 | fi |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 4548 | echo "$as_me:$LINENO: result: $ac_cv_header_assert_h" >&5 |
| 4549 | echo "${ECHO_T}$ac_cv_header_assert_h" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4550 | else |
| 4551 | # Is the header compilable? |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 4552 | echo "$as_me:$LINENO: checking assert.h usability" >&5 |
| 4553 | echo $ECHO_N "checking assert.h usability... $ECHO_C" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4554 | cat >conftest.$ac_ext <<_ACEOF |
| 4555 | /* confdefs.h. */ |
| 4556 | _ACEOF |
| 4557 | cat confdefs.h >>conftest.$ac_ext |
| 4558 | cat >>conftest.$ac_ext <<_ACEOF |
| 4559 | /* end confdefs.h. */ |
| 4560 | $ac_includes_default |
| 4561 | #include <assert.h> |
| 4562 | _ACEOF |
| 4563 | rm -f conftest.$ac_objext |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 4564 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4565 | (eval $ac_compile) 2>conftest.er1 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 4566 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4567 | grep -v '^ *+' conftest.er1 >conftest.err |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 4568 | rm -f conftest.er1 |
| 4569 | cat conftest.err >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4570 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 4571 | (exit $ac_status); } && |
| 4572 | { ac_try='test -z "$ac_c_werror_flag" |
| 4573 | || test ! -s conftest.err' |
| 4574 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4575 | (eval $ac_try) 2>&5 |
| 4576 | ac_status=$? |
| 4577 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4578 | (exit $ac_status); }; } && |
| 4579 | { ac_try='test -s conftest.$ac_objext' |
| 4580 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4581 | (eval $ac_try) 2>&5 |
| 4582 | ac_status=$? |
| 4583 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4584 | (exit $ac_status); }; }; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4585 | ac_header_compiler=yes |
| 4586 | else |
| 4587 | echo "$as_me: failed program was:" >&5 |
| 4588 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4589 | |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 4590 | ac_header_compiler=no |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4591 | fi |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 4592 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4593 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 4594 | echo "${ECHO_T}$ac_header_compiler" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4595 | |
| 4596 | # Is the header present? |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 4597 | echo "$as_me:$LINENO: checking assert.h presence" >&5 |
| 4598 | echo $ECHO_N "checking assert.h presence... $ECHO_C" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4599 | cat >conftest.$ac_ext <<_ACEOF |
| 4600 | /* confdefs.h. */ |
| 4601 | _ACEOF |
| 4602 | cat confdefs.h >>conftest.$ac_ext |
| 4603 | cat >>conftest.$ac_ext <<_ACEOF |
| 4604 | /* end confdefs.h. */ |
| 4605 | #include <assert.h> |
| 4606 | _ACEOF |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 4607 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 4608 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4609 | ac_status=$? |
| 4610 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4611 | rm -f conftest.er1 |
| 4612 | cat conftest.err >&5 |
| 4613 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 4614 | (exit $ac_status); } >/dev/null; then |
| 4615 | if test -s conftest.err; then |
| 4616 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 4617 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 4618 | else |
| 4619 | ac_cpp_err= |
| 4620 | fi |
| 4621 | else |
| 4622 | ac_cpp_err=yes |
| 4623 | fi |
| 4624 | if test -z "$ac_cpp_err"; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4625 | ac_header_preproc=yes |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 4626 | else |
| 4627 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4628 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4629 | |
| 4630 | ac_header_preproc=no |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 4631 | fi |
| 4632 | rm -f conftest.err conftest.$ac_ext |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 4633 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 4634 | echo "${ECHO_T}$ac_header_preproc" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 4635 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4636 | # So? What about this header? |
| 4637 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 4638 | yes:no: ) |
| 4639 | { echo "$as_me:$LINENO: WARNING: assert.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 4640 | echo "$as_me: WARNING: assert.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 4641 | { echo "$as_me:$LINENO: WARNING: assert.h: proceeding with the compiler's result" >&5 |
| 4642 | echo "$as_me: WARNING: assert.h: proceeding with the compiler's result" >&2;} |
| 4643 | ac_header_preproc=yes |
| 4644 | ;; |
| 4645 | no:yes:* ) |
| 4646 | { echo "$as_me:$LINENO: WARNING: assert.h: present but cannot be compiled" >&5 |
| 4647 | echo "$as_me: WARNING: assert.h: present but cannot be compiled" >&2;} |
| 4648 | { echo "$as_me:$LINENO: WARNING: assert.h: check for missing prerequisite headers?" >&5 |
| 4649 | echo "$as_me: WARNING: assert.h: check for missing prerequisite headers?" >&2;} |
| 4650 | { echo "$as_me:$LINENO: WARNING: assert.h: see the Autoconf documentation" >&5 |
| 4651 | echo "$as_me: WARNING: assert.h: see the Autoconf documentation" >&2;} |
| 4652 | { echo "$as_me:$LINENO: WARNING: assert.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 4653 | echo "$as_me: WARNING: assert.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 4654 | { echo "$as_me:$LINENO: WARNING: assert.h: proceeding with the preprocessor's result" >&5 |
| 4655 | echo "$as_me: WARNING: assert.h: proceeding with the preprocessor's result" >&2;} |
| 4656 | { echo "$as_me:$LINENO: WARNING: assert.h: in the future, the compiler will take precedence" >&5 |
| 4657 | echo "$as_me: WARNING: assert.h: in the future, the compiler will take precedence" >&2;} |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 4658 | ( |
| 4659 | cat <<\_ASBOX |
| 4660 | ## ------------------------------------ ## |
| 4661 | ## Report this to the pjproject lists. ## |
| 4662 | ## ------------------------------------ ## |
| 4663 | _ASBOX |
| 4664 | ) | |
| 4665 | sed "s/^/$as_me: WARNING: /" >&2 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4666 | ;; |
| 4667 | esac |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 4668 | echo "$as_me:$LINENO: checking for assert.h" >&5 |
| 4669 | echo $ECHO_N "checking for assert.h... $ECHO_C" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 4670 | if test "${ac_cv_header_assert_h+set}" = set; then |
| 4671 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 4672 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4673 | ac_cv_header_assert_h=$ac_header_preproc |
| 4674 | fi |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 4675 | echo "$as_me:$LINENO: result: $ac_cv_header_assert_h" >&5 |
| 4676 | echo "${ECHO_T}$ac_cv_header_assert_h" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4677 | |
| 4678 | fi |
| 4679 | if test $ac_cv_header_assert_h = yes; then |
| 4680 | cat >>confdefs.h <<\_ACEOF |
| 4681 | #define PJ_HAS_ASSERT_H 1 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 4682 | _ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4683 | |
| 4684 | fi |
| 4685 | |
| 4686 | |
| 4687 | if test "${ac_cv_header_ctype_h+set}" = set; then |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 4688 | echo "$as_me:$LINENO: checking for ctype.h" >&5 |
| 4689 | echo $ECHO_N "checking for ctype.h... $ECHO_C" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4690 | if test "${ac_cv_header_ctype_h+set}" = set; then |
| 4691 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4692 | fi |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 4693 | echo "$as_me:$LINENO: result: $ac_cv_header_ctype_h" >&5 |
| 4694 | echo "${ECHO_T}$ac_cv_header_ctype_h" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4695 | else |
| 4696 | # Is the header compilable? |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 4697 | echo "$as_me:$LINENO: checking ctype.h usability" >&5 |
| 4698 | echo $ECHO_N "checking ctype.h usability... $ECHO_C" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4699 | cat >conftest.$ac_ext <<_ACEOF |
| 4700 | /* confdefs.h. */ |
| 4701 | _ACEOF |
| 4702 | cat confdefs.h >>conftest.$ac_ext |
| 4703 | cat >>conftest.$ac_ext <<_ACEOF |
| 4704 | /* end confdefs.h. */ |
| 4705 | $ac_includes_default |
| 4706 | #include <ctype.h> |
| 4707 | _ACEOF |
| 4708 | rm -f conftest.$ac_objext |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 4709 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4710 | (eval $ac_compile) 2>conftest.er1 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 4711 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4712 | grep -v '^ *+' conftest.er1 >conftest.err |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 4713 | rm -f conftest.er1 |
| 4714 | cat conftest.err >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4715 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 4716 | (exit $ac_status); } && |
| 4717 | { ac_try='test -z "$ac_c_werror_flag" |
| 4718 | || test ! -s conftest.err' |
| 4719 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4720 | (eval $ac_try) 2>&5 |
| 4721 | ac_status=$? |
| 4722 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4723 | (exit $ac_status); }; } && |
| 4724 | { ac_try='test -s conftest.$ac_objext' |
| 4725 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4726 | (eval $ac_try) 2>&5 |
| 4727 | ac_status=$? |
| 4728 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4729 | (exit $ac_status); }; }; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4730 | ac_header_compiler=yes |
| 4731 | else |
| 4732 | echo "$as_me: failed program was:" >&5 |
| 4733 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4734 | |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 4735 | ac_header_compiler=no |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4736 | fi |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 4737 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4738 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 4739 | echo "${ECHO_T}$ac_header_compiler" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4740 | |
| 4741 | # Is the header present? |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 4742 | echo "$as_me:$LINENO: checking ctype.h presence" >&5 |
| 4743 | echo $ECHO_N "checking ctype.h presence... $ECHO_C" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4744 | cat >conftest.$ac_ext <<_ACEOF |
| 4745 | /* confdefs.h. */ |
| 4746 | _ACEOF |
| 4747 | cat confdefs.h >>conftest.$ac_ext |
| 4748 | cat >>conftest.$ac_ext <<_ACEOF |
| 4749 | /* end confdefs.h. */ |
| 4750 | #include <ctype.h> |
| 4751 | _ACEOF |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 4752 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 4753 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4754 | ac_status=$? |
| 4755 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4756 | rm -f conftest.er1 |
| 4757 | cat conftest.err >&5 |
| 4758 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 4759 | (exit $ac_status); } >/dev/null; then |
| 4760 | if test -s conftest.err; then |
| 4761 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 4762 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 4763 | else |
| 4764 | ac_cpp_err= |
| 4765 | fi |
| 4766 | else |
| 4767 | ac_cpp_err=yes |
| 4768 | fi |
| 4769 | if test -z "$ac_cpp_err"; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4770 | ac_header_preproc=yes |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 4771 | else |
| 4772 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4773 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4774 | |
| 4775 | ac_header_preproc=no |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 4776 | fi |
| 4777 | rm -f conftest.err conftest.$ac_ext |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 4778 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 4779 | echo "${ECHO_T}$ac_header_preproc" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 4780 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4781 | # So? What about this header? |
| 4782 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 4783 | yes:no: ) |
| 4784 | { echo "$as_me:$LINENO: WARNING: ctype.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 4785 | echo "$as_me: WARNING: ctype.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 4786 | { echo "$as_me:$LINENO: WARNING: ctype.h: proceeding with the compiler's result" >&5 |
| 4787 | echo "$as_me: WARNING: ctype.h: proceeding with the compiler's result" >&2;} |
| 4788 | ac_header_preproc=yes |
| 4789 | ;; |
| 4790 | no:yes:* ) |
| 4791 | { echo "$as_me:$LINENO: WARNING: ctype.h: present but cannot be compiled" >&5 |
| 4792 | echo "$as_me: WARNING: ctype.h: present but cannot be compiled" >&2;} |
| 4793 | { echo "$as_me:$LINENO: WARNING: ctype.h: check for missing prerequisite headers?" >&5 |
| 4794 | echo "$as_me: WARNING: ctype.h: check for missing prerequisite headers?" >&2;} |
| 4795 | { echo "$as_me:$LINENO: WARNING: ctype.h: see the Autoconf documentation" >&5 |
| 4796 | echo "$as_me: WARNING: ctype.h: see the Autoconf documentation" >&2;} |
| 4797 | { echo "$as_me:$LINENO: WARNING: ctype.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 4798 | echo "$as_me: WARNING: ctype.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 4799 | { echo "$as_me:$LINENO: WARNING: ctype.h: proceeding with the preprocessor's result" >&5 |
| 4800 | echo "$as_me: WARNING: ctype.h: proceeding with the preprocessor's result" >&2;} |
| 4801 | { echo "$as_me:$LINENO: WARNING: ctype.h: in the future, the compiler will take precedence" >&5 |
| 4802 | echo "$as_me: WARNING: ctype.h: in the future, the compiler will take precedence" >&2;} |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 4803 | ( |
| 4804 | cat <<\_ASBOX |
| 4805 | ## ------------------------------------ ## |
| 4806 | ## Report this to the pjproject lists. ## |
| 4807 | ## ------------------------------------ ## |
| 4808 | _ASBOX |
| 4809 | ) | |
| 4810 | sed "s/^/$as_me: WARNING: /" >&2 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4811 | ;; |
| 4812 | esac |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 4813 | echo "$as_me:$LINENO: checking for ctype.h" >&5 |
| 4814 | echo $ECHO_N "checking for ctype.h... $ECHO_C" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 4815 | if test "${ac_cv_header_ctype_h+set}" = set; then |
| 4816 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 4817 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4818 | ac_cv_header_ctype_h=$ac_header_preproc |
| 4819 | fi |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 4820 | echo "$as_me:$LINENO: result: $ac_cv_header_ctype_h" >&5 |
| 4821 | echo "${ECHO_T}$ac_cv_header_ctype_h" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4822 | |
| 4823 | fi |
| 4824 | if test $ac_cv_header_ctype_h = yes; then |
| 4825 | cat >>confdefs.h <<\_ACEOF |
| 4826 | #define PJ_HAS_CTYPE_H 1 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 4827 | _ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4828 | |
| 4829 | fi |
| 4830 | |
| 4831 | |
| 4832 | |
| 4833 | case $target in |
| 4834 | *mingw* | *cygw* | *win32* | *w32* ) |
| 4835 | cat >>confdefs.h <<\_ACEOF |
| 4836 | #define PJ_HAS_ERRNO_H 0 |
| 4837 | _ACEOF |
| 4838 | |
| 4839 | ;; |
| 4840 | *) |
| 4841 | if test "${ac_cv_header_errno_h+set}" = set; then |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 4842 | echo "$as_me:$LINENO: checking for errno.h" >&5 |
| 4843 | echo $ECHO_N "checking for errno.h... $ECHO_C" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4844 | if test "${ac_cv_header_errno_h+set}" = set; then |
| 4845 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4846 | fi |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 4847 | echo "$as_me:$LINENO: result: $ac_cv_header_errno_h" >&5 |
| 4848 | echo "${ECHO_T}$ac_cv_header_errno_h" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4849 | else |
| 4850 | # Is the header compilable? |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 4851 | echo "$as_me:$LINENO: checking errno.h usability" >&5 |
| 4852 | echo $ECHO_N "checking errno.h usability... $ECHO_C" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4853 | cat >conftest.$ac_ext <<_ACEOF |
| 4854 | /* confdefs.h. */ |
| 4855 | _ACEOF |
| 4856 | cat confdefs.h >>conftest.$ac_ext |
| 4857 | cat >>conftest.$ac_ext <<_ACEOF |
| 4858 | /* end confdefs.h. */ |
| 4859 | $ac_includes_default |
| 4860 | #include <errno.h> |
| 4861 | _ACEOF |
| 4862 | rm -f conftest.$ac_objext |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 4863 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4864 | (eval $ac_compile) 2>conftest.er1 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 4865 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4866 | grep -v '^ *+' conftest.er1 >conftest.err |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 4867 | rm -f conftest.er1 |
| 4868 | cat conftest.err >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4869 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 4870 | (exit $ac_status); } && |
| 4871 | { ac_try='test -z "$ac_c_werror_flag" |
| 4872 | || test ! -s conftest.err' |
| 4873 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4874 | (eval $ac_try) 2>&5 |
| 4875 | ac_status=$? |
| 4876 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4877 | (exit $ac_status); }; } && |
| 4878 | { ac_try='test -s conftest.$ac_objext' |
| 4879 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4880 | (eval $ac_try) 2>&5 |
| 4881 | ac_status=$? |
| 4882 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4883 | (exit $ac_status); }; }; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4884 | ac_header_compiler=yes |
| 4885 | else |
| 4886 | echo "$as_me: failed program was:" >&5 |
| 4887 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4888 | |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 4889 | ac_header_compiler=no |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4890 | fi |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 4891 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4892 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 4893 | echo "${ECHO_T}$ac_header_compiler" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4894 | |
| 4895 | # Is the header present? |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 4896 | echo "$as_me:$LINENO: checking errno.h presence" >&5 |
| 4897 | echo $ECHO_N "checking errno.h presence... $ECHO_C" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4898 | cat >conftest.$ac_ext <<_ACEOF |
| 4899 | /* confdefs.h. */ |
| 4900 | _ACEOF |
| 4901 | cat confdefs.h >>conftest.$ac_ext |
| 4902 | cat >>conftest.$ac_ext <<_ACEOF |
| 4903 | /* end confdefs.h. */ |
| 4904 | #include <errno.h> |
| 4905 | _ACEOF |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 4906 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 4907 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4908 | ac_status=$? |
| 4909 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4910 | rm -f conftest.er1 |
| 4911 | cat conftest.err >&5 |
| 4912 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 4913 | (exit $ac_status); } >/dev/null; then |
| 4914 | if test -s conftest.err; then |
| 4915 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 4916 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 4917 | else |
| 4918 | ac_cpp_err= |
| 4919 | fi |
| 4920 | else |
| 4921 | ac_cpp_err=yes |
| 4922 | fi |
| 4923 | if test -z "$ac_cpp_err"; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4924 | ac_header_preproc=yes |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 4925 | else |
| 4926 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4927 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4928 | |
| 4929 | ac_header_preproc=no |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 4930 | fi |
| 4931 | rm -f conftest.err conftest.$ac_ext |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 4932 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 4933 | echo "${ECHO_T}$ac_header_preproc" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 4934 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4935 | # So? What about this header? |
| 4936 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 4937 | yes:no: ) |
| 4938 | { echo "$as_me:$LINENO: WARNING: errno.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 4939 | echo "$as_me: WARNING: errno.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 4940 | { echo "$as_me:$LINENO: WARNING: errno.h: proceeding with the compiler's result" >&5 |
| 4941 | echo "$as_me: WARNING: errno.h: proceeding with the compiler's result" >&2;} |
| 4942 | ac_header_preproc=yes |
| 4943 | ;; |
| 4944 | no:yes:* ) |
| 4945 | { echo "$as_me:$LINENO: WARNING: errno.h: present but cannot be compiled" >&5 |
| 4946 | echo "$as_me: WARNING: errno.h: present but cannot be compiled" >&2;} |
| 4947 | { echo "$as_me:$LINENO: WARNING: errno.h: check for missing prerequisite headers?" >&5 |
| 4948 | echo "$as_me: WARNING: errno.h: check for missing prerequisite headers?" >&2;} |
| 4949 | { echo "$as_me:$LINENO: WARNING: errno.h: see the Autoconf documentation" >&5 |
| 4950 | echo "$as_me: WARNING: errno.h: see the Autoconf documentation" >&2;} |
| 4951 | { echo "$as_me:$LINENO: WARNING: errno.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 4952 | echo "$as_me: WARNING: errno.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 4953 | { echo "$as_me:$LINENO: WARNING: errno.h: proceeding with the preprocessor's result" >&5 |
| 4954 | echo "$as_me: WARNING: errno.h: proceeding with the preprocessor's result" >&2;} |
| 4955 | { echo "$as_me:$LINENO: WARNING: errno.h: in the future, the compiler will take precedence" >&5 |
| 4956 | echo "$as_me: WARNING: errno.h: in the future, the compiler will take precedence" >&2;} |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 4957 | ( |
| 4958 | cat <<\_ASBOX |
| 4959 | ## ------------------------------------ ## |
| 4960 | ## Report this to the pjproject lists. ## |
| 4961 | ## ------------------------------------ ## |
| 4962 | _ASBOX |
| 4963 | ) | |
| 4964 | sed "s/^/$as_me: WARNING: /" >&2 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4965 | ;; |
| 4966 | esac |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 4967 | echo "$as_me:$LINENO: checking for errno.h" >&5 |
| 4968 | echo $ECHO_N "checking for errno.h... $ECHO_C" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 4969 | if test "${ac_cv_header_errno_h+set}" = set; then |
| 4970 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 4971 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4972 | ac_cv_header_errno_h=$ac_header_preproc |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 4973 | fi |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 4974 | echo "$as_me:$LINENO: result: $ac_cv_header_errno_h" >&5 |
| 4975 | echo "${ECHO_T}$ac_cv_header_errno_h" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 4976 | |
| 4977 | fi |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4978 | if test $ac_cv_header_errno_h = yes; then |
| 4979 | cat >>confdefs.h <<\_ACEOF |
| 4980 | #define PJ_HAS_ERRNO_H 1 |
| 4981 | _ACEOF |
| 4982 | |
| 4983 | fi |
| 4984 | |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 4985 | |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 4986 | ;; |
| 4987 | esac |
| 4988 | |
Benny Prijono | 1d481ab | 2008-01-24 15:27:30 +0000 | [diff] [blame] | 4989 | if test "${ac_cv_header_fcntl_h+set}" = set; then |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 4990 | echo "$as_me:$LINENO: checking for fcntl.h" >&5 |
| 4991 | echo $ECHO_N "checking for fcntl.h... $ECHO_C" >&6 |
Benny Prijono | 1d481ab | 2008-01-24 15:27:30 +0000 | [diff] [blame] | 4992 | if test "${ac_cv_header_fcntl_h+set}" = set; then |
| 4993 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4994 | fi |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 4995 | echo "$as_me:$LINENO: result: $ac_cv_header_fcntl_h" >&5 |
| 4996 | echo "${ECHO_T}$ac_cv_header_fcntl_h" >&6 |
Benny Prijono | 1d481ab | 2008-01-24 15:27:30 +0000 | [diff] [blame] | 4997 | else |
| 4998 | # Is the header compilable? |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 4999 | echo "$as_me:$LINENO: checking fcntl.h usability" >&5 |
| 5000 | echo $ECHO_N "checking fcntl.h usability... $ECHO_C" >&6 |
Benny Prijono | 1d481ab | 2008-01-24 15:27:30 +0000 | [diff] [blame] | 5001 | cat >conftest.$ac_ext <<_ACEOF |
| 5002 | /* confdefs.h. */ |
| 5003 | _ACEOF |
| 5004 | cat confdefs.h >>conftest.$ac_ext |
| 5005 | cat >>conftest.$ac_ext <<_ACEOF |
| 5006 | /* end confdefs.h. */ |
| 5007 | $ac_includes_default |
| 5008 | #include <fcntl.h> |
| 5009 | _ACEOF |
| 5010 | rm -f conftest.$ac_objext |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 5011 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5012 | (eval $ac_compile) 2>conftest.er1 |
Benny Prijono | 1d481ab | 2008-01-24 15:27:30 +0000 | [diff] [blame] | 5013 | ac_status=$? |
| 5014 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5015 | rm -f conftest.er1 |
| 5016 | cat conftest.err >&5 |
| 5017 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 5018 | (exit $ac_status); } && |
| 5019 | { ac_try='test -z "$ac_c_werror_flag" |
| 5020 | || test ! -s conftest.err' |
| 5021 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5022 | (eval $ac_try) 2>&5 |
| 5023 | ac_status=$? |
| 5024 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5025 | (exit $ac_status); }; } && |
| 5026 | { ac_try='test -s conftest.$ac_objext' |
| 5027 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5028 | (eval $ac_try) 2>&5 |
| 5029 | ac_status=$? |
| 5030 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5031 | (exit $ac_status); }; }; then |
Benny Prijono | 1d481ab | 2008-01-24 15:27:30 +0000 | [diff] [blame] | 5032 | ac_header_compiler=yes |
| 5033 | else |
| 5034 | echo "$as_me: failed program was:" >&5 |
| 5035 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5036 | |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 5037 | ac_header_compiler=no |
Benny Prijono | 1d481ab | 2008-01-24 15:27:30 +0000 | [diff] [blame] | 5038 | fi |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 5039 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5040 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 5041 | echo "${ECHO_T}$ac_header_compiler" >&6 |
Benny Prijono | 1d481ab | 2008-01-24 15:27:30 +0000 | [diff] [blame] | 5042 | |
| 5043 | # Is the header present? |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 5044 | echo "$as_me:$LINENO: checking fcntl.h presence" >&5 |
| 5045 | echo $ECHO_N "checking fcntl.h presence... $ECHO_C" >&6 |
Benny Prijono | 1d481ab | 2008-01-24 15:27:30 +0000 | [diff] [blame] | 5046 | cat >conftest.$ac_ext <<_ACEOF |
| 5047 | /* confdefs.h. */ |
| 5048 | _ACEOF |
| 5049 | cat confdefs.h >>conftest.$ac_ext |
| 5050 | cat >>conftest.$ac_ext <<_ACEOF |
| 5051 | /* end confdefs.h. */ |
| 5052 | #include <fcntl.h> |
| 5053 | _ACEOF |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 5054 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 5055 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
Benny Prijono | 1d481ab | 2008-01-24 15:27:30 +0000 | [diff] [blame] | 5056 | ac_status=$? |
| 5057 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5058 | rm -f conftest.er1 |
| 5059 | cat conftest.err >&5 |
| 5060 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 5061 | (exit $ac_status); } >/dev/null; then |
| 5062 | if test -s conftest.err; then |
| 5063 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 5064 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 5065 | else |
| 5066 | ac_cpp_err= |
| 5067 | fi |
| 5068 | else |
| 5069 | ac_cpp_err=yes |
| 5070 | fi |
| 5071 | if test -z "$ac_cpp_err"; then |
Benny Prijono | 1d481ab | 2008-01-24 15:27:30 +0000 | [diff] [blame] | 5072 | ac_header_preproc=yes |
| 5073 | else |
| 5074 | echo "$as_me: failed program was:" >&5 |
| 5075 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5076 | |
| 5077 | ac_header_preproc=no |
| 5078 | fi |
Benny Prijono | 1d481ab | 2008-01-24 15:27:30 +0000 | [diff] [blame] | 5079 | rm -f conftest.err conftest.$ac_ext |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 5080 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 5081 | echo "${ECHO_T}$ac_header_preproc" >&6 |
Benny Prijono | 1d481ab | 2008-01-24 15:27:30 +0000 | [diff] [blame] | 5082 | |
| 5083 | # So? What about this header? |
| 5084 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 5085 | yes:no: ) |
| 5086 | { echo "$as_me:$LINENO: WARNING: fcntl.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 5087 | echo "$as_me: WARNING: fcntl.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 5088 | { echo "$as_me:$LINENO: WARNING: fcntl.h: proceeding with the compiler's result" >&5 |
| 5089 | echo "$as_me: WARNING: fcntl.h: proceeding with the compiler's result" >&2;} |
| 5090 | ac_header_preproc=yes |
| 5091 | ;; |
| 5092 | no:yes:* ) |
| 5093 | { echo "$as_me:$LINENO: WARNING: fcntl.h: present but cannot be compiled" >&5 |
| 5094 | echo "$as_me: WARNING: fcntl.h: present but cannot be compiled" >&2;} |
| 5095 | { echo "$as_me:$LINENO: WARNING: fcntl.h: check for missing prerequisite headers?" >&5 |
| 5096 | echo "$as_me: WARNING: fcntl.h: check for missing prerequisite headers?" >&2;} |
| 5097 | { echo "$as_me:$LINENO: WARNING: fcntl.h: see the Autoconf documentation" >&5 |
| 5098 | echo "$as_me: WARNING: fcntl.h: see the Autoconf documentation" >&2;} |
| 5099 | { echo "$as_me:$LINENO: WARNING: fcntl.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 5100 | echo "$as_me: WARNING: fcntl.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 5101 | { echo "$as_me:$LINENO: WARNING: fcntl.h: proceeding with the preprocessor's result" >&5 |
| 5102 | echo "$as_me: WARNING: fcntl.h: proceeding with the preprocessor's result" >&2;} |
| 5103 | { echo "$as_me:$LINENO: WARNING: fcntl.h: in the future, the compiler will take precedence" >&5 |
| 5104 | echo "$as_me: WARNING: fcntl.h: in the future, the compiler will take precedence" >&2;} |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 5105 | ( |
| 5106 | cat <<\_ASBOX |
| 5107 | ## ------------------------------------ ## |
| 5108 | ## Report this to the pjproject lists. ## |
| 5109 | ## ------------------------------------ ## |
| 5110 | _ASBOX |
| 5111 | ) | |
| 5112 | sed "s/^/$as_me: WARNING: /" >&2 |
Benny Prijono | 1d481ab | 2008-01-24 15:27:30 +0000 | [diff] [blame] | 5113 | ;; |
| 5114 | esac |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 5115 | echo "$as_me:$LINENO: checking for fcntl.h" >&5 |
| 5116 | echo $ECHO_N "checking for fcntl.h... $ECHO_C" >&6 |
Benny Prijono | 1d481ab | 2008-01-24 15:27:30 +0000 | [diff] [blame] | 5117 | if test "${ac_cv_header_fcntl_h+set}" = set; then |
| 5118 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5119 | else |
| 5120 | ac_cv_header_fcntl_h=$ac_header_preproc |
| 5121 | fi |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 5122 | echo "$as_me:$LINENO: result: $ac_cv_header_fcntl_h" >&5 |
| 5123 | echo "${ECHO_T}$ac_cv_header_fcntl_h" >&6 |
Benny Prijono | 1d481ab | 2008-01-24 15:27:30 +0000 | [diff] [blame] | 5124 | |
| 5125 | fi |
| 5126 | if test $ac_cv_header_fcntl_h = yes; then |
| 5127 | cat >>confdefs.h <<\_ACEOF |
| 5128 | #define PJ_HAS_FCNTL_H 1 |
| 5129 | _ACEOF |
| 5130 | |
| 5131 | fi |
| 5132 | |
| 5133 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5134 | if test "${ac_cv_header_linux_socket_h+set}" = set; then |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 5135 | echo "$as_me:$LINENO: checking for linux/socket.h" >&5 |
| 5136 | echo $ECHO_N "checking for linux/socket.h... $ECHO_C" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5137 | if test "${ac_cv_header_linux_socket_h+set}" = set; then |
| 5138 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5139 | fi |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 5140 | echo "$as_me:$LINENO: result: $ac_cv_header_linux_socket_h" >&5 |
| 5141 | echo "${ECHO_T}$ac_cv_header_linux_socket_h" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5142 | else |
| 5143 | # Is the header compilable? |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 5144 | echo "$as_me:$LINENO: checking linux/socket.h usability" >&5 |
| 5145 | echo $ECHO_N "checking linux/socket.h usability... $ECHO_C" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5146 | cat >conftest.$ac_ext <<_ACEOF |
| 5147 | /* confdefs.h. */ |
| 5148 | _ACEOF |
| 5149 | cat confdefs.h >>conftest.$ac_ext |
| 5150 | cat >>conftest.$ac_ext <<_ACEOF |
| 5151 | /* end confdefs.h. */ |
| 5152 | $ac_includes_default |
| 5153 | #include <linux/socket.h> |
| 5154 | _ACEOF |
| 5155 | rm -f conftest.$ac_objext |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 5156 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5157 | (eval $ac_compile) 2>conftest.er1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5158 | ac_status=$? |
| 5159 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5160 | rm -f conftest.er1 |
| 5161 | cat conftest.err >&5 |
| 5162 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 5163 | (exit $ac_status); } && |
| 5164 | { ac_try='test -z "$ac_c_werror_flag" |
| 5165 | || test ! -s conftest.err' |
| 5166 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5167 | (eval $ac_try) 2>&5 |
| 5168 | ac_status=$? |
| 5169 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5170 | (exit $ac_status); }; } && |
| 5171 | { ac_try='test -s conftest.$ac_objext' |
| 5172 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5173 | (eval $ac_try) 2>&5 |
| 5174 | ac_status=$? |
| 5175 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5176 | (exit $ac_status); }; }; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5177 | ac_header_compiler=yes |
| 5178 | else |
| 5179 | echo "$as_me: failed program was:" >&5 |
| 5180 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5181 | |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 5182 | ac_header_compiler=no |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5183 | fi |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 5184 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5185 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 5186 | echo "${ECHO_T}$ac_header_compiler" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5187 | |
| 5188 | # Is the header present? |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 5189 | echo "$as_me:$LINENO: checking linux/socket.h presence" >&5 |
| 5190 | echo $ECHO_N "checking linux/socket.h presence... $ECHO_C" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5191 | cat >conftest.$ac_ext <<_ACEOF |
| 5192 | /* confdefs.h. */ |
| 5193 | _ACEOF |
| 5194 | cat confdefs.h >>conftest.$ac_ext |
| 5195 | cat >>conftest.$ac_ext <<_ACEOF |
| 5196 | /* end confdefs.h. */ |
| 5197 | #include <linux/socket.h> |
| 5198 | _ACEOF |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 5199 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 5200 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5201 | ac_status=$? |
| 5202 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5203 | rm -f conftest.er1 |
| 5204 | cat conftest.err >&5 |
| 5205 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 5206 | (exit $ac_status); } >/dev/null; then |
| 5207 | if test -s conftest.err; then |
| 5208 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 5209 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 5210 | else |
| 5211 | ac_cpp_err= |
| 5212 | fi |
| 5213 | else |
| 5214 | ac_cpp_err=yes |
| 5215 | fi |
| 5216 | if test -z "$ac_cpp_err"; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5217 | ac_header_preproc=yes |
| 5218 | else |
| 5219 | echo "$as_me: failed program was:" >&5 |
| 5220 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5221 | |
| 5222 | ac_header_preproc=no |
| 5223 | fi |
| 5224 | rm -f conftest.err conftest.$ac_ext |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 5225 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 5226 | echo "${ECHO_T}$ac_header_preproc" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5227 | |
| 5228 | # So? What about this header? |
| 5229 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 5230 | yes:no: ) |
| 5231 | { echo "$as_me:$LINENO: WARNING: linux/socket.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 5232 | echo "$as_me: WARNING: linux/socket.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 5233 | { echo "$as_me:$LINENO: WARNING: linux/socket.h: proceeding with the compiler's result" >&5 |
| 5234 | echo "$as_me: WARNING: linux/socket.h: proceeding with the compiler's result" >&2;} |
| 5235 | ac_header_preproc=yes |
| 5236 | ;; |
| 5237 | no:yes:* ) |
| 5238 | { echo "$as_me:$LINENO: WARNING: linux/socket.h: present but cannot be compiled" >&5 |
| 5239 | echo "$as_me: WARNING: linux/socket.h: present but cannot be compiled" >&2;} |
| 5240 | { echo "$as_me:$LINENO: WARNING: linux/socket.h: check for missing prerequisite headers?" >&5 |
| 5241 | echo "$as_me: WARNING: linux/socket.h: check for missing prerequisite headers?" >&2;} |
| 5242 | { echo "$as_me:$LINENO: WARNING: linux/socket.h: see the Autoconf documentation" >&5 |
| 5243 | echo "$as_me: WARNING: linux/socket.h: see the Autoconf documentation" >&2;} |
| 5244 | { echo "$as_me:$LINENO: WARNING: linux/socket.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 5245 | echo "$as_me: WARNING: linux/socket.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 5246 | { echo "$as_me:$LINENO: WARNING: linux/socket.h: proceeding with the preprocessor's result" >&5 |
| 5247 | echo "$as_me: WARNING: linux/socket.h: proceeding with the preprocessor's result" >&2;} |
| 5248 | { echo "$as_me:$LINENO: WARNING: linux/socket.h: in the future, the compiler will take precedence" >&5 |
| 5249 | echo "$as_me: WARNING: linux/socket.h: in the future, the compiler will take precedence" >&2;} |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 5250 | ( |
| 5251 | cat <<\_ASBOX |
| 5252 | ## ------------------------------------ ## |
| 5253 | ## Report this to the pjproject lists. ## |
| 5254 | ## ------------------------------------ ## |
| 5255 | _ASBOX |
| 5256 | ) | |
| 5257 | sed "s/^/$as_me: WARNING: /" >&2 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5258 | ;; |
| 5259 | esac |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 5260 | echo "$as_me:$LINENO: checking for linux/socket.h" >&5 |
| 5261 | echo $ECHO_N "checking for linux/socket.h... $ECHO_C" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 5262 | if test "${ac_cv_header_linux_socket_h+set}" = set; then |
| 5263 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 5264 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5265 | ac_cv_header_linux_socket_h=$ac_header_preproc |
| 5266 | fi |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 5267 | echo "$as_me:$LINENO: result: $ac_cv_header_linux_socket_h" >&5 |
| 5268 | echo "${ECHO_T}$ac_cv_header_linux_socket_h" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5269 | |
| 5270 | fi |
| 5271 | if test $ac_cv_header_linux_socket_h = yes; then |
| 5272 | cat >>confdefs.h <<\_ACEOF |
| 5273 | #define PJ_HAS_LINUX_SOCKET_H 1 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 5274 | _ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5275 | |
| 5276 | fi |
| 5277 | |
| 5278 | |
| 5279 | if test "${ac_cv_header_malloc_h+set}" = set; then |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 5280 | echo "$as_me:$LINENO: checking for malloc.h" >&5 |
| 5281 | echo $ECHO_N "checking for malloc.h... $ECHO_C" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5282 | if test "${ac_cv_header_malloc_h+set}" = set; then |
| 5283 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5284 | fi |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 5285 | echo "$as_me:$LINENO: result: $ac_cv_header_malloc_h" >&5 |
| 5286 | echo "${ECHO_T}$ac_cv_header_malloc_h" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5287 | else |
| 5288 | # Is the header compilable? |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 5289 | echo "$as_me:$LINENO: checking malloc.h usability" >&5 |
| 5290 | echo $ECHO_N "checking malloc.h usability... $ECHO_C" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5291 | cat >conftest.$ac_ext <<_ACEOF |
| 5292 | /* confdefs.h. */ |
| 5293 | _ACEOF |
| 5294 | cat confdefs.h >>conftest.$ac_ext |
| 5295 | cat >>conftest.$ac_ext <<_ACEOF |
| 5296 | /* end confdefs.h. */ |
| 5297 | $ac_includes_default |
| 5298 | #include <malloc.h> |
| 5299 | _ACEOF |
| 5300 | rm -f conftest.$ac_objext |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 5301 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5302 | (eval $ac_compile) 2>conftest.er1 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 5303 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5304 | grep -v '^ *+' conftest.er1 >conftest.err |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 5305 | rm -f conftest.er1 |
| 5306 | cat conftest.err >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5307 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 5308 | (exit $ac_status); } && |
| 5309 | { ac_try='test -z "$ac_c_werror_flag" |
| 5310 | || test ! -s conftest.err' |
| 5311 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5312 | (eval $ac_try) 2>&5 |
| 5313 | ac_status=$? |
| 5314 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5315 | (exit $ac_status); }; } && |
| 5316 | { ac_try='test -s conftest.$ac_objext' |
| 5317 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5318 | (eval $ac_try) 2>&5 |
| 5319 | ac_status=$? |
| 5320 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5321 | (exit $ac_status); }; }; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5322 | ac_header_compiler=yes |
| 5323 | else |
| 5324 | echo "$as_me: failed program was:" >&5 |
| 5325 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5326 | |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 5327 | ac_header_compiler=no |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5328 | fi |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 5329 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5330 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 5331 | echo "${ECHO_T}$ac_header_compiler" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5332 | |
| 5333 | # Is the header present? |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 5334 | echo "$as_me:$LINENO: checking malloc.h presence" >&5 |
| 5335 | echo $ECHO_N "checking malloc.h presence... $ECHO_C" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5336 | cat >conftest.$ac_ext <<_ACEOF |
| 5337 | /* confdefs.h. */ |
| 5338 | _ACEOF |
| 5339 | cat confdefs.h >>conftest.$ac_ext |
| 5340 | cat >>conftest.$ac_ext <<_ACEOF |
| 5341 | /* end confdefs.h. */ |
| 5342 | #include <malloc.h> |
| 5343 | _ACEOF |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 5344 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 5345 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5346 | ac_status=$? |
| 5347 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5348 | rm -f conftest.er1 |
| 5349 | cat conftest.err >&5 |
| 5350 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 5351 | (exit $ac_status); } >/dev/null; then |
| 5352 | if test -s conftest.err; then |
| 5353 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 5354 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 5355 | else |
| 5356 | ac_cpp_err= |
| 5357 | fi |
| 5358 | else |
| 5359 | ac_cpp_err=yes |
| 5360 | fi |
| 5361 | if test -z "$ac_cpp_err"; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5362 | ac_header_preproc=yes |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 5363 | else |
| 5364 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5365 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5366 | |
| 5367 | ac_header_preproc=no |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 5368 | fi |
| 5369 | rm -f conftest.err conftest.$ac_ext |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 5370 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 5371 | echo "${ECHO_T}$ac_header_preproc" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 5372 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5373 | # So? What about this header? |
| 5374 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 5375 | yes:no: ) |
| 5376 | { echo "$as_me:$LINENO: WARNING: malloc.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 5377 | echo "$as_me: WARNING: malloc.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 5378 | { echo "$as_me:$LINENO: WARNING: malloc.h: proceeding with the compiler's result" >&5 |
| 5379 | echo "$as_me: WARNING: malloc.h: proceeding with the compiler's result" >&2;} |
| 5380 | ac_header_preproc=yes |
| 5381 | ;; |
| 5382 | no:yes:* ) |
| 5383 | { echo "$as_me:$LINENO: WARNING: malloc.h: present but cannot be compiled" >&5 |
| 5384 | echo "$as_me: WARNING: malloc.h: present but cannot be compiled" >&2;} |
| 5385 | { echo "$as_me:$LINENO: WARNING: malloc.h: check for missing prerequisite headers?" >&5 |
| 5386 | echo "$as_me: WARNING: malloc.h: check for missing prerequisite headers?" >&2;} |
| 5387 | { echo "$as_me:$LINENO: WARNING: malloc.h: see the Autoconf documentation" >&5 |
| 5388 | echo "$as_me: WARNING: malloc.h: see the Autoconf documentation" >&2;} |
| 5389 | { echo "$as_me:$LINENO: WARNING: malloc.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 5390 | echo "$as_me: WARNING: malloc.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 5391 | { echo "$as_me:$LINENO: WARNING: malloc.h: proceeding with the preprocessor's result" >&5 |
| 5392 | echo "$as_me: WARNING: malloc.h: proceeding with the preprocessor's result" >&2;} |
| 5393 | { echo "$as_me:$LINENO: WARNING: malloc.h: in the future, the compiler will take precedence" >&5 |
| 5394 | echo "$as_me: WARNING: malloc.h: in the future, the compiler will take precedence" >&2;} |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 5395 | ( |
| 5396 | cat <<\_ASBOX |
| 5397 | ## ------------------------------------ ## |
| 5398 | ## Report this to the pjproject lists. ## |
| 5399 | ## ------------------------------------ ## |
| 5400 | _ASBOX |
| 5401 | ) | |
| 5402 | sed "s/^/$as_me: WARNING: /" >&2 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5403 | ;; |
| 5404 | esac |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 5405 | echo "$as_me:$LINENO: checking for malloc.h" >&5 |
| 5406 | echo $ECHO_N "checking for malloc.h... $ECHO_C" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 5407 | if test "${ac_cv_header_malloc_h+set}" = set; then |
| 5408 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 5409 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5410 | ac_cv_header_malloc_h=$ac_header_preproc |
| 5411 | fi |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 5412 | echo "$as_me:$LINENO: result: $ac_cv_header_malloc_h" >&5 |
| 5413 | echo "${ECHO_T}$ac_cv_header_malloc_h" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5414 | |
| 5415 | fi |
| 5416 | if test $ac_cv_header_malloc_h = yes; then |
| 5417 | cat >>confdefs.h <<\_ACEOF |
| 5418 | #define PJ_HAS_MALLOC_H 1 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 5419 | _ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5420 | |
| 5421 | fi |
| 5422 | |
| 5423 | |
| 5424 | if test "${ac_cv_header_netdb_h+set}" = set; then |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 5425 | echo "$as_me:$LINENO: checking for netdb.h" >&5 |
| 5426 | echo $ECHO_N "checking for netdb.h... $ECHO_C" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5427 | if test "${ac_cv_header_netdb_h+set}" = set; then |
| 5428 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5429 | fi |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 5430 | echo "$as_me:$LINENO: result: $ac_cv_header_netdb_h" >&5 |
| 5431 | echo "${ECHO_T}$ac_cv_header_netdb_h" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5432 | else |
| 5433 | # Is the header compilable? |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 5434 | echo "$as_me:$LINENO: checking netdb.h usability" >&5 |
| 5435 | echo $ECHO_N "checking netdb.h usability... $ECHO_C" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5436 | cat >conftest.$ac_ext <<_ACEOF |
| 5437 | /* confdefs.h. */ |
| 5438 | _ACEOF |
| 5439 | cat confdefs.h >>conftest.$ac_ext |
| 5440 | cat >>conftest.$ac_ext <<_ACEOF |
| 5441 | /* end confdefs.h. */ |
| 5442 | $ac_includes_default |
| 5443 | #include <netdb.h> |
| 5444 | _ACEOF |
| 5445 | rm -f conftest.$ac_objext |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 5446 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5447 | (eval $ac_compile) 2>conftest.er1 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 5448 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5449 | grep -v '^ *+' conftest.er1 >conftest.err |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 5450 | rm -f conftest.er1 |
| 5451 | cat conftest.err >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5452 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 5453 | (exit $ac_status); } && |
| 5454 | { ac_try='test -z "$ac_c_werror_flag" |
| 5455 | || test ! -s conftest.err' |
| 5456 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5457 | (eval $ac_try) 2>&5 |
| 5458 | ac_status=$? |
| 5459 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5460 | (exit $ac_status); }; } && |
| 5461 | { ac_try='test -s conftest.$ac_objext' |
| 5462 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5463 | (eval $ac_try) 2>&5 |
| 5464 | ac_status=$? |
| 5465 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5466 | (exit $ac_status); }; }; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5467 | ac_header_compiler=yes |
| 5468 | else |
| 5469 | echo "$as_me: failed program was:" >&5 |
| 5470 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5471 | |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 5472 | ac_header_compiler=no |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5473 | fi |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 5474 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5475 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 5476 | echo "${ECHO_T}$ac_header_compiler" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5477 | |
| 5478 | # Is the header present? |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 5479 | echo "$as_me:$LINENO: checking netdb.h presence" >&5 |
| 5480 | echo $ECHO_N "checking netdb.h presence... $ECHO_C" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5481 | cat >conftest.$ac_ext <<_ACEOF |
| 5482 | /* confdefs.h. */ |
| 5483 | _ACEOF |
| 5484 | cat confdefs.h >>conftest.$ac_ext |
| 5485 | cat >>conftest.$ac_ext <<_ACEOF |
| 5486 | /* end confdefs.h. */ |
| 5487 | #include <netdb.h> |
| 5488 | _ACEOF |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 5489 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 5490 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5491 | ac_status=$? |
| 5492 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5493 | rm -f conftest.er1 |
| 5494 | cat conftest.err >&5 |
| 5495 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 5496 | (exit $ac_status); } >/dev/null; then |
| 5497 | if test -s conftest.err; then |
| 5498 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 5499 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 5500 | else |
| 5501 | ac_cpp_err= |
| 5502 | fi |
| 5503 | else |
| 5504 | ac_cpp_err=yes |
| 5505 | fi |
| 5506 | if test -z "$ac_cpp_err"; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5507 | ac_header_preproc=yes |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 5508 | else |
| 5509 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5510 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5511 | |
| 5512 | ac_header_preproc=no |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 5513 | fi |
| 5514 | rm -f conftest.err conftest.$ac_ext |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 5515 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 5516 | echo "${ECHO_T}$ac_header_preproc" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 5517 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5518 | # So? What about this header? |
| 5519 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 5520 | yes:no: ) |
| 5521 | { echo "$as_me:$LINENO: WARNING: netdb.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 5522 | echo "$as_me: WARNING: netdb.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 5523 | { echo "$as_me:$LINENO: WARNING: netdb.h: proceeding with the compiler's result" >&5 |
| 5524 | echo "$as_me: WARNING: netdb.h: proceeding with the compiler's result" >&2;} |
| 5525 | ac_header_preproc=yes |
| 5526 | ;; |
| 5527 | no:yes:* ) |
| 5528 | { echo "$as_me:$LINENO: WARNING: netdb.h: present but cannot be compiled" >&5 |
| 5529 | echo "$as_me: WARNING: netdb.h: present but cannot be compiled" >&2;} |
| 5530 | { echo "$as_me:$LINENO: WARNING: netdb.h: check for missing prerequisite headers?" >&5 |
| 5531 | echo "$as_me: WARNING: netdb.h: check for missing prerequisite headers?" >&2;} |
| 5532 | { echo "$as_me:$LINENO: WARNING: netdb.h: see the Autoconf documentation" >&5 |
| 5533 | echo "$as_me: WARNING: netdb.h: see the Autoconf documentation" >&2;} |
| 5534 | { echo "$as_me:$LINENO: WARNING: netdb.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 5535 | echo "$as_me: WARNING: netdb.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 5536 | { echo "$as_me:$LINENO: WARNING: netdb.h: proceeding with the preprocessor's result" >&5 |
| 5537 | echo "$as_me: WARNING: netdb.h: proceeding with the preprocessor's result" >&2;} |
| 5538 | { echo "$as_me:$LINENO: WARNING: netdb.h: in the future, the compiler will take precedence" >&5 |
| 5539 | echo "$as_me: WARNING: netdb.h: in the future, the compiler will take precedence" >&2;} |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 5540 | ( |
| 5541 | cat <<\_ASBOX |
| 5542 | ## ------------------------------------ ## |
| 5543 | ## Report this to the pjproject lists. ## |
| 5544 | ## ------------------------------------ ## |
| 5545 | _ASBOX |
| 5546 | ) | |
| 5547 | sed "s/^/$as_me: WARNING: /" >&2 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5548 | ;; |
| 5549 | esac |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 5550 | echo "$as_me:$LINENO: checking for netdb.h" >&5 |
| 5551 | echo $ECHO_N "checking for netdb.h... $ECHO_C" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 5552 | if test "${ac_cv_header_netdb_h+set}" = set; then |
| 5553 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 5554 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5555 | ac_cv_header_netdb_h=$ac_header_preproc |
| 5556 | fi |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 5557 | echo "$as_me:$LINENO: result: $ac_cv_header_netdb_h" >&5 |
| 5558 | echo "${ECHO_T}$ac_cv_header_netdb_h" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5559 | |
| 5560 | fi |
| 5561 | if test $ac_cv_header_netdb_h = yes; then |
| 5562 | cat >>confdefs.h <<\_ACEOF |
| 5563 | #define PJ_HAS_NETDB_H 1 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 5564 | _ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5565 | |
| 5566 | fi |
| 5567 | |
| 5568 | |
Benny Prijono | 37fc9de | 2008-08-04 14:45:02 +0000 | [diff] [blame] | 5569 | if test "${ac_cv_header_netinet_in_systm_h+set}" = set; then |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 5570 | echo "$as_me:$LINENO: checking for netinet/in_systm.h" >&5 |
| 5571 | echo $ECHO_N "checking for netinet/in_systm.h... $ECHO_C" >&6 |
Benny Prijono | 37fc9de | 2008-08-04 14:45:02 +0000 | [diff] [blame] | 5572 | if test "${ac_cv_header_netinet_in_systm_h+set}" = set; then |
| 5573 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5574 | fi |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 5575 | echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_systm_h" >&5 |
| 5576 | echo "${ECHO_T}$ac_cv_header_netinet_in_systm_h" >&6 |
Benny Prijono | 37fc9de | 2008-08-04 14:45:02 +0000 | [diff] [blame] | 5577 | else |
| 5578 | # Is the header compilable? |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 5579 | echo "$as_me:$LINENO: checking netinet/in_systm.h usability" >&5 |
| 5580 | echo $ECHO_N "checking netinet/in_systm.h usability... $ECHO_C" >&6 |
Benny Prijono | 37fc9de | 2008-08-04 14:45:02 +0000 | [diff] [blame] | 5581 | cat >conftest.$ac_ext <<_ACEOF |
| 5582 | /* confdefs.h. */ |
| 5583 | _ACEOF |
| 5584 | cat confdefs.h >>conftest.$ac_ext |
| 5585 | cat >>conftest.$ac_ext <<_ACEOF |
| 5586 | /* end confdefs.h. */ |
| 5587 | $ac_includes_default |
| 5588 | #include <netinet/in_systm.h> |
| 5589 | _ACEOF |
| 5590 | rm -f conftest.$ac_objext |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 5591 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5592 | (eval $ac_compile) 2>conftest.er1 |
Benny Prijono | 37fc9de | 2008-08-04 14:45:02 +0000 | [diff] [blame] | 5593 | ac_status=$? |
| 5594 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5595 | rm -f conftest.er1 |
| 5596 | cat conftest.err >&5 |
| 5597 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 5598 | (exit $ac_status); } && |
| 5599 | { ac_try='test -z "$ac_c_werror_flag" |
| 5600 | || test ! -s conftest.err' |
| 5601 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5602 | (eval $ac_try) 2>&5 |
| 5603 | ac_status=$? |
| 5604 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5605 | (exit $ac_status); }; } && |
| 5606 | { ac_try='test -s conftest.$ac_objext' |
| 5607 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5608 | (eval $ac_try) 2>&5 |
| 5609 | ac_status=$? |
| 5610 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5611 | (exit $ac_status); }; }; then |
Benny Prijono | 37fc9de | 2008-08-04 14:45:02 +0000 | [diff] [blame] | 5612 | ac_header_compiler=yes |
| 5613 | else |
| 5614 | echo "$as_me: failed program was:" >&5 |
| 5615 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5616 | |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 5617 | ac_header_compiler=no |
Benny Prijono | 37fc9de | 2008-08-04 14:45:02 +0000 | [diff] [blame] | 5618 | fi |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 5619 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5620 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 5621 | echo "${ECHO_T}$ac_header_compiler" >&6 |
Benny Prijono | 37fc9de | 2008-08-04 14:45:02 +0000 | [diff] [blame] | 5622 | |
| 5623 | # Is the header present? |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 5624 | echo "$as_me:$LINENO: checking netinet/in_systm.h presence" >&5 |
| 5625 | echo $ECHO_N "checking netinet/in_systm.h presence... $ECHO_C" >&6 |
Benny Prijono | 37fc9de | 2008-08-04 14:45:02 +0000 | [diff] [blame] | 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 | #include <netinet/in_systm.h> |
| 5633 | _ACEOF |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 5634 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 5635 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
Benny Prijono | 37fc9de | 2008-08-04 14:45:02 +0000 | [diff] [blame] | 5636 | ac_status=$? |
| 5637 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5638 | rm -f conftest.er1 |
| 5639 | cat conftest.err >&5 |
| 5640 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 5641 | (exit $ac_status); } >/dev/null; then |
| 5642 | if test -s conftest.err; then |
| 5643 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 5644 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 5645 | else |
| 5646 | ac_cpp_err= |
| 5647 | fi |
| 5648 | else |
| 5649 | ac_cpp_err=yes |
| 5650 | fi |
| 5651 | if test -z "$ac_cpp_err"; then |
Benny Prijono | 37fc9de | 2008-08-04 14:45:02 +0000 | [diff] [blame] | 5652 | ac_header_preproc=yes |
| 5653 | else |
| 5654 | echo "$as_me: failed program was:" >&5 |
| 5655 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5656 | |
| 5657 | ac_header_preproc=no |
| 5658 | fi |
| 5659 | rm -f conftest.err conftest.$ac_ext |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 5660 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 5661 | echo "${ECHO_T}$ac_header_preproc" >&6 |
Benny Prijono | 37fc9de | 2008-08-04 14:45:02 +0000 | [diff] [blame] | 5662 | |
| 5663 | # So? What about this header? |
| 5664 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 5665 | yes:no: ) |
| 5666 | { echo "$as_me:$LINENO: WARNING: netinet/in_systm.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 5667 | echo "$as_me: WARNING: netinet/in_systm.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 5668 | { echo "$as_me:$LINENO: WARNING: netinet/in_systm.h: proceeding with the compiler's result" >&5 |
| 5669 | echo "$as_me: WARNING: netinet/in_systm.h: proceeding with the compiler's result" >&2;} |
| 5670 | ac_header_preproc=yes |
| 5671 | ;; |
| 5672 | no:yes:* ) |
| 5673 | { echo "$as_me:$LINENO: WARNING: netinet/in_systm.h: present but cannot be compiled" >&5 |
| 5674 | echo "$as_me: WARNING: netinet/in_systm.h: present but cannot be compiled" >&2;} |
| 5675 | { echo "$as_me:$LINENO: WARNING: netinet/in_systm.h: check for missing prerequisite headers?" >&5 |
| 5676 | echo "$as_me: WARNING: netinet/in_systm.h: check for missing prerequisite headers?" >&2;} |
| 5677 | { echo "$as_me:$LINENO: WARNING: netinet/in_systm.h: see the Autoconf documentation" >&5 |
| 5678 | echo "$as_me: WARNING: netinet/in_systm.h: see the Autoconf documentation" >&2;} |
| 5679 | { echo "$as_me:$LINENO: WARNING: netinet/in_systm.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 5680 | echo "$as_me: WARNING: netinet/in_systm.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 5681 | { echo "$as_me:$LINENO: WARNING: netinet/in_systm.h: proceeding with the preprocessor's result" >&5 |
| 5682 | echo "$as_me: WARNING: netinet/in_systm.h: proceeding with the preprocessor's result" >&2;} |
| 5683 | { echo "$as_me:$LINENO: WARNING: netinet/in_systm.h: in the future, the compiler will take precedence" >&5 |
| 5684 | echo "$as_me: WARNING: netinet/in_systm.h: in the future, the compiler will take precedence" >&2;} |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 5685 | ( |
| 5686 | cat <<\_ASBOX |
| 5687 | ## ------------------------------------ ## |
| 5688 | ## Report this to the pjproject lists. ## |
| 5689 | ## ------------------------------------ ## |
| 5690 | _ASBOX |
| 5691 | ) | |
| 5692 | sed "s/^/$as_me: WARNING: /" >&2 |
Benny Prijono | 37fc9de | 2008-08-04 14:45:02 +0000 | [diff] [blame] | 5693 | ;; |
| 5694 | esac |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 5695 | echo "$as_me:$LINENO: checking for netinet/in_systm.h" >&5 |
| 5696 | echo $ECHO_N "checking for netinet/in_systm.h... $ECHO_C" >&6 |
Benny Prijono | 37fc9de | 2008-08-04 14:45:02 +0000 | [diff] [blame] | 5697 | if test "${ac_cv_header_netinet_in_systm_h+set}" = set; then |
| 5698 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5699 | else |
| 5700 | ac_cv_header_netinet_in_systm_h=$ac_header_preproc |
| 5701 | fi |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 5702 | echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_systm_h" >&5 |
| 5703 | echo "${ECHO_T}$ac_cv_header_netinet_in_systm_h" >&6 |
Benny Prijono | 37fc9de | 2008-08-04 14:45:02 +0000 | [diff] [blame] | 5704 | |
| 5705 | fi |
| 5706 | if test $ac_cv_header_netinet_in_systm_h = yes; then |
| 5707 | cat >>confdefs.h <<\_ACEOF |
| 5708 | #define PJ_HAS_NETINET_IN_SYSTM_H 1 |
| 5709 | _ACEOF |
| 5710 | |
| 5711 | fi |
| 5712 | |
| 5713 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5714 | if test "${ac_cv_header_netinet_in_h+set}" = set; then |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 5715 | echo "$as_me:$LINENO: checking for netinet/in.h" >&5 |
| 5716 | echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5717 | if test "${ac_cv_header_netinet_in_h+set}" = set; then |
| 5718 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5719 | fi |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 5720 | echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5 |
| 5721 | echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5722 | else |
| 5723 | # Is the header compilable? |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 5724 | echo "$as_me:$LINENO: checking netinet/in.h usability" >&5 |
| 5725 | echo $ECHO_N "checking netinet/in.h usability... $ECHO_C" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5726 | cat >conftest.$ac_ext <<_ACEOF |
| 5727 | /* confdefs.h. */ |
| 5728 | _ACEOF |
| 5729 | cat confdefs.h >>conftest.$ac_ext |
| 5730 | cat >>conftest.$ac_ext <<_ACEOF |
| 5731 | /* end confdefs.h. */ |
| 5732 | $ac_includes_default |
| 5733 | #include <netinet/in.h> |
| 5734 | _ACEOF |
| 5735 | rm -f conftest.$ac_objext |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 5736 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5737 | (eval $ac_compile) 2>conftest.er1 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 5738 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5739 | grep -v '^ *+' conftest.er1 >conftest.err |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 5740 | rm -f conftest.er1 |
| 5741 | cat conftest.err >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5742 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 5743 | (exit $ac_status); } && |
| 5744 | { ac_try='test -z "$ac_c_werror_flag" |
| 5745 | || test ! -s conftest.err' |
| 5746 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5747 | (eval $ac_try) 2>&5 |
| 5748 | ac_status=$? |
| 5749 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5750 | (exit $ac_status); }; } && |
| 5751 | { ac_try='test -s conftest.$ac_objext' |
| 5752 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5753 | (eval $ac_try) 2>&5 |
| 5754 | ac_status=$? |
| 5755 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5756 | (exit $ac_status); }; }; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5757 | ac_header_compiler=yes |
| 5758 | else |
| 5759 | echo "$as_me: failed program was:" >&5 |
| 5760 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5761 | |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 5762 | ac_header_compiler=no |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5763 | fi |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 5764 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5765 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 5766 | echo "${ECHO_T}$ac_header_compiler" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5767 | |
| 5768 | # Is the header present? |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 5769 | echo "$as_me:$LINENO: checking netinet/in.h presence" >&5 |
| 5770 | echo $ECHO_N "checking netinet/in.h presence... $ECHO_C" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5771 | cat >conftest.$ac_ext <<_ACEOF |
| 5772 | /* confdefs.h. */ |
| 5773 | _ACEOF |
| 5774 | cat confdefs.h >>conftest.$ac_ext |
| 5775 | cat >>conftest.$ac_ext <<_ACEOF |
| 5776 | /* end confdefs.h. */ |
| 5777 | #include <netinet/in.h> |
| 5778 | _ACEOF |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 5779 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 5780 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5781 | ac_status=$? |
| 5782 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5783 | rm -f conftest.er1 |
| 5784 | cat conftest.err >&5 |
| 5785 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 5786 | (exit $ac_status); } >/dev/null; then |
| 5787 | if test -s conftest.err; then |
| 5788 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 5789 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 5790 | else |
| 5791 | ac_cpp_err= |
| 5792 | fi |
| 5793 | else |
| 5794 | ac_cpp_err=yes |
| 5795 | fi |
| 5796 | if test -z "$ac_cpp_err"; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5797 | ac_header_preproc=yes |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 5798 | else |
| 5799 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5800 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5801 | |
| 5802 | ac_header_preproc=no |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 5803 | fi |
| 5804 | rm -f conftest.err conftest.$ac_ext |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 5805 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 5806 | echo "${ECHO_T}$ac_header_preproc" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 5807 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5808 | # So? What about this header? |
| 5809 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 5810 | yes:no: ) |
| 5811 | { echo "$as_me:$LINENO: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 5812 | echo "$as_me: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 5813 | { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the compiler's result" >&5 |
| 5814 | echo "$as_me: WARNING: netinet/in.h: proceeding with the compiler's result" >&2;} |
| 5815 | ac_header_preproc=yes |
| 5816 | ;; |
| 5817 | no:yes:* ) |
| 5818 | { echo "$as_me:$LINENO: WARNING: netinet/in.h: present but cannot be compiled" >&5 |
| 5819 | echo "$as_me: WARNING: netinet/in.h: present but cannot be compiled" >&2;} |
| 5820 | { echo "$as_me:$LINENO: WARNING: netinet/in.h: check for missing prerequisite headers?" >&5 |
| 5821 | echo "$as_me: WARNING: netinet/in.h: check for missing prerequisite headers?" >&2;} |
| 5822 | { echo "$as_me:$LINENO: WARNING: netinet/in.h: see the Autoconf documentation" >&5 |
| 5823 | echo "$as_me: WARNING: netinet/in.h: see the Autoconf documentation" >&2;} |
| 5824 | { echo "$as_me:$LINENO: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 5825 | echo "$as_me: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 5826 | { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&5 |
| 5827 | echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&2;} |
| 5828 | { echo "$as_me:$LINENO: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&5 |
| 5829 | echo "$as_me: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&2;} |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 5830 | ( |
| 5831 | cat <<\_ASBOX |
| 5832 | ## ------------------------------------ ## |
| 5833 | ## Report this to the pjproject lists. ## |
| 5834 | ## ------------------------------------ ## |
| 5835 | _ASBOX |
| 5836 | ) | |
| 5837 | sed "s/^/$as_me: WARNING: /" >&2 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5838 | ;; |
| 5839 | esac |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 5840 | echo "$as_me:$LINENO: checking for netinet/in.h" >&5 |
| 5841 | echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 5842 | if test "${ac_cv_header_netinet_in_h+set}" = set; then |
| 5843 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 5844 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5845 | ac_cv_header_netinet_in_h=$ac_header_preproc |
| 5846 | fi |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 5847 | echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5 |
| 5848 | echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5849 | |
| 5850 | fi |
| 5851 | if test $ac_cv_header_netinet_in_h = yes; then |
| 5852 | cat >>confdefs.h <<\_ACEOF |
| 5853 | #define PJ_HAS_NETINET_IN_H 1 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 5854 | _ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5855 | |
| 5856 | fi |
| 5857 | |
| 5858 | |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 5859 | echo "$as_me:$LINENO: checking for netinet/ip.h" >&5 |
| 5860 | echo $ECHO_N "checking for netinet/ip.h... $ECHO_C" >&6 |
Benny Prijono | f63a255 | 2007-02-01 00:36:52 +0000 | [diff] [blame] | 5861 | if test "${ac_cv_header_netinet_ip_h+set}" = set; then |
| 5862 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Benny Prijono | f63a255 | 2007-02-01 00:36:52 +0000 | [diff] [blame] | 5863 | else |
Benny Prijono | 37fc9de | 2008-08-04 14:45:02 +0000 | [diff] [blame] | 5864 | cat >conftest.$ac_ext <<_ACEOF |
Benny Prijono | f63a255 | 2007-02-01 00:36:52 +0000 | [diff] [blame] | 5865 | /* confdefs.h. */ |
| 5866 | _ACEOF |
| 5867 | cat confdefs.h >>conftest.$ac_ext |
| 5868 | cat >>conftest.$ac_ext <<_ACEOF |
| 5869 | /* end confdefs.h. */ |
Benny Prijono | 37fc9de | 2008-08-04 14:45:02 +0000 | [diff] [blame] | 5870 | #if PJ_HAS_NETINET_IN_SYSTM_H |
| 5871 | # include <netinet/in_systm.h> |
| 5872 | #endif |
| 5873 | |
| 5874 | |
Benny Prijono | f63a255 | 2007-02-01 00:36:52 +0000 | [diff] [blame] | 5875 | #include <netinet/ip.h> |
| 5876 | _ACEOF |
| 5877 | rm -f conftest.$ac_objext |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 5878 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5879 | (eval $ac_compile) 2>conftest.er1 |
Benny Prijono | f63a255 | 2007-02-01 00:36:52 +0000 | [diff] [blame] | 5880 | ac_status=$? |
| 5881 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5882 | rm -f conftest.er1 |
| 5883 | cat conftest.err >&5 |
| 5884 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 5885 | (exit $ac_status); } && |
| 5886 | { ac_try='test -z "$ac_c_werror_flag" |
| 5887 | || test ! -s conftest.err' |
| 5888 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5889 | (eval $ac_try) 2>&5 |
| 5890 | ac_status=$? |
| 5891 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5892 | (exit $ac_status); }; } && |
| 5893 | { ac_try='test -s conftest.$ac_objext' |
| 5894 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5895 | (eval $ac_try) 2>&5 |
| 5896 | ac_status=$? |
| 5897 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5898 | (exit $ac_status); }; }; then |
Benny Prijono | 37fc9de | 2008-08-04 14:45:02 +0000 | [diff] [blame] | 5899 | ac_cv_header_netinet_ip_h=yes |
Benny Prijono | f63a255 | 2007-02-01 00:36:52 +0000 | [diff] [blame] | 5900 | else |
| 5901 | echo "$as_me: failed program was:" >&5 |
| 5902 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5903 | |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 5904 | ac_cv_header_netinet_ip_h=no |
Benny Prijono | f63a255 | 2007-02-01 00:36:52 +0000 | [diff] [blame] | 5905 | fi |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 5906 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Benny Prijono | f63a255 | 2007-02-01 00:36:52 +0000 | [diff] [blame] | 5907 | fi |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 5908 | echo "$as_me:$LINENO: result: $ac_cv_header_netinet_ip_h" >&5 |
| 5909 | echo "${ECHO_T}$ac_cv_header_netinet_ip_h" >&6 |
Benny Prijono | f63a255 | 2007-02-01 00:36:52 +0000 | [diff] [blame] | 5910 | if test $ac_cv_header_netinet_ip_h = yes; then |
| 5911 | cat >>confdefs.h <<\_ACEOF |
| 5912 | #define PJ_HAS_NETINET_IP_H 1 |
| 5913 | _ACEOF |
| 5914 | |
| 5915 | fi |
| 5916 | |
| 5917 | |
Benny Prijono | 1d65f70 | 2007-12-03 04:03:17 +0000 | [diff] [blame] | 5918 | if test "${ac_cv_header_ifaddrs_h+set}" = set; then |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 5919 | echo "$as_me:$LINENO: checking for ifaddrs.h" >&5 |
| 5920 | echo $ECHO_N "checking for ifaddrs.h... $ECHO_C" >&6 |
Benny Prijono | 1d65f70 | 2007-12-03 04:03:17 +0000 | [diff] [blame] | 5921 | if test "${ac_cv_header_ifaddrs_h+set}" = set; then |
| 5922 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5923 | fi |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 5924 | echo "$as_me:$LINENO: result: $ac_cv_header_ifaddrs_h" >&5 |
| 5925 | echo "${ECHO_T}$ac_cv_header_ifaddrs_h" >&6 |
Benny Prijono | 1d65f70 | 2007-12-03 04:03:17 +0000 | [diff] [blame] | 5926 | else |
| 5927 | # Is the header compilable? |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 5928 | echo "$as_me:$LINENO: checking ifaddrs.h usability" >&5 |
| 5929 | echo $ECHO_N "checking ifaddrs.h usability... $ECHO_C" >&6 |
Benny Prijono | 1d65f70 | 2007-12-03 04:03:17 +0000 | [diff] [blame] | 5930 | cat >conftest.$ac_ext <<_ACEOF |
| 5931 | /* confdefs.h. */ |
| 5932 | _ACEOF |
| 5933 | cat confdefs.h >>conftest.$ac_ext |
| 5934 | cat >>conftest.$ac_ext <<_ACEOF |
| 5935 | /* end confdefs.h. */ |
| 5936 | $ac_includes_default |
| 5937 | #include <ifaddrs.h> |
| 5938 | _ACEOF |
| 5939 | rm -f conftest.$ac_objext |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 5940 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5941 | (eval $ac_compile) 2>conftest.er1 |
Benny Prijono | 1d65f70 | 2007-12-03 04:03:17 +0000 | [diff] [blame] | 5942 | ac_status=$? |
| 5943 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5944 | rm -f conftest.er1 |
| 5945 | cat conftest.err >&5 |
| 5946 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 5947 | (exit $ac_status); } && |
| 5948 | { ac_try='test -z "$ac_c_werror_flag" |
| 5949 | || test ! -s conftest.err' |
| 5950 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5951 | (eval $ac_try) 2>&5 |
| 5952 | ac_status=$? |
| 5953 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5954 | (exit $ac_status); }; } && |
| 5955 | { ac_try='test -s conftest.$ac_objext' |
| 5956 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5957 | (eval $ac_try) 2>&5 |
| 5958 | ac_status=$? |
| 5959 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5960 | (exit $ac_status); }; }; then |
Benny Prijono | 1d65f70 | 2007-12-03 04:03:17 +0000 | [diff] [blame] | 5961 | ac_header_compiler=yes |
| 5962 | else |
| 5963 | echo "$as_me: failed program was:" >&5 |
| 5964 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5965 | |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 5966 | ac_header_compiler=no |
Benny Prijono | 1d65f70 | 2007-12-03 04:03:17 +0000 | [diff] [blame] | 5967 | fi |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 5968 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5969 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 5970 | echo "${ECHO_T}$ac_header_compiler" >&6 |
Benny Prijono | 1d65f70 | 2007-12-03 04:03:17 +0000 | [diff] [blame] | 5971 | |
| 5972 | # Is the header present? |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 5973 | echo "$as_me:$LINENO: checking ifaddrs.h presence" >&5 |
| 5974 | echo $ECHO_N "checking ifaddrs.h presence... $ECHO_C" >&6 |
Benny Prijono | 1d65f70 | 2007-12-03 04:03:17 +0000 | [diff] [blame] | 5975 | cat >conftest.$ac_ext <<_ACEOF |
| 5976 | /* confdefs.h. */ |
| 5977 | _ACEOF |
| 5978 | cat confdefs.h >>conftest.$ac_ext |
| 5979 | cat >>conftest.$ac_ext <<_ACEOF |
| 5980 | /* end confdefs.h. */ |
| 5981 | #include <ifaddrs.h> |
| 5982 | _ACEOF |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 5983 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 5984 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
Benny Prijono | 1d65f70 | 2007-12-03 04:03:17 +0000 | [diff] [blame] | 5985 | ac_status=$? |
| 5986 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5987 | rm -f conftest.er1 |
| 5988 | cat conftest.err >&5 |
| 5989 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 5990 | (exit $ac_status); } >/dev/null; then |
| 5991 | if test -s conftest.err; then |
| 5992 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 5993 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 5994 | else |
| 5995 | ac_cpp_err= |
| 5996 | fi |
| 5997 | else |
| 5998 | ac_cpp_err=yes |
| 5999 | fi |
| 6000 | if test -z "$ac_cpp_err"; then |
Benny Prijono | 1d65f70 | 2007-12-03 04:03:17 +0000 | [diff] [blame] | 6001 | ac_header_preproc=yes |
| 6002 | else |
| 6003 | echo "$as_me: failed program was:" >&5 |
| 6004 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6005 | |
| 6006 | ac_header_preproc=no |
| 6007 | fi |
| 6008 | rm -f conftest.err conftest.$ac_ext |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 6009 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 6010 | echo "${ECHO_T}$ac_header_preproc" >&6 |
Benny Prijono | 1d65f70 | 2007-12-03 04:03:17 +0000 | [diff] [blame] | 6011 | |
| 6012 | # So? What about this header? |
| 6013 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 6014 | yes:no: ) |
| 6015 | { echo "$as_me:$LINENO: WARNING: ifaddrs.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 6016 | echo "$as_me: WARNING: ifaddrs.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 6017 | { echo "$as_me:$LINENO: WARNING: ifaddrs.h: proceeding with the compiler's result" >&5 |
| 6018 | echo "$as_me: WARNING: ifaddrs.h: proceeding with the compiler's result" >&2;} |
| 6019 | ac_header_preproc=yes |
| 6020 | ;; |
| 6021 | no:yes:* ) |
| 6022 | { echo "$as_me:$LINENO: WARNING: ifaddrs.h: present but cannot be compiled" >&5 |
| 6023 | echo "$as_me: WARNING: ifaddrs.h: present but cannot be compiled" >&2;} |
| 6024 | { echo "$as_me:$LINENO: WARNING: ifaddrs.h: check for missing prerequisite headers?" >&5 |
| 6025 | echo "$as_me: WARNING: ifaddrs.h: check for missing prerequisite headers?" >&2;} |
| 6026 | { echo "$as_me:$LINENO: WARNING: ifaddrs.h: see the Autoconf documentation" >&5 |
| 6027 | echo "$as_me: WARNING: ifaddrs.h: see the Autoconf documentation" >&2;} |
| 6028 | { echo "$as_me:$LINENO: WARNING: ifaddrs.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 6029 | echo "$as_me: WARNING: ifaddrs.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 6030 | { echo "$as_me:$LINENO: WARNING: ifaddrs.h: proceeding with the preprocessor's result" >&5 |
| 6031 | echo "$as_me: WARNING: ifaddrs.h: proceeding with the preprocessor's result" >&2;} |
| 6032 | { echo "$as_me:$LINENO: WARNING: ifaddrs.h: in the future, the compiler will take precedence" >&5 |
| 6033 | echo "$as_me: WARNING: ifaddrs.h: in the future, the compiler will take precedence" >&2;} |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 6034 | ( |
| 6035 | cat <<\_ASBOX |
| 6036 | ## ------------------------------------ ## |
| 6037 | ## Report this to the pjproject lists. ## |
| 6038 | ## ------------------------------------ ## |
| 6039 | _ASBOX |
| 6040 | ) | |
| 6041 | sed "s/^/$as_me: WARNING: /" >&2 |
Benny Prijono | 1d65f70 | 2007-12-03 04:03:17 +0000 | [diff] [blame] | 6042 | ;; |
| 6043 | esac |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 6044 | echo "$as_me:$LINENO: checking for ifaddrs.h" >&5 |
| 6045 | echo $ECHO_N "checking for ifaddrs.h... $ECHO_C" >&6 |
Benny Prijono | 1d65f70 | 2007-12-03 04:03:17 +0000 | [diff] [blame] | 6046 | if test "${ac_cv_header_ifaddrs_h+set}" = set; then |
| 6047 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6048 | else |
| 6049 | ac_cv_header_ifaddrs_h=$ac_header_preproc |
| 6050 | fi |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 6051 | echo "$as_me:$LINENO: result: $ac_cv_header_ifaddrs_h" >&5 |
| 6052 | echo "${ECHO_T}$ac_cv_header_ifaddrs_h" >&6 |
Benny Prijono | 1d65f70 | 2007-12-03 04:03:17 +0000 | [diff] [blame] | 6053 | |
| 6054 | fi |
| 6055 | if test $ac_cv_header_ifaddrs_h = yes; then |
| 6056 | cat >>confdefs.h <<\_ACEOF |
| 6057 | #define PJ_HAS_IFADDRS_H 1 |
| 6058 | _ACEOF |
| 6059 | |
| 6060 | fi |
| 6061 | |
| 6062 | |
Benny Prijono | 1c5f4e4 | 2008-02-07 13:11:39 +0000 | [diff] [blame] | 6063 | if test "${ac_cv_header_semaphore_h+set}" = set; then |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 6064 | echo "$as_me:$LINENO: checking for semaphore.h" >&5 |
| 6065 | echo $ECHO_N "checking for semaphore.h... $ECHO_C" >&6 |
Benny Prijono | 1c5f4e4 | 2008-02-07 13:11:39 +0000 | [diff] [blame] | 6066 | if test "${ac_cv_header_semaphore_h+set}" = set; then |
| 6067 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6068 | fi |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 6069 | echo "$as_me:$LINENO: result: $ac_cv_header_semaphore_h" >&5 |
| 6070 | echo "${ECHO_T}$ac_cv_header_semaphore_h" >&6 |
Benny Prijono | 1c5f4e4 | 2008-02-07 13:11:39 +0000 | [diff] [blame] | 6071 | else |
| 6072 | # Is the header compilable? |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 6073 | echo "$as_me:$LINENO: checking semaphore.h usability" >&5 |
| 6074 | echo $ECHO_N "checking semaphore.h usability... $ECHO_C" >&6 |
Benny Prijono | 1c5f4e4 | 2008-02-07 13:11:39 +0000 | [diff] [blame] | 6075 | cat >conftest.$ac_ext <<_ACEOF |
| 6076 | /* confdefs.h. */ |
| 6077 | _ACEOF |
| 6078 | cat confdefs.h >>conftest.$ac_ext |
| 6079 | cat >>conftest.$ac_ext <<_ACEOF |
| 6080 | /* end confdefs.h. */ |
| 6081 | $ac_includes_default |
| 6082 | #include <semaphore.h> |
| 6083 | _ACEOF |
| 6084 | rm -f conftest.$ac_objext |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 6085 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6086 | (eval $ac_compile) 2>conftest.er1 |
Benny Prijono | 1c5f4e4 | 2008-02-07 13:11:39 +0000 | [diff] [blame] | 6087 | ac_status=$? |
| 6088 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6089 | rm -f conftest.er1 |
| 6090 | cat conftest.err >&5 |
| 6091 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 6092 | (exit $ac_status); } && |
| 6093 | { ac_try='test -z "$ac_c_werror_flag" |
| 6094 | || test ! -s conftest.err' |
| 6095 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6096 | (eval $ac_try) 2>&5 |
| 6097 | ac_status=$? |
| 6098 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6099 | (exit $ac_status); }; } && |
| 6100 | { ac_try='test -s conftest.$ac_objext' |
| 6101 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6102 | (eval $ac_try) 2>&5 |
| 6103 | ac_status=$? |
| 6104 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6105 | (exit $ac_status); }; }; then |
Benny Prijono | 1c5f4e4 | 2008-02-07 13:11:39 +0000 | [diff] [blame] | 6106 | ac_header_compiler=yes |
| 6107 | else |
| 6108 | echo "$as_me: failed program was:" >&5 |
| 6109 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6110 | |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 6111 | ac_header_compiler=no |
Benny Prijono | 1c5f4e4 | 2008-02-07 13:11:39 +0000 | [diff] [blame] | 6112 | fi |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 6113 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6114 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 6115 | echo "${ECHO_T}$ac_header_compiler" >&6 |
Benny Prijono | 1c5f4e4 | 2008-02-07 13:11:39 +0000 | [diff] [blame] | 6116 | |
| 6117 | # Is the header present? |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 6118 | echo "$as_me:$LINENO: checking semaphore.h presence" >&5 |
| 6119 | echo $ECHO_N "checking semaphore.h presence... $ECHO_C" >&6 |
Benny Prijono | 1c5f4e4 | 2008-02-07 13:11:39 +0000 | [diff] [blame] | 6120 | cat >conftest.$ac_ext <<_ACEOF |
| 6121 | /* confdefs.h. */ |
| 6122 | _ACEOF |
| 6123 | cat confdefs.h >>conftest.$ac_ext |
| 6124 | cat >>conftest.$ac_ext <<_ACEOF |
| 6125 | /* end confdefs.h. */ |
| 6126 | #include <semaphore.h> |
| 6127 | _ACEOF |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 6128 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 6129 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
Benny Prijono | 1c5f4e4 | 2008-02-07 13:11:39 +0000 | [diff] [blame] | 6130 | ac_status=$? |
| 6131 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6132 | rm -f conftest.er1 |
| 6133 | cat conftest.err >&5 |
| 6134 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 6135 | (exit $ac_status); } >/dev/null; then |
| 6136 | if test -s conftest.err; then |
| 6137 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 6138 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 6139 | else |
| 6140 | ac_cpp_err= |
| 6141 | fi |
| 6142 | else |
| 6143 | ac_cpp_err=yes |
| 6144 | fi |
| 6145 | if test -z "$ac_cpp_err"; then |
Benny Prijono | 1c5f4e4 | 2008-02-07 13:11:39 +0000 | [diff] [blame] | 6146 | ac_header_preproc=yes |
| 6147 | else |
| 6148 | echo "$as_me: failed program was:" >&5 |
| 6149 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6150 | |
| 6151 | ac_header_preproc=no |
| 6152 | fi |
Benny Prijono | 1c5f4e4 | 2008-02-07 13:11:39 +0000 | [diff] [blame] | 6153 | rm -f conftest.err conftest.$ac_ext |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 6154 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 6155 | echo "${ECHO_T}$ac_header_preproc" >&6 |
Benny Prijono | 1c5f4e4 | 2008-02-07 13:11:39 +0000 | [diff] [blame] | 6156 | |
| 6157 | # So? What about this header? |
| 6158 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 6159 | yes:no: ) |
| 6160 | { echo "$as_me:$LINENO: WARNING: semaphore.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 6161 | echo "$as_me: WARNING: semaphore.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 6162 | { echo "$as_me:$LINENO: WARNING: semaphore.h: proceeding with the compiler's result" >&5 |
| 6163 | echo "$as_me: WARNING: semaphore.h: proceeding with the compiler's result" >&2;} |
| 6164 | ac_header_preproc=yes |
| 6165 | ;; |
| 6166 | no:yes:* ) |
| 6167 | { echo "$as_me:$LINENO: WARNING: semaphore.h: present but cannot be compiled" >&5 |
| 6168 | echo "$as_me: WARNING: semaphore.h: present but cannot be compiled" >&2;} |
| 6169 | { echo "$as_me:$LINENO: WARNING: semaphore.h: check for missing prerequisite headers?" >&5 |
| 6170 | echo "$as_me: WARNING: semaphore.h: check for missing prerequisite headers?" >&2;} |
| 6171 | { echo "$as_me:$LINENO: WARNING: semaphore.h: see the Autoconf documentation" >&5 |
| 6172 | echo "$as_me: WARNING: semaphore.h: see the Autoconf documentation" >&2;} |
| 6173 | { echo "$as_me:$LINENO: WARNING: semaphore.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 6174 | echo "$as_me: WARNING: semaphore.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 6175 | { echo "$as_me:$LINENO: WARNING: semaphore.h: proceeding with the preprocessor's result" >&5 |
| 6176 | echo "$as_me: WARNING: semaphore.h: proceeding with the preprocessor's result" >&2;} |
| 6177 | { echo "$as_me:$LINENO: WARNING: semaphore.h: in the future, the compiler will take precedence" >&5 |
| 6178 | echo "$as_me: WARNING: semaphore.h: in the future, the compiler will take precedence" >&2;} |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 6179 | ( |
| 6180 | cat <<\_ASBOX |
| 6181 | ## ------------------------------------ ## |
| 6182 | ## Report this to the pjproject lists. ## |
| 6183 | ## ------------------------------------ ## |
| 6184 | _ASBOX |
| 6185 | ) | |
| 6186 | sed "s/^/$as_me: WARNING: /" >&2 |
Benny Prijono | 1c5f4e4 | 2008-02-07 13:11:39 +0000 | [diff] [blame] | 6187 | ;; |
| 6188 | esac |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 6189 | echo "$as_me:$LINENO: checking for semaphore.h" >&5 |
| 6190 | echo $ECHO_N "checking for semaphore.h... $ECHO_C" >&6 |
Benny Prijono | 1c5f4e4 | 2008-02-07 13:11:39 +0000 | [diff] [blame] | 6191 | if test "${ac_cv_header_semaphore_h+set}" = set; then |
| 6192 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6193 | else |
| 6194 | ac_cv_header_semaphore_h=$ac_header_preproc |
| 6195 | fi |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 6196 | echo "$as_me:$LINENO: result: $ac_cv_header_semaphore_h" >&5 |
| 6197 | echo "${ECHO_T}$ac_cv_header_semaphore_h" >&6 |
Benny Prijono | 1c5f4e4 | 2008-02-07 13:11:39 +0000 | [diff] [blame] | 6198 | |
| 6199 | fi |
| 6200 | if test $ac_cv_header_semaphore_h = yes; then |
| 6201 | cat >>confdefs.h <<\_ACEOF |
| 6202 | #define PJ_HAS_SEMAPHORE_H 1 |
| 6203 | _ACEOF |
| 6204 | |
| 6205 | fi |
| 6206 | |
| 6207 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6208 | if test "${ac_cv_header_setjmp_h+set}" = set; then |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 6209 | echo "$as_me:$LINENO: checking for setjmp.h" >&5 |
| 6210 | echo $ECHO_N "checking for setjmp.h... $ECHO_C" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6211 | if test "${ac_cv_header_setjmp_h+set}" = set; then |
| 6212 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6213 | fi |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 6214 | echo "$as_me:$LINENO: result: $ac_cv_header_setjmp_h" >&5 |
| 6215 | echo "${ECHO_T}$ac_cv_header_setjmp_h" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6216 | else |
| 6217 | # Is the header compilable? |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 6218 | echo "$as_me:$LINENO: checking setjmp.h usability" >&5 |
| 6219 | echo $ECHO_N "checking setjmp.h usability... $ECHO_C" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6220 | cat >conftest.$ac_ext <<_ACEOF |
| 6221 | /* confdefs.h. */ |
| 6222 | _ACEOF |
| 6223 | cat confdefs.h >>conftest.$ac_ext |
| 6224 | cat >>conftest.$ac_ext <<_ACEOF |
| 6225 | /* end confdefs.h. */ |
| 6226 | $ac_includes_default |
| 6227 | #include <setjmp.h> |
| 6228 | _ACEOF |
| 6229 | rm -f conftest.$ac_objext |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 6230 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6231 | (eval $ac_compile) 2>conftest.er1 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6232 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6233 | grep -v '^ *+' conftest.er1 >conftest.err |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6234 | rm -f conftest.er1 |
| 6235 | cat conftest.err >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6236 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 6237 | (exit $ac_status); } && |
| 6238 | { ac_try='test -z "$ac_c_werror_flag" |
| 6239 | || test ! -s conftest.err' |
| 6240 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6241 | (eval $ac_try) 2>&5 |
| 6242 | ac_status=$? |
| 6243 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6244 | (exit $ac_status); }; } && |
| 6245 | { ac_try='test -s conftest.$ac_objext' |
| 6246 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6247 | (eval $ac_try) 2>&5 |
| 6248 | ac_status=$? |
| 6249 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6250 | (exit $ac_status); }; }; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6251 | ac_header_compiler=yes |
| 6252 | else |
| 6253 | echo "$as_me: failed program was:" >&5 |
| 6254 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6255 | |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 6256 | ac_header_compiler=no |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6257 | fi |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 6258 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6259 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 6260 | echo "${ECHO_T}$ac_header_compiler" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6261 | |
| 6262 | # Is the header present? |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 6263 | echo "$as_me:$LINENO: checking setjmp.h presence" >&5 |
| 6264 | echo $ECHO_N "checking setjmp.h presence... $ECHO_C" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6265 | cat >conftest.$ac_ext <<_ACEOF |
| 6266 | /* confdefs.h. */ |
| 6267 | _ACEOF |
| 6268 | cat confdefs.h >>conftest.$ac_ext |
| 6269 | cat >>conftest.$ac_ext <<_ACEOF |
| 6270 | /* end confdefs.h. */ |
| 6271 | #include <setjmp.h> |
| 6272 | _ACEOF |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 6273 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 6274 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6275 | ac_status=$? |
| 6276 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6277 | rm -f conftest.er1 |
| 6278 | cat conftest.err >&5 |
| 6279 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 6280 | (exit $ac_status); } >/dev/null; then |
| 6281 | if test -s conftest.err; then |
| 6282 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 6283 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 6284 | else |
| 6285 | ac_cpp_err= |
| 6286 | fi |
| 6287 | else |
| 6288 | ac_cpp_err=yes |
| 6289 | fi |
| 6290 | if test -z "$ac_cpp_err"; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6291 | ac_header_preproc=yes |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6292 | else |
| 6293 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6294 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6295 | |
| 6296 | ac_header_preproc=no |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6297 | fi |
| 6298 | rm -f conftest.err conftest.$ac_ext |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 6299 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 6300 | echo "${ECHO_T}$ac_header_preproc" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 6301 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6302 | # So? What about this header? |
| 6303 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 6304 | yes:no: ) |
| 6305 | { echo "$as_me:$LINENO: WARNING: setjmp.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 6306 | echo "$as_me: WARNING: setjmp.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 6307 | { echo "$as_me:$LINENO: WARNING: setjmp.h: proceeding with the compiler's result" >&5 |
| 6308 | echo "$as_me: WARNING: setjmp.h: proceeding with the compiler's result" >&2;} |
| 6309 | ac_header_preproc=yes |
| 6310 | ;; |
| 6311 | no:yes:* ) |
| 6312 | { echo "$as_me:$LINENO: WARNING: setjmp.h: present but cannot be compiled" >&5 |
| 6313 | echo "$as_me: WARNING: setjmp.h: present but cannot be compiled" >&2;} |
| 6314 | { echo "$as_me:$LINENO: WARNING: setjmp.h: check for missing prerequisite headers?" >&5 |
| 6315 | echo "$as_me: WARNING: setjmp.h: check for missing prerequisite headers?" >&2;} |
| 6316 | { echo "$as_me:$LINENO: WARNING: setjmp.h: see the Autoconf documentation" >&5 |
| 6317 | echo "$as_me: WARNING: setjmp.h: see the Autoconf documentation" >&2;} |
| 6318 | { echo "$as_me:$LINENO: WARNING: setjmp.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 6319 | echo "$as_me: WARNING: setjmp.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 6320 | { echo "$as_me:$LINENO: WARNING: setjmp.h: proceeding with the preprocessor's result" >&5 |
| 6321 | echo "$as_me: WARNING: setjmp.h: proceeding with the preprocessor's result" >&2;} |
| 6322 | { echo "$as_me:$LINENO: WARNING: setjmp.h: in the future, the compiler will take precedence" >&5 |
| 6323 | echo "$as_me: WARNING: setjmp.h: in the future, the compiler will take precedence" >&2;} |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 6324 | ( |
| 6325 | cat <<\_ASBOX |
| 6326 | ## ------------------------------------ ## |
| 6327 | ## Report this to the pjproject lists. ## |
| 6328 | ## ------------------------------------ ## |
| 6329 | _ASBOX |
| 6330 | ) | |
| 6331 | sed "s/^/$as_me: WARNING: /" >&2 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6332 | ;; |
| 6333 | esac |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 6334 | echo "$as_me:$LINENO: checking for setjmp.h" >&5 |
| 6335 | echo $ECHO_N "checking for setjmp.h... $ECHO_C" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 6336 | if test "${ac_cv_header_setjmp_h+set}" = set; then |
| 6337 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 6338 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6339 | ac_cv_header_setjmp_h=$ac_header_preproc |
| 6340 | fi |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 6341 | echo "$as_me:$LINENO: result: $ac_cv_header_setjmp_h" >&5 |
| 6342 | echo "${ECHO_T}$ac_cv_header_setjmp_h" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6343 | |
| 6344 | fi |
| 6345 | if test $ac_cv_header_setjmp_h = yes; then |
| 6346 | cat >>confdefs.h <<\_ACEOF |
| 6347 | #define PJ_HAS_SETJMP_H 1 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 6348 | _ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6349 | |
| 6350 | fi |
| 6351 | |
| 6352 | |
| 6353 | if test "${ac_cv_header_stdarg_h+set}" = set; then |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 6354 | echo "$as_me:$LINENO: checking for stdarg.h" >&5 |
| 6355 | echo $ECHO_N "checking for stdarg.h... $ECHO_C" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6356 | if test "${ac_cv_header_stdarg_h+set}" = set; then |
| 6357 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6358 | fi |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 6359 | echo "$as_me:$LINENO: result: $ac_cv_header_stdarg_h" >&5 |
| 6360 | echo "${ECHO_T}$ac_cv_header_stdarg_h" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6361 | else |
| 6362 | # Is the header compilable? |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 6363 | echo "$as_me:$LINENO: checking stdarg.h usability" >&5 |
| 6364 | echo $ECHO_N "checking stdarg.h usability... $ECHO_C" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6365 | cat >conftest.$ac_ext <<_ACEOF |
| 6366 | /* confdefs.h. */ |
| 6367 | _ACEOF |
| 6368 | cat confdefs.h >>conftest.$ac_ext |
| 6369 | cat >>conftest.$ac_ext <<_ACEOF |
| 6370 | /* end confdefs.h. */ |
| 6371 | $ac_includes_default |
| 6372 | #include <stdarg.h> |
| 6373 | _ACEOF |
| 6374 | rm -f conftest.$ac_objext |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 6375 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6376 | (eval $ac_compile) 2>conftest.er1 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6377 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6378 | grep -v '^ *+' conftest.er1 >conftest.err |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6379 | rm -f conftest.er1 |
| 6380 | cat conftest.err >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6381 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 6382 | (exit $ac_status); } && |
| 6383 | { ac_try='test -z "$ac_c_werror_flag" |
| 6384 | || test ! -s conftest.err' |
| 6385 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6386 | (eval $ac_try) 2>&5 |
| 6387 | ac_status=$? |
| 6388 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6389 | (exit $ac_status); }; } && |
| 6390 | { ac_try='test -s conftest.$ac_objext' |
| 6391 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6392 | (eval $ac_try) 2>&5 |
| 6393 | ac_status=$? |
| 6394 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6395 | (exit $ac_status); }; }; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6396 | ac_header_compiler=yes |
| 6397 | else |
| 6398 | echo "$as_me: failed program was:" >&5 |
| 6399 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6400 | |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 6401 | ac_header_compiler=no |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6402 | fi |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 6403 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6404 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 6405 | echo "${ECHO_T}$ac_header_compiler" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6406 | |
| 6407 | # Is the header present? |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 6408 | echo "$as_me:$LINENO: checking stdarg.h presence" >&5 |
| 6409 | echo $ECHO_N "checking stdarg.h presence... $ECHO_C" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6410 | cat >conftest.$ac_ext <<_ACEOF |
| 6411 | /* confdefs.h. */ |
| 6412 | _ACEOF |
| 6413 | cat confdefs.h >>conftest.$ac_ext |
| 6414 | cat >>conftest.$ac_ext <<_ACEOF |
| 6415 | /* end confdefs.h. */ |
| 6416 | #include <stdarg.h> |
| 6417 | _ACEOF |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 6418 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 6419 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6420 | ac_status=$? |
| 6421 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6422 | rm -f conftest.er1 |
| 6423 | cat conftest.err >&5 |
| 6424 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 6425 | (exit $ac_status); } >/dev/null; then |
| 6426 | if test -s conftest.err; then |
| 6427 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 6428 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 6429 | else |
| 6430 | ac_cpp_err= |
| 6431 | fi |
| 6432 | else |
| 6433 | ac_cpp_err=yes |
| 6434 | fi |
| 6435 | if test -z "$ac_cpp_err"; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6436 | ac_header_preproc=yes |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6437 | else |
| 6438 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6439 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6440 | |
| 6441 | ac_header_preproc=no |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6442 | fi |
| 6443 | rm -f conftest.err conftest.$ac_ext |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 6444 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 6445 | echo "${ECHO_T}$ac_header_preproc" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 6446 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6447 | # So? What about this header? |
| 6448 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 6449 | yes:no: ) |
| 6450 | { echo "$as_me:$LINENO: WARNING: stdarg.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 6451 | echo "$as_me: WARNING: stdarg.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 6452 | { echo "$as_me:$LINENO: WARNING: stdarg.h: proceeding with the compiler's result" >&5 |
| 6453 | echo "$as_me: WARNING: stdarg.h: proceeding with the compiler's result" >&2;} |
| 6454 | ac_header_preproc=yes |
| 6455 | ;; |
| 6456 | no:yes:* ) |
| 6457 | { echo "$as_me:$LINENO: WARNING: stdarg.h: present but cannot be compiled" >&5 |
| 6458 | echo "$as_me: WARNING: stdarg.h: present but cannot be compiled" >&2;} |
| 6459 | { echo "$as_me:$LINENO: WARNING: stdarg.h: check for missing prerequisite headers?" >&5 |
| 6460 | echo "$as_me: WARNING: stdarg.h: check for missing prerequisite headers?" >&2;} |
| 6461 | { echo "$as_me:$LINENO: WARNING: stdarg.h: see the Autoconf documentation" >&5 |
| 6462 | echo "$as_me: WARNING: stdarg.h: see the Autoconf documentation" >&2;} |
| 6463 | { echo "$as_me:$LINENO: WARNING: stdarg.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 6464 | echo "$as_me: WARNING: stdarg.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 6465 | { echo "$as_me:$LINENO: WARNING: stdarg.h: proceeding with the preprocessor's result" >&5 |
| 6466 | echo "$as_me: WARNING: stdarg.h: proceeding with the preprocessor's result" >&2;} |
| 6467 | { echo "$as_me:$LINENO: WARNING: stdarg.h: in the future, the compiler will take precedence" >&5 |
| 6468 | echo "$as_me: WARNING: stdarg.h: in the future, the compiler will take precedence" >&2;} |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 6469 | ( |
| 6470 | cat <<\_ASBOX |
| 6471 | ## ------------------------------------ ## |
| 6472 | ## Report this to the pjproject lists. ## |
| 6473 | ## ------------------------------------ ## |
| 6474 | _ASBOX |
| 6475 | ) | |
| 6476 | sed "s/^/$as_me: WARNING: /" >&2 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6477 | ;; |
| 6478 | esac |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 6479 | echo "$as_me:$LINENO: checking for stdarg.h" >&5 |
| 6480 | echo $ECHO_N "checking for stdarg.h... $ECHO_C" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 6481 | if test "${ac_cv_header_stdarg_h+set}" = set; then |
| 6482 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 6483 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6484 | ac_cv_header_stdarg_h=$ac_header_preproc |
| 6485 | fi |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 6486 | echo "$as_me:$LINENO: result: $ac_cv_header_stdarg_h" >&5 |
| 6487 | echo "${ECHO_T}$ac_cv_header_stdarg_h" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6488 | |
| 6489 | fi |
| 6490 | if test $ac_cv_header_stdarg_h = yes; then |
| 6491 | cat >>confdefs.h <<\_ACEOF |
| 6492 | #define PJ_HAS_STDARG_H 1 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 6493 | _ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6494 | |
| 6495 | fi |
| 6496 | |
| 6497 | |
| 6498 | if test "${ac_cv_header_stddef_h+set}" = set; then |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 6499 | echo "$as_me:$LINENO: checking for stddef.h" >&5 |
| 6500 | echo $ECHO_N "checking for stddef.h... $ECHO_C" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6501 | if test "${ac_cv_header_stddef_h+set}" = set; then |
| 6502 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6503 | fi |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 6504 | echo "$as_me:$LINENO: result: $ac_cv_header_stddef_h" >&5 |
| 6505 | echo "${ECHO_T}$ac_cv_header_stddef_h" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6506 | else |
| 6507 | # Is the header compilable? |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 6508 | echo "$as_me:$LINENO: checking stddef.h usability" >&5 |
| 6509 | echo $ECHO_N "checking stddef.h usability... $ECHO_C" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6510 | cat >conftest.$ac_ext <<_ACEOF |
| 6511 | /* confdefs.h. */ |
| 6512 | _ACEOF |
| 6513 | cat confdefs.h >>conftest.$ac_ext |
| 6514 | cat >>conftest.$ac_ext <<_ACEOF |
| 6515 | /* end confdefs.h. */ |
| 6516 | $ac_includes_default |
| 6517 | #include <stddef.h> |
| 6518 | _ACEOF |
| 6519 | rm -f conftest.$ac_objext |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 6520 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6521 | (eval $ac_compile) 2>conftest.er1 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6522 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6523 | grep -v '^ *+' conftest.er1 >conftest.err |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6524 | rm -f conftest.er1 |
| 6525 | cat conftest.err >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6526 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 6527 | (exit $ac_status); } && |
| 6528 | { ac_try='test -z "$ac_c_werror_flag" |
| 6529 | || test ! -s conftest.err' |
| 6530 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6531 | (eval $ac_try) 2>&5 |
| 6532 | ac_status=$? |
| 6533 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6534 | (exit $ac_status); }; } && |
| 6535 | { ac_try='test -s conftest.$ac_objext' |
| 6536 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6537 | (eval $ac_try) 2>&5 |
| 6538 | ac_status=$? |
| 6539 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6540 | (exit $ac_status); }; }; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6541 | ac_header_compiler=yes |
| 6542 | else |
| 6543 | echo "$as_me: failed program was:" >&5 |
| 6544 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6545 | |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 6546 | ac_header_compiler=no |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6547 | fi |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 6548 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6549 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 6550 | echo "${ECHO_T}$ac_header_compiler" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6551 | |
| 6552 | # Is the header present? |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 6553 | echo "$as_me:$LINENO: checking stddef.h presence" >&5 |
| 6554 | echo $ECHO_N "checking stddef.h presence... $ECHO_C" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6555 | cat >conftest.$ac_ext <<_ACEOF |
| 6556 | /* confdefs.h. */ |
| 6557 | _ACEOF |
| 6558 | cat confdefs.h >>conftest.$ac_ext |
| 6559 | cat >>conftest.$ac_ext <<_ACEOF |
| 6560 | /* end confdefs.h. */ |
| 6561 | #include <stddef.h> |
| 6562 | _ACEOF |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 6563 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 6564 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6565 | ac_status=$? |
| 6566 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6567 | rm -f conftest.er1 |
| 6568 | cat conftest.err >&5 |
| 6569 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 6570 | (exit $ac_status); } >/dev/null; then |
| 6571 | if test -s conftest.err; then |
| 6572 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 6573 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 6574 | else |
| 6575 | ac_cpp_err= |
| 6576 | fi |
| 6577 | else |
| 6578 | ac_cpp_err=yes |
| 6579 | fi |
| 6580 | if test -z "$ac_cpp_err"; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6581 | ac_header_preproc=yes |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6582 | else |
| 6583 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6584 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6585 | |
| 6586 | ac_header_preproc=no |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6587 | fi |
| 6588 | rm -f conftest.err conftest.$ac_ext |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 6589 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 6590 | echo "${ECHO_T}$ac_header_preproc" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 6591 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6592 | # So? What about this header? |
| 6593 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 6594 | yes:no: ) |
| 6595 | { echo "$as_me:$LINENO: WARNING: stddef.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 6596 | echo "$as_me: WARNING: stddef.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 6597 | { echo "$as_me:$LINENO: WARNING: stddef.h: proceeding with the compiler's result" >&5 |
| 6598 | echo "$as_me: WARNING: stddef.h: proceeding with the compiler's result" >&2;} |
| 6599 | ac_header_preproc=yes |
| 6600 | ;; |
| 6601 | no:yes:* ) |
| 6602 | { echo "$as_me:$LINENO: WARNING: stddef.h: present but cannot be compiled" >&5 |
| 6603 | echo "$as_me: WARNING: stddef.h: present but cannot be compiled" >&2;} |
| 6604 | { echo "$as_me:$LINENO: WARNING: stddef.h: check for missing prerequisite headers?" >&5 |
| 6605 | echo "$as_me: WARNING: stddef.h: check for missing prerequisite headers?" >&2;} |
| 6606 | { echo "$as_me:$LINENO: WARNING: stddef.h: see the Autoconf documentation" >&5 |
| 6607 | echo "$as_me: WARNING: stddef.h: see the Autoconf documentation" >&2;} |
| 6608 | { echo "$as_me:$LINENO: WARNING: stddef.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 6609 | echo "$as_me: WARNING: stddef.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 6610 | { echo "$as_me:$LINENO: WARNING: stddef.h: proceeding with the preprocessor's result" >&5 |
| 6611 | echo "$as_me: WARNING: stddef.h: proceeding with the preprocessor's result" >&2;} |
| 6612 | { echo "$as_me:$LINENO: WARNING: stddef.h: in the future, the compiler will take precedence" >&5 |
| 6613 | echo "$as_me: WARNING: stddef.h: in the future, the compiler will take precedence" >&2;} |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 6614 | ( |
| 6615 | cat <<\_ASBOX |
| 6616 | ## ------------------------------------ ## |
| 6617 | ## Report this to the pjproject lists. ## |
| 6618 | ## ------------------------------------ ## |
| 6619 | _ASBOX |
| 6620 | ) | |
| 6621 | sed "s/^/$as_me: WARNING: /" >&2 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6622 | ;; |
| 6623 | esac |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 6624 | echo "$as_me:$LINENO: checking for stddef.h" >&5 |
| 6625 | echo $ECHO_N "checking for stddef.h... $ECHO_C" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 6626 | if test "${ac_cv_header_stddef_h+set}" = set; then |
| 6627 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 6628 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6629 | ac_cv_header_stddef_h=$ac_header_preproc |
| 6630 | fi |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 6631 | echo "$as_me:$LINENO: result: $ac_cv_header_stddef_h" >&5 |
| 6632 | echo "${ECHO_T}$ac_cv_header_stddef_h" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6633 | |
| 6634 | fi |
| 6635 | if test $ac_cv_header_stddef_h = yes; then |
| 6636 | cat >>confdefs.h <<\_ACEOF |
| 6637 | #define PJ_HAS_STDDEF_H 1 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 6638 | _ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6639 | |
| 6640 | fi |
| 6641 | |
| 6642 | |
| 6643 | if test "${ac_cv_header_stdio_h+set}" = set; then |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 6644 | echo "$as_me:$LINENO: checking for stdio.h" >&5 |
| 6645 | echo $ECHO_N "checking for stdio.h... $ECHO_C" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6646 | if test "${ac_cv_header_stdio_h+set}" = set; then |
| 6647 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6648 | fi |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 6649 | echo "$as_me:$LINENO: result: $ac_cv_header_stdio_h" >&5 |
| 6650 | echo "${ECHO_T}$ac_cv_header_stdio_h" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6651 | else |
| 6652 | # Is the header compilable? |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 6653 | echo "$as_me:$LINENO: checking stdio.h usability" >&5 |
| 6654 | echo $ECHO_N "checking stdio.h usability... $ECHO_C" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6655 | cat >conftest.$ac_ext <<_ACEOF |
| 6656 | /* confdefs.h. */ |
| 6657 | _ACEOF |
| 6658 | cat confdefs.h >>conftest.$ac_ext |
| 6659 | cat >>conftest.$ac_ext <<_ACEOF |
| 6660 | /* end confdefs.h. */ |
| 6661 | $ac_includes_default |
| 6662 | #include <stdio.h> |
| 6663 | _ACEOF |
| 6664 | rm -f conftest.$ac_objext |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 6665 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6666 | (eval $ac_compile) 2>conftest.er1 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6667 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6668 | grep -v '^ *+' conftest.er1 >conftest.err |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6669 | rm -f conftest.er1 |
| 6670 | cat conftest.err >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6671 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 6672 | (exit $ac_status); } && |
| 6673 | { ac_try='test -z "$ac_c_werror_flag" |
| 6674 | || test ! -s conftest.err' |
| 6675 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6676 | (eval $ac_try) 2>&5 |
| 6677 | ac_status=$? |
| 6678 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6679 | (exit $ac_status); }; } && |
| 6680 | { ac_try='test -s conftest.$ac_objext' |
| 6681 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6682 | (eval $ac_try) 2>&5 |
| 6683 | ac_status=$? |
| 6684 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6685 | (exit $ac_status); }; }; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6686 | ac_header_compiler=yes |
| 6687 | else |
| 6688 | echo "$as_me: failed program was:" >&5 |
| 6689 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6690 | |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 6691 | ac_header_compiler=no |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6692 | fi |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 6693 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6694 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 6695 | echo "${ECHO_T}$ac_header_compiler" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6696 | |
| 6697 | # Is the header present? |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 6698 | echo "$as_me:$LINENO: checking stdio.h presence" >&5 |
| 6699 | echo $ECHO_N "checking stdio.h presence... $ECHO_C" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6700 | cat >conftest.$ac_ext <<_ACEOF |
| 6701 | /* confdefs.h. */ |
| 6702 | _ACEOF |
| 6703 | cat confdefs.h >>conftest.$ac_ext |
| 6704 | cat >>conftest.$ac_ext <<_ACEOF |
| 6705 | /* end confdefs.h. */ |
| 6706 | #include <stdio.h> |
| 6707 | _ACEOF |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 6708 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 6709 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6710 | ac_status=$? |
| 6711 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6712 | rm -f conftest.er1 |
| 6713 | cat conftest.err >&5 |
| 6714 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 6715 | (exit $ac_status); } >/dev/null; then |
| 6716 | if test -s conftest.err; then |
| 6717 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 6718 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 6719 | else |
| 6720 | ac_cpp_err= |
| 6721 | fi |
| 6722 | else |
| 6723 | ac_cpp_err=yes |
| 6724 | fi |
| 6725 | if test -z "$ac_cpp_err"; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6726 | ac_header_preproc=yes |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6727 | else |
| 6728 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6729 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6730 | |
| 6731 | ac_header_preproc=no |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6732 | fi |
| 6733 | rm -f conftest.err conftest.$ac_ext |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 6734 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 6735 | echo "${ECHO_T}$ac_header_preproc" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 6736 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6737 | # So? What about this header? |
| 6738 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 6739 | yes:no: ) |
| 6740 | { echo "$as_me:$LINENO: WARNING: stdio.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 6741 | echo "$as_me: WARNING: stdio.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 6742 | { echo "$as_me:$LINENO: WARNING: stdio.h: proceeding with the compiler's result" >&5 |
| 6743 | echo "$as_me: WARNING: stdio.h: proceeding with the compiler's result" >&2;} |
| 6744 | ac_header_preproc=yes |
| 6745 | ;; |
| 6746 | no:yes:* ) |
| 6747 | { echo "$as_me:$LINENO: WARNING: stdio.h: present but cannot be compiled" >&5 |
| 6748 | echo "$as_me: WARNING: stdio.h: present but cannot be compiled" >&2;} |
| 6749 | { echo "$as_me:$LINENO: WARNING: stdio.h: check for missing prerequisite headers?" >&5 |
| 6750 | echo "$as_me: WARNING: stdio.h: check for missing prerequisite headers?" >&2;} |
| 6751 | { echo "$as_me:$LINENO: WARNING: stdio.h: see the Autoconf documentation" >&5 |
| 6752 | echo "$as_me: WARNING: stdio.h: see the Autoconf documentation" >&2;} |
| 6753 | { echo "$as_me:$LINENO: WARNING: stdio.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 6754 | echo "$as_me: WARNING: stdio.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 6755 | { echo "$as_me:$LINENO: WARNING: stdio.h: proceeding with the preprocessor's result" >&5 |
| 6756 | echo "$as_me: WARNING: stdio.h: proceeding with the preprocessor's result" >&2;} |
| 6757 | { echo "$as_me:$LINENO: WARNING: stdio.h: in the future, the compiler will take precedence" >&5 |
| 6758 | echo "$as_me: WARNING: stdio.h: in the future, the compiler will take precedence" >&2;} |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 6759 | ( |
| 6760 | cat <<\_ASBOX |
| 6761 | ## ------------------------------------ ## |
| 6762 | ## Report this to the pjproject lists. ## |
| 6763 | ## ------------------------------------ ## |
| 6764 | _ASBOX |
| 6765 | ) | |
| 6766 | sed "s/^/$as_me: WARNING: /" >&2 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6767 | ;; |
| 6768 | esac |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 6769 | echo "$as_me:$LINENO: checking for stdio.h" >&5 |
| 6770 | echo $ECHO_N "checking for stdio.h... $ECHO_C" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 6771 | if test "${ac_cv_header_stdio_h+set}" = set; then |
| 6772 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 6773 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6774 | ac_cv_header_stdio_h=$ac_header_preproc |
| 6775 | fi |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 6776 | echo "$as_me:$LINENO: result: $ac_cv_header_stdio_h" >&5 |
| 6777 | echo "${ECHO_T}$ac_cv_header_stdio_h" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6778 | |
| 6779 | fi |
| 6780 | if test $ac_cv_header_stdio_h = yes; then |
| 6781 | cat >>confdefs.h <<\_ACEOF |
| 6782 | #define PJ_HAS_STDIO_H 1 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 6783 | _ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6784 | |
| 6785 | fi |
| 6786 | |
| 6787 | |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 6788 | if test "${ac_cv_header_stdint_h+set}" = set; then |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 6789 | echo "$as_me:$LINENO: checking for stdint.h" >&5 |
| 6790 | echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6 |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 6791 | if test "${ac_cv_header_stdint_h+set}" = set; then |
| 6792 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6793 | fi |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 6794 | echo "$as_me:$LINENO: result: $ac_cv_header_stdint_h" >&5 |
| 6795 | echo "${ECHO_T}$ac_cv_header_stdint_h" >&6 |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 6796 | else |
| 6797 | # Is the header compilable? |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 6798 | echo "$as_me:$LINENO: checking stdint.h usability" >&5 |
| 6799 | echo $ECHO_N "checking stdint.h usability... $ECHO_C" >&6 |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 6800 | cat >conftest.$ac_ext <<_ACEOF |
| 6801 | /* confdefs.h. */ |
| 6802 | _ACEOF |
| 6803 | cat confdefs.h >>conftest.$ac_ext |
| 6804 | cat >>conftest.$ac_ext <<_ACEOF |
| 6805 | /* end confdefs.h. */ |
| 6806 | $ac_includes_default |
| 6807 | #include <stdint.h> |
| 6808 | _ACEOF |
| 6809 | rm -f conftest.$ac_objext |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 6810 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6811 | (eval $ac_compile) 2>conftest.er1 |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 6812 | ac_status=$? |
| 6813 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6814 | rm -f conftest.er1 |
| 6815 | cat conftest.err >&5 |
| 6816 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 6817 | (exit $ac_status); } && |
| 6818 | { ac_try='test -z "$ac_c_werror_flag" |
| 6819 | || test ! -s conftest.err' |
| 6820 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6821 | (eval $ac_try) 2>&5 |
| 6822 | ac_status=$? |
| 6823 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6824 | (exit $ac_status); }; } && |
| 6825 | { ac_try='test -s conftest.$ac_objext' |
| 6826 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6827 | (eval $ac_try) 2>&5 |
| 6828 | ac_status=$? |
| 6829 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6830 | (exit $ac_status); }; }; then |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 6831 | ac_header_compiler=yes |
| 6832 | else |
| 6833 | echo "$as_me: failed program was:" >&5 |
| 6834 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6835 | |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 6836 | ac_header_compiler=no |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 6837 | fi |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 6838 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6839 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 6840 | echo "${ECHO_T}$ac_header_compiler" >&6 |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 6841 | |
| 6842 | # Is the header present? |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 6843 | echo "$as_me:$LINENO: checking stdint.h presence" >&5 |
| 6844 | echo $ECHO_N "checking stdint.h presence... $ECHO_C" >&6 |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 6845 | cat >conftest.$ac_ext <<_ACEOF |
| 6846 | /* confdefs.h. */ |
| 6847 | _ACEOF |
| 6848 | cat confdefs.h >>conftest.$ac_ext |
| 6849 | cat >>conftest.$ac_ext <<_ACEOF |
| 6850 | /* end confdefs.h. */ |
| 6851 | #include <stdint.h> |
| 6852 | _ACEOF |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 6853 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 6854 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 6855 | ac_status=$? |
| 6856 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6857 | rm -f conftest.er1 |
| 6858 | cat conftest.err >&5 |
| 6859 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 6860 | (exit $ac_status); } >/dev/null; then |
| 6861 | if test -s conftest.err; then |
| 6862 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 6863 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 6864 | else |
| 6865 | ac_cpp_err= |
| 6866 | fi |
| 6867 | else |
| 6868 | ac_cpp_err=yes |
| 6869 | fi |
| 6870 | if test -z "$ac_cpp_err"; then |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 6871 | ac_header_preproc=yes |
| 6872 | else |
| 6873 | echo "$as_me: failed program was:" >&5 |
| 6874 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6875 | |
| 6876 | ac_header_preproc=no |
| 6877 | fi |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 6878 | rm -f conftest.err conftest.$ac_ext |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 6879 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 6880 | echo "${ECHO_T}$ac_header_preproc" >&6 |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 6881 | |
| 6882 | # So? What about this header? |
| 6883 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 6884 | yes:no: ) |
| 6885 | { echo "$as_me:$LINENO: WARNING: stdint.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 6886 | echo "$as_me: WARNING: stdint.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 6887 | { echo "$as_me:$LINENO: WARNING: stdint.h: proceeding with the compiler's result" >&5 |
| 6888 | echo "$as_me: WARNING: stdint.h: proceeding with the compiler's result" >&2;} |
| 6889 | ac_header_preproc=yes |
| 6890 | ;; |
| 6891 | no:yes:* ) |
| 6892 | { echo "$as_me:$LINENO: WARNING: stdint.h: present but cannot be compiled" >&5 |
| 6893 | echo "$as_me: WARNING: stdint.h: present but cannot be compiled" >&2;} |
| 6894 | { echo "$as_me:$LINENO: WARNING: stdint.h: check for missing prerequisite headers?" >&5 |
| 6895 | echo "$as_me: WARNING: stdint.h: check for missing prerequisite headers?" >&2;} |
| 6896 | { echo "$as_me:$LINENO: WARNING: stdint.h: see the Autoconf documentation" >&5 |
| 6897 | echo "$as_me: WARNING: stdint.h: see the Autoconf documentation" >&2;} |
| 6898 | { echo "$as_me:$LINENO: WARNING: stdint.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 6899 | echo "$as_me: WARNING: stdint.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 6900 | { echo "$as_me:$LINENO: WARNING: stdint.h: proceeding with the preprocessor's result" >&5 |
| 6901 | echo "$as_me: WARNING: stdint.h: proceeding with the preprocessor's result" >&2;} |
| 6902 | { echo "$as_me:$LINENO: WARNING: stdint.h: in the future, the compiler will take precedence" >&5 |
| 6903 | echo "$as_me: WARNING: stdint.h: in the future, the compiler will take precedence" >&2;} |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 6904 | ( |
| 6905 | cat <<\_ASBOX |
| 6906 | ## ------------------------------------ ## |
| 6907 | ## Report this to the pjproject lists. ## |
| 6908 | ## ------------------------------------ ## |
| 6909 | _ASBOX |
| 6910 | ) | |
| 6911 | sed "s/^/$as_me: WARNING: /" >&2 |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 6912 | ;; |
| 6913 | esac |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 6914 | echo "$as_me:$LINENO: checking for stdint.h" >&5 |
| 6915 | echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6 |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 6916 | if test "${ac_cv_header_stdint_h+set}" = set; then |
| 6917 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6918 | else |
| 6919 | ac_cv_header_stdint_h=$ac_header_preproc |
| 6920 | fi |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 6921 | echo "$as_me:$LINENO: result: $ac_cv_header_stdint_h" >&5 |
| 6922 | echo "${ECHO_T}$ac_cv_header_stdint_h" >&6 |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 6923 | |
| 6924 | fi |
| 6925 | if test $ac_cv_header_stdint_h = yes; then |
| 6926 | cat >>confdefs.h <<\_ACEOF |
| 6927 | #define PJ_HAS_STDINT_H 1 |
| 6928 | _ACEOF |
| 6929 | |
| 6930 | fi |
| 6931 | |
| 6932 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6933 | if test "${ac_cv_header_stdlib_h+set}" = set; then |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 6934 | echo "$as_me:$LINENO: checking for stdlib.h" >&5 |
| 6935 | echo $ECHO_N "checking for stdlib.h... $ECHO_C" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6936 | if test "${ac_cv_header_stdlib_h+set}" = set; then |
| 6937 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6938 | fi |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 6939 | echo "$as_me:$LINENO: result: $ac_cv_header_stdlib_h" >&5 |
| 6940 | echo "${ECHO_T}$ac_cv_header_stdlib_h" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6941 | else |
| 6942 | # Is the header compilable? |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 6943 | echo "$as_me:$LINENO: checking stdlib.h usability" >&5 |
| 6944 | echo $ECHO_N "checking stdlib.h usability... $ECHO_C" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6945 | cat >conftest.$ac_ext <<_ACEOF |
| 6946 | /* confdefs.h. */ |
| 6947 | _ACEOF |
| 6948 | cat confdefs.h >>conftest.$ac_ext |
| 6949 | cat >>conftest.$ac_ext <<_ACEOF |
| 6950 | /* end confdefs.h. */ |
| 6951 | $ac_includes_default |
| 6952 | #include <stdlib.h> |
| 6953 | _ACEOF |
| 6954 | rm -f conftest.$ac_objext |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 6955 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6956 | (eval $ac_compile) 2>conftest.er1 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6957 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6958 | grep -v '^ *+' conftest.er1 >conftest.err |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6959 | rm -f conftest.er1 |
| 6960 | cat conftest.err >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6961 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 6962 | (exit $ac_status); } && |
| 6963 | { ac_try='test -z "$ac_c_werror_flag" |
| 6964 | || test ! -s conftest.err' |
| 6965 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6966 | (eval $ac_try) 2>&5 |
| 6967 | ac_status=$? |
| 6968 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6969 | (exit $ac_status); }; } && |
| 6970 | { ac_try='test -s conftest.$ac_objext' |
| 6971 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6972 | (eval $ac_try) 2>&5 |
| 6973 | ac_status=$? |
| 6974 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6975 | (exit $ac_status); }; }; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6976 | ac_header_compiler=yes |
| 6977 | else |
| 6978 | echo "$as_me: failed program was:" >&5 |
| 6979 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6980 | |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 6981 | ac_header_compiler=no |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6982 | fi |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 6983 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6984 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 6985 | echo "${ECHO_T}$ac_header_compiler" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6986 | |
| 6987 | # Is the header present? |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 6988 | echo "$as_me:$LINENO: checking stdlib.h presence" >&5 |
| 6989 | echo $ECHO_N "checking stdlib.h presence... $ECHO_C" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6990 | cat >conftest.$ac_ext <<_ACEOF |
| 6991 | /* confdefs.h. */ |
| 6992 | _ACEOF |
| 6993 | cat confdefs.h >>conftest.$ac_ext |
| 6994 | cat >>conftest.$ac_ext <<_ACEOF |
| 6995 | /* end confdefs.h. */ |
| 6996 | #include <stdlib.h> |
| 6997 | _ACEOF |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 6998 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 6999 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7000 | ac_status=$? |
| 7001 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7002 | rm -f conftest.er1 |
| 7003 | cat conftest.err >&5 |
| 7004 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 7005 | (exit $ac_status); } >/dev/null; then |
| 7006 | if test -s conftest.err; then |
| 7007 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 7008 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 7009 | else |
| 7010 | ac_cpp_err= |
| 7011 | fi |
| 7012 | else |
| 7013 | ac_cpp_err=yes |
| 7014 | fi |
| 7015 | if test -z "$ac_cpp_err"; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7016 | ac_header_preproc=yes |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7017 | else |
| 7018 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7019 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7020 | |
| 7021 | ac_header_preproc=no |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7022 | fi |
| 7023 | rm -f conftest.err conftest.$ac_ext |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 7024 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 7025 | echo "${ECHO_T}$ac_header_preproc" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 7026 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7027 | # So? What about this header? |
| 7028 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 7029 | yes:no: ) |
| 7030 | { echo "$as_me:$LINENO: WARNING: stdlib.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 7031 | echo "$as_me: WARNING: stdlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 7032 | { echo "$as_me:$LINENO: WARNING: stdlib.h: proceeding with the compiler's result" >&5 |
| 7033 | echo "$as_me: WARNING: stdlib.h: proceeding with the compiler's result" >&2;} |
| 7034 | ac_header_preproc=yes |
| 7035 | ;; |
| 7036 | no:yes:* ) |
| 7037 | { echo "$as_me:$LINENO: WARNING: stdlib.h: present but cannot be compiled" >&5 |
| 7038 | echo "$as_me: WARNING: stdlib.h: present but cannot be compiled" >&2;} |
| 7039 | { echo "$as_me:$LINENO: WARNING: stdlib.h: check for missing prerequisite headers?" >&5 |
| 7040 | echo "$as_me: WARNING: stdlib.h: check for missing prerequisite headers?" >&2;} |
| 7041 | { echo "$as_me:$LINENO: WARNING: stdlib.h: see the Autoconf documentation" >&5 |
| 7042 | echo "$as_me: WARNING: stdlib.h: see the Autoconf documentation" >&2;} |
| 7043 | { echo "$as_me:$LINENO: WARNING: stdlib.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 7044 | echo "$as_me: WARNING: stdlib.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 7045 | { echo "$as_me:$LINENO: WARNING: stdlib.h: proceeding with the preprocessor's result" >&5 |
| 7046 | echo "$as_me: WARNING: stdlib.h: proceeding with the preprocessor's result" >&2;} |
| 7047 | { echo "$as_me:$LINENO: WARNING: stdlib.h: in the future, the compiler will take precedence" >&5 |
| 7048 | echo "$as_me: WARNING: stdlib.h: in the future, the compiler will take precedence" >&2;} |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 7049 | ( |
| 7050 | cat <<\_ASBOX |
| 7051 | ## ------------------------------------ ## |
| 7052 | ## Report this to the pjproject lists. ## |
| 7053 | ## ------------------------------------ ## |
| 7054 | _ASBOX |
| 7055 | ) | |
| 7056 | sed "s/^/$as_me: WARNING: /" >&2 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7057 | ;; |
| 7058 | esac |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 7059 | echo "$as_me:$LINENO: checking for stdlib.h" >&5 |
| 7060 | echo $ECHO_N "checking for stdlib.h... $ECHO_C" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 7061 | if test "${ac_cv_header_stdlib_h+set}" = set; then |
| 7062 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 7063 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7064 | ac_cv_header_stdlib_h=$ac_header_preproc |
| 7065 | fi |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 7066 | echo "$as_me:$LINENO: result: $ac_cv_header_stdlib_h" >&5 |
| 7067 | echo "${ECHO_T}$ac_cv_header_stdlib_h" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7068 | |
| 7069 | fi |
| 7070 | if test $ac_cv_header_stdlib_h = yes; then |
| 7071 | cat >>confdefs.h <<\_ACEOF |
| 7072 | #define PJ_HAS_STDLIB_H 1 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 7073 | _ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7074 | |
| 7075 | fi |
| 7076 | |
| 7077 | |
| 7078 | if test "${ac_cv_header_string_h+set}" = set; then |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 7079 | echo "$as_me:$LINENO: checking for string.h" >&5 |
| 7080 | echo $ECHO_N "checking for string.h... $ECHO_C" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7081 | if test "${ac_cv_header_string_h+set}" = set; then |
| 7082 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7083 | fi |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 7084 | echo "$as_me:$LINENO: result: $ac_cv_header_string_h" >&5 |
| 7085 | echo "${ECHO_T}$ac_cv_header_string_h" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7086 | else |
| 7087 | # Is the header compilable? |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 7088 | echo "$as_me:$LINENO: checking string.h usability" >&5 |
| 7089 | echo $ECHO_N "checking string.h usability... $ECHO_C" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7090 | cat >conftest.$ac_ext <<_ACEOF |
| 7091 | /* confdefs.h. */ |
| 7092 | _ACEOF |
| 7093 | cat confdefs.h >>conftest.$ac_ext |
| 7094 | cat >>conftest.$ac_ext <<_ACEOF |
| 7095 | /* end confdefs.h. */ |
| 7096 | $ac_includes_default |
| 7097 | #include <string.h> |
| 7098 | _ACEOF |
| 7099 | rm -f conftest.$ac_objext |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 7100 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7101 | (eval $ac_compile) 2>conftest.er1 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7102 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7103 | grep -v '^ *+' conftest.er1 >conftest.err |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7104 | rm -f conftest.er1 |
| 7105 | cat conftest.err >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7106 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 7107 | (exit $ac_status); } && |
| 7108 | { ac_try='test -z "$ac_c_werror_flag" |
| 7109 | || test ! -s conftest.err' |
| 7110 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7111 | (eval $ac_try) 2>&5 |
| 7112 | ac_status=$? |
| 7113 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7114 | (exit $ac_status); }; } && |
| 7115 | { ac_try='test -s conftest.$ac_objext' |
| 7116 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7117 | (eval $ac_try) 2>&5 |
| 7118 | ac_status=$? |
| 7119 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7120 | (exit $ac_status); }; }; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7121 | ac_header_compiler=yes |
| 7122 | else |
| 7123 | echo "$as_me: failed program was:" >&5 |
| 7124 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7125 | |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 7126 | ac_header_compiler=no |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7127 | fi |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 7128 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7129 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 7130 | echo "${ECHO_T}$ac_header_compiler" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7131 | |
| 7132 | # Is the header present? |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 7133 | echo "$as_me:$LINENO: checking string.h presence" >&5 |
| 7134 | echo $ECHO_N "checking string.h presence... $ECHO_C" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7135 | cat >conftest.$ac_ext <<_ACEOF |
| 7136 | /* confdefs.h. */ |
| 7137 | _ACEOF |
| 7138 | cat confdefs.h >>conftest.$ac_ext |
| 7139 | cat >>conftest.$ac_ext <<_ACEOF |
| 7140 | /* end confdefs.h. */ |
| 7141 | #include <string.h> |
| 7142 | _ACEOF |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 7143 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 7144 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7145 | ac_status=$? |
| 7146 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7147 | rm -f conftest.er1 |
| 7148 | cat conftest.err >&5 |
| 7149 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 7150 | (exit $ac_status); } >/dev/null; then |
| 7151 | if test -s conftest.err; then |
| 7152 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 7153 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 7154 | else |
| 7155 | ac_cpp_err= |
| 7156 | fi |
| 7157 | else |
| 7158 | ac_cpp_err=yes |
| 7159 | fi |
| 7160 | if test -z "$ac_cpp_err"; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7161 | ac_header_preproc=yes |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7162 | else |
| 7163 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7164 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7165 | |
| 7166 | ac_header_preproc=no |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7167 | fi |
| 7168 | rm -f conftest.err conftest.$ac_ext |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 7169 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 7170 | echo "${ECHO_T}$ac_header_preproc" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 7171 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7172 | # So? What about this header? |
| 7173 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 7174 | yes:no: ) |
| 7175 | { echo "$as_me:$LINENO: WARNING: string.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 7176 | echo "$as_me: WARNING: string.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 7177 | { echo "$as_me:$LINENO: WARNING: string.h: proceeding with the compiler's result" >&5 |
| 7178 | echo "$as_me: WARNING: string.h: proceeding with the compiler's result" >&2;} |
| 7179 | ac_header_preproc=yes |
| 7180 | ;; |
| 7181 | no:yes:* ) |
| 7182 | { echo "$as_me:$LINENO: WARNING: string.h: present but cannot be compiled" >&5 |
| 7183 | echo "$as_me: WARNING: string.h: present but cannot be compiled" >&2;} |
| 7184 | { echo "$as_me:$LINENO: WARNING: string.h: check for missing prerequisite headers?" >&5 |
| 7185 | echo "$as_me: WARNING: string.h: check for missing prerequisite headers?" >&2;} |
| 7186 | { echo "$as_me:$LINENO: WARNING: string.h: see the Autoconf documentation" >&5 |
| 7187 | echo "$as_me: WARNING: string.h: see the Autoconf documentation" >&2;} |
| 7188 | { echo "$as_me:$LINENO: WARNING: string.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 7189 | echo "$as_me: WARNING: string.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 7190 | { echo "$as_me:$LINENO: WARNING: string.h: proceeding with the preprocessor's result" >&5 |
| 7191 | echo "$as_me: WARNING: string.h: proceeding with the preprocessor's result" >&2;} |
| 7192 | { echo "$as_me:$LINENO: WARNING: string.h: in the future, the compiler will take precedence" >&5 |
| 7193 | echo "$as_me: WARNING: string.h: in the future, the compiler will take precedence" >&2;} |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 7194 | ( |
| 7195 | cat <<\_ASBOX |
| 7196 | ## ------------------------------------ ## |
| 7197 | ## Report this to the pjproject lists. ## |
| 7198 | ## ------------------------------------ ## |
| 7199 | _ASBOX |
| 7200 | ) | |
| 7201 | sed "s/^/$as_me: WARNING: /" >&2 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7202 | ;; |
| 7203 | esac |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 7204 | echo "$as_me:$LINENO: checking for string.h" >&5 |
| 7205 | echo $ECHO_N "checking for string.h... $ECHO_C" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 7206 | if test "${ac_cv_header_string_h+set}" = set; then |
| 7207 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 7208 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7209 | ac_cv_header_string_h=$ac_header_preproc |
| 7210 | fi |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 7211 | echo "$as_me:$LINENO: result: $ac_cv_header_string_h" >&5 |
| 7212 | echo "${ECHO_T}$ac_cv_header_string_h" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7213 | |
| 7214 | fi |
| 7215 | if test $ac_cv_header_string_h = yes; then |
| 7216 | cat >>confdefs.h <<\_ACEOF |
| 7217 | #define PJ_HAS_STRING_H 1 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 7218 | _ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7219 | |
| 7220 | fi |
| 7221 | |
| 7222 | |
| 7223 | if test "${ac_cv_header_sys_ioctl_h+set}" = set; then |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 7224 | echo "$as_me:$LINENO: checking for sys/ioctl.h" >&5 |
| 7225 | echo $ECHO_N "checking for sys/ioctl.h... $ECHO_C" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7226 | if test "${ac_cv_header_sys_ioctl_h+set}" = set; then |
| 7227 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7228 | fi |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 7229 | echo "$as_me:$LINENO: result: $ac_cv_header_sys_ioctl_h" >&5 |
| 7230 | echo "${ECHO_T}$ac_cv_header_sys_ioctl_h" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7231 | else |
| 7232 | # Is the header compilable? |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 7233 | echo "$as_me:$LINENO: checking sys/ioctl.h usability" >&5 |
| 7234 | echo $ECHO_N "checking sys/ioctl.h usability... $ECHO_C" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7235 | cat >conftest.$ac_ext <<_ACEOF |
| 7236 | /* confdefs.h. */ |
| 7237 | _ACEOF |
| 7238 | cat confdefs.h >>conftest.$ac_ext |
| 7239 | cat >>conftest.$ac_ext <<_ACEOF |
| 7240 | /* end confdefs.h. */ |
| 7241 | $ac_includes_default |
| 7242 | #include <sys/ioctl.h> |
| 7243 | _ACEOF |
| 7244 | rm -f conftest.$ac_objext |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 7245 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7246 | (eval $ac_compile) 2>conftest.er1 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7247 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7248 | grep -v '^ *+' conftest.er1 >conftest.err |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7249 | rm -f conftest.er1 |
| 7250 | cat conftest.err >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7251 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 7252 | (exit $ac_status); } && |
| 7253 | { ac_try='test -z "$ac_c_werror_flag" |
| 7254 | || test ! -s conftest.err' |
| 7255 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7256 | (eval $ac_try) 2>&5 |
| 7257 | ac_status=$? |
| 7258 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7259 | (exit $ac_status); }; } && |
| 7260 | { ac_try='test -s conftest.$ac_objext' |
| 7261 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7262 | (eval $ac_try) 2>&5 |
| 7263 | ac_status=$? |
| 7264 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7265 | (exit $ac_status); }; }; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7266 | ac_header_compiler=yes |
| 7267 | else |
| 7268 | echo "$as_me: failed program was:" >&5 |
| 7269 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7270 | |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 7271 | ac_header_compiler=no |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7272 | fi |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 7273 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7274 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 7275 | echo "${ECHO_T}$ac_header_compiler" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7276 | |
| 7277 | # Is the header present? |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 7278 | echo "$as_me:$LINENO: checking sys/ioctl.h presence" >&5 |
| 7279 | echo $ECHO_N "checking sys/ioctl.h presence... $ECHO_C" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7280 | cat >conftest.$ac_ext <<_ACEOF |
| 7281 | /* confdefs.h. */ |
| 7282 | _ACEOF |
| 7283 | cat confdefs.h >>conftest.$ac_ext |
| 7284 | cat >>conftest.$ac_ext <<_ACEOF |
| 7285 | /* end confdefs.h. */ |
| 7286 | #include <sys/ioctl.h> |
| 7287 | _ACEOF |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 7288 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 7289 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 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 |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 7295 | (exit $ac_status); } >/dev/null; then |
| 7296 | if test -s conftest.err; then |
| 7297 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 7298 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 7299 | else |
| 7300 | ac_cpp_err= |
| 7301 | fi |
| 7302 | else |
| 7303 | ac_cpp_err=yes |
| 7304 | fi |
| 7305 | if test -z "$ac_cpp_err"; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7306 | ac_header_preproc=yes |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7307 | else |
| 7308 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7309 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7310 | |
| 7311 | ac_header_preproc=no |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7312 | fi |
| 7313 | rm -f conftest.err conftest.$ac_ext |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 7314 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 7315 | echo "${ECHO_T}$ac_header_preproc" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 7316 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7317 | # So? What about this header? |
| 7318 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 7319 | yes:no: ) |
| 7320 | { echo "$as_me:$LINENO: WARNING: sys/ioctl.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 7321 | echo "$as_me: WARNING: sys/ioctl.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 7322 | { echo "$as_me:$LINENO: WARNING: sys/ioctl.h: proceeding with the compiler's result" >&5 |
| 7323 | echo "$as_me: WARNING: sys/ioctl.h: proceeding with the compiler's result" >&2;} |
| 7324 | ac_header_preproc=yes |
| 7325 | ;; |
| 7326 | no:yes:* ) |
| 7327 | { echo "$as_me:$LINENO: WARNING: sys/ioctl.h: present but cannot be compiled" >&5 |
| 7328 | echo "$as_me: WARNING: sys/ioctl.h: present but cannot be compiled" >&2;} |
| 7329 | { echo "$as_me:$LINENO: WARNING: sys/ioctl.h: check for missing prerequisite headers?" >&5 |
| 7330 | echo "$as_me: WARNING: sys/ioctl.h: check for missing prerequisite headers?" >&2;} |
| 7331 | { echo "$as_me:$LINENO: WARNING: sys/ioctl.h: see the Autoconf documentation" >&5 |
| 7332 | echo "$as_me: WARNING: sys/ioctl.h: see the Autoconf documentation" >&2;} |
| 7333 | { echo "$as_me:$LINENO: WARNING: sys/ioctl.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 7334 | echo "$as_me: WARNING: sys/ioctl.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 7335 | { echo "$as_me:$LINENO: WARNING: sys/ioctl.h: proceeding with the preprocessor's result" >&5 |
| 7336 | echo "$as_me: WARNING: sys/ioctl.h: proceeding with the preprocessor's result" >&2;} |
| 7337 | { echo "$as_me:$LINENO: WARNING: sys/ioctl.h: in the future, the compiler will take precedence" >&5 |
| 7338 | echo "$as_me: WARNING: sys/ioctl.h: in the future, the compiler will take precedence" >&2;} |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 7339 | ( |
| 7340 | cat <<\_ASBOX |
| 7341 | ## ------------------------------------ ## |
| 7342 | ## Report this to the pjproject lists. ## |
| 7343 | ## ------------------------------------ ## |
| 7344 | _ASBOX |
| 7345 | ) | |
| 7346 | sed "s/^/$as_me: WARNING: /" >&2 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7347 | ;; |
| 7348 | esac |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 7349 | echo "$as_me:$LINENO: checking for sys/ioctl.h" >&5 |
| 7350 | echo $ECHO_N "checking for sys/ioctl.h... $ECHO_C" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 7351 | if test "${ac_cv_header_sys_ioctl_h+set}" = set; then |
| 7352 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 7353 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7354 | ac_cv_header_sys_ioctl_h=$ac_header_preproc |
| 7355 | fi |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 7356 | echo "$as_me:$LINENO: result: $ac_cv_header_sys_ioctl_h" >&5 |
| 7357 | echo "${ECHO_T}$ac_cv_header_sys_ioctl_h" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7358 | |
| 7359 | fi |
| 7360 | if test $ac_cv_header_sys_ioctl_h = yes; then |
| 7361 | cat >>confdefs.h <<\_ACEOF |
| 7362 | #define PJ_HAS_SYS_IOCTL_H 1 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 7363 | _ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7364 | |
| 7365 | fi |
| 7366 | |
| 7367 | |
| 7368 | if test "${ac_cv_header_sys_select_h+set}" = set; then |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 7369 | echo "$as_me:$LINENO: checking for sys/select.h" >&5 |
| 7370 | echo $ECHO_N "checking for sys/select.h... $ECHO_C" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7371 | if test "${ac_cv_header_sys_select_h+set}" = set; then |
| 7372 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7373 | fi |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 7374 | echo "$as_me:$LINENO: result: $ac_cv_header_sys_select_h" >&5 |
| 7375 | echo "${ECHO_T}$ac_cv_header_sys_select_h" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7376 | else |
| 7377 | # Is the header compilable? |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 7378 | echo "$as_me:$LINENO: checking sys/select.h usability" >&5 |
| 7379 | echo $ECHO_N "checking sys/select.h usability... $ECHO_C" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7380 | cat >conftest.$ac_ext <<_ACEOF |
| 7381 | /* confdefs.h. */ |
| 7382 | _ACEOF |
| 7383 | cat confdefs.h >>conftest.$ac_ext |
| 7384 | cat >>conftest.$ac_ext <<_ACEOF |
| 7385 | /* end confdefs.h. */ |
| 7386 | $ac_includes_default |
| 7387 | #include <sys/select.h> |
| 7388 | _ACEOF |
| 7389 | rm -f conftest.$ac_objext |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 7390 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7391 | (eval $ac_compile) 2>conftest.er1 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7392 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7393 | grep -v '^ *+' conftest.er1 >conftest.err |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7394 | rm -f conftest.er1 |
| 7395 | cat conftest.err >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7396 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 7397 | (exit $ac_status); } && |
| 7398 | { ac_try='test -z "$ac_c_werror_flag" |
| 7399 | || test ! -s conftest.err' |
| 7400 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7401 | (eval $ac_try) 2>&5 |
| 7402 | ac_status=$? |
| 7403 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7404 | (exit $ac_status); }; } && |
| 7405 | { ac_try='test -s conftest.$ac_objext' |
| 7406 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7407 | (eval $ac_try) 2>&5 |
| 7408 | ac_status=$? |
| 7409 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7410 | (exit $ac_status); }; }; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7411 | ac_header_compiler=yes |
| 7412 | else |
| 7413 | echo "$as_me: failed program was:" >&5 |
| 7414 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7415 | |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 7416 | ac_header_compiler=no |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7417 | fi |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 7418 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7419 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 7420 | echo "${ECHO_T}$ac_header_compiler" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7421 | |
| 7422 | # Is the header present? |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 7423 | echo "$as_me:$LINENO: checking sys/select.h presence" >&5 |
| 7424 | echo $ECHO_N "checking sys/select.h presence... $ECHO_C" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7425 | cat >conftest.$ac_ext <<_ACEOF |
| 7426 | /* confdefs.h. */ |
| 7427 | _ACEOF |
| 7428 | cat confdefs.h >>conftest.$ac_ext |
| 7429 | cat >>conftest.$ac_ext <<_ACEOF |
| 7430 | /* end confdefs.h. */ |
| 7431 | #include <sys/select.h> |
| 7432 | _ACEOF |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 7433 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 7434 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7435 | ac_status=$? |
| 7436 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7437 | rm -f conftest.er1 |
| 7438 | cat conftest.err >&5 |
| 7439 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 7440 | (exit $ac_status); } >/dev/null; then |
| 7441 | if test -s conftest.err; then |
| 7442 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 7443 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 7444 | else |
| 7445 | ac_cpp_err= |
| 7446 | fi |
| 7447 | else |
| 7448 | ac_cpp_err=yes |
| 7449 | fi |
| 7450 | if test -z "$ac_cpp_err"; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7451 | ac_header_preproc=yes |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7452 | else |
| 7453 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7454 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7455 | |
| 7456 | ac_header_preproc=no |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7457 | fi |
| 7458 | rm -f conftest.err conftest.$ac_ext |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 7459 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 7460 | echo "${ECHO_T}$ac_header_preproc" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 7461 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7462 | # So? What about this header? |
| 7463 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 7464 | yes:no: ) |
| 7465 | { echo "$as_me:$LINENO: WARNING: sys/select.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 7466 | echo "$as_me: WARNING: sys/select.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 7467 | { echo "$as_me:$LINENO: WARNING: sys/select.h: proceeding with the compiler's result" >&5 |
| 7468 | echo "$as_me: WARNING: sys/select.h: proceeding with the compiler's result" >&2;} |
| 7469 | ac_header_preproc=yes |
| 7470 | ;; |
| 7471 | no:yes:* ) |
| 7472 | { echo "$as_me:$LINENO: WARNING: sys/select.h: present but cannot be compiled" >&5 |
| 7473 | echo "$as_me: WARNING: sys/select.h: present but cannot be compiled" >&2;} |
| 7474 | { echo "$as_me:$LINENO: WARNING: sys/select.h: check for missing prerequisite headers?" >&5 |
| 7475 | echo "$as_me: WARNING: sys/select.h: check for missing prerequisite headers?" >&2;} |
| 7476 | { echo "$as_me:$LINENO: WARNING: sys/select.h: see the Autoconf documentation" >&5 |
| 7477 | echo "$as_me: WARNING: sys/select.h: see the Autoconf documentation" >&2;} |
| 7478 | { echo "$as_me:$LINENO: WARNING: sys/select.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 7479 | echo "$as_me: WARNING: sys/select.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 7480 | { echo "$as_me:$LINENO: WARNING: sys/select.h: proceeding with the preprocessor's result" >&5 |
| 7481 | echo "$as_me: WARNING: sys/select.h: proceeding with the preprocessor's result" >&2;} |
| 7482 | { echo "$as_me:$LINENO: WARNING: sys/select.h: in the future, the compiler will take precedence" >&5 |
| 7483 | echo "$as_me: WARNING: sys/select.h: in the future, the compiler will take precedence" >&2;} |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 7484 | ( |
| 7485 | cat <<\_ASBOX |
| 7486 | ## ------------------------------------ ## |
| 7487 | ## Report this to the pjproject lists. ## |
| 7488 | ## ------------------------------------ ## |
| 7489 | _ASBOX |
| 7490 | ) | |
| 7491 | sed "s/^/$as_me: WARNING: /" >&2 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7492 | ;; |
| 7493 | esac |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 7494 | echo "$as_me:$LINENO: checking for sys/select.h" >&5 |
| 7495 | echo $ECHO_N "checking for sys/select.h... $ECHO_C" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 7496 | if test "${ac_cv_header_sys_select_h+set}" = set; then |
| 7497 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 7498 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7499 | ac_cv_header_sys_select_h=$ac_header_preproc |
| 7500 | fi |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 7501 | echo "$as_me:$LINENO: result: $ac_cv_header_sys_select_h" >&5 |
| 7502 | echo "${ECHO_T}$ac_cv_header_sys_select_h" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7503 | |
| 7504 | fi |
| 7505 | if test $ac_cv_header_sys_select_h = yes; then |
| 7506 | cat >>confdefs.h <<\_ACEOF |
| 7507 | #define PJ_HAS_SYS_SELECT_H 1 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 7508 | _ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7509 | |
| 7510 | fi |
| 7511 | |
| 7512 | |
| 7513 | if test "${ac_cv_header_sys_socket_h+set}" = set; then |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 7514 | echo "$as_me:$LINENO: checking for sys/socket.h" >&5 |
| 7515 | echo $ECHO_N "checking for sys/socket.h... $ECHO_C" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7516 | if test "${ac_cv_header_sys_socket_h+set}" = set; then |
| 7517 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7518 | fi |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 7519 | echo "$as_me:$LINENO: result: $ac_cv_header_sys_socket_h" >&5 |
| 7520 | echo "${ECHO_T}$ac_cv_header_sys_socket_h" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7521 | else |
| 7522 | # Is the header compilable? |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 7523 | echo "$as_me:$LINENO: checking sys/socket.h usability" >&5 |
| 7524 | echo $ECHO_N "checking sys/socket.h usability... $ECHO_C" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7525 | cat >conftest.$ac_ext <<_ACEOF |
| 7526 | /* confdefs.h. */ |
| 7527 | _ACEOF |
| 7528 | cat confdefs.h >>conftest.$ac_ext |
| 7529 | cat >>conftest.$ac_ext <<_ACEOF |
| 7530 | /* end confdefs.h. */ |
| 7531 | $ac_includes_default |
| 7532 | #include <sys/socket.h> |
| 7533 | _ACEOF |
| 7534 | rm -f conftest.$ac_objext |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 7535 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7536 | (eval $ac_compile) 2>conftest.er1 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7537 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7538 | grep -v '^ *+' conftest.er1 >conftest.err |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7539 | rm -f conftest.er1 |
| 7540 | cat conftest.err >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7541 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 7542 | (exit $ac_status); } && |
| 7543 | { ac_try='test -z "$ac_c_werror_flag" |
| 7544 | || test ! -s conftest.err' |
| 7545 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7546 | (eval $ac_try) 2>&5 |
| 7547 | ac_status=$? |
| 7548 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7549 | (exit $ac_status); }; } && |
| 7550 | { ac_try='test -s conftest.$ac_objext' |
| 7551 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7552 | (eval $ac_try) 2>&5 |
| 7553 | ac_status=$? |
| 7554 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7555 | (exit $ac_status); }; }; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7556 | ac_header_compiler=yes |
| 7557 | else |
| 7558 | echo "$as_me: failed program was:" >&5 |
| 7559 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7560 | |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 7561 | ac_header_compiler=no |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7562 | fi |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 7563 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7564 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 7565 | echo "${ECHO_T}$ac_header_compiler" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7566 | |
| 7567 | # Is the header present? |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 7568 | echo "$as_me:$LINENO: checking sys/socket.h presence" >&5 |
| 7569 | echo $ECHO_N "checking sys/socket.h presence... $ECHO_C" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7570 | cat >conftest.$ac_ext <<_ACEOF |
| 7571 | /* confdefs.h. */ |
| 7572 | _ACEOF |
| 7573 | cat confdefs.h >>conftest.$ac_ext |
| 7574 | cat >>conftest.$ac_ext <<_ACEOF |
| 7575 | /* end confdefs.h. */ |
| 7576 | #include <sys/socket.h> |
| 7577 | _ACEOF |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 7578 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 7579 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7580 | ac_status=$? |
| 7581 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7582 | rm -f conftest.er1 |
| 7583 | cat conftest.err >&5 |
| 7584 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 7585 | (exit $ac_status); } >/dev/null; then |
| 7586 | if test -s conftest.err; then |
| 7587 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 7588 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 7589 | else |
| 7590 | ac_cpp_err= |
| 7591 | fi |
| 7592 | else |
| 7593 | ac_cpp_err=yes |
| 7594 | fi |
| 7595 | if test -z "$ac_cpp_err"; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7596 | ac_header_preproc=yes |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7597 | else |
| 7598 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7599 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7600 | |
| 7601 | ac_header_preproc=no |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7602 | fi |
| 7603 | rm -f conftest.err conftest.$ac_ext |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 7604 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 7605 | echo "${ECHO_T}$ac_header_preproc" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 7606 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7607 | # So? What about this header? |
| 7608 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 7609 | yes:no: ) |
| 7610 | { echo "$as_me:$LINENO: WARNING: sys/socket.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 7611 | echo "$as_me: WARNING: sys/socket.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 7612 | { echo "$as_me:$LINENO: WARNING: sys/socket.h: proceeding with the compiler's result" >&5 |
| 7613 | echo "$as_me: WARNING: sys/socket.h: proceeding with the compiler's result" >&2;} |
| 7614 | ac_header_preproc=yes |
| 7615 | ;; |
| 7616 | no:yes:* ) |
| 7617 | { echo "$as_me:$LINENO: WARNING: sys/socket.h: present but cannot be compiled" >&5 |
| 7618 | echo "$as_me: WARNING: sys/socket.h: present but cannot be compiled" >&2;} |
| 7619 | { echo "$as_me:$LINENO: WARNING: sys/socket.h: check for missing prerequisite headers?" >&5 |
| 7620 | echo "$as_me: WARNING: sys/socket.h: check for missing prerequisite headers?" >&2;} |
| 7621 | { echo "$as_me:$LINENO: WARNING: sys/socket.h: see the Autoconf documentation" >&5 |
| 7622 | echo "$as_me: WARNING: sys/socket.h: see the Autoconf documentation" >&2;} |
| 7623 | { echo "$as_me:$LINENO: WARNING: sys/socket.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 7624 | echo "$as_me: WARNING: sys/socket.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 7625 | { echo "$as_me:$LINENO: WARNING: sys/socket.h: proceeding with the preprocessor's result" >&5 |
| 7626 | echo "$as_me: WARNING: sys/socket.h: proceeding with the preprocessor's result" >&2;} |
| 7627 | { echo "$as_me:$LINENO: WARNING: sys/socket.h: in the future, the compiler will take precedence" >&5 |
| 7628 | echo "$as_me: WARNING: sys/socket.h: in the future, the compiler will take precedence" >&2;} |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 7629 | ( |
| 7630 | cat <<\_ASBOX |
| 7631 | ## ------------------------------------ ## |
| 7632 | ## Report this to the pjproject lists. ## |
| 7633 | ## ------------------------------------ ## |
| 7634 | _ASBOX |
| 7635 | ) | |
| 7636 | sed "s/^/$as_me: WARNING: /" >&2 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7637 | ;; |
| 7638 | esac |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 7639 | echo "$as_me:$LINENO: checking for sys/socket.h" >&5 |
| 7640 | echo $ECHO_N "checking for sys/socket.h... $ECHO_C" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 7641 | if test "${ac_cv_header_sys_socket_h+set}" = set; then |
| 7642 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 7643 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7644 | ac_cv_header_sys_socket_h=$ac_header_preproc |
| 7645 | fi |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 7646 | echo "$as_me:$LINENO: result: $ac_cv_header_sys_socket_h" >&5 |
| 7647 | echo "${ECHO_T}$ac_cv_header_sys_socket_h" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7648 | |
| 7649 | fi |
| 7650 | if test $ac_cv_header_sys_socket_h = yes; then |
| 7651 | cat >>confdefs.h <<\_ACEOF |
| 7652 | #define PJ_HAS_SYS_SOCKET_H 1 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 7653 | _ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7654 | |
| 7655 | fi |
| 7656 | |
| 7657 | |
| 7658 | if test "${ac_cv_header_sys_time_h+set}" = set; then |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 7659 | echo "$as_me:$LINENO: checking for sys/time.h" >&5 |
| 7660 | echo $ECHO_N "checking for sys/time.h... $ECHO_C" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7661 | if test "${ac_cv_header_sys_time_h+set}" = set; then |
| 7662 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7663 | fi |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 7664 | echo "$as_me:$LINENO: result: $ac_cv_header_sys_time_h" >&5 |
| 7665 | echo "${ECHO_T}$ac_cv_header_sys_time_h" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7666 | else |
| 7667 | # Is the header compilable? |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 7668 | echo "$as_me:$LINENO: checking sys/time.h usability" >&5 |
| 7669 | echo $ECHO_N "checking sys/time.h usability... $ECHO_C" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7670 | cat >conftest.$ac_ext <<_ACEOF |
| 7671 | /* confdefs.h. */ |
| 7672 | _ACEOF |
| 7673 | cat confdefs.h >>conftest.$ac_ext |
| 7674 | cat >>conftest.$ac_ext <<_ACEOF |
| 7675 | /* end confdefs.h. */ |
| 7676 | $ac_includes_default |
| 7677 | #include <sys/time.h> |
| 7678 | _ACEOF |
| 7679 | rm -f conftest.$ac_objext |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 7680 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7681 | (eval $ac_compile) 2>conftest.er1 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7682 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7683 | grep -v '^ *+' conftest.er1 >conftest.err |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7684 | rm -f conftest.er1 |
| 7685 | cat conftest.err >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7686 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 7687 | (exit $ac_status); } && |
| 7688 | { ac_try='test -z "$ac_c_werror_flag" |
| 7689 | || test ! -s conftest.err' |
| 7690 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7691 | (eval $ac_try) 2>&5 |
| 7692 | ac_status=$? |
| 7693 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7694 | (exit $ac_status); }; } && |
| 7695 | { ac_try='test -s conftest.$ac_objext' |
| 7696 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7697 | (eval $ac_try) 2>&5 |
| 7698 | ac_status=$? |
| 7699 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7700 | (exit $ac_status); }; }; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7701 | ac_header_compiler=yes |
| 7702 | else |
| 7703 | echo "$as_me: failed program was:" >&5 |
| 7704 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7705 | |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 7706 | ac_header_compiler=no |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7707 | fi |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 7708 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7709 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 7710 | echo "${ECHO_T}$ac_header_compiler" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7711 | |
| 7712 | # Is the header present? |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 7713 | echo "$as_me:$LINENO: checking sys/time.h presence" >&5 |
| 7714 | echo $ECHO_N "checking sys/time.h presence... $ECHO_C" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7715 | cat >conftest.$ac_ext <<_ACEOF |
| 7716 | /* confdefs.h. */ |
| 7717 | _ACEOF |
| 7718 | cat confdefs.h >>conftest.$ac_ext |
| 7719 | cat >>conftest.$ac_ext <<_ACEOF |
| 7720 | /* end confdefs.h. */ |
| 7721 | #include <sys/time.h> |
| 7722 | _ACEOF |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 7723 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 7724 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7725 | ac_status=$? |
| 7726 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7727 | rm -f conftest.er1 |
| 7728 | cat conftest.err >&5 |
| 7729 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 7730 | (exit $ac_status); } >/dev/null; then |
| 7731 | if test -s conftest.err; then |
| 7732 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 7733 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 7734 | else |
| 7735 | ac_cpp_err= |
| 7736 | fi |
| 7737 | else |
| 7738 | ac_cpp_err=yes |
| 7739 | fi |
| 7740 | if test -z "$ac_cpp_err"; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7741 | ac_header_preproc=yes |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7742 | else |
| 7743 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7744 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7745 | |
| 7746 | ac_header_preproc=no |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7747 | fi |
| 7748 | rm -f conftest.err conftest.$ac_ext |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 7749 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 7750 | echo "${ECHO_T}$ac_header_preproc" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 7751 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7752 | # So? What about this header? |
| 7753 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 7754 | yes:no: ) |
| 7755 | { echo "$as_me:$LINENO: WARNING: sys/time.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 7756 | echo "$as_me: WARNING: sys/time.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 7757 | { echo "$as_me:$LINENO: WARNING: sys/time.h: proceeding with the compiler's result" >&5 |
| 7758 | echo "$as_me: WARNING: sys/time.h: proceeding with the compiler's result" >&2;} |
| 7759 | ac_header_preproc=yes |
| 7760 | ;; |
| 7761 | no:yes:* ) |
| 7762 | { echo "$as_me:$LINENO: WARNING: sys/time.h: present but cannot be compiled" >&5 |
| 7763 | echo "$as_me: WARNING: sys/time.h: present but cannot be compiled" >&2;} |
| 7764 | { echo "$as_me:$LINENO: WARNING: sys/time.h: check for missing prerequisite headers?" >&5 |
| 7765 | echo "$as_me: WARNING: sys/time.h: check for missing prerequisite headers?" >&2;} |
| 7766 | { echo "$as_me:$LINENO: WARNING: sys/time.h: see the Autoconf documentation" >&5 |
| 7767 | echo "$as_me: WARNING: sys/time.h: see the Autoconf documentation" >&2;} |
| 7768 | { echo "$as_me:$LINENO: WARNING: sys/time.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 7769 | echo "$as_me: WARNING: sys/time.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 7770 | { echo "$as_me:$LINENO: WARNING: sys/time.h: proceeding with the preprocessor's result" >&5 |
| 7771 | echo "$as_me: WARNING: sys/time.h: proceeding with the preprocessor's result" >&2;} |
| 7772 | { echo "$as_me:$LINENO: WARNING: sys/time.h: in the future, the compiler will take precedence" >&5 |
| 7773 | echo "$as_me: WARNING: sys/time.h: in the future, the compiler will take precedence" >&2;} |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 7774 | ( |
| 7775 | cat <<\_ASBOX |
| 7776 | ## ------------------------------------ ## |
| 7777 | ## Report this to the pjproject lists. ## |
| 7778 | ## ------------------------------------ ## |
| 7779 | _ASBOX |
| 7780 | ) | |
| 7781 | sed "s/^/$as_me: WARNING: /" >&2 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7782 | ;; |
| 7783 | esac |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 7784 | echo "$as_me:$LINENO: checking for sys/time.h" >&5 |
| 7785 | echo $ECHO_N "checking for sys/time.h... $ECHO_C" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 7786 | if test "${ac_cv_header_sys_time_h+set}" = set; then |
| 7787 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 7788 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7789 | ac_cv_header_sys_time_h=$ac_header_preproc |
| 7790 | fi |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 7791 | echo "$as_me:$LINENO: result: $ac_cv_header_sys_time_h" >&5 |
| 7792 | echo "${ECHO_T}$ac_cv_header_sys_time_h" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7793 | |
| 7794 | fi |
| 7795 | if test $ac_cv_header_sys_time_h = yes; then |
| 7796 | cat >>confdefs.h <<\_ACEOF |
| 7797 | #define PJ_HAS_SYS_TIME_H 1 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 7798 | _ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7799 | |
| 7800 | fi |
| 7801 | |
| 7802 | |
| 7803 | if test "${ac_cv_header_sys_timeb_h+set}" = set; then |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 7804 | echo "$as_me:$LINENO: checking for sys/timeb.h" >&5 |
| 7805 | echo $ECHO_N "checking for sys/timeb.h... $ECHO_C" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7806 | if test "${ac_cv_header_sys_timeb_h+set}" = set; then |
| 7807 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7808 | fi |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 7809 | echo "$as_me:$LINENO: result: $ac_cv_header_sys_timeb_h" >&5 |
| 7810 | echo "${ECHO_T}$ac_cv_header_sys_timeb_h" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7811 | else |
| 7812 | # Is the header compilable? |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 7813 | echo "$as_me:$LINENO: checking sys/timeb.h usability" >&5 |
| 7814 | echo $ECHO_N "checking sys/timeb.h usability... $ECHO_C" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7815 | cat >conftest.$ac_ext <<_ACEOF |
| 7816 | /* confdefs.h. */ |
| 7817 | _ACEOF |
| 7818 | cat confdefs.h >>conftest.$ac_ext |
| 7819 | cat >>conftest.$ac_ext <<_ACEOF |
| 7820 | /* end confdefs.h. */ |
| 7821 | $ac_includes_default |
| 7822 | #include <sys/timeb.h> |
| 7823 | _ACEOF |
| 7824 | rm -f conftest.$ac_objext |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 7825 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7826 | (eval $ac_compile) 2>conftest.er1 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7827 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7828 | grep -v '^ *+' conftest.er1 >conftest.err |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7829 | rm -f conftest.er1 |
| 7830 | cat conftest.err >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7831 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 7832 | (exit $ac_status); } && |
| 7833 | { ac_try='test -z "$ac_c_werror_flag" |
| 7834 | || test ! -s conftest.err' |
| 7835 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7836 | (eval $ac_try) 2>&5 |
| 7837 | ac_status=$? |
| 7838 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7839 | (exit $ac_status); }; } && |
| 7840 | { ac_try='test -s conftest.$ac_objext' |
| 7841 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7842 | (eval $ac_try) 2>&5 |
| 7843 | ac_status=$? |
| 7844 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7845 | (exit $ac_status); }; }; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7846 | ac_header_compiler=yes |
| 7847 | else |
| 7848 | echo "$as_me: failed program was:" >&5 |
| 7849 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7850 | |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 7851 | ac_header_compiler=no |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7852 | fi |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 7853 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7854 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 7855 | echo "${ECHO_T}$ac_header_compiler" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7856 | |
| 7857 | # Is the header present? |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 7858 | echo "$as_me:$LINENO: checking sys/timeb.h presence" >&5 |
| 7859 | echo $ECHO_N "checking sys/timeb.h presence... $ECHO_C" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7860 | cat >conftest.$ac_ext <<_ACEOF |
| 7861 | /* confdefs.h. */ |
| 7862 | _ACEOF |
| 7863 | cat confdefs.h >>conftest.$ac_ext |
| 7864 | cat >>conftest.$ac_ext <<_ACEOF |
| 7865 | /* end confdefs.h. */ |
| 7866 | #include <sys/timeb.h> |
| 7867 | _ACEOF |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 7868 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 7869 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7870 | ac_status=$? |
| 7871 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7872 | rm -f conftest.er1 |
| 7873 | cat conftest.err >&5 |
| 7874 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 7875 | (exit $ac_status); } >/dev/null; then |
| 7876 | if test -s conftest.err; then |
| 7877 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 7878 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 7879 | else |
| 7880 | ac_cpp_err= |
| 7881 | fi |
| 7882 | else |
| 7883 | ac_cpp_err=yes |
| 7884 | fi |
| 7885 | if test -z "$ac_cpp_err"; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7886 | ac_header_preproc=yes |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7887 | else |
| 7888 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7889 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7890 | |
| 7891 | ac_header_preproc=no |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7892 | fi |
| 7893 | rm -f conftest.err conftest.$ac_ext |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 7894 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 7895 | echo "${ECHO_T}$ac_header_preproc" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 7896 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7897 | # So? What about this header? |
| 7898 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 7899 | yes:no: ) |
| 7900 | { echo "$as_me:$LINENO: WARNING: sys/timeb.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 7901 | echo "$as_me: WARNING: sys/timeb.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 7902 | { echo "$as_me:$LINENO: WARNING: sys/timeb.h: proceeding with the compiler's result" >&5 |
| 7903 | echo "$as_me: WARNING: sys/timeb.h: proceeding with the compiler's result" >&2;} |
| 7904 | ac_header_preproc=yes |
| 7905 | ;; |
| 7906 | no:yes:* ) |
| 7907 | { echo "$as_me:$LINENO: WARNING: sys/timeb.h: present but cannot be compiled" >&5 |
| 7908 | echo "$as_me: WARNING: sys/timeb.h: present but cannot be compiled" >&2;} |
| 7909 | { echo "$as_me:$LINENO: WARNING: sys/timeb.h: check for missing prerequisite headers?" >&5 |
| 7910 | echo "$as_me: WARNING: sys/timeb.h: check for missing prerequisite headers?" >&2;} |
| 7911 | { echo "$as_me:$LINENO: WARNING: sys/timeb.h: see the Autoconf documentation" >&5 |
| 7912 | echo "$as_me: WARNING: sys/timeb.h: see the Autoconf documentation" >&2;} |
| 7913 | { echo "$as_me:$LINENO: WARNING: sys/timeb.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 7914 | echo "$as_me: WARNING: sys/timeb.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 7915 | { echo "$as_me:$LINENO: WARNING: sys/timeb.h: proceeding with the preprocessor's result" >&5 |
| 7916 | echo "$as_me: WARNING: sys/timeb.h: proceeding with the preprocessor's result" >&2;} |
| 7917 | { echo "$as_me:$LINENO: WARNING: sys/timeb.h: in the future, the compiler will take precedence" >&5 |
| 7918 | echo "$as_me: WARNING: sys/timeb.h: in the future, the compiler will take precedence" >&2;} |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 7919 | ( |
| 7920 | cat <<\_ASBOX |
| 7921 | ## ------------------------------------ ## |
| 7922 | ## Report this to the pjproject lists. ## |
| 7923 | ## ------------------------------------ ## |
| 7924 | _ASBOX |
| 7925 | ) | |
| 7926 | sed "s/^/$as_me: WARNING: /" >&2 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7927 | ;; |
| 7928 | esac |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 7929 | echo "$as_me:$LINENO: checking for sys/timeb.h" >&5 |
| 7930 | echo $ECHO_N "checking for sys/timeb.h... $ECHO_C" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 7931 | if test "${ac_cv_header_sys_timeb_h+set}" = set; then |
| 7932 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 7933 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7934 | ac_cv_header_sys_timeb_h=$ac_header_preproc |
| 7935 | fi |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 7936 | echo "$as_me:$LINENO: result: $ac_cv_header_sys_timeb_h" >&5 |
| 7937 | echo "${ECHO_T}$ac_cv_header_sys_timeb_h" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7938 | |
| 7939 | fi |
| 7940 | if test $ac_cv_header_sys_timeb_h = yes; then |
| 7941 | cat >>confdefs.h <<\_ACEOF |
| 7942 | #define PJ_HAS_SYS_TIMEB_H 1 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 7943 | _ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7944 | |
| 7945 | fi |
| 7946 | |
| 7947 | |
| 7948 | if test "${ac_cv_header_sys_types_h+set}" = set; then |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 7949 | echo "$as_me:$LINENO: checking for sys/types.h" >&5 |
| 7950 | echo $ECHO_N "checking for sys/types.h... $ECHO_C" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7951 | if test "${ac_cv_header_sys_types_h+set}" = set; then |
| 7952 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7953 | fi |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 7954 | echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h" >&5 |
| 7955 | echo "${ECHO_T}$ac_cv_header_sys_types_h" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7956 | else |
| 7957 | # Is the header compilable? |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 7958 | echo "$as_me:$LINENO: checking sys/types.h usability" >&5 |
| 7959 | echo $ECHO_N "checking sys/types.h usability... $ECHO_C" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7960 | cat >conftest.$ac_ext <<_ACEOF |
| 7961 | /* confdefs.h. */ |
| 7962 | _ACEOF |
| 7963 | cat confdefs.h >>conftest.$ac_ext |
| 7964 | cat >>conftest.$ac_ext <<_ACEOF |
| 7965 | /* end confdefs.h. */ |
| 7966 | $ac_includes_default |
| 7967 | #include <sys/types.h> |
| 7968 | _ACEOF |
| 7969 | rm -f conftest.$ac_objext |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 7970 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7971 | (eval $ac_compile) 2>conftest.er1 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7972 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7973 | grep -v '^ *+' conftest.er1 >conftest.err |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7974 | rm -f conftest.er1 |
| 7975 | cat conftest.err >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7976 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 7977 | (exit $ac_status); } && |
| 7978 | { ac_try='test -z "$ac_c_werror_flag" |
| 7979 | || test ! -s conftest.err' |
| 7980 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7981 | (eval $ac_try) 2>&5 |
| 7982 | ac_status=$? |
| 7983 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7984 | (exit $ac_status); }; } && |
| 7985 | { ac_try='test -s conftest.$ac_objext' |
| 7986 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7987 | (eval $ac_try) 2>&5 |
| 7988 | ac_status=$? |
| 7989 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7990 | (exit $ac_status); }; }; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7991 | ac_header_compiler=yes |
| 7992 | else |
| 7993 | echo "$as_me: failed program was:" >&5 |
| 7994 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7995 | |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 7996 | ac_header_compiler=no |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7997 | fi |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 7998 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7999 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 8000 | echo "${ECHO_T}$ac_header_compiler" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8001 | |
| 8002 | # Is the header present? |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 8003 | echo "$as_me:$LINENO: checking sys/types.h presence" >&5 |
| 8004 | echo $ECHO_N "checking sys/types.h presence... $ECHO_C" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8005 | cat >conftest.$ac_ext <<_ACEOF |
| 8006 | /* confdefs.h. */ |
| 8007 | _ACEOF |
| 8008 | cat confdefs.h >>conftest.$ac_ext |
| 8009 | cat >>conftest.$ac_ext <<_ACEOF |
| 8010 | /* end confdefs.h. */ |
| 8011 | #include <sys/types.h> |
| 8012 | _ACEOF |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 8013 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 8014 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8015 | ac_status=$? |
| 8016 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8017 | rm -f conftest.er1 |
| 8018 | cat conftest.err >&5 |
| 8019 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 8020 | (exit $ac_status); } >/dev/null; then |
| 8021 | if test -s conftest.err; then |
| 8022 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 8023 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 8024 | else |
| 8025 | ac_cpp_err= |
| 8026 | fi |
| 8027 | else |
| 8028 | ac_cpp_err=yes |
| 8029 | fi |
| 8030 | if test -z "$ac_cpp_err"; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8031 | ac_header_preproc=yes |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8032 | else |
| 8033 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8034 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8035 | |
| 8036 | ac_header_preproc=no |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8037 | fi |
| 8038 | rm -f conftest.err conftest.$ac_ext |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 8039 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 8040 | echo "${ECHO_T}$ac_header_preproc" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 8041 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8042 | # So? What about this header? |
| 8043 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 8044 | yes:no: ) |
| 8045 | { echo "$as_me:$LINENO: WARNING: sys/types.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 8046 | echo "$as_me: WARNING: sys/types.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 8047 | { echo "$as_me:$LINENO: WARNING: sys/types.h: proceeding with the compiler's result" >&5 |
| 8048 | echo "$as_me: WARNING: sys/types.h: proceeding with the compiler's result" >&2;} |
| 8049 | ac_header_preproc=yes |
| 8050 | ;; |
| 8051 | no:yes:* ) |
| 8052 | { echo "$as_me:$LINENO: WARNING: sys/types.h: present but cannot be compiled" >&5 |
| 8053 | echo "$as_me: WARNING: sys/types.h: present but cannot be compiled" >&2;} |
| 8054 | { echo "$as_me:$LINENO: WARNING: sys/types.h: check for missing prerequisite headers?" >&5 |
| 8055 | echo "$as_me: WARNING: sys/types.h: check for missing prerequisite headers?" >&2;} |
| 8056 | { echo "$as_me:$LINENO: WARNING: sys/types.h: see the Autoconf documentation" >&5 |
| 8057 | echo "$as_me: WARNING: sys/types.h: see the Autoconf documentation" >&2;} |
| 8058 | { echo "$as_me:$LINENO: WARNING: sys/types.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 8059 | echo "$as_me: WARNING: sys/types.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 8060 | { echo "$as_me:$LINENO: WARNING: sys/types.h: proceeding with the preprocessor's result" >&5 |
| 8061 | echo "$as_me: WARNING: sys/types.h: proceeding with the preprocessor's result" >&2;} |
| 8062 | { echo "$as_me:$LINENO: WARNING: sys/types.h: in the future, the compiler will take precedence" >&5 |
| 8063 | echo "$as_me: WARNING: sys/types.h: in the future, the compiler will take precedence" >&2;} |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 8064 | ( |
| 8065 | cat <<\_ASBOX |
| 8066 | ## ------------------------------------ ## |
| 8067 | ## Report this to the pjproject lists. ## |
| 8068 | ## ------------------------------------ ## |
| 8069 | _ASBOX |
| 8070 | ) | |
| 8071 | sed "s/^/$as_me: WARNING: /" >&2 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8072 | ;; |
| 8073 | esac |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 8074 | echo "$as_me:$LINENO: checking for sys/types.h" >&5 |
| 8075 | echo $ECHO_N "checking for sys/types.h... $ECHO_C" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 8076 | if test "${ac_cv_header_sys_types_h+set}" = set; then |
| 8077 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 8078 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8079 | ac_cv_header_sys_types_h=$ac_header_preproc |
| 8080 | fi |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 8081 | echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h" >&5 |
| 8082 | echo "${ECHO_T}$ac_cv_header_sys_types_h" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8083 | |
| 8084 | fi |
| 8085 | if test $ac_cv_header_sys_types_h = yes; then |
| 8086 | cat >>confdefs.h <<\_ACEOF |
| 8087 | #define PJ_HAS_SYS_TYPES_H 1 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 8088 | _ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8089 | |
| 8090 | fi |
| 8091 | |
| 8092 | |
| 8093 | if test "${ac_cv_header_time_h+set}" = set; then |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 8094 | echo "$as_me:$LINENO: checking for time.h" >&5 |
| 8095 | echo $ECHO_N "checking for time.h... $ECHO_C" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8096 | if test "${ac_cv_header_time_h+set}" = set; then |
| 8097 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8098 | fi |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 8099 | echo "$as_me:$LINENO: result: $ac_cv_header_time_h" >&5 |
| 8100 | echo "${ECHO_T}$ac_cv_header_time_h" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8101 | else |
| 8102 | # Is the header compilable? |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 8103 | echo "$as_me:$LINENO: checking time.h usability" >&5 |
| 8104 | echo $ECHO_N "checking time.h usability... $ECHO_C" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8105 | cat >conftest.$ac_ext <<_ACEOF |
| 8106 | /* confdefs.h. */ |
| 8107 | _ACEOF |
| 8108 | cat confdefs.h >>conftest.$ac_ext |
| 8109 | cat >>conftest.$ac_ext <<_ACEOF |
| 8110 | /* end confdefs.h. */ |
| 8111 | $ac_includes_default |
| 8112 | #include <time.h> |
| 8113 | _ACEOF |
| 8114 | rm -f conftest.$ac_objext |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 8115 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8116 | (eval $ac_compile) 2>conftest.er1 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8117 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8118 | grep -v '^ *+' conftest.er1 >conftest.err |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8119 | rm -f conftest.er1 |
| 8120 | cat conftest.err >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8121 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 8122 | (exit $ac_status); } && |
| 8123 | { ac_try='test -z "$ac_c_werror_flag" |
| 8124 | || test ! -s conftest.err' |
| 8125 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8126 | (eval $ac_try) 2>&5 |
| 8127 | ac_status=$? |
| 8128 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8129 | (exit $ac_status); }; } && |
| 8130 | { ac_try='test -s conftest.$ac_objext' |
| 8131 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8132 | (eval $ac_try) 2>&5 |
| 8133 | ac_status=$? |
| 8134 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8135 | (exit $ac_status); }; }; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8136 | ac_header_compiler=yes |
| 8137 | else |
| 8138 | echo "$as_me: failed program was:" >&5 |
| 8139 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8140 | |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 8141 | ac_header_compiler=no |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8142 | fi |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 8143 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 8144 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 8145 | echo "${ECHO_T}$ac_header_compiler" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8146 | |
| 8147 | # Is the header present? |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 8148 | echo "$as_me:$LINENO: checking time.h presence" >&5 |
| 8149 | echo $ECHO_N "checking time.h presence... $ECHO_C" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8150 | cat >conftest.$ac_ext <<_ACEOF |
| 8151 | /* confdefs.h. */ |
| 8152 | _ACEOF |
| 8153 | cat confdefs.h >>conftest.$ac_ext |
| 8154 | cat >>conftest.$ac_ext <<_ACEOF |
| 8155 | /* end confdefs.h. */ |
| 8156 | #include <time.h> |
| 8157 | _ACEOF |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 8158 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 8159 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8160 | ac_status=$? |
| 8161 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8162 | rm -f conftest.er1 |
| 8163 | cat conftest.err >&5 |
| 8164 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 8165 | (exit $ac_status); } >/dev/null; then |
| 8166 | if test -s conftest.err; then |
| 8167 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 8168 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 8169 | else |
| 8170 | ac_cpp_err= |
| 8171 | fi |
| 8172 | else |
| 8173 | ac_cpp_err=yes |
| 8174 | fi |
| 8175 | if test -z "$ac_cpp_err"; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8176 | ac_header_preproc=yes |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8177 | else |
| 8178 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8179 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8180 | |
| 8181 | ac_header_preproc=no |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8182 | fi |
| 8183 | rm -f conftest.err conftest.$ac_ext |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 8184 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 8185 | echo "${ECHO_T}$ac_header_preproc" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 8186 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8187 | # So? What about this header? |
| 8188 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 8189 | yes:no: ) |
| 8190 | { echo "$as_me:$LINENO: WARNING: time.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 8191 | echo "$as_me: WARNING: time.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 8192 | { echo "$as_me:$LINENO: WARNING: time.h: proceeding with the compiler's result" >&5 |
| 8193 | echo "$as_me: WARNING: time.h: proceeding with the compiler's result" >&2;} |
| 8194 | ac_header_preproc=yes |
| 8195 | ;; |
| 8196 | no:yes:* ) |
| 8197 | { echo "$as_me:$LINENO: WARNING: time.h: present but cannot be compiled" >&5 |
| 8198 | echo "$as_me: WARNING: time.h: present but cannot be compiled" >&2;} |
| 8199 | { echo "$as_me:$LINENO: WARNING: time.h: check for missing prerequisite headers?" >&5 |
| 8200 | echo "$as_me: WARNING: time.h: check for missing prerequisite headers?" >&2;} |
| 8201 | { echo "$as_me:$LINENO: WARNING: time.h: see the Autoconf documentation" >&5 |
| 8202 | echo "$as_me: WARNING: time.h: see the Autoconf documentation" >&2;} |
| 8203 | { echo "$as_me:$LINENO: WARNING: time.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 8204 | echo "$as_me: WARNING: time.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 8205 | { echo "$as_me:$LINENO: WARNING: time.h: proceeding with the preprocessor's result" >&5 |
| 8206 | echo "$as_me: WARNING: time.h: proceeding with the preprocessor's result" >&2;} |
| 8207 | { echo "$as_me:$LINENO: WARNING: time.h: in the future, the compiler will take precedence" >&5 |
| 8208 | echo "$as_me: WARNING: time.h: in the future, the compiler will take precedence" >&2;} |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 8209 | ( |
| 8210 | cat <<\_ASBOX |
| 8211 | ## ------------------------------------ ## |
| 8212 | ## Report this to the pjproject lists. ## |
| 8213 | ## ------------------------------------ ## |
| 8214 | _ASBOX |
| 8215 | ) | |
| 8216 | sed "s/^/$as_me: WARNING: /" >&2 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8217 | ;; |
| 8218 | esac |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 8219 | echo "$as_me:$LINENO: checking for time.h" >&5 |
| 8220 | echo $ECHO_N "checking for time.h... $ECHO_C" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 8221 | if test "${ac_cv_header_time_h+set}" = set; then |
| 8222 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 8223 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8224 | ac_cv_header_time_h=$ac_header_preproc |
| 8225 | fi |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 8226 | echo "$as_me:$LINENO: result: $ac_cv_header_time_h" >&5 |
| 8227 | echo "${ECHO_T}$ac_cv_header_time_h" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8228 | |
| 8229 | fi |
| 8230 | if test $ac_cv_header_time_h = yes; then |
| 8231 | cat >>confdefs.h <<\_ACEOF |
| 8232 | #define PJ_HAS_TIME_H 1 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 8233 | _ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8234 | |
| 8235 | fi |
| 8236 | |
| 8237 | |
| 8238 | if test "${ac_cv_header_unistd_h+set}" = set; then |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 8239 | echo "$as_me:$LINENO: checking for unistd.h" >&5 |
| 8240 | echo $ECHO_N "checking for unistd.h... $ECHO_C" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8241 | if test "${ac_cv_header_unistd_h+set}" = set; then |
| 8242 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8243 | fi |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 8244 | echo "$as_me:$LINENO: result: $ac_cv_header_unistd_h" >&5 |
| 8245 | echo "${ECHO_T}$ac_cv_header_unistd_h" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8246 | else |
| 8247 | # Is the header compilable? |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 8248 | echo "$as_me:$LINENO: checking unistd.h usability" >&5 |
| 8249 | echo $ECHO_N "checking unistd.h usability... $ECHO_C" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8250 | cat >conftest.$ac_ext <<_ACEOF |
| 8251 | /* confdefs.h. */ |
| 8252 | _ACEOF |
| 8253 | cat confdefs.h >>conftest.$ac_ext |
| 8254 | cat >>conftest.$ac_ext <<_ACEOF |
| 8255 | /* end confdefs.h. */ |
| 8256 | $ac_includes_default |
| 8257 | #include <unistd.h> |
| 8258 | _ACEOF |
| 8259 | rm -f conftest.$ac_objext |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 8260 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8261 | (eval $ac_compile) 2>conftest.er1 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8262 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8263 | grep -v '^ *+' conftest.er1 >conftest.err |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8264 | rm -f conftest.er1 |
| 8265 | cat conftest.err >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8266 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 8267 | (exit $ac_status); } && |
| 8268 | { ac_try='test -z "$ac_c_werror_flag" |
| 8269 | || test ! -s conftest.err' |
| 8270 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8271 | (eval $ac_try) 2>&5 |
| 8272 | ac_status=$? |
| 8273 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8274 | (exit $ac_status); }; } && |
| 8275 | { ac_try='test -s conftest.$ac_objext' |
| 8276 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8277 | (eval $ac_try) 2>&5 |
| 8278 | ac_status=$? |
| 8279 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8280 | (exit $ac_status); }; }; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8281 | ac_header_compiler=yes |
| 8282 | else |
| 8283 | echo "$as_me: failed program was:" >&5 |
| 8284 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8285 | |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 8286 | ac_header_compiler=no |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8287 | fi |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 8288 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 8289 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 8290 | echo "${ECHO_T}$ac_header_compiler" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8291 | |
| 8292 | # Is the header present? |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 8293 | echo "$as_me:$LINENO: checking unistd.h presence" >&5 |
| 8294 | echo $ECHO_N "checking unistd.h presence... $ECHO_C" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8295 | cat >conftest.$ac_ext <<_ACEOF |
| 8296 | /* confdefs.h. */ |
| 8297 | _ACEOF |
| 8298 | cat confdefs.h >>conftest.$ac_ext |
| 8299 | cat >>conftest.$ac_ext <<_ACEOF |
| 8300 | /* end confdefs.h. */ |
| 8301 | #include <unistd.h> |
| 8302 | _ACEOF |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 8303 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 8304 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8305 | ac_status=$? |
| 8306 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8307 | rm -f conftest.er1 |
| 8308 | cat conftest.err >&5 |
| 8309 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 8310 | (exit $ac_status); } >/dev/null; then |
| 8311 | if test -s conftest.err; then |
| 8312 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 8313 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 8314 | else |
| 8315 | ac_cpp_err= |
| 8316 | fi |
| 8317 | else |
| 8318 | ac_cpp_err=yes |
| 8319 | fi |
| 8320 | if test -z "$ac_cpp_err"; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8321 | ac_header_preproc=yes |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8322 | else |
| 8323 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8324 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8325 | |
| 8326 | ac_header_preproc=no |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8327 | fi |
| 8328 | rm -f conftest.err conftest.$ac_ext |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 8329 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 8330 | echo "${ECHO_T}$ac_header_preproc" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 8331 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8332 | # So? What about this header? |
| 8333 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 8334 | yes:no: ) |
| 8335 | { echo "$as_me:$LINENO: WARNING: unistd.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 8336 | echo "$as_me: WARNING: unistd.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 8337 | { echo "$as_me:$LINENO: WARNING: unistd.h: proceeding with the compiler's result" >&5 |
| 8338 | echo "$as_me: WARNING: unistd.h: proceeding with the compiler's result" >&2;} |
| 8339 | ac_header_preproc=yes |
| 8340 | ;; |
| 8341 | no:yes:* ) |
| 8342 | { echo "$as_me:$LINENO: WARNING: unistd.h: present but cannot be compiled" >&5 |
| 8343 | echo "$as_me: WARNING: unistd.h: present but cannot be compiled" >&2;} |
| 8344 | { echo "$as_me:$LINENO: WARNING: unistd.h: check for missing prerequisite headers?" >&5 |
| 8345 | echo "$as_me: WARNING: unistd.h: check for missing prerequisite headers?" >&2;} |
| 8346 | { echo "$as_me:$LINENO: WARNING: unistd.h: see the Autoconf documentation" >&5 |
| 8347 | echo "$as_me: WARNING: unistd.h: see the Autoconf documentation" >&2;} |
| 8348 | { echo "$as_me:$LINENO: WARNING: unistd.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 8349 | echo "$as_me: WARNING: unistd.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 8350 | { echo "$as_me:$LINENO: WARNING: unistd.h: proceeding with the preprocessor's result" >&5 |
| 8351 | echo "$as_me: WARNING: unistd.h: proceeding with the preprocessor's result" >&2;} |
| 8352 | { echo "$as_me:$LINENO: WARNING: unistd.h: in the future, the compiler will take precedence" >&5 |
| 8353 | echo "$as_me: WARNING: unistd.h: in the future, the compiler will take precedence" >&2;} |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 8354 | ( |
| 8355 | cat <<\_ASBOX |
| 8356 | ## ------------------------------------ ## |
| 8357 | ## Report this to the pjproject lists. ## |
| 8358 | ## ------------------------------------ ## |
| 8359 | _ASBOX |
| 8360 | ) | |
| 8361 | sed "s/^/$as_me: WARNING: /" >&2 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8362 | ;; |
| 8363 | esac |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 8364 | echo "$as_me:$LINENO: checking for unistd.h" >&5 |
| 8365 | echo $ECHO_N "checking for unistd.h... $ECHO_C" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 8366 | if test "${ac_cv_header_unistd_h+set}" = set; then |
| 8367 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 8368 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8369 | ac_cv_header_unistd_h=$ac_header_preproc |
| 8370 | fi |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 8371 | echo "$as_me:$LINENO: result: $ac_cv_header_unistd_h" >&5 |
| 8372 | echo "${ECHO_T}$ac_cv_header_unistd_h" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8373 | |
| 8374 | fi |
| 8375 | if test $ac_cv_header_unistd_h = yes; then |
| 8376 | cat >>confdefs.h <<\_ACEOF |
| 8377 | #define PJ_HAS_UNISTD_H 1 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 8378 | _ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8379 | |
| 8380 | fi |
| 8381 | |
| 8382 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8383 | if test "${ac_cv_header_winsock_h+set}" = set; then |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 8384 | echo "$as_me:$LINENO: checking for winsock.h" >&5 |
| 8385 | echo $ECHO_N "checking for winsock.h... $ECHO_C" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8386 | if test "${ac_cv_header_winsock_h+set}" = set; then |
| 8387 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8388 | fi |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 8389 | echo "$as_me:$LINENO: result: $ac_cv_header_winsock_h" >&5 |
| 8390 | echo "${ECHO_T}$ac_cv_header_winsock_h" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8391 | else |
| 8392 | # Is the header compilable? |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 8393 | echo "$as_me:$LINENO: checking winsock.h usability" >&5 |
| 8394 | echo $ECHO_N "checking winsock.h usability... $ECHO_C" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8395 | cat >conftest.$ac_ext <<_ACEOF |
| 8396 | /* confdefs.h. */ |
| 8397 | _ACEOF |
| 8398 | cat confdefs.h >>conftest.$ac_ext |
| 8399 | cat >>conftest.$ac_ext <<_ACEOF |
| 8400 | /* end confdefs.h. */ |
| 8401 | $ac_includes_default |
| 8402 | #include <winsock.h> |
| 8403 | _ACEOF |
| 8404 | rm -f conftest.$ac_objext |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 8405 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8406 | (eval $ac_compile) 2>conftest.er1 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8407 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8408 | grep -v '^ *+' conftest.er1 >conftest.err |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8409 | rm -f conftest.er1 |
| 8410 | cat conftest.err >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8411 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 8412 | (exit $ac_status); } && |
| 8413 | { ac_try='test -z "$ac_c_werror_flag" |
| 8414 | || test ! -s conftest.err' |
| 8415 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8416 | (eval $ac_try) 2>&5 |
| 8417 | ac_status=$? |
| 8418 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8419 | (exit $ac_status); }; } && |
| 8420 | { ac_try='test -s conftest.$ac_objext' |
| 8421 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8422 | (eval $ac_try) 2>&5 |
| 8423 | ac_status=$? |
| 8424 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8425 | (exit $ac_status); }; }; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8426 | ac_header_compiler=yes |
| 8427 | else |
| 8428 | echo "$as_me: failed program was:" >&5 |
| 8429 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8430 | |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 8431 | ac_header_compiler=no |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8432 | fi |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 8433 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 8434 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 8435 | echo "${ECHO_T}$ac_header_compiler" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8436 | |
| 8437 | # Is the header present? |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 8438 | echo "$as_me:$LINENO: checking winsock.h presence" >&5 |
| 8439 | echo $ECHO_N "checking winsock.h presence... $ECHO_C" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8440 | cat >conftest.$ac_ext <<_ACEOF |
| 8441 | /* confdefs.h. */ |
| 8442 | _ACEOF |
| 8443 | cat confdefs.h >>conftest.$ac_ext |
| 8444 | cat >>conftest.$ac_ext <<_ACEOF |
| 8445 | /* end confdefs.h. */ |
| 8446 | #include <winsock.h> |
| 8447 | _ACEOF |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 8448 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 8449 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8450 | ac_status=$? |
| 8451 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8452 | rm -f conftest.er1 |
| 8453 | cat conftest.err >&5 |
| 8454 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 8455 | (exit $ac_status); } >/dev/null; then |
| 8456 | if test -s conftest.err; then |
| 8457 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 8458 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 8459 | else |
| 8460 | ac_cpp_err= |
| 8461 | fi |
| 8462 | else |
| 8463 | ac_cpp_err=yes |
| 8464 | fi |
| 8465 | if test -z "$ac_cpp_err"; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8466 | ac_header_preproc=yes |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8467 | else |
| 8468 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8469 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8470 | |
| 8471 | ac_header_preproc=no |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8472 | fi |
| 8473 | rm -f conftest.err conftest.$ac_ext |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 8474 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 8475 | echo "${ECHO_T}$ac_header_preproc" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 8476 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8477 | # So? What about this header? |
| 8478 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 8479 | yes:no: ) |
| 8480 | { echo "$as_me:$LINENO: WARNING: winsock.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 8481 | echo "$as_me: WARNING: winsock.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 8482 | { echo "$as_me:$LINENO: WARNING: winsock.h: proceeding with the compiler's result" >&5 |
| 8483 | echo "$as_me: WARNING: winsock.h: proceeding with the compiler's result" >&2;} |
| 8484 | ac_header_preproc=yes |
| 8485 | ;; |
| 8486 | no:yes:* ) |
| 8487 | { echo "$as_me:$LINENO: WARNING: winsock.h: present but cannot be compiled" >&5 |
| 8488 | echo "$as_me: WARNING: winsock.h: present but cannot be compiled" >&2;} |
| 8489 | { echo "$as_me:$LINENO: WARNING: winsock.h: check for missing prerequisite headers?" >&5 |
| 8490 | echo "$as_me: WARNING: winsock.h: check for missing prerequisite headers?" >&2;} |
| 8491 | { echo "$as_me:$LINENO: WARNING: winsock.h: see the Autoconf documentation" >&5 |
| 8492 | echo "$as_me: WARNING: winsock.h: see the Autoconf documentation" >&2;} |
| 8493 | { echo "$as_me:$LINENO: WARNING: winsock.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 8494 | echo "$as_me: WARNING: winsock.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 8495 | { echo "$as_me:$LINENO: WARNING: winsock.h: proceeding with the preprocessor's result" >&5 |
| 8496 | echo "$as_me: WARNING: winsock.h: proceeding with the preprocessor's result" >&2;} |
| 8497 | { echo "$as_me:$LINENO: WARNING: winsock.h: in the future, the compiler will take precedence" >&5 |
| 8498 | echo "$as_me: WARNING: winsock.h: in the future, the compiler will take precedence" >&2;} |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 8499 | ( |
| 8500 | cat <<\_ASBOX |
| 8501 | ## ------------------------------------ ## |
| 8502 | ## Report this to the pjproject lists. ## |
| 8503 | ## ------------------------------------ ## |
| 8504 | _ASBOX |
| 8505 | ) | |
| 8506 | sed "s/^/$as_me: WARNING: /" >&2 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8507 | ;; |
| 8508 | esac |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 8509 | echo "$as_me:$LINENO: checking for winsock.h" >&5 |
| 8510 | echo $ECHO_N "checking for winsock.h... $ECHO_C" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 8511 | if test "${ac_cv_header_winsock_h+set}" = set; then |
| 8512 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 8513 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8514 | ac_cv_header_winsock_h=$ac_header_preproc |
| 8515 | fi |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 8516 | echo "$as_me:$LINENO: result: $ac_cv_header_winsock_h" >&5 |
| 8517 | echo "${ECHO_T}$ac_cv_header_winsock_h" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8518 | |
| 8519 | fi |
| 8520 | if test $ac_cv_header_winsock_h = yes; then |
| 8521 | cat >>confdefs.h <<\_ACEOF |
| 8522 | #define PJ_HAS_WINSOCK_H 1 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 8523 | _ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8524 | |
| 8525 | fi |
| 8526 | |
| 8527 | |
| 8528 | if test "${ac_cv_header_winsock2_h+set}" = set; then |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 8529 | echo "$as_me:$LINENO: checking for winsock2.h" >&5 |
| 8530 | echo $ECHO_N "checking for winsock2.h... $ECHO_C" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8531 | if test "${ac_cv_header_winsock2_h+set}" = set; then |
| 8532 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8533 | fi |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 8534 | echo "$as_me:$LINENO: result: $ac_cv_header_winsock2_h" >&5 |
| 8535 | echo "${ECHO_T}$ac_cv_header_winsock2_h" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8536 | else |
| 8537 | # Is the header compilable? |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 8538 | echo "$as_me:$LINENO: checking winsock2.h usability" >&5 |
| 8539 | echo $ECHO_N "checking winsock2.h usability... $ECHO_C" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8540 | cat >conftest.$ac_ext <<_ACEOF |
| 8541 | /* confdefs.h. */ |
| 8542 | _ACEOF |
| 8543 | cat confdefs.h >>conftest.$ac_ext |
| 8544 | cat >>conftest.$ac_ext <<_ACEOF |
| 8545 | /* end confdefs.h. */ |
| 8546 | $ac_includes_default |
| 8547 | #include <winsock2.h> |
| 8548 | _ACEOF |
| 8549 | rm -f conftest.$ac_objext |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 8550 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8551 | (eval $ac_compile) 2>conftest.er1 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8552 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8553 | grep -v '^ *+' conftest.er1 >conftest.err |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8554 | rm -f conftest.er1 |
| 8555 | cat conftest.err >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8556 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 8557 | (exit $ac_status); } && |
| 8558 | { ac_try='test -z "$ac_c_werror_flag" |
| 8559 | || test ! -s conftest.err' |
| 8560 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8561 | (eval $ac_try) 2>&5 |
| 8562 | ac_status=$? |
| 8563 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8564 | (exit $ac_status); }; } && |
| 8565 | { ac_try='test -s conftest.$ac_objext' |
| 8566 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8567 | (eval $ac_try) 2>&5 |
| 8568 | ac_status=$? |
| 8569 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8570 | (exit $ac_status); }; }; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8571 | ac_header_compiler=yes |
| 8572 | else |
| 8573 | echo "$as_me: failed program was:" >&5 |
| 8574 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8575 | |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 8576 | ac_header_compiler=no |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8577 | fi |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 8578 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 8579 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 8580 | echo "${ECHO_T}$ac_header_compiler" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8581 | |
| 8582 | # Is the header present? |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 8583 | echo "$as_me:$LINENO: checking winsock2.h presence" >&5 |
| 8584 | echo $ECHO_N "checking winsock2.h presence... $ECHO_C" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8585 | cat >conftest.$ac_ext <<_ACEOF |
| 8586 | /* confdefs.h. */ |
| 8587 | _ACEOF |
| 8588 | cat confdefs.h >>conftest.$ac_ext |
| 8589 | cat >>conftest.$ac_ext <<_ACEOF |
| 8590 | /* end confdefs.h. */ |
| 8591 | #include <winsock2.h> |
| 8592 | _ACEOF |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 8593 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 8594 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8595 | ac_status=$? |
| 8596 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8597 | rm -f conftest.er1 |
| 8598 | cat conftest.err >&5 |
| 8599 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 8600 | (exit $ac_status); } >/dev/null; then |
| 8601 | if test -s conftest.err; then |
| 8602 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 8603 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 8604 | else |
| 8605 | ac_cpp_err= |
| 8606 | fi |
| 8607 | else |
| 8608 | ac_cpp_err=yes |
| 8609 | fi |
| 8610 | if test -z "$ac_cpp_err"; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8611 | ac_header_preproc=yes |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8612 | else |
| 8613 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8614 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8615 | |
| 8616 | ac_header_preproc=no |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8617 | fi |
| 8618 | rm -f conftest.err conftest.$ac_ext |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 8619 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 8620 | echo "${ECHO_T}$ac_header_preproc" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 8621 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8622 | # So? What about this header? |
| 8623 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 8624 | yes:no: ) |
| 8625 | { echo "$as_me:$LINENO: WARNING: winsock2.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 8626 | echo "$as_me: WARNING: winsock2.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 8627 | { echo "$as_me:$LINENO: WARNING: winsock2.h: proceeding with the compiler's result" >&5 |
| 8628 | echo "$as_me: WARNING: winsock2.h: proceeding with the compiler's result" >&2;} |
| 8629 | ac_header_preproc=yes |
| 8630 | ;; |
| 8631 | no:yes:* ) |
| 8632 | { echo "$as_me:$LINENO: WARNING: winsock2.h: present but cannot be compiled" >&5 |
| 8633 | echo "$as_me: WARNING: winsock2.h: present but cannot be compiled" >&2;} |
| 8634 | { echo "$as_me:$LINENO: WARNING: winsock2.h: check for missing prerequisite headers?" >&5 |
| 8635 | echo "$as_me: WARNING: winsock2.h: check for missing prerequisite headers?" >&2;} |
| 8636 | { echo "$as_me:$LINENO: WARNING: winsock2.h: see the Autoconf documentation" >&5 |
| 8637 | echo "$as_me: WARNING: winsock2.h: see the Autoconf documentation" >&2;} |
| 8638 | { echo "$as_me:$LINENO: WARNING: winsock2.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 8639 | echo "$as_me: WARNING: winsock2.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 8640 | { echo "$as_me:$LINENO: WARNING: winsock2.h: proceeding with the preprocessor's result" >&5 |
| 8641 | echo "$as_me: WARNING: winsock2.h: proceeding with the preprocessor's result" >&2;} |
| 8642 | { echo "$as_me:$LINENO: WARNING: winsock2.h: in the future, the compiler will take precedence" >&5 |
| 8643 | echo "$as_me: WARNING: winsock2.h: in the future, the compiler will take precedence" >&2;} |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 8644 | ( |
| 8645 | cat <<\_ASBOX |
| 8646 | ## ------------------------------------ ## |
| 8647 | ## Report this to the pjproject lists. ## |
| 8648 | ## ------------------------------------ ## |
| 8649 | _ASBOX |
| 8650 | ) | |
| 8651 | sed "s/^/$as_me: WARNING: /" >&2 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8652 | ;; |
| 8653 | esac |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 8654 | echo "$as_me:$LINENO: checking for winsock2.h" >&5 |
| 8655 | echo $ECHO_N "checking for winsock2.h... $ECHO_C" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 8656 | if test "${ac_cv_header_winsock2_h+set}" = set; then |
| 8657 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 8658 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8659 | ac_cv_header_winsock2_h=$ac_header_preproc |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8660 | fi |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 8661 | echo "$as_me:$LINENO: result: $ac_cv_header_winsock2_h" >&5 |
| 8662 | echo "${ECHO_T}$ac_cv_header_winsock2_h" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8663 | |
| 8664 | fi |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8665 | if test $ac_cv_header_winsock2_h = yes; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8666 | cat >>confdefs.h <<\_ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8667 | #define PJ_HAS_WINSOCK2_H 1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8668 | _ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8669 | |
| 8670 | fi |
| 8671 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8672 | |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 8673 | echo "$as_me:$LINENO: checking for mswsock.h" >&5 |
| 8674 | echo $ECHO_N "checking for mswsock.h... $ECHO_C" >&6 |
Benny Prijono | a9948e6 | 2008-03-25 14:03:01 +0000 | [diff] [blame] | 8675 | if test "${ac_cv_header_mswsock_h+set}" = set; then |
| 8676 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8677 | else |
| 8678 | cat >conftest.$ac_ext <<_ACEOF |
| 8679 | /* confdefs.h. */ |
| 8680 | _ACEOF |
| 8681 | cat confdefs.h >>conftest.$ac_ext |
| 8682 | cat >>conftest.$ac_ext <<_ACEOF |
| 8683 | /* end confdefs.h. */ |
| 8684 | #if PJ_HAS_WINSOCK2_H |
| 8685 | # include <winsock2.h> |
| 8686 | #elif PJ_HAS_WINSOCK_H |
| 8687 | # include <winsock.h> |
| 8688 | #endif |
| 8689 | |
| 8690 | |
| 8691 | #include <mswsock.h> |
| 8692 | _ACEOF |
| 8693 | rm -f conftest.$ac_objext |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 8694 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8695 | (eval $ac_compile) 2>conftest.er1 |
Benny Prijono | a9948e6 | 2008-03-25 14:03:01 +0000 | [diff] [blame] | 8696 | ac_status=$? |
| 8697 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8698 | rm -f conftest.er1 |
| 8699 | cat conftest.err >&5 |
| 8700 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 8701 | (exit $ac_status); } && |
| 8702 | { ac_try='test -z "$ac_c_werror_flag" |
| 8703 | || test ! -s conftest.err' |
| 8704 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8705 | (eval $ac_try) 2>&5 |
| 8706 | ac_status=$? |
| 8707 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8708 | (exit $ac_status); }; } && |
| 8709 | { ac_try='test -s conftest.$ac_objext' |
| 8710 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8711 | (eval $ac_try) 2>&5 |
| 8712 | ac_status=$? |
| 8713 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8714 | (exit $ac_status); }; }; then |
Benny Prijono | a9948e6 | 2008-03-25 14:03:01 +0000 | [diff] [blame] | 8715 | ac_cv_header_mswsock_h=yes |
| 8716 | else |
| 8717 | echo "$as_me: failed program was:" >&5 |
| 8718 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8719 | |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 8720 | ac_cv_header_mswsock_h=no |
Benny Prijono | a9948e6 | 2008-03-25 14:03:01 +0000 | [diff] [blame] | 8721 | fi |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 8722 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Benny Prijono | a9948e6 | 2008-03-25 14:03:01 +0000 | [diff] [blame] | 8723 | fi |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 8724 | echo "$as_me:$LINENO: result: $ac_cv_header_mswsock_h" >&5 |
| 8725 | echo "${ECHO_T}$ac_cv_header_mswsock_h" >&6 |
Benny Prijono | a9948e6 | 2008-03-25 14:03:01 +0000 | [diff] [blame] | 8726 | if test $ac_cv_header_mswsock_h = yes; then |
| 8727 | cat >>confdefs.h <<\_ACEOF |
| 8728 | #define PJ_HAS_MSWSOCK_H 1 |
| 8729 | _ACEOF |
| 8730 | |
| 8731 | fi |
| 8732 | |
| 8733 | |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 8734 | if test "${ac_cv_header_ws2tcpip_h+set}" = set; then |
| 8735 | echo "$as_me:$LINENO: checking for ws2tcpip.h" >&5 |
| 8736 | echo $ECHO_N "checking for ws2tcpip.h... $ECHO_C" >&6 |
| 8737 | if test "${ac_cv_header_ws2tcpip_h+set}" = set; then |
| 8738 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8739 | fi |
| 8740 | echo "$as_me:$LINENO: result: $ac_cv_header_ws2tcpip_h" >&5 |
| 8741 | echo "${ECHO_T}$ac_cv_header_ws2tcpip_h" >&6 |
| 8742 | else |
| 8743 | # Is the header compilable? |
| 8744 | echo "$as_me:$LINENO: checking ws2tcpip.h usability" >&5 |
| 8745 | echo $ECHO_N "checking ws2tcpip.h usability... $ECHO_C" >&6 |
| 8746 | cat >conftest.$ac_ext <<_ACEOF |
| 8747 | /* confdefs.h. */ |
| 8748 | _ACEOF |
| 8749 | cat confdefs.h >>conftest.$ac_ext |
| 8750 | cat >>conftest.$ac_ext <<_ACEOF |
| 8751 | /* end confdefs.h. */ |
| 8752 | $ac_includes_default |
| 8753 | #include <ws2tcpip.h> |
| 8754 | _ACEOF |
| 8755 | rm -f conftest.$ac_objext |
| 8756 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8757 | (eval $ac_compile) 2>conftest.er1 |
| 8758 | ac_status=$? |
| 8759 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8760 | rm -f conftest.er1 |
| 8761 | cat conftest.err >&5 |
| 8762 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8763 | (exit $ac_status); } && |
| 8764 | { ac_try='test -z "$ac_c_werror_flag" |
| 8765 | || test ! -s conftest.err' |
| 8766 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8767 | (eval $ac_try) 2>&5 |
| 8768 | ac_status=$? |
| 8769 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8770 | (exit $ac_status); }; } && |
| 8771 | { ac_try='test -s conftest.$ac_objext' |
| 8772 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8773 | (eval $ac_try) 2>&5 |
| 8774 | ac_status=$? |
| 8775 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8776 | (exit $ac_status); }; }; then |
| 8777 | ac_header_compiler=yes |
| 8778 | else |
| 8779 | echo "$as_me: failed program was:" >&5 |
| 8780 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8781 | |
| 8782 | ac_header_compiler=no |
| 8783 | fi |
| 8784 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 8785 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 8786 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 8787 | |
| 8788 | # Is the header present? |
| 8789 | echo "$as_me:$LINENO: checking ws2tcpip.h presence" >&5 |
| 8790 | echo $ECHO_N "checking ws2tcpip.h presence... $ECHO_C" >&6 |
| 8791 | cat >conftest.$ac_ext <<_ACEOF |
| 8792 | /* confdefs.h. */ |
| 8793 | _ACEOF |
| 8794 | cat confdefs.h >>conftest.$ac_ext |
| 8795 | cat >>conftest.$ac_ext <<_ACEOF |
| 8796 | /* end confdefs.h. */ |
| 8797 | #include <ws2tcpip.h> |
| 8798 | _ACEOF |
| 8799 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 8800 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 8801 | ac_status=$? |
| 8802 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8803 | rm -f conftest.er1 |
| 8804 | cat conftest.err >&5 |
| 8805 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8806 | (exit $ac_status); } >/dev/null; then |
| 8807 | if test -s conftest.err; then |
| 8808 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 8809 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 8810 | else |
| 8811 | ac_cpp_err= |
| 8812 | fi |
| 8813 | else |
| 8814 | ac_cpp_err=yes |
| 8815 | fi |
| 8816 | if test -z "$ac_cpp_err"; then |
| 8817 | ac_header_preproc=yes |
| 8818 | else |
| 8819 | echo "$as_me: failed program was:" >&5 |
| 8820 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8821 | |
| 8822 | ac_header_preproc=no |
| 8823 | fi |
| 8824 | rm -f conftest.err conftest.$ac_ext |
| 8825 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 8826 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 8827 | |
| 8828 | # So? What about this header? |
| 8829 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 8830 | yes:no: ) |
| 8831 | { echo "$as_me:$LINENO: WARNING: ws2tcpip.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 8832 | echo "$as_me: WARNING: ws2tcpip.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 8833 | { echo "$as_me:$LINENO: WARNING: ws2tcpip.h: proceeding with the compiler's result" >&5 |
| 8834 | echo "$as_me: WARNING: ws2tcpip.h: proceeding with the compiler's result" >&2;} |
| 8835 | ac_header_preproc=yes |
| 8836 | ;; |
| 8837 | no:yes:* ) |
| 8838 | { echo "$as_me:$LINENO: WARNING: ws2tcpip.h: present but cannot be compiled" >&5 |
| 8839 | echo "$as_me: WARNING: ws2tcpip.h: present but cannot be compiled" >&2;} |
| 8840 | { echo "$as_me:$LINENO: WARNING: ws2tcpip.h: check for missing prerequisite headers?" >&5 |
| 8841 | echo "$as_me: WARNING: ws2tcpip.h: check for missing prerequisite headers?" >&2;} |
| 8842 | { echo "$as_me:$LINENO: WARNING: ws2tcpip.h: see the Autoconf documentation" >&5 |
| 8843 | echo "$as_me: WARNING: ws2tcpip.h: see the Autoconf documentation" >&2;} |
| 8844 | { echo "$as_me:$LINENO: WARNING: ws2tcpip.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 8845 | echo "$as_me: WARNING: ws2tcpip.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 8846 | { echo "$as_me:$LINENO: WARNING: ws2tcpip.h: proceeding with the preprocessor's result" >&5 |
| 8847 | echo "$as_me: WARNING: ws2tcpip.h: proceeding with the preprocessor's result" >&2;} |
| 8848 | { echo "$as_me:$LINENO: WARNING: ws2tcpip.h: in the future, the compiler will take precedence" >&5 |
| 8849 | echo "$as_me: WARNING: ws2tcpip.h: in the future, the compiler will take precedence" >&2;} |
| 8850 | ( |
| 8851 | cat <<\_ASBOX |
| 8852 | ## ------------------------------------ ## |
| 8853 | ## Report this to the pjproject lists. ## |
| 8854 | ## ------------------------------------ ## |
| 8855 | _ASBOX |
| 8856 | ) | |
| 8857 | sed "s/^/$as_me: WARNING: /" >&2 |
| 8858 | ;; |
| 8859 | esac |
| 8860 | echo "$as_me:$LINENO: checking for ws2tcpip.h" >&5 |
| 8861 | echo $ECHO_N "checking for ws2tcpip.h... $ECHO_C" >&6 |
| 8862 | if test "${ac_cv_header_ws2tcpip_h+set}" = set; then |
| 8863 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8864 | else |
| 8865 | ac_cv_header_ws2tcpip_h=$ac_header_preproc |
| 8866 | fi |
| 8867 | echo "$as_me:$LINENO: result: $ac_cv_header_ws2tcpip_h" >&5 |
| 8868 | echo "${ECHO_T}$ac_cv_header_ws2tcpip_h" >&6 |
| 8869 | |
| 8870 | fi |
| 8871 | if test $ac_cv_header_ws2tcpip_h = yes; then |
| 8872 | cat >>confdefs.h <<\_ACEOF |
| 8873 | #define PJ_HAS_WS2TCPIP_H 1 |
| 8874 | _ACEOF |
| 8875 | |
| 8876 | fi |
| 8877 | |
| 8878 | |
Benny Prijono | 4e48b51 | 2007-05-16 13:41:00 +0000 | [diff] [blame] | 8879 | if test "${ac_cv_header_uuid_uuid_h+set}" = set; then |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 8880 | echo "$as_me:$LINENO: checking for uuid/uuid.h" >&5 |
| 8881 | echo $ECHO_N "checking for uuid/uuid.h... $ECHO_C" >&6 |
Benny Prijono | 4e48b51 | 2007-05-16 13:41:00 +0000 | [diff] [blame] | 8882 | if test "${ac_cv_header_uuid_uuid_h+set}" = set; then |
| 8883 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8884 | fi |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 8885 | echo "$as_me:$LINENO: result: $ac_cv_header_uuid_uuid_h" >&5 |
| 8886 | echo "${ECHO_T}$ac_cv_header_uuid_uuid_h" >&6 |
Benny Prijono | 4e48b51 | 2007-05-16 13:41:00 +0000 | [diff] [blame] | 8887 | else |
| 8888 | # Is the header compilable? |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 8889 | echo "$as_me:$LINENO: checking uuid/uuid.h usability" >&5 |
| 8890 | echo $ECHO_N "checking uuid/uuid.h usability... $ECHO_C" >&6 |
Benny Prijono | 4e48b51 | 2007-05-16 13:41:00 +0000 | [diff] [blame] | 8891 | cat >conftest.$ac_ext <<_ACEOF |
| 8892 | /* confdefs.h. */ |
| 8893 | _ACEOF |
| 8894 | cat confdefs.h >>conftest.$ac_ext |
| 8895 | cat >>conftest.$ac_ext <<_ACEOF |
| 8896 | /* end confdefs.h. */ |
| 8897 | $ac_includes_default |
| 8898 | #include <uuid/uuid.h> |
| 8899 | _ACEOF |
| 8900 | rm -f conftest.$ac_objext |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 8901 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8902 | (eval $ac_compile) 2>conftest.er1 |
Benny Prijono | 4e48b51 | 2007-05-16 13:41:00 +0000 | [diff] [blame] | 8903 | ac_status=$? |
| 8904 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8905 | rm -f conftest.er1 |
| 8906 | cat conftest.err >&5 |
| 8907 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 8908 | (exit $ac_status); } && |
| 8909 | { ac_try='test -z "$ac_c_werror_flag" |
| 8910 | || test ! -s conftest.err' |
| 8911 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8912 | (eval $ac_try) 2>&5 |
| 8913 | ac_status=$? |
| 8914 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8915 | (exit $ac_status); }; } && |
| 8916 | { ac_try='test -s conftest.$ac_objext' |
| 8917 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8918 | (eval $ac_try) 2>&5 |
| 8919 | ac_status=$? |
| 8920 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8921 | (exit $ac_status); }; }; then |
Benny Prijono | 4e48b51 | 2007-05-16 13:41:00 +0000 | [diff] [blame] | 8922 | ac_header_compiler=yes |
| 8923 | else |
| 8924 | echo "$as_me: failed program was:" >&5 |
| 8925 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8926 | |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 8927 | ac_header_compiler=no |
Benny Prijono | 4e48b51 | 2007-05-16 13:41:00 +0000 | [diff] [blame] | 8928 | fi |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 8929 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 8930 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 8931 | echo "${ECHO_T}$ac_header_compiler" >&6 |
Benny Prijono | 4e48b51 | 2007-05-16 13:41:00 +0000 | [diff] [blame] | 8932 | |
| 8933 | # Is the header present? |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 8934 | echo "$as_me:$LINENO: checking uuid/uuid.h presence" >&5 |
| 8935 | echo $ECHO_N "checking uuid/uuid.h presence... $ECHO_C" >&6 |
Benny Prijono | 4e48b51 | 2007-05-16 13:41:00 +0000 | [diff] [blame] | 8936 | cat >conftest.$ac_ext <<_ACEOF |
| 8937 | /* confdefs.h. */ |
| 8938 | _ACEOF |
| 8939 | cat confdefs.h >>conftest.$ac_ext |
| 8940 | cat >>conftest.$ac_ext <<_ACEOF |
| 8941 | /* end confdefs.h. */ |
| 8942 | #include <uuid/uuid.h> |
| 8943 | _ACEOF |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 8944 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 8945 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
Benny Prijono | 4e48b51 | 2007-05-16 13:41:00 +0000 | [diff] [blame] | 8946 | ac_status=$? |
| 8947 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8948 | rm -f conftest.er1 |
| 8949 | cat conftest.err >&5 |
| 8950 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 8951 | (exit $ac_status); } >/dev/null; then |
| 8952 | if test -s conftest.err; then |
| 8953 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 8954 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 8955 | else |
| 8956 | ac_cpp_err= |
| 8957 | fi |
| 8958 | else |
| 8959 | ac_cpp_err=yes |
| 8960 | fi |
| 8961 | if test -z "$ac_cpp_err"; then |
Benny Prijono | 4e48b51 | 2007-05-16 13:41:00 +0000 | [diff] [blame] | 8962 | ac_header_preproc=yes |
| 8963 | else |
| 8964 | echo "$as_me: failed program was:" >&5 |
| 8965 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8966 | |
| 8967 | ac_header_preproc=no |
| 8968 | fi |
| 8969 | rm -f conftest.err conftest.$ac_ext |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 8970 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 8971 | echo "${ECHO_T}$ac_header_preproc" >&6 |
Benny Prijono | 4e48b51 | 2007-05-16 13:41:00 +0000 | [diff] [blame] | 8972 | |
| 8973 | # So? What about this header? |
| 8974 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 8975 | yes:no: ) |
| 8976 | { echo "$as_me:$LINENO: WARNING: uuid/uuid.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 8977 | echo "$as_me: WARNING: uuid/uuid.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 8978 | { echo "$as_me:$LINENO: WARNING: uuid/uuid.h: proceeding with the compiler's result" >&5 |
| 8979 | echo "$as_me: WARNING: uuid/uuid.h: proceeding with the compiler's result" >&2;} |
| 8980 | ac_header_preproc=yes |
| 8981 | ;; |
| 8982 | no:yes:* ) |
| 8983 | { echo "$as_me:$LINENO: WARNING: uuid/uuid.h: present but cannot be compiled" >&5 |
| 8984 | echo "$as_me: WARNING: uuid/uuid.h: present but cannot be compiled" >&2;} |
| 8985 | { echo "$as_me:$LINENO: WARNING: uuid/uuid.h: check for missing prerequisite headers?" >&5 |
| 8986 | echo "$as_me: WARNING: uuid/uuid.h: check for missing prerequisite headers?" >&2;} |
| 8987 | { echo "$as_me:$LINENO: WARNING: uuid/uuid.h: see the Autoconf documentation" >&5 |
| 8988 | echo "$as_me: WARNING: uuid/uuid.h: see the Autoconf documentation" >&2;} |
| 8989 | { echo "$as_me:$LINENO: WARNING: uuid/uuid.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 8990 | echo "$as_me: WARNING: uuid/uuid.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 8991 | { echo "$as_me:$LINENO: WARNING: uuid/uuid.h: proceeding with the preprocessor's result" >&5 |
| 8992 | echo "$as_me: WARNING: uuid/uuid.h: proceeding with the preprocessor's result" >&2;} |
| 8993 | { echo "$as_me:$LINENO: WARNING: uuid/uuid.h: in the future, the compiler will take precedence" >&5 |
| 8994 | echo "$as_me: WARNING: uuid/uuid.h: in the future, the compiler will take precedence" >&2;} |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 8995 | ( |
| 8996 | cat <<\_ASBOX |
| 8997 | ## ------------------------------------ ## |
| 8998 | ## Report this to the pjproject lists. ## |
| 8999 | ## ------------------------------------ ## |
| 9000 | _ASBOX |
| 9001 | ) | |
| 9002 | sed "s/^/$as_me: WARNING: /" >&2 |
Benny Prijono | 4e48b51 | 2007-05-16 13:41:00 +0000 | [diff] [blame] | 9003 | ;; |
| 9004 | esac |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 9005 | echo "$as_me:$LINENO: checking for uuid/uuid.h" >&5 |
| 9006 | echo $ECHO_N "checking for uuid/uuid.h... $ECHO_C" >&6 |
Benny Prijono | 4e48b51 | 2007-05-16 13:41:00 +0000 | [diff] [blame] | 9007 | if test "${ac_cv_header_uuid_uuid_h+set}" = set; then |
| 9008 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9009 | else |
| 9010 | ac_cv_header_uuid_uuid_h=$ac_header_preproc |
| 9011 | fi |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 9012 | echo "$as_me:$LINENO: result: $ac_cv_header_uuid_uuid_h" >&5 |
| 9013 | echo "${ECHO_T}$ac_cv_header_uuid_uuid_h" >&6 |
Benny Prijono | 4e48b51 | 2007-05-16 13:41:00 +0000 | [diff] [blame] | 9014 | |
| 9015 | fi |
| 9016 | if test $ac_cv_header_uuid_uuid_h = yes; then |
| 9017 | ac_has_uuid_h=1 |
| 9018 | fi |
| 9019 | |
| 9020 | |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 9021 | echo "$as_me:$LINENO: checking for net/if.h" >&5 |
| 9022 | echo $ECHO_N "checking for net/if.h... $ECHO_C" >&6 |
Benny Prijono | a9948e6 | 2008-03-25 14:03:01 +0000 | [diff] [blame] | 9023 | if test "${ac_cv_header_net_if_h+set}" = set; then |
Benny Prijono | 188ba7e | 2008-03-25 13:53:16 +0000 | [diff] [blame] | 9024 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9025 | else |
| 9026 | cat >conftest.$ac_ext <<_ACEOF |
| 9027 | /* confdefs.h. */ |
| 9028 | _ACEOF |
| 9029 | cat confdefs.h >>conftest.$ac_ext |
| 9030 | cat >>conftest.$ac_ext <<_ACEOF |
| 9031 | /* end confdefs.h. */ |
| 9032 | #if PJ_HAS_SYS_SOCKET_H |
| 9033 | # include <sys/socket.h> |
| 9034 | #endif |
| 9035 | |
| 9036 | |
Benny Prijono | a9948e6 | 2008-03-25 14:03:01 +0000 | [diff] [blame] | 9037 | #include <net/if.h> |
Benny Prijono | 188ba7e | 2008-03-25 13:53:16 +0000 | [diff] [blame] | 9038 | _ACEOF |
| 9039 | rm -f conftest.$ac_objext |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 9040 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 9041 | (eval $ac_compile) 2>conftest.er1 |
Benny Prijono | 188ba7e | 2008-03-25 13:53:16 +0000 | [diff] [blame] | 9042 | ac_status=$? |
| 9043 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9044 | rm -f conftest.er1 |
| 9045 | cat conftest.err >&5 |
| 9046 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 9047 | (exit $ac_status); } && |
| 9048 | { ac_try='test -z "$ac_c_werror_flag" |
| 9049 | || test ! -s conftest.err' |
| 9050 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9051 | (eval $ac_try) 2>&5 |
| 9052 | ac_status=$? |
| 9053 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9054 | (exit $ac_status); }; } && |
| 9055 | { ac_try='test -s conftest.$ac_objext' |
| 9056 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9057 | (eval $ac_try) 2>&5 |
| 9058 | ac_status=$? |
| 9059 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9060 | (exit $ac_status); }; }; then |
Benny Prijono | a9948e6 | 2008-03-25 14:03:01 +0000 | [diff] [blame] | 9061 | ac_cv_header_net_if_h=yes |
Benny Prijono | 188ba7e | 2008-03-25 13:53:16 +0000 | [diff] [blame] | 9062 | else |
| 9063 | echo "$as_me: failed program was:" >&5 |
| 9064 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9065 | |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 9066 | ac_cv_header_net_if_h=no |
Benny Prijono | 188ba7e | 2008-03-25 13:53:16 +0000 | [diff] [blame] | 9067 | fi |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 9068 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Benny Prijono | 188ba7e | 2008-03-25 13:53:16 +0000 | [diff] [blame] | 9069 | fi |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 9070 | echo "$as_me:$LINENO: result: $ac_cv_header_net_if_h" >&5 |
| 9071 | echo "${ECHO_T}$ac_cv_header_net_if_h" >&6 |
Benny Prijono | a9948e6 | 2008-03-25 14:03:01 +0000 | [diff] [blame] | 9072 | if test $ac_cv_header_net_if_h = yes; then |
| 9073 | cat >>confdefs.h <<\_ACEOF |
Benny Prijono | 188ba7e | 2008-03-25 13:53:16 +0000 | [diff] [blame] | 9074 | #define PJ_HAS_NET_IF_H 1 |
| 9075 | _ACEOF |
| 9076 | |
| 9077 | fi |
| 9078 | |
Benny Prijono | 188ba7e | 2008-03-25 13:53:16 +0000 | [diff] [blame] | 9079 | |
| 9080 | |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 9081 | echo "$as_me:$LINENO: result: Setting PJ_OS_NAME to $target" >&5 |
| 9082 | echo "${ECHO_T}Setting PJ_OS_NAME to $target" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9083 | cat >>confdefs.h <<_ACEOF |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 9084 | #define PJ_OS_NAME "$target" |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9085 | _ACEOF |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 9086 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9087 | |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 9088 | echo "$as_me:$LINENO: result: Setting PJ_HAS_ERRNO_VAR to 1" >&5 |
| 9089 | echo "${ECHO_T}Setting PJ_HAS_ERRNO_VAR to 1" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9090 | cat >>confdefs.h <<\_ACEOF |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 9091 | #define PJ_HAS_ERRNO_VAR 1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9092 | _ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9093 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9094 | |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 9095 | echo "$as_me:$LINENO: result: Setting PJ_HAS_HIGH_RES_TIMER to 1" >&5 |
| 9096 | echo "${ECHO_T}Setting PJ_HAS_HIGH_RES_TIMER to 1" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9097 | cat >>confdefs.h <<\_ACEOF |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 9098 | #define PJ_HAS_HIGH_RES_TIMER 1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9099 | _ACEOF |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 9100 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9101 | |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 9102 | echo "$as_me:$LINENO: result: Setting PJ_HAS_MALLOC to 1" >&5 |
| 9103 | echo "${ECHO_T}Setting PJ_HAS_MALLOC to 1" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9104 | cat >>confdefs.h <<\_ACEOF |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 9105 | #define PJ_HAS_MALLOC 1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9106 | _ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9107 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9108 | |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 9109 | echo "$as_me:$LINENO: result: Setting PJ_NATIVE_STRING_IS_UNICODE to 0" >&5 |
| 9110 | echo "${ECHO_T}Setting PJ_NATIVE_STRING_IS_UNICODE to 0" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9111 | cat >>confdefs.h <<\_ACEOF |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 9112 | #define PJ_NATIVE_STRING_IS_UNICODE 0 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9113 | _ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9114 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9115 | |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 9116 | echo "$as_me:$LINENO: result: Setting PJ_ATOMIC_VALUE_TYPE to long" >&5 |
| 9117 | echo "${ECHO_T}Setting PJ_ATOMIC_VALUE_TYPE to long" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9118 | cat >>confdefs.h <<\_ACEOF |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 9119 | #define PJ_ATOMIC_VALUE_TYPE long |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9120 | _ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9121 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9122 | |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 9123 | echo "$as_me:$LINENO: checking if inet_aton() is available" >&5 |
| 9124 | echo $ECHO_N "checking if inet_aton() is available... $ECHO_C" >&6 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9125 | cat >conftest.$ac_ext <<_ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9126 | /* confdefs.h. */ |
| 9127 | _ACEOF |
| 9128 | cat confdefs.h >>conftest.$ac_ext |
| 9129 | cat >>conftest.$ac_ext <<_ACEOF |
| 9130 | /* end confdefs.h. */ |
Benny Prijono | c16c6e3 | 2007-11-18 14:53:47 +0000 | [diff] [blame] | 9131 | #include <sys/types.h> |
| 9132 | #include <sys/socket.h> |
| 9133 | #include <arpa/inet.h> |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9134 | int |
| 9135 | main () |
| 9136 | { |
| 9137 | inet_aton(0, 0); |
| 9138 | ; |
| 9139 | return 0; |
| 9140 | } |
| 9141 | _ACEOF |
| 9142 | rm -f conftest.$ac_objext |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 9143 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 9144 | (eval $ac_compile) 2>conftest.er1 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9145 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9146 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9147 | rm -f conftest.er1 |
| 9148 | cat conftest.err >&5 |
| 9149 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 9150 | (exit $ac_status); } && |
| 9151 | { ac_try='test -z "$ac_c_werror_flag" |
| 9152 | || test ! -s conftest.err' |
| 9153 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9154 | (eval $ac_try) 2>&5 |
| 9155 | ac_status=$? |
| 9156 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9157 | (exit $ac_status); }; } && |
| 9158 | { ac_try='test -s conftest.$ac_objext' |
| 9159 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9160 | (eval $ac_try) 2>&5 |
| 9161 | ac_status=$? |
| 9162 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9163 | (exit $ac_status); }; }; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9164 | cat >>confdefs.h <<\_ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9165 | #define PJ_SOCK_HAS_INET_ATON 1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9166 | _ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9167 | |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 9168 | echo "$as_me:$LINENO: result: yes" >&5 |
| 9169 | echo "${ECHO_T}yes" >&6 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9170 | else |
| 9171 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9172 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9173 | |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 9174 | echo "$as_me:$LINENO: result: no" >&5 |
| 9175 | echo "${ECHO_T}no" >&6 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9176 | fi |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 9177 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9178 | |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 9179 | echo "$as_me:$LINENO: checking if inet_pton() is available" >&5 |
| 9180 | echo $ECHO_N "checking if inet_pton() is available... $ECHO_C" >&6 |
Benny Prijono | c16c6e3 | 2007-11-18 14:53:47 +0000 | [diff] [blame] | 9181 | cat >conftest.$ac_ext <<_ACEOF |
| 9182 | /* confdefs.h. */ |
| 9183 | _ACEOF |
| 9184 | cat confdefs.h >>conftest.$ac_ext |
| 9185 | cat >>conftest.$ac_ext <<_ACEOF |
| 9186 | /* end confdefs.h. */ |
| 9187 | #include <sys/types.h> |
| 9188 | #include <sys/socket.h> |
| 9189 | #include <arpa/inet.h> |
| 9190 | int |
| 9191 | main () |
| 9192 | { |
| 9193 | inet_pton(0, 0, 0); |
| 9194 | ; |
| 9195 | return 0; |
| 9196 | } |
| 9197 | _ACEOF |
| 9198 | rm -f conftest.$ac_objext |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 9199 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 9200 | (eval $ac_compile) 2>conftest.er1 |
Benny Prijono | c16c6e3 | 2007-11-18 14:53:47 +0000 | [diff] [blame] | 9201 | ac_status=$? |
| 9202 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9203 | rm -f conftest.er1 |
| 9204 | cat conftest.err >&5 |
| 9205 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 9206 | (exit $ac_status); } && |
| 9207 | { ac_try='test -z "$ac_c_werror_flag" |
| 9208 | || test ! -s conftest.err' |
| 9209 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9210 | (eval $ac_try) 2>&5 |
| 9211 | ac_status=$? |
| 9212 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9213 | (exit $ac_status); }; } && |
| 9214 | { ac_try='test -s conftest.$ac_objext' |
| 9215 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9216 | (eval $ac_try) 2>&5 |
| 9217 | ac_status=$? |
| 9218 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9219 | (exit $ac_status); }; }; then |
Benny Prijono | c16c6e3 | 2007-11-18 14:53:47 +0000 | [diff] [blame] | 9220 | cat >>confdefs.h <<\_ACEOF |
| 9221 | #define PJ_SOCK_HAS_INET_PTON 1 |
| 9222 | _ACEOF |
| 9223 | |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 9224 | echo "$as_me:$LINENO: result: yes" >&5 |
| 9225 | echo "${ECHO_T}yes" >&6 |
Benny Prijono | c16c6e3 | 2007-11-18 14:53:47 +0000 | [diff] [blame] | 9226 | else |
| 9227 | echo "$as_me: failed program was:" >&5 |
| 9228 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9229 | |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 9230 | echo "$as_me:$LINENO: result: no" >&5 |
| 9231 | echo "${ECHO_T}no" >&6 |
Benny Prijono | c16c6e3 | 2007-11-18 14:53:47 +0000 | [diff] [blame] | 9232 | fi |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 9233 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Benny Prijono | c16c6e3 | 2007-11-18 14:53:47 +0000 | [diff] [blame] | 9234 | |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 9235 | echo "$as_me:$LINENO: checking if inet_ntop() is available" >&5 |
| 9236 | echo $ECHO_N "checking if inet_ntop() is available... $ECHO_C" >&6 |
Benny Prijono | c16c6e3 | 2007-11-18 14:53:47 +0000 | [diff] [blame] | 9237 | cat >conftest.$ac_ext <<_ACEOF |
| 9238 | /* confdefs.h. */ |
| 9239 | _ACEOF |
| 9240 | cat confdefs.h >>conftest.$ac_ext |
| 9241 | cat >>conftest.$ac_ext <<_ACEOF |
| 9242 | /* end confdefs.h. */ |
| 9243 | #include <sys/types.h> |
| 9244 | #include <sys/socket.h> |
| 9245 | #include <arpa/inet.h> |
| 9246 | int |
| 9247 | main () |
| 9248 | { |
| 9249 | inet_ntop(0, 0, 0, 0); |
| 9250 | ; |
| 9251 | return 0; |
| 9252 | } |
| 9253 | _ACEOF |
| 9254 | rm -f conftest.$ac_objext |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 9255 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 9256 | (eval $ac_compile) 2>conftest.er1 |
Benny Prijono | c16c6e3 | 2007-11-18 14:53:47 +0000 | [diff] [blame] | 9257 | ac_status=$? |
| 9258 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9259 | rm -f conftest.er1 |
| 9260 | cat conftest.err >&5 |
| 9261 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 9262 | (exit $ac_status); } && |
| 9263 | { ac_try='test -z "$ac_c_werror_flag" |
| 9264 | || test ! -s conftest.err' |
| 9265 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9266 | (eval $ac_try) 2>&5 |
| 9267 | ac_status=$? |
| 9268 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9269 | (exit $ac_status); }; } && |
| 9270 | { ac_try='test -s conftest.$ac_objext' |
| 9271 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9272 | (eval $ac_try) 2>&5 |
| 9273 | ac_status=$? |
| 9274 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9275 | (exit $ac_status); }; }; then |
Benny Prijono | c16c6e3 | 2007-11-18 14:53:47 +0000 | [diff] [blame] | 9276 | cat >>confdefs.h <<\_ACEOF |
| 9277 | #define PJ_SOCK_HAS_INET_NTOP 1 |
| 9278 | _ACEOF |
| 9279 | |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 9280 | echo "$as_me:$LINENO: result: yes" >&5 |
| 9281 | echo "${ECHO_T}yes" >&6 |
Benny Prijono | c16c6e3 | 2007-11-18 14:53:47 +0000 | [diff] [blame] | 9282 | else |
| 9283 | echo "$as_me: failed program was:" >&5 |
| 9284 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9285 | |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 9286 | echo "$as_me:$LINENO: result: no" >&5 |
| 9287 | echo "${ECHO_T}no" >&6 |
Benny Prijono | c16c6e3 | 2007-11-18 14:53:47 +0000 | [diff] [blame] | 9288 | fi |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 9289 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Benny Prijono | c16c6e3 | 2007-11-18 14:53:47 +0000 | [diff] [blame] | 9290 | |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 9291 | echo "$as_me:$LINENO: checking if getaddrinfo() is available" >&5 |
| 9292 | echo $ECHO_N "checking if getaddrinfo() is available... $ECHO_C" >&6 |
Benny Prijono | c16c6e3 | 2007-11-18 14:53:47 +0000 | [diff] [blame] | 9293 | cat >conftest.$ac_ext <<_ACEOF |
| 9294 | /* confdefs.h. */ |
| 9295 | _ACEOF |
| 9296 | cat confdefs.h >>conftest.$ac_ext |
| 9297 | cat >>conftest.$ac_ext <<_ACEOF |
| 9298 | /* end confdefs.h. */ |
| 9299 | #include <sys/types.h> |
| 9300 | #include <sys/socket.h> |
| 9301 | #include <netdb.h> |
| 9302 | int |
| 9303 | main () |
| 9304 | { |
| 9305 | getaddrinfo(0, 0, 0, 0); |
| 9306 | ; |
| 9307 | return 0; |
| 9308 | } |
| 9309 | _ACEOF |
| 9310 | rm -f conftest.$ac_objext |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 9311 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 9312 | (eval $ac_compile) 2>conftest.er1 |
Benny Prijono | c16c6e3 | 2007-11-18 14:53:47 +0000 | [diff] [blame] | 9313 | ac_status=$? |
| 9314 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9315 | rm -f conftest.er1 |
| 9316 | cat conftest.err >&5 |
| 9317 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 9318 | (exit $ac_status); } && |
| 9319 | { ac_try='test -z "$ac_c_werror_flag" |
| 9320 | || test ! -s conftest.err' |
| 9321 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9322 | (eval $ac_try) 2>&5 |
| 9323 | ac_status=$? |
| 9324 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9325 | (exit $ac_status); }; } && |
| 9326 | { ac_try='test -s conftest.$ac_objext' |
| 9327 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9328 | (eval $ac_try) 2>&5 |
| 9329 | ac_status=$? |
| 9330 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9331 | (exit $ac_status); }; }; then |
Benny Prijono | c16c6e3 | 2007-11-18 14:53:47 +0000 | [diff] [blame] | 9332 | cat >>confdefs.h <<\_ACEOF |
| 9333 | #define PJ_SOCK_HAS_GETADDRINFO 1 |
| 9334 | _ACEOF |
| 9335 | |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 9336 | echo "$as_me:$LINENO: result: yes" >&5 |
| 9337 | echo "${ECHO_T}yes" >&6 |
Benny Prijono | c16c6e3 | 2007-11-18 14:53:47 +0000 | [diff] [blame] | 9338 | else |
| 9339 | echo "$as_me: failed program was:" >&5 |
| 9340 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9341 | |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 9342 | echo "$as_me:$LINENO: result: no" >&5 |
| 9343 | echo "${ECHO_T}no" >&6 |
Benny Prijono | c16c6e3 | 2007-11-18 14:53:47 +0000 | [diff] [blame] | 9344 | fi |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 9345 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Benny Prijono | c16c6e3 | 2007-11-18 14:53:47 +0000 | [diff] [blame] | 9346 | |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 9347 | echo "$as_me:$LINENO: checking if sockaddr_in has sin_len member" >&5 |
| 9348 | echo $ECHO_N "checking if sockaddr_in has sin_len member... $ECHO_C" >&6 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9349 | cat >conftest.$ac_ext <<_ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9350 | /* confdefs.h. */ |
| 9351 | _ACEOF |
| 9352 | cat confdefs.h >>conftest.$ac_ext |
| 9353 | cat >>conftest.$ac_ext <<_ACEOF |
| 9354 | /* end confdefs.h. */ |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame] | 9355 | #include <sys/types.h> |
| 9356 | #include <sys/socket.h> |
| 9357 | #include <netinet/in.h> |
| 9358 | #include <arpa/inet.h> |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9359 | int |
| 9360 | main () |
| 9361 | { |
| 9362 | struct sockaddr_in a; a.sin_len=0; |
| 9363 | ; |
| 9364 | return 0; |
| 9365 | } |
| 9366 | _ACEOF |
| 9367 | rm -f conftest.$ac_objext |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 9368 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 9369 | (eval $ac_compile) 2>conftest.er1 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9370 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9371 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9372 | rm -f conftest.er1 |
| 9373 | cat conftest.err >&5 |
| 9374 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 9375 | (exit $ac_status); } && |
| 9376 | { ac_try='test -z "$ac_c_werror_flag" |
| 9377 | || test ! -s conftest.err' |
| 9378 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9379 | (eval $ac_try) 2>&5 |
| 9380 | ac_status=$? |
| 9381 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9382 | (exit $ac_status); }; } && |
| 9383 | { ac_try='test -s conftest.$ac_objext' |
| 9384 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9385 | (eval $ac_try) 2>&5 |
| 9386 | ac_status=$? |
| 9387 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9388 | (exit $ac_status); }; }; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9389 | cat >>confdefs.h <<\_ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9390 | #define PJ_SOCKADDR_HAS_LEN 1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9391 | _ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9392 | |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 9393 | echo "$as_me:$LINENO: result: yes" >&5 |
| 9394 | echo "${ECHO_T}yes" >&6 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9395 | else |
| 9396 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9397 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9398 | |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 9399 | echo "$as_me:$LINENO: result: no" >&5 |
| 9400 | echo "${ECHO_T}no" >&6 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9401 | fi |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 9402 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9403 | |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 9404 | echo "$as_me:$LINENO: checking if socklen_t is available" >&5 |
| 9405 | echo $ECHO_N "checking if socklen_t is available... $ECHO_C" >&6 |
Benny Prijono | 30f85c6 | 2006-09-09 20:05:33 +0000 | [diff] [blame] | 9406 | cat >conftest.$ac_ext <<_ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9407 | /* confdefs.h. */ |
| 9408 | _ACEOF |
| 9409 | cat confdefs.h >>conftest.$ac_ext |
| 9410 | cat >>conftest.$ac_ext <<_ACEOF |
| 9411 | /* end confdefs.h. */ |
Benny Prijono | 1d97162 | 2006-09-10 22:27:40 +0000 | [diff] [blame] | 9412 | #include <sys/socket.h> |
Benny Prijono | 30f85c6 | 2006-09-09 20:05:33 +0000 | [diff] [blame] | 9413 | int |
| 9414 | main () |
| 9415 | { |
| 9416 | socklen_t xxx = 0; |
| 9417 | ; |
| 9418 | return 0; |
| 9419 | } |
| 9420 | _ACEOF |
| 9421 | rm -f conftest.$ac_objext |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 9422 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 9423 | (eval $ac_compile) 2>conftest.er1 |
Benny Prijono | 30f85c6 | 2006-09-09 20:05:33 +0000 | [diff] [blame] | 9424 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9425 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9426 | rm -f conftest.er1 |
| 9427 | cat conftest.err >&5 |
| 9428 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 9429 | (exit $ac_status); } && |
| 9430 | { ac_try='test -z "$ac_c_werror_flag" |
| 9431 | || test ! -s conftest.err' |
| 9432 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9433 | (eval $ac_try) 2>&5 |
| 9434 | ac_status=$? |
| 9435 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9436 | (exit $ac_status); }; } && |
| 9437 | { ac_try='test -s conftest.$ac_objext' |
| 9438 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9439 | (eval $ac_try) 2>&5 |
| 9440 | ac_status=$? |
| 9441 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9442 | (exit $ac_status); }; }; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9443 | cat >>confdefs.h <<\_ACEOF |
Benny Prijono | 30f85c6 | 2006-09-09 20:05:33 +0000 | [diff] [blame] | 9444 | #define PJ_HAS_SOCKLEN_T 1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9445 | _ACEOF |
Benny Prijono | 30f85c6 | 2006-09-09 20:05:33 +0000 | [diff] [blame] | 9446 | |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 9447 | echo "$as_me:$LINENO: result: yes" >&5 |
| 9448 | echo "${ECHO_T}yes" >&6 |
Benny Prijono | 30f85c6 | 2006-09-09 20:05:33 +0000 | [diff] [blame] | 9449 | else |
| 9450 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9451 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9452 | |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 9453 | echo "$as_me:$LINENO: result: no" >&5 |
| 9454 | echo "${ECHO_T}no" >&6 |
Benny Prijono | 30f85c6 | 2006-09-09 20:05:33 +0000 | [diff] [blame] | 9455 | fi |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 9456 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Benny Prijono | 30f85c6 | 2006-09-09 20:05:33 +0000 | [diff] [blame] | 9457 | |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 9458 | echo "$as_me:$LINENO: checking if SO_ERROR is available" >&5 |
| 9459 | echo $ECHO_N "checking if SO_ERROR is available... $ECHO_C" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 9460 | case $target in |
| 9461 | *mingw* | *cygw* | *win32* | *w32* ) |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9462 | cat >>confdefs.h <<\_ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 9463 | #define PJ_HAS_SO_ERROR 1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9464 | _ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 9465 | |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 9466 | echo "$as_me:$LINENO: result: yes" >&5 |
| 9467 | echo "${ECHO_T}yes" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 9468 | ;; |
| 9469 | *) |
| 9470 | cat >conftest.$ac_ext <<_ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9471 | /* confdefs.h. */ |
| 9472 | _ACEOF |
| 9473 | cat confdefs.h >>conftest.$ac_ext |
| 9474 | cat >>conftest.$ac_ext <<_ACEOF |
| 9475 | /* end confdefs.h. */ |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame] | 9476 | #include <sys/types.h> |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 9477 | #include <sys/socket.h> |
| 9478 | #include <netinet/in.h> |
| 9479 | #include <arpa/inet.h> |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9480 | int |
| 9481 | main () |
| 9482 | { |
| 9483 | int i=SO_ERROR; |
| 9484 | ; |
| 9485 | return 0; |
| 9486 | } |
| 9487 | _ACEOF |
| 9488 | rm -f conftest.$ac_objext |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 9489 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 9490 | (eval $ac_compile) 2>conftest.er1 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9491 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9492 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9493 | rm -f conftest.er1 |
| 9494 | cat conftest.err >&5 |
| 9495 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 9496 | (exit $ac_status); } && |
| 9497 | { ac_try='test -z "$ac_c_werror_flag" |
| 9498 | || test ! -s conftest.err' |
| 9499 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9500 | (eval $ac_try) 2>&5 |
| 9501 | ac_status=$? |
| 9502 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9503 | (exit $ac_status); }; } && |
| 9504 | { ac_try='test -s conftest.$ac_objext' |
| 9505 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9506 | (eval $ac_try) 2>&5 |
| 9507 | ac_status=$? |
| 9508 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9509 | (exit $ac_status); }; }; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9510 | cat >>confdefs.h <<\_ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9511 | #define PJ_HAS_SO_ERROR 1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9512 | _ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9513 | |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 9514 | echo "$as_me:$LINENO: result: yes" >&5 |
| 9515 | echo "${ECHO_T}yes" >&6 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9516 | else |
| 9517 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9518 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9519 | |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 9520 | echo "$as_me:$LINENO: result: no" >&5 |
| 9521 | echo "${ECHO_T}no" >&6 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9522 | fi |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 9523 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 9524 | ;; |
| 9525 | esac |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9526 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9527 | |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 9528 | echo "$as_me:$LINENO: checking if pthread_rwlock_t is available" >&5 |
| 9529 | echo $ECHO_N "checking if pthread_rwlock_t is available... $ECHO_C" >&6 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9530 | cat >conftest.$ac_ext <<_ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9531 | /* confdefs.h. */ |
| 9532 | _ACEOF |
| 9533 | cat confdefs.h >>conftest.$ac_ext |
| 9534 | cat >>conftest.$ac_ext <<_ACEOF |
| 9535 | /* end confdefs.h. */ |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9536 | #include <pthread.h> |
| 9537 | int |
| 9538 | main () |
| 9539 | { |
| 9540 | pthread_rwlock_t *x; |
| 9541 | ; |
| 9542 | return 0; |
| 9543 | } |
| 9544 | _ACEOF |
| 9545 | rm -f conftest.$ac_objext |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 9546 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 9547 | (eval $ac_compile) 2>conftest.er1 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9548 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9549 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9550 | rm -f conftest.er1 |
| 9551 | cat conftest.err >&5 |
| 9552 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 9553 | (exit $ac_status); } && |
| 9554 | { ac_try='test -z "$ac_c_werror_flag" |
| 9555 | || test ! -s conftest.err' |
| 9556 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9557 | (eval $ac_try) 2>&5 |
| 9558 | ac_status=$? |
| 9559 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9560 | (exit $ac_status); }; } && |
| 9561 | { ac_try='test -s conftest.$ac_objext' |
| 9562 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9563 | (eval $ac_try) 2>&5 |
| 9564 | ac_status=$? |
| 9565 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9566 | (exit $ac_status); }; }; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9567 | cat >>confdefs.h <<\_ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9568 | #define PJ_EMULATE_RWMUTEX 0 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9569 | _ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9570 | |
Benny Prijono | 1c5f4e4 | 2008-02-07 13:11:39 +0000 | [diff] [blame] | 9571 | ac_rwmutex="yes" |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 9572 | echo "$as_me:$LINENO: result: yes" >&5 |
| 9573 | echo "${ECHO_T}yes" >&6 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9574 | else |
| 9575 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9576 | sed 's/^/| /' conftest.$ac_ext >&5 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 9577 | |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 9578 | cat >>confdefs.h <<\_ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9579 | #define PJ_EMULATE_RWMUTEX 1 |
| 9580 | _ACEOF |
| 9581 | |
Benny Prijono | 1c5f4e4 | 2008-02-07 13:11:39 +0000 | [diff] [blame] | 9582 | ac_rwmutex="no" |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 9583 | echo "$as_me:$LINENO: result: no" >&5 |
| 9584 | echo "${ECHO_T}no" >&6 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9585 | fi |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 9586 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9587 | |
Benny Prijono | 1c5f4e4 | 2008-02-07 13:11:39 +0000 | [diff] [blame] | 9588 | if test "$ac_rwmutex" = "no"; then |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 9589 | echo "$as_me:$LINENO: checking if pthread_rwlock_t is available with _POSIX_READER_WRITER_LOCKS" >&5 |
| 9590 | echo $ECHO_N "checking if pthread_rwlock_t is available with _POSIX_READER_WRITER_LOCKS... $ECHO_C" >&6 |
Benny Prijono | 1c5f4e4 | 2008-02-07 13:11:39 +0000 | [diff] [blame] | 9591 | cat >conftest.$ac_ext <<_ACEOF |
| 9592 | /* confdefs.h. */ |
| 9593 | _ACEOF |
| 9594 | cat confdefs.h >>conftest.$ac_ext |
| 9595 | cat >>conftest.$ac_ext <<_ACEOF |
| 9596 | /* end confdefs.h. */ |
| 9597 | #define _POSIX_READER_WRITER_LOCKS |
| 9598 | #include <pthread.h> |
| 9599 | int |
| 9600 | main () |
| 9601 | { |
| 9602 | pthread_rwlock_t *x; |
| 9603 | ; |
| 9604 | return 0; |
| 9605 | } |
| 9606 | _ACEOF |
| 9607 | rm -f conftest.$ac_objext |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 9608 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 9609 | (eval $ac_compile) 2>conftest.er1 |
Benny Prijono | 1c5f4e4 | 2008-02-07 13:11:39 +0000 | [diff] [blame] | 9610 | ac_status=$? |
| 9611 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9612 | rm -f conftest.er1 |
| 9613 | cat conftest.err >&5 |
| 9614 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 9615 | (exit $ac_status); } && |
| 9616 | { ac_try='test -z "$ac_c_werror_flag" |
| 9617 | || test ! -s conftest.err' |
| 9618 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9619 | (eval $ac_try) 2>&5 |
| 9620 | ac_status=$? |
| 9621 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9622 | (exit $ac_status); }; } && |
| 9623 | { ac_try='test -s conftest.$ac_objext' |
| 9624 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9625 | (eval $ac_try) 2>&5 |
| 9626 | ac_status=$? |
| 9627 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9628 | (exit $ac_status); }; }; then |
Benny Prijono | 1c5f4e4 | 2008-02-07 13:11:39 +0000 | [diff] [blame] | 9629 | cat >>confdefs.h <<\_ACEOF |
| 9630 | #define PJ_EMULATE_RWMUTEX 0 |
| 9631 | _ACEOF |
| 9632 | |
| 9633 | CFLAGS="$CFLAGS -D_POSIX_THREADS -D_POSIX_READER_WRITER_LOCKS" |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 9634 | echo "$as_me:$LINENO: result: yes" >&5 |
| 9635 | echo "${ECHO_T}yes" >&6 |
Benny Prijono | 1c5f4e4 | 2008-02-07 13:11:39 +0000 | [diff] [blame] | 9636 | else |
| 9637 | echo "$as_me: failed program was:" >&5 |
| 9638 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9639 | |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 9640 | cat >>confdefs.h <<\_ACEOF |
Benny Prijono | 1c5f4e4 | 2008-02-07 13:11:39 +0000 | [diff] [blame] | 9641 | #define PJ_EMULATE_RWMUTEX 1 |
| 9642 | _ACEOF |
| 9643 | |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 9644 | echo "$as_me:$LINENO: result: no" >&5 |
| 9645 | echo "${ECHO_T}no" >&6 |
| 9646 | fi |
| 9647 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Benny Prijono | 1c5f4e4 | 2008-02-07 13:11:39 +0000 | [diff] [blame] | 9648 | fi |
| 9649 | |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 9650 | echo "$as_me:$LINENO: checking if pthread_mutexattr_settype() is available" >&5 |
| 9651 | echo $ECHO_N "checking if pthread_mutexattr_settype() is available... $ECHO_C" >&6 |
Benny Prijono | 1c5f4e4 | 2008-02-07 13:11:39 +0000 | [diff] [blame] | 9652 | cat >conftest.$ac_ext <<_ACEOF |
| 9653 | /* confdefs.h. */ |
| 9654 | _ACEOF |
| 9655 | cat confdefs.h >>conftest.$ac_ext |
| 9656 | cat >>conftest.$ac_ext <<_ACEOF |
| 9657 | /* end confdefs.h. */ |
| 9658 | #include <pthread.h> |
| 9659 | int |
| 9660 | main () |
| 9661 | { |
| 9662 | pthread_mutexattr_settype(0,PTHREAD_MUTEX_FAST_NP); |
| 9663 | ; |
| 9664 | return 0; |
| 9665 | } |
| 9666 | _ACEOF |
| 9667 | rm -f conftest.$ac_objext |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 9668 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 9669 | (eval $ac_compile) 2>conftest.er1 |
Benny Prijono | 1c5f4e4 | 2008-02-07 13:11:39 +0000 | [diff] [blame] | 9670 | ac_status=$? |
| 9671 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9672 | rm -f conftest.er1 |
| 9673 | cat conftest.err >&5 |
| 9674 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 9675 | (exit $ac_status); } && |
| 9676 | { ac_try='test -z "$ac_c_werror_flag" |
| 9677 | || test ! -s conftest.err' |
| 9678 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9679 | (eval $ac_try) 2>&5 |
| 9680 | ac_status=$? |
| 9681 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9682 | (exit $ac_status); }; } && |
| 9683 | { ac_try='test -s conftest.$ac_objext' |
| 9684 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9685 | (eval $ac_try) 2>&5 |
| 9686 | ac_status=$? |
| 9687 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9688 | (exit $ac_status); }; }; then |
Benny Prijono | 1c5f4e4 | 2008-02-07 13:11:39 +0000 | [diff] [blame] | 9689 | cat >>confdefs.h <<\_ACEOF |
| 9690 | #define PJ_HAS_PTHREAD_MUTEXATTR_SETTYPE 1 |
| 9691 | _ACEOF |
| 9692 | |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 9693 | echo "$as_me:$LINENO: result: yes" >&5 |
| 9694 | echo "${ECHO_T}yes" >&6 |
Benny Prijono | 1c5f4e4 | 2008-02-07 13:11:39 +0000 | [diff] [blame] | 9695 | else |
| 9696 | echo "$as_me: failed program was:" >&5 |
| 9697 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9698 | |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 9699 | echo "$as_me:$LINENO: result: no" >&5 |
| 9700 | echo "${ECHO_T}no" >&6 |
Benny Prijono | 1c5f4e4 | 2008-02-07 13:11:39 +0000 | [diff] [blame] | 9701 | fi |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 9702 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Benny Prijono | 1c5f4e4 | 2008-02-07 13:11:39 +0000 | [diff] [blame] | 9703 | |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 9704 | echo "$as_me:$LINENO: checking if pthread_mutexattr_t has recursive member" >&5 |
| 9705 | echo $ECHO_N "checking if pthread_mutexattr_t has recursive member... $ECHO_C" >&6 |
Benny Prijono | 1c5f4e4 | 2008-02-07 13:11:39 +0000 | [diff] [blame] | 9706 | cat >conftest.$ac_ext <<_ACEOF |
| 9707 | /* confdefs.h. */ |
| 9708 | _ACEOF |
| 9709 | cat confdefs.h >>conftest.$ac_ext |
| 9710 | cat >>conftest.$ac_ext <<_ACEOF |
| 9711 | /* end confdefs.h. */ |
| 9712 | #include <pthread.h> |
| 9713 | int |
| 9714 | main () |
| 9715 | { |
| 9716 | pthread_mutexattr_t attr; |
| 9717 | attr.recursive=1; |
| 9718 | ; |
| 9719 | return 0; |
| 9720 | } |
| 9721 | _ACEOF |
| 9722 | rm -f conftest.$ac_objext |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 9723 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 9724 | (eval $ac_compile) 2>conftest.er1 |
Benny Prijono | 1c5f4e4 | 2008-02-07 13:11:39 +0000 | [diff] [blame] | 9725 | ac_status=$? |
| 9726 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9727 | rm -f conftest.er1 |
| 9728 | cat conftest.err >&5 |
| 9729 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 9730 | (exit $ac_status); } && |
| 9731 | { ac_try='test -z "$ac_c_werror_flag" |
| 9732 | || test ! -s conftest.err' |
| 9733 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9734 | (eval $ac_try) 2>&5 |
| 9735 | ac_status=$? |
| 9736 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9737 | (exit $ac_status); }; } && |
| 9738 | { ac_try='test -s conftest.$ac_objext' |
| 9739 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9740 | (eval $ac_try) 2>&5 |
| 9741 | ac_status=$? |
| 9742 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9743 | (exit $ac_status); }; }; then |
Benny Prijono | 1c5f4e4 | 2008-02-07 13:11:39 +0000 | [diff] [blame] | 9744 | cat >>confdefs.h <<\_ACEOF |
| 9745 | #define PJ_PTHREAD_MUTEXATTR_T_HAS_RECURSIVE 1 |
| 9746 | _ACEOF |
| 9747 | |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 9748 | echo "$as_me:$LINENO: result: yes" >&5 |
| 9749 | echo "${ECHO_T}yes" >&6 |
Benny Prijono | 1c5f4e4 | 2008-02-07 13:11:39 +0000 | [diff] [blame] | 9750 | else |
| 9751 | echo "$as_me: failed program was:" >&5 |
| 9752 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9753 | |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 9754 | echo "$as_me:$LINENO: result: no" >&5 |
| 9755 | echo "${ECHO_T}no" >&6 |
Benny Prijono | 1c5f4e4 | 2008-02-07 13:11:39 +0000 | [diff] [blame] | 9756 | fi |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 9757 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 9758 | |
Benny Prijono | 99eec38 | 2008-09-18 21:22:16 +0000 | [diff] [blame] | 9759 | |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 9760 | echo "$as_me:$LINENO: checking ioqueue backend" >&5 |
| 9761 | echo $ECHO_N "checking ioqueue backend... $ECHO_C" >&6 |
| 9762 | # Check whether --enable-epoll or --disable-epoll was given. |
Benny Prijono | 99eec38 | 2008-09-18 21:22:16 +0000 | [diff] [blame] | 9763 | if test "${enable_epoll+set}" = set; then |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 9764 | enableval="$enable_epoll" |
| 9765 | |
Benny Prijono | 99eec38 | 2008-09-18 21:22:16 +0000 | [diff] [blame] | 9766 | ac_os_objs=ioqueue_epoll.o |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 9767 | echo "$as_me:$LINENO: result: /dev/epoll" >&5 |
| 9768 | echo "${ECHO_T}/dev/epoll" >&6 |
Benny Prijono | 99eec38 | 2008-09-18 21:22:16 +0000 | [diff] [blame] | 9769 | |
| 9770 | else |
| 9771 | |
| 9772 | ac_os_objs=ioqueue_select.o |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 9773 | echo "$as_me:$LINENO: result: select()" >&5 |
| 9774 | echo "${ECHO_T}select()" >&6 |
Benny Prijono | 99eec38 | 2008-09-18 21:22:16 +0000 | [diff] [blame] | 9775 | |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 9776 | fi; |
Benny Prijono | 1c5f4e4 | 2008-02-07 13:11:39 +0000 | [diff] [blame] | 9777 | |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 9778 | |
| 9779 | case $target in |
| 9780 | *mingw* | *cygw* | *win32* | *w32* ) |
Benny Prijono | 99eec38 | 2008-09-18 21:22:16 +0000 | [diff] [blame] | 9781 | 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] | 9782 | ;; |
| 9783 | *) |
Benny Prijono | 99eec38 | 2008-09-18 21:22:16 +0000 | [diff] [blame] | 9784 | 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] | 9785 | # UUID |
| 9786 | if test "$ac_has_uuid_lib" = "1" -a "$ac_has_uuid_h" = "1"; then |
| 9787 | ac_os_objs="$ac_os_objs guid_uuid.o" |
| 9788 | else |
| 9789 | ac_os_objs="$ac_os_objs guid_simple.o" |
| 9790 | fi |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 9791 | ;; |
| 9792 | esac |
| 9793 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9794 | |
| 9795 | |
| 9796 | |
Benny Prijono | 4e48b51 | 2007-05-16 13:41:00 +0000 | [diff] [blame] | 9797 | |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 9798 | # Check whether --enable-sound or --disable-sound was given. |
Benny Prijono | 1d97162 | 2006-09-10 22:27:40 +0000 | [diff] [blame] | 9799 | if test "${enable_sound+set}" = set; then |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 9800 | enableval="$enable_sound" |
| 9801 | if test "$enable_sound" = "no"; then |
Benny Prijono | 1d97162 | 2006-09-10 22:27:40 +0000 | [diff] [blame] | 9802 | ac_pjmedia_snd=null |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 9803 | echo "$as_me:$LINENO: result: Checking if sound is disabled... yes" >&5 |
| 9804 | echo "${ECHO_T}Checking if sound is disabled... yes" >&6 |
Benny Prijono | 1d97162 | 2006-09-10 22:27:40 +0000 | [diff] [blame] | 9805 | fi |
| 9806 | |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 9807 | fi; |
Benny Prijono | 1d97162 | 2006-09-10 22:27:40 +0000 | [diff] [blame] | 9808 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9809 | |
Benny Prijono | 27c9872 | 2007-04-09 21:28:15 +0000 | [diff] [blame] | 9810 | if test "${ac_cv_header_sys_soundcard_h+set}" = set; then |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 9811 | echo "$as_me:$LINENO: checking for sys/soundcard.h" >&5 |
| 9812 | echo $ECHO_N "checking for sys/soundcard.h... $ECHO_C" >&6 |
Benny Prijono | 27c9872 | 2007-04-09 21:28:15 +0000 | [diff] [blame] | 9813 | if test "${ac_cv_header_sys_soundcard_h+set}" = set; then |
| 9814 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9815 | fi |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 9816 | echo "$as_me:$LINENO: result: $ac_cv_header_sys_soundcard_h" >&5 |
| 9817 | echo "${ECHO_T}$ac_cv_header_sys_soundcard_h" >&6 |
Benny Prijono | 27c9872 | 2007-04-09 21:28:15 +0000 | [diff] [blame] | 9818 | else |
| 9819 | # Is the header compilable? |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 9820 | echo "$as_me:$LINENO: checking sys/soundcard.h usability" >&5 |
| 9821 | echo $ECHO_N "checking sys/soundcard.h usability... $ECHO_C" >&6 |
Benny Prijono | 27c9872 | 2007-04-09 21:28:15 +0000 | [diff] [blame] | 9822 | cat >conftest.$ac_ext <<_ACEOF |
| 9823 | /* confdefs.h. */ |
| 9824 | _ACEOF |
| 9825 | cat confdefs.h >>conftest.$ac_ext |
| 9826 | cat >>conftest.$ac_ext <<_ACEOF |
| 9827 | /* end confdefs.h. */ |
| 9828 | $ac_includes_default |
| 9829 | #include <sys/soundcard.h> |
| 9830 | _ACEOF |
| 9831 | rm -f conftest.$ac_objext |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 9832 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 9833 | (eval $ac_compile) 2>conftest.er1 |
Benny Prijono | 27c9872 | 2007-04-09 21:28:15 +0000 | [diff] [blame] | 9834 | ac_status=$? |
| 9835 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9836 | rm -f conftest.er1 |
| 9837 | cat conftest.err >&5 |
| 9838 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 9839 | (exit $ac_status); } && |
| 9840 | { ac_try='test -z "$ac_c_werror_flag" |
| 9841 | || test ! -s conftest.err' |
| 9842 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9843 | (eval $ac_try) 2>&5 |
| 9844 | ac_status=$? |
| 9845 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9846 | (exit $ac_status); }; } && |
| 9847 | { ac_try='test -s conftest.$ac_objext' |
| 9848 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9849 | (eval $ac_try) 2>&5 |
| 9850 | ac_status=$? |
| 9851 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9852 | (exit $ac_status); }; }; then |
Benny Prijono | 27c9872 | 2007-04-09 21:28:15 +0000 | [diff] [blame] | 9853 | ac_header_compiler=yes |
| 9854 | else |
| 9855 | echo "$as_me: failed program was:" >&5 |
| 9856 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9857 | |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 9858 | ac_header_compiler=no |
Benny Prijono | 27c9872 | 2007-04-09 21:28:15 +0000 | [diff] [blame] | 9859 | fi |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 9860 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 9861 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 9862 | echo "${ECHO_T}$ac_header_compiler" >&6 |
Benny Prijono | 27c9872 | 2007-04-09 21:28:15 +0000 | [diff] [blame] | 9863 | |
| 9864 | # Is the header present? |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 9865 | echo "$as_me:$LINENO: checking sys/soundcard.h presence" >&5 |
| 9866 | echo $ECHO_N "checking sys/soundcard.h presence... $ECHO_C" >&6 |
Benny Prijono | 27c9872 | 2007-04-09 21:28:15 +0000 | [diff] [blame] | 9867 | cat >conftest.$ac_ext <<_ACEOF |
| 9868 | /* confdefs.h. */ |
| 9869 | _ACEOF |
| 9870 | cat confdefs.h >>conftest.$ac_ext |
| 9871 | cat >>conftest.$ac_ext <<_ACEOF |
| 9872 | /* end confdefs.h. */ |
| 9873 | #include <sys/soundcard.h> |
| 9874 | _ACEOF |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 9875 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 9876 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
Benny Prijono | 27c9872 | 2007-04-09 21:28:15 +0000 | [diff] [blame] | 9877 | ac_status=$? |
| 9878 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9879 | rm -f conftest.er1 |
| 9880 | cat conftest.err >&5 |
| 9881 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 9882 | (exit $ac_status); } >/dev/null; then |
| 9883 | if test -s conftest.err; then |
| 9884 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 9885 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 9886 | else |
| 9887 | ac_cpp_err= |
| 9888 | fi |
| 9889 | else |
| 9890 | ac_cpp_err=yes |
| 9891 | fi |
| 9892 | if test -z "$ac_cpp_err"; then |
Benny Prijono | 27c9872 | 2007-04-09 21:28:15 +0000 | [diff] [blame] | 9893 | ac_header_preproc=yes |
| 9894 | else |
| 9895 | echo "$as_me: failed program was:" >&5 |
| 9896 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9897 | |
| 9898 | ac_header_preproc=no |
| 9899 | fi |
| 9900 | rm -f conftest.err conftest.$ac_ext |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 9901 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 9902 | echo "${ECHO_T}$ac_header_preproc" >&6 |
Benny Prijono | 27c9872 | 2007-04-09 21:28:15 +0000 | [diff] [blame] | 9903 | |
| 9904 | # So? What about this header? |
| 9905 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 9906 | yes:no: ) |
| 9907 | { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 9908 | echo "$as_me: WARNING: sys/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 9909 | { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: proceeding with the compiler's result" >&5 |
| 9910 | echo "$as_me: WARNING: sys/soundcard.h: proceeding with the compiler's result" >&2;} |
| 9911 | ac_header_preproc=yes |
| 9912 | ;; |
| 9913 | no:yes:* ) |
| 9914 | { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: present but cannot be compiled" >&5 |
| 9915 | echo "$as_me: WARNING: sys/soundcard.h: present but cannot be compiled" >&2;} |
| 9916 | { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: check for missing prerequisite headers?" >&5 |
| 9917 | echo "$as_me: WARNING: sys/soundcard.h: check for missing prerequisite headers?" >&2;} |
| 9918 | { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: see the Autoconf documentation" >&5 |
| 9919 | echo "$as_me: WARNING: sys/soundcard.h: see the Autoconf documentation" >&2;} |
| 9920 | { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 9921 | echo "$as_me: WARNING: sys/soundcard.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 9922 | { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: proceeding with the preprocessor's result" >&5 |
| 9923 | echo "$as_me: WARNING: sys/soundcard.h: proceeding with the preprocessor's result" >&2;} |
| 9924 | { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: in the future, the compiler will take precedence" >&5 |
| 9925 | echo "$as_me: WARNING: sys/soundcard.h: in the future, the compiler will take precedence" >&2;} |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 9926 | ( |
| 9927 | cat <<\_ASBOX |
| 9928 | ## ------------------------------------ ## |
| 9929 | ## Report this to the pjproject lists. ## |
| 9930 | ## ------------------------------------ ## |
| 9931 | _ASBOX |
| 9932 | ) | |
| 9933 | sed "s/^/$as_me: WARNING: /" >&2 |
Benny Prijono | 27c9872 | 2007-04-09 21:28:15 +0000 | [diff] [blame] | 9934 | ;; |
| 9935 | esac |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 9936 | echo "$as_me:$LINENO: checking for sys/soundcard.h" >&5 |
| 9937 | echo $ECHO_N "checking for sys/soundcard.h... $ECHO_C" >&6 |
Benny Prijono | 27c9872 | 2007-04-09 21:28:15 +0000 | [diff] [blame] | 9938 | if test "${ac_cv_header_sys_soundcard_h+set}" = set; then |
| 9939 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9940 | else |
| 9941 | ac_cv_header_sys_soundcard_h=$ac_header_preproc |
| 9942 | fi |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 9943 | echo "$as_me:$LINENO: result: $ac_cv_header_sys_soundcard_h" >&5 |
| 9944 | echo "${ECHO_T}$ac_cv_header_sys_soundcard_h" >&6 |
Benny Prijono | 27c9872 | 2007-04-09 21:28:15 +0000 | [diff] [blame] | 9945 | |
| 9946 | fi |
| 9947 | if test $ac_cv_header_sys_soundcard_h = yes; then |
| 9948 | ac_pa_cflags="$ac_pa_cflags -DHAVE_SYS_SOUNDCARD_H" |
| 9949 | fi |
| 9950 | |
| 9951 | |
| 9952 | if test "${ac_cv_header_linux_soundcard_h+set}" = set; then |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 9953 | echo "$as_me:$LINENO: checking for linux/soundcard.h" >&5 |
| 9954 | echo $ECHO_N "checking for linux/soundcard.h... $ECHO_C" >&6 |
Benny Prijono | 27c9872 | 2007-04-09 21:28:15 +0000 | [diff] [blame] | 9955 | if test "${ac_cv_header_linux_soundcard_h+set}" = set; then |
| 9956 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9957 | fi |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 9958 | echo "$as_me:$LINENO: result: $ac_cv_header_linux_soundcard_h" >&5 |
| 9959 | echo "${ECHO_T}$ac_cv_header_linux_soundcard_h" >&6 |
Benny Prijono | 27c9872 | 2007-04-09 21:28:15 +0000 | [diff] [blame] | 9960 | else |
| 9961 | # Is the header compilable? |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 9962 | echo "$as_me:$LINENO: checking linux/soundcard.h usability" >&5 |
| 9963 | echo $ECHO_N "checking linux/soundcard.h usability... $ECHO_C" >&6 |
Benny Prijono | 27c9872 | 2007-04-09 21:28:15 +0000 | [diff] [blame] | 9964 | cat >conftest.$ac_ext <<_ACEOF |
| 9965 | /* confdefs.h. */ |
| 9966 | _ACEOF |
| 9967 | cat confdefs.h >>conftest.$ac_ext |
| 9968 | cat >>conftest.$ac_ext <<_ACEOF |
| 9969 | /* end confdefs.h. */ |
| 9970 | $ac_includes_default |
| 9971 | #include <linux/soundcard.h> |
| 9972 | _ACEOF |
| 9973 | rm -f conftest.$ac_objext |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 9974 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 9975 | (eval $ac_compile) 2>conftest.er1 |
Benny Prijono | 27c9872 | 2007-04-09 21:28:15 +0000 | [diff] [blame] | 9976 | ac_status=$? |
| 9977 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9978 | rm -f conftest.er1 |
| 9979 | cat conftest.err >&5 |
| 9980 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 9981 | (exit $ac_status); } && |
| 9982 | { ac_try='test -z "$ac_c_werror_flag" |
| 9983 | || test ! -s conftest.err' |
| 9984 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9985 | (eval $ac_try) 2>&5 |
| 9986 | ac_status=$? |
| 9987 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9988 | (exit $ac_status); }; } && |
| 9989 | { ac_try='test -s conftest.$ac_objext' |
| 9990 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9991 | (eval $ac_try) 2>&5 |
| 9992 | ac_status=$? |
| 9993 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9994 | (exit $ac_status); }; }; then |
Benny Prijono | 27c9872 | 2007-04-09 21:28:15 +0000 | [diff] [blame] | 9995 | ac_header_compiler=yes |
| 9996 | else |
| 9997 | echo "$as_me: failed program was:" >&5 |
| 9998 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9999 | |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 10000 | ac_header_compiler=no |
Benny Prijono | 27c9872 | 2007-04-09 21:28:15 +0000 | [diff] [blame] | 10001 | fi |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 10002 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 10003 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 10004 | echo "${ECHO_T}$ac_header_compiler" >&6 |
Benny Prijono | 27c9872 | 2007-04-09 21:28:15 +0000 | [diff] [blame] | 10005 | |
| 10006 | # Is the header present? |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 10007 | echo "$as_me:$LINENO: checking linux/soundcard.h presence" >&5 |
| 10008 | echo $ECHO_N "checking linux/soundcard.h presence... $ECHO_C" >&6 |
Benny Prijono | 27c9872 | 2007-04-09 21:28:15 +0000 | [diff] [blame] | 10009 | cat >conftest.$ac_ext <<_ACEOF |
| 10010 | /* confdefs.h. */ |
| 10011 | _ACEOF |
| 10012 | cat confdefs.h >>conftest.$ac_ext |
| 10013 | cat >>conftest.$ac_ext <<_ACEOF |
| 10014 | /* end confdefs.h. */ |
| 10015 | #include <linux/soundcard.h> |
| 10016 | _ACEOF |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 10017 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 10018 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
Benny Prijono | 27c9872 | 2007-04-09 21:28:15 +0000 | [diff] [blame] | 10019 | ac_status=$? |
| 10020 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10021 | rm -f conftest.er1 |
| 10022 | cat conftest.err >&5 |
| 10023 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 10024 | (exit $ac_status); } >/dev/null; then |
| 10025 | if test -s conftest.err; then |
| 10026 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 10027 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 10028 | else |
| 10029 | ac_cpp_err= |
| 10030 | fi |
| 10031 | else |
| 10032 | ac_cpp_err=yes |
| 10033 | fi |
| 10034 | if test -z "$ac_cpp_err"; then |
Benny Prijono | 27c9872 | 2007-04-09 21:28:15 +0000 | [diff] [blame] | 10035 | ac_header_preproc=yes |
| 10036 | else |
| 10037 | echo "$as_me: failed program was:" >&5 |
| 10038 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10039 | |
| 10040 | ac_header_preproc=no |
| 10041 | fi |
| 10042 | rm -f conftest.err conftest.$ac_ext |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 10043 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 10044 | echo "${ECHO_T}$ac_header_preproc" >&6 |
Benny Prijono | 27c9872 | 2007-04-09 21:28:15 +0000 | [diff] [blame] | 10045 | |
| 10046 | # So? What about this header? |
| 10047 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 10048 | yes:no: ) |
| 10049 | { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 10050 | echo "$as_me: WARNING: linux/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 10051 | { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: proceeding with the compiler's result" >&5 |
| 10052 | echo "$as_me: WARNING: linux/soundcard.h: proceeding with the compiler's result" >&2;} |
| 10053 | ac_header_preproc=yes |
| 10054 | ;; |
| 10055 | no:yes:* ) |
| 10056 | { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: present but cannot be compiled" >&5 |
| 10057 | echo "$as_me: WARNING: linux/soundcard.h: present but cannot be compiled" >&2;} |
| 10058 | { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: check for missing prerequisite headers?" >&5 |
| 10059 | echo "$as_me: WARNING: linux/soundcard.h: check for missing prerequisite headers?" >&2;} |
| 10060 | { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: see the Autoconf documentation" >&5 |
| 10061 | echo "$as_me: WARNING: linux/soundcard.h: see the Autoconf documentation" >&2;} |
| 10062 | { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 10063 | echo "$as_me: WARNING: linux/soundcard.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 10064 | { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: proceeding with the preprocessor's result" >&5 |
| 10065 | echo "$as_me: WARNING: linux/soundcard.h: proceeding with the preprocessor's result" >&2;} |
| 10066 | { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: in the future, the compiler will take precedence" >&5 |
| 10067 | echo "$as_me: WARNING: linux/soundcard.h: in the future, the compiler will take precedence" >&2;} |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 10068 | ( |
| 10069 | cat <<\_ASBOX |
| 10070 | ## ------------------------------------ ## |
| 10071 | ## Report this to the pjproject lists. ## |
| 10072 | ## ------------------------------------ ## |
| 10073 | _ASBOX |
| 10074 | ) | |
| 10075 | sed "s/^/$as_me: WARNING: /" >&2 |
Benny Prijono | 27c9872 | 2007-04-09 21:28:15 +0000 | [diff] [blame] | 10076 | ;; |
| 10077 | esac |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 10078 | echo "$as_me:$LINENO: checking for linux/soundcard.h" >&5 |
| 10079 | echo $ECHO_N "checking for linux/soundcard.h... $ECHO_C" >&6 |
Benny Prijono | 27c9872 | 2007-04-09 21:28:15 +0000 | [diff] [blame] | 10080 | if test "${ac_cv_header_linux_soundcard_h+set}" = set; then |
| 10081 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10082 | else |
| 10083 | ac_cv_header_linux_soundcard_h=$ac_header_preproc |
| 10084 | fi |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 10085 | echo "$as_me:$LINENO: result: $ac_cv_header_linux_soundcard_h" >&5 |
| 10086 | echo "${ECHO_T}$ac_cv_header_linux_soundcard_h" >&6 |
Benny Prijono | 27c9872 | 2007-04-09 21:28:15 +0000 | [diff] [blame] | 10087 | |
| 10088 | fi |
| 10089 | if test $ac_cv_header_linux_soundcard_h = yes; then |
| 10090 | ac_pa_cflags="$ac_pa_cflags -DHAVE_LINUX_SOUNDCARD_H" |
| 10091 | fi |
| 10092 | |
| 10093 | |
| 10094 | if test "${ac_cv_header_machine_soundcard_h+set}" = set; then |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 10095 | echo "$as_me:$LINENO: checking for machine/soundcard.h" >&5 |
| 10096 | echo $ECHO_N "checking for machine/soundcard.h... $ECHO_C" >&6 |
Benny Prijono | 27c9872 | 2007-04-09 21:28:15 +0000 | [diff] [blame] | 10097 | if test "${ac_cv_header_machine_soundcard_h+set}" = set; then |
| 10098 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10099 | fi |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 10100 | echo "$as_me:$LINENO: result: $ac_cv_header_machine_soundcard_h" >&5 |
| 10101 | echo "${ECHO_T}$ac_cv_header_machine_soundcard_h" >&6 |
Benny Prijono | 27c9872 | 2007-04-09 21:28:15 +0000 | [diff] [blame] | 10102 | else |
| 10103 | # Is the header compilable? |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 10104 | echo "$as_me:$LINENO: checking machine/soundcard.h usability" >&5 |
| 10105 | echo $ECHO_N "checking machine/soundcard.h usability... $ECHO_C" >&6 |
Benny Prijono | 27c9872 | 2007-04-09 21:28:15 +0000 | [diff] [blame] | 10106 | cat >conftest.$ac_ext <<_ACEOF |
| 10107 | /* confdefs.h. */ |
| 10108 | _ACEOF |
| 10109 | cat confdefs.h >>conftest.$ac_ext |
| 10110 | cat >>conftest.$ac_ext <<_ACEOF |
| 10111 | /* end confdefs.h. */ |
| 10112 | $ac_includes_default |
| 10113 | #include <machine/soundcard.h> |
| 10114 | _ACEOF |
| 10115 | rm -f conftest.$ac_objext |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 10116 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 10117 | (eval $ac_compile) 2>conftest.er1 |
Benny Prijono | 27c9872 | 2007-04-09 21:28:15 +0000 | [diff] [blame] | 10118 | ac_status=$? |
| 10119 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10120 | rm -f conftest.er1 |
| 10121 | cat conftest.err >&5 |
| 10122 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 10123 | (exit $ac_status); } && |
| 10124 | { ac_try='test -z "$ac_c_werror_flag" |
| 10125 | || test ! -s conftest.err' |
| 10126 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10127 | (eval $ac_try) 2>&5 |
| 10128 | ac_status=$? |
| 10129 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10130 | (exit $ac_status); }; } && |
| 10131 | { ac_try='test -s conftest.$ac_objext' |
| 10132 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10133 | (eval $ac_try) 2>&5 |
| 10134 | ac_status=$? |
| 10135 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10136 | (exit $ac_status); }; }; then |
Benny Prijono | 27c9872 | 2007-04-09 21:28:15 +0000 | [diff] [blame] | 10137 | ac_header_compiler=yes |
| 10138 | else |
| 10139 | echo "$as_me: failed program was:" >&5 |
| 10140 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10141 | |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 10142 | ac_header_compiler=no |
Benny Prijono | 27c9872 | 2007-04-09 21:28:15 +0000 | [diff] [blame] | 10143 | fi |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 10144 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 10145 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 10146 | echo "${ECHO_T}$ac_header_compiler" >&6 |
Benny Prijono | 27c9872 | 2007-04-09 21:28:15 +0000 | [diff] [blame] | 10147 | |
| 10148 | # Is the header present? |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 10149 | echo "$as_me:$LINENO: checking machine/soundcard.h presence" >&5 |
| 10150 | echo $ECHO_N "checking machine/soundcard.h presence... $ECHO_C" >&6 |
Benny Prijono | 27c9872 | 2007-04-09 21:28:15 +0000 | [diff] [blame] | 10151 | cat >conftest.$ac_ext <<_ACEOF |
| 10152 | /* confdefs.h. */ |
| 10153 | _ACEOF |
| 10154 | cat confdefs.h >>conftest.$ac_ext |
| 10155 | cat >>conftest.$ac_ext <<_ACEOF |
| 10156 | /* end confdefs.h. */ |
| 10157 | #include <machine/soundcard.h> |
| 10158 | _ACEOF |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 10159 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 10160 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
Benny Prijono | 27c9872 | 2007-04-09 21:28:15 +0000 | [diff] [blame] | 10161 | ac_status=$? |
| 10162 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10163 | rm -f conftest.er1 |
| 10164 | cat conftest.err >&5 |
| 10165 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 10166 | (exit $ac_status); } >/dev/null; then |
| 10167 | if test -s conftest.err; then |
| 10168 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 10169 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 10170 | else |
| 10171 | ac_cpp_err= |
| 10172 | fi |
| 10173 | else |
| 10174 | ac_cpp_err=yes |
| 10175 | fi |
| 10176 | if test -z "$ac_cpp_err"; then |
Benny Prijono | 27c9872 | 2007-04-09 21:28:15 +0000 | [diff] [blame] | 10177 | ac_header_preproc=yes |
| 10178 | else |
| 10179 | echo "$as_me: failed program was:" >&5 |
| 10180 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10181 | |
| 10182 | ac_header_preproc=no |
| 10183 | fi |
| 10184 | rm -f conftest.err conftest.$ac_ext |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 10185 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 10186 | echo "${ECHO_T}$ac_header_preproc" >&6 |
Benny Prijono | 27c9872 | 2007-04-09 21:28:15 +0000 | [diff] [blame] | 10187 | |
| 10188 | # So? What about this header? |
| 10189 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 10190 | yes:no: ) |
| 10191 | { echo "$as_me:$LINENO: WARNING: machine/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 10192 | echo "$as_me: WARNING: machine/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 10193 | { echo "$as_me:$LINENO: WARNING: machine/soundcard.h: proceeding with the compiler's result" >&5 |
| 10194 | echo "$as_me: WARNING: machine/soundcard.h: proceeding with the compiler's result" >&2;} |
| 10195 | ac_header_preproc=yes |
| 10196 | ;; |
| 10197 | no:yes:* ) |
| 10198 | { echo "$as_me:$LINENO: WARNING: machine/soundcard.h: present but cannot be compiled" >&5 |
| 10199 | echo "$as_me: WARNING: machine/soundcard.h: present but cannot be compiled" >&2;} |
| 10200 | { echo "$as_me:$LINENO: WARNING: machine/soundcard.h: check for missing prerequisite headers?" >&5 |
| 10201 | echo "$as_me: WARNING: machine/soundcard.h: check for missing prerequisite headers?" >&2;} |
| 10202 | { echo "$as_me:$LINENO: WARNING: machine/soundcard.h: see the Autoconf documentation" >&5 |
| 10203 | echo "$as_me: WARNING: machine/soundcard.h: see the Autoconf documentation" >&2;} |
| 10204 | { echo "$as_me:$LINENO: WARNING: machine/soundcard.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 10205 | echo "$as_me: WARNING: machine/soundcard.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 10206 | { echo "$as_me:$LINENO: WARNING: machine/soundcard.h: proceeding with the preprocessor's result" >&5 |
| 10207 | echo "$as_me: WARNING: machine/soundcard.h: proceeding with the preprocessor's result" >&2;} |
| 10208 | { echo "$as_me:$LINENO: WARNING: machine/soundcard.h: in the future, the compiler will take precedence" >&5 |
| 10209 | echo "$as_me: WARNING: machine/soundcard.h: in the future, the compiler will take precedence" >&2;} |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 10210 | ( |
| 10211 | cat <<\_ASBOX |
| 10212 | ## ------------------------------------ ## |
| 10213 | ## Report this to the pjproject lists. ## |
| 10214 | ## ------------------------------------ ## |
| 10215 | _ASBOX |
| 10216 | ) | |
| 10217 | sed "s/^/$as_me: WARNING: /" >&2 |
Benny Prijono | 27c9872 | 2007-04-09 21:28:15 +0000 | [diff] [blame] | 10218 | ;; |
| 10219 | esac |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 10220 | echo "$as_me:$LINENO: checking for machine/soundcard.h" >&5 |
| 10221 | echo $ECHO_N "checking for machine/soundcard.h... $ECHO_C" >&6 |
Benny Prijono | 27c9872 | 2007-04-09 21:28:15 +0000 | [diff] [blame] | 10222 | if test "${ac_cv_header_machine_soundcard_h+set}" = set; then |
| 10223 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10224 | else |
| 10225 | ac_cv_header_machine_soundcard_h=$ac_header_preproc |
| 10226 | fi |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 10227 | echo "$as_me:$LINENO: result: $ac_cv_header_machine_soundcard_h" >&5 |
| 10228 | echo "${ECHO_T}$ac_cv_header_machine_soundcard_h" >&6 |
Benny Prijono | 27c9872 | 2007-04-09 21:28:15 +0000 | [diff] [blame] | 10229 | |
| 10230 | fi |
| 10231 | if test $ac_cv_header_machine_soundcard_h = yes; then |
| 10232 | ac_pa_cflags="$ac_pa_cflags -DHAVE_MACHINE_SOUNDCARD_H" |
| 10233 | fi |
| 10234 | |
| 10235 | |
| 10236 | |
Benny Prijono | 3e09167 | 2008-01-09 15:43:02 +0000 | [diff] [blame] | 10237 | if test "x$ac_cv_c_bigendian" = "xyes"; then |
| 10238 | ac_pa_cflags="$ac_pa_cflags -DPA_BIG_ENDIAN" |
| 10239 | else |
| 10240 | ac_pa_cflags="$ac_pa_cflags -DPA_LITTLE_ENDIAN" |
| 10241 | fi |
| 10242 | |
Benny Prijono | 1d97162 | 2006-09-10 22:27:40 +0000 | [diff] [blame] | 10243 | if test "$enable_sound" = "no"; then |
| 10244 | true; |
| 10245 | else |
| 10246 | case $target in |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame] | 10247 | *darwin*) |
Benny Prijono | 39ae2da | 2006-10-13 17:57:42 +0000 | [diff] [blame] | 10248 | LIBS="$LIBS -framework CoreAudio -framework CoreServices -framework AudioUnit -framework AudioToolbox" |
| 10249 | if test "`uname -r`" = "6.8"; then |
Benny Prijono | 27c9872 | 2007-04-09 21:28:15 +0000 | [diff] [blame] | 10250 | #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] | 10251 | #AC_MSG_RESULT([Setting additional PortAudio CFLAGS.. -DPA_OLD_CORE_AUDIO -DMOSX_USE_NON_ATOMIC_FLAG_BITS]) |
| 10252 | ac_pjmedia_snd=pa_old_darwinos |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 10253 | echo "$as_me:$LINENO: result: Checking sound device backend... old coreaudio" >&5 |
| 10254 | echo "${ECHO_T}Checking sound device backend... old coreaudio" >&6 |
Benny Prijono | 39ae2da | 2006-10-13 17:57:42 +0000 | [diff] [blame] | 10255 | else |
| 10256 | ac_pjmedia_snd=pa_darwinos |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 10257 | echo "$as_me:$LINENO: result: Checking sound device backend... coreaudio" >&5 |
| 10258 | echo "${ECHO_T}Checking sound device backend... coreaudio" >&6 |
Benny Prijono | 39ae2da | 2006-10-13 17:57:42 +0000 | [diff] [blame] | 10259 | fi |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame] | 10260 | ;; |
| 10261 | *cygwin* | *mingw*) |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 10262 | ac_pjmedia_snd=pa_win32 |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 10263 | echo "$as_me:$LINENO: result: Checking sound device backend... win32 sound" >&5 |
| 10264 | echo "${ECHO_T}Checking sound device backend... win32 sound" >&6 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 10265 | ;; |
| 10266 | *rtems*) |
| 10267 | ac_pjmedia_snd=null |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 10268 | echo "$as_me:$LINENO: result: Checking sound device backend... null sound" >&5 |
| 10269 | echo "${ECHO_T}Checking sound device backend... null sound" >&6 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 10270 | ;; |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 10271 | *) |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 10272 | ac_pjmedia_snd=pa_unix |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10273 | if test "${ac_cv_header_alsa_version_h+set}" = set; then |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 10274 | echo "$as_me:$LINENO: checking for alsa/version.h" >&5 |
| 10275 | echo $ECHO_N "checking for alsa/version.h... $ECHO_C" >&6 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 10276 | if test "${ac_cv_header_alsa_version_h+set}" = set; then |
| 10277 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10278 | fi |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 10279 | echo "$as_me:$LINENO: result: $ac_cv_header_alsa_version_h" >&5 |
| 10280 | echo "${ECHO_T}$ac_cv_header_alsa_version_h" >&6 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 10281 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10282 | # Is the header compilable? |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 10283 | echo "$as_me:$LINENO: checking alsa/version.h usability" >&5 |
| 10284 | echo $ECHO_N "checking alsa/version.h usability... $ECHO_C" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10285 | cat >conftest.$ac_ext <<_ACEOF |
| 10286 | /* confdefs.h. */ |
| 10287 | _ACEOF |
| 10288 | cat confdefs.h >>conftest.$ac_ext |
| 10289 | cat >>conftest.$ac_ext <<_ACEOF |
| 10290 | /* end confdefs.h. */ |
| 10291 | $ac_includes_default |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 10292 | #include <alsa/version.h> |
| 10293 | _ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10294 | rm -f conftest.$ac_objext |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 10295 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 10296 | (eval $ac_compile) 2>conftest.er1 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 10297 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10298 | grep -v '^ *+' conftest.er1 >conftest.err |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 10299 | rm -f conftest.er1 |
| 10300 | cat conftest.err >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10301 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 10302 | (exit $ac_status); } && |
| 10303 | { ac_try='test -z "$ac_c_werror_flag" |
| 10304 | || test ! -s conftest.err' |
| 10305 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10306 | (eval $ac_try) 2>&5 |
| 10307 | ac_status=$? |
| 10308 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10309 | (exit $ac_status); }; } && |
| 10310 | { ac_try='test -s conftest.$ac_objext' |
| 10311 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10312 | (eval $ac_try) 2>&5 |
| 10313 | ac_status=$? |
| 10314 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10315 | (exit $ac_status); }; }; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10316 | ac_header_compiler=yes |
| 10317 | else |
| 10318 | echo "$as_me: failed program was:" >&5 |
| 10319 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10320 | |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 10321 | ac_header_compiler=no |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10322 | fi |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 10323 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 10324 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 10325 | echo "${ECHO_T}$ac_header_compiler" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10326 | |
| 10327 | # Is the header present? |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 10328 | echo "$as_me:$LINENO: checking alsa/version.h presence" >&5 |
| 10329 | echo $ECHO_N "checking alsa/version.h presence... $ECHO_C" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10330 | cat >conftest.$ac_ext <<_ACEOF |
| 10331 | /* confdefs.h. */ |
| 10332 | _ACEOF |
| 10333 | cat confdefs.h >>conftest.$ac_ext |
| 10334 | cat >>conftest.$ac_ext <<_ACEOF |
| 10335 | /* end confdefs.h. */ |
| 10336 | #include <alsa/version.h> |
| 10337 | _ACEOF |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 10338 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 10339 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10340 | ac_status=$? |
| 10341 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10342 | rm -f conftest.er1 |
| 10343 | cat conftest.err >&5 |
| 10344 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 10345 | (exit $ac_status); } >/dev/null; then |
| 10346 | if test -s conftest.err; then |
| 10347 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 10348 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 10349 | else |
| 10350 | ac_cpp_err= |
| 10351 | fi |
| 10352 | else |
| 10353 | ac_cpp_err=yes |
| 10354 | fi |
| 10355 | if test -z "$ac_cpp_err"; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10356 | ac_header_preproc=yes |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 10357 | else |
| 10358 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10359 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10360 | |
| 10361 | ac_header_preproc=no |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 10362 | fi |
| 10363 | rm -f conftest.err conftest.$ac_ext |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 10364 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 10365 | echo "${ECHO_T}$ac_header_preproc" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10366 | |
| 10367 | # So? What about this header? |
| 10368 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 10369 | yes:no: ) |
| 10370 | { echo "$as_me:$LINENO: WARNING: alsa/version.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 10371 | echo "$as_me: WARNING: alsa/version.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 10372 | { echo "$as_me:$LINENO: WARNING: alsa/version.h: proceeding with the compiler's result" >&5 |
| 10373 | echo "$as_me: WARNING: alsa/version.h: proceeding with the compiler's result" >&2;} |
| 10374 | ac_header_preproc=yes |
| 10375 | ;; |
| 10376 | no:yes:* ) |
| 10377 | { echo "$as_me:$LINENO: WARNING: alsa/version.h: present but cannot be compiled" >&5 |
| 10378 | echo "$as_me: WARNING: alsa/version.h: present but cannot be compiled" >&2;} |
| 10379 | { echo "$as_me:$LINENO: WARNING: alsa/version.h: check for missing prerequisite headers?" >&5 |
| 10380 | echo "$as_me: WARNING: alsa/version.h: check for missing prerequisite headers?" >&2;} |
| 10381 | { echo "$as_me:$LINENO: WARNING: alsa/version.h: see the Autoconf documentation" >&5 |
| 10382 | echo "$as_me: WARNING: alsa/version.h: see the Autoconf documentation" >&2;} |
| 10383 | { echo "$as_me:$LINENO: WARNING: alsa/version.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 10384 | echo "$as_me: WARNING: alsa/version.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 10385 | { echo "$as_me:$LINENO: WARNING: alsa/version.h: proceeding with the preprocessor's result" >&5 |
| 10386 | echo "$as_me: WARNING: alsa/version.h: proceeding with the preprocessor's result" >&2;} |
| 10387 | { echo "$as_me:$LINENO: WARNING: alsa/version.h: in the future, the compiler will take precedence" >&5 |
| 10388 | echo "$as_me: WARNING: alsa/version.h: in the future, the compiler will take precedence" >&2;} |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 10389 | ( |
| 10390 | cat <<\_ASBOX |
| 10391 | ## ------------------------------------ ## |
| 10392 | ## Report this to the pjproject lists. ## |
| 10393 | ## ------------------------------------ ## |
| 10394 | _ASBOX |
| 10395 | ) | |
| 10396 | sed "s/^/$as_me: WARNING: /" >&2 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10397 | ;; |
| 10398 | esac |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 10399 | echo "$as_me:$LINENO: checking for alsa/version.h" >&5 |
| 10400 | echo $ECHO_N "checking for alsa/version.h... $ECHO_C" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10401 | if test "${ac_cv_header_alsa_version_h+set}" = set; then |
| 10402 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10403 | else |
| 10404 | ac_cv_header_alsa_version_h=$ac_header_preproc |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 10405 | fi |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 10406 | echo "$as_me:$LINENO: result: $ac_cv_header_alsa_version_h" >&5 |
| 10407 | echo "${ECHO_T}$ac_cv_header_alsa_version_h" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10408 | |
| 10409 | fi |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 10410 | if test $ac_cv_header_alsa_version_h = yes; then |
| 10411 | ac_pa_use_alsa=1 |
| 10412 | |
| 10413 | LIBS="$LIBS -lasound" |
| 10414 | |
| 10415 | else |
| 10416 | ac_pa_use_alsa=0 |
| 10417 | |
| 10418 | fi |
| 10419 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10420 | |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 10421 | echo "$as_me:$LINENO: result: Checking sound device backend... unix" >&5 |
| 10422 | echo "${ECHO_T}Checking sound device backend... unix" >&6 |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 10423 | |
| 10424 | ac_pa_use_oss=1 |
| 10425 | |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 10426 | # Check whether --enable-oss or --disable-oss was given. |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 10427 | if test "${enable_oss+set}" = set; then |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 10428 | enableval="$enable_oss" |
| 10429 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 10430 | if test "$enable_oss" = "no"; then |
| 10431 | ac_pa_use_oss=0 |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 10432 | echo "$as_me:$LINENO: result: Checking if OSS audio is disabled... yes" >&5 |
| 10433 | echo "${ECHO_T}Checking if OSS audio is disabled... yes" >&6 |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 10434 | fi |
| 10435 | |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 10436 | fi; |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 10437 | ;; |
Benny Prijono | 1d97162 | 2006-09-10 22:27:40 +0000 | [diff] [blame] | 10438 | esac |
| 10439 | fi |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 10440 | |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 10441 | # Check whether --enable-ext_sound or --disable-ext_sound was given. |
Benny Prijono | ebb2c33 | 2008-07-28 23:40:58 +0000 | [diff] [blame] | 10442 | if test "${enable_ext_sound+set}" = set; then |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 10443 | enableval="$enable_ext_sound" |
| 10444 | if test "$enable_ext_sound" = "yes"; then |
Benny Prijono | ebb2c33 | 2008-07-28 23:40:58 +0000 | [diff] [blame] | 10445 | ac_pjmedia_snd=external |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 10446 | echo "$as_me:$LINENO: result: Checking if external sound is set... yes" >&5 |
| 10447 | echo "${ECHO_T}Checking if external sound is set... yes" >&6 |
Benny Prijono | ebb2c33 | 2008-07-28 23:40:58 +0000 | [diff] [blame] | 10448 | fi |
| 10449 | |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 10450 | fi; |
Benny Prijono | ebb2c33 | 2008-07-28 23:40:58 +0000 | [diff] [blame] | 10451 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10452 | |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 10453 | # Check whether --enable-small-filter or --disable-small-filter was given. |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 10454 | if test "${enable_small_filter+set}" = set; then |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 10455 | enableval="$enable_small_filter" |
| 10456 | if test "$enable_small_filter" = "no"; then |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 10457 | ac_no_small_filter='-DPJMEDIA_HAS_SMALL_FILTER=0' |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 10458 | echo "$as_me:$LINENO: result: Checking if small filter is disabled... yes" >&5 |
| 10459 | echo "${ECHO_T}Checking if small filter is disabled... yes" >&6 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 10460 | fi |
| 10461 | else |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 10462 | echo "$as_me:$LINENO: result: Checking if small filter is disabled... no" >&5 |
| 10463 | echo "${ECHO_T}Checking if small filter is disabled... no" >&6 |
| 10464 | fi; |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 10465 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10466 | |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 10467 | # Check whether --enable-large-filter or --disable-large-filter was given. |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 10468 | if test "${enable_large_filter+set}" = set; then |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 10469 | enableval="$enable_large_filter" |
| 10470 | if test "$enable_large_filter" = "no"; then |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 10471 | ac_no_large_filter='-DPJMEDIA_HAS_LARGE_FILTER=0' |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 10472 | echo "$as_me:$LINENO: result: Checking if large filter is disabled... yes" >&5 |
| 10473 | echo "${ECHO_T}Checking if large filter is disabled... yes" >&6 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 10474 | fi |
| 10475 | else |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 10476 | echo "$as_me:$LINENO: result: Checking if large filter is disabled... no" >&5 |
| 10477 | echo "${ECHO_T}Checking if large filter is disabled... no" >&6 |
| 10478 | fi; |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 10479 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10480 | |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 10481 | # Check whether --enable-speex-aec or --disable-speex-aec was given. |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 10482 | if test "${enable_speex_aec+set}" = set; then |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 10483 | enableval="$enable_speex_aec" |
| 10484 | if test "$enable_speex_aec" = "no"; then |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 10485 | ac_no_speex_aec='-DPJMEDIA_HAS_SPEEX_AEC=0' |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 10486 | echo "$as_me:$LINENO: result: Checking if Speex AEC is disabled...yes" >&5 |
| 10487 | echo "${ECHO_T}Checking if Speex AEC is disabled...yes" >&6 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 10488 | fi |
| 10489 | else |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 10490 | echo "$as_me:$LINENO: result: Checking if Speex AEC is disabled...no" >&5 |
| 10491 | echo "${ECHO_T}Checking if Speex AEC is disabled...no" >&6 |
| 10492 | fi; |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 10493 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10494 | |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 10495 | # Check whether --enable-g711-codec or --disable-g711-codec was given. |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 10496 | if test "${enable_g711_codec+set}" = set; then |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 10497 | enableval="$enable_g711_codec" |
| 10498 | if test "$enable_g711_codec" = "no"; then |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 10499 | ac_no_g711_codec=1 |
Benny Prijono | 06d1d0e | 2007-01-27 18:09:28 +0000 | [diff] [blame] | 10500 | cat >>confdefs.h <<\_ACEOF |
| 10501 | #define PJMEDIA_HAS_G711_CODEC 0 |
| 10502 | _ACEOF |
| 10503 | |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 10504 | echo "$as_me:$LINENO: result: Checking if G.711 codec is disabled...yes" >&5 |
| 10505 | echo "${ECHO_T}Checking if G.711 codec is disabled...yes" >&6 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 10506 | fi |
| 10507 | else |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 10508 | echo "$as_me:$LINENO: result: Checking if G.711 codec is disabled...no" >&5 |
| 10509 | echo "${ECHO_T}Checking if G.711 codec is disabled...no" >&6 |
| 10510 | fi; |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 10511 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10512 | |
| 10513 | |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 10514 | # Check whether --enable-l16-codec or --disable-l16-codec was given. |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 10515 | if test "${enable_l16_codec+set}" = set; then |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 10516 | enableval="$enable_l16_codec" |
| 10517 | if test "$enable_l16_codec" = "no"; then |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 10518 | ac_no_l16_codec=1 |
Benny Prijono | 06d1d0e | 2007-01-27 18:09:28 +0000 | [diff] [blame] | 10519 | cat >>confdefs.h <<\_ACEOF |
| 10520 | #define PJMEDIA_HAS_L16_CODEC 0 |
| 10521 | _ACEOF |
| 10522 | |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 10523 | echo "$as_me:$LINENO: result: Checking if L16 codecs are disabled...yes" >&5 |
| 10524 | echo "${ECHO_T}Checking if L16 codecs are disabled...yes" >&6 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 10525 | fi |
| 10526 | else |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 10527 | echo "$as_me:$LINENO: result: Checking if L16 codec is disabled...no" >&5 |
| 10528 | echo "${ECHO_T}Checking if L16 codec is disabled...no" >&6 |
| 10529 | fi; |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 10530 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10531 | |
| 10532 | |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 10533 | # Check whether --enable-gsm-codec or --disable-gsm-codec was given. |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 10534 | if test "${enable_gsm_codec+set}" = set; then |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 10535 | enableval="$enable_gsm_codec" |
| 10536 | if test "$enable_gsm_codec" = "no"; then |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 10537 | ac_no_gsm_codec=1 |
Benny Prijono | 06d1d0e | 2007-01-27 18:09:28 +0000 | [diff] [blame] | 10538 | cat >>confdefs.h <<\_ACEOF |
| 10539 | #define PJMEDIA_HAS_GSM_CODEC 0 |
| 10540 | _ACEOF |
| 10541 | |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 10542 | echo "$as_me:$LINENO: result: Checking if GSM codec is disabled...yes" >&5 |
| 10543 | echo "${ECHO_T}Checking if GSM codec is disabled...yes" >&6 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 10544 | fi |
| 10545 | else |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 10546 | echo "$as_me:$LINENO: result: Checking if GSM codec is disabled...no" >&5 |
| 10547 | echo "${ECHO_T}Checking if GSM codec is disabled...no" >&6 |
| 10548 | fi; |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 10549 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10550 | |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 10551 | # Check whether --enable-g722-codec or --disable-g722-codec was given. |
Benny Prijono | 71f657d | 2008-03-17 14:24:21 +0000 | [diff] [blame] | 10552 | if test "${enable_g722_codec+set}" = set; then |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 10553 | enableval="$enable_g722_codec" |
| 10554 | if test "$enable_g722_codec" = "no"; then |
Benny Prijono | 71f657d | 2008-03-17 14:24:21 +0000 | [diff] [blame] | 10555 | ac_no_g722_codec=1 |
| 10556 | cat >>confdefs.h <<\_ACEOF |
| 10557 | #define PJMEDIA_HAS_G722_CODEC 0 |
| 10558 | _ACEOF |
| 10559 | |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 10560 | echo "$as_me:$LINENO: result: Checking if G.722 codec is disabled...yes" >&5 |
| 10561 | echo "${ECHO_T}Checking if G.722 codec is disabled...yes" >&6 |
Benny Prijono | 71f657d | 2008-03-17 14:24:21 +0000 | [diff] [blame] | 10562 | fi |
| 10563 | else |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 10564 | echo "$as_me:$LINENO: result: Checking if G.722 codec is disabled...no" >&5 |
| 10565 | echo "${ECHO_T}Checking if G.722 codec is disabled...no" >&6 |
| 10566 | fi; |
Benny Prijono | 71f657d | 2008-03-17 14:24:21 +0000 | [diff] [blame] | 10567 | |
| 10568 | |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 10569 | # Check whether --enable-speex-codec or --disable-speex-codec was given. |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 10570 | if test "${enable_speex_codec+set}" = set; then |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 10571 | enableval="$enable_speex_codec" |
| 10572 | if test "$enable_speex_codec" = "no"; then |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 10573 | ac_no_speex_codec=1 |
Benny Prijono | 06d1d0e | 2007-01-27 18:09:28 +0000 | [diff] [blame] | 10574 | cat >>confdefs.h <<\_ACEOF |
| 10575 | #define PJMEDIA_HAS_SPEEX_CODEC 0 |
| 10576 | _ACEOF |
| 10577 | |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 10578 | echo "$as_me:$LINENO: result: Checking if Speex codec is disabled...yes" >&5 |
| 10579 | echo "${ECHO_T}Checking if Speex codec is disabled...yes" >&6 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 10580 | fi |
| 10581 | else |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 10582 | echo "$as_me:$LINENO: result: Checking if Speex codec is disabled...no" >&5 |
| 10583 | echo "${ECHO_T}Checking if Speex codec is disabled...no" >&6 |
| 10584 | fi; |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 10585 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10586 | |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 10587 | # Check whether --enable-ilbc-codec or --disable-ilbc-codec was given. |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 10588 | if test "${enable_ilbc_codec+set}" = set; then |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 10589 | enableval="$enable_ilbc_codec" |
| 10590 | if test "$enable_ilbc_codec" = "no"; then |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 10591 | ac_no_ilbc_codec=1 |
Benny Prijono | 06d1d0e | 2007-01-27 18:09:28 +0000 | [diff] [blame] | 10592 | cat >>confdefs.h <<\_ACEOF |
| 10593 | #define PJMEDIA_HAS_ILBC_CODEC 0 |
| 10594 | _ACEOF |
| 10595 | |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 10596 | echo "$as_me:$LINENO: result: Checking if iLBC codec is disabled...yes" >&5 |
| 10597 | echo "${ECHO_T}Checking if iLBC codec is disabled...yes" >&6 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 10598 | fi |
| 10599 | else |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 10600 | echo "$as_me:$LINENO: result: Checking if iLBC codec is disabled...no" >&5 |
| 10601 | echo "${ECHO_T}Checking if iLBC codec is disabled...no" >&6 |
| 10602 | fi; |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 10603 | |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 10604 | # Check whether --enable-libsamplerate or --disable-libsamplerate was given. |
Benny Prijono | 550a1a6 | 2007-10-16 08:54:00 +0000 | [diff] [blame] | 10605 | if test "${enable_libsamplerate+set}" = set; then |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 10606 | enableval="$enable_libsamplerate" |
| 10607 | |
| 10608 | echo "$as_me:$LINENO: checking for src_new in -lsamplerate" >&5 |
| 10609 | echo $ECHO_N "checking for src_new in -lsamplerate... $ECHO_C" >&6 |
Benny Prijono | 550a1a6 | 2007-10-16 08:54:00 +0000 | [diff] [blame] | 10610 | if test "${ac_cv_lib_samplerate_src_new+set}" = set; then |
| 10611 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10612 | else |
| 10613 | ac_check_lib_save_LIBS=$LIBS |
| 10614 | LIBS="-lsamplerate $LIBS" |
| 10615 | cat >conftest.$ac_ext <<_ACEOF |
| 10616 | /* confdefs.h. */ |
| 10617 | _ACEOF |
| 10618 | cat confdefs.h >>conftest.$ac_ext |
| 10619 | cat >>conftest.$ac_ext <<_ACEOF |
| 10620 | /* end confdefs.h. */ |
| 10621 | |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 10622 | /* Override any gcc2 internal prototype to avoid an error. */ |
Benny Prijono | 550a1a6 | 2007-10-16 08:54:00 +0000 | [diff] [blame] | 10623 | #ifdef __cplusplus |
| 10624 | extern "C" |
| 10625 | #endif |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 10626 | /* We use char because int might match the return type of a gcc2 |
| 10627 | builtin and then its argument prototype would still apply. */ |
Benny Prijono | 550a1a6 | 2007-10-16 08:54:00 +0000 | [diff] [blame] | 10628 | char src_new (); |
| 10629 | int |
| 10630 | main () |
| 10631 | { |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 10632 | src_new (); |
Benny Prijono | 550a1a6 | 2007-10-16 08:54:00 +0000 | [diff] [blame] | 10633 | ; |
| 10634 | return 0; |
| 10635 | } |
| 10636 | _ACEOF |
| 10637 | rm -f conftest.$ac_objext conftest$ac_exeext |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 10638 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 10639 | (eval $ac_link) 2>conftest.er1 |
Benny Prijono | 550a1a6 | 2007-10-16 08:54:00 +0000 | [diff] [blame] | 10640 | ac_status=$? |
| 10641 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10642 | rm -f conftest.er1 |
| 10643 | cat conftest.err >&5 |
| 10644 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 10645 | (exit $ac_status); } && |
| 10646 | { ac_try='test -z "$ac_c_werror_flag" |
| 10647 | || test ! -s conftest.err' |
| 10648 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10649 | (eval $ac_try) 2>&5 |
| 10650 | ac_status=$? |
| 10651 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10652 | (exit $ac_status); }; } && |
| 10653 | { ac_try='test -s conftest$ac_exeext' |
| 10654 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10655 | (eval $ac_try) 2>&5 |
| 10656 | ac_status=$? |
| 10657 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10658 | (exit $ac_status); }; }; then |
Benny Prijono | 550a1a6 | 2007-10-16 08:54:00 +0000 | [diff] [blame] | 10659 | ac_cv_lib_samplerate_src_new=yes |
| 10660 | else |
| 10661 | echo "$as_me: failed program was:" >&5 |
| 10662 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10663 | |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 10664 | ac_cv_lib_samplerate_src_new=no |
Benny Prijono | 550a1a6 | 2007-10-16 08:54:00 +0000 | [diff] [blame] | 10665 | fi |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 10666 | rm -f conftest.err conftest.$ac_objext \ |
Benny Prijono | 550a1a6 | 2007-10-16 08:54:00 +0000 | [diff] [blame] | 10667 | conftest$ac_exeext conftest.$ac_ext |
| 10668 | LIBS=$ac_check_lib_save_LIBS |
| 10669 | fi |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 10670 | echo "$as_me:$LINENO: result: $ac_cv_lib_samplerate_src_new" >&5 |
| 10671 | echo "${ECHO_T}$ac_cv_lib_samplerate_src_new" >&6 |
Benny Prijono | 550a1a6 | 2007-10-16 08:54:00 +0000 | [diff] [blame] | 10672 | if test $ac_cv_lib_samplerate_src_new = yes; then |
| 10673 | cat >>confdefs.h <<_ACEOF |
| 10674 | #define HAVE_LIBSAMPLERATE 1 |
| 10675 | _ACEOF |
| 10676 | |
| 10677 | LIBS="-lsamplerate $LIBS" |
| 10678 | |
| 10679 | fi |
| 10680 | |
| 10681 | else |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 10682 | echo "$as_me:$LINENO: result: Skipping libsamplerate detection" >&5 |
| 10683 | echo "${ECHO_T}Skipping libsamplerate detection" >&6 |
Benny Prijono | 550a1a6 | 2007-10-16 08:54:00 +0000 | [diff] [blame] | 10684 | |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 10685 | fi; |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 10686 | |
| 10687 | |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 10688 | # Check whether --enable-ipp or --disable-ipp was given. |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 10689 | if test "${enable_ipp+set}" = set; then |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 10690 | enableval="$enable_ipp" |
| 10691 | |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 10692 | else |
| 10693 | enable_ipp=no |
| 10694 | |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 10695 | fi; |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 10696 | |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 10697 | # Check whether --enable-ipp or --disable-ipp was given. |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 10698 | if test "${enable_ipp+set}" = set; then |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 10699 | enableval="$enable_ipp" |
| 10700 | |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 10701 | else |
| 10702 | with_ipp=no |
| 10703 | |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 10704 | fi; |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 10705 | |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 10706 | # Check whether --enable-ipp-samples or --disable-ipp-samples was given. |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 10707 | if test "${enable_ipp_samples+set}" = set; then |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 10708 | enableval="$enable_ipp_samples" |
| 10709 | |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 10710 | else |
| 10711 | with_ipp_samples=no |
| 10712 | |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 10713 | fi; |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 10714 | |
| 10715 | if test "x$enable_ipp" != "xno"; then |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 10716 | echo "$as_me:$LINENO: checking Intel IPP location" >&5 |
| 10717 | echo $ECHO_N "checking Intel IPP location... $ECHO_C" >&6 |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 10718 | |
| 10719 | if test "x$with_ipp" != "xno" -a "x$with_ipp" != "x"; then |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 10720 | echo "$as_me:$LINENO: result: $with_ipp" >&5 |
| 10721 | echo "${ECHO_T}$with_ipp" >&6 |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 10722 | IPPROOT=$with_ipp |
| 10723 | elif test "x$IPPROOT" = "x"; then |
| 10724 | if test -d /opt/intel/ipp; then |
| 10725 | IPPROOT=`ls -d /opt/intel/ipp/*/* | head -1` |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 10726 | echo "$as_me:$LINENO: result: autodetected in $IPPROOT" >&5 |
| 10727 | echo "${ECHO_T}autodetected in $IPPROOT" >&6 |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 10728 | fi |
| 10729 | else |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 10730 | echo "$as_me:$LINENO: result: $IPPROOT" >&5 |
| 10731 | echo "${ECHO_T}$IPPROOT" >&6 |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 10732 | fi |
| 10733 | |
| 10734 | if test x$IPPROOT = x; then |
| 10735 | { { 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 |
| 10736 | 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;} |
| 10737 | { (exit 1); exit 1; }; } |
| 10738 | elif test ! -d $IPPROOT; then |
| 10739 | { { echo "$as_me:$LINENO: error: not found" >&5 |
| 10740 | echo "$as_me: error: not found" >&2;} |
| 10741 | { (exit 1); exit 1; }; } |
| 10742 | elif test ! -d $IPPROOT/include; then |
| 10743 | { { echo "$as_me:$LINENO: error: directory doesn't seem to be valid" >&5 |
| 10744 | echo "$as_me: error: directory doesn't seem to be valid" >&2;} |
| 10745 | { (exit 1); exit 1; }; } |
| 10746 | else |
| 10747 | # IPP directory looks okay. |
| 10748 | # Remove trailing backslash |
| 10749 | IPPROOT=`echo $IPPROOT/ | sed 's/\/$//'` |
| 10750 | |
| 10751 | SAVED_CFLAGS="$CFLAGS" |
| 10752 | SAVED_LDFLAGS="$LDFLAGS" |
| 10753 | SAVED_LIBS="$LIBS" |
| 10754 | |
| 10755 | IPP_CFLAGS="-I$IPPROOT/include" |
| 10756 | IPP_LDFLAGS="-L$IPPROOT/sharedlib" |
| 10757 | IPP_LIBS="-lippsc -lipps -lippsr -lippcore -lguide" |
| 10758 | #IPP_LDFLAGS="-L$IPPROOT/sharedlib" |
| 10759 | #IPP_LIBS="-lippscmerged -lippsrmerged -lippsmerged -lippcore" |
| 10760 | |
| 10761 | CFLAGS="$CFLAGS $IPP_CFLAGS" |
| 10762 | LDFLAGS="$LDFLAGS $IPP_LDFLAGS" |
| 10763 | LIBS="$IPP_LIBS $LIBS" |
| 10764 | |
| 10765 | |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 10766 | echo "$as_me:$LINENO: checking Intel IPP usability" >&5 |
| 10767 | echo $ECHO_N "checking Intel IPP usability... $ECHO_C" >&6 |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 10768 | cat >conftest.$ac_ext <<_ACEOF |
| 10769 | /* confdefs.h. */ |
| 10770 | _ACEOF |
| 10771 | cat confdefs.h >>conftest.$ac_ext |
| 10772 | cat >>conftest.$ac_ext <<_ACEOF |
| 10773 | /* end confdefs.h. */ |
| 10774 | #include <ippcore.h> |
| 10775 | |
| 10776 | int |
| 10777 | main () |
| 10778 | { |
| 10779 | ippStaticInit(); |
| 10780 | ; |
| 10781 | return 0; |
| 10782 | } |
| 10783 | _ACEOF |
| 10784 | rm -f conftest.$ac_objext conftest$ac_exeext |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 10785 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 10786 | (eval $ac_link) 2>conftest.er1 |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 10787 | ac_status=$? |
| 10788 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10789 | rm -f conftest.er1 |
| 10790 | cat conftest.err >&5 |
| 10791 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 10792 | (exit $ac_status); } && |
| 10793 | { ac_try='test -z "$ac_c_werror_flag" |
| 10794 | || test ! -s conftest.err' |
| 10795 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10796 | (eval $ac_try) 2>&5 |
| 10797 | ac_status=$? |
| 10798 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10799 | (exit $ac_status); }; } && |
| 10800 | { ac_try='test -s conftest$ac_exeext' |
| 10801 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10802 | (eval $ac_try) 2>&5 |
| 10803 | ac_status=$? |
| 10804 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10805 | (exit $ac_status); }; }; then |
| 10806 | echo "$as_me:$LINENO: result: ok" >&5 |
| 10807 | echo "${ECHO_T}ok" >&6 |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 10808 | else |
| 10809 | echo "$as_me: failed program was:" >&5 |
| 10810 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10811 | |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 10812 | { { echo "$as_me:$LINENO: error: failed |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 10813 | See \`config.log' for more details." >&5 |
| 10814 | echo "$as_me: error: failed |
| 10815 | See \`config.log' for more details." >&2;} |
| 10816 | { (exit 1); exit 1; }; } |
| 10817 | fi |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 10818 | rm -f conftest.err conftest.$ac_objext \ |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 10819 | conftest$ac_exeext conftest.$ac_ext |
| 10820 | |
| 10821 | CFLAGS="$SAVED_CFLAGS" |
| 10822 | LDFLAGS="$SAVED_LDFLAGS" |
| 10823 | LIBS="$SAVED_LIBS" |
| 10824 | fi |
| 10825 | |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 10826 | echo "$as_me:$LINENO: checking Intel IPP samples location" >&5 |
| 10827 | echo $ECHO_N "checking Intel IPP samples location... $ECHO_C" >&6 |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 10828 | |
| 10829 | if test "x$with_ipp_samples" != "xno" -a "x$with_ipp_samples" != "x"; then |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 10830 | echo "$as_me:$LINENO: result: $with_ipp_samples" >&5 |
| 10831 | echo "${ECHO_T}$with_ipp_samples" >&6 |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 10832 | IPPSAMPLES=$with_ipp_samples |
| 10833 | elif test "x$IPPSAMPLES" = "x"; then |
| 10834 | if test -d /opt/intel/ipp-samples; then |
| 10835 | IPPSAMPLES=/opt/intel/ipp-samples |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 10836 | echo "$as_me:$LINENO: result: autodetected in $IPPSAMPLES" >&5 |
| 10837 | echo "${ECHO_T}autodetected in $IPPSAMPLES" >&6 |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 10838 | fi |
| 10839 | else |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 10840 | echo "$as_me:$LINENO: result: $IPPSAMPLES" >&5 |
| 10841 | echo "${ECHO_T}$IPPSAMPLES" >&6 |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 10842 | fi |
| 10843 | |
| 10844 | if test x$IPPSAMPLES = x; then |
| 10845 | { { 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 |
| 10846 | 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;} |
| 10847 | { (exit 1); exit 1; }; } |
| 10848 | elif test ! -d $IPPSAMPLES; then |
| 10849 | { { echo "$as_me:$LINENO: error: not found" >&5 |
| 10850 | echo "$as_me: error: not found" >&2;} |
| 10851 | { (exit 1); exit 1; }; } |
| 10852 | elif test ! -d $IPPSAMPLES/speech-codecs; then |
| 10853 | { { echo "$as_me:$LINENO: error: directory doesn't seem to be valid" >&5 |
| 10854 | echo "$as_me: error: directory doesn't seem to be valid" >&2;} |
| 10855 | { (exit 1); exit 1; }; } |
| 10856 | else |
| 10857 | # Remove trailing backslash |
| 10858 | IPPSAMPLES=`echo $IPPSAMPLES | sed 's/\/$//'` |
| 10859 | |
| 10860 | # Guess the libusc.a build location |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 10861 | echo "$as_me:$LINENO: checking Intel IPP USC build location" >&5 |
| 10862 | echo $ECHO_N "checking Intel IPP USC build location... $ECHO_C" >&6 |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 10863 | IPPSAMPLESLIB=`ls -d $IPPSAMPLES/speech-codecs/bin/*gcc*/lib | head -1` |
| 10864 | if test ! -d $IPPSAMPLESLIB; then |
| 10865 | { { echo "$as_me:$LINENO: error: the $IPPSAMPLES/speech-codecs/bin/*gcc*/lib directory not found. Have you built the samples? |
| 10866 | See \`config.log' for more details." >&5 |
| 10867 | echo "$as_me: error: the $IPPSAMPLES/speech-codecs/bin/*gcc*/lib directory not found. Have you built the samples? |
| 10868 | See \`config.log' for more details." >&2;} |
| 10869 | { (exit 1); exit 1; }; } |
| 10870 | fi |
| 10871 | if test ! -f $IPPSAMPLESLIB/libusc.a; then |
| 10872 | { { echo "$as_me:$LINENO: error: libusc.a doesn't exist in $IPPSAMPLESLIB |
| 10873 | See \`config.log' for more details." >&5 |
| 10874 | echo "$as_me: error: libusc.a doesn't exist in $IPPSAMPLESLIB |
| 10875 | See \`config.log' for more details." >&2;} |
| 10876 | { (exit 1); exit 1; }; } |
| 10877 | fi |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 10878 | echo "$as_me:$LINENO: result: $IPPSAMPLESLIB" >&5 |
| 10879 | echo "${ECHO_T}$IPPSAMPLESLIB" >&6 |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 10880 | |
| 10881 | SAVED_CFLAGS="$CFLAGS" |
| 10882 | SAVED_LDFLAGS="$LDFLAGS" |
| 10883 | SAVED_LIBS="$LIBS" |
| 10884 | |
| 10885 | IPPSAMPLESINC="-I$IPPSAMPLES/speech-codecs/core/usc/include" |
| 10886 | CFLAGS="$CFLAGS $IPPSAMPLESINC" |
| 10887 | LDFLAGS="$LDFLAGS -L$IPPSAMPLESLIB" |
| 10888 | LIBS="-lusc $LIBS" |
| 10889 | |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 10890 | echo "$as_me:$LINENO: checking Intel IPP USC usability" >&5 |
| 10891 | echo $ECHO_N "checking Intel IPP USC usability... $ECHO_C" >&6 |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 10892 | cat >conftest.$ac_ext <<_ACEOF |
| 10893 | /* confdefs.h. */ |
| 10894 | _ACEOF |
| 10895 | cat confdefs.h >>conftest.$ac_ext |
| 10896 | cat >>conftest.$ac_ext <<_ACEOF |
| 10897 | /* end confdefs.h. */ |
| 10898 | #include <usc.h> |
| 10899 | |
| 10900 | int |
| 10901 | main () |
| 10902 | { |
| 10903 | extern USC_Fxns USC_G729AFP_Fxns; |
| 10904 | ; |
| 10905 | return 0; |
| 10906 | } |
| 10907 | _ACEOF |
| 10908 | rm -f conftest.$ac_objext conftest$ac_exeext |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 10909 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 10910 | (eval $ac_link) 2>conftest.er1 |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 10911 | ac_status=$? |
| 10912 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10913 | rm -f conftest.er1 |
| 10914 | cat conftest.err >&5 |
| 10915 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 10916 | (exit $ac_status); } && |
| 10917 | { ac_try='test -z "$ac_c_werror_flag" |
| 10918 | || test ! -s conftest.err' |
| 10919 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10920 | (eval $ac_try) 2>&5 |
| 10921 | ac_status=$? |
| 10922 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10923 | (exit $ac_status); }; } && |
| 10924 | { ac_try='test -s conftest$ac_exeext' |
| 10925 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10926 | (eval $ac_try) 2>&5 |
| 10927 | ac_status=$? |
| 10928 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10929 | (exit $ac_status); }; }; then |
| 10930 | echo "$as_me:$LINENO: result: ok" >&5 |
| 10931 | echo "${ECHO_T}ok" >&6 |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 10932 | else |
| 10933 | echo "$as_me: failed program was:" >&5 |
| 10934 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10935 | |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 10936 | { { echo "$as_me:$LINENO: error: failed |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 10937 | See \`config.log' for more details." >&5 |
| 10938 | echo "$as_me: error: failed |
| 10939 | See \`config.log' for more details." >&2;} |
| 10940 | { (exit 1); exit 1; }; } |
| 10941 | fi |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 10942 | rm -f conftest.err conftest.$ac_objext \ |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 10943 | conftest$ac_exeext conftest.$ac_ext |
| 10944 | |
| 10945 | CFLAGS="$SAVED_CFLAGS" |
| 10946 | LDFLAGS="\$(IPP_LDFLAGS) $SAVED_LDFLAGS" |
| 10947 | LIBS="\$(IPP_LIBS) $SAVED_LIBS" |
| 10948 | |
| 10949 | IPP_CFLAGS="$IPP_CFLAGS $IPPSAMPLESINC" |
| 10950 | IPP_LDFLAGS="$IPP_LDFLAGS -L$IPPSAMPLESLIB" |
| 10951 | IPP_LIBS="-lusc $IPP_LIBS" |
| 10952 | fi |
| 10953 | |
| 10954 | ac_build_mak_vars="$ac_build_mak_vars\n\ |
| 10955 | export IPP_CFLAGS=$IPP_CFLAGS\n\ |
| 10956 | export IPP_LDFLAGS=$IPP_LDFLAGS\n\ |
| 10957 | export IPP_LIBS=$IPP_LIBS" |
| 10958 | else |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 10959 | echo "$as_me:$LINENO: result: Skipping Intel IPP settings (not wanted)" >&5 |
| 10960 | echo "${ECHO_T}Skipping Intel IPP settings (not wanted)" >&6 |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 10961 | fi |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10962 | |
| 10963 | |
| 10964 | |
| 10965 | |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 10966 | # Check whether --enable-ssl or --disable-ssl was given. |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10967 | if test "${enable_ssl+set}" = set; then |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 10968 | enableval="$enable_ssl" |
| 10969 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10970 | if test "$enable_ssl" = "no"; then |
| 10971 | ac_no_ssl=1 |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 10972 | echo "$as_me:$LINENO: result: Checking if SSL support is disabled... yes" >&5 |
| 10973 | echo "${ECHO_T}Checking if SSL support is disabled... yes" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10974 | fi |
| 10975 | |
| 10976 | else |
| 10977 | |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 10978 | echo "$as_me:$LINENO: result: checking for OpenSSL installations.." >&5 |
| 10979 | echo "${ECHO_T}checking for OpenSSL installations.." >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10980 | |
| 10981 | |
| 10982 | |
| 10983 | if test "${ac_cv_header_openssl_ssl_h+set}" = set; then |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 10984 | echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5 |
| 10985 | echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10986 | if test "${ac_cv_header_openssl_ssl_h+set}" = set; then |
| 10987 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10988 | fi |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 10989 | echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5 |
| 10990 | echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10991 | else |
| 10992 | # Is the header compilable? |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 10993 | echo "$as_me:$LINENO: checking openssl/ssl.h usability" >&5 |
| 10994 | echo $ECHO_N "checking openssl/ssl.h usability... $ECHO_C" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10995 | cat >conftest.$ac_ext <<_ACEOF |
| 10996 | /* confdefs.h. */ |
| 10997 | _ACEOF |
| 10998 | cat confdefs.h >>conftest.$ac_ext |
| 10999 | cat >>conftest.$ac_ext <<_ACEOF |
| 11000 | /* end confdefs.h. */ |
| 11001 | $ac_includes_default |
| 11002 | #include <openssl/ssl.h> |
| 11003 | _ACEOF |
| 11004 | rm -f conftest.$ac_objext |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 11005 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 11006 | (eval $ac_compile) 2>conftest.er1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11007 | ac_status=$? |
| 11008 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11009 | rm -f conftest.er1 |
| 11010 | cat conftest.err >&5 |
| 11011 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 11012 | (exit $ac_status); } && |
| 11013 | { ac_try='test -z "$ac_c_werror_flag" |
| 11014 | || test ! -s conftest.err' |
| 11015 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11016 | (eval $ac_try) 2>&5 |
| 11017 | ac_status=$? |
| 11018 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11019 | (exit $ac_status); }; } && |
| 11020 | { ac_try='test -s conftest.$ac_objext' |
| 11021 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11022 | (eval $ac_try) 2>&5 |
| 11023 | ac_status=$? |
| 11024 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11025 | (exit $ac_status); }; }; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11026 | ac_header_compiler=yes |
| 11027 | else |
| 11028 | echo "$as_me: failed program was:" >&5 |
| 11029 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11030 | |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 11031 | ac_header_compiler=no |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11032 | fi |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 11033 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11034 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 11035 | echo "${ECHO_T}$ac_header_compiler" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11036 | |
| 11037 | # Is the header present? |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 11038 | echo "$as_me:$LINENO: checking openssl/ssl.h presence" >&5 |
| 11039 | echo $ECHO_N "checking openssl/ssl.h presence... $ECHO_C" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11040 | cat >conftest.$ac_ext <<_ACEOF |
| 11041 | /* confdefs.h. */ |
| 11042 | _ACEOF |
| 11043 | cat confdefs.h >>conftest.$ac_ext |
| 11044 | cat >>conftest.$ac_ext <<_ACEOF |
| 11045 | /* end confdefs.h. */ |
| 11046 | #include <openssl/ssl.h> |
| 11047 | _ACEOF |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 11048 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 11049 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11050 | ac_status=$? |
| 11051 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11052 | rm -f conftest.er1 |
| 11053 | cat conftest.err >&5 |
| 11054 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 11055 | (exit $ac_status); } >/dev/null; then |
| 11056 | if test -s conftest.err; then |
| 11057 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 11058 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 11059 | else |
| 11060 | ac_cpp_err= |
| 11061 | fi |
| 11062 | else |
| 11063 | ac_cpp_err=yes |
| 11064 | fi |
| 11065 | if test -z "$ac_cpp_err"; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11066 | ac_header_preproc=yes |
| 11067 | else |
| 11068 | echo "$as_me: failed program was:" >&5 |
| 11069 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11070 | |
| 11071 | ac_header_preproc=no |
| 11072 | fi |
| 11073 | rm -f conftest.err conftest.$ac_ext |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 11074 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 11075 | echo "${ECHO_T}$ac_header_preproc" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11076 | |
| 11077 | # So? What about this header? |
| 11078 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 11079 | yes:no: ) |
| 11080 | { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 11081 | echo "$as_me: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 11082 | { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the compiler's result" >&5 |
| 11083 | echo "$as_me: WARNING: openssl/ssl.h: proceeding with the compiler's result" >&2;} |
| 11084 | ac_header_preproc=yes |
| 11085 | ;; |
| 11086 | no:yes:* ) |
| 11087 | { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: present but cannot be compiled" >&5 |
| 11088 | echo "$as_me: WARNING: openssl/ssl.h: present but cannot be compiled" >&2;} |
| 11089 | { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&5 |
| 11090 | echo "$as_me: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&2;} |
| 11091 | { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: see the Autoconf documentation" >&5 |
| 11092 | echo "$as_me: WARNING: openssl/ssl.h: see the Autoconf documentation" >&2;} |
| 11093 | { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 11094 | echo "$as_me: WARNING: openssl/ssl.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 11095 | { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&5 |
| 11096 | echo "$as_me: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&2;} |
| 11097 | { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: in the future, the compiler will take precedence" >&5 |
| 11098 | echo "$as_me: WARNING: openssl/ssl.h: in the future, the compiler will take precedence" >&2;} |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 11099 | ( |
| 11100 | cat <<\_ASBOX |
| 11101 | ## ------------------------------------ ## |
| 11102 | ## Report this to the pjproject lists. ## |
| 11103 | ## ------------------------------------ ## |
| 11104 | _ASBOX |
| 11105 | ) | |
| 11106 | sed "s/^/$as_me: WARNING: /" >&2 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11107 | ;; |
| 11108 | esac |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 11109 | echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5 |
| 11110 | echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11111 | if test "${ac_cv_header_openssl_ssl_h+set}" = set; then |
| 11112 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11113 | else |
| 11114 | ac_cv_header_openssl_ssl_h=$ac_header_preproc |
| 11115 | fi |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 11116 | echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5 |
| 11117 | echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11118 | |
| 11119 | fi |
| 11120 | if test $ac_cv_header_openssl_ssl_h = yes; then |
| 11121 | openssl_h_present=1 |
| 11122 | fi |
| 11123 | |
| 11124 | |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 11125 | echo "$as_me:$LINENO: checking for SSL_library_init in -lssl" >&5 |
| 11126 | echo $ECHO_N "checking for SSL_library_init in -lssl... $ECHO_C" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11127 | if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then |
| 11128 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11129 | else |
| 11130 | ac_check_lib_save_LIBS=$LIBS |
| 11131 | LIBS="-lssl $LIBS" |
| 11132 | cat >conftest.$ac_ext <<_ACEOF |
| 11133 | /* confdefs.h. */ |
| 11134 | _ACEOF |
| 11135 | cat confdefs.h >>conftest.$ac_ext |
| 11136 | cat >>conftest.$ac_ext <<_ACEOF |
| 11137 | /* end confdefs.h. */ |
| 11138 | |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 11139 | /* Override any gcc2 internal prototype to avoid an error. */ |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11140 | #ifdef __cplusplus |
| 11141 | extern "C" |
| 11142 | #endif |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 11143 | /* We use char because int might match the return type of a gcc2 |
| 11144 | builtin and then its argument prototype would still apply. */ |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11145 | char SSL_library_init (); |
| 11146 | int |
| 11147 | main () |
| 11148 | { |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 11149 | SSL_library_init (); |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11150 | ; |
| 11151 | return 0; |
| 11152 | } |
| 11153 | _ACEOF |
| 11154 | rm -f conftest.$ac_objext conftest$ac_exeext |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 11155 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 11156 | (eval $ac_link) 2>conftest.er1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11157 | ac_status=$? |
| 11158 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11159 | rm -f conftest.er1 |
| 11160 | cat conftest.err >&5 |
| 11161 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 11162 | (exit $ac_status); } && |
| 11163 | { ac_try='test -z "$ac_c_werror_flag" |
| 11164 | || test ! -s conftest.err' |
| 11165 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11166 | (eval $ac_try) 2>&5 |
| 11167 | ac_status=$? |
| 11168 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11169 | (exit $ac_status); }; } && |
| 11170 | { ac_try='test -s conftest$ac_exeext' |
| 11171 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11172 | (eval $ac_try) 2>&5 |
| 11173 | ac_status=$? |
| 11174 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11175 | (exit $ac_status); }; }; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11176 | ac_cv_lib_ssl_SSL_library_init=yes |
| 11177 | else |
| 11178 | echo "$as_me: failed program was:" >&5 |
| 11179 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11180 | |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 11181 | ac_cv_lib_ssl_SSL_library_init=no |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11182 | fi |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 11183 | rm -f conftest.err conftest.$ac_objext \ |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11184 | conftest$ac_exeext conftest.$ac_ext |
| 11185 | LIBS=$ac_check_lib_save_LIBS |
| 11186 | fi |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 11187 | echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_library_init" >&5 |
| 11188 | echo "${ECHO_T}$ac_cv_lib_ssl_SSL_library_init" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11189 | if test $ac_cv_lib_ssl_SSL_library_init = yes; then |
| 11190 | libssl_present=1 && LIBS="$LIBS -lssl" |
| 11191 | fi |
| 11192 | |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 11193 | echo "$as_me:$LINENO: checking for ERR_load_BIO_strings in -lcrypto" >&5 |
| 11194 | echo $ECHO_N "checking for ERR_load_BIO_strings in -lcrypto... $ECHO_C" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11195 | if test "${ac_cv_lib_crypto_ERR_load_BIO_strings+set}" = set; then |
| 11196 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11197 | else |
| 11198 | ac_check_lib_save_LIBS=$LIBS |
| 11199 | LIBS="-lcrypto $LIBS" |
| 11200 | cat >conftest.$ac_ext <<_ACEOF |
| 11201 | /* confdefs.h. */ |
| 11202 | _ACEOF |
| 11203 | cat confdefs.h >>conftest.$ac_ext |
| 11204 | cat >>conftest.$ac_ext <<_ACEOF |
| 11205 | /* end confdefs.h. */ |
| 11206 | |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 11207 | /* Override any gcc2 internal prototype to avoid an error. */ |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11208 | #ifdef __cplusplus |
| 11209 | extern "C" |
| 11210 | #endif |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 11211 | /* We use char because int might match the return type of a gcc2 |
| 11212 | builtin and then its argument prototype would still apply. */ |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11213 | char ERR_load_BIO_strings (); |
| 11214 | int |
| 11215 | main () |
| 11216 | { |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 11217 | ERR_load_BIO_strings (); |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11218 | ; |
| 11219 | return 0; |
| 11220 | } |
| 11221 | _ACEOF |
| 11222 | rm -f conftest.$ac_objext conftest$ac_exeext |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 11223 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 11224 | (eval $ac_link) 2>conftest.er1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11225 | ac_status=$? |
| 11226 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11227 | rm -f conftest.er1 |
| 11228 | cat conftest.err >&5 |
| 11229 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 11230 | (exit $ac_status); } && |
| 11231 | { ac_try='test -z "$ac_c_werror_flag" |
| 11232 | || test ! -s conftest.err' |
| 11233 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11234 | (eval $ac_try) 2>&5 |
| 11235 | ac_status=$? |
| 11236 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11237 | (exit $ac_status); }; } && |
| 11238 | { ac_try='test -s conftest$ac_exeext' |
| 11239 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11240 | (eval $ac_try) 2>&5 |
| 11241 | ac_status=$? |
| 11242 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11243 | (exit $ac_status); }; }; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11244 | ac_cv_lib_crypto_ERR_load_BIO_strings=yes |
| 11245 | else |
| 11246 | echo "$as_me: failed program was:" >&5 |
| 11247 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11248 | |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 11249 | ac_cv_lib_crypto_ERR_load_BIO_strings=no |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11250 | fi |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 11251 | rm -f conftest.err conftest.$ac_objext \ |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11252 | conftest$ac_exeext conftest.$ac_ext |
| 11253 | LIBS=$ac_check_lib_save_LIBS |
| 11254 | fi |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 11255 | echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_ERR_load_BIO_strings" >&5 |
| 11256 | echo "${ECHO_T}$ac_cv_lib_crypto_ERR_load_BIO_strings" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11257 | if test $ac_cv_lib_crypto_ERR_load_BIO_strings = yes; then |
| 11258 | libcrypto_present=1 && LIBS="$LIBS -lcrypto" |
| 11259 | fi |
| 11260 | |
| 11261 | if test "x$openssl_h_present" = "x1" -a "x$libssl_present" = "x1" -a "x$libcrypto_present" = "x1"; then |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 11262 | echo "$as_me:$LINENO: result: OpenSSL library found, SSL support enabled" >&5 |
| 11263 | echo "${ECHO_T}OpenSSL library found, SSL support enabled" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11264 | cat >>confdefs.h <<\_ACEOF |
| 11265 | #define PJSIP_HAS_TLS_TRANSPORT 1 |
| 11266 | _ACEOF |
| 11267 | |
| 11268 | else |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 11269 | echo "$as_me:$LINENO: result: ** OpenSSL libraries not found, disabling SSL support **" >&5 |
| 11270 | echo "${ECHO_T}** OpenSSL libraries not found, disabling SSL support **" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11271 | fi |
| 11272 | |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 11273 | fi; |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11274 | |
| 11275 | |
| 11276 | |
| 11277 | |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 11278 | echo "$as_me:$LINENO: checking if select() needs correct nfds" >&5 |
| 11279 | echo $ECHO_N "checking if select() needs correct nfds... $ECHO_C" >&6 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11280 | case $target in |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11281 | *rtems*) cat >>confdefs.h <<\_ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11282 | #define PJ_SELECT_NEEDS_NFDS 1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11283 | _ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11284 | |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 11285 | echo "$as_me:$LINENO: result: yes" >&5 |
| 11286 | echo "${ECHO_T}yes" >&6 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11287 | ;; |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11288 | *) cat >>confdefs.h <<\_ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11289 | #define PJ_SELECT_NEEDS_NFDS 0 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11290 | _ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11291 | |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 11292 | echo "$as_me:$LINENO: result: no (default)" >&5 |
| 11293 | echo "${ECHO_T}no (default)" >&6 |
| 11294 | echo "$as_me:$LINENO: result: ** Decided that select() doesn't need correct nfds (please check)" >&5 |
| 11295 | 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] | 11296 | ;; |
| 11297 | esac |
| 11298 | |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 11299 | echo "$as_me:$LINENO: checking if pj_thread_create() should enforce stack size" >&5 |
| 11300 | 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] | 11301 | case $target in |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11302 | *rtems*) cat >>confdefs.h <<\_ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11303 | #define PJ_THREAD_SET_STACK_SIZE 1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11304 | _ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11305 | |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 11306 | echo "$as_me:$LINENO: result: yes" >&5 |
| 11307 | echo "${ECHO_T}yes" >&6 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11308 | ;; |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11309 | *) cat >>confdefs.h <<\_ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11310 | #define PJ_THREAD_SET_STACK_SIZE 0 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11311 | _ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11312 | |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 11313 | echo "$as_me:$LINENO: result: no (default)" >&5 |
| 11314 | echo "${ECHO_T}no (default)" >&6 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11315 | ;; |
| 11316 | esac |
| 11317 | |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 11318 | echo "$as_me:$LINENO: checking if pj_thread_create() should allocate stack" >&5 |
| 11319 | 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] | 11320 | case $target in |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11321 | *rtems*) cat >>confdefs.h <<\_ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11322 | #define PJ_THREAD_ALLOCATE_STACK 1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11323 | _ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11324 | |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 11325 | echo "$as_me:$LINENO: result: yes" >&5 |
| 11326 | echo "${ECHO_T}yes" >&6 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11327 | ;; |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11328 | *) cat >>confdefs.h <<\_ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11329 | #define PJ_THREAD_ALLOCATE_STACK 0 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11330 | _ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11331 | |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 11332 | echo "$as_me:$LINENO: result: no (default)" >&5 |
| 11333 | echo "${ECHO_T}no (default)" >&6 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11334 | ;; |
| 11335 | esac |
| 11336 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11337 | case $target in |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 11338 | *mingw* | *cygw* | *win32* | *w32* ) |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11339 | cat >>confdefs.h <<\_ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 11340 | #define PJ_BLOCKING_ERROR_VAL WSAEWOULDBLOCK |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11341 | _ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11342 | |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 11343 | ;; |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11344 | *) cat >>confdefs.h <<\_ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 11345 | #define PJ_BLOCKING_ERROR_VAL EAGAIN |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11346 | _ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 11347 | |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 11348 | echo "$as_me:$LINENO: result: ** Setting non-blocking recv() retval to EAGAIN (please check)" >&5 |
| 11349 | 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] | 11350 | ;; |
| 11351 | esac |
| 11352 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11353 | case $target in |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 11354 | *mingw* | *cygw* | *win32* | *w32* ) |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11355 | cat >>confdefs.h <<\_ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 11356 | #define PJ_BLOCKING_CONNECT_ERROR_VAL WSAEWOULDBLOCK |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11357 | _ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11358 | |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 11359 | ;; |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11360 | *) cat >>confdefs.h <<\_ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 11361 | #define PJ_BLOCKING_CONNECT_ERROR_VAL EINPROGRESS |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11362 | _ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 11363 | |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 11364 | echo "$as_me:$LINENO: result: ** Setting non-blocking connect() retval to EINPROGRESS (please check)" >&5 |
| 11365 | 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] | 11366 | ;; |
| 11367 | esac |
| 11368 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11369 | |
| 11370 | |
| 11371 | |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 11372 | if test "$build" = "$host"; then |
| 11373 | ac_cross_compile= |
| 11374 | else |
Benny Prijono | 5b818b2 | 2006-09-17 22:58:51 +0000 | [diff] [blame] | 11375 | ac_cross_compile=${host_orig}- |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 11376 | fi |
| 11377 | ac_linux_poll=select |
| 11378 | |
| 11379 | ac_host=unix |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11380 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11381 | |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 11382 | case $target in |
| 11383 | *rtems*) |
| 11384 | ac_main_obj=main_rtems.o |
| 11385 | ;; |
| 11386 | *) |
| 11387 | ac_main_obj=main.o |
| 11388 | ;; |
| 11389 | esac |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11390 | |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 11391 | |
| 11392 | 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] | 11393 | cat >confcache <<\_ACEOF |
| 11394 | # This file is a shell script that caches the results of configure |
| 11395 | # tests run on this system so they can be shared between configure |
| 11396 | # scripts and configure runs, see configure's option --config-cache. |
| 11397 | # It is not useful on other systems. If it contains results you don't |
| 11398 | # want to keep, you may remove or edit it. |
| 11399 | # |
| 11400 | # config.status only pays attention to the cache file if you give it |
| 11401 | # the --recheck option to rerun configure. |
| 11402 | # |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11403 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11404 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
| 11405 | # following values. |
| 11406 | |
| 11407 | _ACEOF |
| 11408 | |
| 11409 | # The following way of writing the cache mishandles newlines in values, |
| 11410 | # but we know of no workaround that is simple, portable, and efficient. |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 11411 | # So, don't put newlines in cache variables' values. |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11412 | # Ultrix sh set writes to stderr and can't be redirected directly, |
| 11413 | # and sets the high bit in the cache file unless we assign to the vars. |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 11414 | { |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11415 | (set) 2>&1 | |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 11416 | case `(ac_space=' '; set | grep ac_space) 2>&1` in |
| 11417 | *ac_space=\ *) |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11418 | # `set' does not quote correctly, so add quotes (double-quote |
| 11419 | # substitution turns \\\\ into \\, and sed turns \\ into \). |
| 11420 | sed -n \ |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11421 | "s/'/'\\\\''/g; |
| 11422 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 11423 | ;; |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11424 | *) |
| 11425 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 11426 | sed -n \ |
| 11427 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11428 | ;; |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 11429 | esac; |
| 11430 | } | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11431 | sed ' |
| 11432 | t clear |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 11433 | : clear |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11434 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
| 11435 | t end |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 11436 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
| 11437 | : end' >>confcache |
| 11438 | if diff $cache_file confcache >/dev/null 2>&1; then :; else |
| 11439 | if test -w $cache_file; then |
| 11440 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11441 | cat confcache >$cache_file |
| 11442 | else |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 11443 | echo "not updating unwritable cache $cache_file" |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11444 | fi |
| 11445 | fi |
| 11446 | rm -f confcache |
| 11447 | |
| 11448 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
| 11449 | # Let make expand exec_prefix. |
| 11450 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
| 11451 | |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 11452 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
| 11453 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and |
| 11454 | # trailing colons and then remove the whole line if VPATH becomes empty |
| 11455 | # (actually we leave an empty line to preserve line numbers). |
| 11456 | if test "x$srcdir" = x.; then |
| 11457 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
| 11458 | s/:*\$(srcdir):*/:/; |
| 11459 | s/:*\${srcdir}:*/:/; |
| 11460 | s/:*@srcdir@:*/:/; |
| 11461 | s/^\([^=]*=[ ]*\):*/\1/; |
| 11462 | s/:*$//; |
| 11463 | s/^[^=]*=[ ]*$//; |
| 11464 | }' |
| 11465 | fi |
| 11466 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11467 | DEFS=-DHAVE_CONFIG_H |
| 11468 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11469 | ac_libobjs= |
| 11470 | ac_ltlibobjs= |
| 11471 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
| 11472 | # 1. Remove the extension, and $U if already installed. |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 11473 | ac_i=`echo "$ac_i" | |
| 11474 | sed 's/\$U\././;s/\.o$//;s/\.obj$//'` |
| 11475 | # 2. Add them. |
| 11476 | ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" |
| 11477 | ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11478 | done |
| 11479 | LIBOBJS=$ac_libobjs |
| 11480 | |
| 11481 | LTLIBOBJS=$ac_ltlibobjs |
| 11482 | |
| 11483 | |
| 11484 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11485 | : ${CONFIG_STATUS=./config.status} |
| 11486 | ac_clean_files_save=$ac_clean_files |
| 11487 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11488 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11489 | echo "$as_me: creating $CONFIG_STATUS" >&6;} |
| 11490 | cat >$CONFIG_STATUS <<_ACEOF |
| 11491 | #! $SHELL |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11492 | # Generated by $as_me. |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11493 | # Run this file to recreate the current configuration. |
| 11494 | # Compiler output produced by configure, useful for debugging |
| 11495 | # configure, is in config.log if it exists. |
| 11496 | |
| 11497 | debug=false |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11498 | ac_cs_recheck=false |
| 11499 | ac_cs_silent=false |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11500 | SHELL=\${CONFIG_SHELL-$SHELL} |
| 11501 | _ACEOF |
| 11502 | |
| 11503 | cat >>$CONFIG_STATUS <<\_ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11504 | ## --------------------- ## |
| 11505 | ## M4sh Initialization. ## |
| 11506 | ## --------------------- ## |
| 11507 | |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 11508 | # Be Bourne compatible |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11509 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
| 11510 | emulate sh |
| 11511 | NULLCMD=: |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11512 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
| 11513 | # is contrary to our usage. Disable this feature. |
| 11514 | alias -g '${1+"$@"}'='"$@"' |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 11515 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then |
| 11516 | set -o posix |
| 11517 | fi |
| 11518 | DUALCASE=1; export DUALCASE # for MKS sh |
Benny Prijono | 9489e7a | 2008-09-19 22:18:50 +0000 | [diff] [blame] | 11519 | |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 11520 | # Support unset when possible. |
| 11521 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
| 11522 | as_unset=unset |
| 11523 | else |
| 11524 | as_unset=false |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11525 | fi |
| 11526 | |
| 11527 | |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 11528 | # Work around bugs in pre-3.0 UWIN ksh. |
| 11529 | $as_unset ENV MAIL MAILPATH |
| 11530 | PS1='$ ' |
| 11531 | PS2='> ' |
| 11532 | PS4='+ ' |
| 11533 | |
| 11534 | # NLS nuisances. |
| 11535 | for as_var in \ |
| 11536 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
| 11537 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
| 11538 | LC_TELEPHONE LC_TIME |
| 11539 | do |
| 11540 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
| 11541 | eval $as_var=C; export $as_var |
| 11542 | else |
| 11543 | $as_unset $as_var |
| 11544 | fi |
| 11545 | done |
| 11546 | |
| 11547 | # Required to use basename. |
| 11548 | if expr a : '\(a\)' >/dev/null 2>&1; then |
| 11549 | as_expr=expr |
| 11550 | else |
| 11551 | as_expr=false |
| 11552 | fi |
| 11553 | |
| 11554 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then |
| 11555 | as_basename=basename |
| 11556 | else |
| 11557 | as_basename=false |
| 11558 | fi |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11559 | |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 11560 | |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 11561 | # Name of the executable. |
| 11562 | as_me=`$as_basename "$0" || |
| 11563 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 11564 | X"$0" : 'X\(//\)$' \| \ |
| 11565 | X"$0" : 'X\(/\)$' \| \ |
| 11566 | . : '\(.\)' 2>/dev/null || |
| 11567 | echo X/"$0" | |
| 11568 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } |
| 11569 | /^X\/\(\/\/\)$/{ s//\1/; q; } |
| 11570 | /^X\/\(\/\).*/{ s//\1/; q; } |
| 11571 | s/.*/./; q'` |
| 11572 | |
| 11573 | |
| 11574 | # PATH needs CR, and LINENO needs CR and PATH. |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11575 | # Avoid depending upon Character Ranges. |
| 11576 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 11577 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 11578 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 11579 | as_cr_digits='0123456789' |
| 11580 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
| 11581 | |
| 11582 | # The user is always right. |
| 11583 | if test "${PATH_SEPARATOR+set}" != set; then |
| 11584 | echo "#! /bin/sh" >conf$$.sh |
| 11585 | echo "exit 0" >>conf$$.sh |
| 11586 | chmod +x conf$$.sh |
| 11587 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
| 11588 | PATH_SEPARATOR=';' |
| 11589 | else |
| 11590 | PATH_SEPARATOR=: |
| 11591 | fi |
| 11592 | rm -f conf$$.sh |
| 11593 | fi |
| 11594 | |
| 11595 | |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 11596 | as_lineno_1=$LINENO |
| 11597 | as_lineno_2=$LINENO |
| 11598 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
| 11599 | test "x$as_lineno_1" != "x$as_lineno_2" && |
| 11600 | test "x$as_lineno_3" = "x$as_lineno_2" || { |
| 11601 | # Find who we are. Look in the path if we contain no path at all |
| 11602 | # relative or not. |
| 11603 | case $0 in |
| 11604 | *[\\/]* ) as_myself=$0 ;; |
| 11605 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11606 | for as_dir in $PATH |
| 11607 | do |
| 11608 | IFS=$as_save_IFS |
| 11609 | test -z "$as_dir" && as_dir=. |
| 11610 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 11611 | done |
| 11612 | |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 11613 | ;; |
| 11614 | esac |
| 11615 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 11616 | # in which case we are not to be found in the path. |
| 11617 | if test "x$as_myself" = x; then |
| 11618 | as_myself=$0 |
Benny Prijono | 9489e7a | 2008-09-19 22:18:50 +0000 | [diff] [blame] | 11619 | fi |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 11620 | if test ! -f "$as_myself"; then |
| 11621 | { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 |
| 11622 | echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} |
| 11623 | { (exit 1); exit 1; }; } |
| 11624 | fi |
| 11625 | case $CONFIG_SHELL in |
| 11626 | '') |
| 11627 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 11628 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
| 11629 | do |
| 11630 | IFS=$as_save_IFS |
| 11631 | test -z "$as_dir" && as_dir=. |
| 11632 | for as_base in sh bash ksh sh5; do |
| 11633 | case $as_dir in |
| 11634 | /*) |
| 11635 | if ("$as_dir/$as_base" -c ' |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11636 | as_lineno_1=$LINENO |
| 11637 | as_lineno_2=$LINENO |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 11638 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11639 | test "x$as_lineno_1" != "x$as_lineno_2" && |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 11640 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then |
| 11641 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } |
| 11642 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } |
| 11643 | CONFIG_SHELL=$as_dir/$as_base |
| 11644 | export CONFIG_SHELL |
| 11645 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} |
| 11646 | fi;; |
| 11647 | esac |
| 11648 | done |
| 11649 | done |
| 11650 | ;; |
| 11651 | esac |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11652 | |
| 11653 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
| 11654 | # uniformly replaced by the line number. The first 'sed' inserts a |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 11655 | # line-number line before each line; the second 'sed' does the real |
| 11656 | # work. The second script uses 'N' to pair each line-number line |
| 11657 | # with the numbered line, and appends trailing '-' during |
| 11658 | # substitution so that $LINENO is not a special case at line end. |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11659 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 11660 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) |
| 11661 | sed '=' <$as_myself | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11662 | sed ' |
| 11663 | N |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 11664 | s,$,-, |
| 11665 | : loop |
| 11666 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11667 | t loop |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 11668 | s,-$,, |
| 11669 | s,^['$as_cr_digits']*\n,, |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11670 | ' >$as_me.lineno && |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 11671 | chmod +x $as_me.lineno || |
| 11672 | { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 |
| 11673 | echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11674 | { (exit 1); exit 1; }; } |
| 11675 | |
| 11676 | # Don't try to exec as it changes $[0], causing all sort of problems |
| 11677 | # (the dirname of $[0] is not the place where we might find the |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 11678 | # original and so on. Autoconf is especially sensible to this). |
| 11679 | . ./$as_me.lineno |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11680 | # Exit status is that of the last command. |
| 11681 | exit |
| 11682 | } |
| 11683 | |
| 11684 | |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 11685 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in |
| 11686 | *c*,-n*) ECHO_N= ECHO_C=' |
| 11687 | ' ECHO_T=' ' ;; |
| 11688 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; |
| 11689 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11690 | esac |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11691 | |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 11692 | if expr a : '\(a\)' >/dev/null 2>&1; then |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11693 | as_expr=expr |
| 11694 | else |
| 11695 | as_expr=false |
| 11696 | fi |
| 11697 | |
| 11698 | rm -f conf$$ conf$$.exe conf$$.file |
| 11699 | echo >conf$$.file |
| 11700 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 11701 | # We could just check for DJGPP; but this test a) works b) is more generic |
| 11702 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). |
| 11703 | if test -f conf$$.exe; then |
| 11704 | # Don't use ln at all; we don't have any links |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11705 | as_ln_s='cp -p' |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 11706 | else |
| 11707 | as_ln_s='ln -s' |
| 11708 | fi |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11709 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 11710 | as_ln_s=ln |
| 11711 | else |
| 11712 | as_ln_s='cp -p' |
| 11713 | fi |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 11714 | rm -f conf$$ conf$$.exe conf$$.file |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11715 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11716 | if mkdir -p . 2>/dev/null; then |
| 11717 | as_mkdir_p=: |
Benny Prijono | 39ae2da | 2006-10-13 17:57:42 +0000 | [diff] [blame] | 11718 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11719 | test -d ./-p && rmdir ./-p |
| 11720 | as_mkdir_p=false |
Benny Prijono | 39ae2da | 2006-10-13 17:57:42 +0000 | [diff] [blame] | 11721 | fi |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 11722 | |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 11723 | as_executable_p="test -f" |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11724 | |
| 11725 | # Sed expression to map a string onto a valid CPP name. |
| 11726 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
| 11727 | |
| 11728 | # Sed expression to map a string onto a valid variable name. |
| 11729 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
| 11730 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11731 | |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 11732 | # IFS |
| 11733 | # We need space, tab and new line, in precisely that order. |
| 11734 | as_nl=' |
| 11735 | ' |
| 11736 | IFS=" $as_nl" |
| 11737 | |
| 11738 | # CDPATH. |
| 11739 | $as_unset CDPATH |
| 11740 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11741 | exec 6>&1 |
| 11742 | |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 11743 | # Open the log real soon, to keep \$[0] and so on meaningful, and to |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11744 | # report actual input values of CONFIG_FILES etc. instead of their |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 11745 | # values after options handling. Logging --version etc. is OK. |
| 11746 | exec 5>>config.log |
| 11747 | { |
| 11748 | echo |
| 11749 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
| 11750 | ## Running $as_me. ## |
| 11751 | _ASBOX |
| 11752 | } >&5 |
| 11753 | cat >&5 <<_CSEOF |
| 11754 | |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 11755 | This file was extended by pjproject $as_me 1.0, which was |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 11756 | generated by GNU Autoconf 2.59. Invocation command line was |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11757 | |
| 11758 | CONFIG_FILES = $CONFIG_FILES |
| 11759 | CONFIG_HEADERS = $CONFIG_HEADERS |
| 11760 | CONFIG_LINKS = $CONFIG_LINKS |
| 11761 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
| 11762 | $ $0 $@ |
| 11763 | |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 11764 | _CSEOF |
| 11765 | echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 |
| 11766 | echo >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11767 | _ACEOF |
| 11768 | |
| 11769 | # Files that config.status was made for. |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 11770 | if test -n "$ac_config_files"; then |
| 11771 | echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS |
| 11772 | fi |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11773 | |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 11774 | if test -n "$ac_config_headers"; then |
| 11775 | echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS |
| 11776 | fi |
| 11777 | |
| 11778 | if test -n "$ac_config_links"; then |
| 11779 | echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS |
| 11780 | fi |
| 11781 | |
| 11782 | if test -n "$ac_config_commands"; then |
| 11783 | echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS |
| 11784 | fi |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11785 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11786 | cat >>$CONFIG_STATUS <<\_ACEOF |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 11787 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11788 | ac_cs_usage="\ |
| 11789 | \`$as_me' instantiates files from templates according to the |
| 11790 | current configuration. |
| 11791 | |
| 11792 | Usage: $0 [OPTIONS] [FILE]... |
| 11793 | |
| 11794 | -h, --help print this help, then exit |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 11795 | -V, --version print version number, then exit |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11796 | -q, --quiet do not print progress messages |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11797 | -d, --debug don't remove temporary files |
| 11798 | --recheck update $as_me by reconfiguring in the same conditions |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 11799 | --file=FILE[:TEMPLATE] |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11800 | instantiate the configuration file FILE |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11801 | --header=FILE[:TEMPLATE] |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11802 | instantiate the configuration header FILE |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11803 | |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 11804 | Configuration files: |
| 11805 | $config_files |
| 11806 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11807 | Configuration headers: |
| 11808 | $config_headers |
| 11809 | |
| 11810 | Report bugs to <bug-autoconf@gnu.org>." |
Benny Prijono | 9489e7a | 2008-09-19 22:18:50 +0000 | [diff] [blame] | 11811 | _ACEOF |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 11812 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11813 | cat >>$CONFIG_STATUS <<_ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11814 | ac_cs_version="\\ |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 11815 | pjproject config.status 1.0 |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 11816 | configured by $0, generated by GNU Autoconf 2.59, |
| 11817 | with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11818 | |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 11819 | Copyright (C) 2003 Free Software Foundation, Inc. |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11820 | This config.status script is free software; the Free Software Foundation |
| 11821 | gives unlimited permission to copy, distribute and modify it." |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 11822 | srcdir=$srcdir |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11823 | _ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11824 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11825 | cat >>$CONFIG_STATUS <<\_ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11826 | # If no file are specified by the user, then we need to provide default |
| 11827 | # value. By we need to know if files were specified by the user. |
| 11828 | ac_need_defaults=: |
| 11829 | while test $# != 0 |
| 11830 | do |
| 11831 | case $1 in |
| 11832 | --*=*) |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 11833 | ac_option=`expr "x$1" : 'x\([^=]*\)='` |
| 11834 | ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11835 | ac_shift=: |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11836 | ;; |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 11837 | -*) |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11838 | ac_option=$1 |
| 11839 | ac_optarg=$2 |
| 11840 | ac_shift=shift |
| 11841 | ;; |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 11842 | *) # This is not an option, so the user has probably given explicit |
| 11843 | # arguments. |
| 11844 | ac_option=$1 |
| 11845 | ac_need_defaults=false;; |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11846 | esac |
| 11847 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11848 | case $ac_option in |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11849 | # Handling of the options. |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 11850 | _ACEOF |
| 11851 | cat >>$CONFIG_STATUS <<\_ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11852 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11853 | ac_cs_recheck=: ;; |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 11854 | --version | --vers* | -V ) |
| 11855 | echo "$ac_cs_version"; exit 0 ;; |
| 11856 | --he | --h) |
| 11857 | # Conflict between --help and --header |
| 11858 | { { echo "$as_me:$LINENO: error: ambiguous option: $1 |
| 11859 | Try \`$0 --help' for more information." >&5 |
| 11860 | echo "$as_me: error: ambiguous option: $1 |
| 11861 | Try \`$0 --help' for more information." >&2;} |
| 11862 | { (exit 1); exit 1; }; };; |
| 11863 | --help | --hel | -h ) |
| 11864 | echo "$ac_cs_usage"; exit 0 ;; |
| 11865 | --debug | --d* | -d ) |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11866 | debug=: ;; |
| 11867 | --file | --fil | --fi | --f ) |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11868 | $ac_shift |
| 11869 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11870 | ac_need_defaults=false;; |
| 11871 | --header | --heade | --head | --hea ) |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11872 | $ac_shift |
| 11873 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11874 | ac_need_defaults=false;; |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11875 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 11876 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
| 11877 | ac_cs_silent=: ;; |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11878 | |
| 11879 | # This is an error. |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 11880 | -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 |
| 11881 | Try \`$0 --help' for more information." >&5 |
| 11882 | echo "$as_me: error: unrecognized option: $1 |
| 11883 | Try \`$0 --help' for more information." >&2;} |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11884 | { (exit 1); exit 1; }; } ;; |
| 11885 | |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 11886 | *) ac_config_targets="$ac_config_targets $1" ;; |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11887 | |
| 11888 | esac |
| 11889 | shift |
| 11890 | done |
| 11891 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11892 | ac_configure_extra_args= |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11893 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11894 | if $ac_cs_silent; then |
| 11895 | exec 6>/dev/null |
| 11896 | ac_configure_extra_args="$ac_configure_extra_args --silent" |
| 11897 | fi |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11898 | |
| 11899 | _ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11900 | cat >>$CONFIG_STATUS <<_ACEOF |
| 11901 | if \$ac_cs_recheck; then |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 11902 | echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 |
| 11903 | 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] | 11904 | fi |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11905 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11906 | _ACEOF |
| 11907 | |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 11908 | |
| 11909 | |
| 11910 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11911 | |
| 11912 | cat >>$CONFIG_STATUS <<\_ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11913 | for ac_config_target in $ac_config_targets |
| 11914 | do |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 11915 | case "$ac_config_target" in |
| 11916 | # Handling of arguments. |
| 11917 | "build.mak" ) CONFIG_FILES="$CONFIG_FILES build.mak" ;; |
| 11918 | "build/os-auto.mak" ) CONFIG_FILES="$CONFIG_FILES build/os-auto.mak" ;; |
| 11919 | "pjlib/build/os-auto.mak" ) CONFIG_FILES="$CONFIG_FILES pjlib/build/os-auto.mak" ;; |
| 11920 | "pjlib-util/build/os-auto.mak" ) CONFIG_FILES="$CONFIG_FILES pjlib-util/build/os-auto.mak" ;; |
| 11921 | "pjmedia/build/os-auto.mak" ) CONFIG_FILES="$CONFIG_FILES pjmedia/build/os-auto.mak" ;; |
| 11922 | "pjsip/build/os-auto.mak" ) CONFIG_FILES="$CONFIG_FILES pjsip/build/os-auto.mak" ;; |
| 11923 | "third_party/build/portaudio/os-auto.mak" ) CONFIG_FILES="$CONFIG_FILES third_party/build/portaudio/os-auto.mak" ;; |
| 11924 | "third_party/build/os-auto.mak" ) CONFIG_FILES="$CONFIG_FILES third_party/build/os-auto.mak" ;; |
| 11925 | "pjlib/include/pj/compat/os_auto.h" ) CONFIG_HEADERS="$CONFIG_HEADERS pjlib/include/pj/compat/os_auto.h" ;; |
| 11926 | "pjlib/include/pj/compat/m_auto.h" ) CONFIG_HEADERS="$CONFIG_HEADERS pjlib/include/pj/compat/m_auto.h" ;; |
| 11927 | "pjmedia/include/pjmedia/config_auto.h" ) CONFIG_HEADERS="$CONFIG_HEADERS pjmedia/include/pjmedia/config_auto.h" ;; |
| 11928 | "pjmedia/include/pjmedia-codec/config_auto.h" ) CONFIG_HEADERS="$CONFIG_HEADERS pjmedia/include/pjmedia-codec/config_auto.h" ;; |
| 11929 | "pjsip/include/pjsip/sip_autoconf.h" ) CONFIG_HEADERS="$CONFIG_HEADERS pjsip/include/pjsip/sip_autoconf.h" ;; |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11930 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11931 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
| 11932 | { (exit 1); exit 1; }; };; |
| 11933 | esac |
| 11934 | done |
| 11935 | |
| 11936 | # If the user did not use the arguments to specify the items to instantiate, |
| 11937 | # then the envvar interface is used. Set only those that are not. |
| 11938 | # We use the long form for the default assignment because of an extremely |
| 11939 | # bizarre bug on SunOS 4.1.3. |
| 11940 | if $ac_need_defaults; then |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 11941 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11942 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
| 11943 | fi |
| 11944 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11945 | # Have a temporary directory for convenience. Make it in the build tree |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 11946 | # simply because there is no reason to put it here, and in addition, |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11947 | # creating and moving files from /tmp can sometimes cause problems. |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 11948 | # Create a temporary directory, and hook for its removal unless debugging. |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11949 | $debug || |
| 11950 | { |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 11951 | trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11952 | trap '{ (exit 1); exit 1; }' 1 2 13 15 |
| 11953 | } |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 11954 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11955 | # Create a (secure) tmp directory for tmp files. |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11956 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11957 | { |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 11958 | tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11959 | test -n "$tmp" && test -d "$tmp" |
| 11960 | } || |
| 11961 | { |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 11962 | tmp=./confstat$$-$RANDOM |
| 11963 | (umask 077 && mkdir $tmp) |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11964 | } || |
| 11965 | { |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11966 | echo "$me: cannot create a temporary directory in ." >&2 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11967 | { (exit 1); exit 1; } |
| 11968 | } |
| 11969 | |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 11970 | _ACEOF |
| 11971 | |
| 11972 | cat >>$CONFIG_STATUS <<_ACEOF |
| 11973 | |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 11974 | # |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 11975 | # CONFIG_FILES section. |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 11976 | # |
| 11977 | |
| 11978 | # No need to generate the scripts if there are no CONFIG_FILES. |
| 11979 | # This happens for instance when ./config.status config.h |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 11980 | if test -n "\$CONFIG_FILES"; then |
| 11981 | # Protect against being on the right side of a sed subst in config.status. |
| 11982 | sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; |
| 11983 | s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF |
| 11984 | s,@SHELL@,$SHELL,;t t |
| 11985 | s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t |
| 11986 | s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t |
| 11987 | s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t |
| 11988 | s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t |
| 11989 | s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t |
| 11990 | s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t |
| 11991 | s,@exec_prefix@,$exec_prefix,;t t |
| 11992 | s,@prefix@,$prefix,;t t |
| 11993 | s,@program_transform_name@,$program_transform_name,;t t |
| 11994 | s,@bindir@,$bindir,;t t |
| 11995 | s,@sbindir@,$sbindir,;t t |
| 11996 | s,@libexecdir@,$libexecdir,;t t |
| 11997 | s,@datadir@,$datadir,;t t |
| 11998 | s,@sysconfdir@,$sysconfdir,;t t |
| 11999 | s,@sharedstatedir@,$sharedstatedir,;t t |
| 12000 | s,@localstatedir@,$localstatedir,;t t |
| 12001 | s,@libdir@,$libdir,;t t |
| 12002 | s,@includedir@,$includedir,;t t |
| 12003 | s,@oldincludedir@,$oldincludedir,;t t |
| 12004 | s,@infodir@,$infodir,;t t |
| 12005 | s,@mandir@,$mandir,;t t |
| 12006 | s,@build_alias@,$build_alias,;t t |
| 12007 | s,@host_alias@,$host_alias,;t t |
| 12008 | s,@target_alias@,$target_alias,;t t |
| 12009 | s,@DEFS@,$DEFS,;t t |
| 12010 | s,@ECHO_C@,$ECHO_C,;t t |
| 12011 | s,@ECHO_N@,$ECHO_N,;t t |
| 12012 | s,@ECHO_T@,$ECHO_T,;t t |
| 12013 | s,@LIBS@,$LIBS,;t t |
| 12014 | s,@build@,$build,;t t |
| 12015 | s,@build_cpu@,$build_cpu,;t t |
| 12016 | s,@build_vendor@,$build_vendor,;t t |
| 12017 | s,@build_os@,$build_os,;t t |
| 12018 | s,@host@,$host,;t t |
| 12019 | s,@host_cpu@,$host_cpu,;t t |
| 12020 | s,@host_vendor@,$host_vendor,;t t |
| 12021 | s,@host_os@,$host_os,;t t |
| 12022 | s,@target@,$target,;t t |
| 12023 | s,@target_cpu@,$target_cpu,;t t |
| 12024 | s,@target_vendor@,$target_vendor,;t t |
| 12025 | s,@target_os@,$target_os,;t t |
| 12026 | s,@CC@,$CC,;t t |
| 12027 | s,@CFLAGS@,$CFLAGS,;t t |
| 12028 | s,@LDFLAGS@,$LDFLAGS,;t t |
| 12029 | s,@CPPFLAGS@,$CPPFLAGS,;t t |
| 12030 | s,@ac_ct_CC@,$ac_ct_CC,;t t |
| 12031 | s,@EXEEXT@,$EXEEXT,;t t |
| 12032 | s,@OBJEXT@,$OBJEXT,;t t |
| 12033 | s,@CXX@,$CXX,;t t |
| 12034 | s,@CXXFLAGS@,$CXXFLAGS,;t t |
| 12035 | s,@ac_ct_CXX@,$ac_ct_CXX,;t t |
| 12036 | s,@ac_pjdir@,$ac_pjdir,;t t |
| 12037 | s,@ac_build_mak_vars@,$ac_build_mak_vars,;t t |
| 12038 | s,@CPP@,$CPP,;t t |
| 12039 | s,@EGREP@,$EGREP,;t t |
| 12040 | s,@ac_os_objs@,$ac_os_objs,;t t |
| 12041 | s,@ac_pjmedia_snd@,$ac_pjmedia_snd,;t t |
| 12042 | s,@ac_pa_cflags@,$ac_pa_cflags,;t t |
| 12043 | s,@ac_pa_use_alsa@,$ac_pa_use_alsa,;t t |
| 12044 | s,@ac_pa_use_oss@,$ac_pa_use_oss,;t t |
| 12045 | s,@ac_no_small_filter@,$ac_no_small_filter,;t t |
| 12046 | s,@ac_no_large_filter@,$ac_no_large_filter,;t t |
| 12047 | s,@ac_no_speex_aec@,$ac_no_speex_aec,;t t |
| 12048 | s,@ac_no_g711_codec@,$ac_no_g711_codec,;t t |
| 12049 | s,@ac_no_l16_codec@,$ac_no_l16_codec,;t t |
| 12050 | s,@ac_no_gsm_codec@,$ac_no_gsm_codec,;t t |
| 12051 | s,@ac_no_g722_codec@,$ac_no_g722_codec,;t t |
| 12052 | s,@ac_no_speex_codec@,$ac_no_speex_codec,;t t |
| 12053 | s,@ac_no_ilbc_codec@,$ac_no_ilbc_codec,;t t |
| 12054 | s,@ac_no_ssl@,$ac_no_ssl,;t t |
| 12055 | s,@openssl_h_present@,$openssl_h_present,;t t |
| 12056 | s,@libssl_present@,$libssl_present,;t t |
| 12057 | s,@libcrypto_present@,$libcrypto_present,;t t |
| 12058 | s,@ac_cross_compile@,$ac_cross_compile,;t t |
| 12059 | s,@ac_linux_poll@,$ac_linux_poll,;t t |
| 12060 | s,@ac_host@,$ac_host,;t t |
| 12061 | s,@ac_main_obj@,$ac_main_obj,;t t |
| 12062 | s,@LIBOBJS@,$LIBOBJS,;t t |
| 12063 | s,@LTLIBOBJS@,$LTLIBOBJS,;t t |
| 12064 | CEOF |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 12065 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 12066 | _ACEOF |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 12067 | |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 12068 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 12069 | # Split the substitutions into bite-sized pieces for seds with |
| 12070 | # small command number limits, like on Digital OSF/1 and HP-UX. |
| 12071 | ac_max_sed_lines=48 |
| 12072 | ac_sed_frag=1 # Number of current file. |
| 12073 | ac_beg=1 # First line for current file. |
| 12074 | ac_end=$ac_max_sed_lines # Line after last line for current file. |
| 12075 | ac_more_lines=: |
| 12076 | ac_sed_cmds= |
| 12077 | while $ac_more_lines; do |
| 12078 | if test $ac_beg -gt 1; then |
| 12079 | sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
| 12080 | else |
| 12081 | sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
| 12082 | fi |
| 12083 | if test ! -s $tmp/subs.frag; then |
| 12084 | ac_more_lines=false |
| 12085 | else |
| 12086 | # The purpose of the label and of the branching condition is to |
| 12087 | # speed up the sed processing (if there are no `@' at all, there |
| 12088 | # is no need to browse any of the substitutions). |
| 12089 | # These are the two extra sed commands mentioned above. |
| 12090 | (echo ':t |
| 12091 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed |
| 12092 | if test -z "$ac_sed_cmds"; then |
| 12093 | ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" |
| 12094 | else |
| 12095 | ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" |
| 12096 | fi |
| 12097 | ac_sed_frag=`expr $ac_sed_frag + 1` |
| 12098 | ac_beg=$ac_end |
| 12099 | ac_end=`expr $ac_end + $ac_max_sed_lines` |
| 12100 | fi |
| 12101 | done |
| 12102 | if test -z "$ac_sed_cmds"; then |
| 12103 | ac_sed_cmds=cat |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 12104 | fi |
| 12105 | fi # test -n "$CONFIG_FILES" |
| 12106 | |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 12107 | _ACEOF |
| 12108 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 12109 | for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue |
| 12110 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
| 12111 | case $ac_file in |
| 12112 | - | *:- | *:-:* ) # input from stdin |
| 12113 | cat >$tmp/stdin |
| 12114 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 12115 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
| 12116 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 12117 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
| 12118 | * ) ac_file_in=$ac_file.in ;; |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 12119 | esac |
| 12120 | |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 12121 | # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. |
| 12122 | ac_dir=`(dirname "$ac_file") 2>/dev/null || |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 12123 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 12124 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 12125 | X"$ac_file" : 'X\(//\)$' \| \ |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 12126 | X"$ac_file" : 'X\(/\)' \| \ |
| 12127 | . : '\(.\)' 2>/dev/null || |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 12128 | echo X"$ac_file" | |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 12129 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 12130 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 12131 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 12132 | /^X\(\/\).*/{ s//\1/; q; } |
| 12133 | s/.*/./; q'` |
| 12134 | { if $as_mkdir_p; then |
| 12135 | mkdir -p "$ac_dir" |
| 12136 | else |
| 12137 | as_dir="$ac_dir" |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 12138 | as_dirs= |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 12139 | while test ! -d "$as_dir"; do |
| 12140 | as_dirs="$as_dir $as_dirs" |
| 12141 | as_dir=`(dirname "$as_dir") 2>/dev/null || |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 12142 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 12143 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 12144 | X"$as_dir" : 'X\(//\)$' \| \ |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 12145 | X"$as_dir" : 'X\(/\)' \| \ |
| 12146 | . : '\(.\)' 2>/dev/null || |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 12147 | echo X"$as_dir" | |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 12148 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 12149 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 12150 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 12151 | /^X\(\/\).*/{ s//\1/; q; } |
| 12152 | s/.*/./; q'` |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 12153 | done |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 12154 | test ! -n "$as_dirs" || mkdir $as_dirs |
| 12155 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 |
| 12156 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 12157 | { (exit 1); exit 1; }; }; } |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 12158 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 12159 | ac_builddir=. |
| 12160 | |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 12161 | if test "$ac_dir" != .; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 12162 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 12163 | # A "../" for each directory in $ac_dir_suffix. |
| 12164 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
| 12165 | else |
| 12166 | ac_dir_suffix= ac_top_builddir= |
| 12167 | fi |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 12168 | |
| 12169 | case $srcdir in |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 12170 | .) # No --srcdir option. We are building in place. |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 12171 | ac_srcdir=. |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 12172 | if test -z "$ac_top_builddir"; then |
| 12173 | ac_top_srcdir=. |
| 12174 | else |
| 12175 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
| 12176 | fi ;; |
| 12177 | [\\/]* | ?:[\\/]* ) # Absolute path. |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 12178 | ac_srcdir=$srcdir$ac_dir_suffix; |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 12179 | ac_top_srcdir=$srcdir ;; |
| 12180 | *) # Relative path. |
| 12181 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
| 12182 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 12183 | esac |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 12184 | |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 12185 | # Do not use `cd foo && pwd` to compute absolute paths, because |
| 12186 | # the directories may not exist. |
| 12187 | case `pwd` in |
| 12188 | .) ac_abs_builddir="$ac_dir";; |
| 12189 | *) |
| 12190 | case "$ac_dir" in |
| 12191 | .) ac_abs_builddir=`pwd`;; |
| 12192 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; |
| 12193 | *) ac_abs_builddir=`pwd`/"$ac_dir";; |
| 12194 | esac;; |
Benny Prijono | 9489e7a | 2008-09-19 22:18:50 +0000 | [diff] [blame] | 12195 | esac |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 12196 | case $ac_abs_builddir in |
| 12197 | .) ac_abs_top_builddir=${ac_top_builddir}.;; |
| 12198 | *) |
| 12199 | case ${ac_top_builddir}. in |
| 12200 | .) ac_abs_top_builddir=$ac_abs_builddir;; |
| 12201 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; |
| 12202 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; |
| 12203 | esac;; |
| 12204 | esac |
| 12205 | case $ac_abs_builddir in |
| 12206 | .) ac_abs_srcdir=$ac_srcdir;; |
| 12207 | *) |
| 12208 | case $ac_srcdir in |
| 12209 | .) ac_abs_srcdir=$ac_abs_builddir;; |
| 12210 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; |
| 12211 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; |
| 12212 | esac;; |
| 12213 | esac |
| 12214 | case $ac_abs_builddir in |
| 12215 | .) ac_abs_top_srcdir=$ac_top_srcdir;; |
| 12216 | *) |
| 12217 | case $ac_top_srcdir in |
| 12218 | .) ac_abs_top_srcdir=$ac_abs_builddir;; |
| 12219 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; |
| 12220 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; |
| 12221 | esac;; |
| 12222 | esac |
Benny Prijono | 9489e7a | 2008-09-19 22:18:50 +0000 | [diff] [blame] | 12223 | |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 12224 | |
| 12225 | |
| 12226 | if test x"$ac_file" != x-; then |
| 12227 | { echo "$as_me:$LINENO: creating $ac_file" >&5 |
| 12228 | echo "$as_me: creating $ac_file" >&6;} |
| 12229 | rm -f "$ac_file" |
| 12230 | fi |
| 12231 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
| 12232 | # use $as_me), people would be surprised to read: |
| 12233 | # /* config.h. Generated by config.status. */ |
| 12234 | if test x"$ac_file" = x-; then |
| 12235 | configure_input= |
| 12236 | else |
| 12237 | configure_input="$ac_file. " |
| 12238 | fi |
| 12239 | configure_input=$configure_input"Generated from `echo $ac_file_in | |
| 12240 | sed 's,.*/,,'` by configure." |
| 12241 | |
| 12242 | # First look for the input files in the build tree, otherwise in the |
| 12243 | # src tree. |
| 12244 | ac_file_inputs=`IFS=: |
| 12245 | for f in $ac_file_in; do |
| 12246 | case $f in |
| 12247 | -) echo $tmp/stdin ;; |
| 12248 | [\\/$]*) |
| 12249 | # Absolute (can't be DOS-style, as IFS=:) |
| 12250 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
| 12251 | echo "$as_me: error: cannot find input file: $f" >&2;} |
| 12252 | { (exit 1); exit 1; }; } |
| 12253 | echo "$f";; |
| 12254 | *) # Relative |
| 12255 | if test -f "$f"; then |
| 12256 | # Build tree |
| 12257 | echo "$f" |
| 12258 | elif test -f "$srcdir/$f"; then |
| 12259 | # Source tree |
| 12260 | echo "$srcdir/$f" |
| 12261 | else |
| 12262 | # /dev/null tree |
| 12263 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
| 12264 | echo "$as_me: error: cannot find input file: $f" >&2;} |
| 12265 | { (exit 1); exit 1; }; } |
| 12266 | fi;; |
| 12267 | esac |
| 12268 | done` || { (exit 1); exit 1; } |
| 12269 | _ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 12270 | cat >>$CONFIG_STATUS <<_ACEOF |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 12271 | sed "$ac_vpsub |
| 12272 | $extrasub |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 12273 | _ACEOF |
| 12274 | cat >>$CONFIG_STATUS <<\_ACEOF |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 12275 | :t |
| 12276 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 12277 | s,@configure_input@,$configure_input,;t t |
| 12278 | s,@srcdir@,$ac_srcdir,;t t |
| 12279 | s,@abs_srcdir@,$ac_abs_srcdir,;t t |
| 12280 | s,@top_srcdir@,$ac_top_srcdir,;t t |
| 12281 | s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t |
| 12282 | s,@builddir@,$ac_builddir,;t t |
| 12283 | s,@abs_builddir@,$ac_abs_builddir,;t t |
| 12284 | s,@top_builddir@,$ac_top_builddir,;t t |
| 12285 | s,@abs_top_builddir@,$ac_abs_top_builddir,;t t |
| 12286 | " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out |
| 12287 | rm -f $tmp/stdin |
| 12288 | if test x"$ac_file" != x-; then |
| 12289 | mv $tmp/out $ac_file |
| 12290 | else |
| 12291 | cat $tmp/out |
| 12292 | rm -f $tmp/out |
| 12293 | fi |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 12294 | |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 12295 | done |
| 12296 | _ACEOF |
| 12297 | cat >>$CONFIG_STATUS <<\_ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 12298 | |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 12299 | # |
| 12300 | # CONFIG_HEADER section. |
| 12301 | # |
| 12302 | |
| 12303 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where |
| 12304 | # NAME is the cpp macro being defined and VALUE is the value it is being given. |
| 12305 | # |
| 12306 | # ac_d sets the value in "#define NAME VALUE" lines. |
| 12307 | ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' |
| 12308 | ac_dB='[ ].*$,\1#\2' |
| 12309 | ac_dC=' ' |
| 12310 | ac_dD=',;t' |
| 12311 | # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". |
| 12312 | ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' |
| 12313 | ac_uB='$,\1#\2define\3' |
| 12314 | ac_uC=' ' |
| 12315 | ac_uD=',;t' |
| 12316 | |
| 12317 | for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue |
| 12318 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 12319 | case $ac_file in |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 12320 | - | *:- | *:-:* ) # input from stdin |
| 12321 | cat >$tmp/stdin |
| 12322 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 12323 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
| 12324 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 12325 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
| 12326 | * ) ac_file_in=$ac_file.in ;; |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 12327 | esac |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 12328 | |
| 12329 | test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 |
| 12330 | echo "$as_me: creating $ac_file" >&6;} |
| 12331 | |
| 12332 | # First look for the input files in the build tree, otherwise in the |
| 12333 | # src tree. |
| 12334 | ac_file_inputs=`IFS=: |
| 12335 | for f in $ac_file_in; do |
| 12336 | case $f in |
| 12337 | -) echo $tmp/stdin ;; |
| 12338 | [\\/$]*) |
| 12339 | # Absolute (can't be DOS-style, as IFS=:) |
| 12340 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
| 12341 | echo "$as_me: error: cannot find input file: $f" >&2;} |
| 12342 | { (exit 1); exit 1; }; } |
| 12343 | # Do quote $f, to prevent DOS paths from being IFS'd. |
| 12344 | echo "$f";; |
| 12345 | *) # Relative |
| 12346 | if test -f "$f"; then |
| 12347 | # Build tree |
| 12348 | echo "$f" |
| 12349 | elif test -f "$srcdir/$f"; then |
| 12350 | # Source tree |
| 12351 | echo "$srcdir/$f" |
| 12352 | else |
| 12353 | # /dev/null tree |
| 12354 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
| 12355 | echo "$as_me: error: cannot find input file: $f" >&2;} |
| 12356 | { (exit 1); exit 1; }; } |
| 12357 | fi;; |
| 12358 | esac |
| 12359 | done` || { (exit 1); exit 1; } |
| 12360 | # Remove the trailing spaces. |
| 12361 | sed 's/[ ]*$//' $ac_file_inputs >$tmp/in |
| 12362 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 12363 | _ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 12364 | |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 12365 | # Transform confdefs.h into two sed scripts, `conftest.defines' and |
| 12366 | # `conftest.undefs', that substitutes the proper values into |
| 12367 | # config.h.in to produce config.h. The first handles `#define' |
| 12368 | # templates, and the second `#undef' templates. |
| 12369 | # And first: Protect against being on the right side of a sed subst in |
| 12370 | # config.status. Protect against being in an unquoted here document |
| 12371 | # in config.status. |
| 12372 | rm -f conftest.defines conftest.undefs |
| 12373 | # Using a here document instead of a string reduces the quoting nightmare. |
| 12374 | # Putting comments in sed scripts is not portable. |
| 12375 | # |
| 12376 | # `end' is used to avoid that the second main sed command (meant for |
| 12377 | # 0-ary CPP macros) applies to n-ary macro definitions. |
| 12378 | # See the Autoconf documentation for `clear'. |
| 12379 | cat >confdef2sed.sed <<\_ACEOF |
| 12380 | s/[\\&,]/\\&/g |
| 12381 | s,[\\$`],\\&,g |
| 12382 | t clear |
| 12383 | : clear |
| 12384 | s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp |
| 12385 | t end |
| 12386 | s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp |
| 12387 | : end |
| 12388 | _ACEOF |
| 12389 | # If some macros were called several times there might be several times |
| 12390 | # the same #defines, which is useless. Nevertheless, we may not want to |
| 12391 | # sort them, since we want the *last* AC-DEFINE to be honored. |
| 12392 | uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines |
| 12393 | sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs |
| 12394 | rm -f confdef2sed.sed |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 12395 | |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 12396 | # This sed command replaces #undef with comments. This is necessary, for |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 12397 | # example, in the case of _POSIX_SOURCE, which is predefined and required |
| 12398 | # on some systems where configure will not decide to define it. |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 12399 | cat >>conftest.undefs <<\_ACEOF |
| 12400 | s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, |
Benny Prijono | 9489e7a | 2008-09-19 22:18:50 +0000 | [diff] [blame] | 12401 | _ACEOF |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 12402 | |
| 12403 | # Break up conftest.defines because some shells have a limit on the size |
| 12404 | # of here documents, and old seds have small limits too (100 cmds). |
| 12405 | echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS |
| 12406 | echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS |
| 12407 | echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS |
| 12408 | echo ' :' >>$CONFIG_STATUS |
| 12409 | rm -f conftest.tail |
| 12410 | while grep . conftest.defines >/dev/null |
| 12411 | do |
| 12412 | # Write a limited-size here document to $tmp/defines.sed. |
| 12413 | echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS |
| 12414 | # Speed up: don't consider the non `#define' lines. |
| 12415 | echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS |
| 12416 | # Work around the forget-to-reset-the-flag bug. |
| 12417 | echo 't clr' >>$CONFIG_STATUS |
| 12418 | echo ': clr' >>$CONFIG_STATUS |
| 12419 | sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 12420 | echo 'CEOF |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 12421 | sed -f $tmp/defines.sed $tmp/in >$tmp/out |
| 12422 | rm -f $tmp/in |
| 12423 | mv $tmp/out $tmp/in |
| 12424 | ' >>$CONFIG_STATUS |
| 12425 | sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 12426 | rm -f conftest.defines |
| 12427 | mv conftest.tail conftest.defines |
| 12428 | done |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 12429 | rm -f conftest.defines |
| 12430 | echo ' fi # grep' >>$CONFIG_STATUS |
| 12431 | echo >>$CONFIG_STATUS |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 12432 | |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 12433 | # Break up conftest.undefs because some shells have a limit on the size |
| 12434 | # of here documents, and old seds have small limits too (100 cmds). |
| 12435 | echo ' # Handle all the #undef templates' >>$CONFIG_STATUS |
| 12436 | rm -f conftest.tail |
| 12437 | while grep . conftest.undefs >/dev/null |
| 12438 | do |
| 12439 | # Write a limited-size here document to $tmp/undefs.sed. |
| 12440 | echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS |
| 12441 | # Speed up: don't consider the non `#undef' |
| 12442 | echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS |
| 12443 | # Work around the forget-to-reset-the-flag bug. |
| 12444 | echo 't clr' >>$CONFIG_STATUS |
| 12445 | echo ': clr' >>$CONFIG_STATUS |
| 12446 | sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS |
| 12447 | echo 'CEOF |
| 12448 | sed -f $tmp/undefs.sed $tmp/in >$tmp/out |
| 12449 | rm -f $tmp/in |
| 12450 | mv $tmp/out $tmp/in |
| 12451 | ' >>$CONFIG_STATUS |
| 12452 | sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail |
| 12453 | rm -f conftest.undefs |
| 12454 | mv conftest.tail conftest.undefs |
| 12455 | done |
| 12456 | rm -f conftest.undefs |
| 12457 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 12458 | cat >>$CONFIG_STATUS <<\_ACEOF |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 12459 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
| 12460 | # use $as_me), people would be surprised to read: |
| 12461 | # /* config.h. Generated by config.status. */ |
| 12462 | if test x"$ac_file" = x-; then |
| 12463 | echo "/* Generated by configure. */" >$tmp/config.h |
| 12464 | else |
| 12465 | echo "/* $ac_file. Generated by configure. */" >$tmp/config.h |
| 12466 | fi |
| 12467 | cat $tmp/in >>$tmp/config.h |
| 12468 | rm -f $tmp/in |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 12469 | if test x"$ac_file" != x-; then |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 12470 | if diff $ac_file $tmp/config.h >/dev/null 2>&1; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 12471 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 12472 | echo "$as_me: $ac_file is unchanged" >&6;} |
| 12473 | else |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 12474 | ac_dir=`(dirname "$ac_file") 2>/dev/null || |
| 12475 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 12476 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 12477 | X"$ac_file" : 'X\(//\)$' \| \ |
| 12478 | X"$ac_file" : 'X\(/\)' \| \ |
| 12479 | . : '\(.\)' 2>/dev/null || |
| 12480 | echo X"$ac_file" | |
| 12481 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 12482 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 12483 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 12484 | /^X\(\/\).*/{ s//\1/; q; } |
| 12485 | s/.*/./; q'` |
| 12486 | { if $as_mkdir_p; then |
| 12487 | mkdir -p "$ac_dir" |
| 12488 | else |
| 12489 | as_dir="$ac_dir" |
| 12490 | as_dirs= |
| 12491 | while test ! -d "$as_dir"; do |
| 12492 | as_dirs="$as_dir $as_dirs" |
| 12493 | as_dir=`(dirname "$as_dir") 2>/dev/null || |
| 12494 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 12495 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 12496 | X"$as_dir" : 'X\(//\)$' \| \ |
| 12497 | X"$as_dir" : 'X\(/\)' \| \ |
| 12498 | . : '\(.\)' 2>/dev/null || |
| 12499 | echo X"$as_dir" | |
| 12500 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 12501 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 12502 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 12503 | /^X\(\/\).*/{ s//\1/; q; } |
| 12504 | s/.*/./; q'` |
| 12505 | done |
| 12506 | test ! -n "$as_dirs" || mkdir $as_dirs |
| 12507 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 |
| 12508 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} |
| 12509 | { (exit 1); exit 1; }; }; } |
| 12510 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 12511 | rm -f $ac_file |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 12512 | mv $tmp/config.h $ac_file |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 12513 | fi |
| 12514 | else |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 12515 | cat $tmp/config.h |
| 12516 | rm -f $tmp/config.h |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 12517 | fi |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 12518 | done |
| 12519 | _ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 12520 | |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 12521 | cat >>$CONFIG_STATUS <<\_ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 12522 | |
| 12523 | { (exit 0); exit 0; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 12524 | _ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 12525 | chmod +x $CONFIG_STATUS |
| 12526 | ac_clean_files=$ac_clean_files_save |
| 12527 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 12528 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 12529 | # configure is writing to config.log, and then calls config.status. |
| 12530 | # config.status does its own redirection, appending to config.log. |
| 12531 | # Unfortunately, on DOS this fails, as config.log is still kept open |
| 12532 | # by configure, so config.status won't be able to write to it; its |
| 12533 | # output is simply discarded. So we exec the FD to /dev/null, |
| 12534 | # effectively closing config.log, so it can be properly (re)opened and |
| 12535 | # appended to by config.status. When coming back to configure, we |
| 12536 | # need to make the FD available again. |
| 12537 | if test "$no_create" != yes; then |
| 12538 | ac_cs_success=: |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 12539 | ac_config_status_args= |
| 12540 | test "$silent" = yes && |
| 12541 | ac_config_status_args="$ac_config_status_args --quiet" |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 12542 | exec 5>/dev/null |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 12543 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 12544 | exec 5>>config.log |
| 12545 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
| 12546 | # would make configure fail if this is the last instruction. |
| 12547 | $ac_cs_success || { (exit 1); exit 1; } |
| 12548 | fi |
| 12549 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 12550 | |
Benny Prijono | d962784 | 2007-04-18 09:24:31 +0000 | [diff] [blame] | 12551 | |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 12552 | echo "$as_me:$LINENO: result: |
Benny Prijono | d962784 | 2007-04-18 09:24:31 +0000 | [diff] [blame] | 12553 | |
Benny Prijono | c16c6e3 | 2007-11-18 14:53:47 +0000 | [diff] [blame] | 12554 | 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] | 12555 | |
Benny Prijono | c16c6e3 | 2007-11-18 14:53:47 +0000 | [diff] [blame] | 12556 | Further customizations can be put in: |
Benny Prijono | d962784 | 2007-04-18 09:24:31 +0000 | [diff] [blame] | 12557 | - 'user.mak' |
| 12558 | - 'pjlib/include/pj/config_site.h' |
| 12559 | |
| 12560 | The next step now is to run 'make dep' and 'make'. |
| 12561 | " >&5 |
| 12562 | echo "${ECHO_T} |
| 12563 | |
Benny Prijono | c16c6e3 | 2007-11-18 14:53:47 +0000 | [diff] [blame] | 12564 | 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] | 12565 | |
Benny Prijono | c16c6e3 | 2007-11-18 14:53:47 +0000 | [diff] [blame] | 12566 | Further customizations can be put in: |
Benny Prijono | d962784 | 2007-04-18 09:24:31 +0000 | [diff] [blame] | 12567 | - 'user.mak' |
| 12568 | - 'pjlib/include/pj/config_site.h' |
| 12569 | |
| 12570 | The next step now is to run 'make dep' and 'make'. |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 12571 | " >&6 |
Benny Prijono | d962784 | 2007-04-18 09:24:31 +0000 | [diff] [blame] | 12572 | |