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 | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 3 | # Generated by GNU Autoconf 2.64 for pjproject 1.x. |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 4 | # |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5 | # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 6 | # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software |
| 7 | # Foundation, Inc. |
| 8 | # |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9 | # This configure script is free software; the Free Software Foundation |
| 10 | # gives unlimited permission to copy, distribute and modify it. |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 11 | ## -------------------- ## |
| 12 | ## M4sh Initialization. ## |
| 13 | ## -------------------- ## |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 14 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 15 | # Be more Bourne compatible |
| 16 | DUALCASE=1; export DUALCASE # for MKS sh |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 17 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 18 | emulate sh |
| 19 | NULLCMD=: |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 20 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 21 | # is contrary to our usage. Disable this feature. |
| 22 | alias -g '${1+"$@"}'='"$@"' |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 23 | setopt NO_GLOB_SUBST |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 24 | else |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 25 | case `(set -o) 2>/dev/null` in #( |
| 26 | *posix*) : |
| 27 | set -o posix ;; #( |
| 28 | *) : |
| 29 | ;; |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 30 | esac |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 31 | fi |
| 32 | |
| 33 | |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 34 | as_nl=' |
| 35 | ' |
| 36 | export as_nl |
| 37 | # Printing a long string crashes Solaris 7 /usr/bin/printf. |
| 38 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
| 39 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo |
| 40 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo |
| 41 | # Prefer a ksh shell builtin over an external printf program on Solaris, |
| 42 | # but without wasting forks for bash or zsh. |
| 43 | if test -z "$BASH_VERSION$ZSH_VERSION" \ |
| 44 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then |
| 45 | as_echo='print -r --' |
| 46 | as_echo_n='print -rn --' |
| 47 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then |
| 48 | as_echo='printf %s\n' |
| 49 | as_echo_n='printf %s' |
| 50 | else |
| 51 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then |
| 52 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' |
| 53 | as_echo_n='/usr/ucb/echo -n' |
| 54 | else |
| 55 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
| 56 | as_echo_n_body='eval |
| 57 | arg=$1; |
| 58 | case $arg in #( |
| 59 | *"$as_nl"*) |
| 60 | expr "X$arg" : "X\\(.*\\)$as_nl"; |
| 61 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; |
| 62 | esac; |
| 63 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" |
| 64 | ' |
| 65 | export as_echo_n_body |
| 66 | as_echo_n='sh -c $as_echo_n_body as_echo' |
| 67 | fi |
| 68 | export as_echo_body |
| 69 | as_echo='sh -c $as_echo_body as_echo' |
| 70 | fi |
Benny Prijono | d523370 | 2010-01-13 13:09:45 +0000 | [diff] [blame] | 71 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 72 | # The user is always right. |
| 73 | if test "${PATH_SEPARATOR+set}" != set; then |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 74 | PATH_SEPARATOR=: |
| 75 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { |
| 76 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || |
| 77 | PATH_SEPARATOR=';' |
| 78 | } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 79 | fi |
| 80 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 81 | |
| 82 | # IFS |
| 83 | # We need space, tab and new line, in precisely that order. Quoting is |
| 84 | # there to prevent editors from complaining about space-tab. |
| 85 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
| 86 | # splitting by setting IFS to empty value.) |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 87 | IFS=" "" $as_nl" |
| 88 | |
| 89 | # Find who we are. Look in the path if we contain no directory separator. |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 90 | case $0 in #(( |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 91 | *[\\/]* ) as_myself=$0 ;; |
| 92 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 93 | for as_dir in $PATH |
| 94 | do |
| 95 | IFS=$as_save_IFS |
| 96 | test -z "$as_dir" && as_dir=. |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 97 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 98 | done |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 99 | IFS=$as_save_IFS |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 100 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 101 | ;; |
| 102 | esac |
| 103 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 104 | # in which case we are not to be found in the path. |
| 105 | if test "x$as_myself" = x; then |
| 106 | as_myself=$0 |
| 107 | fi |
| 108 | if test ! -f "$as_myself"; then |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 109 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
| 110 | exit 1 |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 111 | fi |
| 112 | |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 113 | # Unset variables that we do not need and which cause bugs (e.g. in |
| 114 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" |
| 115 | # suppresses any "Segmentation fault" message there. '((' could |
| 116 | # trigger a bug in pdksh 5.2.14. |
| 117 | for as_var in BASH_ENV ENV MAIL MAILPATH |
| 118 | do eval test x\${$as_var+set} = xset \ |
| 119 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 120 | done |
| 121 | PS1='$ ' |
| 122 | PS2='> ' |
| 123 | PS4='+ ' |
| 124 | |
| 125 | # NLS nuisances. |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 126 | LC_ALL=C |
| 127 | export LC_ALL |
| 128 | LANGUAGE=C |
| 129 | export LANGUAGE |
Benny Prijono | fe0c127 | 2010-01-13 16:28:15 +0000 | [diff] [blame] | 130 | |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 131 | # CDPATH. |
| 132 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
| 133 | |
| 134 | if test "x$CONFIG_SHELL" = x; then |
| 135 | as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : |
| 136 | emulate sh |
| 137 | NULLCMD=: |
| 138 | # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which |
| 139 | # is contrary to our usage. Disable this feature. |
| 140 | alias -g '\${1+\"\$@\"}'='\"\$@\"' |
| 141 | setopt NO_GLOB_SUBST |
| 142 | else |
| 143 | case \`(set -o) 2>/dev/null\` in #( |
| 144 | *posix*) : |
| 145 | set -o posix ;; #( |
| 146 | *) : |
| 147 | ;; |
| 148 | esac |
| 149 | fi |
| 150 | " |
| 151 | as_required="as_fn_return () { (exit \$1); } |
| 152 | as_fn_success () { as_fn_return 0; } |
| 153 | as_fn_failure () { as_fn_return 1; } |
| 154 | as_fn_ret_success () { return 0; } |
| 155 | as_fn_ret_failure () { return 1; } |
| 156 | |
| 157 | exitcode=0 |
| 158 | as_fn_success || { exitcode=1; echo as_fn_success failed.; } |
| 159 | as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } |
| 160 | as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } |
| 161 | as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } |
| 162 | if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : |
| 163 | |
| 164 | else |
| 165 | exitcode=1; echo positional parameters were not saved. |
| 166 | fi |
| 167 | test x\$exitcode = x0 || exit 1" |
| 168 | as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO |
| 169 | as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO |
| 170 | eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && |
| 171 | test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 |
| 172 | test \$(( 1 + 1 )) = 2 || exit 1" |
| 173 | if (eval "$as_required") 2>/dev/null; then : |
| 174 | as_have_required=yes |
| 175 | else |
| 176 | as_have_required=no |
| 177 | fi |
| 178 | if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : |
| 179 | |
| 180 | else |
| 181 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 182 | as_found=false |
| 183 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
| 184 | do |
| 185 | IFS=$as_save_IFS |
| 186 | test -z "$as_dir" && as_dir=. |
| 187 | as_found=: |
| 188 | case $as_dir in #( |
| 189 | /*) |
| 190 | for as_base in sh bash ksh sh5; do |
| 191 | # Try only shells that exist, to save several forks. |
| 192 | as_shell=$as_dir/$as_base |
| 193 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && |
| 194 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : |
| 195 | CONFIG_SHELL=$as_shell as_have_required=yes |
| 196 | if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : |
| 197 | break 2 |
| 198 | fi |
| 199 | fi |
| 200 | done;; |
| 201 | esac |
| 202 | as_found=false |
| 203 | done |
| 204 | $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && |
| 205 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : |
| 206 | CONFIG_SHELL=$SHELL as_have_required=yes |
| 207 | fi; } |
| 208 | IFS=$as_save_IFS |
| 209 | |
| 210 | |
| 211 | if test "x$CONFIG_SHELL" != x; then : |
| 212 | # We cannot yet assume a decent shell, so we have to provide a |
| 213 | # neutralization value for shells without unset; and this also |
| 214 | # works around shells that cannot unset nonexistent variables. |
| 215 | BASH_ENV=/dev/null |
| 216 | ENV=/dev/null |
| 217 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV |
| 218 | export CONFIG_SHELL |
| 219 | exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} |
| 220 | fi |
| 221 | |
| 222 | if test x$as_have_required = xno; then : |
| 223 | $as_echo "$0: This script requires a shell more modern than all" |
| 224 | $as_echo "$0: the shells that I found on your system." |
| 225 | if test x${ZSH_VERSION+set} = xset ; then |
| 226 | $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" |
| 227 | $as_echo "$0: be upgraded to zsh 4.3.4 or later." |
| 228 | else |
| 229 | $as_echo "$0: Please tell bug-autoconf@gnu.org about your system, |
| 230 | $0: including any error possibly output before this |
| 231 | $0: message. Then install a modern shell, or manually run |
| 232 | $0: the script under such a shell if you do have one." |
| 233 | fi |
| 234 | exit 1 |
| 235 | fi |
| 236 | fi |
| 237 | fi |
| 238 | SHELL=${CONFIG_SHELL-/bin/sh} |
| 239 | export SHELL |
| 240 | # Unset more variables known to interfere with behavior of common tools. |
| 241 | CLICOLOR_FORCE= GREP_OPTIONS= |
| 242 | unset CLICOLOR_FORCE GREP_OPTIONS |
| 243 | |
| 244 | ## --------------------- ## |
| 245 | ## M4sh Shell Functions. ## |
| 246 | ## --------------------- ## |
| 247 | # as_fn_unset VAR |
| 248 | # --------------- |
| 249 | # Portably unset VAR. |
| 250 | as_fn_unset () |
| 251 | { |
| 252 | { eval $1=; unset $1;} |
| 253 | } |
| 254 | as_unset=as_fn_unset |
| 255 | |
| 256 | # as_fn_set_status STATUS |
| 257 | # ----------------------- |
| 258 | # Set $? to STATUS, without forking. |
| 259 | as_fn_set_status () |
| 260 | { |
| 261 | return $1 |
| 262 | } # as_fn_set_status |
| 263 | |
| 264 | # as_fn_exit STATUS |
| 265 | # ----------------- |
| 266 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. |
| 267 | as_fn_exit () |
| 268 | { |
| 269 | set +e |
| 270 | as_fn_set_status $1 |
| 271 | exit $1 |
| 272 | } # as_fn_exit |
| 273 | |
| 274 | # as_fn_mkdir_p |
| 275 | # ------------- |
| 276 | # Create "$as_dir" as a directory, including parents if necessary. |
| 277 | as_fn_mkdir_p () |
| 278 | { |
| 279 | |
| 280 | case $as_dir in #( |
| 281 | -*) as_dir=./$as_dir;; |
| 282 | esac |
| 283 | test -d "$as_dir" || eval $as_mkdir_p || { |
| 284 | as_dirs= |
| 285 | while :; do |
| 286 | case $as_dir in #( |
| 287 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
| 288 | *) as_qdir=$as_dir;; |
| 289 | esac |
| 290 | as_dirs="'$as_qdir' $as_dirs" |
| 291 | as_dir=`$as_dirname -- "$as_dir" || |
| 292 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 293 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 294 | X"$as_dir" : 'X\(//\)$' \| \ |
| 295 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
| 296 | $as_echo X"$as_dir" | |
| 297 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 298 | s//\1/ |
| 299 | q |
| 300 | } |
| 301 | /^X\(\/\/\)[^/].*/{ |
| 302 | s//\1/ |
| 303 | q |
| 304 | } |
| 305 | /^X\(\/\/\)$/{ |
| 306 | s//\1/ |
| 307 | q |
| 308 | } |
| 309 | /^X\(\/\).*/{ |
| 310 | s//\1/ |
| 311 | q |
| 312 | } |
| 313 | s/.*/./; q'` |
| 314 | test -d "$as_dir" && break |
| 315 | done |
| 316 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
| 317 | } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir" |
| 318 | |
| 319 | |
| 320 | } # as_fn_mkdir_p |
| 321 | # as_fn_append VAR VALUE |
| 322 | # ---------------------- |
| 323 | # Append the text in VALUE to the end of the definition contained in VAR. Take |
| 324 | # advantage of any shell optimizations that allow amortized linear growth over |
| 325 | # repeated appends, instead of the typical quadratic growth present in naive |
| 326 | # implementations. |
| 327 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : |
| 328 | eval 'as_fn_append () |
| 329 | { |
| 330 | eval $1+=\$2 |
| 331 | }' |
| 332 | else |
| 333 | as_fn_append () |
| 334 | { |
| 335 | eval $1=\$$1\$2 |
| 336 | } |
| 337 | fi # as_fn_append |
| 338 | |
| 339 | # as_fn_arith ARG... |
| 340 | # ------------------ |
| 341 | # Perform arithmetic evaluation on the ARGs, and store the result in the |
| 342 | # global $as_val. Take advantage of shells that can avoid forks. The arguments |
| 343 | # must be portable across $(()) and expr. |
| 344 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : |
| 345 | eval 'as_fn_arith () |
| 346 | { |
| 347 | as_val=$(( $* )) |
| 348 | }' |
| 349 | else |
| 350 | as_fn_arith () |
| 351 | { |
| 352 | as_val=`expr "$@" || test $? -eq 1` |
| 353 | } |
| 354 | fi # as_fn_arith |
| 355 | |
| 356 | |
| 357 | # as_fn_error ERROR [LINENO LOG_FD] |
| 358 | # --------------------------------- |
| 359 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
| 360 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the |
| 361 | # script with status $?, using 1 if that was 0. |
| 362 | as_fn_error () |
| 363 | { |
| 364 | as_status=$?; test $as_status -eq 0 && as_status=1 |
| 365 | if test "$3"; then |
| 366 | as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 367 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3 |
| 368 | fi |
| 369 | $as_echo "$as_me: error: $1" >&2 |
| 370 | as_fn_exit $as_status |
| 371 | } # as_fn_error |
| 372 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 373 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 374 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
| 375 | as_expr=expr |
| 376 | else |
| 377 | as_expr=false |
| 378 | fi |
| 379 | |
| 380 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
| 381 | as_basename=basename |
| 382 | else |
| 383 | as_basename=false |
| 384 | fi |
| 385 | |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 386 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
| 387 | as_dirname=dirname |
| 388 | else |
| 389 | as_dirname=false |
| 390 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 391 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 392 | as_me=`$as_basename -- "$0" || |
| 393 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 394 | X"$0" : 'X\(//\)$' \| \ |
| 395 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 396 | $as_echo X/"$0" | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 397 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
| 398 | s//\1/ |
| 399 | q |
| 400 | } |
| 401 | /^X\/\(\/\/\)$/{ |
| 402 | s//\1/ |
| 403 | q |
| 404 | } |
| 405 | /^X\/\(\/\).*/{ |
| 406 | s//\1/ |
| 407 | q |
| 408 | } |
| 409 | s/.*/./; q'` |
| 410 | |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 411 | # Avoid depending upon Character Ranges. |
| 412 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 413 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 414 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 415 | as_cr_digits='0123456789' |
| 416 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 417 | |
| 418 | |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 419 | as_lineno_1=$LINENO as_lineno_1a=$LINENO |
| 420 | as_lineno_2=$LINENO as_lineno_2a=$LINENO |
| 421 | eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && |
| 422 | test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { |
| 423 | # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 424 | sed -n ' |
| 425 | p |
| 426 | /[$]LINENO/= |
| 427 | ' <$as_myself | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 428 | sed ' |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 429 | s/[$]LINENO.*/&-/ |
| 430 | t lineno |
| 431 | b |
| 432 | :lineno |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 433 | N |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 434 | :loop |
| 435 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 436 | t loop |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 437 | s/-\n.*// |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 438 | ' >$as_me.lineno && |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 439 | chmod +x "$as_me.lineno" || |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 440 | { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 441 | |
| 442 | # Don't try to exec as it changes $[0], causing all sort of problems |
| 443 | # (the dirname of $[0] is not the place where we might find the |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 444 | # original and so on. Autoconf is especially sensitive to this). |
| 445 | . "./$as_me.lineno" |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 446 | # Exit status is that of the last command. |
| 447 | exit |
| 448 | } |
| 449 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 450 | ECHO_C= ECHO_N= ECHO_T= |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 451 | case `echo -n x` in #((((( |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 452 | -n*) |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 453 | case `echo 'xy\c'` in |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 454 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 455 | xy) ECHO_C='\c';; |
| 456 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null |
| 457 | ECHO_T=' ';; |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 458 | esac;; |
| 459 | *) |
| 460 | ECHO_N='-n';; |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 461 | esac |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 462 | |
| 463 | rm -f conf$$ conf$$.exe conf$$.file |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 464 | if test -d conf$$.dir; then |
| 465 | rm -f conf$$.dir/conf$$.file |
| 466 | else |
| 467 | rm -f conf$$.dir |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 468 | mkdir conf$$.dir 2>/dev/null |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 469 | fi |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 470 | if (echo >conf$$.file) 2>/dev/null; then |
| 471 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 472 | as_ln_s='ln -s' |
| 473 | # ... but there are two gotchas: |
| 474 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
| 475 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
| 476 | # In both cases, we have to default to `cp -p'. |
| 477 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
| 478 | as_ln_s='cp -p' |
| 479 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 480 | as_ln_s=ln |
| 481 | else |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 482 | as_ln_s='cp -p' |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 483 | fi |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 484 | else |
| 485 | as_ln_s='cp -p' |
| 486 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 487 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
| 488 | rmdir conf$$.dir 2>/dev/null |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 489 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 490 | if mkdir -p . 2>/dev/null; then |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 491 | as_mkdir_p='mkdir -p "$as_dir"' |
Benny Prijono | 39ae2da | 2006-10-13 17:57:42 +0000 | [diff] [blame] | 492 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 493 | test -d ./-p && rmdir ./-p |
| 494 | as_mkdir_p=false |
Benny Prijono | 39ae2da | 2006-10-13 17:57:42 +0000 | [diff] [blame] | 495 | fi |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 496 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 497 | if test -x / >/dev/null 2>&1; then |
| 498 | as_test_x='test -x' |
| 499 | else |
| 500 | if ls -dL / >/dev/null 2>&1; then |
| 501 | as_ls_L_option=L |
| 502 | else |
| 503 | as_ls_L_option= |
| 504 | fi |
| 505 | as_test_x=' |
| 506 | eval sh -c '\'' |
| 507 | if test -d "$1"; then |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 508 | test -d "$1/."; |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 509 | else |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 510 | case $1 in #( |
| 511 | -*)set "./$1";; |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 512 | esac; |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 513 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 514 | ???[sx]*):;;*)false;;esac;fi |
| 515 | '\'' sh |
| 516 | ' |
| 517 | fi |
| 518 | as_executable_p=$as_test_x |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 519 | |
| 520 | # Sed expression to map a string onto a valid CPP name. |
| 521 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
| 522 | |
| 523 | # Sed expression to map a string onto a valid variable name. |
| 524 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
| 525 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 526 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 527 | exec 7<&0 </dev/null 6>&1 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 528 | |
| 529 | # Name of the host. |
| 530 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, |
| 531 | # so uname gets run too. |
| 532 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` |
| 533 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 534 | # |
| 535 | # Initializations. |
| 536 | # |
| 537 | ac_default_prefix=/usr/local |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 538 | ac_clean_files= |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 539 | ac_config_libobj_dir=. |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 540 | LIBOBJS= |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 541 | cross_compiling=no |
| 542 | subdirs= |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 543 | MFLAGS= |
| 544 | MAKEFLAGS= |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 545 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 546 | # Identity of this package. |
| 547 | PACKAGE_NAME='pjproject' |
| 548 | PACKAGE_TARNAME='pjproject' |
Benny Prijono | 8a9b3b2 | 2010-01-14 14:46:54 +0000 | [diff] [blame] | 549 | PACKAGE_VERSION='1.x' |
| 550 | PACKAGE_STRING='pjproject 1.x' |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 551 | PACKAGE_BUGREPORT='' |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 552 | PACKAGE_URL='' |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 553 | |
| 554 | # Factoring default headers for most tests. |
| 555 | ac_includes_default="\ |
| 556 | #include <stdio.h> |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 557 | #ifdef HAVE_SYS_TYPES_H |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 558 | # include <sys/types.h> |
| 559 | #endif |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 560 | #ifdef HAVE_SYS_STAT_H |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 561 | # include <sys/stat.h> |
| 562 | #endif |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 563 | #ifdef STDC_HEADERS |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 564 | # include <stdlib.h> |
| 565 | # include <stddef.h> |
| 566 | #else |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 567 | # ifdef HAVE_STDLIB_H |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 568 | # include <stdlib.h> |
| 569 | # endif |
| 570 | #endif |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 571 | #ifdef HAVE_STRING_H |
| 572 | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 573 | # include <memory.h> |
| 574 | # endif |
| 575 | # include <string.h> |
| 576 | #endif |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 577 | #ifdef HAVE_STRINGS_H |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 578 | # include <strings.h> |
| 579 | #endif |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 580 | #ifdef HAVE_INTTYPES_H |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 581 | # include <inttypes.h> |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 582 | #endif |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 583 | #ifdef HAVE_STDINT_H |
| 584 | # include <stdint.h> |
| 585 | #endif |
| 586 | #ifdef HAVE_UNISTD_H |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 587 | # include <unistd.h> |
| 588 | #endif" |
| 589 | |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 590 | ac_subst_vars='LTLIBOBJS |
Benny Prijono | 46bd084 | 2010-02-12 14:12:41 +0000 | [diff] [blame] | 591 | LIBOBJS |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 592 | ac_main_obj |
| 593 | ac_host |
| 594 | ac_linux_poll |
| 595 | ac_cross_compile |
| 596 | libcrypto_present |
| 597 | libssl_present |
| 598 | openssl_h_present |
| 599 | ac_no_ssl |
| 600 | ac_no_ilbc_codec |
| 601 | ac_no_speex_codec |
| 602 | ac_no_g7221_codec |
| 603 | ac_no_g722_codec |
| 604 | ac_no_gsm_codec |
| 605 | ac_no_l16_codec |
| 606 | ac_no_g711_codec |
| 607 | ac_no_speex_aec |
| 608 | ac_no_large_filter |
| 609 | ac_no_small_filter |
| 610 | ac_pa_use_oss |
| 611 | ac_pa_use_alsa |
| 612 | ac_pa_cflags |
| 613 | ac_external_pa |
| 614 | ac_pjmedia_snd |
| 615 | ac_external_gsm |
| 616 | ac_external_speex |
| 617 | ac_os_objs |
| 618 | EGREP |
| 619 | GREP |
| 620 | CPP |
| 621 | ac_build_mak_vars |
| 622 | ac_pjdir |
| 623 | ac_ct_CXX |
| 624 | CXXFLAGS |
| 625 | CXX |
| 626 | OBJEXT |
| 627 | EXEEXT |
| 628 | ac_ct_CC |
| 629 | CPPFLAGS |
| 630 | LDFLAGS |
| 631 | CFLAGS |
| 632 | CC |
| 633 | target_os |
| 634 | target_vendor |
| 635 | target_cpu |
| 636 | target |
| 637 | host_os |
| 638 | host_vendor |
| 639 | host_cpu |
| 640 | host |
| 641 | build_os |
| 642 | build_vendor |
| 643 | build_cpu |
| 644 | build |
| 645 | target_alias |
| 646 | host_alias |
| 647 | build_alias |
| 648 | LIBS |
| 649 | ECHO_T |
| 650 | ECHO_N |
| 651 | ECHO_C |
| 652 | DEFS |
| 653 | mandir |
| 654 | localedir |
| 655 | libdir |
| 656 | psdir |
| 657 | pdfdir |
| 658 | dvidir |
| 659 | htmldir |
| 660 | infodir |
| 661 | docdir |
| 662 | oldincludedir |
| 663 | includedir |
| 664 | localstatedir |
| 665 | sharedstatedir |
| 666 | sysconfdir |
| 667 | datadir |
| 668 | datarootdir |
| 669 | libexecdir |
| 670 | sbindir |
| 671 | bindir |
| 672 | program_transform_name |
| 673 | prefix |
| 674 | exec_prefix |
| 675 | PACKAGE_URL |
| 676 | PACKAGE_BUGREPORT |
| 677 | PACKAGE_STRING |
| 678 | PACKAGE_VERSION |
| 679 | PACKAGE_TARNAME |
| 680 | PACKAGE_NAME |
| 681 | PATH_SEPARATOR |
| 682 | SHELL' |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 683 | ac_subst_files='' |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 684 | ac_user_opts=' |
| 685 | enable_option_checking |
| 686 | enable_floating_point |
| 687 | enable_epoll |
| 688 | with_external_speex |
| 689 | with_external_gsm |
| 690 | enable_sound |
| 691 | with_external_pa |
| 692 | enable_oss |
| 693 | enable_ext_sound |
| 694 | enable_small_filter |
| 695 | enable_large_filter |
| 696 | enable_speex_aec |
| 697 | enable_g711_codec |
| 698 | enable_l16_codec |
| 699 | enable_gsm_codec |
| 700 | enable_g722_codec |
| 701 | enable_g7221_codec |
| 702 | enable_speex_codec |
| 703 | enable_ilbc_codec |
| 704 | enable_libsamplerate |
| 705 | enable_ipp |
| 706 | with_ipp |
| 707 | with_ipp_samples |
| 708 | with_ipp_arch |
| 709 | enable_ssl |
| 710 | ' |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 711 | ac_precious_vars='build_alias |
| 712 | host_alias |
| 713 | target_alias |
| 714 | CC |
| 715 | CFLAGS |
| 716 | LDFLAGS |
| 717 | LIBS |
| 718 | CPPFLAGS |
| 719 | CXX |
| 720 | CXXFLAGS |
| 721 | CCC |
| 722 | CPP' |
| 723 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 724 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 725 | # Initialize some variables set by options. |
| 726 | ac_init_help= |
| 727 | ac_init_version=false |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 728 | ac_unrecognized_opts= |
| 729 | ac_unrecognized_sep= |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 730 | # The variables have the same names as the options, with |
| 731 | # dashes changed to underlines. |
| 732 | cache_file=/dev/null |
| 733 | exec_prefix=NONE |
| 734 | no_create= |
| 735 | no_recursion= |
| 736 | prefix=NONE |
| 737 | program_prefix=NONE |
| 738 | program_suffix=NONE |
| 739 | program_transform_name=s,x,x, |
| 740 | silent= |
| 741 | site= |
| 742 | srcdir= |
| 743 | verbose= |
| 744 | x_includes=NONE |
| 745 | x_libraries=NONE |
| 746 | |
| 747 | # Installation directory options. |
| 748 | # These are left unexpanded so users can "make install exec_prefix=/foo" |
| 749 | # and all the variables that are supposed to be based on exec_prefix |
| 750 | # by default will actually change. |
| 751 | # Use braces instead of parens because sh, perl, etc. also accept them. |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 752 | # (The list follows the same order as the GNU Coding Standards.) |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 753 | bindir='${exec_prefix}/bin' |
| 754 | sbindir='${exec_prefix}/sbin' |
| 755 | libexecdir='${exec_prefix}/libexec' |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 756 | datarootdir='${prefix}/share' |
| 757 | datadir='${datarootdir}' |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 758 | sysconfdir='${prefix}/etc' |
| 759 | sharedstatedir='${prefix}/com' |
| 760 | localstatedir='${prefix}/var' |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 761 | includedir='${prefix}/include' |
| 762 | oldincludedir='/usr/include' |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 763 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' |
| 764 | infodir='${datarootdir}/info' |
| 765 | htmldir='${docdir}' |
| 766 | dvidir='${docdir}' |
| 767 | pdfdir='${docdir}' |
| 768 | psdir='${docdir}' |
| 769 | libdir='${exec_prefix}/lib' |
| 770 | localedir='${datarootdir}/locale' |
| 771 | mandir='${datarootdir}/man' |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 772 | |
| 773 | ac_prev= |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 774 | ac_dashdash= |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 775 | for ac_option |
| 776 | do |
| 777 | # If the previous option needs an argument, assign it. |
| 778 | if test -n "$ac_prev"; then |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 779 | eval $ac_prev=\$ac_option |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 780 | ac_prev= |
| 781 | continue |
| 782 | fi |
| 783 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 784 | case $ac_option in |
| 785 | *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
| 786 | *) ac_optarg=yes ;; |
| 787 | esac |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 788 | |
| 789 | # Accept the important Cygnus configure options, so we can diagnose typos. |
| 790 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 791 | case $ac_dashdash$ac_option in |
| 792 | --) |
| 793 | ac_dashdash=yes ;; |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 794 | |
| 795 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
| 796 | ac_prev=bindir ;; |
| 797 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
| 798 | bindir=$ac_optarg ;; |
| 799 | |
| 800 | -build | --build | --buil | --bui | --bu) |
| 801 | ac_prev=build_alias ;; |
| 802 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
| 803 | build_alias=$ac_optarg ;; |
| 804 | |
| 805 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
| 806 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
| 807 | ac_prev=cache_file ;; |
| 808 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
| 809 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
| 810 | cache_file=$ac_optarg ;; |
| 811 | |
| 812 | --config-cache | -C) |
| 813 | cache_file=config.cache ;; |
| 814 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 815 | -datadir | --datadir | --datadi | --datad) |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 816 | ac_prev=datadir ;; |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 817 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 818 | datadir=$ac_optarg ;; |
| 819 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 820 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
| 821 | | --dataroo | --dataro | --datar) |
| 822 | ac_prev=datarootdir ;; |
| 823 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ |
| 824 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) |
| 825 | datarootdir=$ac_optarg ;; |
| 826 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 827 | -disable-* | --disable-*) |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 828 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 829 | # Reject names that are not valid shell variable names. |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 830 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
| 831 | as_fn_error "invalid feature name: $ac_useropt" |
| 832 | ac_useropt_orig=$ac_useropt |
| 833 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 834 | case $ac_user_opts in |
| 835 | *" |
| 836 | "enable_$ac_useropt" |
| 837 | "*) ;; |
| 838 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" |
| 839 | ac_unrecognized_sep=', ';; |
| 840 | esac |
| 841 | eval enable_$ac_useropt=no ;; |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 842 | |
| 843 | -docdir | --docdir | --docdi | --doc | --do) |
| 844 | ac_prev=docdir ;; |
| 845 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) |
| 846 | docdir=$ac_optarg ;; |
| 847 | |
| 848 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) |
| 849 | ac_prev=dvidir ;; |
| 850 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) |
| 851 | dvidir=$ac_optarg ;; |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 852 | |
| 853 | -enable-* | --enable-*) |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 854 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 855 | # Reject names that are not valid shell variable names. |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 856 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
| 857 | as_fn_error "invalid feature name: $ac_useropt" |
| 858 | ac_useropt_orig=$ac_useropt |
| 859 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 860 | case $ac_user_opts in |
| 861 | *" |
| 862 | "enable_$ac_useropt" |
| 863 | "*) ;; |
| 864 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" |
| 865 | ac_unrecognized_sep=', ';; |
| 866 | esac |
| 867 | eval enable_$ac_useropt=\$ac_optarg ;; |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 868 | |
| 869 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
| 870 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
| 871 | | --exec | --exe | --ex) |
| 872 | ac_prev=exec_prefix ;; |
| 873 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
| 874 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
| 875 | | --exec=* | --exe=* | --ex=*) |
| 876 | exec_prefix=$ac_optarg ;; |
| 877 | |
| 878 | -gas | --gas | --ga | --g) |
| 879 | # Obsolete; use --with-gas. |
| 880 | with_gas=yes ;; |
| 881 | |
| 882 | -help | --help | --hel | --he | -h) |
| 883 | ac_init_help=long ;; |
| 884 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
| 885 | ac_init_help=recursive ;; |
| 886 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
| 887 | ac_init_help=short ;; |
| 888 | |
| 889 | -host | --host | --hos | --ho) |
| 890 | ac_prev=host_alias ;; |
| 891 | -host=* | --host=* | --hos=* | --ho=*) |
| 892 | host_alias=$ac_optarg ;; |
| 893 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 894 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
| 895 | ac_prev=htmldir ;; |
| 896 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ |
| 897 | | --ht=*) |
| 898 | htmldir=$ac_optarg ;; |
| 899 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 900 | -includedir | --includedir | --includedi | --included | --include \ |
| 901 | | --includ | --inclu | --incl | --inc) |
| 902 | ac_prev=includedir ;; |
| 903 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
| 904 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
| 905 | includedir=$ac_optarg ;; |
| 906 | |
| 907 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
| 908 | ac_prev=infodir ;; |
| 909 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
| 910 | infodir=$ac_optarg ;; |
| 911 | |
| 912 | -libdir | --libdir | --libdi | --libd) |
| 913 | ac_prev=libdir ;; |
| 914 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
| 915 | libdir=$ac_optarg ;; |
| 916 | |
| 917 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
| 918 | | --libexe | --libex | --libe) |
| 919 | ac_prev=libexecdir ;; |
| 920 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
| 921 | | --libexe=* | --libex=* | --libe=*) |
| 922 | libexecdir=$ac_optarg ;; |
| 923 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 924 | -localedir | --localedir | --localedi | --localed | --locale) |
| 925 | ac_prev=localedir ;; |
| 926 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) |
| 927 | localedir=$ac_optarg ;; |
| 928 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 929 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 930 | | --localstate | --localstat | --localsta | --localst | --locals) |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 931 | ac_prev=localstatedir ;; |
| 932 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 933 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 934 | localstatedir=$ac_optarg ;; |
| 935 | |
| 936 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
| 937 | ac_prev=mandir ;; |
| 938 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
| 939 | mandir=$ac_optarg ;; |
| 940 | |
| 941 | -nfp | --nfp | --nf) |
| 942 | # Obsolete; use --without-fp. |
| 943 | with_fp=no ;; |
| 944 | |
| 945 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 946 | | --no-cr | --no-c | -n) |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 947 | no_create=yes ;; |
| 948 | |
| 949 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
| 950 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
| 951 | no_recursion=yes ;; |
| 952 | |
| 953 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
| 954 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
| 955 | | --oldin | --oldi | --old | --ol | --o) |
| 956 | ac_prev=oldincludedir ;; |
| 957 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
| 958 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
| 959 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
| 960 | oldincludedir=$ac_optarg ;; |
| 961 | |
| 962 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
| 963 | ac_prev=prefix ;; |
| 964 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
| 965 | prefix=$ac_optarg ;; |
| 966 | |
| 967 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
| 968 | | --program-pre | --program-pr | --program-p) |
| 969 | ac_prev=program_prefix ;; |
| 970 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
| 971 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
| 972 | program_prefix=$ac_optarg ;; |
| 973 | |
| 974 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
| 975 | | --program-suf | --program-su | --program-s) |
| 976 | ac_prev=program_suffix ;; |
| 977 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
| 978 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
| 979 | program_suffix=$ac_optarg ;; |
| 980 | |
| 981 | -program-transform-name | --program-transform-name \ |
| 982 | | --program-transform-nam | --program-transform-na \ |
| 983 | | --program-transform-n | --program-transform- \ |
| 984 | | --program-transform | --program-transfor \ |
| 985 | | --program-transfo | --program-transf \ |
| 986 | | --program-trans | --program-tran \ |
| 987 | | --progr-tra | --program-tr | --program-t) |
| 988 | ac_prev=program_transform_name ;; |
| 989 | -program-transform-name=* | --program-transform-name=* \ |
| 990 | | --program-transform-nam=* | --program-transform-na=* \ |
| 991 | | --program-transform-n=* | --program-transform-=* \ |
| 992 | | --program-transform=* | --program-transfor=* \ |
| 993 | | --program-transfo=* | --program-transf=* \ |
| 994 | | --program-trans=* | --program-tran=* \ |
| 995 | | --progr-tra=* | --program-tr=* | --program-t=*) |
| 996 | program_transform_name=$ac_optarg ;; |
| 997 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 998 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
| 999 | ac_prev=pdfdir ;; |
| 1000 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) |
| 1001 | pdfdir=$ac_optarg ;; |
| 1002 | |
| 1003 | -psdir | --psdir | --psdi | --psd | --ps) |
| 1004 | ac_prev=psdir ;; |
| 1005 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) |
| 1006 | psdir=$ac_optarg ;; |
| 1007 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1008 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 1009 | | -silent | --silent | --silen | --sile | --sil) |
| 1010 | silent=yes ;; |
| 1011 | |
| 1012 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
| 1013 | ac_prev=sbindir ;; |
| 1014 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
| 1015 | | --sbi=* | --sb=*) |
| 1016 | sbindir=$ac_optarg ;; |
| 1017 | |
| 1018 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
| 1019 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
| 1020 | | --sharedst | --shareds | --shared | --share | --shar \ |
| 1021 | | --sha | --sh) |
| 1022 | ac_prev=sharedstatedir ;; |
| 1023 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
| 1024 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
| 1025 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
| 1026 | | --sha=* | --sh=*) |
| 1027 | sharedstatedir=$ac_optarg ;; |
| 1028 | |
| 1029 | -site | --site | --sit) |
| 1030 | ac_prev=site ;; |
| 1031 | -site=* | --site=* | --sit=*) |
| 1032 | site=$ac_optarg ;; |
| 1033 | |
| 1034 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
| 1035 | ac_prev=srcdir ;; |
| 1036 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
| 1037 | srcdir=$ac_optarg ;; |
| 1038 | |
| 1039 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
| 1040 | | --syscon | --sysco | --sysc | --sys | --sy) |
| 1041 | ac_prev=sysconfdir ;; |
| 1042 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
| 1043 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
| 1044 | sysconfdir=$ac_optarg ;; |
| 1045 | |
| 1046 | -target | --target | --targe | --targ | --tar | --ta | --t) |
| 1047 | ac_prev=target_alias ;; |
| 1048 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
| 1049 | target_alias=$ac_optarg ;; |
| 1050 | |
| 1051 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
| 1052 | verbose=yes ;; |
| 1053 | |
| 1054 | -version | --version | --versio | --versi | --vers | -V) |
| 1055 | ac_init_version=: ;; |
| 1056 | |
| 1057 | -with-* | --with-*) |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 1058 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1059 | # Reject names that are not valid shell variable names. |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 1060 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
| 1061 | as_fn_error "invalid package name: $ac_useropt" |
| 1062 | ac_useropt_orig=$ac_useropt |
| 1063 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 1064 | case $ac_user_opts in |
| 1065 | *" |
| 1066 | "with_$ac_useropt" |
| 1067 | "*) ;; |
| 1068 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" |
| 1069 | ac_unrecognized_sep=', ';; |
| 1070 | esac |
| 1071 | eval with_$ac_useropt=\$ac_optarg ;; |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1072 | |
| 1073 | -without-* | --without-*) |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 1074 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1075 | # Reject names that are not valid shell variable names. |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 1076 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
| 1077 | as_fn_error "invalid package name: $ac_useropt" |
| 1078 | ac_useropt_orig=$ac_useropt |
| 1079 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 1080 | case $ac_user_opts in |
| 1081 | *" |
| 1082 | "with_$ac_useropt" |
| 1083 | "*) ;; |
| 1084 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" |
| 1085 | ac_unrecognized_sep=', ';; |
| 1086 | esac |
| 1087 | eval with_$ac_useropt=no ;; |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1088 | |
| 1089 | --x) |
| 1090 | # Obsolete; use --with-x. |
| 1091 | with_x=yes ;; |
| 1092 | |
| 1093 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
| 1094 | | --x-incl | --x-inc | --x-in | --x-i) |
| 1095 | ac_prev=x_includes ;; |
| 1096 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
| 1097 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
| 1098 | x_includes=$ac_optarg ;; |
| 1099 | |
| 1100 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
| 1101 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
| 1102 | ac_prev=x_libraries ;; |
| 1103 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
| 1104 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
| 1105 | x_libraries=$ac_optarg ;; |
| 1106 | |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 1107 | -*) as_fn_error "unrecognized option: \`$ac_option' |
| 1108 | Try \`$0 --help' for more information." |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1109 | ;; |
| 1110 | |
| 1111 | *=*) |
| 1112 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
| 1113 | # Reject names that are not valid shell variable names. |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 1114 | case $ac_envvar in #( |
| 1115 | '' | [0-9]* | *[!_$as_cr_alnum]* ) |
| 1116 | as_fn_error "invalid variable name: \`$ac_envvar'" ;; |
| 1117 | esac |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1118 | eval $ac_envvar=\$ac_optarg |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1119 | export $ac_envvar ;; |
| 1120 | |
| 1121 | *) |
| 1122 | # FIXME: should be removed in autoconf 3.0. |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 1123 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1124 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 1125 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1126 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} |
| 1127 | ;; |
| 1128 | |
| 1129 | esac |
| 1130 | done |
| 1131 | |
| 1132 | if test -n "$ac_prev"; then |
| 1133 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 1134 | as_fn_error "missing argument to $ac_option" |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1135 | fi |
| 1136 | |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 1137 | if test -n "$ac_unrecognized_opts"; then |
| 1138 | case $enable_option_checking in |
| 1139 | no) ;; |
| 1140 | fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;; |
| 1141 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; |
| 1142 | esac |
| 1143 | fi |
| 1144 | |
| 1145 | # Check all directory arguments for consistency. |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1146 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
| 1147 | datadir sysconfdir sharedstatedir localstatedir includedir \ |
| 1148 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ |
| 1149 | libdir localedir mandir |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1150 | do |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1151 | eval ac_val=\$$ac_var |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 1152 | # Remove trailing slashes. |
| 1153 | case $ac_val in |
| 1154 | */ ) |
| 1155 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` |
| 1156 | eval $ac_var=\$ac_val;; |
| 1157 | esac |
| 1158 | # Be sure to have absolute directory names. |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1159 | case $ac_val in |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1160 | [\\/$]* | ?:[\\/]* ) continue;; |
| 1161 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1162 | esac |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 1163 | as_fn_error "expected an absolute directory name for --$ac_var: $ac_val" |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1164 | done |
| 1165 | |
| 1166 | # There might be people who depend on the old broken behavior: `$host' |
| 1167 | # used to hold the argument of --host etc. |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1168 | # FIXME: To remove some day. |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1169 | build=$build_alias |
| 1170 | host=$host_alias |
| 1171 | target=$target_alias |
| 1172 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1173 | # FIXME: To remove some day. |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1174 | if test "x$host_alias" != x; then |
| 1175 | if test "x$build_alias" = x; then |
| 1176 | cross_compiling=maybe |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 1177 | $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1178 | If a cross compiler is detected then cross compile mode will be used." >&2 |
| 1179 | elif test "x$build_alias" != "x$host_alias"; then |
| 1180 | cross_compiling=yes |
| 1181 | fi |
| 1182 | fi |
| 1183 | |
| 1184 | ac_tool_prefix= |
| 1185 | test -n "$host_alias" && ac_tool_prefix=$host_alias- |
| 1186 | |
| 1187 | test "$silent" = yes && exec 6>/dev/null |
| 1188 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1189 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1190 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
| 1191 | ac_ls_di=`ls -di .` && |
| 1192 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 1193 | as_fn_error "working directory cannot be determined" |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1194 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 1195 | as_fn_error "pwd does not report name of working directory" |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1196 | |
| 1197 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1198 | # Find the source files, if location was not specified. |
| 1199 | if test -z "$srcdir"; then |
| 1200 | ac_srcdir_defaulted=yes |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1201 | # Try the directory containing this script, then the parent directory. |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 1202 | ac_confdir=`$as_dirname -- "$as_myself" || |
| 1203 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 1204 | X"$as_myself" : 'X\(//\)[^/]' \| \ |
| 1205 | X"$as_myself" : 'X\(//\)$' \| \ |
| 1206 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || |
| 1207 | $as_echo X"$as_myself" | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1208 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 1209 | s//\1/ |
| 1210 | q |
| 1211 | } |
| 1212 | /^X\(\/\/\)[^/].*/{ |
| 1213 | s//\1/ |
| 1214 | q |
| 1215 | } |
| 1216 | /^X\(\/\/\)$/{ |
| 1217 | s//\1/ |
| 1218 | q |
| 1219 | } |
| 1220 | /^X\(\/\).*/{ |
| 1221 | s//\1/ |
| 1222 | q |
| 1223 | } |
| 1224 | s/.*/./; q'` |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1225 | srcdir=$ac_confdir |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1226 | if test ! -r "$srcdir/$ac_unique_file"; then |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1227 | srcdir=.. |
| 1228 | fi |
| 1229 | else |
| 1230 | ac_srcdir_defaulted=no |
| 1231 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1232 | if test ! -r "$srcdir/$ac_unique_file"; then |
| 1233 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 1234 | as_fn_error "cannot find sources ($ac_unique_file) in $srcdir" |
Benny Prijono | 9489e7a | 2008-09-19 22:18:50 +0000 | [diff] [blame] | 1235 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1236 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
| 1237 | ac_abs_confdir=`( |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 1238 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg" |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1239 | pwd)` |
| 1240 | # When building in place, set srcdir=. |
| 1241 | if test "$ac_abs_confdir" = "$ac_pwd"; then |
| 1242 | srcdir=. |
| 1243 | fi |
| 1244 | # Remove unnecessary trailing slashes from srcdir. |
| 1245 | # Double slashes in file names in object file debugging info |
| 1246 | # mess up M-x gdb in Emacs. |
| 1247 | case $srcdir in |
| 1248 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; |
| 1249 | esac |
| 1250 | for ac_var in $ac_precious_vars; do |
| 1251 | eval ac_env_${ac_var}_set=\${${ac_var}+set} |
| 1252 | eval ac_env_${ac_var}_value=\$${ac_var} |
| 1253 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} |
| 1254 | eval ac_cv_env_${ac_var}_value=\$${ac_var} |
| 1255 | done |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1256 | |
| 1257 | # |
| 1258 | # Report the --help message. |
| 1259 | # |
| 1260 | if test "$ac_init_help" = "long"; then |
| 1261 | # Omit some internal or obsolete options to make the list less imposing. |
| 1262 | # 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] | 1263 | cat <<_ACEOF |
Benny Prijono | 8a9b3b2 | 2010-01-14 14:46:54 +0000 | [diff] [blame] | 1264 | \`configure' configures pjproject 1.x to adapt to many kinds of systems. |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1265 | |
| 1266 | Usage: $0 [OPTION]... [VAR=VALUE]... |
| 1267 | |
| 1268 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
| 1269 | VAR=VALUE. See below for descriptions of some of the useful variables. |
| 1270 | |
| 1271 | Defaults for the options are specified in brackets. |
| 1272 | |
| 1273 | Configuration: |
| 1274 | -h, --help display this help and exit |
| 1275 | --help=short display options specific to this package |
| 1276 | --help=recursive display the short help of all the included packages |
| 1277 | -V, --version display version information and exit |
| 1278 | -q, --quiet, --silent do not print \`checking...' messages |
| 1279 | --cache-file=FILE cache test results in FILE [disabled] |
| 1280 | -C, --config-cache alias for \`--cache-file=config.cache' |
| 1281 | -n, --no-create do not create output files |
| 1282 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] |
| 1283 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1284 | Installation directories: |
| 1285 | --prefix=PREFIX install architecture-independent files in PREFIX |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 1286 | [$ac_default_prefix] |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1287 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 1288 | [PREFIX] |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1289 | |
| 1290 | By default, \`make install' will install all the files in |
| 1291 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
| 1292 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
| 1293 | for instance \`--prefix=\$HOME'. |
| 1294 | |
| 1295 | For better control, use the options below. |
| 1296 | |
| 1297 | Fine tuning of the installation directories: |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 1298 | --bindir=DIR user executables [EPREFIX/bin] |
| 1299 | --sbindir=DIR system admin executables [EPREFIX/sbin] |
| 1300 | --libexecdir=DIR program executables [EPREFIX/libexec] |
| 1301 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
| 1302 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
| 1303 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
| 1304 | --libdir=DIR object code libraries [EPREFIX/lib] |
| 1305 | --includedir=DIR C header files [PREFIX/include] |
| 1306 | --oldincludedir=DIR C header files for non-gcc [/usr/include] |
| 1307 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] |
| 1308 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] |
| 1309 | --infodir=DIR info documentation [DATAROOTDIR/info] |
| 1310 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] |
| 1311 | --mandir=DIR man documentation [DATAROOTDIR/man] |
| 1312 | --docdir=DIR documentation root [DATAROOTDIR/doc/pjproject] |
| 1313 | --htmldir=DIR html documentation [DOCDIR] |
| 1314 | --dvidir=DIR dvi documentation [DOCDIR] |
| 1315 | --pdfdir=DIR pdf documentation [DOCDIR] |
| 1316 | --psdir=DIR ps documentation [DOCDIR] |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1317 | _ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1318 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1319 | cat <<\_ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1320 | |
| 1321 | System types: |
| 1322 | --build=BUILD configure for building on BUILD [guessed] |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1323 | --host=HOST cross-compile to build programs to run on HOST [BUILD] |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1324 | --target=TARGET configure for building compilers for TARGET [HOST] |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1325 | _ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1326 | fi |
| 1327 | |
| 1328 | if test -n "$ac_init_help"; then |
| 1329 | case $ac_init_help in |
Benny Prijono | 8a9b3b2 | 2010-01-14 14:46:54 +0000 | [diff] [blame] | 1330 | short | recursive ) echo "Configuration of pjproject 1.x:";; |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1331 | esac |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1332 | cat <<\_ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1333 | |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 1334 | Optional Features: |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 1335 | --disable-option-checking ignore unrecognized --enable/--with options |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 1336 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
| 1337 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
| 1338 | --disable-floating-point |
| 1339 | Disable floating point where possible |
Benny Prijono | 9489e7a | 2008-09-19 22:18:50 +0000 | [diff] [blame] | 1340 | --enable-epoll Use /dev/epoll ioqueue on Linux (experimental) |
Benny Prijono | 1d97162 | 2006-09-10 22:27:40 +0000 | [diff] [blame] | 1341 | --disable-sound Exclude sound (i.e. use null sound) |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 1342 | --disable-oss Disable OSS audio (default: not disabled) |
| 1343 | |
Benny Prijono | ebb2c33 | 2008-07-28 23:40:58 +0000 | [diff] [blame] | 1344 | --enable-ext-sound PJMEDIA will not provide any sound device backend |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 1345 | --disable-small-filter Exclude small filter in resampling |
| 1346 | --disable-large-filter Exclude large filter in resampling |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 1347 | --disable-speex-aec Exclude Speex Acoustic Echo Canceller/AEC |
| 1348 | --disable-g711-codec Exclude G.711 codecs from the build |
| 1349 | --disable-l16-codec Exclude Linear/L16 codec family from the build |
| 1350 | --disable-gsm-codec Exclude GSM codec in the build |
Benny Prijono | 71f657d | 2008-03-17 14:24:21 +0000 | [diff] [blame] | 1351 | --disable-g722-codec Exclude G.722 codec in the build |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1352 | --disable-g7221-codec Exclude G.7221 codec in the build |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 1353 | --disable-speex-codec Exclude Speex codecs in the build |
| 1354 | --disable-ilbc-codec Exclude iLBC codec in the build |
Benny Prijono | 550a1a6 | 2007-10-16 08:54:00 +0000 | [diff] [blame] | 1355 | --enable-libsamplerate Link with libsamplerate when available. Note that |
| 1356 | PJMEDIA_RESAMPLE_IMP must also be configured |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 1357 | --enable-ipp Enable Intel IPP support. Specify the Intel IPP |
| 1358 | package and samples location using IPPROOT and |
| 1359 | IPPSAMPLES env var or with --with-ipp and |
| 1360 | --with-ipp-samples options |
Benny Prijono | ce1db76 | 2007-02-14 02:21:08 +0000 | [diff] [blame] | 1361 | --disable-ssl Exclude SSL support the build (default: autodetect) |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1362 | |
| 1363 | |
Benny Prijono | fe0c127 | 2010-01-13 16:28:15 +0000 | [diff] [blame] | 1364 | Optional Packages: |
| 1365 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
| 1366 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
Benny Prijono | 8a9b3b2 | 2010-01-14 14:46:54 +0000 | [diff] [blame] | 1367 | --with-external-speex Use external Speex development files, not the one in |
| 1368 | "third_party" directory. When this option is set, |
| 1369 | make sure that Speex is accessible to use (hint: use |
| 1370 | CFLAGS and LDFLAGS env var to set the include/lib |
| 1371 | paths) |
| 1372 | --with-external-gsm Use external GSM codec library, not the one in |
| 1373 | "third_party" directory. When this option is set, |
| 1374 | make sure that the GSM include/lib files are |
| 1375 | accessible to use (hint: use CFLAGS and LDFLAGS env |
| 1376 | var to set the include/lib paths) |
| 1377 | --with-external-pa Use external PortAudio development files, not the |
| 1378 | one in "third_party" directory. When this option is |
| 1379 | set, make sure that PortAudio is accessible to use |
| 1380 | (hint: use CFLAGS and LDFLAGS env var to set the |
| 1381 | include/lib paths) |
Benny Prijono | 3965f19 | 2010-02-10 18:46:05 +0000 | [diff] [blame] | 1382 | --with-ipp=DIR Specify the Intel IPP location |
| 1383 | --with-ipp-samples=DIR Specify the Intel IPP samples location |
| 1384 | --with-ipp-arch=ARCH Specify the Intel IPP ARCH suffix, e.g. "64" or |
Benny Prijono | 46bd084 | 2010-02-12 14:12:41 +0000 | [diff] [blame] | 1385 | "em64t. Default is blank for IA32" |
Benny Prijono | fe0c127 | 2010-01-13 16:28:15 +0000 | [diff] [blame] | 1386 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1387 | Some influential environment variables: |
| 1388 | CC C compiler command |
| 1389 | CFLAGS C compiler flags |
| 1390 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
| 1391 | nonstandard directory <lib dir> |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1392 | LIBS libraries to pass to the linker, e.g. -l<library> |
| 1393 | CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if |
| 1394 | you have headers in a nonstandard directory <include dir> |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 1395 | CXX C++ compiler command |
| 1396 | CXXFLAGS C++ compiler flags |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1397 | CPP C preprocessor |
| 1398 | |
| 1399 | Use these variables to override the choices made by `configure' or to help |
| 1400 | it to find libraries and programs with nonstandard names/locations. |
| 1401 | |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 1402 | Report bugs to the package provider. |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1403 | _ACEOF |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1404 | ac_status=$? |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1405 | fi |
| 1406 | |
| 1407 | if test "$ac_init_help" = "recursive"; then |
| 1408 | # If there are subdirs, report their specific --help. |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1409 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 1410 | test -d "$ac_dir" || |
| 1411 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || |
| 1412 | continue |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1413 | ac_builddir=. |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1414 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1415 | case "$ac_dir" in |
| 1416 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 1417 | *) |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 1418 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1419 | # A ".." for each directory in $ac_dir_suffix. |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 1420 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1421 | case $ac_top_builddir_sub in |
| 1422 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 1423 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 1424 | esac ;; |
| 1425 | esac |
| 1426 | ac_abs_top_builddir=$ac_pwd |
| 1427 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 1428 | # for backward compatibility: |
| 1429 | ac_top_builddir=$ac_top_build_prefix |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1430 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1431 | case $srcdir in |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1432 | .) # We are building in place. |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1433 | ac_srcdir=. |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1434 | ac_top_srcdir=$ac_top_builddir_sub |
| 1435 | ac_abs_top_srcdir=$ac_pwd ;; |
| 1436 | [\\/]* | ?:[\\/]* ) # Absolute name. |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1437 | ac_srcdir=$srcdir$ac_dir_suffix; |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1438 | ac_top_srcdir=$srcdir |
| 1439 | ac_abs_top_srcdir=$srcdir ;; |
| 1440 | *) # Relative name. |
| 1441 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 1442 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 1443 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1444 | esac |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1445 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1446 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1447 | cd "$ac_dir" || { ac_status=$?; continue; } |
| 1448 | # Check for guested configure. |
| 1449 | if test -f "$ac_srcdir/configure.gnu"; then |
| 1450 | echo && |
| 1451 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive |
| 1452 | elif test -f "$ac_srcdir/configure"; then |
| 1453 | echo && |
| 1454 | $SHELL "$ac_srcdir/configure" --help=recursive |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1455 | else |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 1456 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1457 | fi || ac_status=$? |
| 1458 | cd "$ac_pwd" || { ac_status=$?; break; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1459 | done |
| 1460 | fi |
| 1461 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1462 | test -n "$ac_init_help" && exit $ac_status |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1463 | if $ac_init_version; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1464 | cat <<\_ACEOF |
Benny Prijono | 8a9b3b2 | 2010-01-14 14:46:54 +0000 | [diff] [blame] | 1465 | pjproject configure 1.x |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 1466 | generated by GNU Autoconf 2.64 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1467 | |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 1468 | Copyright (C) 2009 Free Software Foundation, Inc. |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1469 | This configure script is free software; the Free Software Foundation |
| 1470 | gives unlimited permission to copy, distribute and modify it. |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1471 | _ACEOF |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1472 | exit |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1473 | fi |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 1474 | |
| 1475 | ## ------------------------ ## |
| 1476 | ## Autoconf initialization. ## |
| 1477 | ## ------------------------ ## |
| 1478 | |
| 1479 | # ac_fn_c_try_compile LINENO |
| 1480 | # -------------------------- |
| 1481 | # Try to compile conftest.$ac_ext, and return whether this succeeded. |
| 1482 | ac_fn_c_try_compile () |
| 1483 | { |
| 1484 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1485 | rm -f conftest.$ac_objext |
| 1486 | if { { ac_try="$ac_compile" |
| 1487 | case "(($ac_try" in |
| 1488 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1489 | *) ac_try_echo=$ac_try;; |
| 1490 | esac |
| 1491 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1492 | $as_echo "$ac_try_echo"; } >&5 |
| 1493 | (eval "$ac_compile") 2>conftest.err |
| 1494 | ac_status=$? |
| 1495 | if test -s conftest.err; then |
| 1496 | grep -v '^ *+' conftest.err >conftest.er1 |
| 1497 | cat conftest.er1 >&5 |
| 1498 | mv -f conftest.er1 conftest.err |
| 1499 | fi |
| 1500 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1501 | test $ac_status = 0; } && { |
| 1502 | test -z "$ac_c_werror_flag" || |
| 1503 | test ! -s conftest.err |
| 1504 | } && test -s conftest.$ac_objext; then : |
| 1505 | ac_retval=0 |
| 1506 | else |
| 1507 | $as_echo "$as_me: failed program was:" >&5 |
| 1508 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1509 | |
| 1510 | ac_retval=1 |
| 1511 | fi |
| 1512 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
| 1513 | return $ac_retval |
| 1514 | |
| 1515 | } # ac_fn_c_try_compile |
| 1516 | |
| 1517 | # ac_fn_cxx_try_compile LINENO |
| 1518 | # ---------------------------- |
| 1519 | # Try to compile conftest.$ac_ext, and return whether this succeeded. |
| 1520 | ac_fn_cxx_try_compile () |
| 1521 | { |
| 1522 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1523 | rm -f conftest.$ac_objext |
| 1524 | if { { ac_try="$ac_compile" |
| 1525 | case "(($ac_try" in |
| 1526 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1527 | *) ac_try_echo=$ac_try;; |
| 1528 | esac |
| 1529 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1530 | $as_echo "$ac_try_echo"; } >&5 |
| 1531 | (eval "$ac_compile") 2>conftest.err |
| 1532 | ac_status=$? |
| 1533 | if test -s conftest.err; then |
| 1534 | grep -v '^ *+' conftest.err >conftest.er1 |
| 1535 | cat conftest.er1 >&5 |
| 1536 | mv -f conftest.er1 conftest.err |
| 1537 | fi |
| 1538 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1539 | test $ac_status = 0; } && { |
| 1540 | test -z "$ac_cxx_werror_flag" || |
| 1541 | test ! -s conftest.err |
| 1542 | } && test -s conftest.$ac_objext; then : |
| 1543 | ac_retval=0 |
| 1544 | else |
| 1545 | $as_echo "$as_me: failed program was:" >&5 |
| 1546 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1547 | |
| 1548 | ac_retval=1 |
| 1549 | fi |
| 1550 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
| 1551 | return $ac_retval |
| 1552 | |
| 1553 | } # ac_fn_cxx_try_compile |
| 1554 | |
| 1555 | # ac_fn_c_try_link LINENO |
| 1556 | # ----------------------- |
| 1557 | # Try to link conftest.$ac_ext, and return whether this succeeded. |
| 1558 | ac_fn_c_try_link () |
| 1559 | { |
| 1560 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1561 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 1562 | if { { ac_try="$ac_link" |
| 1563 | case "(($ac_try" in |
| 1564 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1565 | *) ac_try_echo=$ac_try;; |
| 1566 | esac |
| 1567 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1568 | $as_echo "$ac_try_echo"; } >&5 |
| 1569 | (eval "$ac_link") 2>conftest.err |
| 1570 | ac_status=$? |
| 1571 | if test -s conftest.err; then |
| 1572 | grep -v '^ *+' conftest.err >conftest.er1 |
| 1573 | cat conftest.er1 >&5 |
| 1574 | mv -f conftest.er1 conftest.err |
| 1575 | fi |
| 1576 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1577 | test $ac_status = 0; } && { |
| 1578 | test -z "$ac_c_werror_flag" || |
| 1579 | test ! -s conftest.err |
| 1580 | } && test -s conftest$ac_exeext && { |
| 1581 | test "$cross_compiling" = yes || |
| 1582 | $as_test_x conftest$ac_exeext |
| 1583 | }; then : |
| 1584 | ac_retval=0 |
| 1585 | else |
| 1586 | $as_echo "$as_me: failed program was:" >&5 |
| 1587 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1588 | |
| 1589 | ac_retval=1 |
| 1590 | fi |
| 1591 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information |
| 1592 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would |
| 1593 | # interfere with the next link command; also delete a directory that is |
| 1594 | # left behind by Apple's compiler. We do this before executing the actions. |
| 1595 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
| 1596 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
| 1597 | return $ac_retval |
| 1598 | |
| 1599 | } # ac_fn_c_try_link |
| 1600 | |
| 1601 | # ac_fn_c_try_run LINENO |
| 1602 | # ---------------------- |
| 1603 | # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes |
| 1604 | # that executables *can* be run. |
| 1605 | ac_fn_c_try_run () |
| 1606 | { |
| 1607 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1608 | if { { ac_try="$ac_link" |
| 1609 | case "(($ac_try" in |
| 1610 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1611 | *) ac_try_echo=$ac_try;; |
| 1612 | esac |
| 1613 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1614 | $as_echo "$ac_try_echo"; } >&5 |
| 1615 | (eval "$ac_link") 2>&5 |
| 1616 | ac_status=$? |
| 1617 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1618 | test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' |
| 1619 | { { case "(($ac_try" in |
| 1620 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1621 | *) ac_try_echo=$ac_try;; |
| 1622 | esac |
| 1623 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1624 | $as_echo "$ac_try_echo"; } >&5 |
| 1625 | (eval "$ac_try") 2>&5 |
| 1626 | ac_status=$? |
| 1627 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1628 | test $ac_status = 0; }; }; then : |
| 1629 | ac_retval=0 |
| 1630 | else |
| 1631 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
| 1632 | $as_echo "$as_me: failed program was:" >&5 |
| 1633 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1634 | |
| 1635 | ac_retval=$ac_status |
| 1636 | fi |
| 1637 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
| 1638 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
| 1639 | return $ac_retval |
| 1640 | |
| 1641 | } # ac_fn_c_try_run |
| 1642 | |
| 1643 | # ac_fn_c_try_cpp LINENO |
| 1644 | # ---------------------- |
| 1645 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. |
| 1646 | ac_fn_c_try_cpp () |
| 1647 | { |
| 1648 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1649 | if { { ac_try="$ac_cpp conftest.$ac_ext" |
| 1650 | case "(($ac_try" in |
| 1651 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1652 | *) ac_try_echo=$ac_try;; |
| 1653 | esac |
| 1654 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1655 | $as_echo "$ac_try_echo"; } >&5 |
| 1656 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err |
| 1657 | ac_status=$? |
| 1658 | if test -s conftest.err; then |
| 1659 | grep -v '^ *+' conftest.err >conftest.er1 |
| 1660 | cat conftest.er1 >&5 |
| 1661 | mv -f conftest.er1 conftest.err |
| 1662 | fi |
| 1663 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1664 | test $ac_status = 0; } >/dev/null && { |
| 1665 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 1666 | test ! -s conftest.err |
| 1667 | }; then : |
| 1668 | ac_retval=0 |
| 1669 | else |
| 1670 | $as_echo "$as_me: failed program was:" >&5 |
| 1671 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1672 | |
| 1673 | ac_retval=1 |
| 1674 | fi |
| 1675 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
| 1676 | return $ac_retval |
| 1677 | |
| 1678 | } # ac_fn_c_try_cpp |
| 1679 | |
| 1680 | # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES |
| 1681 | # ------------------------------------------------------- |
| 1682 | # Tests whether HEADER exists and can be compiled using the include files in |
| 1683 | # INCLUDES, setting the cache variable VAR accordingly. |
| 1684 | ac_fn_c_check_header_compile () |
| 1685 | { |
| 1686 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1687 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 1688 | $as_echo_n "checking for $2... " >&6; } |
| 1689 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : |
| 1690 | $as_echo_n "(cached) " >&6 |
| 1691 | else |
| 1692 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1693 | /* end confdefs.h. */ |
| 1694 | $4 |
| 1695 | #include <$2> |
| 1696 | _ACEOF |
| 1697 | if ac_fn_c_try_compile "$LINENO"; then : |
| 1698 | eval "$3=yes" |
| 1699 | else |
| 1700 | eval "$3=no" |
| 1701 | fi |
| 1702 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 1703 | fi |
| 1704 | eval ac_res=\$$3 |
| 1705 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 1706 | $as_echo "$ac_res" >&6; } |
| 1707 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
| 1708 | |
| 1709 | } # ac_fn_c_check_header_compile |
| 1710 | |
| 1711 | # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES |
| 1712 | # ------------------------------------------------------- |
| 1713 | # Tests whether HEADER exists, giving a warning if it cannot be compiled using |
| 1714 | # the include files in INCLUDES and setting the cache variable VAR |
| 1715 | # accordingly. |
| 1716 | ac_fn_c_check_header_mongrel () |
| 1717 | { |
| 1718 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1719 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : |
| 1720 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 1721 | $as_echo_n "checking for $2... " >&6; } |
| 1722 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : |
| 1723 | $as_echo_n "(cached) " >&6 |
| 1724 | fi |
| 1725 | eval ac_res=\$$3 |
| 1726 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 1727 | $as_echo "$ac_res" >&6; } |
| 1728 | else |
| 1729 | # Is the header compilable? |
| 1730 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 |
| 1731 | $as_echo_n "checking $2 usability... " >&6; } |
| 1732 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1733 | /* end confdefs.h. */ |
| 1734 | $4 |
| 1735 | #include <$2> |
| 1736 | _ACEOF |
| 1737 | if ac_fn_c_try_compile "$LINENO"; then : |
| 1738 | ac_header_compiler=yes |
| 1739 | else |
| 1740 | ac_header_compiler=no |
| 1741 | fi |
| 1742 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 1743 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 |
| 1744 | $as_echo "$ac_header_compiler" >&6; } |
| 1745 | |
| 1746 | # Is the header present? |
| 1747 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 |
| 1748 | $as_echo_n "checking $2 presence... " >&6; } |
| 1749 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1750 | /* end confdefs.h. */ |
| 1751 | #include <$2> |
| 1752 | _ACEOF |
| 1753 | if ac_fn_c_try_cpp "$LINENO"; then : |
| 1754 | ac_header_preproc=yes |
| 1755 | else |
| 1756 | ac_header_preproc=no |
| 1757 | fi |
| 1758 | rm -f conftest.err conftest.$ac_ext |
| 1759 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 |
| 1760 | $as_echo "$ac_header_preproc" >&6; } |
| 1761 | |
| 1762 | # So? What about this header? |
| 1763 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( |
| 1764 | yes:no: ) |
| 1765 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 1766 | $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 1767 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 |
| 1768 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} |
| 1769 | ;; |
| 1770 | no:yes:* ) |
| 1771 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 |
| 1772 | $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} |
| 1773 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 |
| 1774 | $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} |
| 1775 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 |
| 1776 | $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} |
| 1777 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 |
| 1778 | $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} |
| 1779 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 |
| 1780 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} |
| 1781 | ;; |
| 1782 | esac |
| 1783 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 1784 | $as_echo_n "checking for $2... " >&6; } |
| 1785 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : |
| 1786 | $as_echo_n "(cached) " >&6 |
| 1787 | else |
| 1788 | eval "$3=\$ac_header_compiler" |
| 1789 | fi |
| 1790 | eval ac_res=\$$3 |
| 1791 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 1792 | $as_echo "$ac_res" >&6; } |
| 1793 | fi |
| 1794 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
| 1795 | |
| 1796 | } # ac_fn_c_check_header_mongrel |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1797 | cat >config.log <<_ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1798 | This file contains any messages produced by compilers while |
| 1799 | running configure, to aid debugging if configure makes a mistake. |
| 1800 | |
Benny Prijono | 8a9b3b2 | 2010-01-14 14:46:54 +0000 | [diff] [blame] | 1801 | It was created by pjproject $as_me 1.x, which was |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 1802 | generated by GNU Autoconf 2.64. Invocation command line was |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1803 | |
| 1804 | $ $0 $@ |
| 1805 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1806 | _ACEOF |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1807 | exec 5>>config.log |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1808 | { |
| 1809 | cat <<_ASUNAME |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1810 | ## --------- ## |
| 1811 | ## Platform. ## |
| 1812 | ## --------- ## |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1813 | |
| 1814 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 1815 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
| 1816 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
| 1817 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
| 1818 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
| 1819 | |
| 1820 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
| 1821 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
| 1822 | |
| 1823 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
| 1824 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
| 1825 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1826 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1827 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
| 1828 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
| 1829 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
| 1830 | |
| 1831 | _ASUNAME |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1832 | |
| 1833 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1834 | for as_dir in $PATH |
| 1835 | do |
| 1836 | IFS=$as_save_IFS |
| 1837 | test -z "$as_dir" && as_dir=. |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 1838 | $as_echo "PATH: $as_dir" |
| 1839 | done |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1840 | IFS=$as_save_IFS |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1841 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1842 | } >&5 |
| 1843 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1844 | cat >&5 <<_ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1845 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1846 | |
| 1847 | ## ----------- ## |
| 1848 | ## Core tests. ## |
| 1849 | ## ----------- ## |
| 1850 | |
| 1851 | _ACEOF |
| 1852 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1853 | |
| 1854 | # Keep a trace of the command line. |
| 1855 | # 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] | 1856 | # 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] | 1857 | # Also quote any args containing shell meta-characters. |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1858 | # Make two passes to allow for proper duplicate-argument suppression. |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1859 | ac_configure_args= |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1860 | ac_configure_args0= |
| 1861 | ac_configure_args1= |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1862 | ac_must_keep_next=false |
| 1863 | for ac_pass in 1 2 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1864 | do |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1865 | for ac_arg |
| 1866 | do |
| 1867 | case $ac_arg in |
| 1868 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
| 1869 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 1870 | | -silent | --silent | --silen | --sile | --sil) |
| 1871 | continue ;; |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1872 | *\'*) |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 1873 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1874 | esac |
| 1875 | case $ac_pass in |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 1876 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1877 | 2) |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 1878 | as_fn_append ac_configure_args1 " '$ac_arg'" |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1879 | if test $ac_must_keep_next = true; then |
| 1880 | ac_must_keep_next=false # Got value, back to normal. |
| 1881 | else |
| 1882 | case $ac_arg in |
| 1883 | *=* | --config-cache | -C | -disable-* | --disable-* \ |
| 1884 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
| 1885 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
| 1886 | | -with-* | --with-* | -without-* | --without-* | --x) |
| 1887 | case "$ac_configure_args0 " in |
| 1888 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
| 1889 | esac |
| 1890 | ;; |
| 1891 | -* ) ac_must_keep_next=true ;; |
| 1892 | esac |
| 1893 | fi |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 1894 | as_fn_append ac_configure_args " '$ac_arg'" |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1895 | ;; |
| 1896 | esac |
| 1897 | done |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1898 | done |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 1899 | { ac_configure_args0=; unset ac_configure_args0;} |
| 1900 | { ac_configure_args1=; unset ac_configure_args1;} |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1901 | |
| 1902 | # When interrupted or exit'd, cleanup temporary files, and complete |
| 1903 | # config.log. We remove comments because anyway the quotes in there |
| 1904 | # would cause problems or look ugly. |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1905 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
| 1906 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1907 | trap 'exit_status=$? |
| 1908 | # Save into config.log some information that might help in debugging. |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1909 | { |
| 1910 | echo |
| 1911 | |
| 1912 | cat <<\_ASBOX |
| 1913 | ## ---------------- ## |
| 1914 | ## Cache variables. ## |
| 1915 | ## ---------------- ## |
| 1916 | _ASBOX |
| 1917 | echo |
| 1918 | # The following way of writing the cache mishandles newlines in values, |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1919 | ( |
| 1920 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do |
| 1921 | eval ac_val=\$$ac_var |
| 1922 | case $ac_val in #( |
| 1923 | *${as_nl}*) |
| 1924 | case $ac_var in #( |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 1925 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
| 1926 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1927 | esac |
| 1928 | case $ac_var in #( |
| 1929 | _ | IFS | as_nl) ;; #( |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 1930 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
| 1931 | *) { eval $ac_var=; unset $ac_var;} ;; |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1932 | esac ;; |
| 1933 | esac |
| 1934 | done |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1935 | (set) 2>&1 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1936 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
| 1937 | *${as_nl}ac_space=\ *) |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1938 | sed -n \ |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1939 | "s/'\''/'\''\\\\'\'''\''/g; |
| 1940 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" |
| 1941 | ;; #( |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 1942 | *) |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1943 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 1944 | ;; |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1945 | esac | |
| 1946 | sort |
| 1947 | ) |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1948 | echo |
| 1949 | |
| 1950 | cat <<\_ASBOX |
| 1951 | ## ----------------- ## |
| 1952 | ## Output variables. ## |
| 1953 | ## ----------------- ## |
| 1954 | _ASBOX |
| 1955 | echo |
| 1956 | for ac_var in $ac_subst_vars |
| 1957 | do |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1958 | eval ac_val=\$$ac_var |
| 1959 | case $ac_val in |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 1960 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1961 | esac |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 1962 | $as_echo "$ac_var='\''$ac_val'\''" |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1963 | done | sort |
| 1964 | echo |
| 1965 | |
| 1966 | if test -n "$ac_subst_files"; then |
| 1967 | cat <<\_ASBOX |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1968 | ## ------------------- ## |
| 1969 | ## File substitutions. ## |
| 1970 | ## ------------------- ## |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1971 | _ASBOX |
| 1972 | echo |
| 1973 | for ac_var in $ac_subst_files |
| 1974 | do |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1975 | eval ac_val=\$$ac_var |
| 1976 | case $ac_val in |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 1977 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1978 | esac |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 1979 | $as_echo "$ac_var='\''$ac_val'\''" |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1980 | done | sort |
| 1981 | echo |
| 1982 | fi |
| 1983 | |
| 1984 | if test -s confdefs.h; then |
| 1985 | cat <<\_ASBOX |
| 1986 | ## ----------- ## |
| 1987 | ## confdefs.h. ## |
| 1988 | ## ----------- ## |
| 1989 | _ASBOX |
| 1990 | echo |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1991 | cat confdefs.h |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1992 | echo |
| 1993 | fi |
| 1994 | test "$ac_signal" != 0 && |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 1995 | $as_echo "$as_me: caught signal $ac_signal" |
| 1996 | $as_echo "$as_me: exit $exit_status" |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1997 | } >&5 |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1998 | rm -f core *.core core.conftest.* && |
| 1999 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2000 | exit $exit_status |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2001 | ' 0 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2002 | for ac_signal in 1 2 13 15; do |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 2003 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2004 | done |
| 2005 | ac_signal=0 |
| 2006 | |
| 2007 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2008 | rm -f -r conftest* confdefs.h |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2009 | |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 2010 | $as_echo "/* confdefs.h */" > confdefs.h |
| 2011 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2012 | # Predefined preprocessor variables. |
| 2013 | |
| 2014 | cat >>confdefs.h <<_ACEOF |
| 2015 | #define PACKAGE_NAME "$PACKAGE_NAME" |
| 2016 | _ACEOF |
| 2017 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2018 | cat >>confdefs.h <<_ACEOF |
| 2019 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
| 2020 | _ACEOF |
| 2021 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2022 | cat >>confdefs.h <<_ACEOF |
| 2023 | #define PACKAGE_VERSION "$PACKAGE_VERSION" |
| 2024 | _ACEOF |
| 2025 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2026 | cat >>confdefs.h <<_ACEOF |
| 2027 | #define PACKAGE_STRING "$PACKAGE_STRING" |
| 2028 | _ACEOF |
| 2029 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2030 | cat >>confdefs.h <<_ACEOF |
| 2031 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
| 2032 | _ACEOF |
| 2033 | |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 2034 | cat >>confdefs.h <<_ACEOF |
| 2035 | #define PACKAGE_URL "$PACKAGE_URL" |
| 2036 | _ACEOF |
| 2037 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2038 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2039 | # Let the site file select an alternate cache file if it wants to. |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 2040 | # Prefer an explicitly selected file to automatically selected ones. |
| 2041 | ac_site_file1=NONE |
| 2042 | ac_site_file2=NONE |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2043 | if test -n "$CONFIG_SITE"; then |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 2044 | ac_site_file1=$CONFIG_SITE |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2045 | elif test "x$prefix" != xNONE; then |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 2046 | ac_site_file1=$prefix/share/config.site |
| 2047 | ac_site_file2=$prefix/etc/config.site |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2048 | else |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 2049 | ac_site_file1=$ac_default_prefix/share/config.site |
| 2050 | ac_site_file2=$ac_default_prefix/etc/config.site |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2051 | fi |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 2052 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2053 | do |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 2054 | test "x$ac_site_file" = xNONE && continue |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2055 | if test -r "$ac_site_file"; then |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 2056 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 |
| 2057 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2058 | sed 's/^/| /' "$ac_site_file" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2059 | . "$ac_site_file" |
| 2060 | fi |
| 2061 | done |
| 2062 | |
| 2063 | if test -r "$cache_file"; then |
| 2064 | # Some versions of bash will fail to source /dev/null (special |
| 2065 | # files actually), so we avoid doing that. |
| 2066 | if test -f "$cache_file"; then |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 2067 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 |
| 2068 | $as_echo "$as_me: loading cache $cache_file" >&6;} |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2069 | case $cache_file in |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2070 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
| 2071 | *) . "./$cache_file";; |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2072 | esac |
| 2073 | fi |
| 2074 | else |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 2075 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 |
| 2076 | $as_echo "$as_me: creating cache $cache_file" >&6;} |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2077 | >$cache_file |
| 2078 | fi |
| 2079 | |
| 2080 | # Check that the precious variables saved in the cache have kept the same |
| 2081 | # value. |
| 2082 | ac_cache_corrupted=false |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2083 | for ac_var in $ac_precious_vars; do |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2084 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
| 2085 | eval ac_new_set=\$ac_env_${ac_var}_set |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2086 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
| 2087 | eval ac_new_val=\$ac_env_${ac_var}_value |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2088 | case $ac_old_set,$ac_new_set in |
| 2089 | set,) |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 2090 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
| 2091 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2092 | ac_cache_corrupted=: ;; |
| 2093 | ,set) |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 2094 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 |
| 2095 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2096 | ac_cache_corrupted=: ;; |
| 2097 | ,);; |
| 2098 | *) |
| 2099 | if test "x$ac_old_val" != "x$ac_new_val"; then |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 2100 | # differences in whitespace do not lead to failure. |
| 2101 | ac_old_val_w=`echo x $ac_old_val` |
| 2102 | ac_new_val_w=`echo x $ac_new_val` |
| 2103 | if test "$ac_old_val_w" != "$ac_new_val_w"; then |
| 2104 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 |
| 2105 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
| 2106 | ac_cache_corrupted=: |
| 2107 | else |
| 2108 | { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 |
| 2109 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} |
| 2110 | eval $ac_var=\$ac_old_val |
| 2111 | fi |
| 2112 | { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 |
| 2113 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} |
| 2114 | { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 |
| 2115 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2116 | fi;; |
| 2117 | esac |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2118 | # Pass precious variables to config.status. |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2119 | if test "$ac_new_set" = set; then |
| 2120 | case $ac_new_val in |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 2121 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2122 | *) ac_arg=$ac_var=$ac_new_val ;; |
| 2123 | esac |
| 2124 | case " $ac_configure_args " in |
| 2125 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 2126 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2127 | esac |
| 2128 | fi |
| 2129 | done |
| 2130 | if $ac_cache_corrupted; then |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 2131 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 2132 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 2133 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 |
| 2134 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
| 2135 | as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2136 | fi |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 2137 | ## -------------------- ## |
| 2138 | ## Main body of script. ## |
| 2139 | ## -------------------- ## |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2140 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2141 | ac_ext=c |
| 2142 | ac_cpp='$CPP $CPPFLAGS' |
| 2143 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2144 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2145 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2146 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2147 | |
| 2148 | |
Benny Prijono | 5b818b2 | 2006-09-17 22:58:51 +0000 | [diff] [blame] | 2149 | host_orig="$host" |
| 2150 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2151 | ac_aux_dir= |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2152 | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 2153 | for ac_t in install-sh install.sh shtool; do |
| 2154 | if test -f "$ac_dir/$ac_t"; then |
| 2155 | ac_aux_dir=$ac_dir |
| 2156 | ac_install_sh="$ac_aux_dir/$ac_t -c" |
| 2157 | break 2 |
| 2158 | fi |
| 2159 | done |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2160 | done |
| 2161 | if test -z "$ac_aux_dir"; then |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 2162 | as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2163 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2164 | |
| 2165 | # These three variables are undocumented and unsupported, |
| 2166 | # and are intended to be withdrawn in a future Autoconf release. |
| 2167 | # They can cause serious problems if a builder's source tree is in a directory |
| 2168 | # whose full name contains unusual characters. |
| 2169 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. |
| 2170 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. |
| 2171 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. |
| 2172 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2173 | |
| 2174 | # Make sure we can run config.sub. |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2175 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 2176 | as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2177 | |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 2178 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 |
| 2179 | $as_echo_n "checking build system type... " >&6; } |
| 2180 | if test "${ac_cv_build+set}" = set; then : |
| 2181 | $as_echo_n "(cached) " >&6 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2182 | else |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2183 | ac_build_alias=$build_alias |
| 2184 | test "x$ac_build_alias" = x && |
| 2185 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` |
| 2186 | test "x$ac_build_alias" = x && |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 2187 | as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5 |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2188 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 2189 | as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2190 | |
| 2191 | fi |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 2192 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 |
| 2193 | $as_echo "$ac_cv_build" >&6; } |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2194 | case $ac_cv_build in |
| 2195 | *-*-*) ;; |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 2196 | *) as_fn_error "invalid value of canonical build" "$LINENO" 5;; |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2197 | esac |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2198 | build=$ac_cv_build |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2199 | ac_save_IFS=$IFS; IFS='-' |
| 2200 | set x $ac_cv_build |
| 2201 | shift |
| 2202 | build_cpu=$1 |
| 2203 | build_vendor=$2 |
| 2204 | shift; shift |
| 2205 | # Remember, the first character of IFS is used to create $*, |
| 2206 | # except with old shells: |
| 2207 | build_os=$* |
| 2208 | IFS=$ac_save_IFS |
| 2209 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2210 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2211 | |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 2212 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 |
| 2213 | $as_echo_n "checking host system type... " >&6; } |
| 2214 | if test "${ac_cv_host+set}" = set; then : |
| 2215 | $as_echo_n "(cached) " >&6 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2216 | else |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2217 | if test "x$host_alias" = x; then |
| 2218 | ac_cv_host=$ac_cv_build |
| 2219 | else |
| 2220 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 2221 | as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2222 | fi |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2223 | |
| 2224 | fi |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 2225 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 |
| 2226 | $as_echo "$ac_cv_host" >&6; } |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2227 | case $ac_cv_host in |
| 2228 | *-*-*) ;; |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 2229 | *) as_fn_error "invalid value of canonical host" "$LINENO" 5;; |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2230 | esac |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2231 | host=$ac_cv_host |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2232 | ac_save_IFS=$IFS; IFS='-' |
| 2233 | set x $ac_cv_host |
| 2234 | shift |
| 2235 | host_cpu=$1 |
| 2236 | host_vendor=$2 |
| 2237 | shift; shift |
| 2238 | # Remember, the first character of IFS is used to create $*, |
| 2239 | # except with old shells: |
| 2240 | host_os=$* |
| 2241 | IFS=$ac_save_IFS |
| 2242 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2243 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2244 | |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 2245 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 |
| 2246 | $as_echo_n "checking target system type... " >&6; } |
| 2247 | if test "${ac_cv_target+set}" = set; then : |
| 2248 | $as_echo_n "(cached) " >&6 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2249 | else |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2250 | if test "x$target_alias" = x; then |
| 2251 | ac_cv_target=$ac_cv_host |
| 2252 | else |
| 2253 | ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 2254 | as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5 |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2255 | fi |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2256 | |
| 2257 | fi |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 2258 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 |
| 2259 | $as_echo "$ac_cv_target" >&6; } |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2260 | case $ac_cv_target in |
| 2261 | *-*-*) ;; |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 2262 | *) as_fn_error "invalid value of canonical target" "$LINENO" 5;; |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2263 | esac |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2264 | target=$ac_cv_target |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2265 | ac_save_IFS=$IFS; IFS='-' |
| 2266 | set x $ac_cv_target |
| 2267 | shift |
| 2268 | target_cpu=$1 |
| 2269 | target_vendor=$2 |
| 2270 | shift; shift |
| 2271 | # Remember, the first character of IFS is used to create $*, |
| 2272 | # except with old shells: |
| 2273 | target_os=$* |
| 2274 | IFS=$ac_save_IFS |
| 2275 | case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2276 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2277 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2278 | # The aliases save the names the user supplied, while $host etc. |
| 2279 | # will get canonicalized. |
| 2280 | test -n "$target_alias" && |
| 2281 | test "$program_prefix$program_suffix$program_transform_name" = \ |
| 2282 | NONENONEs,x,x, && |
| 2283 | program_prefix=${target_alias}- |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2284 | 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] | 2285 | |
Benny Prijono | 8a9b3b2 | 2010-01-14 14:46:54 +0000 | [diff] [blame] | 2286 | 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/os-auto.mak third_party/build/portaudio/os-auto.mak" |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2287 | |
Benny Prijono | c1fe23d | 2006-09-13 09:38:06 +0000 | [diff] [blame] | 2288 | |
Benny Prijono | 1248311 | 2007-03-12 10:44:38 +0000 | [diff] [blame] | 2289 | |
Benny Prijono | c1fe23d | 2006-09-13 09:38:06 +0000 | [diff] [blame] | 2290 | if test "$CFLAGS" = ""; then |
Benny Prijono | d145982 | 2006-10-04 20:56:39 +0000 | [diff] [blame] | 2291 | CFLAGS="-O2" |
Benny Prijono | c1fe23d | 2006-09-13 09:38:06 +0000 | [diff] [blame] | 2292 | else |
| 2293 | CFLAGS="$CFLAGS" |
| 2294 | fi |
| 2295 | |
| 2296 | CXXFLAGS="$CFLAGS $CXXFLAGS" |
| 2297 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2298 | ac_ext=c |
| 2299 | ac_cpp='$CPP $CPPFLAGS' |
| 2300 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2301 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2302 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2303 | if test -n "$ac_tool_prefix"; then |
| 2304 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
| 2305 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 2306 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 2307 | $as_echo_n "checking for $ac_word... " >&6; } |
| 2308 | if test "${ac_cv_prog_CC+set}" = set; then : |
| 2309 | $as_echo_n "(cached) " >&6 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2310 | else |
| 2311 | if test -n "$CC"; then |
| 2312 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2313 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2314 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2315 | for as_dir in $PATH |
| 2316 | do |
| 2317 | IFS=$as_save_IFS |
| 2318 | test -z "$as_dir" && as_dir=. |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 2319 | for ac_exec_ext in '' $ac_executable_extensions; do |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2320 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2321 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 2322 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2323 | break 2 |
| 2324 | fi |
| 2325 | done |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 2326 | done |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2327 | IFS=$as_save_IFS |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2328 | |
| 2329 | fi |
| 2330 | fi |
| 2331 | CC=$ac_cv_prog_CC |
| 2332 | if test -n "$CC"; then |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 2333 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 2334 | $as_echo "$CC" >&6; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2335 | else |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 2336 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 2337 | $as_echo "no" >&6; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2338 | fi |
| 2339 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2340 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2341 | fi |
| 2342 | if test -z "$ac_cv_prog_CC"; then |
| 2343 | ac_ct_CC=$CC |
| 2344 | # Extract the first word of "gcc", so it can be a program name with args. |
| 2345 | set dummy gcc; ac_word=$2 |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 2346 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 2347 | $as_echo_n "checking for $ac_word... " >&6; } |
| 2348 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : |
| 2349 | $as_echo_n "(cached) " >&6 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2350 | else |
| 2351 | if test -n "$ac_ct_CC"; then |
| 2352 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 2353 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2354 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2355 | for as_dir in $PATH |
| 2356 | do |
| 2357 | IFS=$as_save_IFS |
| 2358 | test -z "$as_dir" && as_dir=. |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 2359 | for ac_exec_ext in '' $ac_executable_extensions; do |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2360 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2361 | ac_cv_prog_ac_ct_CC="gcc" |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 2362 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2363 | break 2 |
| 2364 | fi |
| 2365 | done |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 2366 | done |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2367 | IFS=$as_save_IFS |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2368 | |
| 2369 | fi |
| 2370 | fi |
| 2371 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 2372 | if test -n "$ac_ct_CC"; then |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 2373 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
| 2374 | $as_echo "$ac_ct_CC" >&6; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2375 | else |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 2376 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 2377 | $as_echo "no" >&6; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2378 | fi |
| 2379 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2380 | if test "x$ac_ct_CC" = x; then |
| 2381 | CC="" |
| 2382 | else |
| 2383 | case $cross_compiling:$ac_tool_warned in |
| 2384 | yes:) |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 2385 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 2386 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2387 | ac_tool_warned=yes ;; |
| 2388 | esac |
| 2389 | CC=$ac_ct_CC |
| 2390 | fi |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2391 | else |
| 2392 | CC="$ac_cv_prog_CC" |
| 2393 | fi |
| 2394 | |
| 2395 | if test -z "$CC"; then |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2396 | if test -n "$ac_tool_prefix"; then |
| 2397 | # 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] | 2398 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 2399 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 2400 | $as_echo_n "checking for $ac_word... " >&6; } |
| 2401 | if test "${ac_cv_prog_CC+set}" = set; then : |
| 2402 | $as_echo_n "(cached) " >&6 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2403 | else |
| 2404 | if test -n "$CC"; then |
| 2405 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2406 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2407 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2408 | for as_dir in $PATH |
| 2409 | do |
| 2410 | IFS=$as_save_IFS |
| 2411 | test -z "$as_dir" && as_dir=. |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 2412 | for ac_exec_ext in '' $ac_executable_extensions; do |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2413 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2414 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 2415 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2416 | break 2 |
| 2417 | fi |
| 2418 | done |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 2419 | done |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2420 | IFS=$as_save_IFS |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2421 | |
| 2422 | fi |
| 2423 | fi |
| 2424 | CC=$ac_cv_prog_CC |
| 2425 | if test -n "$CC"; then |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 2426 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 2427 | $as_echo "$CC" >&6; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2428 | else |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 2429 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 2430 | $as_echo "no" >&6; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2431 | fi |
| 2432 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2433 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2434 | fi |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2435 | fi |
| 2436 | if test -z "$CC"; then |
| 2437 | # Extract the first word of "cc", so it can be a program name with args. |
| 2438 | set dummy cc; ac_word=$2 |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 2439 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 2440 | $as_echo_n "checking for $ac_word... " >&6; } |
| 2441 | if test "${ac_cv_prog_CC+set}" = set; then : |
| 2442 | $as_echo_n "(cached) " >&6 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2443 | else |
| 2444 | if test -n "$CC"; then |
| 2445 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2446 | else |
| 2447 | ac_prog_rejected=no |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2448 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2449 | for as_dir in $PATH |
| 2450 | do |
| 2451 | IFS=$as_save_IFS |
| 2452 | test -z "$as_dir" && as_dir=. |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 2453 | for ac_exec_ext in '' $ac_executable_extensions; do |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2454 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2455 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
| 2456 | ac_prog_rejected=yes |
| 2457 | continue |
| 2458 | fi |
| 2459 | ac_cv_prog_CC="cc" |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 2460 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2461 | break 2 |
| 2462 | fi |
| 2463 | done |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 2464 | done |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2465 | IFS=$as_save_IFS |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2466 | |
| 2467 | if test $ac_prog_rejected = yes; then |
| 2468 | # We found a bogon in the path, so make sure we never use it. |
| 2469 | set dummy $ac_cv_prog_CC |
| 2470 | shift |
| 2471 | if test $# != 0; then |
| 2472 | # We chose a different compiler from the bogus one. |
| 2473 | # However, it has the same basename, so the bogon will be chosen |
| 2474 | # first if we set CC to just the basename; use the full file name. |
| 2475 | shift |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2476 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2477 | fi |
| 2478 | fi |
| 2479 | fi |
| 2480 | fi |
| 2481 | CC=$ac_cv_prog_CC |
| 2482 | if test -n "$CC"; then |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 2483 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 2484 | $as_echo "$CC" >&6; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2485 | else |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 2486 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 2487 | $as_echo "no" >&6; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2488 | fi |
| 2489 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2490 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2491 | fi |
| 2492 | if test -z "$CC"; then |
| 2493 | if test -n "$ac_tool_prefix"; then |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2494 | for ac_prog in cl.exe |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2495 | do |
| 2496 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 2497 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 2498 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 2499 | $as_echo_n "checking for $ac_word... " >&6; } |
| 2500 | if test "${ac_cv_prog_CC+set}" = set; then : |
| 2501 | $as_echo_n "(cached) " >&6 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2502 | else |
| 2503 | if test -n "$CC"; then |
| 2504 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2505 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2506 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2507 | for as_dir in $PATH |
| 2508 | do |
| 2509 | IFS=$as_save_IFS |
| 2510 | test -z "$as_dir" && as_dir=. |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 2511 | for ac_exec_ext in '' $ac_executable_extensions; do |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2512 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2513 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 2514 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2515 | break 2 |
| 2516 | fi |
| 2517 | done |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 2518 | done |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2519 | IFS=$as_save_IFS |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2520 | |
| 2521 | fi |
| 2522 | fi |
| 2523 | CC=$ac_cv_prog_CC |
| 2524 | if test -n "$CC"; then |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 2525 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 2526 | $as_echo "$CC" >&6; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2527 | else |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 2528 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 2529 | $as_echo "no" >&6; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2530 | fi |
| 2531 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2532 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2533 | test -n "$CC" && break |
| 2534 | done |
| 2535 | fi |
| 2536 | if test -z "$CC"; then |
| 2537 | ac_ct_CC=$CC |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2538 | for ac_prog in cl.exe |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2539 | do |
| 2540 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 2541 | set dummy $ac_prog; ac_word=$2 |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 2542 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 2543 | $as_echo_n "checking for $ac_word... " >&6; } |
| 2544 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : |
| 2545 | $as_echo_n "(cached) " >&6 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2546 | else |
| 2547 | if test -n "$ac_ct_CC"; then |
| 2548 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 2549 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2550 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2551 | for as_dir in $PATH |
| 2552 | do |
| 2553 | IFS=$as_save_IFS |
| 2554 | test -z "$as_dir" && as_dir=. |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 2555 | for ac_exec_ext in '' $ac_executable_extensions; do |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2556 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2557 | ac_cv_prog_ac_ct_CC="$ac_prog" |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 2558 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2559 | break 2 |
| 2560 | fi |
| 2561 | done |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 2562 | done |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2563 | IFS=$as_save_IFS |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2564 | |
| 2565 | fi |
| 2566 | fi |
| 2567 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 2568 | if test -n "$ac_ct_CC"; then |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 2569 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
| 2570 | $as_echo "$ac_ct_CC" >&6; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2571 | else |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 2572 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 2573 | $as_echo "no" >&6; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2574 | fi |
| 2575 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2576 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2577 | test -n "$ac_ct_CC" && break |
| 2578 | done |
| 2579 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2580 | if test "x$ac_ct_CC" = x; then |
| 2581 | CC="" |
| 2582 | else |
| 2583 | case $cross_compiling:$ac_tool_warned in |
| 2584 | yes:) |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 2585 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 2586 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2587 | ac_tool_warned=yes ;; |
| 2588 | esac |
| 2589 | CC=$ac_ct_CC |
| 2590 | fi |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2591 | fi |
| 2592 | |
| 2593 | fi |
| 2594 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2595 | |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 2596 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 2597 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 2598 | as_fn_error "no acceptable C compiler found in \$PATH |
| 2599 | See \`config.log' for more details." "$LINENO" 5; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2600 | |
| 2601 | # Provide some information about the compiler. |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 2602 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 |
| 2603 | set X $ac_compile |
| 2604 | ac_compiler=$2 |
| 2605 | for ac_option in --version -v -V -qversion; do |
| 2606 | { { ac_try="$ac_compiler $ac_option >&5" |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2607 | case "(($ac_try" in |
| 2608 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2609 | *) ac_try_echo=$ac_try;; |
| 2610 | esac |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 2611 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 2612 | $as_echo "$ac_try_echo"; } >&5 |
| 2613 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2614 | ac_status=$? |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 2615 | if test -s conftest.err; then |
| 2616 | sed '10a\ |
| 2617 | ... rest of stderr output deleted ... |
| 2618 | 10q' conftest.err >conftest.er1 |
| 2619 | cat conftest.er1 >&5 |
| 2620 | rm -f conftest.er1 conftest.err |
| 2621 | fi |
| 2622 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 2623 | test $ac_status = 0; } |
| 2624 | done |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2625 | |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 2626 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2627 | /* end confdefs.h. */ |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 2628 | #include <stdio.h> |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2629 | int |
| 2630 | main () |
| 2631 | { |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 2632 | FILE *f = fopen ("conftest.out", "w"); |
| 2633 | return ferror (f) || fclose (f) != 0; |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2634 | |
| 2635 | ; |
| 2636 | return 0; |
| 2637 | } |
| 2638 | _ACEOF |
| 2639 | ac_clean_files_save=$ac_clean_files |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 2640 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out" |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2641 | # Try to create an executable without -o first, disregard a.out. |
| 2642 | # It will help us diagnose broken compilers, and finding out an intuition |
| 2643 | # of exeext. |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 2644 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 |
| 2645 | $as_echo_n "checking for C compiler default output file name... " >&6; } |
| 2646 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
| 2647 | |
| 2648 | # The possible output files: |
| 2649 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" |
| 2650 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2651 | ac_rmfiles= |
| 2652 | for ac_file in $ac_files |
| 2653 | do |
| 2654 | case $ac_file in |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 2655 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2656 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; |
| 2657 | esac |
| 2658 | done |
| 2659 | rm -f $ac_rmfiles |
| 2660 | |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 2661 | if { { ac_try="$ac_link_default" |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2662 | case "(($ac_try" in |
| 2663 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2664 | *) ac_try_echo=$ac_try;; |
| 2665 | esac |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 2666 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 2667 | $as_echo "$ac_try_echo"; } >&5 |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2668 | (eval "$ac_link_default") 2>&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2669 | ac_status=$? |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 2670 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 2671 | test $ac_status = 0; }; then : |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2672 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
| 2673 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' |
| 2674 | # in a Makefile. We should not override ac_cv_exeext if it was cached, |
| 2675 | # so that the user can short-circuit this test for compilers unknown to |
| 2676 | # Autoconf. |
| 2677 | for ac_file in $ac_files '' |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2678 | do |
| 2679 | test -f "$ac_file" || continue |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2680 | case $ac_file in |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 2681 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2682 | ;; |
| 2683 | [ab].out ) |
| 2684 | # We found the default executable, but exeext='' is most |
| 2685 | # certainly right. |
| 2686 | break;; |
| 2687 | *.* ) |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 2688 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2689 | then :; else |
| 2690 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 2691 | fi |
| 2692 | # We set ac_cv_exeext here because the later test for it is not |
| 2693 | # safe: cross compilers may not add the suffix if given an `-o' |
| 2694 | # argument, so we may need to know it at that point already. |
| 2695 | # Even if this section looks crufty: it has the advantage of |
| 2696 | # actually working. |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2697 | break;; |
| 2698 | * ) |
| 2699 | break;; |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2700 | esac |
| 2701 | done |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2702 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
| 2703 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2704 | else |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2705 | ac_file='' |
| 2706 | fi |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 2707 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 |
| 2708 | $as_echo "$ac_file" >&6; } |
| 2709 | if test -z "$ac_file"; then : |
| 2710 | $as_echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2711 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2712 | |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 2713 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 2714 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 2715 | { as_fn_set_status 77 |
| 2716 | as_fn_error "C compiler cannot create executables |
| 2717 | See \`config.log' for more details." "$LINENO" 5; }; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2718 | fi |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2719 | ac_exeext=$ac_cv_exeext |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2720 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2721 | # Check that the compiler produces executables we can run. If not, either |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2722 | # the compiler is broken, or we cross compile. |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 2723 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 |
| 2724 | $as_echo_n "checking whether the C compiler works... " >&6; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2725 | # If not cross compiling, check that we can run a simple program. |
| 2726 | if test "$cross_compiling" != yes; then |
| 2727 | if { ac_try='./$ac_file' |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 2728 | { { case "(($ac_try" in |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2729 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2730 | *) ac_try_echo=$ac_try;; |
| 2731 | esac |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 2732 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 2733 | $as_echo "$ac_try_echo"; } >&5 |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2734 | (eval "$ac_try") 2>&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2735 | ac_status=$? |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 2736 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 2737 | test $ac_status = 0; }; }; then |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2738 | cross_compiling=no |
| 2739 | else |
| 2740 | if test "$cross_compiling" = maybe; then |
| 2741 | cross_compiling=yes |
| 2742 | else |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 2743 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 2744 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 2745 | as_fn_error "cannot run C compiled programs. |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2746 | If you meant to cross compile, use \`--host'. |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 2747 | See \`config.log' for more details." "$LINENO" 5; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2748 | fi |
| 2749 | fi |
| 2750 | fi |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 2751 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 2752 | $as_echo "yes" >&6; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2753 | |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 2754 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2755 | ac_clean_files=$ac_clean_files_save |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2756 | # Check that the compiler produces executables we can run. If not, either |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2757 | # the compiler is broken, or we cross compile. |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 2758 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 |
| 2759 | $as_echo_n "checking whether we are cross compiling... " >&6; } |
| 2760 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 |
| 2761 | $as_echo "$cross_compiling" >&6; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2762 | |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 2763 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 |
| 2764 | $as_echo_n "checking for suffix of executables... " >&6; } |
| 2765 | if { { ac_try="$ac_link" |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2766 | case "(($ac_try" in |
| 2767 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2768 | *) ac_try_echo=$ac_try;; |
| 2769 | esac |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 2770 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 2771 | $as_echo "$ac_try_echo"; } >&5 |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2772 | (eval "$ac_link") 2>&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2773 | ac_status=$? |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 2774 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 2775 | test $ac_status = 0; }; then : |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2776 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
| 2777 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
| 2778 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
| 2779 | # `rm'. |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2780 | for ac_file in conftest.exe conftest conftest.*; do |
| 2781 | test -f "$ac_file" || continue |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2782 | case $ac_file in |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 2783 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2784 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2785 | break;; |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2786 | * ) break;; |
| 2787 | esac |
| 2788 | done |
| 2789 | else |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 2790 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 2791 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 2792 | as_fn_error "cannot compute suffix of executables: cannot compile and link |
| 2793 | See \`config.log' for more details." "$LINENO" 5; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2794 | fi |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2795 | rm -f conftest$ac_cv_exeext |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 2796 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 |
| 2797 | $as_echo "$ac_cv_exeext" >&6; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2798 | |
| 2799 | rm -f conftest.$ac_ext |
| 2800 | EXEEXT=$ac_cv_exeext |
| 2801 | ac_exeext=$EXEEXT |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 2802 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 |
| 2803 | $as_echo_n "checking for suffix of object files... " >&6; } |
| 2804 | if test "${ac_cv_objext+set}" = set; then : |
| 2805 | $as_echo_n "(cached) " >&6 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2806 | else |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 2807 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2808 | /* end confdefs.h. */ |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2809 | |
| 2810 | int |
| 2811 | main () |
| 2812 | { |
| 2813 | |
| 2814 | ; |
| 2815 | return 0; |
| 2816 | } |
| 2817 | _ACEOF |
| 2818 | rm -f conftest.o conftest.obj |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 2819 | if { { ac_try="$ac_compile" |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2820 | case "(($ac_try" in |
| 2821 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2822 | *) ac_try_echo=$ac_try;; |
| 2823 | esac |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 2824 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 2825 | $as_echo "$ac_try_echo"; } >&5 |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2826 | (eval "$ac_compile") 2>&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2827 | ac_status=$? |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 2828 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 2829 | test $ac_status = 0; }; then : |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2830 | for ac_file in conftest.o conftest.obj conftest.*; do |
| 2831 | test -f "$ac_file" || continue; |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2832 | case $ac_file in |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 2833 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2834 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
| 2835 | break;; |
| 2836 | esac |
| 2837 | done |
| 2838 | else |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 2839 | $as_echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2840 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2841 | |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 2842 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 2843 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 2844 | as_fn_error "cannot compute suffix of object files: cannot compile |
| 2845 | See \`config.log' for more details." "$LINENO" 5; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2846 | fi |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2847 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
| 2848 | fi |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 2849 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 |
| 2850 | $as_echo "$ac_cv_objext" >&6; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2851 | OBJEXT=$ac_cv_objext |
| 2852 | ac_objext=$OBJEXT |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 2853 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 |
| 2854 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } |
| 2855 | if test "${ac_cv_c_compiler_gnu+set}" = set; then : |
| 2856 | $as_echo_n "(cached) " >&6 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2857 | else |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 2858 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2859 | /* end confdefs.h. */ |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2860 | |
| 2861 | int |
| 2862 | main () |
| 2863 | { |
| 2864 | #ifndef __GNUC__ |
| 2865 | choke me |
| 2866 | #endif |
| 2867 | |
| 2868 | ; |
| 2869 | return 0; |
| 2870 | } |
| 2871 | _ACEOF |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 2872 | if ac_fn_c_try_compile "$LINENO"; then : |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2873 | ac_compiler_gnu=yes |
| 2874 | else |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 2875 | ac_compiler_gnu=no |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2876 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2877 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2878 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
| 2879 | |
| 2880 | fi |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 2881 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
| 2882 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } |
| 2883 | if test $ac_compiler_gnu = yes; then |
| 2884 | GCC=yes |
| 2885 | else |
| 2886 | GCC= |
| 2887 | fi |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2888 | ac_test_CFLAGS=${CFLAGS+set} |
| 2889 | ac_save_CFLAGS=$CFLAGS |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 2890 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 |
| 2891 | $as_echo_n "checking whether $CC accepts -g... " >&6; } |
| 2892 | if test "${ac_cv_prog_cc_g+set}" = set; then : |
| 2893 | $as_echo_n "(cached) " >&6 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2894 | else |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2895 | ac_save_c_werror_flag=$ac_c_werror_flag |
| 2896 | ac_c_werror_flag=yes |
| 2897 | ac_cv_prog_cc_g=no |
| 2898 | CFLAGS="-g" |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 2899 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2900 | /* end confdefs.h. */ |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2901 | |
| 2902 | int |
| 2903 | main () |
| 2904 | { |
| 2905 | |
| 2906 | ; |
| 2907 | return 0; |
| 2908 | } |
| 2909 | _ACEOF |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 2910 | if ac_fn_c_try_compile "$LINENO"; then : |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2911 | ac_cv_prog_cc_g=yes |
| 2912 | else |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 2913 | CFLAGS="" |
| 2914 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2915 | /* end confdefs.h. */ |
| 2916 | |
| 2917 | int |
| 2918 | main () |
| 2919 | { |
| 2920 | |
| 2921 | ; |
| 2922 | return 0; |
| 2923 | } |
| 2924 | _ACEOF |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 2925 | if ac_fn_c_try_compile "$LINENO"; then : |
Benny Prijono | 46bd084 | 2010-02-12 14:12:41 +0000 | [diff] [blame] | 2926 | |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 2927 | else |
| 2928 | ac_c_werror_flag=$ac_save_c_werror_flag |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2929 | CFLAGS="-g" |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 2930 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2931 | /* end confdefs.h. */ |
| 2932 | |
| 2933 | int |
| 2934 | main () |
| 2935 | { |
| 2936 | |
| 2937 | ; |
| 2938 | return 0; |
| 2939 | } |
| 2940 | _ACEOF |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 2941 | if ac_fn_c_try_compile "$LINENO"; then : |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2942 | ac_cv_prog_cc_g=yes |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2943 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2944 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2945 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2946 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2947 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2948 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2949 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 2950 | fi |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 2951 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 |
| 2952 | $as_echo "$ac_cv_prog_cc_g" >&6; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2953 | if test "$ac_test_CFLAGS" = set; then |
| 2954 | CFLAGS=$ac_save_CFLAGS |
| 2955 | elif test $ac_cv_prog_cc_g = yes; then |
| 2956 | if test "$GCC" = yes; then |
| 2957 | CFLAGS="-g -O2" |
| 2958 | else |
| 2959 | CFLAGS="-g" |
| 2960 | fi |
| 2961 | else |
| 2962 | if test "$GCC" = yes; then |
| 2963 | CFLAGS="-O2" |
| 2964 | else |
| 2965 | CFLAGS= |
| 2966 | fi |
| 2967 | fi |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 2968 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 |
| 2969 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } |
| 2970 | if test "${ac_cv_prog_cc_c89+set}" = set; then : |
| 2971 | $as_echo_n "(cached) " >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2972 | else |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2973 | ac_cv_prog_cc_c89=no |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2974 | ac_save_CC=$CC |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 2975 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2976 | /* end confdefs.h. */ |
| 2977 | #include <stdarg.h> |
| 2978 | #include <stdio.h> |
| 2979 | #include <sys/types.h> |
| 2980 | #include <sys/stat.h> |
| 2981 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
| 2982 | struct buf { int x; }; |
| 2983 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
| 2984 | static char *e (p, i) |
| 2985 | char **p; |
| 2986 | int i; |
| 2987 | { |
| 2988 | return p[i]; |
| 2989 | } |
| 2990 | static char *f (char * (*g) (char **, int), char **p, ...) |
| 2991 | { |
| 2992 | char *s; |
| 2993 | va_list v; |
| 2994 | va_start (v,p); |
| 2995 | s = g (p, va_arg (v,int)); |
| 2996 | va_end (v); |
| 2997 | return s; |
| 2998 | } |
| 2999 | |
| 3000 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
| 3001 | function prototypes and stuff, but not '\xHH' hex character constants. |
| 3002 | These don't provoke an error unfortunately, instead are silently treated |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3003 | as 'x'. The following induces an error, until -std is added to get |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3004 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
| 3005 | array size at least. It's necessary to write '\x00'==0 to get something |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3006 | that's true only with -std. */ |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3007 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
| 3008 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3009 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
| 3010 | inside strings and character constants. */ |
| 3011 | #define FOO(x) 'x' |
| 3012 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; |
| 3013 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3014 | int test (int i, double x); |
| 3015 | struct s1 {int (*f) (int a);}; |
| 3016 | struct s2 {int (*f) (double a);}; |
| 3017 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
| 3018 | int argc; |
| 3019 | char **argv; |
| 3020 | int |
| 3021 | main () |
| 3022 | { |
| 3023 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
| 3024 | ; |
| 3025 | return 0; |
| 3026 | } |
| 3027 | _ACEOF |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3028 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
| 3029 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3030 | do |
| 3031 | CC="$ac_save_CC $ac_arg" |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 3032 | if ac_fn_c_try_compile "$LINENO"; then : |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3033 | ac_cv_prog_cc_c89=$ac_arg |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3034 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3035 | rm -f core conftest.err conftest.$ac_objext |
| 3036 | test "x$ac_cv_prog_cc_c89" != "xno" && break |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3037 | done |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3038 | rm -f conftest.$ac_ext |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3039 | CC=$ac_save_CC |
| 3040 | |
| 3041 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3042 | # AC_CACHE_VAL |
| 3043 | case "x$ac_cv_prog_cc_c89" in |
| 3044 | x) |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 3045 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 |
| 3046 | $as_echo "none needed" >&6; } ;; |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3047 | xno) |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 3048 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 |
| 3049 | $as_echo "unsupported" >&6; } ;; |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3050 | *) |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3051 | CC="$CC $ac_cv_prog_cc_c89" |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 3052 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 |
| 3053 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3054 | esac |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 3055 | if test "x$ac_cv_prog_cc_c89" != xno; then : |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3056 | |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 3057 | fi |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3058 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 3059 | ac_ext=c |
| 3060 | ac_cpp='$CPP $CPPFLAGS' |
| 3061 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3062 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3063 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3064 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3065 | ac_ext=cpp |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3066 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 3067 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3068 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3069 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3070 | if test -z "$CXX"; then |
| 3071 | if test -n "$CCC"; then |
| 3072 | CXX=$CCC |
| 3073 | else |
| 3074 | if test -n "$ac_tool_prefix"; then |
| 3075 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3076 | do |
| 3077 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 3078 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 3079 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3080 | $as_echo_n "checking for $ac_word... " >&6; } |
| 3081 | if test "${ac_cv_prog_CXX+set}" = set; then : |
| 3082 | $as_echo_n "(cached) " >&6 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3083 | else |
| 3084 | if test -n "$CXX"; then |
| 3085 | ac_cv_prog_CXX="$CXX" # Let the user override the test. |
| 3086 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3087 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3088 | for as_dir in $PATH |
| 3089 | do |
| 3090 | IFS=$as_save_IFS |
| 3091 | test -z "$as_dir" && as_dir=. |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 3092 | for ac_exec_ext in '' $ac_executable_extensions; do |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3093 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3094 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 3095 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3096 | break 2 |
| 3097 | fi |
| 3098 | done |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 3099 | done |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3100 | IFS=$as_save_IFS |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3101 | |
| 3102 | fi |
| 3103 | fi |
| 3104 | CXX=$ac_cv_prog_CXX |
| 3105 | if test -n "$CXX"; then |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 3106 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 |
| 3107 | $as_echo "$CXX" >&6; } |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3108 | else |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 3109 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3110 | $as_echo "no" >&6; } |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3111 | fi |
| 3112 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3113 | |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3114 | test -n "$CXX" && break |
| 3115 | done |
| 3116 | fi |
| 3117 | if test -z "$CXX"; then |
| 3118 | ac_ct_CXX=$CXX |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3119 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3120 | do |
| 3121 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 3122 | set dummy $ac_prog; ac_word=$2 |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 3123 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3124 | $as_echo_n "checking for $ac_word... " >&6; } |
| 3125 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then : |
| 3126 | $as_echo_n "(cached) " >&6 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3127 | else |
| 3128 | if test -n "$ac_ct_CXX"; then |
| 3129 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. |
| 3130 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3131 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3132 | for as_dir in $PATH |
| 3133 | do |
| 3134 | IFS=$as_save_IFS |
| 3135 | test -z "$as_dir" && as_dir=. |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 3136 | for ac_exec_ext in '' $ac_executable_extensions; do |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3137 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3138 | ac_cv_prog_ac_ct_CXX="$ac_prog" |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 3139 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3140 | break 2 |
| 3141 | fi |
| 3142 | done |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 3143 | done |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3144 | IFS=$as_save_IFS |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3145 | |
| 3146 | fi |
| 3147 | fi |
| 3148 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX |
| 3149 | if test -n "$ac_ct_CXX"; then |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 3150 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 |
| 3151 | $as_echo "$ac_ct_CXX" >&6; } |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3152 | else |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 3153 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3154 | $as_echo "no" >&6; } |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3155 | fi |
| 3156 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3157 | |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3158 | test -n "$ac_ct_CXX" && break |
| 3159 | done |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3160 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3161 | if test "x$ac_ct_CXX" = x; then |
| 3162 | CXX="g++" |
| 3163 | else |
| 3164 | case $cross_compiling:$ac_tool_warned in |
| 3165 | yes:) |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 3166 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 3167 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3168 | ac_tool_warned=yes ;; |
| 3169 | esac |
| 3170 | CXX=$ac_ct_CXX |
| 3171 | fi |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3172 | fi |
| 3173 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3174 | fi |
| 3175 | fi |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3176 | # Provide some information about the compiler. |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 3177 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 |
| 3178 | set X $ac_compile |
| 3179 | ac_compiler=$2 |
| 3180 | for ac_option in --version -v -V -qversion; do |
| 3181 | { { ac_try="$ac_compiler $ac_option >&5" |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3182 | case "(($ac_try" in |
| 3183 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3184 | *) ac_try_echo=$ac_try;; |
| 3185 | esac |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 3186 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3187 | $as_echo "$ac_try_echo"; } >&5 |
| 3188 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3189 | ac_status=$? |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 3190 | if test -s conftest.err; then |
| 3191 | sed '10a\ |
| 3192 | ... rest of stderr output deleted ... |
| 3193 | 10q' conftest.err >conftest.er1 |
| 3194 | cat conftest.er1 >&5 |
| 3195 | rm -f conftest.er1 conftest.err |
| 3196 | fi |
| 3197 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3198 | test $ac_status = 0; } |
| 3199 | done |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3200 | |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 3201 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 |
| 3202 | $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } |
| 3203 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then : |
| 3204 | $as_echo_n "(cached) " >&6 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3205 | else |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 3206 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3207 | /* end confdefs.h. */ |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3208 | |
| 3209 | int |
| 3210 | main () |
| 3211 | { |
| 3212 | #ifndef __GNUC__ |
| 3213 | choke me |
| 3214 | #endif |
| 3215 | |
| 3216 | ; |
| 3217 | return 0; |
| 3218 | } |
| 3219 | _ACEOF |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 3220 | if ac_fn_cxx_try_compile "$LINENO"; then : |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3221 | ac_compiler_gnu=yes |
| 3222 | else |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 3223 | ac_compiler_gnu=no |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3224 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3225 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3226 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
| 3227 | |
| 3228 | fi |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 3229 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 |
| 3230 | $as_echo "$ac_cv_cxx_compiler_gnu" >&6; } |
| 3231 | if test $ac_compiler_gnu = yes; then |
| 3232 | GXX=yes |
| 3233 | else |
| 3234 | GXX= |
| 3235 | fi |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3236 | ac_test_CXXFLAGS=${CXXFLAGS+set} |
| 3237 | ac_save_CXXFLAGS=$CXXFLAGS |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 3238 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 |
| 3239 | $as_echo_n "checking whether $CXX accepts -g... " >&6; } |
| 3240 | if test "${ac_cv_prog_cxx_g+set}" = set; then : |
| 3241 | $as_echo_n "(cached) " >&6 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3242 | else |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3243 | ac_save_cxx_werror_flag=$ac_cxx_werror_flag |
| 3244 | ac_cxx_werror_flag=yes |
| 3245 | ac_cv_prog_cxx_g=no |
| 3246 | CXXFLAGS="-g" |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 3247 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3248 | /* end confdefs.h. */ |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3249 | |
| 3250 | int |
| 3251 | main () |
| 3252 | { |
| 3253 | |
| 3254 | ; |
| 3255 | return 0; |
| 3256 | } |
| 3257 | _ACEOF |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 3258 | if ac_fn_cxx_try_compile "$LINENO"; then : |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3259 | ac_cv_prog_cxx_g=yes |
| 3260 | else |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 3261 | CXXFLAGS="" |
| 3262 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3263 | /* end confdefs.h. */ |
| 3264 | |
| 3265 | int |
| 3266 | main () |
| 3267 | { |
| 3268 | |
| 3269 | ; |
| 3270 | return 0; |
| 3271 | } |
| 3272 | _ACEOF |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 3273 | if ac_fn_cxx_try_compile "$LINENO"; then : |
Benny Prijono | 46bd084 | 2010-02-12 14:12:41 +0000 | [diff] [blame] | 3274 | |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 3275 | else |
| 3276 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3277 | CXXFLAGS="-g" |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 3278 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3279 | /* end confdefs.h. */ |
| 3280 | |
| 3281 | int |
| 3282 | main () |
| 3283 | { |
| 3284 | |
| 3285 | ; |
| 3286 | return 0; |
| 3287 | } |
| 3288 | _ACEOF |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 3289 | if ac_fn_cxx_try_compile "$LINENO"; then : |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3290 | ac_cv_prog_cxx_g=yes |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3291 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3292 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3293 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3294 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3295 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3296 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3297 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
| 3298 | fi |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 3299 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 |
| 3300 | $as_echo "$ac_cv_prog_cxx_g" >&6; } |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3301 | if test "$ac_test_CXXFLAGS" = set; then |
| 3302 | CXXFLAGS=$ac_save_CXXFLAGS |
| 3303 | elif test $ac_cv_prog_cxx_g = yes; then |
| 3304 | if test "$GXX" = yes; then |
| 3305 | CXXFLAGS="-g -O2" |
| 3306 | else |
| 3307 | CXXFLAGS="-g" |
| 3308 | fi |
| 3309 | else |
| 3310 | if test "$GXX" = yes; then |
| 3311 | CXXFLAGS="-O2" |
| 3312 | else |
| 3313 | CXXFLAGS= |
| 3314 | fi |
| 3315 | fi |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 3316 | ac_ext=c |
| 3317 | ac_cpp='$CPP $CPPFLAGS' |
| 3318 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3319 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3320 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3321 | |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3322 | ac_ext=c |
| 3323 | ac_cpp='$CPP $CPPFLAGS' |
| 3324 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3325 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3326 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3327 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3328 | |
| 3329 | |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 3330 | |
Benny Prijono | 53847a3 | 2007-09-24 16:10:13 +0000 | [diff] [blame] | 3331 | case $target in |
| 3332 | *mingw* | *cygw* | *win32* | *w32* ) |
| 3333 | ac_pjdir=`pwd -W` |
| 3334 | ;; |
| 3335 | *) |
| 3336 | ac_pjdir=`pwd` |
| 3337 | ;; |
| 3338 | esac |
Benny Prijono | 1248311 | 2007-03-12 10:44:38 +0000 | [diff] [blame] | 3339 | |
| 3340 | |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 3341 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5 |
| 3342 | $as_echo_n "checking for pthread_create in -lpthread... " >&6; } |
| 3343 | if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then : |
| 3344 | $as_echo_n "(cached) " >&6 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3345 | else |
| 3346 | ac_check_lib_save_LIBS=$LIBS |
| 3347 | LIBS="-lpthread $LIBS" |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 3348 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3349 | /* end confdefs.h. */ |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3350 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3351 | /* Override any GCC internal prototype to avoid an error. |
| 3352 | Use char because int might match the return type of a GCC |
| 3353 | builtin and then its argument prototype would still apply. */ |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3354 | #ifdef __cplusplus |
| 3355 | extern "C" |
| 3356 | #endif |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3357 | char pthread_create (); |
| 3358 | int |
| 3359 | main () |
| 3360 | { |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3361 | return pthread_create (); |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3362 | ; |
| 3363 | return 0; |
| 3364 | } |
| 3365 | _ACEOF |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 3366 | if ac_fn_c_try_link "$LINENO"; then : |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3367 | ac_cv_lib_pthread_pthread_create=yes |
| 3368 | else |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 3369 | ac_cv_lib_pthread_pthread_create=no |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3370 | fi |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 3371 | rm -f core conftest.err conftest.$ac_objext \ |
| 3372 | conftest$ac_exeext conftest.$ac_ext |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3373 | LIBS=$ac_check_lib_save_LIBS |
| 3374 | fi |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 3375 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5 |
| 3376 | $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; } |
| 3377 | if test "x$ac_cv_lib_pthread_pthread_create" = x""yes; then : |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3378 | cat >>confdefs.h <<_ACEOF |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3379 | #define HAVE_LIBPTHREAD 1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3380 | _ACEOF |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3381 | |
| 3382 | LIBS="-lpthread $LIBS" |
| 3383 | |
| 3384 | fi |
| 3385 | |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 3386 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for puts in -lwsock32" >&5 |
| 3387 | $as_echo_n "checking for puts in -lwsock32... " >&6; } |
| 3388 | if test "${ac_cv_lib_wsock32_puts+set}" = set; then : |
| 3389 | $as_echo_n "(cached) " >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3390 | else |
| 3391 | ac_check_lib_save_LIBS=$LIBS |
| 3392 | LIBS="-lwsock32 $LIBS" |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 3393 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3394 | /* end confdefs.h. */ |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3395 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3396 | /* Override any GCC internal prototype to avoid an error. |
| 3397 | Use char because int might match the return type of a GCC |
| 3398 | builtin and then its argument prototype would still apply. */ |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3399 | #ifdef __cplusplus |
| 3400 | extern "C" |
| 3401 | #endif |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3402 | char puts (); |
| 3403 | int |
| 3404 | main () |
| 3405 | { |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3406 | return puts (); |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3407 | ; |
| 3408 | return 0; |
| 3409 | } |
| 3410 | _ACEOF |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 3411 | if ac_fn_c_try_link "$LINENO"; then : |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3412 | ac_cv_lib_wsock32_puts=yes |
| 3413 | else |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 3414 | ac_cv_lib_wsock32_puts=no |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3415 | fi |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 3416 | rm -f core conftest.err conftest.$ac_objext \ |
| 3417 | conftest$ac_exeext conftest.$ac_ext |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3418 | LIBS=$ac_check_lib_save_LIBS |
| 3419 | fi |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 3420 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wsock32_puts" >&5 |
| 3421 | $as_echo "$ac_cv_lib_wsock32_puts" >&6; } |
| 3422 | if test "x$ac_cv_lib_wsock32_puts" = x""yes; then : |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3423 | cat >>confdefs.h <<_ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3424 | #define HAVE_LIBWSOCK32 1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3425 | _ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3426 | |
| 3427 | LIBS="-lwsock32 $LIBS" |
| 3428 | |
| 3429 | fi |
| 3430 | |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 3431 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for puts in -lws2_32" >&5 |
| 3432 | $as_echo_n "checking for puts in -lws2_32... " >&6; } |
| 3433 | if test "${ac_cv_lib_ws2_32_puts+set}" = set; then : |
| 3434 | $as_echo_n "(cached) " >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3435 | else |
| 3436 | ac_check_lib_save_LIBS=$LIBS |
| 3437 | LIBS="-lws2_32 $LIBS" |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 3438 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3439 | /* end confdefs.h. */ |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3440 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3441 | /* Override any GCC internal prototype to avoid an error. |
| 3442 | Use char because int might match the return type of a GCC |
| 3443 | builtin and then its argument prototype would still apply. */ |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3444 | #ifdef __cplusplus |
| 3445 | extern "C" |
| 3446 | #endif |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3447 | char puts (); |
| 3448 | int |
| 3449 | main () |
| 3450 | { |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3451 | return puts (); |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3452 | ; |
| 3453 | return 0; |
| 3454 | } |
| 3455 | _ACEOF |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 3456 | if ac_fn_c_try_link "$LINENO"; then : |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3457 | ac_cv_lib_ws2_32_puts=yes |
| 3458 | else |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 3459 | ac_cv_lib_ws2_32_puts=no |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3460 | fi |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 3461 | rm -f core conftest.err conftest.$ac_objext \ |
| 3462 | conftest$ac_exeext conftest.$ac_ext |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3463 | LIBS=$ac_check_lib_save_LIBS |
| 3464 | fi |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 3465 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ws2_32_puts" >&5 |
| 3466 | $as_echo "$ac_cv_lib_ws2_32_puts" >&6; } |
| 3467 | if test "x$ac_cv_lib_ws2_32_puts" = x""yes; then : |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3468 | cat >>confdefs.h <<_ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3469 | #define HAVE_LIBWS2_32 1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3470 | _ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3471 | |
| 3472 | LIBS="-lws2_32 $LIBS" |
| 3473 | |
| 3474 | fi |
| 3475 | |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 3476 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for puts in -lole32" >&5 |
| 3477 | $as_echo_n "checking for puts in -lole32... " >&6; } |
| 3478 | if test "${ac_cv_lib_ole32_puts+set}" = set; then : |
| 3479 | $as_echo_n "(cached) " >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3480 | else |
| 3481 | ac_check_lib_save_LIBS=$LIBS |
| 3482 | LIBS="-lole32 $LIBS" |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 3483 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3484 | /* end confdefs.h. */ |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3485 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3486 | /* Override any GCC internal prototype to avoid an error. |
| 3487 | Use char because int might match the return type of a GCC |
| 3488 | builtin and then its argument prototype would still apply. */ |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3489 | #ifdef __cplusplus |
| 3490 | extern "C" |
| 3491 | #endif |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3492 | char puts (); |
| 3493 | int |
| 3494 | main () |
| 3495 | { |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3496 | return puts (); |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3497 | ; |
| 3498 | return 0; |
| 3499 | } |
| 3500 | _ACEOF |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 3501 | if ac_fn_c_try_link "$LINENO"; then : |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3502 | ac_cv_lib_ole32_puts=yes |
| 3503 | else |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 3504 | ac_cv_lib_ole32_puts=no |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3505 | fi |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 3506 | rm -f core conftest.err conftest.$ac_objext \ |
| 3507 | conftest$ac_exeext conftest.$ac_ext |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3508 | LIBS=$ac_check_lib_save_LIBS |
| 3509 | fi |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 3510 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ole32_puts" >&5 |
| 3511 | $as_echo "$ac_cv_lib_ole32_puts" >&6; } |
| 3512 | if test "x$ac_cv_lib_ole32_puts" = x""yes; then : |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3513 | cat >>confdefs.h <<_ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3514 | #define HAVE_LIBOLE32 1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3515 | _ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3516 | |
| 3517 | LIBS="-lole32 $LIBS" |
| 3518 | |
| 3519 | fi |
| 3520 | |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 3521 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for puts in -lwinmm" >&5 |
| 3522 | $as_echo_n "checking for puts in -lwinmm... " >&6; } |
| 3523 | if test "${ac_cv_lib_winmm_puts+set}" = set; then : |
| 3524 | $as_echo_n "(cached) " >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3525 | else |
| 3526 | ac_check_lib_save_LIBS=$LIBS |
| 3527 | LIBS="-lwinmm $LIBS" |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 3528 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3529 | /* end confdefs.h. */ |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3530 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3531 | /* Override any GCC internal prototype to avoid an error. |
| 3532 | Use char because int might match the return type of a GCC |
| 3533 | builtin and then its argument prototype would still apply. */ |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3534 | #ifdef __cplusplus |
| 3535 | extern "C" |
| 3536 | #endif |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3537 | char puts (); |
| 3538 | int |
| 3539 | main () |
| 3540 | { |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3541 | return puts (); |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3542 | ; |
| 3543 | return 0; |
| 3544 | } |
| 3545 | _ACEOF |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 3546 | if ac_fn_c_try_link "$LINENO"; then : |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3547 | ac_cv_lib_winmm_puts=yes |
| 3548 | else |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 3549 | ac_cv_lib_winmm_puts=no |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3550 | fi |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 3551 | rm -f core conftest.err conftest.$ac_objext \ |
| 3552 | conftest$ac_exeext conftest.$ac_ext |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3553 | LIBS=$ac_check_lib_save_LIBS |
| 3554 | fi |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 3555 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_winmm_puts" >&5 |
| 3556 | $as_echo "$ac_cv_lib_winmm_puts" >&6; } |
| 3557 | if test "x$ac_cv_lib_winmm_puts" = x""yes; then : |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3558 | cat >>confdefs.h <<_ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3559 | #define HAVE_LIBWINMM 1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3560 | _ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3561 | |
| 3562 | LIBS="-lwinmm $LIBS" |
| 3563 | |
| 3564 | fi |
| 3565 | |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 3566 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for puts in -lsocket" >&5 |
| 3567 | $as_echo_n "checking for puts in -lsocket... " >&6; } |
| 3568 | if test "${ac_cv_lib_socket_puts+set}" = set; then : |
| 3569 | $as_echo_n "(cached) " >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3570 | else |
| 3571 | ac_check_lib_save_LIBS=$LIBS |
| 3572 | LIBS="-lsocket $LIBS" |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 3573 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3574 | /* end confdefs.h. */ |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3575 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3576 | /* Override any GCC internal prototype to avoid an error. |
| 3577 | Use char because int might match the return type of a GCC |
| 3578 | builtin and then its argument prototype would still apply. */ |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3579 | #ifdef __cplusplus |
| 3580 | extern "C" |
| 3581 | #endif |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3582 | char puts (); |
| 3583 | int |
| 3584 | main () |
| 3585 | { |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3586 | return puts (); |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3587 | ; |
| 3588 | return 0; |
| 3589 | } |
| 3590 | _ACEOF |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 3591 | if ac_fn_c_try_link "$LINENO"; then : |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3592 | ac_cv_lib_socket_puts=yes |
| 3593 | else |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 3594 | ac_cv_lib_socket_puts=no |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3595 | fi |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 3596 | rm -f core conftest.err conftest.$ac_objext \ |
| 3597 | conftest$ac_exeext conftest.$ac_ext |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3598 | LIBS=$ac_check_lib_save_LIBS |
| 3599 | fi |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 3600 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_puts" >&5 |
| 3601 | $as_echo "$ac_cv_lib_socket_puts" >&6; } |
| 3602 | if test "x$ac_cv_lib_socket_puts" = x""yes; then : |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3603 | cat >>confdefs.h <<_ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3604 | #define HAVE_LIBSOCKET 1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3605 | _ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3606 | |
| 3607 | LIBS="-lsocket $LIBS" |
| 3608 | |
| 3609 | fi |
| 3610 | |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 3611 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for puts in -lrt" >&5 |
| 3612 | $as_echo_n "checking for puts in -lrt... " >&6; } |
| 3613 | if test "${ac_cv_lib_rt_puts+set}" = set; then : |
| 3614 | $as_echo_n "(cached) " >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3615 | else |
| 3616 | ac_check_lib_save_LIBS=$LIBS |
| 3617 | LIBS="-lrt $LIBS" |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 3618 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3619 | /* end confdefs.h. */ |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3620 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3621 | /* Override any GCC internal prototype to avoid an error. |
| 3622 | Use char because int might match the return type of a GCC |
| 3623 | builtin and then its argument prototype would still apply. */ |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3624 | #ifdef __cplusplus |
| 3625 | extern "C" |
| 3626 | #endif |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3627 | char puts (); |
| 3628 | int |
| 3629 | main () |
| 3630 | { |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3631 | return puts (); |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3632 | ; |
| 3633 | return 0; |
| 3634 | } |
| 3635 | _ACEOF |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 3636 | if ac_fn_c_try_link "$LINENO"; then : |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3637 | ac_cv_lib_rt_puts=yes |
| 3638 | else |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 3639 | ac_cv_lib_rt_puts=no |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3640 | fi |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 3641 | rm -f core conftest.err conftest.$ac_objext \ |
| 3642 | conftest$ac_exeext conftest.$ac_ext |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3643 | LIBS=$ac_check_lib_save_LIBS |
| 3644 | fi |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 3645 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_puts" >&5 |
| 3646 | $as_echo "$ac_cv_lib_rt_puts" >&6; } |
| 3647 | if test "x$ac_cv_lib_rt_puts" = x""yes; then : |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3648 | cat >>confdefs.h <<_ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3649 | #define HAVE_LIBRT 1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3650 | _ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3651 | |
| 3652 | LIBS="-lrt $LIBS" |
| 3653 | |
| 3654 | fi |
| 3655 | |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 3656 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for puts in -lnsl" >&5 |
| 3657 | $as_echo_n "checking for puts in -lnsl... " >&6; } |
| 3658 | if test "${ac_cv_lib_nsl_puts+set}" = set; then : |
| 3659 | $as_echo_n "(cached) " >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3660 | else |
| 3661 | ac_check_lib_save_LIBS=$LIBS |
| 3662 | LIBS="-lnsl $LIBS" |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 3663 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3664 | /* end confdefs.h. */ |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3665 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3666 | /* Override any GCC internal prototype to avoid an error. |
| 3667 | Use char because int might match the return type of a GCC |
| 3668 | builtin and then its argument prototype would still apply. */ |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3669 | #ifdef __cplusplus |
| 3670 | extern "C" |
| 3671 | #endif |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3672 | char puts (); |
| 3673 | int |
| 3674 | main () |
| 3675 | { |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3676 | return puts (); |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3677 | ; |
| 3678 | return 0; |
| 3679 | } |
| 3680 | _ACEOF |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 3681 | if ac_fn_c_try_link "$LINENO"; then : |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3682 | ac_cv_lib_nsl_puts=yes |
| 3683 | else |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 3684 | ac_cv_lib_nsl_puts=no |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3685 | fi |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 3686 | rm -f core conftest.err conftest.$ac_objext \ |
| 3687 | conftest$ac_exeext conftest.$ac_ext |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3688 | LIBS=$ac_check_lib_save_LIBS |
| 3689 | fi |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 3690 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_puts" >&5 |
| 3691 | $as_echo "$ac_cv_lib_nsl_puts" >&6; } |
| 3692 | if test "x$ac_cv_lib_nsl_puts" = x""yes; then : |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3693 | cat >>confdefs.h <<_ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3694 | #define HAVE_LIBNSL 1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3695 | _ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3696 | |
| 3697 | LIBS="-lnsl $LIBS" |
| 3698 | |
| 3699 | fi |
| 3700 | |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 3701 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_generate in -luuid" >&5 |
| 3702 | $as_echo_n "checking for uuid_generate in -luuid... " >&6; } |
| 3703 | if test "${ac_cv_lib_uuid_uuid_generate+set}" = set; then : |
| 3704 | $as_echo_n "(cached) " >&6 |
Benny Prijono | 4e48b51 | 2007-05-16 13:41:00 +0000 | [diff] [blame] | 3705 | else |
| 3706 | ac_check_lib_save_LIBS=$LIBS |
| 3707 | LIBS="-luuid $LIBS" |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 3708 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Benny Prijono | 4e48b51 | 2007-05-16 13:41:00 +0000 | [diff] [blame] | 3709 | /* end confdefs.h. */ |
| 3710 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3711 | /* Override any GCC internal prototype to avoid an error. |
| 3712 | Use char because int might match the return type of a GCC |
| 3713 | builtin and then its argument prototype would still apply. */ |
Benny Prijono | 4e48b51 | 2007-05-16 13:41:00 +0000 | [diff] [blame] | 3714 | #ifdef __cplusplus |
| 3715 | extern "C" |
| 3716 | #endif |
Benny Prijono | 4e48b51 | 2007-05-16 13:41:00 +0000 | [diff] [blame] | 3717 | char uuid_generate (); |
| 3718 | int |
| 3719 | main () |
| 3720 | { |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3721 | return uuid_generate (); |
Benny Prijono | 4e48b51 | 2007-05-16 13:41:00 +0000 | [diff] [blame] | 3722 | ; |
| 3723 | return 0; |
| 3724 | } |
| 3725 | _ACEOF |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 3726 | if ac_fn_c_try_link "$LINENO"; then : |
Benny Prijono | 4e48b51 | 2007-05-16 13:41:00 +0000 | [diff] [blame] | 3727 | ac_cv_lib_uuid_uuid_generate=yes |
| 3728 | else |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 3729 | ac_cv_lib_uuid_uuid_generate=no |
Benny Prijono | 4e48b51 | 2007-05-16 13:41:00 +0000 | [diff] [blame] | 3730 | fi |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 3731 | rm -f core conftest.err conftest.$ac_objext \ |
| 3732 | conftest$ac_exeext conftest.$ac_ext |
Benny Prijono | 4e48b51 | 2007-05-16 13:41:00 +0000 | [diff] [blame] | 3733 | LIBS=$ac_check_lib_save_LIBS |
| 3734 | fi |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 3735 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_generate" >&5 |
| 3736 | $as_echo "$ac_cv_lib_uuid_uuid_generate" >&6; } |
| 3737 | if test "x$ac_cv_lib_uuid_uuid_generate" = x""yes; then : |
Benny Prijono | 4e48b51 | 2007-05-16 13:41:00 +0000 | [diff] [blame] | 3738 | cat >>confdefs.h <<_ACEOF |
| 3739 | #define HAVE_LIBUUID 1 |
| 3740 | _ACEOF |
| 3741 | |
| 3742 | LIBS="-luuid $LIBS" |
| 3743 | |
| 3744 | fi |
| 3745 | |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 3746 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_generate in -luuid" >&5 |
| 3747 | $as_echo_n "checking for uuid_generate in -luuid... " >&6; } |
| 3748 | if test "${ac_cv_lib_uuid_uuid_generate+set}" = set; then : |
| 3749 | $as_echo_n "(cached) " >&6 |
Benny Prijono | 4e48b51 | 2007-05-16 13:41:00 +0000 | [diff] [blame] | 3750 | else |
| 3751 | ac_check_lib_save_LIBS=$LIBS |
| 3752 | LIBS="-luuid $LIBS" |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 3753 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Benny Prijono | 4e48b51 | 2007-05-16 13:41:00 +0000 | [diff] [blame] | 3754 | /* end confdefs.h. */ |
| 3755 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3756 | /* Override any GCC internal prototype to avoid an error. |
| 3757 | Use char because int might match the return type of a GCC |
| 3758 | builtin and then its argument prototype would still apply. */ |
Benny Prijono | 4e48b51 | 2007-05-16 13:41:00 +0000 | [diff] [blame] | 3759 | #ifdef __cplusplus |
| 3760 | extern "C" |
| 3761 | #endif |
Benny Prijono | 4e48b51 | 2007-05-16 13:41:00 +0000 | [diff] [blame] | 3762 | char uuid_generate (); |
| 3763 | int |
| 3764 | main () |
| 3765 | { |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3766 | return uuid_generate (); |
Benny Prijono | 4e48b51 | 2007-05-16 13:41:00 +0000 | [diff] [blame] | 3767 | ; |
| 3768 | return 0; |
| 3769 | } |
| 3770 | _ACEOF |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 3771 | if ac_fn_c_try_link "$LINENO"; then : |
Benny Prijono | 4e48b51 | 2007-05-16 13:41:00 +0000 | [diff] [blame] | 3772 | ac_cv_lib_uuid_uuid_generate=yes |
| 3773 | else |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 3774 | ac_cv_lib_uuid_uuid_generate=no |
Benny Prijono | 4e48b51 | 2007-05-16 13:41:00 +0000 | [diff] [blame] | 3775 | fi |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 3776 | rm -f core conftest.err conftest.$ac_objext \ |
| 3777 | conftest$ac_exeext conftest.$ac_ext |
Benny Prijono | 4e48b51 | 2007-05-16 13:41:00 +0000 | [diff] [blame] | 3778 | LIBS=$ac_check_lib_save_LIBS |
| 3779 | fi |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 3780 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_generate" >&5 |
| 3781 | $as_echo "$ac_cv_lib_uuid_uuid_generate" >&6; } |
| 3782 | if test "x$ac_cv_lib_uuid_uuid_generate" = x""yes; then : |
Benny Prijono | 4e48b51 | 2007-05-16 13:41:00 +0000 | [diff] [blame] | 3783 | ac_has_uuid_lib=1 |
| 3784 | fi |
| 3785 | |
| 3786 | |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 3787 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting PJ_M_NAME to $target_cpu" >&5 |
| 3788 | $as_echo "Setting PJ_M_NAME to $target_cpu" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3789 | cat >>confdefs.h <<_ACEOF |
| 3790 | #define PJ_M_NAME "$target_cpu" |
| 3791 | _ACEOF |
| 3792 | |
| 3793 | |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 3794 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking memory alignment" >&5 |
| 3795 | $as_echo_n "checking memory alignment... " >&6; } |
Benny Prijono | 1d97162 | 2006-09-10 22:27:40 +0000 | [diff] [blame] | 3796 | case $target in |
| 3797 | ia64-* | x86_64-* ) |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 3798 | $as_echo "#define PJ_POOL_ALIGNMENT 8" >>confdefs.h |
Benny Prijono | 1d97162 | 2006-09-10 22:27:40 +0000 | [diff] [blame] | 3799 | |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 3800 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: 8 bytes" >&5 |
| 3801 | $as_echo "8 bytes" >&6; } |
Benny Prijono | 1d97162 | 2006-09-10 22:27:40 +0000 | [diff] [blame] | 3802 | ;; |
| 3803 | * ) |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 3804 | $as_echo "#define PJ_POOL_ALIGNMENT 4" >>confdefs.h |
Benny Prijono | 1d97162 | 2006-09-10 22:27:40 +0000 | [diff] [blame] | 3805 | |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 3806 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: 4 bytes (default)" >&5 |
| 3807 | $as_echo "4 bytes (default)" >&6; } |
Benny Prijono | 1d97162 | 2006-09-10 22:27:40 +0000 | [diff] [blame] | 3808 | ;; |
| 3809 | esac |
| 3810 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3811 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3812 | ac_ext=c |
| 3813 | ac_cpp='$CPP $CPPFLAGS' |
| 3814 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3815 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3816 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 3817 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 |
| 3818 | $as_echo_n "checking how to run the C preprocessor... " >&6; } |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3819 | # On Suns, sometimes $CPP names a directory. |
| 3820 | if test -n "$CPP" && test -d "$CPP"; then |
| 3821 | CPP= |
| 3822 | fi |
| 3823 | if test -z "$CPP"; then |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 3824 | if test "${ac_cv_prog_CPP+set}" = set; then : |
| 3825 | $as_echo_n "(cached) " >&6 |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3826 | else |
| 3827 | # Double quotes because CPP needs to be expanded |
| 3828 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
| 3829 | do |
| 3830 | ac_preproc_ok=false |
| 3831 | for ac_c_preproc_warn_flag in '' yes |
| 3832 | do |
| 3833 | # Use a header file that comes with gcc, so configuring glibc |
| 3834 | # with a fresh cross-compiler works. |
| 3835 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 3836 | # <limits.h> exists even on freestanding compilers. |
| 3837 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 3838 | # not just through cpp. "Syntax error" is here to catch this case. |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 3839 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3840 | /* end confdefs.h. */ |
| 3841 | #ifdef __STDC__ |
| 3842 | # include <limits.h> |
| 3843 | #else |
| 3844 | # include <assert.h> |
| 3845 | #endif |
| 3846 | Syntax error |
| 3847 | _ACEOF |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 3848 | if ac_fn_c_try_cpp "$LINENO"; then : |
Benny Prijono | 46bd084 | 2010-02-12 14:12:41 +0000 | [diff] [blame] | 3849 | |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 3850 | else |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3851 | # Broken: fails on valid input. |
| 3852 | continue |
| 3853 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3854 | rm -f conftest.err conftest.$ac_ext |
| 3855 | |
| 3856 | # OK, works on sane cases. Now check whether nonexistent headers |
| 3857 | # can be detected and how. |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 3858 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3859 | /* end confdefs.h. */ |
| 3860 | #include <ac_nonexistent.h> |
| 3861 | _ACEOF |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 3862 | if ac_fn_c_try_cpp "$LINENO"; then : |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3863 | # Broken: success on invalid input. |
| 3864 | continue |
| 3865 | else |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3866 | # Passes both tests. |
| 3867 | ac_preproc_ok=: |
| 3868 | break |
| 3869 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3870 | rm -f conftest.err conftest.$ac_ext |
| 3871 | |
| 3872 | done |
| 3873 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 3874 | rm -f conftest.err conftest.$ac_ext |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 3875 | if $ac_preproc_ok; then : |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3876 | break |
| 3877 | fi |
| 3878 | |
| 3879 | done |
| 3880 | ac_cv_prog_CPP=$CPP |
| 3881 | |
| 3882 | fi |
| 3883 | CPP=$ac_cv_prog_CPP |
| 3884 | else |
| 3885 | ac_cv_prog_CPP=$CPP |
| 3886 | fi |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 3887 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 |
| 3888 | $as_echo "$CPP" >&6; } |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3889 | ac_preproc_ok=false |
| 3890 | for ac_c_preproc_warn_flag in '' yes |
| 3891 | do |
| 3892 | # Use a header file that comes with gcc, so configuring glibc |
| 3893 | # with a fresh cross-compiler works. |
| 3894 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 3895 | # <limits.h> exists even on freestanding compilers. |
| 3896 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 3897 | # not just through cpp. "Syntax error" is here to catch this case. |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 3898 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3899 | /* end confdefs.h. */ |
| 3900 | #ifdef __STDC__ |
| 3901 | # include <limits.h> |
| 3902 | #else |
| 3903 | # include <assert.h> |
| 3904 | #endif |
| 3905 | Syntax error |
| 3906 | _ACEOF |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 3907 | if ac_fn_c_try_cpp "$LINENO"; then : |
Benny Prijono | 46bd084 | 2010-02-12 14:12:41 +0000 | [diff] [blame] | 3908 | |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 3909 | else |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3910 | # Broken: fails on valid input. |
| 3911 | continue |
| 3912 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3913 | rm -f conftest.err conftest.$ac_ext |
| 3914 | |
| 3915 | # OK, works on sane cases. Now check whether nonexistent headers |
| 3916 | # can be detected and how. |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 3917 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3918 | /* end confdefs.h. */ |
| 3919 | #include <ac_nonexistent.h> |
| 3920 | _ACEOF |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 3921 | if ac_fn_c_try_cpp "$LINENO"; then : |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3922 | # Broken: success on invalid input. |
| 3923 | continue |
| 3924 | else |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3925 | # Passes both tests. |
| 3926 | ac_preproc_ok=: |
| 3927 | break |
| 3928 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3929 | rm -f conftest.err conftest.$ac_ext |
| 3930 | |
| 3931 | done |
| 3932 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 3933 | rm -f conftest.err conftest.$ac_ext |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 3934 | if $ac_preproc_ok; then : |
| 3935 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3936 | else |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 3937 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 3938 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 3939 | as_fn_error "C preprocessor \"$CPP\" fails sanity check |
| 3940 | See \`config.log' for more details." "$LINENO" 5; } |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3941 | fi |
| 3942 | |
| 3943 | ac_ext=c |
| 3944 | ac_cpp='$CPP $CPPFLAGS' |
| 3945 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3946 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3947 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3948 | |
| 3949 | |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 3950 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 |
| 3951 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } |
| 3952 | if test "${ac_cv_path_GREP+set}" = set; then : |
| 3953 | $as_echo_n "(cached) " >&6 |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3954 | else |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 3955 | if test -z "$GREP"; then |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3956 | ac_path_GREP_found=false |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 3957 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 3958 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3959 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 3960 | do |
| 3961 | IFS=$as_save_IFS |
| 3962 | test -z "$as_dir" && as_dir=. |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 3963 | for ac_prog in grep ggrep; do |
| 3964 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3965 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" |
| 3966 | { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue |
| 3967 | # Check for GNU ac_path_GREP and select it if it is found. |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3968 | # Check for GNU $ac_path_GREP |
| 3969 | case `"$ac_path_GREP" --version 2>&1` in |
| 3970 | *GNU*) |
| 3971 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; |
| 3972 | *) |
| 3973 | ac_count=0 |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 3974 | $as_echo_n 0123456789 >"conftest.in" |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3975 | while : |
| 3976 | do |
| 3977 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 3978 | mv "conftest.tmp" "conftest.in" |
| 3979 | cp "conftest.in" "conftest.nl" |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 3980 | $as_echo 'GREP' >> "conftest.nl" |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3981 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 3982 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 3983 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3984 | if test $ac_count -gt ${ac_path_GREP_max-0}; then |
| 3985 | # Best one so far, save it but keep looking for a better one |
| 3986 | ac_cv_path_GREP="$ac_path_GREP" |
| 3987 | ac_path_GREP_max=$ac_count |
| 3988 | fi |
| 3989 | # 10*(2^10) chars as input seems more than enough |
| 3990 | test $ac_count -gt 10 && break |
| 3991 | done |
| 3992 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 3993 | esac |
| 3994 | |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 3995 | $ac_path_GREP_found && break 3 |
| 3996 | done |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3997 | done |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 3998 | done |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3999 | IFS=$as_save_IFS |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 4000 | if test -z "$ac_cv_path_GREP"; then |
| 4001 | as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
| 4002 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4003 | else |
| 4004 | ac_cv_path_GREP=$GREP |
| 4005 | fi |
| 4006 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4007 | fi |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 4008 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 |
| 4009 | $as_echo "$ac_cv_path_GREP" >&6; } |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4010 | GREP="$ac_cv_path_GREP" |
| 4011 | |
| 4012 | |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 4013 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 |
| 4014 | $as_echo_n "checking for egrep... " >&6; } |
| 4015 | if test "${ac_cv_path_EGREP+set}" = set; then : |
| 4016 | $as_echo_n "(cached) " >&6 |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4017 | else |
| 4018 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
| 4019 | then ac_cv_path_EGREP="$GREP -E" |
| 4020 | else |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 4021 | if test -z "$EGREP"; then |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4022 | ac_path_EGREP_found=false |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 4023 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 4024 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4025 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 4026 | do |
| 4027 | IFS=$as_save_IFS |
| 4028 | test -z "$as_dir" && as_dir=. |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 4029 | for ac_prog in egrep; do |
| 4030 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4031 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" |
| 4032 | { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue |
| 4033 | # Check for GNU ac_path_EGREP and select it if it is found. |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4034 | # Check for GNU $ac_path_EGREP |
| 4035 | case `"$ac_path_EGREP" --version 2>&1` in |
| 4036 | *GNU*) |
| 4037 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; |
| 4038 | *) |
| 4039 | ac_count=0 |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 4040 | $as_echo_n 0123456789 >"conftest.in" |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4041 | while : |
| 4042 | do |
| 4043 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 4044 | mv "conftest.tmp" "conftest.in" |
| 4045 | cp "conftest.in" "conftest.nl" |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 4046 | $as_echo 'EGREP' >> "conftest.nl" |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4047 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 4048 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 4049 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4050 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then |
| 4051 | # Best one so far, save it but keep looking for a better one |
| 4052 | ac_cv_path_EGREP="$ac_path_EGREP" |
| 4053 | ac_path_EGREP_max=$ac_count |
| 4054 | fi |
| 4055 | # 10*(2^10) chars as input seems more than enough |
| 4056 | test $ac_count -gt 10 && break |
| 4057 | done |
| 4058 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 4059 | esac |
| 4060 | |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 4061 | $ac_path_EGREP_found && break 3 |
| 4062 | done |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4063 | done |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 4064 | done |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4065 | IFS=$as_save_IFS |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 4066 | if test -z "$ac_cv_path_EGREP"; then |
| 4067 | as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
| 4068 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4069 | else |
| 4070 | ac_cv_path_EGREP=$EGREP |
| 4071 | fi |
| 4072 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4073 | fi |
| 4074 | fi |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 4075 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 |
| 4076 | $as_echo "$ac_cv_path_EGREP" >&6; } |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4077 | EGREP="$ac_cv_path_EGREP" |
| 4078 | |
| 4079 | |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 4080 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 |
| 4081 | $as_echo_n "checking for ANSI C header files... " >&6; } |
| 4082 | if test "${ac_cv_header_stdc+set}" = set; then : |
| 4083 | $as_echo_n "(cached) " >&6 |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4084 | else |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 4085 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4086 | /* end confdefs.h. */ |
| 4087 | #include <stdlib.h> |
| 4088 | #include <stdarg.h> |
| 4089 | #include <string.h> |
| 4090 | #include <float.h> |
| 4091 | |
| 4092 | int |
| 4093 | main () |
| 4094 | { |
| 4095 | |
| 4096 | ; |
| 4097 | return 0; |
| 4098 | } |
| 4099 | _ACEOF |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 4100 | if ac_fn_c_try_compile "$LINENO"; then : |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4101 | ac_cv_header_stdc=yes |
| 4102 | else |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 4103 | ac_cv_header_stdc=no |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4104 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4105 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4106 | |
| 4107 | if test $ac_cv_header_stdc = yes; then |
| 4108 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 4109 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4110 | /* end confdefs.h. */ |
| 4111 | #include <string.h> |
| 4112 | |
| 4113 | _ACEOF |
| 4114 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 4115 | $EGREP "memchr" >/dev/null 2>&1; then : |
| 4116 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4117 | else |
| 4118 | ac_cv_header_stdc=no |
| 4119 | fi |
| 4120 | rm -f conftest* |
| 4121 | |
| 4122 | fi |
| 4123 | |
| 4124 | if test $ac_cv_header_stdc = yes; then |
| 4125 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 4126 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4127 | /* end confdefs.h. */ |
| 4128 | #include <stdlib.h> |
| 4129 | |
| 4130 | _ACEOF |
| 4131 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 4132 | $EGREP "free" >/dev/null 2>&1; then : |
| 4133 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4134 | else |
| 4135 | ac_cv_header_stdc=no |
| 4136 | fi |
| 4137 | rm -f conftest* |
| 4138 | |
| 4139 | fi |
| 4140 | |
| 4141 | if test $ac_cv_header_stdc = yes; then |
| 4142 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 4143 | if test "$cross_compiling" = yes; then : |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4144 | : |
| 4145 | else |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 4146 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4147 | /* end confdefs.h. */ |
| 4148 | #include <ctype.h> |
| 4149 | #include <stdlib.h> |
| 4150 | #if ((' ' & 0x0FF) == 0x020) |
| 4151 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 4152 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 4153 | #else |
| 4154 | # define ISLOWER(c) \ |
| 4155 | (('a' <= (c) && (c) <= 'i') \ |
| 4156 | || ('j' <= (c) && (c) <= 'r') \ |
| 4157 | || ('s' <= (c) && (c) <= 'z')) |
| 4158 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 4159 | #endif |
| 4160 | |
| 4161 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 4162 | int |
| 4163 | main () |
| 4164 | { |
| 4165 | int i; |
| 4166 | for (i = 0; i < 256; i++) |
| 4167 | if (XOR (islower (i), ISLOWER (i)) |
| 4168 | || toupper (i) != TOUPPER (i)) |
| 4169 | return 2; |
| 4170 | return 0; |
| 4171 | } |
| 4172 | _ACEOF |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 4173 | if ac_fn_c_try_run "$LINENO"; then : |
| 4174 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4175 | else |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 4176 | ac_cv_header_stdc=no |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4177 | fi |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 4178 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 4179 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4180 | fi |
| 4181 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4182 | fi |
| 4183 | fi |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 4184 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 |
| 4185 | $as_echo "$ac_cv_header_stdc" >&6; } |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4186 | if test $ac_cv_header_stdc = yes; then |
| 4187 | |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 4188 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4189 | |
| 4190 | fi |
| 4191 | |
| 4192 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4193 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
| 4194 | inttypes.h stdint.h unistd.h |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 4195 | do : |
| 4196 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 4197 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default |
| 4198 | " |
| 4199 | eval as_val=\$$as_ac_Header |
| 4200 | if test "x$as_val" = x""yes; then : |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4201 | cat >>confdefs.h <<_ACEOF |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 4202 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4203 | _ACEOF |
| 4204 | |
| 4205 | fi |
| 4206 | |
| 4207 | done |
| 4208 | |
| 4209 | |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 4210 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 |
| 4211 | $as_echo_n "checking whether byte ordering is bigendian... " >&6; } |
| 4212 | if test "${ac_cv_c_bigendian+set}" = set; then : |
| 4213 | $as_echo_n "(cached) " >&6 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 4214 | else |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 4215 | ac_cv_c_bigendian=unknown |
| 4216 | # See if we're dealing with a universal compiler. |
| 4217 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4218 | /* end confdefs.h. */ |
| 4219 | #ifndef __APPLE_CC__ |
| 4220 | not a universal capable compiler |
| 4221 | #endif |
| 4222 | typedef int dummy; |
| 4223 | |
Benny Prijono | d523370 | 2010-01-13 13:09:45 +0000 | [diff] [blame] | 4224 | _ACEOF |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 4225 | if ac_fn_c_try_compile "$LINENO"; then : |
| 4226 | |
| 4227 | # Check for potential -arch flags. It is not universal unless |
| 4228 | # there are at least two -arch flags with different values. |
| 4229 | ac_arch= |
| 4230 | ac_prev= |
| 4231 | for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do |
| 4232 | if test -n "$ac_prev"; then |
| 4233 | case $ac_word in |
| 4234 | i?86 | x86_64 | ppc | ppc64) |
| 4235 | if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then |
| 4236 | ac_arch=$ac_word |
| 4237 | else |
| 4238 | ac_cv_c_bigendian=universal |
| 4239 | break |
| 4240 | fi |
| 4241 | ;; |
| 4242 | esac |
| 4243 | ac_prev= |
| 4244 | elif test "x$ac_word" = "x-arch"; then |
| 4245 | ac_prev=arch |
| 4246 | fi |
| 4247 | done |
| 4248 | fi |
| 4249 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4250 | if test $ac_cv_c_bigendian = unknown; then |
| 4251 | # See if sys/param.h defines the BYTE_ORDER macro. |
| 4252 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4253 | /* end confdefs.h. */ |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 4254 | #include <sys/types.h> |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 4255 | #include <sys/param.h> |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 4256 | |
| 4257 | int |
| 4258 | main () |
| 4259 | { |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 4260 | #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ |
| 4261 | && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ |
| 4262 | && LITTLE_ENDIAN) |
| 4263 | bogus endian macros |
| 4264 | #endif |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 4265 | |
| 4266 | ; |
| 4267 | return 0; |
| 4268 | } |
| 4269 | _ACEOF |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 4270 | if ac_fn_c_try_compile "$LINENO"; then : |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 4271 | # It does; now see whether it defined to BIG_ENDIAN or not. |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 4272 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4273 | /* end confdefs.h. */ |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 4274 | #include <sys/types.h> |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 4275 | #include <sys/param.h> |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 4276 | |
| 4277 | int |
| 4278 | main () |
| 4279 | { |
| 4280 | #if BYTE_ORDER != BIG_ENDIAN |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 4281 | not big endian |
| 4282 | #endif |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 4283 | |
| 4284 | ; |
| 4285 | return 0; |
| 4286 | } |
| 4287 | _ACEOF |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 4288 | if ac_fn_c_try_compile "$LINENO"; then : |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 4289 | ac_cv_c_bigendian=yes |
| 4290 | else |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 4291 | ac_cv_c_bigendian=no |
Benny Prijono | 46bd084 | 2010-02-12 14:12:41 +0000 | [diff] [blame] | 4292 | fi |
Benny Prijono | 46bd084 | 2010-02-12 14:12:41 +0000 | [diff] [blame] | 4293 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 4294 | fi |
| 4295 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4296 | fi |
| 4297 | if test $ac_cv_c_bigendian = unknown; then |
| 4298 | # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). |
| 4299 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Benny Prijono | 46bd084 | 2010-02-12 14:12:41 +0000 | [diff] [blame] | 4300 | /* end confdefs.h. */ |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 4301 | #include <limits.h> |
| 4302 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4303 | int |
| 4304 | main () |
| 4305 | { |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 4306 | #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) |
| 4307 | bogus endian macros |
| 4308 | #endif |
| 4309 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4310 | ; |
| 4311 | return 0; |
| 4312 | } |
| 4313 | _ACEOF |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 4314 | if ac_fn_c_try_compile "$LINENO"; then : |
| 4315 | # It does; now see whether it defined to _BIG_ENDIAN or not. |
| 4316 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4317 | /* end confdefs.h. */ |
| 4318 | #include <limits.h> |
| 4319 | |
| 4320 | int |
| 4321 | main () |
| 4322 | { |
| 4323 | #ifndef _BIG_ENDIAN |
| 4324 | not big endian |
| 4325 | #endif |
| 4326 | |
| 4327 | ; |
| 4328 | return 0; |
| 4329 | } |
| 4330 | _ACEOF |
| 4331 | if ac_fn_c_try_compile "$LINENO"; then : |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4332 | ac_cv_c_bigendian=yes |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4333 | else |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 4334 | ac_cv_c_bigendian=no |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4335 | fi |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 4336 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4337 | fi |
| 4338 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4339 | fi |
| 4340 | if test $ac_cv_c_bigendian = unknown; then |
| 4341 | # Compile a test program. |
| 4342 | if test "$cross_compiling" = yes; then : |
| 4343 | # Try to guess by grepping values from an object file. |
| 4344 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4345 | /* end confdefs.h. */ |
| 4346 | short int ascii_mm[] = |
| 4347 | { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; |
| 4348 | short int ascii_ii[] = |
| 4349 | { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; |
| 4350 | int use_ascii (int i) { |
| 4351 | return ascii_mm[i] + ascii_ii[i]; |
| 4352 | } |
| 4353 | short int ebcdic_ii[] = |
| 4354 | { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; |
| 4355 | short int ebcdic_mm[] = |
| 4356 | { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; |
| 4357 | int use_ebcdic (int i) { |
| 4358 | return ebcdic_mm[i] + ebcdic_ii[i]; |
| 4359 | } |
| 4360 | extern int foo; |
Benny Prijono | 46bd084 | 2010-02-12 14:12:41 +0000 | [diff] [blame] | 4361 | |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 4362 | int |
| 4363 | main () |
| 4364 | { |
| 4365 | return use_ascii (foo) == use_ebcdic (foo); |
| 4366 | ; |
| 4367 | return 0; |
| 4368 | } |
| 4369 | _ACEOF |
| 4370 | if ac_fn_c_try_compile "$LINENO"; then : |
| 4371 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then |
| 4372 | ac_cv_c_bigendian=yes |
| 4373 | fi |
| 4374 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then |
| 4375 | if test "$ac_cv_c_bigendian" = unknown; then |
| 4376 | ac_cv_c_bigendian=no |
| 4377 | else |
| 4378 | # finding both strings is unlikely to happen, but who knows? |
| 4379 | ac_cv_c_bigendian=unknown |
| 4380 | fi |
| 4381 | fi |
| 4382 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4383 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 4384 | else |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 4385 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4386 | /* end confdefs.h. */ |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4387 | $ac_includes_default |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 4388 | int |
| 4389 | main () |
| 4390 | { |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4391 | |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 4392 | /* Are we little or big endian? From Harbison&Steele. */ |
| 4393 | union |
| 4394 | { |
| 4395 | long int l; |
| 4396 | char c[sizeof (long int)]; |
| 4397 | } u; |
| 4398 | u.l = 1; |
| 4399 | return u.c[sizeof (long int) - 1] == 1; |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4400 | |
| 4401 | ; |
| 4402 | return 0; |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 4403 | } |
| 4404 | _ACEOF |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 4405 | if ac_fn_c_try_run "$LINENO"; then : |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 4406 | ac_cv_c_bigendian=no |
| 4407 | else |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 4408 | ac_cv_c_bigendian=yes |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 4409 | fi |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 4410 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 4411 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 4412 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4413 | |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 4414 | fi |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 4415 | fi |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 4416 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 |
| 4417 | $as_echo "$ac_cv_c_bigendian" >&6; } |
| 4418 | case $ac_cv_c_bigendian in #( |
| 4419 | yes) |
| 4420 | $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h |
| 4421 | ;; #( |
| 4422 | no) |
| 4423 | ;; #( |
| 4424 | universal) |
Benny Prijono | d523370 | 2010-01-13 13:09:45 +0000 | [diff] [blame] | 4425 | |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 4426 | $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h |
Benny Prijono | d523370 | 2010-01-13 13:09:45 +0000 | [diff] [blame] | 4427 | |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 4428 | ;; #( |
| 4429 | *) |
| 4430 | as_fn_error "unknown endianness |
| 4431 | presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; |
| 4432 | esac |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 4433 | |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 4434 | |
| 4435 | case $target in |
| 4436 | *mingw* | *cygw* | *win32* | *w32* ) |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 4437 | $as_echo "#define PJ_WIN32 1" >>confdefs.h |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 4438 | |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 4439 | $as_echo "#define PJ_WIN32_WINNT 0x0400" >>confdefs.h |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 4440 | |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 4441 | $as_echo "#define WIN32_LEAN_AND_MEAN 1" >>confdefs.h |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 4442 | |
| 4443 | ;; |
| 4444 | *darwin*) |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 4445 | $as_echo "#define PJ_DARWINOS 1" >>confdefs.h |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 4446 | |
| 4447 | ;; |
| 4448 | *linux*) |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 4449 | $as_echo "#define PJ_LINUX 1" >>confdefs.h |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 4450 | |
| 4451 | ;; |
| 4452 | *rtems*) |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 4453 | $as_echo "#define PJ_RTEMS 1" >>confdefs.h |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 4454 | |
| 4455 | ;; |
| 4456 | *sunos* | *solaris* ) |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 4457 | $as_echo "#define PJ_SUNOS 1" >>confdefs.h |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 4458 | |
| 4459 | ;; |
| 4460 | *) |
| 4461 | ;; |
| 4462 | esac |
| 4463 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4464 | |
| 4465 | |
| 4466 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4467 | # Check whether --enable-floating-point was given. |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 4468 | if test "${enable_floating_point+set}" = set; then : |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4469 | enableval=$enable_floating_point; if test "$enable_floating_point" = "no"; then |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 4470 | $as_echo "#define PJ_HAS_FLOATING_POINT 0" >>confdefs.h |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 4471 | |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 4472 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if floating point is disabled... yes" >&5 |
| 4473 | $as_echo "Checking if floating point is disabled... yes" >&6; } |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 4474 | fi |
| 4475 | else |
| 4476 | |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 4477 | $as_echo "#define PJ_HAS_FLOATING_POINT 1" >>confdefs.h |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 4478 | |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 4479 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if floating point is disabled... no" >&5 |
| 4480 | $as_echo "Checking if floating point is disabled... no" >&6; } |
| 4481 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fmod in -lm" >&5 |
| 4482 | $as_echo_n "checking for fmod in -lm... " >&6; } |
| 4483 | if test "${ac_cv_lib_m_fmod+set}" = set; then : |
| 4484 | $as_echo_n "(cached) " >&6 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 4485 | else |
| 4486 | ac_check_lib_save_LIBS=$LIBS |
| 4487 | LIBS="-lm $LIBS" |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 4488 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4489 | /* end confdefs.h. */ |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 4490 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4491 | /* Override any GCC internal prototype to avoid an error. |
| 4492 | Use char because int might match the return type of a GCC |
| 4493 | builtin and then its argument prototype would still apply. */ |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 4494 | #ifdef __cplusplus |
| 4495 | extern "C" |
| 4496 | #endif |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 4497 | char fmod (); |
| 4498 | int |
| 4499 | main () |
| 4500 | { |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4501 | return fmod (); |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 4502 | ; |
| 4503 | return 0; |
| 4504 | } |
| 4505 | _ACEOF |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 4506 | if ac_fn_c_try_link "$LINENO"; then : |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 4507 | ac_cv_lib_m_fmod=yes |
| 4508 | else |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 4509 | ac_cv_lib_m_fmod=no |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 4510 | fi |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 4511 | rm -f core conftest.err conftest.$ac_objext \ |
| 4512 | conftest$ac_exeext conftest.$ac_ext |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 4513 | LIBS=$ac_check_lib_save_LIBS |
| 4514 | fi |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 4515 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_fmod" >&5 |
| 4516 | $as_echo "$ac_cv_lib_m_fmod" >&6; } |
| 4517 | if test "x$ac_cv_lib_m_fmod" = x""yes; then : |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4518 | cat >>confdefs.h <<_ACEOF |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 4519 | #define HAVE_LIBM 1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4520 | _ACEOF |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 4521 | |
| 4522 | LIBS="-lm $LIBS" |
| 4523 | |
| 4524 | fi |
| 4525 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4526 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 4527 | fi |
| 4528 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4529 | |
| 4530 | |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 4531 | ac_fn_c_check_header_mongrel "$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$ac_includes_default" |
| 4532 | if test "x$ac_cv_header_arpa_inet_h" = x""yes; then : |
| 4533 | $as_echo "#define PJ_HAS_ARPA_INET_H 1" >>confdefs.h |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4534 | |
| 4535 | fi |
| 4536 | |
| 4537 | |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 4538 | ac_fn_c_check_header_mongrel "$LINENO" "assert.h" "ac_cv_header_assert_h" "$ac_includes_default" |
| 4539 | if test "x$ac_cv_header_assert_h" = x""yes; then : |
| 4540 | $as_echo "#define PJ_HAS_ASSERT_H 1" >>confdefs.h |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4541 | |
| 4542 | fi |
| 4543 | |
| 4544 | |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 4545 | ac_fn_c_check_header_mongrel "$LINENO" "ctype.h" "ac_cv_header_ctype_h" "$ac_includes_default" |
| 4546 | if test "x$ac_cv_header_ctype_h" = x""yes; then : |
| 4547 | $as_echo "#define PJ_HAS_CTYPE_H 1" >>confdefs.h |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4548 | |
| 4549 | fi |
| 4550 | |
| 4551 | |
| 4552 | |
| 4553 | case $target in |
| 4554 | *mingw* | *cygw* | *win32* | *w32* ) |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 4555 | $as_echo "#define PJ_HAS_ERRNO_H 0" >>confdefs.h |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4556 | |
| 4557 | ;; |
| 4558 | *) |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 4559 | ac_fn_c_check_header_mongrel "$LINENO" "errno.h" "ac_cv_header_errno_h" "$ac_includes_default" |
| 4560 | if test "x$ac_cv_header_errno_h" = x""yes; then : |
| 4561 | $as_echo "#define PJ_HAS_ERRNO_H 1" >>confdefs.h |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4562 | |
| 4563 | fi |
| 4564 | |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 4565 | |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 4566 | ;; |
| 4567 | esac |
| 4568 | |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 4569 | ac_fn_c_check_header_mongrel "$LINENO" "fcntl.h" "ac_cv_header_fcntl_h" "$ac_includes_default" |
| 4570 | if test "x$ac_cv_header_fcntl_h" = x""yes; then : |
| 4571 | $as_echo "#define PJ_HAS_FCNTL_H 1" >>confdefs.h |
Benny Prijono | 1d481ab | 2008-01-24 15:27:30 +0000 | [diff] [blame] | 4572 | |
| 4573 | fi |
| 4574 | |
| 4575 | |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 4576 | ac_fn_c_check_header_mongrel "$LINENO" "linux/socket.h" "ac_cv_header_linux_socket_h" "$ac_includes_default" |
| 4577 | if test "x$ac_cv_header_linux_socket_h" = x""yes; then : |
| 4578 | $as_echo "#define PJ_HAS_LINUX_SOCKET_H 1" >>confdefs.h |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4579 | |
| 4580 | fi |
| 4581 | |
| 4582 | |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 4583 | ac_fn_c_check_header_mongrel "$LINENO" "malloc.h" "ac_cv_header_malloc_h" "$ac_includes_default" |
| 4584 | if test "x$ac_cv_header_malloc_h" = x""yes; then : |
| 4585 | $as_echo "#define PJ_HAS_MALLOC_H 1" >>confdefs.h |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4586 | |
| 4587 | fi |
| 4588 | |
| 4589 | |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 4590 | ac_fn_c_check_header_mongrel "$LINENO" "netdb.h" "ac_cv_header_netdb_h" "$ac_includes_default" |
| 4591 | if test "x$ac_cv_header_netdb_h" = x""yes; then : |
| 4592 | $as_echo "#define PJ_HAS_NETDB_H 1" >>confdefs.h |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4593 | |
| 4594 | fi |
| 4595 | |
| 4596 | |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 4597 | ac_fn_c_check_header_mongrel "$LINENO" "netinet/in_systm.h" "ac_cv_header_netinet_in_systm_h" "$ac_includes_default" |
| 4598 | if test "x$ac_cv_header_netinet_in_systm_h" = x""yes; then : |
| 4599 | $as_echo "#define PJ_HAS_NETINET_IN_SYSTM_H 1" >>confdefs.h |
Benny Prijono | 37fc9de | 2008-08-04 14:45:02 +0000 | [diff] [blame] | 4600 | |
| 4601 | fi |
| 4602 | |
| 4603 | |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 4604 | ac_fn_c_check_header_mongrel "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default" |
| 4605 | if test "x$ac_cv_header_netinet_in_h" = x""yes; then : |
| 4606 | $as_echo "#define PJ_HAS_NETINET_IN_H 1" >>confdefs.h |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4607 | |
| 4608 | fi |
| 4609 | |
| 4610 | |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 4611 | ac_fn_c_check_header_compile "$LINENO" "netinet/ip.h" "ac_cv_header_netinet_ip_h" "#if PJ_HAS_SYS_TYPES_H |
Benny Prijono | d523370 | 2010-01-13 13:09:45 +0000 | [diff] [blame] | 4612 | # include <sys/types.h> |
| 4613 | #endif |
| 4614 | #if PJ_HAS_NETINET_IN_SYSTM_H |
Benny Prijono | 37fc9de | 2008-08-04 14:45:02 +0000 | [diff] [blame] | 4615 | # include <netinet/in_systm.h> |
| 4616 | #endif |
Benny Prijono | d523370 | 2010-01-13 13:09:45 +0000 | [diff] [blame] | 4617 | #if PJ_HAS_NETINET_IN_H |
| 4618 | # include <netinet/in.h> |
| 4619 | #endif |
Benny Prijono | 37fc9de | 2008-08-04 14:45:02 +0000 | [diff] [blame] | 4620 | |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 4621 | " |
| 4622 | if test "x$ac_cv_header_netinet_ip_h" = x""yes; then : |
| 4623 | $as_echo "#define PJ_HAS_NETINET_IP_H 1" >>confdefs.h |
Benny Prijono | 46bd084 | 2010-02-12 14:12:41 +0000 | [diff] [blame] | 4624 | |
Benny Prijono | 46bd084 | 2010-02-12 14:12:41 +0000 | [diff] [blame] | 4625 | fi |
| 4626 | |
Benny Prijono | f63a255 | 2007-02-01 00:36:52 +0000 | [diff] [blame] | 4627 | |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 4628 | ac_fn_c_check_header_mongrel "$LINENO" "netinet/tcp.h" "ac_cv_header_netinet_tcp_h" "$ac_includes_default" |
| 4629 | if test "x$ac_cv_header_netinet_tcp_h" = x""yes; then : |
| 4630 | $as_echo "#define PJ_HAS_NETINET_TCP_H 1" >>confdefs.h |
Benny Prijono | 46bd084 | 2010-02-12 14:12:41 +0000 | [diff] [blame] | 4631 | |
Benny Prijono | 46bd084 | 2010-02-12 14:12:41 +0000 | [diff] [blame] | 4632 | fi |
| 4633 | |
Benny Prijono | 46bd084 | 2010-02-12 14:12:41 +0000 | [diff] [blame] | 4634 | |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 4635 | ac_fn_c_check_header_mongrel "$LINENO" "ifaddrs.h" "ac_cv_header_ifaddrs_h" "$ac_includes_default" |
| 4636 | if test "x$ac_cv_header_ifaddrs_h" = x""yes; then : |
| 4637 | $as_echo "#define PJ_HAS_IFADDRS_H 1" >>confdefs.h |
Benny Prijono | 46bd084 | 2010-02-12 14:12:41 +0000 | [diff] [blame] | 4638 | |
Benny Prijono | 46bd084 | 2010-02-12 14:12:41 +0000 | [diff] [blame] | 4639 | fi |
| 4640 | |
Benny Prijono | 46bd084 | 2010-02-12 14:12:41 +0000 | [diff] [blame] | 4641 | |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 4642 | ac_fn_c_check_header_mongrel "$LINENO" "semaphore.h" "ac_cv_header_semaphore_h" "$ac_includes_default" |
| 4643 | if test "x$ac_cv_header_semaphore_h" = x""yes; then : |
| 4644 | $as_echo "#define PJ_HAS_SEMAPHORE_H 1" >>confdefs.h |
Benny Prijono | 1d61ba5 | 2009-10-24 00:00:40 +0000 | [diff] [blame] | 4645 | |
Benny Prijono | 1d61ba5 | 2009-10-24 00:00:40 +0000 | [diff] [blame] | 4646 | fi |
| 4647 | |
Benny Prijono | 1d61ba5 | 2009-10-24 00:00:40 +0000 | [diff] [blame] | 4648 | |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 4649 | ac_fn_c_check_header_mongrel "$LINENO" "setjmp.h" "ac_cv_header_setjmp_h" "$ac_includes_default" |
| 4650 | if test "x$ac_cv_header_setjmp_h" = x""yes; then : |
| 4651 | $as_echo "#define PJ_HAS_SETJMP_H 1" >>confdefs.h |
Benny Prijono | 46bd084 | 2010-02-12 14:12:41 +0000 | [diff] [blame] | 4652 | |
Benny Prijono | 46bd084 | 2010-02-12 14:12:41 +0000 | [diff] [blame] | 4653 | fi |
| 4654 | |
Benny Prijono | 46bd084 | 2010-02-12 14:12:41 +0000 | [diff] [blame] | 4655 | |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 4656 | ac_fn_c_check_header_mongrel "$LINENO" "stdarg.h" "ac_cv_header_stdarg_h" "$ac_includes_default" |
| 4657 | if test "x$ac_cv_header_stdarg_h" = x""yes; then : |
| 4658 | $as_echo "#define PJ_HAS_STDARG_H 1" >>confdefs.h |
Benny Prijono | 46bd084 | 2010-02-12 14:12:41 +0000 | [diff] [blame] | 4659 | |
Benny Prijono | 46bd084 | 2010-02-12 14:12:41 +0000 | [diff] [blame] | 4660 | fi |
| 4661 | |
Benny Prijono | 46bd084 | 2010-02-12 14:12:41 +0000 | [diff] [blame] | 4662 | |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 4663 | ac_fn_c_check_header_mongrel "$LINENO" "stddef.h" "ac_cv_header_stddef_h" "$ac_includes_default" |
| 4664 | if test "x$ac_cv_header_stddef_h" = x""yes; then : |
| 4665 | $as_echo "#define PJ_HAS_STDDEF_H 1" >>confdefs.h |
Benny Prijono | 1d61ba5 | 2009-10-24 00:00:40 +0000 | [diff] [blame] | 4666 | |
Benny Prijono | 1d61ba5 | 2009-10-24 00:00:40 +0000 | [diff] [blame] | 4667 | fi |
| 4668 | |
Benny Prijono | 1d61ba5 | 2009-10-24 00:00:40 +0000 | [diff] [blame] | 4669 | |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 4670 | ac_fn_c_check_header_mongrel "$LINENO" "stdio.h" "ac_cv_header_stdio_h" "$ac_includes_default" |
| 4671 | if test "x$ac_cv_header_stdio_h" = x""yes; then : |
| 4672 | $as_echo "#define PJ_HAS_STDIO_H 1" >>confdefs.h |
Benny Prijono | 46bd084 | 2010-02-12 14:12:41 +0000 | [diff] [blame] | 4673 | |
Benny Prijono | 46bd084 | 2010-02-12 14:12:41 +0000 | [diff] [blame] | 4674 | fi |
| 4675 | |
Benny Prijono | 46bd084 | 2010-02-12 14:12:41 +0000 | [diff] [blame] | 4676 | |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 4677 | ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default" |
| 4678 | if test "x$ac_cv_header_stdint_h" = x""yes; then : |
| 4679 | $as_echo "#define PJ_HAS_STDINT_H 1" >>confdefs.h |
Benny Prijono | 46bd084 | 2010-02-12 14:12:41 +0000 | [diff] [blame] | 4680 | |
Benny Prijono | 46bd084 | 2010-02-12 14:12:41 +0000 | [diff] [blame] | 4681 | fi |
| 4682 | |
Benny Prijono | 46bd084 | 2010-02-12 14:12:41 +0000 | [diff] [blame] | 4683 | |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 4684 | ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default" |
| 4685 | if test "x$ac_cv_header_stdlib_h" = x""yes; then : |
| 4686 | $as_echo "#define PJ_HAS_STDLIB_H 1" >>confdefs.h |
Benny Prijono | 1d61ba5 | 2009-10-24 00:00:40 +0000 | [diff] [blame] | 4687 | |
| 4688 | fi |
| 4689 | |
| 4690 | |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 4691 | ac_fn_c_check_header_mongrel "$LINENO" "string.h" "ac_cv_header_string_h" "$ac_includes_default" |
| 4692 | if test "x$ac_cv_header_string_h" = x""yes; then : |
| 4693 | $as_echo "#define PJ_HAS_STRING_H 1" >>confdefs.h |
Benny Prijono | 46bd084 | 2010-02-12 14:12:41 +0000 | [diff] [blame] | 4694 | |
Benny Prijono | 46bd084 | 2010-02-12 14:12:41 +0000 | [diff] [blame] | 4695 | fi |
| 4696 | |
Benny Prijono | 46bd084 | 2010-02-12 14:12:41 +0000 | [diff] [blame] | 4697 | |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 4698 | ac_fn_c_check_header_mongrel "$LINENO" "sys/ioctl.h" "ac_cv_header_sys_ioctl_h" "$ac_includes_default" |
| 4699 | if test "x$ac_cv_header_sys_ioctl_h" = x""yes; then : |
| 4700 | $as_echo "#define PJ_HAS_SYS_IOCTL_H 1" >>confdefs.h |
Benny Prijono | 46bd084 | 2010-02-12 14:12:41 +0000 | [diff] [blame] | 4701 | |
Benny Prijono | 46bd084 | 2010-02-12 14:12:41 +0000 | [diff] [blame] | 4702 | fi |
| 4703 | |
Benny Prijono | 46bd084 | 2010-02-12 14:12:41 +0000 | [diff] [blame] | 4704 | |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 4705 | ac_fn_c_check_header_mongrel "$LINENO" "sys/select.h" "ac_cv_header_sys_select_h" "$ac_includes_default" |
| 4706 | if test "x$ac_cv_header_sys_select_h" = x""yes; then : |
| 4707 | $as_echo "#define PJ_HAS_SYS_SELECT_H 1" >>confdefs.h |
Benny Prijono | 46bd084 | 2010-02-12 14:12:41 +0000 | [diff] [blame] | 4708 | |
Benny Prijono | 46bd084 | 2010-02-12 14:12:41 +0000 | [diff] [blame] | 4709 | fi |
Benny Prijono | 46bd084 | 2010-02-12 14:12:41 +0000 | [diff] [blame] | 4710 | |
Benny Prijono | 1d65f70 | 2007-12-03 04:03:17 +0000 | [diff] [blame] | 4711 | |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 4712 | ac_fn_c_check_header_mongrel "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default" |
| 4713 | if test "x$ac_cv_header_sys_socket_h" = x""yes; then : |
| 4714 | $as_echo "#define PJ_HAS_SYS_SOCKET_H 1" >>confdefs.h |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4715 | |
Benny Prijono | 46bd084 | 2010-02-12 14:12:41 +0000 | [diff] [blame] | 4716 | fi |
Benny Prijono | 46bd084 | 2010-02-12 14:12:41 +0000 | [diff] [blame] | 4717 | |
Benny Prijono | 46bd084 | 2010-02-12 14:12:41 +0000 | [diff] [blame] | 4718 | |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 4719 | ac_fn_c_check_header_mongrel "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "$ac_includes_default" |
| 4720 | if test "x$ac_cv_header_sys_time_h" = x""yes; then : |
| 4721 | $as_echo "#define PJ_HAS_SYS_TIME_H 1" >>confdefs.h |
Benny Prijono | 46bd084 | 2010-02-12 14:12:41 +0000 | [diff] [blame] | 4722 | |
Benny Prijono | 46bd084 | 2010-02-12 14:12:41 +0000 | [diff] [blame] | 4723 | fi |
| 4724 | |
Benny Prijono | 46bd084 | 2010-02-12 14:12:41 +0000 | [diff] [blame] | 4725 | |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 4726 | ac_fn_c_check_header_mongrel "$LINENO" "sys/timeb.h" "ac_cv_header_sys_timeb_h" "$ac_includes_default" |
| 4727 | if test "x$ac_cv_header_sys_timeb_h" = x""yes; then : |
| 4728 | $as_echo "#define PJ_HAS_SYS_TIMEB_H 1" >>confdefs.h |
Benny Prijono | 46bd084 | 2010-02-12 14:12:41 +0000 | [diff] [blame] | 4729 | |
Benny Prijono | 46bd084 | 2010-02-12 14:12:41 +0000 | [diff] [blame] | 4730 | fi |
Benny Prijono | 46bd084 | 2010-02-12 14:12:41 +0000 | [diff] [blame] | 4731 | |
Benny Prijono | 1d65f70 | 2007-12-03 04:03:17 +0000 | [diff] [blame] | 4732 | |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 4733 | ac_fn_c_check_header_mongrel "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default" |
| 4734 | if test "x$ac_cv_header_sys_types_h" = x""yes; then : |
| 4735 | $as_echo "#define PJ_HAS_SYS_TYPES_H 1" >>confdefs.h |
Benny Prijono | 46bd084 | 2010-02-12 14:12:41 +0000 | [diff] [blame] | 4736 | |
Benny Prijono | 46bd084 | 2010-02-12 14:12:41 +0000 | [diff] [blame] | 4737 | fi |
| 4738 | |
Benny Prijono | 46bd084 | 2010-02-12 14:12:41 +0000 | [diff] [blame] | 4739 | |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 4740 | ac_fn_c_check_header_mongrel "$LINENO" "sys/filio.h" "ac_cv_header_sys_filio_h" "$ac_includes_default" |
| 4741 | if test "x$ac_cv_header_sys_filio_h" = x""yes; then : |
| 4742 | $as_echo "#define PJ_HAS_SYS_FILIO_H 1" >>confdefs.h |
Benny Prijono | 46bd084 | 2010-02-12 14:12:41 +0000 | [diff] [blame] | 4743 | |
Benny Prijono | 46bd084 | 2010-02-12 14:12:41 +0000 | [diff] [blame] | 4744 | fi |
| 4745 | |
Benny Prijono | 46bd084 | 2010-02-12 14:12:41 +0000 | [diff] [blame] | 4746 | |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 4747 | ac_fn_c_check_header_mongrel "$LINENO" "sys/sockio.h" "ac_cv_header_sys_sockio_h" "$ac_includes_default" |
| 4748 | if test "x$ac_cv_header_sys_sockio_h" = x""yes; then : |
| 4749 | $as_echo "#define PJ_HAS_SYS_SOCKIO_H 1" >>confdefs.h |
Benny Prijono | 46bd084 | 2010-02-12 14:12:41 +0000 | [diff] [blame] | 4750 | |
Benny Prijono | 46bd084 | 2010-02-12 14:12:41 +0000 | [diff] [blame] | 4751 | fi |
Benny Prijono | 46bd084 | 2010-02-12 14:12:41 +0000 | [diff] [blame] | 4752 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4753 | |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 4754 | ac_fn_c_check_header_mongrel "$LINENO" "time.h" "ac_cv_header_time_h" "$ac_includes_default" |
| 4755 | if test "x$ac_cv_header_time_h" = x""yes; then : |
| 4756 | $as_echo "#define PJ_HAS_TIME_H 1" >>confdefs.h |
Benny Prijono | 46bd084 | 2010-02-12 14:12:41 +0000 | [diff] [blame] | 4757 | |
Benny Prijono | 46bd084 | 2010-02-12 14:12:41 +0000 | [diff] [blame] | 4758 | fi |
| 4759 | |
Benny Prijono | 46bd084 | 2010-02-12 14:12:41 +0000 | [diff] [blame] | 4760 | |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 4761 | ac_fn_c_check_header_mongrel "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default" |
| 4762 | if test "x$ac_cv_header_unistd_h" = x""yes; then : |
| 4763 | $as_echo "#define PJ_HAS_UNISTD_H 1" >>confdefs.h |
Benny Prijono | 46bd084 | 2010-02-12 14:12:41 +0000 | [diff] [blame] | 4764 | |
Benny Prijono | 46bd084 | 2010-02-12 14:12:41 +0000 | [diff] [blame] | 4765 | fi |
| 4766 | |
Benny Prijono | 46bd084 | 2010-02-12 14:12:41 +0000 | [diff] [blame] | 4767 | |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 4768 | ac_fn_c_check_header_mongrel "$LINENO" "winsock.h" "ac_cv_header_winsock_h" "$ac_includes_default" |
| 4769 | if test "x$ac_cv_header_winsock_h" = x""yes; then : |
| 4770 | $as_echo "#define PJ_HAS_WINSOCK_H 1" >>confdefs.h |
Benny Prijono | 46bd084 | 2010-02-12 14:12:41 +0000 | [diff] [blame] | 4771 | |
Benny Prijono | 46bd084 | 2010-02-12 14:12:41 +0000 | [diff] [blame] | 4772 | fi |
Benny Prijono | 46bd084 | 2010-02-12 14:12:41 +0000 | [diff] [blame] | 4773 | |
Benny Prijono | 1c5f4e4 | 2008-02-07 13:11:39 +0000 | [diff] [blame] | 4774 | |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 4775 | ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default" |
| 4776 | if test "x$ac_cv_header_winsock2_h" = x""yes; then : |
| 4777 | $as_echo "#define PJ_HAS_WINSOCK2_H 1" >>confdefs.h |
Benny Prijono | 1c5f4e4 | 2008-02-07 13:11:39 +0000 | [diff] [blame] | 4778 | |
Benny Prijono | 46bd084 | 2010-02-12 14:12:41 +0000 | [diff] [blame] | 4779 | fi |
Benny Prijono | 46bd084 | 2010-02-12 14:12:41 +0000 | [diff] [blame] | 4780 | |
Benny Prijono | 46bd084 | 2010-02-12 14:12:41 +0000 | [diff] [blame] | 4781 | |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 4782 | ac_fn_c_check_header_compile "$LINENO" "mswsock.h" "ac_cv_header_mswsock_h" "#if PJ_HAS_WINSOCK2_H |
Benny Prijono | a9948e6 | 2008-03-25 14:03:01 +0000 | [diff] [blame] | 4783 | # include <winsock2.h> |
| 4784 | #elif PJ_HAS_WINSOCK_H |
| 4785 | # include <winsock.h> |
| 4786 | #endif |
| 4787 | |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 4788 | " |
| 4789 | if test "x$ac_cv_header_mswsock_h" = x""yes; then : |
| 4790 | $as_echo "#define PJ_HAS_MSWSOCK_H 1" >>confdefs.h |
Benny Prijono | a9948e6 | 2008-03-25 14:03:01 +0000 | [diff] [blame] | 4791 | |
| 4792 | fi |
| 4793 | |
| 4794 | |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 4795 | ac_fn_c_check_header_mongrel "$LINENO" "ws2tcpip.h" "ac_cv_header_ws2tcpip_h" "$ac_includes_default" |
| 4796 | if test "x$ac_cv_header_ws2tcpip_h" = x""yes; then : |
| 4797 | $as_echo "#define PJ_HAS_WS2TCPIP_H 1" >>confdefs.h |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 4798 | |
| 4799 | fi |
| 4800 | |
| 4801 | |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 4802 | ac_fn_c_check_header_mongrel "$LINENO" "uuid/uuid.h" "ac_cv_header_uuid_uuid_h" "$ac_includes_default" |
| 4803 | if test "x$ac_cv_header_uuid_uuid_h" = x""yes; then : |
Benny Prijono | 4e48b51 | 2007-05-16 13:41:00 +0000 | [diff] [blame] | 4804 | ac_has_uuid_h=1 |
| 4805 | fi |
| 4806 | |
| 4807 | |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 4808 | ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "#if PJ_HAS_SYS_TYPES_H |
Benny Prijono | d523370 | 2010-01-13 13:09:45 +0000 | [diff] [blame] | 4809 | # include <sys/types.h> |
| 4810 | #endif |
| 4811 | #if PJ_HAS_SYS_SOCKET_H |
| 4812 | |
Benny Prijono | 188ba7e | 2008-03-25 13:53:16 +0000 | [diff] [blame] | 4813 | # include <sys/socket.h> |
| 4814 | #endif |
| 4815 | |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 4816 | " |
| 4817 | if test "x$ac_cv_header_net_if_h" = x""yes; then : |
| 4818 | $as_echo "#define PJ_HAS_NET_IF_H 1" >>confdefs.h |
Benny Prijono | 188ba7e | 2008-03-25 13:53:16 +0000 | [diff] [blame] | 4819 | |
| 4820 | fi |
| 4821 | |
Benny Prijono | 188ba7e | 2008-03-25 13:53:16 +0000 | [diff] [blame] | 4822 | |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 4823 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting PJ_OS_NAME to $target" >&5 |
| 4824 | $as_echo "Setting PJ_OS_NAME to $target" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4825 | cat >>confdefs.h <<_ACEOF |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 4826 | #define PJ_OS_NAME "$target" |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4827 | _ACEOF |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 4828 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4829 | |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 4830 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting PJ_HAS_ERRNO_VAR to 1" >&5 |
| 4831 | $as_echo "Setting PJ_HAS_ERRNO_VAR to 1" >&6; } |
| 4832 | $as_echo "#define PJ_HAS_ERRNO_VAR 1" >>confdefs.h |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 4833 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4834 | |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 4835 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting PJ_HAS_HIGH_RES_TIMER to 1" >&5 |
| 4836 | $as_echo "Setting PJ_HAS_HIGH_RES_TIMER to 1" >&6; } |
| 4837 | $as_echo "#define PJ_HAS_HIGH_RES_TIMER 1" >>confdefs.h |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 4838 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4839 | |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 4840 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting PJ_HAS_MALLOC to 1" >&5 |
| 4841 | $as_echo "Setting PJ_HAS_MALLOC to 1" >&6; } |
| 4842 | $as_echo "#define PJ_HAS_MALLOC 1" >>confdefs.h |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 4843 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4844 | |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 4845 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting PJ_NATIVE_STRING_IS_UNICODE to 0" >&5 |
| 4846 | $as_echo "Setting PJ_NATIVE_STRING_IS_UNICODE to 0" >&6; } |
| 4847 | $as_echo "#define PJ_NATIVE_STRING_IS_UNICODE 0" >>confdefs.h |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 4848 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4849 | |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 4850 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting PJ_ATOMIC_VALUE_TYPE to long" >&5 |
| 4851 | $as_echo "Setting PJ_ATOMIC_VALUE_TYPE to long" >&6; } |
| 4852 | $as_echo "#define PJ_ATOMIC_VALUE_TYPE long" >>confdefs.h |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 4853 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4854 | |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 4855 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_aton() is available" >&5 |
| 4856 | $as_echo_n "checking if inet_aton() is available... " >&6; } |
| 4857 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4858 | /* end confdefs.h. */ |
Benny Prijono | c16c6e3 | 2007-11-18 14:53:47 +0000 | [diff] [blame] | 4859 | #include <sys/types.h> |
| 4860 | #include <sys/socket.h> |
| 4861 | #include <arpa/inet.h> |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 4862 | int |
| 4863 | main () |
| 4864 | { |
| 4865 | inet_aton(0, 0); |
| 4866 | ; |
| 4867 | return 0; |
| 4868 | } |
| 4869 | _ACEOF |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 4870 | if ac_fn_c_try_compile "$LINENO"; then : |
| 4871 | $as_echo "#define PJ_SOCK_HAS_INET_ATON 1" >>confdefs.h |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 4872 | |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 4873 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 4874 | $as_echo "yes" >&6; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 4875 | else |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 4876 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4877 | $as_echo "no" >&6; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 4878 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4879 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4880 | |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 4881 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_pton() is available" >&5 |
| 4882 | $as_echo_n "checking if inet_pton() is available... " >&6; } |
| 4883 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Benny Prijono | c16c6e3 | 2007-11-18 14:53:47 +0000 | [diff] [blame] | 4884 | /* end confdefs.h. */ |
| 4885 | #include <sys/types.h> |
| 4886 | #include <sys/socket.h> |
| 4887 | #include <arpa/inet.h> |
| 4888 | int |
| 4889 | main () |
| 4890 | { |
| 4891 | inet_pton(0, 0, 0); |
| 4892 | ; |
| 4893 | return 0; |
| 4894 | } |
| 4895 | _ACEOF |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 4896 | if ac_fn_c_try_compile "$LINENO"; then : |
| 4897 | $as_echo "#define PJ_SOCK_HAS_INET_PTON 1" >>confdefs.h |
Benny Prijono | c16c6e3 | 2007-11-18 14:53:47 +0000 | [diff] [blame] | 4898 | |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 4899 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 4900 | $as_echo "yes" >&6; } |
Benny Prijono | c16c6e3 | 2007-11-18 14:53:47 +0000 | [diff] [blame] | 4901 | else |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 4902 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4903 | $as_echo "no" >&6; } |
Benny Prijono | c16c6e3 | 2007-11-18 14:53:47 +0000 | [diff] [blame] | 4904 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4905 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4906 | |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 4907 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntop() is available" >&5 |
| 4908 | $as_echo_n "checking if inet_ntop() is available... " >&6; } |
| 4909 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Benny Prijono | c16c6e3 | 2007-11-18 14:53:47 +0000 | [diff] [blame] | 4910 | /* end confdefs.h. */ |
| 4911 | #include <sys/types.h> |
| 4912 | #include <sys/socket.h> |
| 4913 | #include <arpa/inet.h> |
| 4914 | int |
| 4915 | main () |
| 4916 | { |
| 4917 | inet_ntop(0, 0, 0, 0); |
| 4918 | ; |
| 4919 | return 0; |
| 4920 | } |
| 4921 | _ACEOF |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 4922 | if ac_fn_c_try_compile "$LINENO"; then : |
| 4923 | $as_echo "#define PJ_SOCK_HAS_INET_NTOP 1" >>confdefs.h |
Benny Prijono | c16c6e3 | 2007-11-18 14:53:47 +0000 | [diff] [blame] | 4924 | |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 4925 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 4926 | $as_echo "yes" >&6; } |
Benny Prijono | c16c6e3 | 2007-11-18 14:53:47 +0000 | [diff] [blame] | 4927 | else |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 4928 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4929 | $as_echo "no" >&6; } |
Benny Prijono | c16c6e3 | 2007-11-18 14:53:47 +0000 | [diff] [blame] | 4930 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4931 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4932 | |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 4933 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo() is available" >&5 |
| 4934 | $as_echo_n "checking if getaddrinfo() is available... " >&6; } |
| 4935 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Benny Prijono | c16c6e3 | 2007-11-18 14:53:47 +0000 | [diff] [blame] | 4936 | /* end confdefs.h. */ |
| 4937 | #include <sys/types.h> |
| 4938 | #include <sys/socket.h> |
| 4939 | #include <netdb.h> |
| 4940 | int |
| 4941 | main () |
| 4942 | { |
| 4943 | getaddrinfo(0, 0, 0, 0); |
| 4944 | ; |
| 4945 | return 0; |
| 4946 | } |
| 4947 | _ACEOF |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 4948 | if ac_fn_c_try_compile "$LINENO"; then : |
| 4949 | $as_echo "#define PJ_SOCK_HAS_GETADDRINFO 1" >>confdefs.h |
Benny Prijono | c16c6e3 | 2007-11-18 14:53:47 +0000 | [diff] [blame] | 4950 | |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 4951 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 4952 | $as_echo "yes" >&6; } |
Benny Prijono | c16c6e3 | 2007-11-18 14:53:47 +0000 | [diff] [blame] | 4953 | else |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 4954 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4955 | $as_echo "no" >&6; } |
Benny Prijono | c16c6e3 | 2007-11-18 14:53:47 +0000 | [diff] [blame] | 4956 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4957 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4958 | |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 4959 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sockaddr_in has sin_len member" >&5 |
| 4960 | $as_echo_n "checking if sockaddr_in has sin_len member... " >&6; } |
| 4961 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4962 | /* end confdefs.h. */ |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame] | 4963 | #include <sys/types.h> |
| 4964 | #include <sys/socket.h> |
| 4965 | #include <netinet/in.h> |
| 4966 | #include <arpa/inet.h> |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 4967 | int |
| 4968 | main () |
| 4969 | { |
| 4970 | struct sockaddr_in a; a.sin_len=0; |
| 4971 | ; |
| 4972 | return 0; |
| 4973 | } |
| 4974 | _ACEOF |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 4975 | if ac_fn_c_try_compile "$LINENO"; then : |
| 4976 | $as_echo "#define PJ_SOCKADDR_HAS_LEN 1" >>confdefs.h |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 4977 | |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 4978 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 4979 | $as_echo "yes" >&6; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 4980 | else |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 4981 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4982 | $as_echo "no" >&6; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 4983 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4984 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4985 | |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 4986 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socklen_t is available" >&5 |
| 4987 | $as_echo_n "checking if socklen_t is available... " >&6; } |
| 4988 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4989 | /* end confdefs.h. */ |
Benny Prijono | d523370 | 2010-01-13 13:09:45 +0000 | [diff] [blame] | 4990 | #include <sys/types.h> |
| 4991 | #include <sys/socket.h> |
Benny Prijono | 30f85c6 | 2006-09-09 20:05:33 +0000 | [diff] [blame] | 4992 | int |
| 4993 | main () |
| 4994 | { |
| 4995 | socklen_t xxx = 0; |
| 4996 | ; |
| 4997 | return 0; |
| 4998 | } |
| 4999 | _ACEOF |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 5000 | if ac_fn_c_try_compile "$LINENO"; then : |
| 5001 | $as_echo "#define PJ_HAS_SOCKLEN_T 1" >>confdefs.h |
Benny Prijono | 30f85c6 | 2006-09-09 20:05:33 +0000 | [diff] [blame] | 5002 | |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 5003 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 5004 | $as_echo "yes" >&6; } |
Benny Prijono | 30f85c6 | 2006-09-09 20:05:33 +0000 | [diff] [blame] | 5005 | else |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 5006 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5007 | $as_echo "no" >&6; } |
Benny Prijono | 30f85c6 | 2006-09-09 20:05:33 +0000 | [diff] [blame] | 5008 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5009 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5010 | |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 5011 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if SO_ERROR is available" >&5 |
| 5012 | $as_echo_n "checking if SO_ERROR is available... " >&6; } |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 5013 | case $target in |
| 5014 | *mingw* | *cygw* | *win32* | *w32* ) |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 5015 | $as_echo "#define PJ_HAS_SO_ERROR 1" >>confdefs.h |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 5016 | |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 5017 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 5018 | $as_echo "yes" >&6; } |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 5019 | ;; |
| 5020 | *) |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 5021 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5022 | /* end confdefs.h. */ |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame] | 5023 | #include <sys/types.h> |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 5024 | #include <sys/socket.h> |
| 5025 | #include <netinet/in.h> |
| 5026 | #include <arpa/inet.h> |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 5027 | int |
| 5028 | main () |
| 5029 | { |
| 5030 | int i=SO_ERROR; |
| 5031 | ; |
| 5032 | return 0; |
| 5033 | } |
| 5034 | _ACEOF |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 5035 | if ac_fn_c_try_compile "$LINENO"; then : |
| 5036 | $as_echo "#define PJ_HAS_SO_ERROR 1" >>confdefs.h |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 5037 | |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 5038 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 5039 | $as_echo "yes" >&6; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 5040 | else |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 5041 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5042 | $as_echo "no" >&6; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 5043 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5044 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 5045 | ;; |
| 5046 | esac |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 5047 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5048 | |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 5049 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if pthread_rwlock_t is available" >&5 |
| 5050 | $as_echo_n "checking if pthread_rwlock_t is available... " >&6; } |
| 5051 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5052 | /* end confdefs.h. */ |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 5053 | #include <pthread.h> |
| 5054 | int |
| 5055 | main () |
| 5056 | { |
| 5057 | pthread_rwlock_t *x; |
| 5058 | ; |
| 5059 | return 0; |
| 5060 | } |
| 5061 | _ACEOF |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 5062 | if ac_fn_c_try_compile "$LINENO"; then : |
| 5063 | $as_echo "#define PJ_EMULATE_RWMUTEX 0" >>confdefs.h |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 5064 | |
Benny Prijono | 1c5f4e4 | 2008-02-07 13:11:39 +0000 | [diff] [blame] | 5065 | ac_rwmutex="yes" |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 5066 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 5067 | $as_echo "yes" >&6; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 5068 | else |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 5069 | $as_echo "#define PJ_EMULATE_RWMUTEX 1" >>confdefs.h |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5070 | |
Benny Prijono | 1c5f4e4 | 2008-02-07 13:11:39 +0000 | [diff] [blame] | 5071 | ac_rwmutex="no" |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 5072 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5073 | $as_echo "no" >&6; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 5074 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5075 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5076 | |
Benny Prijono | 1c5f4e4 | 2008-02-07 13:11:39 +0000 | [diff] [blame] | 5077 | if test "$ac_rwmutex" = "no"; then |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 5078 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if pthread_rwlock_t is available with _POSIX_READER_WRITER_LOCKS" >&5 |
| 5079 | $as_echo_n "checking if pthread_rwlock_t is available with _POSIX_READER_WRITER_LOCKS... " >&6; } |
| 5080 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Benny Prijono | 1c5f4e4 | 2008-02-07 13:11:39 +0000 | [diff] [blame] | 5081 | /* end confdefs.h. */ |
| 5082 | #define _POSIX_READER_WRITER_LOCKS |
| 5083 | #include <pthread.h> |
| 5084 | int |
| 5085 | main () |
| 5086 | { |
| 5087 | pthread_rwlock_t *x; |
| 5088 | ; |
| 5089 | return 0; |
| 5090 | } |
| 5091 | _ACEOF |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 5092 | if ac_fn_c_try_compile "$LINENO"; then : |
| 5093 | $as_echo "#define PJ_EMULATE_RWMUTEX 0" >>confdefs.h |
Benny Prijono | 1c5f4e4 | 2008-02-07 13:11:39 +0000 | [diff] [blame] | 5094 | |
| 5095 | CFLAGS="$CFLAGS -D_POSIX_THREADS -D_POSIX_READER_WRITER_LOCKS" |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 5096 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 5097 | $as_echo "yes" >&6; } |
Benny Prijono | 1c5f4e4 | 2008-02-07 13:11:39 +0000 | [diff] [blame] | 5098 | else |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 5099 | $as_echo "#define PJ_EMULATE_RWMUTEX 1" >>confdefs.h |
Benny Prijono | 1c5f4e4 | 2008-02-07 13:11:39 +0000 | [diff] [blame] | 5100 | |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 5101 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5102 | $as_echo "no" >&6; } |
Benny Prijono | 1c5f4e4 | 2008-02-07 13:11:39 +0000 | [diff] [blame] | 5103 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5104 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5105 | fi |
| 5106 | |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 5107 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if pthread_mutexattr_settype() is available" >&5 |
| 5108 | $as_echo_n "checking if pthread_mutexattr_settype() is available... " >&6; } |
| 5109 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Benny Prijono | 1c5f4e4 | 2008-02-07 13:11:39 +0000 | [diff] [blame] | 5110 | /* end confdefs.h. */ |
| 5111 | #include <pthread.h> |
| 5112 | int |
| 5113 | main () |
| 5114 | { |
| 5115 | pthread_mutexattr_settype(0,PTHREAD_MUTEX_FAST_NP); |
| 5116 | ; |
| 5117 | return 0; |
| 5118 | } |
| 5119 | _ACEOF |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 5120 | if ac_fn_c_try_compile "$LINENO"; then : |
| 5121 | $as_echo "#define PJ_HAS_PTHREAD_MUTEXATTR_SETTYPE 1" >>confdefs.h |
Benny Prijono | 1c5f4e4 | 2008-02-07 13:11:39 +0000 | [diff] [blame] | 5122 | |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 5123 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 5124 | $as_echo "yes" >&6; } |
Benny Prijono | 1c5f4e4 | 2008-02-07 13:11:39 +0000 | [diff] [blame] | 5125 | else |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 5126 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5127 | $as_echo "no" >&6; } |
Benny Prijono | 1c5f4e4 | 2008-02-07 13:11:39 +0000 | [diff] [blame] | 5128 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5129 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5130 | |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 5131 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if pthread_mutexattr_t has recursive member" >&5 |
| 5132 | $as_echo_n "checking if pthread_mutexattr_t has recursive member... " >&6; } |
| 5133 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Benny Prijono | 1c5f4e4 | 2008-02-07 13:11:39 +0000 | [diff] [blame] | 5134 | /* end confdefs.h. */ |
| 5135 | #include <pthread.h> |
| 5136 | int |
| 5137 | main () |
| 5138 | { |
| 5139 | pthread_mutexattr_t attr; |
| 5140 | attr.recursive=1; |
| 5141 | ; |
| 5142 | return 0; |
| 5143 | } |
| 5144 | _ACEOF |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 5145 | if ac_fn_c_try_compile "$LINENO"; then : |
| 5146 | $as_echo "#define PJ_PTHREAD_MUTEXATTR_T_HAS_RECURSIVE 1" >>confdefs.h |
Benny Prijono | 1c5f4e4 | 2008-02-07 13:11:39 +0000 | [diff] [blame] | 5147 | |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 5148 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 5149 | $as_echo "yes" >&6; } |
Benny Prijono | 1c5f4e4 | 2008-02-07 13:11:39 +0000 | [diff] [blame] | 5150 | else |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 5151 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5152 | $as_echo "no" >&6; } |
Benny Prijono | 1c5f4e4 | 2008-02-07 13:11:39 +0000 | [diff] [blame] | 5153 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5154 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 5155 | |
Benny Prijono | 99eec38 | 2008-09-18 21:22:16 +0000 | [diff] [blame] | 5156 | |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 5157 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking ioqueue backend" >&5 |
| 5158 | $as_echo_n "checking ioqueue backend... " >&6; } |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5159 | # Check whether --enable-epoll was given. |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 5160 | if test "${enable_epoll+set}" = set; then : |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5161 | enableval=$enable_epoll; |
Benny Prijono | 99eec38 | 2008-09-18 21:22:16 +0000 | [diff] [blame] | 5162 | ac_os_objs=ioqueue_epoll.o |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 5163 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: /dev/epoll" >&5 |
| 5164 | $as_echo "/dev/epoll" >&6; } |
Benny Prijono | 99eec38 | 2008-09-18 21:22:16 +0000 | [diff] [blame] | 5165 | |
| 5166 | else |
| 5167 | |
| 5168 | ac_os_objs=ioqueue_select.o |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 5169 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: select()" >&5 |
| 5170 | $as_echo "select()" >&6; } |
Benny Prijono | 99eec38 | 2008-09-18 21:22:16 +0000 | [diff] [blame] | 5171 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5172 | fi |
| 5173 | |
Benny Prijono | 1c5f4e4 | 2008-02-07 13:11:39 +0000 | [diff] [blame] | 5174 | |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 5175 | |
| 5176 | case $target in |
| 5177 | *mingw* | *cygw* | *win32* | *w32* ) |
Benny Prijono | 99eec38 | 2008-09-18 21:22:16 +0000 | [diff] [blame] | 5178 | 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] | 5179 | ;; |
| 5180 | *) |
Benny Prijono | 99eec38 | 2008-09-18 21:22:16 +0000 | [diff] [blame] | 5181 | 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] | 5182 | # UUID |
| 5183 | if test "$ac_has_uuid_lib" = "1" -a "$ac_has_uuid_h" = "1"; then |
| 5184 | ac_os_objs="$ac_os_objs guid_uuid.o" |
| 5185 | else |
| 5186 | ac_os_objs="$ac_os_objs guid_simple.o" |
| 5187 | fi |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 5188 | ;; |
| 5189 | esac |
| 5190 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5191 | |
| 5192 | |
| 5193 | |
Benny Prijono | 8a9b3b2 | 2010-01-14 14:46:54 +0000 | [diff] [blame] | 5194 | ac_external_speex=0 |
| 5195 | |
| 5196 | |
| 5197 | # Check whether --with-external-speex was given. |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 5198 | if test "${with_external_speex+set}" = set; then : |
Benny Prijono | 8a9b3b2 | 2010-01-14 14:46:54 +0000 | [diff] [blame] | 5199 | withval=$with_external_speex; |
| 5200 | if test "x$with_external_speex" != "xno"; then |
| 5201 | # Test Speex installation |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 5202 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if external Speex devkit is installed" >&5 |
| 5203 | $as_echo_n "checking if external Speex devkit is installed... " >&6; } |
| 5204 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Benny Prijono | 8a9b3b2 | 2010-01-14 14:46:54 +0000 | [diff] [blame] | 5205 | /* end confdefs.h. */ |
| 5206 | #include <speex/speex.h> |
| 5207 | #include <speex/speex_echo.h> |
| 5208 | |
| 5209 | int |
| 5210 | main () |
| 5211 | { |
| 5212 | speex_echo_state_init(0, 0); speex_encoder_init(0); |
| 5213 | ; |
| 5214 | return 0; |
| 5215 | } |
| 5216 | _ACEOF |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 5217 | if ac_fn_c_try_compile "$LINENO"; then : |
| 5218 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes!!" >&5 |
| 5219 | $as_echo "yes!!" >&6; } |
| 5220 | $as_echo "#define PJMEDIA_EXTERNAL_SPEEX_CODEC 1" >>confdefs.h |
Benny Prijono | 8a9b3b2 | 2010-01-14 14:46:54 +0000 | [diff] [blame] | 5221 | |
| 5222 | ac_external_speex="1" |
| 5223 | |
| 5224 | else |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 5225 | as_fn_error "Unable to use external Speex library. If Speex development files are not available in the default locations, use CFLAGS and LDFLAGS env var to set the include/lib paths" "$LINENO" 5 |
Benny Prijono | 8a9b3b2 | 2010-01-14 14:46:54 +0000 | [diff] [blame] | 5226 | fi |
| 5227 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5228 | fi |
| 5229 | |
| 5230 | |
| 5231 | fi |
| 5232 | |
| 5233 | |
| 5234 | ac_external_gsm=0 |
| 5235 | |
| 5236 | |
| 5237 | # Check whether --with-external-gsm was given. |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 5238 | if test "${with_external_gsm+set}" = set; then : |
Benny Prijono | 8a9b3b2 | 2010-01-14 14:46:54 +0000 | [diff] [blame] | 5239 | withval=$with_external_gsm; |
| 5240 | if test "x$with_external_gsm" != "xno"; then |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 5241 | # Test GSM library installation |
| 5242 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if external GSM devkit is installed as gsm/gsm.h" >&5 |
| 5243 | $as_echo_n "checking if external GSM devkit is installed as gsm/gsm.h... " >&6; } |
| 5244 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Benny Prijono | 8a9b3b2 | 2010-01-14 14:46:54 +0000 | [diff] [blame] | 5245 | /* end confdefs.h. */ |
| 5246 | #include <gsm/gsm.h> |
Benny Prijono | 8a9b3b2 | 2010-01-14 14:46:54 +0000 | [diff] [blame] | 5247 | int |
| 5248 | main () |
| 5249 | { |
| 5250 | gsm_create(); |
| 5251 | ; |
| 5252 | return 0; |
| 5253 | } |
Benny Prijono | 8a9b3b2 | 2010-01-14 14:46:54 +0000 | [diff] [blame] | 5254 | _ACEOF |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 5255 | if ac_fn_c_try_compile "$LINENO"; then : |
| 5256 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes!!" >&5 |
| 5257 | $as_echo "yes!!" >&6; } |
| 5258 | $as_echo "#define PJMEDIA_EXTERNAL_GSM_CODEC 1" >>confdefs.h |
Benny Prijono | 8a9b3b2 | 2010-01-14 14:46:54 +0000 | [diff] [blame] | 5259 | |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 5260 | $as_echo "#define PJMEDIA_EXTERNAL_GSM_GSM_H 1" >>confdefs.h |
| 5261 | |
| 5262 | ac_external_gsm="1" |
Benny Prijono | 8a9b3b2 | 2010-01-14 14:46:54 +0000 | [diff] [blame] | 5263 | |
| 5264 | else |
Benny Prijono | 46bd084 | 2010-02-12 14:12:41 +0000 | [diff] [blame] | 5265 | |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 5266 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5267 | $as_echo "no" >&6; } |
| 5268 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if external GSM devkit is installed as gsm.h" >&5 |
| 5269 | $as_echo_n "checking if external GSM devkit is installed as gsm.h... " >&6; } |
| 5270 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5271 | /* end confdefs.h. */ |
| 5272 | #include <gsm.h> |
| 5273 | int |
| 5274 | main () |
| 5275 | { |
| 5276 | gsm_create(); |
| 5277 | ; |
| 5278 | return 0; |
| 5279 | } |
| 5280 | _ACEOF |
| 5281 | if ac_fn_c_try_compile "$LINENO"; then : |
| 5282 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes!!" >&5 |
| 5283 | $as_echo "yes!!" >&6; } |
| 5284 | $as_echo "#define PJMEDIA_EXTERNAL_GSM_CODEC 1" >>confdefs.h |
| 5285 | |
| 5286 | $as_echo "#define PJMEDIA_EXTERNAL_GSM_H 1" >>confdefs.h |
| 5287 | |
| 5288 | ac_external_gsm="1" |
| 5289 | |
| 5290 | else |
| 5291 | as_fn_error "Unable to use external GSM library. If GSM development files are not available in the default locations, use CFLAGS and LDFLAGS env var to set the include/lib paths" "$LINENO" 5 |
| 5292 | |
| 5293 | |
Benny Prijono | 8a9b3b2 | 2010-01-14 14:46:54 +0000 | [diff] [blame] | 5294 | fi |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 5295 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Benny Prijono | 46bd084 | 2010-02-12 14:12:41 +0000 | [diff] [blame] | 5296 | |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 5297 | |
| 5298 | fi |
Benny Prijono | 8a9b3b2 | 2010-01-14 14:46:54 +0000 | [diff] [blame] | 5299 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5300 | fi |
| 5301 | |
| 5302 | |
| 5303 | fi |
| 5304 | |
| 5305 | |
| 5306 | |
| 5307 | |
Benny Prijono | 4e48b51 | 2007-05-16 13:41:00 +0000 | [diff] [blame] | 5308 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5309 | # Check whether --enable-sound was given. |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 5310 | if test "${enable_sound+set}" = set; then : |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5311 | enableval=$enable_sound; if test "$enable_sound" = "no"; then |
Benny Prijono | 1d97162 | 2006-09-10 22:27:40 +0000 | [diff] [blame] | 5312 | ac_pjmedia_snd=null |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 5313 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if sound is disabled... yes" >&5 |
| 5314 | $as_echo "Checking if sound is disabled... yes" >&6; } |
Benny Prijono | 1d97162 | 2006-09-10 22:27:40 +0000 | [diff] [blame] | 5315 | fi |
| 5316 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5317 | fi |
| 5318 | |
Benny Prijono | 1d97162 | 2006-09-10 22:27:40 +0000 | [diff] [blame] | 5319 | |
Benny Prijono | 8a9b3b2 | 2010-01-14 14:46:54 +0000 | [diff] [blame] | 5320 | ac_external_pa=0 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5321 | |
Benny Prijono | 27c9872 | 2007-04-09 21:28:15 +0000 | [diff] [blame] | 5322 | |
Benny Prijono | 8a9b3b2 | 2010-01-14 14:46:54 +0000 | [diff] [blame] | 5323 | # Check whether --with-external-pa was given. |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 5324 | if test "${with_external_pa+set}" = set; then : |
Benny Prijono | 8a9b3b2 | 2010-01-14 14:46:54 +0000 | [diff] [blame] | 5325 | withval=$with_external_pa; |
| 5326 | if test "x$with_external_pa" != "xno"; then |
| 5327 | # Test PortAudio installation |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 5328 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if external PortAudio devkit is installed" >&5 |
| 5329 | $as_echo_n "checking if external PortAudio devkit is installed... " >&6; } |
| 5330 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Benny Prijono | 8a9b3b2 | 2010-01-14 14:46:54 +0000 | [diff] [blame] | 5331 | /* end confdefs.h. */ |
| 5332 | #include <portaudio.h> |
| 5333 | |
| 5334 | int |
| 5335 | main () |
| 5336 | { |
| 5337 | Pa_Initialize(); |
| 5338 | ; |
| 5339 | return 0; |
| 5340 | } |
| 5341 | _ACEOF |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 5342 | if ac_fn_c_try_compile "$LINENO"; then : |
| 5343 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes!!" >&5 |
| 5344 | $as_echo "yes!!" >&6; } |
Benny Prijono | 8a9b3b2 | 2010-01-14 14:46:54 +0000 | [diff] [blame] | 5345 | ac_external_pa="1" |
| 5346 | |
| 5347 | else |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 5348 | as_fn_error "Unable to use PortAudio. If PortAudio development files are not available in the default locations, use CFLAGS and LDFLAGS env var to set the include/lib paths" "$LINENO" 5 |
Benny Prijono | 8a9b3b2 | 2010-01-14 14:46:54 +0000 | [diff] [blame] | 5349 | fi |
| 5350 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Benny Prijono | fe0c127 | 2010-01-13 16:28:15 +0000 | [diff] [blame] | 5351 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5352 | |
Benny Prijono | 27c9872 | 2007-04-09 21:28:15 +0000 | [diff] [blame] | 5353 | |
| 5354 | fi |
Benny Prijono | fe0c127 | 2010-01-13 16:28:15 +0000 | [diff] [blame] | 5355 | |
| 5356 | |
| 5357 | |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 5358 | ac_fn_c_check_header_mongrel "$LINENO" "sys/soundcard.h" "ac_cv_header_sys_soundcard_h" "$ac_includes_default" |
| 5359 | if test "x$ac_cv_header_sys_soundcard_h" = x""yes; then : |
Benny Prijono | 27c9872 | 2007-04-09 21:28:15 +0000 | [diff] [blame] | 5360 | ac_pa_cflags="$ac_pa_cflags -DHAVE_SYS_SOUNDCARD_H" |
| 5361 | fi |
| 5362 | |
| 5363 | |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 5364 | ac_fn_c_check_header_mongrel "$LINENO" "linux/soundcard.h" "ac_cv_header_linux_soundcard_h" "$ac_includes_default" |
| 5365 | if test "x$ac_cv_header_linux_soundcard_h" = x""yes; then : |
Benny Prijono | 27c9872 | 2007-04-09 21:28:15 +0000 | [diff] [blame] | 5366 | ac_pa_cflags="$ac_pa_cflags -DHAVE_LINUX_SOUNDCARD_H" |
| 5367 | fi |
| 5368 | |
| 5369 | |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 5370 | ac_fn_c_check_header_mongrel "$LINENO" "machine/soundcard.h" "ac_cv_header_machine_soundcard_h" "$ac_includes_default" |
| 5371 | if test "x$ac_cv_header_machine_soundcard_h" = x""yes; then : |
Benny Prijono | 27c9872 | 2007-04-09 21:28:15 +0000 | [diff] [blame] | 5372 | ac_pa_cflags="$ac_pa_cflags -DHAVE_MACHINE_SOUNDCARD_H" |
| 5373 | fi |
| 5374 | |
| 5375 | |
| 5376 | |
Benny Prijono | 3e09167 | 2008-01-09 15:43:02 +0000 | [diff] [blame] | 5377 | if test "x$ac_cv_c_bigendian" = "xyes"; then |
| 5378 | ac_pa_cflags="$ac_pa_cflags -DPA_BIG_ENDIAN" |
| 5379 | else |
| 5380 | ac_pa_cflags="$ac_pa_cflags -DPA_LITTLE_ENDIAN" |
| 5381 | fi |
| 5382 | |
Benny Prijono | 1d97162 | 2006-09-10 22:27:40 +0000 | [diff] [blame] | 5383 | if test "$enable_sound" = "no"; then |
| 5384 | true; |
| 5385 | else |
| 5386 | case $target in |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame] | 5387 | *darwin*) |
Benny Prijono | 39ae2da | 2006-10-13 17:57:42 +0000 | [diff] [blame] | 5388 | LIBS="$LIBS -framework CoreAudio -framework CoreServices -framework AudioUnit -framework AudioToolbox" |
| 5389 | if test "`uname -r`" = "6.8"; then |
Benny Prijono | 27c9872 | 2007-04-09 21:28:15 +0000 | [diff] [blame] | 5390 | #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] | 5391 | #AC_MSG_RESULT([Setting additional PortAudio CFLAGS.. -DPA_OLD_CORE_AUDIO -DMOSX_USE_NON_ATOMIC_FLAG_BITS]) |
| 5392 | ac_pjmedia_snd=pa_old_darwinos |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 5393 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking sound device backend... old coreaudio" >&5 |
| 5394 | $as_echo "Checking sound device backend... old coreaudio" >&6; } |
Benny Prijono | 39ae2da | 2006-10-13 17:57:42 +0000 | [diff] [blame] | 5395 | else |
| 5396 | ac_pjmedia_snd=pa_darwinos |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 5397 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking sound device backend... coreaudio" >&5 |
| 5398 | $as_echo "Checking sound device backend... coreaudio" >&6; } |
Benny Prijono | 39ae2da | 2006-10-13 17:57:42 +0000 | [diff] [blame] | 5399 | fi |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame] | 5400 | ;; |
| 5401 | *cygwin* | *mingw*) |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 5402 | ac_pjmedia_snd=pa_win32 |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 5403 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking sound device backend... win32 sound" >&5 |
| 5404 | $as_echo "Checking sound device backend... win32 sound" >&6; } |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 5405 | ;; |
| 5406 | *rtems*) |
| 5407 | ac_pjmedia_snd=null |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 5408 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking sound device backend... null sound" >&5 |
| 5409 | $as_echo "Checking sound device backend... null sound" >&6; } |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 5410 | ;; |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 5411 | *) |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 5412 | ac_pjmedia_snd=pa_unix |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 5413 | ac_fn_c_check_header_mongrel "$LINENO" "alsa/version.h" "ac_cv_header_alsa_version_h" "$ac_includes_default" |
| 5414 | if test "x$ac_cv_header_alsa_version_h" = x""yes; then : |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 5415 | ac_pa_use_alsa=1 |
| 5416 | |
| 5417 | LIBS="$LIBS -lasound" |
| 5418 | |
| 5419 | else |
| 5420 | ac_pa_use_alsa=0 |
| 5421 | |
| 5422 | fi |
| 5423 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5424 | |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 5425 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking sound device backend... unix" >&5 |
| 5426 | $as_echo "Checking sound device backend... unix" >&6; } |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 5427 | |
| 5428 | ac_pa_use_oss=1 |
| 5429 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5430 | # Check whether --enable-oss was given. |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 5431 | if test "${enable_oss+set}" = set; then : |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5432 | enableval=$enable_oss; |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 5433 | if test "$enable_oss" = "no"; then |
| 5434 | ac_pa_use_oss=0 |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 5435 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if OSS audio is disabled... yes" >&5 |
| 5436 | $as_echo "Checking if OSS audio is disabled... yes" >&6; } |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 5437 | fi |
| 5438 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5439 | fi |
| 5440 | |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 5441 | ;; |
Benny Prijono | 1d97162 | 2006-09-10 22:27:40 +0000 | [diff] [blame] | 5442 | esac |
| 5443 | fi |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 5444 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5445 | # Check whether --enable-ext_sound was given. |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 5446 | if test "${enable_ext_sound+set}" = set; then : |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5447 | enableval=$enable_ext_sound; if test "$enable_ext_sound" = "yes"; then |
Benny Prijono | ebb2c33 | 2008-07-28 23:40:58 +0000 | [diff] [blame] | 5448 | ac_pjmedia_snd=external |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 5449 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if external sound is set... yes" >&5 |
| 5450 | $as_echo "Checking if external sound is set... yes" >&6; } |
Benny Prijono | ebb2c33 | 2008-07-28 23:40:58 +0000 | [diff] [blame] | 5451 | fi |
| 5452 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5453 | fi |
Benny Prijono | ebb2c33 | 2008-07-28 23:40:58 +0000 | [diff] [blame] | 5454 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5455 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5456 | |
| 5457 | # Check whether --enable-small-filter was given. |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 5458 | if test "${enable_small_filter+set}" = set; then : |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5459 | enableval=$enable_small_filter; if test "$enable_small_filter" = "no"; then |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 5460 | ac_no_small_filter='-DPJMEDIA_HAS_SMALL_FILTER=0' |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 5461 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if small filter is disabled... yes" >&5 |
| 5462 | $as_echo "Checking if small filter is disabled... yes" >&6; } |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 5463 | fi |
| 5464 | else |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 5465 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if small filter is disabled... no" >&5 |
| 5466 | $as_echo "Checking if small filter is disabled... no" >&6; } |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5467 | fi |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 5468 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5469 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5470 | |
| 5471 | # Check whether --enable-large-filter was given. |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 5472 | if test "${enable_large_filter+set}" = set; then : |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5473 | enableval=$enable_large_filter; if test "$enable_large_filter" = "no"; then |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 5474 | ac_no_large_filter='-DPJMEDIA_HAS_LARGE_FILTER=0' |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 5475 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if large filter is disabled... yes" >&5 |
| 5476 | $as_echo "Checking if large filter is disabled... yes" >&6; } |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 5477 | fi |
| 5478 | else |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 5479 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if large filter is disabled... no" >&5 |
| 5480 | $as_echo "Checking if large filter is disabled... no" >&6; } |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5481 | fi |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 5482 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5483 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5484 | |
| 5485 | # Check whether --enable-speex-aec was given. |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 5486 | if test "${enable_speex_aec+set}" = set; then : |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5487 | enableval=$enable_speex_aec; if test "$enable_speex_aec" = "no"; then |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 5488 | ac_no_speex_aec='-DPJMEDIA_HAS_SPEEX_AEC=0' |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 5489 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if Speex AEC is disabled...yes" >&5 |
| 5490 | $as_echo "Checking if Speex AEC is disabled...yes" >&6; } |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 5491 | fi |
| 5492 | else |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 5493 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if Speex AEC is disabled...no" >&5 |
| 5494 | $as_echo "Checking if Speex AEC is disabled...no" >&6; } |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5495 | fi |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 5496 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5497 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5498 | |
| 5499 | # Check whether --enable-g711-codec was given. |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 5500 | if test "${enable_g711_codec+set}" = set; then : |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5501 | enableval=$enable_g711_codec; if test "$enable_g711_codec" = "no"; then |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 5502 | ac_no_g711_codec=1 |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 5503 | $as_echo "#define PJMEDIA_HAS_G711_CODEC 0" >>confdefs.h |
Benny Prijono | 06d1d0e | 2007-01-27 18:09:28 +0000 | [diff] [blame] | 5504 | |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 5505 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if G.711 codec is disabled...yes" >&5 |
| 5506 | $as_echo "Checking if G.711 codec is disabled...yes" >&6; } |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 5507 | fi |
| 5508 | else |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 5509 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if G.711 codec is disabled...no" >&5 |
| 5510 | $as_echo "Checking if G.711 codec is disabled...no" >&6; } |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5511 | fi |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 5512 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5513 | |
| 5514 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5515 | |
| 5516 | # Check whether --enable-l16-codec was given. |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 5517 | if test "${enable_l16_codec+set}" = set; then : |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5518 | enableval=$enable_l16_codec; if test "$enable_l16_codec" = "no"; then |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 5519 | ac_no_l16_codec=1 |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 5520 | $as_echo "#define PJMEDIA_HAS_L16_CODEC 0" >>confdefs.h |
Benny Prijono | 06d1d0e | 2007-01-27 18:09:28 +0000 | [diff] [blame] | 5521 | |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 5522 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if L16 codecs are disabled...yes" >&5 |
| 5523 | $as_echo "Checking if L16 codecs are disabled...yes" >&6; } |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 5524 | fi |
| 5525 | else |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 5526 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if L16 codec is disabled...no" >&5 |
| 5527 | $as_echo "Checking if L16 codec is disabled...no" >&6; } |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5528 | fi |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 5529 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5530 | |
| 5531 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5532 | |
| 5533 | # Check whether --enable-gsm-codec was given. |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 5534 | if test "${enable_gsm_codec+set}" = set; then : |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5535 | enableval=$enable_gsm_codec; if test "$enable_gsm_codec" = "no"; then |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 5536 | ac_no_gsm_codec=1 |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 5537 | $as_echo "#define PJMEDIA_HAS_GSM_CODEC 0" >>confdefs.h |
Benny Prijono | 06d1d0e | 2007-01-27 18:09:28 +0000 | [diff] [blame] | 5538 | |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 5539 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if GSM codec is disabled...yes" >&5 |
| 5540 | $as_echo "Checking if GSM codec is disabled...yes" >&6; } |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 5541 | fi |
| 5542 | else |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 5543 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if GSM codec is disabled...no" >&5 |
| 5544 | $as_echo "Checking if GSM codec is disabled...no" >&6; } |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5545 | fi |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 5546 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5547 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5548 | |
| 5549 | # Check whether --enable-g722-codec was given. |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 5550 | if test "${enable_g722_codec+set}" = set; then : |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5551 | enableval=$enable_g722_codec; if test "$enable_g722_codec" = "no"; then |
Benny Prijono | 71f657d | 2008-03-17 14:24:21 +0000 | [diff] [blame] | 5552 | ac_no_g722_codec=1 |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 5553 | $as_echo "#define PJMEDIA_HAS_G722_CODEC 0" >>confdefs.h |
Benny Prijono | 71f657d | 2008-03-17 14:24:21 +0000 | [diff] [blame] | 5554 | |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 5555 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if G.722 codec is disabled...yes" >&5 |
| 5556 | $as_echo "Checking if G.722 codec is disabled...yes" >&6; } |
Benny Prijono | 71f657d | 2008-03-17 14:24:21 +0000 | [diff] [blame] | 5557 | fi |
| 5558 | else |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 5559 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if G.722 codec is disabled...no" >&5 |
| 5560 | $as_echo "Checking if G.722 codec is disabled...no" >&6; } |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5561 | fi |
Benny Prijono | 71f657d | 2008-03-17 14:24:21 +0000 | [diff] [blame] | 5562 | |
| 5563 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5564 | |
| 5565 | # Check whether --enable-g7221-codec was given. |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 5566 | if test "${enable_g7221_codec+set}" = set; then : |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5567 | enableval=$enable_g7221_codec; if test "$enable_g7221_codec" = "no"; then |
| 5568 | ac_no_g7221_codec=1 |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 5569 | $as_echo "#define PJMEDIA_HAS_G7221_CODEC 0" >>confdefs.h |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5570 | |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 5571 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if G.722.1 codec is disabled...yes" >&5 |
| 5572 | $as_echo "Checking if G.722.1 codec is disabled...yes" >&6; } |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5573 | fi |
| 5574 | else |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 5575 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if G.722.1 codec is disabled...no" >&5 |
| 5576 | $as_echo "Checking if G.722.1 codec is disabled...no" >&6; } |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5577 | fi |
| 5578 | |
| 5579 | |
| 5580 | |
| 5581 | # Check whether --enable-speex-codec was given. |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 5582 | if test "${enable_speex_codec+set}" = set; then : |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5583 | enableval=$enable_speex_codec; if test "$enable_speex_codec" = "no"; then |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 5584 | ac_no_speex_codec=1 |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 5585 | $as_echo "#define PJMEDIA_HAS_SPEEX_CODEC 0" >>confdefs.h |
Benny Prijono | 06d1d0e | 2007-01-27 18:09:28 +0000 | [diff] [blame] | 5586 | |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 5587 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if Speex codec is disabled...yes" >&5 |
| 5588 | $as_echo "Checking if Speex codec is disabled...yes" >&6; } |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 5589 | fi |
| 5590 | else |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 5591 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if Speex codec is disabled...no" >&5 |
| 5592 | $as_echo "Checking if Speex codec is disabled...no" >&6; } |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5593 | fi |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 5594 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5595 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5596 | |
| 5597 | # Check whether --enable-ilbc-codec was given. |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 5598 | if test "${enable_ilbc_codec+set}" = set; then : |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5599 | enableval=$enable_ilbc_codec; if test "$enable_ilbc_codec" = "no"; then |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 5600 | ac_no_ilbc_codec=1 |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 5601 | $as_echo "#define PJMEDIA_HAS_ILBC_CODEC 0" >>confdefs.h |
Benny Prijono | 06d1d0e | 2007-01-27 18:09:28 +0000 | [diff] [blame] | 5602 | |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 5603 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if iLBC codec is disabled...yes" >&5 |
| 5604 | $as_echo "Checking if iLBC codec is disabled...yes" >&6; } |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 5605 | fi |
| 5606 | else |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 5607 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if iLBC codec is disabled...no" >&5 |
| 5608 | $as_echo "Checking if iLBC codec is disabled...no" >&6; } |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5609 | fi |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 5610 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5611 | |
| 5612 | # Check whether --enable-libsamplerate was given. |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 5613 | if test "${enable_libsamplerate+set}" = set; then : |
| 5614 | enableval=$enable_libsamplerate; { $as_echo "$as_me:${as_lineno-$LINENO}: checking for src_new in -lsamplerate" >&5 |
| 5615 | $as_echo_n "checking for src_new in -lsamplerate... " >&6; } |
| 5616 | if test "${ac_cv_lib_samplerate_src_new+set}" = set; then : |
| 5617 | $as_echo_n "(cached) " >&6 |
Benny Prijono | 550a1a6 | 2007-10-16 08:54:00 +0000 | [diff] [blame] | 5618 | else |
| 5619 | ac_check_lib_save_LIBS=$LIBS |
| 5620 | LIBS="-lsamplerate $LIBS" |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 5621 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Benny Prijono | 550a1a6 | 2007-10-16 08:54:00 +0000 | [diff] [blame] | 5622 | /* end confdefs.h. */ |
| 5623 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5624 | /* Override any GCC internal prototype to avoid an error. |
| 5625 | Use char because int might match the return type of a GCC |
| 5626 | builtin and then its argument prototype would still apply. */ |
Benny Prijono | 550a1a6 | 2007-10-16 08:54:00 +0000 | [diff] [blame] | 5627 | #ifdef __cplusplus |
| 5628 | extern "C" |
| 5629 | #endif |
Benny Prijono | 550a1a6 | 2007-10-16 08:54:00 +0000 | [diff] [blame] | 5630 | char src_new (); |
| 5631 | int |
| 5632 | main () |
| 5633 | { |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5634 | return src_new (); |
Benny Prijono | 550a1a6 | 2007-10-16 08:54:00 +0000 | [diff] [blame] | 5635 | ; |
| 5636 | return 0; |
| 5637 | } |
| 5638 | _ACEOF |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 5639 | if ac_fn_c_try_link "$LINENO"; then : |
Benny Prijono | 550a1a6 | 2007-10-16 08:54:00 +0000 | [diff] [blame] | 5640 | ac_cv_lib_samplerate_src_new=yes |
| 5641 | else |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 5642 | ac_cv_lib_samplerate_src_new=no |
Benny Prijono | 550a1a6 | 2007-10-16 08:54:00 +0000 | [diff] [blame] | 5643 | fi |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 5644 | rm -f core conftest.err conftest.$ac_objext \ |
| 5645 | conftest$ac_exeext conftest.$ac_ext |
Benny Prijono | 550a1a6 | 2007-10-16 08:54:00 +0000 | [diff] [blame] | 5646 | LIBS=$ac_check_lib_save_LIBS |
| 5647 | fi |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 5648 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_samplerate_src_new" >&5 |
| 5649 | $as_echo "$ac_cv_lib_samplerate_src_new" >&6; } |
| 5650 | if test "x$ac_cv_lib_samplerate_src_new" = x""yes; then : |
Benny Prijono | 550a1a6 | 2007-10-16 08:54:00 +0000 | [diff] [blame] | 5651 | cat >>confdefs.h <<_ACEOF |
| 5652 | #define HAVE_LIBSAMPLERATE 1 |
| 5653 | _ACEOF |
| 5654 | |
| 5655 | LIBS="-lsamplerate $LIBS" |
| 5656 | |
| 5657 | fi |
| 5658 | |
| 5659 | else |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 5660 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Skipping libsamplerate detection" >&5 |
| 5661 | $as_echo "Skipping libsamplerate detection" >&6; } |
Benny Prijono | 550a1a6 | 2007-10-16 08:54:00 +0000 | [diff] [blame] | 5662 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5663 | fi |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 5664 | |
| 5665 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5666 | |
| 5667 | # Check whether --enable-ipp was given. |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 5668 | if test "${enable_ipp+set}" = set; then : |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5669 | enableval=$enable_ipp; |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 5670 | else |
| 5671 | enable_ipp=no |
| 5672 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5673 | fi |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 5674 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5675 | |
Benny Prijono | 3965f19 | 2010-02-10 18:46:05 +0000 | [diff] [blame] | 5676 | |
| 5677 | # Check whether --with-ipp was given. |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 5678 | if test "${with_ipp+set}" = set; then : |
Benny Prijono | 3965f19 | 2010-02-10 18:46:05 +0000 | [diff] [blame] | 5679 | withval=$with_ipp; |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 5680 | else |
| 5681 | with_ipp=no |
| 5682 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5683 | fi |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 5684 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5685 | |
Benny Prijono | 3965f19 | 2010-02-10 18:46:05 +0000 | [diff] [blame] | 5686 | |
| 5687 | # Check whether --with-ipp-samples was given. |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 5688 | if test "${with_ipp_samples+set}" = set; then : |
Benny Prijono | 3965f19 | 2010-02-10 18:46:05 +0000 | [diff] [blame] | 5689 | withval=$with_ipp_samples; |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 5690 | else |
| 5691 | with_ipp_samples=no |
| 5692 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5693 | fi |
| 5694 | |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 5695 | |
Benny Prijono | 3965f19 | 2010-02-10 18:46:05 +0000 | [diff] [blame] | 5696 | |
| 5697 | # Check whether --with-ipp-arch was given. |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 5698 | if test "${with_ipp_arch+set}" = set; then : |
Benny Prijono | 3965f19 | 2010-02-10 18:46:05 +0000 | [diff] [blame] | 5699 | withval=$with_ipp_arch; |
| 5700 | else |
| 5701 | with_ipp_arch=no |
| 5702 | |
| 5703 | fi |
| 5704 | |
| 5705 | |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 5706 | if test "x$enable_ipp" != "xno"; then |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 5707 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking Intel IPP location" >&5 |
| 5708 | $as_echo_n "checking Intel IPP location... " >&6; } |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 5709 | |
| 5710 | if test "x$with_ipp" != "xno" -a "x$with_ipp" != "x"; then |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 5711 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_ipp" >&5 |
| 5712 | $as_echo "$with_ipp" >&6; } |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 5713 | IPPROOT=$with_ipp |
| 5714 | elif test "x$IPPROOT" = "x"; then |
| 5715 | if test -d /opt/intel/ipp; then |
| 5716 | IPPROOT=`ls -d /opt/intel/ipp/*/* | head -1` |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 5717 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: autodetected in $IPPROOT" >&5 |
| 5718 | $as_echo "autodetected in $IPPROOT" >&6; } |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 5719 | fi |
| 5720 | else |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 5721 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IPPROOT" >&5 |
| 5722 | $as_echo "$IPPROOT" >&6; } |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 5723 | fi |
| 5724 | |
Benny Prijono | 3965f19 | 2010-02-10 18:46:05 +0000 | [diff] [blame] | 5725 | if test "x$with_ipp_arch" != "xno"; then |
| 5726 | IPP_SUFFIX="em64t" |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 5727 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: IPP arch suffix is set to $IPP_SUFFIX" >&5 |
| 5728 | $as_echo "IPP arch suffix is set to $IPP_SUFFIX" >&6; } |
Benny Prijono | 3965f19 | 2010-02-10 18:46:05 +0000 | [diff] [blame] | 5729 | else |
| 5730 | IPP_SUFFIX="" |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 5731 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: IPP arch suffix is set to empty" >&5 |
| 5732 | $as_echo "IPP arch suffix is set to empty" >&6; } |
Benny Prijono | 3965f19 | 2010-02-10 18:46:05 +0000 | [diff] [blame] | 5733 | fi |
| 5734 | |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 5735 | if test x$IPPROOT = x; then |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 5736 | as_fn_error "the location is neither specified nor can be guessed. Please specify with IPPROOT env var or with --with-ipp option" "$LINENO" 5 |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 5737 | elif test ! -d $IPPROOT; then |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 5738 | as_fn_error "not found" "$LINENO" 5 |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 5739 | elif test ! -d $IPPROOT/include; then |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 5740 | as_fn_error "directory doesn't seem to be valid" "$LINENO" 5 |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 5741 | else |
| 5742 | # IPP directory looks okay. |
| 5743 | # Remove trailing backslash |
Benny Prijono | 3965f19 | 2010-02-10 18:46:05 +0000 | [diff] [blame] | 5744 | IPPROOT=`echo $IPPROOT | sed 's/\/$//'` |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 5745 | |
| 5746 | SAVED_CFLAGS="$CFLAGS" |
| 5747 | SAVED_LDFLAGS="$LDFLAGS" |
| 5748 | SAVED_LIBS="$LIBS" |
| 5749 | |
| 5750 | IPP_CFLAGS="-I$IPPROOT/include" |
Benny Prijono | 46bd084 | 2010-02-12 14:12:41 +0000 | [diff] [blame] | 5751 | IPP_LIBS="-lippsc${IPP_SUFFIX} -lipps${IPP_SUFFIX} -lippsr${IPP_SUFFIX} -lippcore${IPP_SUFFIX}" |
| 5752 | |
| 5753 | # Some differences between Mac OS X and Linux |
| 5754 | case $target in |
| 5755 | *darwin* ) |
| 5756 | IPP_LDFLAGS="-L$IPPROOT/Libraries -L$IPPROOT/lib" |
| 5757 | ;; |
| 5758 | *) |
| 5759 | IPP_LDFLAGS="-L$IPPROOT/sharedlib" |
| 5760 | IPP_LIBS="$IPP_LIBS -lguide" |
| 5761 | ;; |
| 5762 | esac |
| 5763 | |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 5764 | #IPP_LDFLAGS="-L$IPPROOT/sharedlib" |
Benny Prijono | 46bd084 | 2010-02-12 14:12:41 +0000 | [diff] [blame] | 5765 | #Static: |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 5766 | #IPP_LIBS="-lippscmerged -lippsrmerged -lippsmerged -lippcore" |
| 5767 | |
| 5768 | CFLAGS="$CFLAGS $IPP_CFLAGS" |
| 5769 | LDFLAGS="$LDFLAGS $IPP_LDFLAGS" |
| 5770 | LIBS="$IPP_LIBS $LIBS" |
| 5771 | |
| 5772 | |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 5773 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking Intel IPP usability" >&5 |
| 5774 | $as_echo_n "checking Intel IPP usability... " >&6; } |
| 5775 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 5776 | /* end confdefs.h. */ |
| 5777 | #include <ippcore.h> |
| 5778 | |
| 5779 | int |
| 5780 | main () |
| 5781 | { |
| 5782 | ippStaticInit(); |
| 5783 | ; |
| 5784 | return 0; |
| 5785 | } |
| 5786 | _ACEOF |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 5787 | if ac_fn_c_try_link "$LINENO"; then : |
| 5788 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
| 5789 | $as_echo "ok" >&6; } |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 5790 | else |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 5791 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 5792 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 5793 | { as_fn_set_status run with --help for more info |
| 5794 | as_fn_error "Error: unable to recognize your IPP installation. Make sure the paths and ARCH suffix are set correctly |
| 5795 | See \`config.log' for more details." "$LINENO" 5; }; } |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 5796 | fi |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 5797 | rm -f core conftest.err conftest.$ac_objext \ |
| 5798 | conftest$ac_exeext conftest.$ac_ext |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 5799 | |
| 5800 | CFLAGS="$SAVED_CFLAGS" |
| 5801 | LDFLAGS="$SAVED_LDFLAGS" |
| 5802 | LIBS="$SAVED_LIBS" |
| 5803 | fi |
| 5804 | |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 5805 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking Intel IPP samples location" >&5 |
| 5806 | $as_echo_n "checking Intel IPP samples location... " >&6; } |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 5807 | |
| 5808 | if test "x$with_ipp_samples" != "xno" -a "x$with_ipp_samples" != "x"; then |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 5809 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_ipp_samples" >&5 |
| 5810 | $as_echo "$with_ipp_samples" >&6; } |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 5811 | IPPSAMPLES=$with_ipp_samples |
| 5812 | elif test "x$IPPSAMPLES" = "x"; then |
| 5813 | if test -d /opt/intel/ipp-samples; then |
| 5814 | IPPSAMPLES=/opt/intel/ipp-samples |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 5815 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: autodetected in $IPPSAMPLES" >&5 |
| 5816 | $as_echo "autodetected in $IPPSAMPLES" >&6; } |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 5817 | fi |
| 5818 | else |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 5819 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IPPSAMPLES" >&5 |
| 5820 | $as_echo "$IPPSAMPLES" >&6; } |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 5821 | fi |
| 5822 | |
| 5823 | if test x$IPPSAMPLES = x; then |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 5824 | as_fn_error "the location is neither specified nor can be guessed. Please specify with IPPSAMPLES env var or with --with-ipp-samples option" "$LINENO" 5 |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 5825 | elif test ! -d $IPPSAMPLES; then |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 5826 | as_fn_error "not found" "$LINENO" 5 |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 5827 | elif test ! -d $IPPSAMPLES/speech-codecs; then |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 5828 | as_fn_error "directory doesn't seem to be valid" "$LINENO" 5 |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 5829 | else |
| 5830 | # Remove trailing backslash |
| 5831 | IPPSAMPLES=`echo $IPPSAMPLES | sed 's/\/$//'` |
| 5832 | |
Benny Prijono | 3965f19 | 2010-02-10 18:46:05 +0000 | [diff] [blame] | 5833 | # Guess the libusc.a/libspeech.a build location |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 5834 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking Intel IPP USC build location" >&5 |
| 5835 | $as_echo_n "checking Intel IPP USC build location... " >&6; } |
Benny Prijono | 3965f19 | 2010-02-10 18:46:05 +0000 | [diff] [blame] | 5836 | if test -d $IPPSAMPLES/speech-codecs/bin; then |
| 5837 | IPPVER=5 |
| 5838 | IPPSAMP_DIR=`ls -d $IPPSAMPLES/speech-codecs/bin/*gcc*/lib | head -1` |
| 5839 | elif test -d $IPPSAMPLES/speech-codecs/_bin; then |
| 5840 | IPPVER=6 |
Benny Prijono | 46bd084 | 2010-02-12 14:12:41 +0000 | [diff] [blame] | 5841 | if test -d $IPPSAMPLES/speech-codecs/_bin/*gcc*; then |
| 5842 | # gcc compiler |
| 5843 | IPPSAMP_DIR=`ls -d $IPPSAMPLES/speech-codecs/_bin/*gcc*/lib | head -1` |
| 5844 | elif test -d $IPPSAMPLES/speech-codecs/_bin/*icc*; then |
| 5845 | # icc compiler |
| 5846 | IPPSAMP_DIR=`ls -d $IPPSAMPLES/speech-codecs/_bin/*icc*/lib | head -1` |
| 5847 | else |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 5848 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 5849 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 5850 | as_fn_error "Unable to find to find built binaries under $IPPSAMPLES/speech-codecs/{bin,_bin}. Have you built the IPP samples? |
| 5851 | See \`config.log' for more details." "$LINENO" 5; } |
Benny Prijono | 46bd084 | 2010-02-12 14:12:41 +0000 | [diff] [blame] | 5852 | fi |
Benny Prijono | 3965f19 | 2010-02-10 18:46:05 +0000 | [diff] [blame] | 5853 | else |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 5854 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 5855 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 5856 | as_fn_error "unable to find $IPPSAMPLES/speech-codecs/bin/*gcc*/lib or $IPPSAMPLES/speech-codecs/_bin/*gcc*/lib directory. Have you built the samples? |
| 5857 | See \`config.log' for more details." "$LINENO" 5; } |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 5858 | fi |
Benny Prijono | 3965f19 | 2010-02-10 18:46:05 +0000 | [diff] [blame] | 5859 | |
| 5860 | # Test the directory |
| 5861 | if test ! -d $IPPSAMP_DIR; then |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 5862 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 5863 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 5864 | as_fn_error "There's something wrong with this script, directory $IPPSAMP_DIR does not exist |
| 5865 | See \`config.log' for more details." "$LINENO" 5; } |
Benny Prijono | 3965f19 | 2010-02-10 18:46:05 +0000 | [diff] [blame] | 5866 | exit 1; |
| 5867 | fi |
| 5868 | |
| 5869 | if test "x$IPPVER" = "x5"; then |
| 5870 | IPPSAMP_LIBS="libusc.a" |
| 5871 | IPPSAMP_LDLIBS="-lusc" |
| 5872 | elif test "x$IPPVER" = "x6"; then |
| 5873 | IPPSAMP_LIBS="libspeech.a" |
| 5874 | IPPSAMP_LDLIBS="-lspeech" |
| 5875 | else |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 5876 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 5877 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 5878 | as_fn_error "bug in this script: unsupported IPP version |
| 5879 | See \`config.log' for more details." "$LINENO" 5; } |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 5880 | fi |
Benny Prijono | 3965f19 | 2010-02-10 18:46:05 +0000 | [diff] [blame] | 5881 | |
| 5882 | if test ! -f $IPPSAMP_DIR/$IPPSAMP_LIBS; then |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 5883 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 5884 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 5885 | as_fn_error "$IPPSAMP_LIBS doesn't exist in $IPPSAMP_DIR |
| 5886 | See \`config.log' for more details." "$LINENO" 5; } |
Benny Prijono | 3965f19 | 2010-02-10 18:46:05 +0000 | [diff] [blame] | 5887 | fi |
| 5888 | |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 5889 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IPPSAMP_DIR" >&5 |
| 5890 | $as_echo "$IPPSAMP_DIR" >&6; } |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 5891 | |
| 5892 | SAVED_CFLAGS="$CFLAGS" |
| 5893 | SAVED_LDFLAGS="$LDFLAGS" |
| 5894 | SAVED_LIBS="$LIBS" |
| 5895 | |
Benny Prijono | 3965f19 | 2010-02-10 18:46:05 +0000 | [diff] [blame] | 5896 | IPPSAMP_INC="-I$IPPSAMPLES/speech-codecs/core/usc/include" |
| 5897 | CFLAGS="$CFLAGS $IPPSAMP_INC" |
| 5898 | LDFLAGS="$LDFLAGS -L$IPPSAMP_DIR" |
| 5899 | LIBS="$IPPSAMP_LDLIBS $LIBS" |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 5900 | |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 5901 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking Intel IPP USC usability" >&5 |
| 5902 | $as_echo_n "checking Intel IPP USC usability... " >&6; } |
| 5903 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 5904 | /* end confdefs.h. */ |
| 5905 | #include <usc.h> |
| 5906 | |
| 5907 | int |
| 5908 | main () |
| 5909 | { |
| 5910 | extern USC_Fxns USC_G729AFP_Fxns; |
| 5911 | ; |
| 5912 | return 0; |
| 5913 | } |
| 5914 | _ACEOF |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 5915 | if ac_fn_c_try_link "$LINENO"; then : |
| 5916 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
| 5917 | $as_echo "ok" >&6; } |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 5918 | else |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 5919 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 5920 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 5921 | as_fn_error "failed |
| 5922 | See \`config.log' for more details." "$LINENO" 5; } |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 5923 | fi |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 5924 | rm -f core conftest.err conftest.$ac_objext \ |
| 5925 | conftest$ac_exeext conftest.$ac_ext |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 5926 | |
| 5927 | CFLAGS="$SAVED_CFLAGS" |
Benny Prijono | 3965f19 | 2010-02-10 18:46:05 +0000 | [diff] [blame] | 5928 | LDFLAGS="$IPP_LDFLAGS $SAVED_LDFLAGS" |
| 5929 | LIBS="$IPP_LIBS $SAVED_LIBS" |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 5930 | |
Benny Prijono | 3965f19 | 2010-02-10 18:46:05 +0000 | [diff] [blame] | 5931 | IPP_CFLAGS="$IPP_CFLAGS $IPPSAMP_INC" |
| 5932 | IPP_LDFLAGS="$IPP_LDFLAGS -L$IPPSAMP_DIR" |
| 5933 | IPP_LIBS="$IPPSAMP_LDLIBS $IPP_LIBS" |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 5934 | fi |
| 5935 | |
Benny Prijono | 3965f19 | 2010-02-10 18:46:05 +0000 | [diff] [blame] | 5936 | CFLAGS="$CFLAGS $IPP_CFLAGS" |
| 5937 | LDFLAGS="$LDFLAGS $IPP_LDFLAGS" |
| 5938 | LIBS="$LIBS $IPP_LIBS" |
| 5939 | |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 5940 | ac_build_mak_vars="$ac_build_mak_vars\n\ |
| 5941 | export IPP_CFLAGS=$IPP_CFLAGS\n\ |
| 5942 | export IPP_LDFLAGS=$IPP_LDFLAGS\n\ |
| 5943 | export IPP_LIBS=$IPP_LIBS" |
| 5944 | else |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 5945 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Skipping Intel IPP settings (not wanted)" >&5 |
| 5946 | $as_echo "Skipping Intel IPP settings (not wanted)" >&6; } |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 5947 | fi |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5948 | |
| 5949 | |
| 5950 | |
| 5951 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5952 | # Check whether --enable-ssl was given. |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 5953 | if test "${enable_ssl+set}" = set; then : |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5954 | enableval=$enable_ssl; |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5955 | if test "$enable_ssl" = "no"; then |
| 5956 | ac_no_ssl=1 |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 5957 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if SSL support is disabled... yes" >&5 |
| 5958 | $as_echo "Checking if SSL support is disabled... yes" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5959 | fi |
| 5960 | |
| 5961 | else |
| 5962 | |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 5963 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: checking for OpenSSL installations.." >&5 |
| 5964 | $as_echo "checking for OpenSSL installations.." >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5965 | |
| 5966 | |
| 5967 | |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 5968 | ac_fn_c_check_header_mongrel "$LINENO" "openssl/ssl.h" "ac_cv_header_openssl_ssl_h" "$ac_includes_default" |
| 5969 | if test "x$ac_cv_header_openssl_ssl_h" = x""yes; then : |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5970 | openssl_h_present=1 |
| 5971 | fi |
| 5972 | |
| 5973 | |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 5974 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ERR_load_BIO_strings in -lcrypto" >&5 |
| 5975 | $as_echo_n "checking for ERR_load_BIO_strings in -lcrypto... " >&6; } |
| 5976 | if test "${ac_cv_lib_crypto_ERR_load_BIO_strings+set}" = set; then : |
| 5977 | $as_echo_n "(cached) " >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5978 | else |
| 5979 | ac_check_lib_save_LIBS=$LIBS |
| 5980 | LIBS="-lcrypto $LIBS" |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 5981 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5982 | /* end confdefs.h. */ |
| 5983 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5984 | /* Override any GCC internal prototype to avoid an error. |
| 5985 | Use char because int might match the return type of a GCC |
| 5986 | builtin and then its argument prototype would still apply. */ |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5987 | #ifdef __cplusplus |
| 5988 | extern "C" |
| 5989 | #endif |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5990 | char ERR_load_BIO_strings (); |
| 5991 | int |
| 5992 | main () |
| 5993 | { |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5994 | return ERR_load_BIO_strings (); |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5995 | ; |
| 5996 | return 0; |
| 5997 | } |
| 5998 | _ACEOF |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 5999 | if ac_fn_c_try_link "$LINENO"; then : |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6000 | ac_cv_lib_crypto_ERR_load_BIO_strings=yes |
| 6001 | else |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 6002 | ac_cv_lib_crypto_ERR_load_BIO_strings=no |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6003 | fi |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 6004 | rm -f core conftest.err conftest.$ac_objext \ |
| 6005 | conftest$ac_exeext conftest.$ac_ext |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6006 | LIBS=$ac_check_lib_save_LIBS |
| 6007 | fi |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 6008 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_ERR_load_BIO_strings" >&5 |
| 6009 | $as_echo "$ac_cv_lib_crypto_ERR_load_BIO_strings" >&6; } |
| 6010 | if test "x$ac_cv_lib_crypto_ERR_load_BIO_strings" = x""yes; then : |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6011 | libcrypto_present=1 && LIBS="$LIBS -lcrypto" |
| 6012 | fi |
| 6013 | |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 6014 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_library_init in -lssl" >&5 |
| 6015 | $as_echo_n "checking for SSL_library_init in -lssl... " >&6; } |
| 6016 | if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then : |
| 6017 | $as_echo_n "(cached) " >&6 |
Benny Prijono | d523370 | 2010-01-13 13:09:45 +0000 | [diff] [blame] | 6018 | else |
| 6019 | ac_check_lib_save_LIBS=$LIBS |
| 6020 | LIBS="-lssl $LIBS" |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 6021 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Benny Prijono | d523370 | 2010-01-13 13:09:45 +0000 | [diff] [blame] | 6022 | /* end confdefs.h. */ |
| 6023 | |
| 6024 | /* Override any GCC internal prototype to avoid an error. |
| 6025 | Use char because int might match the return type of a GCC |
| 6026 | builtin and then its argument prototype would still apply. */ |
| 6027 | #ifdef __cplusplus |
| 6028 | extern "C" |
| 6029 | #endif |
| 6030 | char SSL_library_init (); |
| 6031 | int |
| 6032 | main () |
| 6033 | { |
| 6034 | return SSL_library_init (); |
| 6035 | ; |
| 6036 | return 0; |
| 6037 | } |
| 6038 | _ACEOF |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 6039 | if ac_fn_c_try_link "$LINENO"; then : |
Benny Prijono | d523370 | 2010-01-13 13:09:45 +0000 | [diff] [blame] | 6040 | ac_cv_lib_ssl_SSL_library_init=yes |
| 6041 | else |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 6042 | ac_cv_lib_ssl_SSL_library_init=no |
Benny Prijono | d523370 | 2010-01-13 13:09:45 +0000 | [diff] [blame] | 6043 | fi |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 6044 | rm -f core conftest.err conftest.$ac_objext \ |
| 6045 | conftest$ac_exeext conftest.$ac_ext |
Benny Prijono | d523370 | 2010-01-13 13:09:45 +0000 | [diff] [blame] | 6046 | LIBS=$ac_check_lib_save_LIBS |
| 6047 | fi |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 6048 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_library_init" >&5 |
| 6049 | $as_echo "$ac_cv_lib_ssl_SSL_library_init" >&6; } |
| 6050 | if test "x$ac_cv_lib_ssl_SSL_library_init" = x""yes; then : |
Benny Prijono | d523370 | 2010-01-13 13:09:45 +0000 | [diff] [blame] | 6051 | libssl_present=1 && LIBS="$LIBS -lssl" |
| 6052 | fi |
| 6053 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6054 | if test "x$openssl_h_present" = "x1" -a "x$libssl_present" = "x1" -a "x$libcrypto_present" = "x1"; then |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 6055 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: OpenSSL library found, SSL support enabled" >&5 |
| 6056 | $as_echo "OpenSSL library found, SSL support enabled" >&6; } |
Nanang Izzuddin | 9c7616f | 2009-10-28 06:09:15 +0000 | [diff] [blame] | 6057 | # PJSIP_HAS_TLS_TRANSPORT setting follows PJ_HAS_SSL_SOCK |
| 6058 | #AC_DEFINE(PJSIP_HAS_TLS_TRANSPORT, 1) |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 6059 | $as_echo "#define PJ_HAS_SSL_SOCK 1" >>confdefs.h |
Nanang Izzuddin | ea6d3c4 | 2009-10-26 15:47:52 +0000 | [diff] [blame] | 6060 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6061 | else |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 6062 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ** OpenSSL libraries not found, disabling SSL support **" >&5 |
| 6063 | $as_echo "** OpenSSL libraries not found, disabling SSL support **" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6064 | fi |
| 6065 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 6066 | fi |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6067 | |
| 6068 | |
| 6069 | |
| 6070 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 6071 | |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 6072 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if select() needs correct nfds" >&5 |
| 6073 | $as_echo_n "checking if select() needs correct nfds... " >&6; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6074 | case $target in |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 6075 | *rtems*) $as_echo "#define PJ_SELECT_NEEDS_NFDS 1" >>confdefs.h |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6076 | |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 6077 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 6078 | $as_echo "yes" >&6; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6079 | ;; |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 6080 | *) $as_echo "#define PJ_SELECT_NEEDS_NFDS 0" >>confdefs.h |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6081 | |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 6082 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (default)" >&5 |
| 6083 | $as_echo "no (default)" >&6; } |
| 6084 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ** Decided that select() doesn't need correct nfds (please check)" >&5 |
| 6085 | $as_echo "** Decided that select() doesn't need correct nfds (please check)" >&6; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6086 | ;; |
| 6087 | esac |
| 6088 | |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 6089 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if pj_thread_create() should enforce stack size" >&5 |
| 6090 | $as_echo_n "checking if pj_thread_create() should enforce stack size... " >&6; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6091 | case $target in |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 6092 | *rtems*) $as_echo "#define PJ_THREAD_SET_STACK_SIZE 1" >>confdefs.h |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6093 | |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 6094 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 6095 | $as_echo "yes" >&6; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6096 | ;; |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 6097 | *) $as_echo "#define PJ_THREAD_SET_STACK_SIZE 0" >>confdefs.h |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6098 | |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 6099 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (default)" >&5 |
| 6100 | $as_echo "no (default)" >&6; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6101 | ;; |
| 6102 | esac |
| 6103 | |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 6104 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if pj_thread_create() should allocate stack" >&5 |
| 6105 | $as_echo_n "checking if pj_thread_create() should allocate stack... " >&6; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6106 | case $target in |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 6107 | *rtems*) $as_echo "#define PJ_THREAD_ALLOCATE_STACK 1" >>confdefs.h |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6108 | |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 6109 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 6110 | $as_echo "yes" >&6; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6111 | ;; |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 6112 | *) $as_echo "#define PJ_THREAD_ALLOCATE_STACK 0" >>confdefs.h |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6113 | |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 6114 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (default)" >&5 |
| 6115 | $as_echo "no (default)" >&6; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6116 | ;; |
| 6117 | esac |
| 6118 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6119 | case $target in |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 6120 | *mingw* | *cygw* | *win32* | *w32* ) |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 6121 | $as_echo "#define PJ_BLOCKING_ERROR_VAL WSAEWOULDBLOCK" >>confdefs.h |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6122 | |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 6123 | ;; |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 6124 | *) $as_echo "#define PJ_BLOCKING_ERROR_VAL EAGAIN" >>confdefs.h |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 6125 | |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 6126 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ** Setting non-blocking recv() retval to EAGAIN (please check)" >&5 |
| 6127 | $as_echo "** Setting non-blocking recv() retval to EAGAIN (please check)" >&6; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6128 | ;; |
| 6129 | esac |
| 6130 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6131 | case $target in |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 6132 | *mingw* | *cygw* | *win32* | *w32* ) |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 6133 | $as_echo "#define PJ_BLOCKING_CONNECT_ERROR_VAL WSAEWOULDBLOCK" >>confdefs.h |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6134 | |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 6135 | ;; |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 6136 | *) $as_echo "#define PJ_BLOCKING_CONNECT_ERROR_VAL EINPROGRESS" >>confdefs.h |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 6137 | |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 6138 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ** Setting non-blocking connect() retval to EINPROGRESS (please check)" >&5 |
| 6139 | $as_echo "** Setting non-blocking connect() retval to EINPROGRESS (please check)" >&6; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6140 | ;; |
| 6141 | esac |
| 6142 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6143 | |
| 6144 | |
| 6145 | |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 6146 | if test "$build" = "$host"; then |
| 6147 | ac_cross_compile= |
| 6148 | else |
Benny Prijono | 5b818b2 | 2006-09-17 22:58:51 +0000 | [diff] [blame] | 6149 | ac_cross_compile=${host_orig}- |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 6150 | fi |
| 6151 | ac_linux_poll=select |
| 6152 | |
| 6153 | ac_host=unix |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6154 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6155 | |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 6156 | case $target in |
| 6157 | *rtems*) |
| 6158 | ac_main_obj=main_rtems.o |
| 6159 | ;; |
| 6160 | *) |
| 6161 | ac_main_obj=main.o |
| 6162 | ;; |
| 6163 | esac |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6164 | |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 6165 | |
| 6166 | 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] | 6167 | cat >confcache <<\_ACEOF |
| 6168 | # This file is a shell script that caches the results of configure |
| 6169 | # tests run on this system so they can be shared between configure |
| 6170 | # scripts and configure runs, see configure's option --config-cache. |
| 6171 | # It is not useful on other systems. If it contains results you don't |
| 6172 | # want to keep, you may remove or edit it. |
| 6173 | # |
| 6174 | # config.status only pays attention to the cache file if you give it |
| 6175 | # the --recheck option to rerun configure. |
| 6176 | # |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6177 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6178 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
| 6179 | # following values. |
| 6180 | |
| 6181 | _ACEOF |
| 6182 | |
| 6183 | # The following way of writing the cache mishandles newlines in values, |
| 6184 | # but we know of no workaround that is simple, portable, and efficient. |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 6185 | # So, we kill variables containing newlines. |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6186 | # Ultrix sh set writes to stderr and can't be redirected directly, |
| 6187 | # and sets the high bit in the cache file unless we assign to the vars. |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 6188 | ( |
| 6189 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do |
| 6190 | eval ac_val=\$$ac_var |
| 6191 | case $ac_val in #( |
| 6192 | *${as_nl}*) |
| 6193 | case $ac_var in #( |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 6194 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
| 6195 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 6196 | esac |
| 6197 | case $ac_var in #( |
| 6198 | _ | IFS | as_nl) ;; #( |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 6199 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
| 6200 | *) { eval $ac_var=; unset $ac_var;} ;; |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 6201 | esac ;; |
| 6202 | esac |
| 6203 | done |
| 6204 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6205 | (set) 2>&1 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 6206 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
| 6207 | *${as_nl}ac_space=\ *) |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 6208 | # `set' does not quote correctly, so add quotes: double-quote |
| 6209 | # substitution turns \\\\ into \\, and sed turns \\ into \. |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6210 | sed -n \ |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6211 | "s/'/'\\\\''/g; |
| 6212 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 6213 | ;; #( |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6214 | *) |
| 6215 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 6216 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6217 | ;; |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 6218 | esac | |
| 6219 | sort |
| 6220 | ) | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6221 | sed ' |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 6222 | /^ac_cv_env_/b end |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6223 | t clear |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 6224 | :clear |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6225 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
| 6226 | t end |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 6227 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
| 6228 | :end' >>confcache |
| 6229 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else |
| 6230 | if test -w "$cache_file"; then |
| 6231 | test "x$cache_file" != "x/dev/null" && |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 6232 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 |
| 6233 | $as_echo "$as_me: updating cache $cache_file" >&6;} |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6234 | cat confcache >$cache_file |
| 6235 | else |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 6236 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 |
| 6237 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6238 | fi |
| 6239 | fi |
| 6240 | rm -f confcache |
| 6241 | |
| 6242 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
| 6243 | # Let make expand exec_prefix. |
| 6244 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
| 6245 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6246 | DEFS=-DHAVE_CONFIG_H |
| 6247 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6248 | ac_libobjs= |
| 6249 | ac_ltlibobjs= |
| 6250 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
| 6251 | # 1. Remove the extension, and $U if already installed. |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 6252 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 6253 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 6254 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
| 6255 | # will be set to the directory where LIBOBJS objects are built. |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 6256 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" |
| 6257 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6258 | done |
| 6259 | LIBOBJS=$ac_libobjs |
| 6260 | |
| 6261 | LTLIBOBJS=$ac_ltlibobjs |
| 6262 | |
| 6263 | |
| 6264 | |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 6265 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6266 | : ${CONFIG_STATUS=./config.status} |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 6267 | ac_write_fail=0 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6268 | ac_clean_files_save=$ac_clean_files |
| 6269 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 6270 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 |
| 6271 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} |
| 6272 | as_write_fail=0 |
| 6273 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6274 | #! $SHELL |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6275 | # Generated by $as_me. |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6276 | # Run this file to recreate the current configuration. |
| 6277 | # Compiler output produced by configure, useful for debugging |
| 6278 | # configure, is in config.log if it exists. |
| 6279 | |
| 6280 | debug=false |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6281 | ac_cs_recheck=false |
| 6282 | ac_cs_silent=false |
Benny Prijono | 46bd084 | 2010-02-12 14:12:41 +0000 | [diff] [blame] | 6283 | |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 6284 | SHELL=\${CONFIG_SHELL-$SHELL} |
| 6285 | export SHELL |
| 6286 | _ASEOF |
| 6287 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 |
| 6288 | ## -------------------- ## |
| 6289 | ## M4sh Initialization. ## |
| 6290 | ## -------------------- ## |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6291 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 6292 | # Be more Bourne compatible |
| 6293 | DUALCASE=1; export DUALCASE # for MKS sh |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 6294 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6295 | emulate sh |
| 6296 | NULLCMD=: |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 6297 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6298 | # is contrary to our usage. Disable this feature. |
| 6299 | alias -g '${1+"$@"}'='"$@"' |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 6300 | setopt NO_GLOB_SUBST |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 6301 | else |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 6302 | case `(set -o) 2>/dev/null` in #( |
| 6303 | *posix*) : |
| 6304 | set -o posix ;; #( |
| 6305 | *) : |
| 6306 | ;; |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 6307 | esac |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6308 | fi |
| 6309 | |
| 6310 | |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 6311 | as_nl=' |
| 6312 | ' |
| 6313 | export as_nl |
| 6314 | # Printing a long string crashes Solaris 7 /usr/bin/printf. |
| 6315 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
| 6316 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo |
| 6317 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo |
| 6318 | # Prefer a ksh shell builtin over an external printf program on Solaris, |
| 6319 | # but without wasting forks for bash or zsh. |
| 6320 | if test -z "$BASH_VERSION$ZSH_VERSION" \ |
| 6321 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then |
| 6322 | as_echo='print -r --' |
| 6323 | as_echo_n='print -rn --' |
| 6324 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then |
| 6325 | as_echo='printf %s\n' |
| 6326 | as_echo_n='printf %s' |
| 6327 | else |
| 6328 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then |
| 6329 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' |
| 6330 | as_echo_n='/usr/ucb/echo -n' |
| 6331 | else |
| 6332 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
| 6333 | as_echo_n_body='eval |
| 6334 | arg=$1; |
| 6335 | case $arg in #( |
| 6336 | *"$as_nl"*) |
| 6337 | expr "X$arg" : "X\\(.*\\)$as_nl"; |
| 6338 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; |
| 6339 | esac; |
| 6340 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" |
| 6341 | ' |
| 6342 | export as_echo_n_body |
| 6343 | as_echo_n='sh -c $as_echo_n_body as_echo' |
| 6344 | fi |
| 6345 | export as_echo_body |
| 6346 | as_echo='sh -c $as_echo_body as_echo' |
| 6347 | fi |
Benny Prijono | d523370 | 2010-01-13 13:09:45 +0000 | [diff] [blame] | 6348 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6349 | # The user is always right. |
| 6350 | if test "${PATH_SEPARATOR+set}" != set; then |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 6351 | PATH_SEPARATOR=: |
| 6352 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { |
| 6353 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || |
| 6354 | PATH_SEPARATOR=';' |
| 6355 | } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6356 | fi |
| 6357 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 6358 | |
| 6359 | # IFS |
| 6360 | # We need space, tab and new line, in precisely that order. Quoting is |
| 6361 | # there to prevent editors from complaining about space-tab. |
| 6362 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
| 6363 | # splitting by setting IFS to empty value.) |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 6364 | IFS=" "" $as_nl" |
| 6365 | |
| 6366 | # Find who we are. Look in the path if we contain no directory separator. |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 6367 | case $0 in #(( |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 6368 | *[\\/]* ) as_myself=$0 ;; |
| 6369 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6370 | for as_dir in $PATH |
| 6371 | do |
| 6372 | IFS=$as_save_IFS |
| 6373 | test -z "$as_dir" && as_dir=. |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 6374 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 6375 | done |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 6376 | IFS=$as_save_IFS |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6377 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 6378 | ;; |
| 6379 | esac |
| 6380 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 6381 | # in which case we are not to be found in the path. |
| 6382 | if test "x$as_myself" = x; then |
| 6383 | as_myself=$0 |
| 6384 | fi |
| 6385 | if test ! -f "$as_myself"; then |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 6386 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
| 6387 | exit 1 |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 6388 | fi |
| 6389 | |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 6390 | # Unset variables that we do not need and which cause bugs (e.g. in |
| 6391 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" |
| 6392 | # suppresses any "Segmentation fault" message there. '((' could |
| 6393 | # trigger a bug in pdksh 5.2.14. |
| 6394 | for as_var in BASH_ENV ENV MAIL MAILPATH |
| 6395 | do eval test x\${$as_var+set} = xset \ |
| 6396 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 6397 | done |
| 6398 | PS1='$ ' |
| 6399 | PS2='> ' |
| 6400 | PS4='+ ' |
| 6401 | |
| 6402 | # NLS nuisances. |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 6403 | LC_ALL=C |
| 6404 | export LC_ALL |
| 6405 | LANGUAGE=C |
| 6406 | export LANGUAGE |
Benny Prijono | fe0c127 | 2010-01-13 16:28:15 +0000 | [diff] [blame] | 6407 | |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 6408 | # CDPATH. |
| 6409 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
| 6410 | |
| 6411 | |
| 6412 | # as_fn_error ERROR [LINENO LOG_FD] |
| 6413 | # --------------------------------- |
| 6414 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
| 6415 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the |
| 6416 | # script with status $?, using 1 if that was 0. |
| 6417 | as_fn_error () |
| 6418 | { |
| 6419 | as_status=$?; test $as_status -eq 0 && as_status=1 |
| 6420 | if test "$3"; then |
| 6421 | as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 6422 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3 |
| 6423 | fi |
| 6424 | $as_echo "$as_me: error: $1" >&2 |
| 6425 | as_fn_exit $as_status |
| 6426 | } # as_fn_error |
| 6427 | |
| 6428 | |
| 6429 | # as_fn_set_status STATUS |
| 6430 | # ----------------------- |
| 6431 | # Set $? to STATUS, without forking. |
| 6432 | as_fn_set_status () |
| 6433 | { |
| 6434 | return $1 |
| 6435 | } # as_fn_set_status |
| 6436 | |
| 6437 | # as_fn_exit STATUS |
| 6438 | # ----------------- |
| 6439 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. |
| 6440 | as_fn_exit () |
| 6441 | { |
| 6442 | set +e |
| 6443 | as_fn_set_status $1 |
| 6444 | exit $1 |
| 6445 | } # as_fn_exit |
| 6446 | |
| 6447 | # as_fn_unset VAR |
| 6448 | # --------------- |
| 6449 | # Portably unset VAR. |
| 6450 | as_fn_unset () |
| 6451 | { |
| 6452 | { eval $1=; unset $1;} |
| 6453 | } |
| 6454 | as_unset=as_fn_unset |
| 6455 | # as_fn_append VAR VALUE |
| 6456 | # ---------------------- |
| 6457 | # Append the text in VALUE to the end of the definition contained in VAR. Take |
| 6458 | # advantage of any shell optimizations that allow amortized linear growth over |
| 6459 | # repeated appends, instead of the typical quadratic growth present in naive |
| 6460 | # implementations. |
| 6461 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : |
| 6462 | eval 'as_fn_append () |
| 6463 | { |
| 6464 | eval $1+=\$2 |
| 6465 | }' |
| 6466 | else |
| 6467 | as_fn_append () |
| 6468 | { |
| 6469 | eval $1=\$$1\$2 |
| 6470 | } |
| 6471 | fi # as_fn_append |
| 6472 | |
| 6473 | # as_fn_arith ARG... |
| 6474 | # ------------------ |
| 6475 | # Perform arithmetic evaluation on the ARGs, and store the result in the |
| 6476 | # global $as_val. Take advantage of shells that can avoid forks. The arguments |
| 6477 | # must be portable across $(()) and expr. |
| 6478 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : |
| 6479 | eval 'as_fn_arith () |
| 6480 | { |
| 6481 | as_val=$(( $* )) |
| 6482 | }' |
| 6483 | else |
| 6484 | as_fn_arith () |
| 6485 | { |
| 6486 | as_val=`expr "$@" || test $? -eq 1` |
| 6487 | } |
| 6488 | fi # as_fn_arith |
| 6489 | |
| 6490 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 6491 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 6492 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
| 6493 | as_expr=expr |
| 6494 | else |
| 6495 | as_expr=false |
| 6496 | fi |
| 6497 | |
| 6498 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
| 6499 | as_basename=basename |
| 6500 | else |
| 6501 | as_basename=false |
| 6502 | fi |
| 6503 | |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 6504 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
| 6505 | as_dirname=dirname |
| 6506 | else |
| 6507 | as_dirname=false |
| 6508 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 6509 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 6510 | as_me=`$as_basename -- "$0" || |
| 6511 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 6512 | X"$0" : 'X\(//\)$' \| \ |
| 6513 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 6514 | $as_echo X/"$0" | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 6515 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
| 6516 | s//\1/ |
| 6517 | q |
| 6518 | } |
| 6519 | /^X\/\(\/\/\)$/{ |
| 6520 | s//\1/ |
| 6521 | q |
| 6522 | } |
| 6523 | /^X\/\(\/\).*/{ |
| 6524 | s//\1/ |
| 6525 | q |
| 6526 | } |
| 6527 | s/.*/./; q'` |
| 6528 | |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 6529 | # Avoid depending upon Character Ranges. |
| 6530 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 6531 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 6532 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 6533 | as_cr_digits='0123456789' |
| 6534 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 6535 | |
| 6536 | ECHO_C= ECHO_N= ECHO_T= |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 6537 | case `echo -n x` in #((((( |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 6538 | -n*) |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 6539 | case `echo 'xy\c'` in |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 6540 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 6541 | xy) ECHO_C='\c';; |
| 6542 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null |
| 6543 | ECHO_T=' ';; |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 6544 | esac;; |
| 6545 | *) |
| 6546 | ECHO_N='-n';; |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6547 | esac |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6548 | |
| 6549 | rm -f conf$$ conf$$.exe conf$$.file |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 6550 | if test -d conf$$.dir; then |
| 6551 | rm -f conf$$.dir/conf$$.file |
| 6552 | else |
| 6553 | rm -f conf$$.dir |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 6554 | mkdir conf$$.dir 2>/dev/null |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 6555 | fi |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 6556 | if (echo >conf$$.file) 2>/dev/null; then |
| 6557 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 6558 | as_ln_s='ln -s' |
| 6559 | # ... but there are two gotchas: |
| 6560 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
| 6561 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
| 6562 | # In both cases, we have to default to `cp -p'. |
| 6563 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
| 6564 | as_ln_s='cp -p' |
| 6565 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 6566 | as_ln_s=ln |
| 6567 | else |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6568 | as_ln_s='cp -p' |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 6569 | fi |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6570 | else |
| 6571 | as_ln_s='cp -p' |
| 6572 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 6573 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
| 6574 | rmdir conf$$.dir 2>/dev/null |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6575 | |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 6576 | |
| 6577 | # as_fn_mkdir_p |
| 6578 | # ------------- |
| 6579 | # Create "$as_dir" as a directory, including parents if necessary. |
| 6580 | as_fn_mkdir_p () |
| 6581 | { |
| 6582 | |
| 6583 | case $as_dir in #( |
| 6584 | -*) as_dir=./$as_dir;; |
| 6585 | esac |
| 6586 | test -d "$as_dir" || eval $as_mkdir_p || { |
| 6587 | as_dirs= |
| 6588 | while :; do |
| 6589 | case $as_dir in #( |
| 6590 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
| 6591 | *) as_qdir=$as_dir;; |
| 6592 | esac |
| 6593 | as_dirs="'$as_qdir' $as_dirs" |
| 6594 | as_dir=`$as_dirname -- "$as_dir" || |
| 6595 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 6596 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 6597 | X"$as_dir" : 'X\(//\)$' \| \ |
| 6598 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
| 6599 | $as_echo X"$as_dir" | |
| 6600 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 6601 | s//\1/ |
| 6602 | q |
| 6603 | } |
| 6604 | /^X\(\/\/\)[^/].*/{ |
| 6605 | s//\1/ |
| 6606 | q |
| 6607 | } |
| 6608 | /^X\(\/\/\)$/{ |
| 6609 | s//\1/ |
| 6610 | q |
| 6611 | } |
| 6612 | /^X\(\/\).*/{ |
| 6613 | s//\1/ |
| 6614 | q |
| 6615 | } |
| 6616 | s/.*/./; q'` |
| 6617 | test -d "$as_dir" && break |
| 6618 | done |
| 6619 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
| 6620 | } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir" |
| 6621 | |
| 6622 | |
| 6623 | } # as_fn_mkdir_p |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6624 | if mkdir -p . 2>/dev/null; then |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 6625 | as_mkdir_p='mkdir -p "$as_dir"' |
Benny Prijono | 39ae2da | 2006-10-13 17:57:42 +0000 | [diff] [blame] | 6626 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6627 | test -d ./-p && rmdir ./-p |
| 6628 | as_mkdir_p=false |
Benny Prijono | 39ae2da | 2006-10-13 17:57:42 +0000 | [diff] [blame] | 6629 | fi |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 6630 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 6631 | if test -x / >/dev/null 2>&1; then |
| 6632 | as_test_x='test -x' |
| 6633 | else |
| 6634 | if ls -dL / >/dev/null 2>&1; then |
| 6635 | as_ls_L_option=L |
| 6636 | else |
| 6637 | as_ls_L_option= |
| 6638 | fi |
| 6639 | as_test_x=' |
| 6640 | eval sh -c '\'' |
| 6641 | if test -d "$1"; then |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 6642 | test -d "$1/."; |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 6643 | else |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 6644 | case $1 in #( |
| 6645 | -*)set "./$1";; |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 6646 | esac; |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 6647 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 6648 | ???[sx]*):;;*)false;;esac;fi |
| 6649 | '\'' sh |
| 6650 | ' |
| 6651 | fi |
| 6652 | as_executable_p=$as_test_x |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6653 | |
| 6654 | # Sed expression to map a string onto a valid CPP name. |
| 6655 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
| 6656 | |
| 6657 | # Sed expression to map a string onto a valid variable name. |
| 6658 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
| 6659 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6660 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6661 | exec 6>&1 |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 6662 | ## ----------------------------------- ## |
| 6663 | ## Main body of $CONFIG_STATUS script. ## |
| 6664 | ## ----------------------------------- ## |
| 6665 | _ASEOF |
| 6666 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6667 | |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 6668 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 6669 | # Save the log message, to keep $0 and so on meaningful, and to |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6670 | # report actual input values of CONFIG_FILES etc. instead of their |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 6671 | # values after options handling. |
| 6672 | ac_log=" |
Benny Prijono | 8a9b3b2 | 2010-01-14 14:46:54 +0000 | [diff] [blame] | 6673 | This file was extended by pjproject $as_me 1.x, which was |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 6674 | generated by GNU Autoconf 2.64. Invocation command line was |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6675 | |
| 6676 | CONFIG_FILES = $CONFIG_FILES |
| 6677 | CONFIG_HEADERS = $CONFIG_HEADERS |
| 6678 | CONFIG_LINKS = $CONFIG_LINKS |
| 6679 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
| 6680 | $ $0 $@ |
| 6681 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 6682 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 6683 | " |
| 6684 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6685 | _ACEOF |
| 6686 | |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 6687 | case $ac_config_files in *" |
| 6688 | "*) set x $ac_config_files; shift; ac_config_files=$*;; |
| 6689 | esac |
| 6690 | |
| 6691 | case $ac_config_headers in *" |
| 6692 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;; |
| 6693 | esac |
| 6694 | |
| 6695 | |
| 6696 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6697 | # Files that config.status was made for. |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 6698 | config_files="$ac_config_files" |
| 6699 | config_headers="$ac_config_headers" |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6700 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 6701 | _ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6702 | |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 6703 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6704 | ac_cs_usage="\ |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 6705 | \`$as_me' instantiates files and other configuration actions |
| 6706 | from templates according to the current configuration. Unless the files |
| 6707 | and actions are specified as TAGs, all are instantiated by default. |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6708 | |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 6709 | Usage: $0 [OPTION]... [TAG]... |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6710 | |
| 6711 | -h, --help print this help, then exit |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 6712 | -V, --version print version number and configuration settings, then exit |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 6713 | -q, --quiet, --silent |
| 6714 | do not print progress messages |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6715 | -d, --debug don't remove temporary files |
| 6716 | --recheck update $as_me by reconfiguring in the same conditions |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 6717 | --file=FILE[:TEMPLATE] |
| 6718 | instantiate the configuration file FILE |
| 6719 | --header=FILE[:TEMPLATE] |
| 6720 | instantiate the configuration header FILE |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6721 | |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 6722 | Configuration files: |
| 6723 | $config_files |
| 6724 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6725 | Configuration headers: |
| 6726 | $config_headers |
| 6727 | |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 6728 | Report bugs to the package provider." |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 6729 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 6730 | _ACEOF |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 6731 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6732 | ac_cs_version="\\ |
Benny Prijono | 8a9b3b2 | 2010-01-14 14:46:54 +0000 | [diff] [blame] | 6733 | pjproject config.status 1.x |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 6734 | configured by $0, generated by GNU Autoconf 2.64, |
| 6735 | with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6736 | |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 6737 | Copyright (C) 2009 Free Software Foundation, Inc. |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6738 | This config.status script is free software; the Free Software Foundation |
| 6739 | gives unlimited permission to copy, distribute and modify it." |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 6740 | |
| 6741 | ac_pwd='$ac_pwd' |
| 6742 | srcdir='$srcdir' |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 6743 | test -n "\$AWK" || AWK=awk |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6744 | _ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6745 | |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 6746 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 6747 | # The default lists apply if the user does not specify any file. |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6748 | ac_need_defaults=: |
| 6749 | while test $# != 0 |
| 6750 | do |
| 6751 | case $1 in |
| 6752 | --*=*) |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 6753 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
| 6754 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6755 | ac_shift=: |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6756 | ;; |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 6757 | *) |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6758 | ac_option=$1 |
| 6759 | ac_optarg=$2 |
| 6760 | ac_shift=shift |
| 6761 | ;; |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6762 | esac |
| 6763 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6764 | case $ac_option in |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6765 | # Handling of the options. |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6766 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6767 | ac_cs_recheck=: ;; |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 6768 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 6769 | $as_echo "$ac_cs_version"; exit ;; |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 6770 | --debug | --debu | --deb | --de | --d | -d ) |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6771 | debug=: ;; |
| 6772 | --file | --fil | --fi | --f ) |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6773 | $ac_shift |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 6774 | case $ac_optarg in |
| 6775 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 6776 | esac |
| 6777 | as_fn_append CONFIG_FILES " '$ac_optarg'" |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6778 | ac_need_defaults=false;; |
| 6779 | --header | --heade | --head | --hea ) |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6780 | $ac_shift |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 6781 | case $ac_optarg in |
| 6782 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 6783 | esac |
| 6784 | as_fn_append CONFIG_HEADERS " '$ac_optarg'" |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6785 | ac_need_defaults=false;; |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 6786 | --he | --h) |
| 6787 | # Conflict between --help and --header |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 6788 | as_fn_error "ambiguous option: \`$1' |
| 6789 | Try \`$0 --help' for more information.";; |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 6790 | --help | --hel | -h ) |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 6791 | $as_echo "$ac_cs_usage"; exit ;; |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6792 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 6793 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
| 6794 | ac_cs_silent=: ;; |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6795 | |
| 6796 | # This is an error. |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 6797 | -*) as_fn_error "unrecognized option: \`$1' |
| 6798 | Try \`$0 --help' for more information." ;; |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6799 | |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 6800 | *) as_fn_append ac_config_targets " $1" |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 6801 | ac_need_defaults=false ;; |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6802 | |
| 6803 | esac |
| 6804 | shift |
| 6805 | done |
| 6806 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6807 | ac_configure_extra_args= |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6808 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6809 | if $ac_cs_silent; then |
| 6810 | exec 6>/dev/null |
| 6811 | ac_configure_extra_args="$ac_configure_extra_args --silent" |
| 6812 | fi |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6813 | |
| 6814 | _ACEOF |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 6815 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6816 | if \$ac_cs_recheck; then |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 6817 | set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
| 6818 | shift |
| 6819 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 |
| 6820 | CONFIG_SHELL='$SHELL' |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 6821 | export CONFIG_SHELL |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 6822 | exec "\$@" |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6823 | fi |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6824 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6825 | _ACEOF |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 6826 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 6827 | exec 5>>config.log |
| 6828 | { |
| 6829 | echo |
| 6830 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
| 6831 | ## Running $as_me. ## |
| 6832 | _ASBOX |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 6833 | $as_echo "$ac_log" |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 6834 | } >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6835 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 6836 | _ACEOF |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 6837 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 6838 | _ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6839 | |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 6840 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 6841 | |
| 6842 | # Handling of arguments. |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6843 | for ac_config_target in $ac_config_targets |
| 6844 | do |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 6845 | case $ac_config_target in |
| 6846 | "pjlib/include/pj/compat/os_auto.h") CONFIG_HEADERS="$CONFIG_HEADERS pjlib/include/pj/compat/os_auto.h" ;; |
| 6847 | "pjlib/include/pj/compat/m_auto.h") CONFIG_HEADERS="$CONFIG_HEADERS pjlib/include/pj/compat/m_auto.h" ;; |
| 6848 | "pjmedia/include/pjmedia/config_auto.h") CONFIG_HEADERS="$CONFIG_HEADERS pjmedia/include/pjmedia/config_auto.h" ;; |
| 6849 | "pjmedia/include/pjmedia-codec/config_auto.h") CONFIG_HEADERS="$CONFIG_HEADERS pjmedia/include/pjmedia-codec/config_auto.h" ;; |
| 6850 | "pjsip/include/pjsip/sip_autoconf.h") CONFIG_HEADERS="$CONFIG_HEADERS pjsip/include/pjsip/sip_autoconf.h" ;; |
| 6851 | "build.mak") CONFIG_FILES="$CONFIG_FILES build.mak" ;; |
| 6852 | "build/os-auto.mak") CONFIG_FILES="$CONFIG_FILES build/os-auto.mak" ;; |
| 6853 | "pjlib/build/os-auto.mak") CONFIG_FILES="$CONFIG_FILES pjlib/build/os-auto.mak" ;; |
| 6854 | "pjlib-util/build/os-auto.mak") CONFIG_FILES="$CONFIG_FILES pjlib-util/build/os-auto.mak" ;; |
| 6855 | "pjmedia/build/os-auto.mak") CONFIG_FILES="$CONFIG_FILES pjmedia/build/os-auto.mak" ;; |
| 6856 | "pjsip/build/os-auto.mak") CONFIG_FILES="$CONFIG_FILES pjsip/build/os-auto.mak" ;; |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 6857 | "third_party/build/os-auto.mak") CONFIG_FILES="$CONFIG_FILES third_party/build/os-auto.mak" ;; |
Benny Prijono | 8a9b3b2 | 2010-01-14 14:46:54 +0000 | [diff] [blame] | 6858 | "third_party/build/portaudio/os-auto.mak") CONFIG_FILES="$CONFIG_FILES third_party/build/portaudio/os-auto.mak" ;; |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 6859 | |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 6860 | *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;; |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6861 | esac |
| 6862 | done |
| 6863 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 6864 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6865 | # If the user did not use the arguments to specify the items to instantiate, |
| 6866 | # then the envvar interface is used. Set only those that are not. |
| 6867 | # We use the long form for the default assignment because of an extremely |
| 6868 | # bizarre bug on SunOS 4.1.3. |
| 6869 | if $ac_need_defaults; then |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 6870 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6871 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
| 6872 | fi |
| 6873 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6874 | # Have a temporary directory for convenience. Make it in the build tree |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 6875 | # simply because there is no reason against having it here, and in addition, |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6876 | # creating and moving files from /tmp can sometimes cause problems. |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 6877 | # Hook for its removal unless debugging. |
| 6878 | # Note that there is a small window in which the directory will not be cleaned: |
| 6879 | # after its creation but before its name has been assigned to `$tmp'. |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6880 | $debug || |
| 6881 | { |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 6882 | tmp= |
| 6883 | trap 'exit_status=$? |
| 6884 | { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status |
| 6885 | ' 0 |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 6886 | trap 'as_fn_exit 1' 1 2 13 15 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6887 | } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6888 | # Create a (secure) tmp directory for tmp files. |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6889 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6890 | { |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 6891 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6892 | test -n "$tmp" && test -d "$tmp" |
| 6893 | } || |
| 6894 | { |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 6895 | tmp=./conf$$-$RANDOM |
| 6896 | (umask 077 && mkdir "$tmp") |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 6897 | } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6898 | |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 6899 | # Set up the scripts for CONFIG_FILES section. |
| 6900 | # No need to generate them if there are no CONFIG_FILES. |
| 6901 | # This happens for instance with `./config.status config.h'. |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 6902 | if test -n "$CONFIG_FILES"; then |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 6903 | |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 6904 | |
| 6905 | ac_cr=`echo X | tr X '\015'` |
| 6906 | # On cygwin, bash can eat \r inside `` if the user requested igncr. |
| 6907 | # But we know of no other shell where ac_cr would be empty at this |
| 6908 | # point, so we can use a bashism as a fallback. |
| 6909 | if test "x$ac_cr" = x; then |
| 6910 | eval ac_cr=\$\'\\r\' |
| 6911 | fi |
| 6912 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` |
| 6913 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then |
| 6914 | ac_cs_awk_cr='\r' |
| 6915 | else |
| 6916 | ac_cs_awk_cr=$ac_cr |
| 6917 | fi |
| 6918 | |
| 6919 | echo 'BEGIN {' >"$tmp/subs1.awk" && |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6920 | _ACEOF |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 6921 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 6922 | |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 6923 | { |
| 6924 | echo "cat >conf$$subs.awk <<_ACEOF" && |
| 6925 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && |
| 6926 | echo "_ACEOF" |
| 6927 | } >conf$$subs.sh || |
| 6928 | as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 |
| 6929 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'` |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 6930 | ac_delim='%!_!# ' |
| 6931 | for ac_last_try in false false false false false :; do |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 6932 | . ./conf$$subs.sh || |
| 6933 | as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 6934 | |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 6935 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` |
| 6936 | if test $ac_delim_n = $ac_delim_num; then |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 6937 | break |
| 6938 | elif $ac_last_try; then |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 6939 | as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 6940 | else |
| 6941 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 6942 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 6943 | done |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 6944 | rm -f conf$$subs.sh |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 6945 | |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 6946 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 6947 | cat >>"\$tmp/subs1.awk" <<\\_ACAWK && |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 6948 | _ACEOF |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 6949 | sed -n ' |
| 6950 | h |
| 6951 | s/^/S["/; s/!.*/"]=/ |
| 6952 | p |
| 6953 | g |
| 6954 | s/^[^!]*!// |
| 6955 | :repl |
| 6956 | t repl |
| 6957 | s/'"$ac_delim"'$// |
| 6958 | t delim |
| 6959 | :nl |
| 6960 | h |
| 6961 | s/\(.\{148\}\).*/\1/ |
| 6962 | t more1 |
| 6963 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ |
| 6964 | p |
| 6965 | n |
| 6966 | b repl |
| 6967 | :more1 |
| 6968 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ |
| 6969 | p |
| 6970 | g |
| 6971 | s/.\{148\}// |
| 6972 | t nl |
| 6973 | :delim |
| 6974 | h |
| 6975 | s/\(.\{148\}\).*/\1/ |
| 6976 | t more2 |
| 6977 | s/["\\]/\\&/g; s/^/"/; s/$/"/ |
| 6978 | p |
| 6979 | b |
| 6980 | :more2 |
| 6981 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ |
| 6982 | p |
| 6983 | g |
| 6984 | s/.\{148\}// |
| 6985 | t delim |
| 6986 | ' <conf$$subs.awk | sed ' |
| 6987 | /^[^""]/{ |
| 6988 | N |
| 6989 | s/\n// |
| 6990 | } |
| 6991 | ' >>$CONFIG_STATUS || ac_write_fail=1 |
| 6992 | rm -f conf$$subs.awk |
| 6993 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 6994 | _ACAWK |
| 6995 | cat >>"\$tmp/subs1.awk" <<_ACAWK && |
| 6996 | for (key in S) S_is_set[key] = 1 |
| 6997 | FS = "" |
Benny Prijono | 46bd084 | 2010-02-12 14:12:41 +0000 | [diff] [blame] | 6998 | |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 6999 | } |
| 7000 | { |
| 7001 | line = $ 0 |
| 7002 | nfields = split(line, field, "@") |
| 7003 | substed = 0 |
| 7004 | len = length(field[1]) |
| 7005 | for (i = 2; i < nfields; i++) { |
| 7006 | key = field[i] |
| 7007 | keylen = length(key) |
| 7008 | if (S_is_set[key]) { |
| 7009 | value = S[key] |
| 7010 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) |
| 7011 | len += length(value) + length(field[++i]) |
| 7012 | substed = 1 |
| 7013 | } else |
| 7014 | len += 1 + keylen |
| 7015 | } |
| 7016 | |
| 7017 | print line |
| 7018 | } |
| 7019 | |
| 7020 | _ACAWK |
| 7021 | _ACEOF |
| 7022 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 7023 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then |
| 7024 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" |
| 7025 | else |
| 7026 | cat |
| 7027 | fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ |
| 7028 | || as_fn_error "could not setup config files machinery" "$LINENO" 5 |
| 7029 | _ACEOF |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7030 | |
| 7031 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
| 7032 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and |
| 7033 | # trailing colons and then remove the whole line if VPATH becomes empty |
| 7034 | # (actually we leave an empty line to preserve line numbers). |
| 7035 | if test "x$srcdir" = x.; then |
| 7036 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
| 7037 | s/:*\$(srcdir):*/:/ |
| 7038 | s/:*\${srcdir}:*/:/ |
| 7039 | s/:*@srcdir@:*/:/ |
| 7040 | s/^\([^=]*=[ ]*\):*/\1/ |
| 7041 | s/:*$// |
| 7042 | s/^[^=]*=[ ]*$// |
| 7043 | }' |
| 7044 | fi |
| 7045 | |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 7046 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 7047 | fi # test -n "$CONFIG_FILES" |
| 7048 | |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 7049 | # Set up the scripts for CONFIG_HEADERS section. |
| 7050 | # No need to generate them if there are no CONFIG_HEADERS. |
| 7051 | # This happens for instance with `./config.status Makefile'. |
| 7052 | if test -n "$CONFIG_HEADERS"; then |
| 7053 | cat >"$tmp/defines.awk" <<\_ACAWK || |
| 7054 | BEGIN { |
| 7055 | _ACEOF |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7056 | |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 7057 | # Transform confdefs.h into an awk script `defines.awk', embedded as |
| 7058 | # here-document in config.status, that substitutes the proper values into |
| 7059 | # config.h.in to produce config.h. |
| 7060 | |
| 7061 | # Create a delimiter string that does not exist in confdefs.h, to ease |
| 7062 | # handling of long lines. |
| 7063 | ac_delim='%!_!# ' |
| 7064 | for ac_last_try in false false :; do |
| 7065 | ac_t=`sed -n "/$ac_delim/p" confdefs.h` |
| 7066 | if test -z "$ac_t"; then |
| 7067 | break |
| 7068 | elif $ac_last_try; then |
| 7069 | as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5 |
| 7070 | else |
| 7071 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
| 7072 | fi |
| 7073 | done |
| 7074 | |
| 7075 | # For the awk script, D is an array of macro values keyed by name, |
| 7076 | # likewise P contains macro parameters if any. Preserve backslash |
| 7077 | # newline sequences. |
| 7078 | |
| 7079 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* |
| 7080 | sed -n ' |
| 7081 | s/.\{148\}/&'"$ac_delim"'/g |
| 7082 | t rset |
| 7083 | :rset |
| 7084 | s/^[ ]*#[ ]*define[ ][ ]*/ / |
| 7085 | t def |
| 7086 | d |
| 7087 | :def |
| 7088 | s/\\$// |
| 7089 | t bsnl |
| 7090 | s/["\\]/\\&/g |
| 7091 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ |
| 7092 | D["\1"]=" \3"/p |
| 7093 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p |
| 7094 | d |
| 7095 | :bsnl |
| 7096 | s/["\\]/\\&/g |
| 7097 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ |
| 7098 | D["\1"]=" \3\\\\\\n"\\/p |
| 7099 | t cont |
| 7100 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p |
| 7101 | t cont |
| 7102 | d |
| 7103 | :cont |
| 7104 | n |
| 7105 | s/.\{148\}/&'"$ac_delim"'/g |
| 7106 | t clear |
| 7107 | :clear |
| 7108 | s/\\$// |
| 7109 | t bsnlc |
| 7110 | s/["\\]/\\&/g; s/^/"/; s/$/"/p |
| 7111 | d |
| 7112 | :bsnlc |
| 7113 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p |
| 7114 | b cont |
| 7115 | ' <confdefs.h | sed ' |
| 7116 | s/'"$ac_delim"'/"\\\ |
| 7117 | "/g' >>$CONFIG_STATUS || ac_write_fail=1 |
| 7118 | |
| 7119 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 7120 | for (key in D) D_is_set[key] = 1 |
| 7121 | FS = "" |
| 7122 | } |
| 7123 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { |
| 7124 | line = \$ 0 |
| 7125 | split(line, arg, " ") |
| 7126 | if (arg[1] == "#") { |
| 7127 | defundef = arg[2] |
| 7128 | mac1 = arg[3] |
| 7129 | } else { |
| 7130 | defundef = substr(arg[1], 2) |
| 7131 | mac1 = arg[2] |
| 7132 | } |
| 7133 | split(mac1, mac2, "(") #) |
| 7134 | macro = mac2[1] |
| 7135 | prefix = substr(line, 1, index(line, defundef) - 1) |
| 7136 | if (D_is_set[macro]) { |
| 7137 | # Preserve the white space surrounding the "#". |
| 7138 | print prefix "define", macro P[macro] D[macro] |
| 7139 | next |
| 7140 | } else { |
| 7141 | # Replace #undef with comments. This is necessary, for example, |
| 7142 | # in the case of _POSIX_SOURCE, which is predefined and required |
| 7143 | # on some systems where configure will not decide to define it. |
| 7144 | if (defundef == "undef") { |
| 7145 | print "/*", prefix defundef, macro, "*/" |
| 7146 | next |
| 7147 | } |
| 7148 | } |
| 7149 | } |
| 7150 | { print } |
| 7151 | _ACAWK |
| 7152 | _ACEOF |
| 7153 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 7154 | as_fn_error "could not setup config headers machinery" "$LINENO" 5 |
| 7155 | fi # test -n "$CONFIG_HEADERS" |
| 7156 | |
| 7157 | |
| 7158 | eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS " |
| 7159 | shift |
| 7160 | for ac_tag |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7161 | do |
| 7162 | case $ac_tag in |
| 7163 | :[FHLC]) ac_mode=$ac_tag; continue;; |
| 7164 | esac |
| 7165 | case $ac_mode$ac_tag in |
| 7166 | :[FHL]*:*);; |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 7167 | :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;; |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7168 | :[FH]-) ac_tag=-:-;; |
| 7169 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; |
| 7170 | esac |
| 7171 | ac_save_IFS=$IFS |
| 7172 | IFS=: |
| 7173 | set x $ac_tag |
| 7174 | IFS=$ac_save_IFS |
| 7175 | shift |
| 7176 | ac_file=$1 |
| 7177 | shift |
| 7178 | |
| 7179 | case $ac_mode in |
| 7180 | :L) ac_source=$1;; |
| 7181 | :[FH]) |
| 7182 | ac_file_inputs= |
| 7183 | for ac_f |
| 7184 | do |
| 7185 | case $ac_f in |
| 7186 | -) ac_f="$tmp/stdin";; |
| 7187 | *) # Look for the file first in the build tree, then in the source tree |
| 7188 | # (if the path is not absolute). The absolute path cannot be DOS-style, |
| 7189 | # because $ac_f cannot contain `:'. |
| 7190 | test -f "$ac_f" || |
| 7191 | case $ac_f in |
| 7192 | [\\/$]*) false;; |
| 7193 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; |
| 7194 | esac || |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 7195 | as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;; |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7196 | esac |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 7197 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac |
| 7198 | as_fn_append ac_file_inputs " '$ac_f'" |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7199 | done |
| 7200 | |
| 7201 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
| 7202 | # use $as_me), people would be surprised to read: |
| 7203 | # /* config.h. Generated by config.status. */ |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 7204 | configure_input='Generated from '` |
| 7205 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' |
| 7206 | `' by configure.' |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7207 | if test x"$ac_file" != x-; then |
| 7208 | configure_input="$ac_file. $configure_input" |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 7209 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 |
| 7210 | $as_echo "$as_me: creating $ac_file" >&6;} |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7211 | fi |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 7212 | # Neutralize special characters interpreted by sed in replacement strings. |
| 7213 | case $configure_input in #( |
| 7214 | *\&* | *\|* | *\\* ) |
| 7215 | ac_sed_conf_input=`$as_echo "$configure_input" | |
| 7216 | sed 's/[\\\\&|]/\\\\&/g'`;; #( |
| 7217 | *) ac_sed_conf_input=$configure_input;; |
| 7218 | esac |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7219 | |
| 7220 | case $ac_tag in |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 7221 | *:-:* | *:-) cat >"$tmp/stdin" \ |
| 7222 | || as_fn_error "could not create $ac_file" "$LINENO" 5 ;; |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7223 | esac |
| 7224 | ;; |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 7225 | esac |
| 7226 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7227 | ac_dir=`$as_dirname -- "$ac_file" || |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7228 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 7229 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 7230 | X"$ac_file" : 'X\(//\)$' \| \ |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7231 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 7232 | $as_echo X"$ac_file" | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7233 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 7234 | s//\1/ |
| 7235 | q |
| 7236 | } |
| 7237 | /^X\(\/\/\)[^/].*/{ |
| 7238 | s//\1/ |
| 7239 | q |
| 7240 | } |
| 7241 | /^X\(\/\/\)$/{ |
| 7242 | s//\1/ |
| 7243 | q |
| 7244 | } |
| 7245 | /^X\(\/\).*/{ |
| 7246 | s//\1/ |
| 7247 | q |
| 7248 | } |
| 7249 | s/.*/./; q'` |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 7250 | as_dir="$ac_dir"; as_fn_mkdir_p |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7251 | ac_builddir=. |
| 7252 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7253 | case "$ac_dir" in |
| 7254 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 7255 | *) |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 7256 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7257 | # A ".." for each directory in $ac_dir_suffix. |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 7258 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7259 | case $ac_top_builddir_sub in |
| 7260 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 7261 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 7262 | esac ;; |
| 7263 | esac |
| 7264 | ac_abs_top_builddir=$ac_pwd |
| 7265 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 7266 | # for backward compatibility: |
| 7267 | ac_top_builddir=$ac_top_build_prefix |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7268 | |
| 7269 | case $srcdir in |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7270 | .) # We are building in place. |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7271 | ac_srcdir=. |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7272 | ac_top_srcdir=$ac_top_builddir_sub |
| 7273 | ac_abs_top_srcdir=$ac_pwd ;; |
| 7274 | [\\/]* | ?:[\\/]* ) # Absolute name. |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7275 | ac_srcdir=$srcdir$ac_dir_suffix; |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7276 | ac_top_srcdir=$srcdir |
| 7277 | ac_abs_top_srcdir=$srcdir ;; |
| 7278 | *) # Relative name. |
| 7279 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 7280 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 7281 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7282 | esac |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7283 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
Benny Prijono | 9489e7a | 2008-09-19 22:18:50 +0000 | [diff] [blame] | 7284 | |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 7285 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7286 | case $ac_mode in |
| 7287 | :F) |
| 7288 | # |
| 7289 | # CONFIG_FILE |
| 7290 | # |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 7291 | |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 7292 | _ACEOF |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7293 | |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 7294 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7295 | # If the template does not know about datarootdir, expand it. |
| 7296 | # FIXME: This hack should be removed a few years after 2.60. |
| 7297 | ac_datarootdir_hack=; ac_datarootdir_seen= |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 7298 | ac_sed_dataroot=' |
| 7299 | /datarootdir/ { |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7300 | p |
| 7301 | q |
| 7302 | } |
| 7303 | /@datadir@/p |
| 7304 | /@docdir@/p |
| 7305 | /@infodir@/p |
| 7306 | /@localedir@/p |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 7307 | /@mandir@/p' |
| 7308 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7309 | *datarootdir*) ac_datarootdir_seen=yes;; |
| 7310 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 7311 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 |
| 7312 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7313 | _ACEOF |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 7314 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7315 | ac_datarootdir_hack=' |
| 7316 | s&@datadir@&$datadir&g |
| 7317 | s&@docdir@&$docdir&g |
| 7318 | s&@infodir@&$infodir&g |
| 7319 | s&@localedir@&$localedir&g |
| 7320 | s&@mandir@&$mandir&g |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 7321 | s&\\\${datarootdir}&$datarootdir&g' ;; |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7322 | esac |
| 7323 | _ACEOF |
| 7324 | |
| 7325 | # Neutralize VPATH when `$srcdir' = `.'. |
| 7326 | # Shell code in configure.ac might set extrasub. |
| 7327 | # FIXME: do we really want to maintain this feature? |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 7328 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 7329 | ac_sed_extra="$ac_vpsub |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 7330 | $extrasub |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7331 | _ACEOF |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 7332 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 7333 | :t |
| 7334 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 7335 | s|@configure_input@|$ac_sed_conf_input|;t t |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7336 | s&@top_builddir@&$ac_top_builddir_sub&;t t |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 7337 | s&@top_build_prefix@&$ac_top_build_prefix&;t t |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7338 | s&@srcdir@&$ac_srcdir&;t t |
| 7339 | s&@abs_srcdir@&$ac_abs_srcdir&;t t |
| 7340 | s&@top_srcdir@&$ac_top_srcdir&;t t |
| 7341 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t |
| 7342 | s&@builddir@&$ac_builddir&;t t |
| 7343 | s&@abs_builddir@&$ac_abs_builddir&;t t |
| 7344 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t |
| 7345 | $ac_datarootdir_hack |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 7346 | " |
| 7347 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \ |
| 7348 | || as_fn_error "could not create $ac_file" "$LINENO" 5 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 7349 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7350 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && |
| 7351 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && |
| 7352 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 7353 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7354 | which seems to be undefined. Please make sure it is defined." >&5 |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 7355 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7356 | which seems to be undefined. Please make sure it is defined." >&2;} |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7357 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7358 | rm -f "$tmp/stdin" |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7359 | case $ac_file in |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 7360 | -) cat "$tmp/out" && rm -f "$tmp/out";; |
| 7361 | *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; |
| 7362 | esac \ |
| 7363 | || as_fn_error "could not create $ac_file" "$LINENO" 5 |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7364 | ;; |
| 7365 | :H) |
| 7366 | # |
| 7367 | # CONFIG_HEADER |
| 7368 | # |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7369 | if test x"$ac_file" != x-; then |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 7370 | { |
| 7371 | $as_echo "/* $configure_input */" \ |
| 7372 | && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" |
| 7373 | } >"$tmp/config.h" \ |
| 7374 | || as_fn_error "could not create $ac_file" "$LINENO" 5 |
| 7375 | if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then |
| 7376 | { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 |
| 7377 | $as_echo "$as_me: $ac_file is unchanged" >&6;} |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7378 | else |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 7379 | rm -f "$ac_file" |
| 7380 | mv "$tmp/config.h" "$ac_file" \ |
| 7381 | || as_fn_error "could not create $ac_file" "$LINENO" 5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7382 | fi |
| 7383 | else |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 7384 | $as_echo "/* $configure_input */" \ |
| 7385 | && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \ |
| 7386 | || as_fn_error "could not create -" "$LINENO" 5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7387 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7388 | ;; |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7389 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7390 | |
| 7391 | esac |
| 7392 | |
| 7393 | done # for ac_tag |
| 7394 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7395 | |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 7396 | as_fn_exit 0 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7397 | _ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7398 | ac_clean_files=$ac_clean_files_save |
| 7399 | |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 7400 | test $ac_write_fail = 0 || |
| 7401 | as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5 |
| 7402 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7403 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7404 | # configure is writing to config.log, and then calls config.status. |
| 7405 | # config.status does its own redirection, appending to config.log. |
| 7406 | # Unfortunately, on DOS this fails, as config.log is still kept open |
| 7407 | # by configure, so config.status won't be able to write to it; its |
| 7408 | # output is simply discarded. So we exec the FD to /dev/null, |
| 7409 | # effectively closing config.log, so it can be properly (re)opened and |
| 7410 | # appended to by config.status. When coming back to configure, we |
| 7411 | # need to make the FD available again. |
| 7412 | if test "$no_create" != yes; then |
| 7413 | ac_cs_success=: |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7414 | ac_config_status_args= |
| 7415 | test "$silent" = yes && |
| 7416 | ac_config_status_args="$ac_config_status_args --quiet" |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7417 | exec 5>/dev/null |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7418 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7419 | exec 5>>config.log |
| 7420 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
| 7421 | # would make configure fail if this is the last instruction. |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 7422 | $ac_cs_success || as_fn_exit $? |
| 7423 | fi |
| 7424 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then |
| 7425 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 |
| 7426 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} |
Benny Prijono | d523370 | 2010-01-13 13:09:45 +0000 | [diff] [blame] | 7427 | fi |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7428 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7429 | |
Benny Prijono | d962784 | 2007-04-18 09:24:31 +0000 | [diff] [blame] | 7430 | |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 7431 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: |
Benny Prijono | d962784 | 2007-04-18 09:24:31 +0000 | [diff] [blame] | 7432 | |
Benny Prijono | c16c6e3 | 2007-11-18 14:53:47 +0000 | [diff] [blame] | 7433 | 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] | 7434 | |
Benny Prijono | c16c6e3 | 2007-11-18 14:53:47 +0000 | [diff] [blame] | 7435 | Further customizations can be put in: |
Benny Prijono | d962784 | 2007-04-18 09:24:31 +0000 | [diff] [blame] | 7436 | - 'user.mak' |
| 7437 | - 'pjlib/include/pj/config_site.h' |
| 7438 | |
| 7439 | The next step now is to run 'make dep' and 'make'. |
| 7440 | " >&5 |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 7441 | $as_echo " |
Benny Prijono | d962784 | 2007-04-18 09:24:31 +0000 | [diff] [blame] | 7442 | |
Benny Prijono | c16c6e3 | 2007-11-18 14:53:47 +0000 | [diff] [blame] | 7443 | 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] | 7444 | |
Benny Prijono | c16c6e3 | 2007-11-18 14:53:47 +0000 | [diff] [blame] | 7445 | Further customizations can be put in: |
Benny Prijono | d962784 | 2007-04-18 09:24:31 +0000 | [diff] [blame] | 7446 | - 'user.mak' |
| 7447 | - 'pjlib/include/pj/config_site.h' |
| 7448 | |
| 7449 | The next step now is to run 'make dep' and 'make'. |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7450 | " >&6; } |
Benny Prijono | d962784 | 2007-04-18 09:24:31 +0000 | [diff] [blame] | 7451 | |