Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 1 | #! /bin/sh |
| 2 | # Guess values for system-dependent variables and create Makefiles. |
Saúl Ibarra Corretgé | ff3d042 | 2014-10-01 11:24:15 +0200 | [diff] [blame^] | 3 | # Generated by GNU Autoconf 2.69 for libsrtp 1.4.5. |
| 4 | # |
| 5 | # Report bugs to <https://github.com/cisco/libsrtp/issues>. |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 6 | # |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 7 | # |
| 8 | # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. |
| 9 | # |
| 10 | # |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 11 | # This configure script is free software; the Free Software Foundation |
| 12 | # gives unlimited permission to copy, distribute and modify it. |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 13 | ## -------------------- ## |
| 14 | ## M4sh Initialization. ## |
| 15 | ## -------------------- ## |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 16 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 17 | # Be more Bourne compatible |
| 18 | DUALCASE=1; export DUALCASE # for MKS sh |
| 19 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 20 | emulate sh |
| 21 | NULLCMD=: |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 22 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 23 | # is contrary to our usage. Disable this feature. |
| 24 | alias -g '${1+"$@"}'='"$@"' |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 25 | setopt NO_GLOB_SUBST |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 26 | else |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 27 | case `(set -o) 2>/dev/null` in #( |
| 28 | *posix*) : |
| 29 | set -o posix ;; #( |
| 30 | *) : |
| 31 | ;; |
| 32 | esac |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 33 | fi |
| 34 | |
| 35 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 36 | as_nl=' |
| 37 | ' |
| 38 | export as_nl |
| 39 | # Printing a long string crashes Solaris 7 /usr/bin/printf. |
| 40 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
| 41 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo |
| 42 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo |
| 43 | # Prefer a ksh shell builtin over an external printf program on Solaris, |
| 44 | # but without wasting forks for bash or zsh. |
| 45 | if test -z "$BASH_VERSION$ZSH_VERSION" \ |
| 46 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then |
| 47 | as_echo='print -r --' |
| 48 | as_echo_n='print -rn --' |
| 49 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then |
| 50 | as_echo='printf %s\n' |
| 51 | as_echo_n='printf %s' |
| 52 | else |
| 53 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then |
| 54 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' |
| 55 | as_echo_n='/usr/ucb/echo -n' |
| 56 | else |
| 57 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
| 58 | as_echo_n_body='eval |
| 59 | arg=$1; |
| 60 | case $arg in #( |
| 61 | *"$as_nl"*) |
| 62 | expr "X$arg" : "X\\(.*\\)$as_nl"; |
| 63 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; |
| 64 | esac; |
| 65 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" |
| 66 | ' |
| 67 | export as_echo_n_body |
| 68 | as_echo_n='sh -c $as_echo_n_body as_echo' |
| 69 | fi |
| 70 | export as_echo_body |
| 71 | as_echo='sh -c $as_echo_body as_echo' |
| 72 | fi |
| 73 | |
| 74 | # The user is always right. |
| 75 | if test "${PATH_SEPARATOR+set}" != set; then |
| 76 | PATH_SEPARATOR=: |
| 77 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { |
| 78 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || |
| 79 | PATH_SEPARATOR=';' |
| 80 | } |
| 81 | fi |
| 82 | |
| 83 | |
| 84 | # IFS |
| 85 | # We need space, tab and new line, in precisely that order. Quoting is |
| 86 | # there to prevent editors from complaining about space-tab. |
| 87 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
| 88 | # splitting by setting IFS to empty value.) |
| 89 | IFS=" "" $as_nl" |
| 90 | |
| 91 | # Find who we are. Look in the path if we contain no directory separator. |
| 92 | as_myself= |
| 93 | case $0 in #(( |
| 94 | *[\\/]* ) as_myself=$0 ;; |
| 95 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 96 | for as_dir in $PATH |
| 97 | do |
| 98 | IFS=$as_save_IFS |
| 99 | test -z "$as_dir" && as_dir=. |
| 100 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 101 | done |
| 102 | IFS=$as_save_IFS |
| 103 | |
| 104 | ;; |
| 105 | esac |
| 106 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 107 | # in which case we are not to be found in the path. |
| 108 | if test "x$as_myself" = x; then |
| 109 | as_myself=$0 |
| 110 | fi |
| 111 | if test ! -f "$as_myself"; then |
| 112 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
| 113 | exit 1 |
| 114 | fi |
| 115 | |
| 116 | # Unset variables that we do not need and which cause bugs (e.g. in |
| 117 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" |
| 118 | # suppresses any "Segmentation fault" message there. '((' could |
| 119 | # trigger a bug in pdksh 5.2.14. |
| 120 | for as_var in BASH_ENV ENV MAIL MAILPATH |
| 121 | do eval test x\${$as_var+set} = xset \ |
| 122 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : |
| 123 | done |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 124 | PS1='$ ' |
| 125 | PS2='> ' |
| 126 | PS4='+ ' |
| 127 | |
| 128 | # NLS nuisances. |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 129 | LC_ALL=C |
| 130 | export LC_ALL |
| 131 | LANGUAGE=C |
| 132 | export LANGUAGE |
jfigus | a14b5a0 | 2013-03-29 12:24:12 -0400 | [diff] [blame] | 133 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 134 | # CDPATH. |
| 135 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
| 136 | |
| 137 | # Use a proper internal environment variable to ensure we don't fall |
| 138 | # into an infinite loop, continuously re-executing ourselves. |
| 139 | if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then |
| 140 | _as_can_reexec=no; export _as_can_reexec; |
| 141 | # We cannot yet assume a decent shell, so we have to provide a |
| 142 | # neutralization value for shells without unset; and this also |
| 143 | # works around shells that cannot unset nonexistent variables. |
| 144 | # Preserve -v and -x to the replacement shell. |
| 145 | BASH_ENV=/dev/null |
| 146 | ENV=/dev/null |
| 147 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV |
| 148 | case $- in # (((( |
| 149 | *v*x* | *x*v* ) as_opts=-vx ;; |
| 150 | *v* ) as_opts=-v ;; |
| 151 | *x* ) as_opts=-x ;; |
| 152 | * ) as_opts= ;; |
| 153 | esac |
| 154 | exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} |
| 155 | # Admittedly, this is quite paranoid, since all the known shells bail |
| 156 | # out after a failed `exec'. |
| 157 | $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 |
| 158 | as_fn_exit 255 |
| 159 | fi |
| 160 | # We don't want this to propagate to other subprocesses. |
| 161 | { _as_can_reexec=; unset _as_can_reexec;} |
| 162 | if test "x$CONFIG_SHELL" = x; then |
| 163 | as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : |
| 164 | emulate sh |
| 165 | NULLCMD=: |
| 166 | # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which |
| 167 | # is contrary to our usage. Disable this feature. |
| 168 | alias -g '\${1+\"\$@\"}'='\"\$@\"' |
| 169 | setopt NO_GLOB_SUBST |
| 170 | else |
| 171 | case \`(set -o) 2>/dev/null\` in #( |
| 172 | *posix*) : |
| 173 | set -o posix ;; #( |
| 174 | *) : |
| 175 | ;; |
| 176 | esac |
| 177 | fi |
| 178 | " |
| 179 | as_required="as_fn_return () { (exit \$1); } |
| 180 | as_fn_success () { as_fn_return 0; } |
| 181 | as_fn_failure () { as_fn_return 1; } |
| 182 | as_fn_ret_success () { return 0; } |
| 183 | as_fn_ret_failure () { return 1; } |
| 184 | |
| 185 | exitcode=0 |
| 186 | as_fn_success || { exitcode=1; echo as_fn_success failed.; } |
| 187 | as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } |
| 188 | as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } |
| 189 | as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } |
| 190 | if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : |
| 191 | |
| 192 | else |
| 193 | exitcode=1; echo positional parameters were not saved. |
| 194 | fi |
| 195 | test x\$exitcode = x0 || exit 1 |
| 196 | test -x / || exit 1" |
| 197 | as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO |
| 198 | as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO |
| 199 | eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && |
| 200 | test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 |
| 201 | test \$(( 1 + 1 )) = 2 || exit 1" |
| 202 | if (eval "$as_required") 2>/dev/null; then : |
| 203 | as_have_required=yes |
| 204 | else |
| 205 | as_have_required=no |
| 206 | fi |
| 207 | if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : |
| 208 | |
| 209 | else |
| 210 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 211 | as_found=false |
| 212 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
| 213 | do |
| 214 | IFS=$as_save_IFS |
| 215 | test -z "$as_dir" && as_dir=. |
| 216 | as_found=: |
| 217 | case $as_dir in #( |
| 218 | /*) |
| 219 | for as_base in sh bash ksh sh5; do |
| 220 | # Try only shells that exist, to save several forks. |
| 221 | as_shell=$as_dir/$as_base |
| 222 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && |
| 223 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : |
| 224 | CONFIG_SHELL=$as_shell as_have_required=yes |
| 225 | if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : |
| 226 | break 2 |
| 227 | fi |
| 228 | fi |
| 229 | done;; |
| 230 | esac |
| 231 | as_found=false |
| 232 | done |
| 233 | $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && |
| 234 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : |
| 235 | CONFIG_SHELL=$SHELL as_have_required=yes |
| 236 | fi; } |
| 237 | IFS=$as_save_IFS |
| 238 | |
| 239 | |
| 240 | if test "x$CONFIG_SHELL" != x; then : |
| 241 | export CONFIG_SHELL |
| 242 | # We cannot yet assume a decent shell, so we have to provide a |
| 243 | # neutralization value for shells without unset; and this also |
| 244 | # works around shells that cannot unset nonexistent variables. |
| 245 | # Preserve -v and -x to the replacement shell. |
| 246 | BASH_ENV=/dev/null |
| 247 | ENV=/dev/null |
| 248 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV |
| 249 | case $- in # (((( |
| 250 | *v*x* | *x*v* ) as_opts=-vx ;; |
| 251 | *v* ) as_opts=-v ;; |
| 252 | *x* ) as_opts=-x ;; |
| 253 | * ) as_opts= ;; |
| 254 | esac |
| 255 | exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} |
| 256 | # Admittedly, this is quite paranoid, since all the known shells bail |
| 257 | # out after a failed `exec'. |
| 258 | $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 |
| 259 | exit 255 |
| 260 | fi |
| 261 | |
| 262 | if test x$as_have_required = xno; then : |
| 263 | $as_echo "$0: This script requires a shell more modern than all" |
| 264 | $as_echo "$0: the shells that I found on your system." |
| 265 | if test x${ZSH_VERSION+set} = xset ; then |
| 266 | $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" |
| 267 | $as_echo "$0: be upgraded to zsh 4.3.4 or later." |
| 268 | else |
Saúl Ibarra Corretgé | ff3d042 | 2014-10-01 11:24:15 +0200 | [diff] [blame^] | 269 | $as_echo "$0: Please tell bug-autoconf@gnu.org and |
| 270 | $0: https://github.com/cisco/libsrtp/issues about your |
| 271 | $0: system, including any error possibly output before this |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 272 | $0: message. Then install a modern shell, or manually run |
| 273 | $0: the script under such a shell if you do have one." |
| 274 | fi |
| 275 | exit 1 |
| 276 | fi |
| 277 | fi |
| 278 | fi |
| 279 | SHELL=${CONFIG_SHELL-/bin/sh} |
| 280 | export SHELL |
| 281 | # Unset more variables known to interfere with behavior of common tools. |
| 282 | CLICOLOR_FORCE= GREP_OPTIONS= |
| 283 | unset CLICOLOR_FORCE GREP_OPTIONS |
| 284 | |
| 285 | ## --------------------- ## |
| 286 | ## M4sh Shell Functions. ## |
| 287 | ## --------------------- ## |
| 288 | # as_fn_unset VAR |
| 289 | # --------------- |
| 290 | # Portably unset VAR. |
| 291 | as_fn_unset () |
| 292 | { |
| 293 | { eval $1=; unset $1;} |
| 294 | } |
| 295 | as_unset=as_fn_unset |
| 296 | |
| 297 | # as_fn_set_status STATUS |
| 298 | # ----------------------- |
| 299 | # Set $? to STATUS, without forking. |
| 300 | as_fn_set_status () |
| 301 | { |
| 302 | return $1 |
| 303 | } # as_fn_set_status |
| 304 | |
| 305 | # as_fn_exit STATUS |
| 306 | # ----------------- |
| 307 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. |
| 308 | as_fn_exit () |
| 309 | { |
| 310 | set +e |
| 311 | as_fn_set_status $1 |
| 312 | exit $1 |
| 313 | } # as_fn_exit |
| 314 | |
| 315 | # as_fn_mkdir_p |
| 316 | # ------------- |
| 317 | # Create "$as_dir" as a directory, including parents if necessary. |
| 318 | as_fn_mkdir_p () |
| 319 | { |
| 320 | |
| 321 | case $as_dir in #( |
| 322 | -*) as_dir=./$as_dir;; |
| 323 | esac |
| 324 | test -d "$as_dir" || eval $as_mkdir_p || { |
| 325 | as_dirs= |
| 326 | while :; do |
| 327 | case $as_dir in #( |
| 328 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
| 329 | *) as_qdir=$as_dir;; |
| 330 | esac |
| 331 | as_dirs="'$as_qdir' $as_dirs" |
| 332 | as_dir=`$as_dirname -- "$as_dir" || |
| 333 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 334 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 335 | X"$as_dir" : 'X\(//\)$' \| \ |
| 336 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
| 337 | $as_echo X"$as_dir" | |
| 338 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 339 | s//\1/ |
| 340 | q |
| 341 | } |
| 342 | /^X\(\/\/\)[^/].*/{ |
| 343 | s//\1/ |
| 344 | q |
| 345 | } |
| 346 | /^X\(\/\/\)$/{ |
| 347 | s//\1/ |
| 348 | q |
| 349 | } |
| 350 | /^X\(\/\).*/{ |
| 351 | s//\1/ |
| 352 | q |
| 353 | } |
| 354 | s/.*/./; q'` |
| 355 | test -d "$as_dir" && break |
| 356 | done |
| 357 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
| 358 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
| 359 | |
| 360 | |
| 361 | } # as_fn_mkdir_p |
| 362 | |
| 363 | # as_fn_executable_p FILE |
| 364 | # ----------------------- |
| 365 | # Test if FILE is an executable regular file. |
| 366 | as_fn_executable_p () |
| 367 | { |
| 368 | test -f "$1" && test -x "$1" |
| 369 | } # as_fn_executable_p |
| 370 | # as_fn_append VAR VALUE |
| 371 | # ---------------------- |
| 372 | # Append the text in VALUE to the end of the definition contained in VAR. Take |
| 373 | # advantage of any shell optimizations that allow amortized linear growth over |
| 374 | # repeated appends, instead of the typical quadratic growth present in naive |
| 375 | # implementations. |
| 376 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : |
| 377 | eval 'as_fn_append () |
| 378 | { |
| 379 | eval $1+=\$2 |
| 380 | }' |
| 381 | else |
| 382 | as_fn_append () |
| 383 | { |
| 384 | eval $1=\$$1\$2 |
| 385 | } |
| 386 | fi # as_fn_append |
| 387 | |
| 388 | # as_fn_arith ARG... |
| 389 | # ------------------ |
| 390 | # Perform arithmetic evaluation on the ARGs, and store the result in the |
| 391 | # global $as_val. Take advantage of shells that can avoid forks. The arguments |
| 392 | # must be portable across $(()) and expr. |
| 393 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : |
| 394 | eval 'as_fn_arith () |
| 395 | { |
| 396 | as_val=$(( $* )) |
| 397 | }' |
| 398 | else |
| 399 | as_fn_arith () |
| 400 | { |
| 401 | as_val=`expr "$@" || test $? -eq 1` |
| 402 | } |
| 403 | fi # as_fn_arith |
| 404 | |
| 405 | |
| 406 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
| 407 | # ---------------------------------------- |
| 408 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
| 409 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the |
| 410 | # script with STATUS, using 1 if that was 0. |
| 411 | as_fn_error () |
| 412 | { |
| 413 | as_status=$1; test $as_status -eq 0 && as_status=1 |
| 414 | if test "$4"; then |
| 415 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 416 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 |
| 417 | fi |
| 418 | $as_echo "$as_me: error: $2" >&2 |
| 419 | as_fn_exit $as_status |
| 420 | } # as_fn_error |
| 421 | |
| 422 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 423 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 424 | as_expr=expr |
| 425 | else |
| 426 | as_expr=false |
| 427 | fi |
| 428 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 429 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 430 | as_basename=basename |
| 431 | else |
| 432 | as_basename=false |
| 433 | fi |
| 434 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 435 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
| 436 | as_dirname=dirname |
| 437 | else |
| 438 | as_dirname=false |
| 439 | fi |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 440 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 441 | as_me=`$as_basename -- "$0" || |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 442 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 443 | X"$0" : 'X\(//\)$' \| \ |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 444 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
| 445 | $as_echo X/"$0" | |
| 446 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
| 447 | s//\1/ |
| 448 | q |
| 449 | } |
| 450 | /^X\/\(\/\/\)$/{ |
| 451 | s//\1/ |
| 452 | q |
| 453 | } |
| 454 | /^X\/\(\/\).*/{ |
| 455 | s//\1/ |
| 456 | q |
| 457 | } |
| 458 | s/.*/./; q'` |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 459 | |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 460 | # Avoid depending upon Character Ranges. |
| 461 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 462 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 463 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 464 | as_cr_digits='0123456789' |
| 465 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
| 466 | |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 467 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 468 | as_lineno_1=$LINENO as_lineno_1a=$LINENO |
| 469 | as_lineno_2=$LINENO as_lineno_2a=$LINENO |
| 470 | eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && |
| 471 | test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { |
| 472 | # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) |
| 473 | sed -n ' |
| 474 | p |
| 475 | /[$]LINENO/= |
| 476 | ' <$as_myself | |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 477 | sed ' |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 478 | s/[$]LINENO.*/&-/ |
| 479 | t lineno |
| 480 | b |
| 481 | :lineno |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 482 | N |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 483 | :loop |
| 484 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 485 | t loop |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 486 | s/-\n.*// |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 487 | ' >$as_me.lineno && |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 488 | chmod +x "$as_me.lineno" || |
| 489 | { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 490 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 491 | # If we had to re-execute with $CONFIG_SHELL, we're ensured to have |
| 492 | # already done that, so ensure we don't try to do so again and fall |
| 493 | # in an infinite loop. This has already happened in practice. |
| 494 | _as_can_reexec=no; export _as_can_reexec |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 495 | # Don't try to exec as it changes $[0], causing all sort of problems |
| 496 | # (the dirname of $[0] is not the place where we might find the |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 497 | # original and so on. Autoconf is especially sensitive to this). |
| 498 | . "./$as_me.lineno" |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 499 | # Exit status is that of the last command. |
| 500 | exit |
| 501 | } |
| 502 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 503 | ECHO_C= ECHO_N= ECHO_T= |
| 504 | case `echo -n x` in #((((( |
| 505 | -n*) |
| 506 | case `echo 'xy\c'` in |
| 507 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
| 508 | xy) ECHO_C='\c';; |
| 509 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null |
| 510 | ECHO_T=' ';; |
| 511 | esac;; |
| 512 | *) |
| 513 | ECHO_N='-n';; |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 514 | esac |
| 515 | |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 516 | rm -f conf$$ conf$$.exe conf$$.file |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 517 | if test -d conf$$.dir; then |
| 518 | rm -f conf$$.dir/conf$$.file |
| 519 | else |
| 520 | rm -f conf$$.dir |
| 521 | mkdir conf$$.dir 2>/dev/null |
| 522 | fi |
| 523 | if (echo >conf$$.file) 2>/dev/null; then |
| 524 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
Cullen Jennings | 52c5cd3 | 2013-05-01 18:07:29 -0600 | [diff] [blame] | 525 | as_ln_s='ln -s' |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 526 | # ... but there are two gotchas: |
| 527 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
| 528 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
| 529 | # In both cases, we have to default to `cp -pR'. |
| 530 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
| 531 | as_ln_s='cp -pR' |
| 532 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 533 | as_ln_s=ln |
| 534 | else |
| 535 | as_ln_s='cp -pR' |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 536 | fi |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 537 | else |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 538 | as_ln_s='cp -pR' |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 539 | fi |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 540 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
| 541 | rmdir conf$$.dir 2>/dev/null |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 542 | |
| 543 | if mkdir -p . 2>/dev/null; then |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 544 | as_mkdir_p='mkdir -p "$as_dir"' |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 545 | else |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame] | 546 | test -d ./-p && rmdir ./-p |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 547 | as_mkdir_p=false |
| 548 | fi |
| 549 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 550 | as_test_x='test -x' |
| 551 | as_executable_p=as_fn_executable_p |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 552 | |
| 553 | # Sed expression to map a string onto a valid CPP name. |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame] | 554 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 555 | |
| 556 | # Sed expression to map a string onto a valid variable name. |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame] | 557 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 558 | |
| 559 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 560 | test -n "$DJDIR" || exec 7<&0 </dev/null |
| 561 | exec 6>&1 |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 562 | |
| 563 | # Name of the host. |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 564 | # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 565 | # so uname gets run too. |
| 566 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` |
| 567 | |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 568 | # |
| 569 | # Initializations. |
| 570 | # |
| 571 | ac_default_prefix=/usr/local |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 572 | ac_clean_files= |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 573 | ac_config_libobj_dir=. |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 574 | LIBOBJS= |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 575 | cross_compiling=no |
| 576 | subdirs= |
| 577 | MFLAGS= |
| 578 | MAKEFLAGS= |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 579 | |
| 580 | # Identity of this package. |
Saúl Ibarra Corretgé | ff3d042 | 2014-10-01 11:24:15 +0200 | [diff] [blame^] | 581 | PACKAGE_NAME='libsrtp' |
| 582 | PACKAGE_TARNAME='libsrtp' |
| 583 | PACKAGE_VERSION='1.4.5' |
| 584 | PACKAGE_STRING='libsrtp 1.4.5' |
| 585 | PACKAGE_BUGREPORT='https://github.com/cisco/libsrtp/issues' |
| 586 | PACKAGE_URL='' |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 587 | |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 588 | # Factoring default headers for most tests. |
| 589 | ac_includes_default="\ |
| 590 | #include <stdio.h> |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 591 | #ifdef HAVE_SYS_TYPES_H |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 592 | # include <sys/types.h> |
| 593 | #endif |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 594 | #ifdef HAVE_SYS_STAT_H |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 595 | # include <sys/stat.h> |
| 596 | #endif |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 597 | #ifdef STDC_HEADERS |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 598 | # include <stdlib.h> |
| 599 | # include <stddef.h> |
| 600 | #else |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 601 | # ifdef HAVE_STDLIB_H |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 602 | # include <stdlib.h> |
| 603 | # endif |
| 604 | #endif |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 605 | #ifdef HAVE_STRING_H |
| 606 | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 607 | # include <memory.h> |
| 608 | # endif |
| 609 | # include <string.h> |
| 610 | #endif |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 611 | #ifdef HAVE_STRINGS_H |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 612 | # include <strings.h> |
| 613 | #endif |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 614 | #ifdef HAVE_INTTYPES_H |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 615 | # include <inttypes.h> |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 616 | #endif |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 617 | #ifdef HAVE_STDINT_H |
| 618 | # include <stdint.h> |
| 619 | #endif |
| 620 | #ifdef HAVE_UNISTD_H |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 621 | # include <unistd.h> |
| 622 | #endif" |
| 623 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 624 | ac_subst_vars='LTLIBOBJS |
| 625 | LIBOBJS |
Saúl Ibarra Corretgé | ff3d042 | 2014-10-01 11:24:15 +0200 | [diff] [blame^] | 626 | HAVE_PKG_CONFIG |
| 627 | PKG_CONFIG |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 628 | GDOI_OBJS |
| 629 | HMAC_OBJS |
| 630 | RNG_EXTRA_OBJS |
| 631 | RNG_OBJS |
| 632 | AES_ICM_OBJS |
| 633 | USE_OPENSSL |
| 634 | EXE |
| 635 | host_os |
| 636 | host_vendor |
| 637 | host_cpu |
| 638 | host |
| 639 | build_os |
| 640 | build_vendor |
| 641 | build_cpu |
| 642 | build |
| 643 | EGREP |
| 644 | GREP |
| 645 | CPP |
| 646 | INSTALL_DATA |
| 647 | INSTALL_SCRIPT |
| 648 | INSTALL_PROGRAM |
| 649 | OBJEXT |
| 650 | EXEEXT |
| 651 | ac_ct_CC |
| 652 | CPPFLAGS |
| 653 | LDFLAGS |
| 654 | CFLAGS |
| 655 | CC |
| 656 | RANLIB |
| 657 | target_alias |
| 658 | host_alias |
| 659 | build_alias |
| 660 | LIBS |
| 661 | ECHO_T |
| 662 | ECHO_N |
| 663 | ECHO_C |
| 664 | DEFS |
| 665 | mandir |
| 666 | localedir |
| 667 | libdir |
| 668 | psdir |
| 669 | pdfdir |
| 670 | dvidir |
| 671 | htmldir |
| 672 | infodir |
| 673 | docdir |
| 674 | oldincludedir |
| 675 | includedir |
| 676 | localstatedir |
| 677 | sharedstatedir |
| 678 | sysconfdir |
| 679 | datadir |
| 680 | datarootdir |
| 681 | libexecdir |
| 682 | sbindir |
| 683 | bindir |
| 684 | program_transform_name |
| 685 | prefix |
| 686 | exec_prefix |
| 687 | PACKAGE_URL |
| 688 | PACKAGE_BUGREPORT |
| 689 | PACKAGE_STRING |
| 690 | PACKAGE_VERSION |
| 691 | PACKAGE_TARNAME |
| 692 | PACKAGE_NAME |
| 693 | PATH_SEPARATOR |
| 694 | SHELL' |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 695 | ac_subst_files='' |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 696 | ac_user_opts=' |
| 697 | enable_option_checking |
| 698 | enable_kernel_linux |
| 699 | enable_debug |
| 700 | enable_generic_aesicm |
| 701 | enable_openssl |
| 702 | enable_syslog |
| 703 | enable_stdout |
| 704 | enable_console |
| 705 | enable_gdoi |
| 706 | ' |
| 707 | ac_precious_vars='build_alias |
| 708 | host_alias |
| 709 | target_alias |
| 710 | CC |
| 711 | CFLAGS |
| 712 | LDFLAGS |
| 713 | LIBS |
| 714 | CPPFLAGS |
| 715 | CPP' |
| 716 | |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 717 | |
| 718 | # Initialize some variables set by options. |
| 719 | ac_init_help= |
| 720 | ac_init_version=false |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 721 | ac_unrecognized_opts= |
| 722 | ac_unrecognized_sep= |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 723 | # The variables have the same names as the options, with |
| 724 | # dashes changed to underlines. |
| 725 | cache_file=/dev/null |
| 726 | exec_prefix=NONE |
| 727 | no_create= |
| 728 | no_recursion= |
| 729 | prefix=NONE |
| 730 | program_prefix=NONE |
| 731 | program_suffix=NONE |
| 732 | program_transform_name=s,x,x, |
| 733 | silent= |
| 734 | site= |
| 735 | srcdir= |
| 736 | verbose= |
| 737 | x_includes=NONE |
| 738 | x_libraries=NONE |
| 739 | |
| 740 | # Installation directory options. |
| 741 | # These are left unexpanded so users can "make install exec_prefix=/foo" |
| 742 | # and all the variables that are supposed to be based on exec_prefix |
| 743 | # by default will actually change. |
| 744 | # Use braces instead of parens because sh, perl, etc. also accept them. |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 745 | # (The list follows the same order as the GNU Coding Standards.) |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 746 | bindir='${exec_prefix}/bin' |
| 747 | sbindir='${exec_prefix}/sbin' |
| 748 | libexecdir='${exec_prefix}/libexec' |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 749 | datarootdir='${prefix}/share' |
| 750 | datadir='${datarootdir}' |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 751 | sysconfdir='${prefix}/etc' |
| 752 | sharedstatedir='${prefix}/com' |
| 753 | localstatedir='${prefix}/var' |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 754 | includedir='${prefix}/include' |
| 755 | oldincludedir='/usr/include' |
Saúl Ibarra Corretgé | ff3d042 | 2014-10-01 11:24:15 +0200 | [diff] [blame^] | 756 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 757 | infodir='${datarootdir}/info' |
| 758 | htmldir='${docdir}' |
| 759 | dvidir='${docdir}' |
| 760 | pdfdir='${docdir}' |
| 761 | psdir='${docdir}' |
| 762 | libdir='${exec_prefix}/lib' |
| 763 | localedir='${datarootdir}/locale' |
| 764 | mandir='${datarootdir}/man' |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 765 | |
| 766 | ac_prev= |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 767 | ac_dashdash= |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 768 | for ac_option |
| 769 | do |
| 770 | # If the previous option needs an argument, assign it. |
| 771 | if test -n "$ac_prev"; then |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 772 | eval $ac_prev=\$ac_option |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 773 | ac_prev= |
| 774 | continue |
| 775 | fi |
| 776 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 777 | case $ac_option in |
| 778 | *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
| 779 | *=) ac_optarg= ;; |
| 780 | *) ac_optarg=yes ;; |
| 781 | esac |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 782 | |
| 783 | # Accept the important Cygnus configure options, so we can diagnose typos. |
| 784 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 785 | case $ac_dashdash$ac_option in |
| 786 | --) |
| 787 | ac_dashdash=yes ;; |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 788 | |
| 789 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
| 790 | ac_prev=bindir ;; |
| 791 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
| 792 | bindir=$ac_optarg ;; |
| 793 | |
| 794 | -build | --build | --buil | --bui | --bu) |
| 795 | ac_prev=build_alias ;; |
| 796 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
| 797 | build_alias=$ac_optarg ;; |
| 798 | |
| 799 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
| 800 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
| 801 | ac_prev=cache_file ;; |
| 802 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
| 803 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
| 804 | cache_file=$ac_optarg ;; |
| 805 | |
| 806 | --config-cache | -C) |
| 807 | cache_file=config.cache ;; |
| 808 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 809 | -datadir | --datadir | --datadi | --datad) |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 810 | ac_prev=datadir ;; |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 811 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 812 | datadir=$ac_optarg ;; |
| 813 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 814 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
| 815 | | --dataroo | --dataro | --datar) |
| 816 | ac_prev=datarootdir ;; |
| 817 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ |
| 818 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) |
| 819 | datarootdir=$ac_optarg ;; |
| 820 | |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 821 | -disable-* | --disable-*) |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 822 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 823 | # Reject names that are not valid shell variable names. |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 824 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
| 825 | as_fn_error $? "invalid feature name: $ac_useropt" |
| 826 | ac_useropt_orig=$ac_useropt |
| 827 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 828 | case $ac_user_opts in |
| 829 | *" |
| 830 | "enable_$ac_useropt" |
| 831 | "*) ;; |
| 832 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" |
| 833 | ac_unrecognized_sep=', ';; |
| 834 | esac |
| 835 | eval enable_$ac_useropt=no ;; |
| 836 | |
| 837 | -docdir | --docdir | --docdi | --doc | --do) |
| 838 | ac_prev=docdir ;; |
| 839 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) |
| 840 | docdir=$ac_optarg ;; |
| 841 | |
| 842 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) |
| 843 | ac_prev=dvidir ;; |
| 844 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) |
| 845 | dvidir=$ac_optarg ;; |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 846 | |
| 847 | -enable-* | --enable-*) |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 848 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 849 | # Reject names that are not valid shell variable names. |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 850 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
| 851 | as_fn_error $? "invalid feature name: $ac_useropt" |
| 852 | ac_useropt_orig=$ac_useropt |
| 853 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 854 | case $ac_user_opts in |
| 855 | *" |
| 856 | "enable_$ac_useropt" |
| 857 | "*) ;; |
| 858 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" |
| 859 | ac_unrecognized_sep=', ';; |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 860 | esac |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 861 | eval enable_$ac_useropt=\$ac_optarg ;; |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 862 | |
| 863 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
| 864 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
| 865 | | --exec | --exe | --ex) |
| 866 | ac_prev=exec_prefix ;; |
| 867 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
| 868 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
| 869 | | --exec=* | --exe=* | --ex=*) |
| 870 | exec_prefix=$ac_optarg ;; |
| 871 | |
| 872 | -gas | --gas | --ga | --g) |
| 873 | # Obsolete; use --with-gas. |
| 874 | with_gas=yes ;; |
| 875 | |
| 876 | -help | --help | --hel | --he | -h) |
| 877 | ac_init_help=long ;; |
| 878 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
| 879 | ac_init_help=recursive ;; |
| 880 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
| 881 | ac_init_help=short ;; |
| 882 | |
| 883 | -host | --host | --hos | --ho) |
| 884 | ac_prev=host_alias ;; |
| 885 | -host=* | --host=* | --hos=* | --ho=*) |
| 886 | host_alias=$ac_optarg ;; |
| 887 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 888 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
| 889 | ac_prev=htmldir ;; |
| 890 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ |
| 891 | | --ht=*) |
| 892 | htmldir=$ac_optarg ;; |
| 893 | |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 894 | -includedir | --includedir | --includedi | --included | --include \ |
| 895 | | --includ | --inclu | --incl | --inc) |
| 896 | ac_prev=includedir ;; |
| 897 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
| 898 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
| 899 | includedir=$ac_optarg ;; |
| 900 | |
| 901 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
| 902 | ac_prev=infodir ;; |
| 903 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
| 904 | infodir=$ac_optarg ;; |
| 905 | |
| 906 | -libdir | --libdir | --libdi | --libd) |
| 907 | ac_prev=libdir ;; |
| 908 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
| 909 | libdir=$ac_optarg ;; |
| 910 | |
| 911 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
| 912 | | --libexe | --libex | --libe) |
| 913 | ac_prev=libexecdir ;; |
| 914 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
| 915 | | --libexe=* | --libex=* | --libe=*) |
| 916 | libexecdir=$ac_optarg ;; |
| 917 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 918 | -localedir | --localedir | --localedi | --localed | --locale) |
| 919 | ac_prev=localedir ;; |
| 920 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) |
| 921 | localedir=$ac_optarg ;; |
| 922 | |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 923 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 924 | | --localstate | --localstat | --localsta | --localst | --locals) |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 925 | ac_prev=localstatedir ;; |
| 926 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 927 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 928 | localstatedir=$ac_optarg ;; |
| 929 | |
| 930 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
| 931 | ac_prev=mandir ;; |
| 932 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
| 933 | mandir=$ac_optarg ;; |
| 934 | |
| 935 | -nfp | --nfp | --nf) |
| 936 | # Obsolete; use --without-fp. |
| 937 | with_fp=no ;; |
| 938 | |
| 939 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
| 940 | | --no-cr | --no-c | -n) |
| 941 | no_create=yes ;; |
| 942 | |
| 943 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
| 944 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
| 945 | no_recursion=yes ;; |
| 946 | |
| 947 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
| 948 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
| 949 | | --oldin | --oldi | --old | --ol | --o) |
| 950 | ac_prev=oldincludedir ;; |
| 951 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
| 952 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
| 953 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
| 954 | oldincludedir=$ac_optarg ;; |
| 955 | |
| 956 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
| 957 | ac_prev=prefix ;; |
| 958 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
| 959 | prefix=$ac_optarg ;; |
| 960 | |
| 961 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
| 962 | | --program-pre | --program-pr | --program-p) |
| 963 | ac_prev=program_prefix ;; |
| 964 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
| 965 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
| 966 | program_prefix=$ac_optarg ;; |
| 967 | |
| 968 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
| 969 | | --program-suf | --program-su | --program-s) |
| 970 | ac_prev=program_suffix ;; |
| 971 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
| 972 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
| 973 | program_suffix=$ac_optarg ;; |
| 974 | |
| 975 | -program-transform-name | --program-transform-name \ |
| 976 | | --program-transform-nam | --program-transform-na \ |
| 977 | | --program-transform-n | --program-transform- \ |
| 978 | | --program-transform | --program-transfor \ |
| 979 | | --program-transfo | --program-transf \ |
| 980 | | --program-trans | --program-tran \ |
| 981 | | --progr-tra | --program-tr | --program-t) |
| 982 | ac_prev=program_transform_name ;; |
| 983 | -program-transform-name=* | --program-transform-name=* \ |
| 984 | | --program-transform-nam=* | --program-transform-na=* \ |
| 985 | | --program-transform-n=* | --program-transform-=* \ |
| 986 | | --program-transform=* | --program-transfor=* \ |
| 987 | | --program-transfo=* | --program-transf=* \ |
| 988 | | --program-trans=* | --program-tran=* \ |
| 989 | | --progr-tra=* | --program-tr=* | --program-t=*) |
| 990 | program_transform_name=$ac_optarg ;; |
| 991 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 992 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
| 993 | ac_prev=pdfdir ;; |
| 994 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) |
| 995 | pdfdir=$ac_optarg ;; |
| 996 | |
| 997 | -psdir | --psdir | --psdi | --psd | --ps) |
| 998 | ac_prev=psdir ;; |
| 999 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) |
| 1000 | psdir=$ac_optarg ;; |
| 1001 | |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 1002 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 1003 | | -silent | --silent | --silen | --sile | --sil) |
| 1004 | silent=yes ;; |
| 1005 | |
| 1006 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
| 1007 | ac_prev=sbindir ;; |
| 1008 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
| 1009 | | --sbi=* | --sb=*) |
| 1010 | sbindir=$ac_optarg ;; |
| 1011 | |
| 1012 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
| 1013 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
| 1014 | | --sharedst | --shareds | --shared | --share | --shar \ |
| 1015 | | --sha | --sh) |
| 1016 | ac_prev=sharedstatedir ;; |
| 1017 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
| 1018 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
| 1019 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
| 1020 | | --sha=* | --sh=*) |
| 1021 | sharedstatedir=$ac_optarg ;; |
| 1022 | |
| 1023 | -site | --site | --sit) |
| 1024 | ac_prev=site ;; |
| 1025 | -site=* | --site=* | --sit=*) |
| 1026 | site=$ac_optarg ;; |
| 1027 | |
| 1028 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
| 1029 | ac_prev=srcdir ;; |
| 1030 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
| 1031 | srcdir=$ac_optarg ;; |
| 1032 | |
| 1033 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
| 1034 | | --syscon | --sysco | --sysc | --sys | --sy) |
| 1035 | ac_prev=sysconfdir ;; |
| 1036 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
| 1037 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
| 1038 | sysconfdir=$ac_optarg ;; |
| 1039 | |
| 1040 | -target | --target | --targe | --targ | --tar | --ta | --t) |
| 1041 | ac_prev=target_alias ;; |
| 1042 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
| 1043 | target_alias=$ac_optarg ;; |
| 1044 | |
| 1045 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
| 1046 | verbose=yes ;; |
| 1047 | |
| 1048 | -version | --version | --versio | --versi | --vers | -V) |
| 1049 | ac_init_version=: ;; |
| 1050 | |
| 1051 | -with-* | --with-*) |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 1052 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 1053 | # Reject names that are not valid shell variable names. |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 1054 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
| 1055 | as_fn_error $? "invalid package name: $ac_useropt" |
| 1056 | ac_useropt_orig=$ac_useropt |
| 1057 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 1058 | case $ac_user_opts in |
| 1059 | *" |
| 1060 | "with_$ac_useropt" |
| 1061 | "*) ;; |
| 1062 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" |
| 1063 | ac_unrecognized_sep=', ';; |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 1064 | esac |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 1065 | eval with_$ac_useropt=\$ac_optarg ;; |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 1066 | |
| 1067 | -without-* | --without-*) |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 1068 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 1069 | # Reject names that are not valid shell variable names. |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 1070 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
| 1071 | as_fn_error $? "invalid package name: $ac_useropt" |
| 1072 | ac_useropt_orig=$ac_useropt |
| 1073 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 1074 | case $ac_user_opts in |
| 1075 | *" |
| 1076 | "with_$ac_useropt" |
| 1077 | "*) ;; |
| 1078 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" |
| 1079 | ac_unrecognized_sep=', ';; |
| 1080 | esac |
| 1081 | eval with_$ac_useropt=no ;; |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 1082 | |
| 1083 | --x) |
| 1084 | # Obsolete; use --with-x. |
| 1085 | with_x=yes ;; |
| 1086 | |
| 1087 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
| 1088 | | --x-incl | --x-inc | --x-in | --x-i) |
| 1089 | ac_prev=x_includes ;; |
| 1090 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
| 1091 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
| 1092 | x_includes=$ac_optarg ;; |
| 1093 | |
| 1094 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
| 1095 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
| 1096 | ac_prev=x_libraries ;; |
| 1097 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
| 1098 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
| 1099 | x_libraries=$ac_optarg ;; |
| 1100 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 1101 | -*) as_fn_error $? "unrecognized option: \`$ac_option' |
| 1102 | Try \`$0 --help' for more information" |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 1103 | ;; |
| 1104 | |
| 1105 | *=*) |
| 1106 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
| 1107 | # Reject names that are not valid shell variable names. |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 1108 | case $ac_envvar in #( |
| 1109 | '' | [0-9]* | *[!_$as_cr_alnum]* ) |
| 1110 | as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; |
| 1111 | esac |
| 1112 | eval $ac_envvar=\$ac_optarg |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 1113 | export $ac_envvar ;; |
| 1114 | |
| 1115 | *) |
| 1116 | # FIXME: should be removed in autoconf 3.0. |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 1117 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 1118 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 1119 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
| 1120 | : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 1121 | ;; |
| 1122 | |
| 1123 | esac |
| 1124 | done |
| 1125 | |
| 1126 | if test -n "$ac_prev"; then |
| 1127 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 1128 | as_fn_error $? "missing argument to $ac_option" |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 1129 | fi |
| 1130 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 1131 | if test -n "$ac_unrecognized_opts"; then |
| 1132 | case $enable_option_checking in |
| 1133 | no) ;; |
| 1134 | fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; |
| 1135 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 1136 | esac |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 1137 | fi |
Cullen Jennings | 52c5cd3 | 2013-05-01 18:07:29 -0600 | [diff] [blame] | 1138 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 1139 | # Check all directory arguments for consistency. |
| 1140 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
| 1141 | datadir sysconfdir sharedstatedir localstatedir includedir \ |
| 1142 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ |
| 1143 | libdir localedir mandir |
Cullen Jennings | 52c5cd3 | 2013-05-01 18:07:29 -0600 | [diff] [blame] | 1144 | do |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 1145 | eval ac_val=\$$ac_var |
| 1146 | # Remove trailing slashes. |
jfigus | a14b5a0 | 2013-03-29 12:24:12 -0400 | [diff] [blame] | 1147 | case $ac_val in |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 1148 | */ ) |
| 1149 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` |
| 1150 | eval $ac_var=\$ac_val;; |
jfigus | a14b5a0 | 2013-03-29 12:24:12 -0400 | [diff] [blame] | 1151 | esac |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 1152 | # Be sure to have absolute directory names. |
| 1153 | case $ac_val in |
| 1154 | [\\/$]* | ?:[\\/]* ) continue;; |
| 1155 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; |
| 1156 | esac |
| 1157 | as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 1158 | done |
| 1159 | |
| 1160 | # There might be people who depend on the old broken behavior: `$host' |
| 1161 | # used to hold the argument of --host etc. |
| 1162 | # FIXME: To remove some day. |
| 1163 | build=$build_alias |
| 1164 | host=$host_alias |
| 1165 | target=$target_alias |
| 1166 | |
| 1167 | # FIXME: To remove some day. |
| 1168 | if test "x$host_alias" != x; then |
| 1169 | if test "x$build_alias" = x; then |
| 1170 | cross_compiling=maybe |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 1171 | elif test "x$build_alias" != "x$host_alias"; then |
| 1172 | cross_compiling=yes |
| 1173 | fi |
| 1174 | fi |
| 1175 | |
| 1176 | ac_tool_prefix= |
| 1177 | test -n "$host_alias" && ac_tool_prefix=$host_alias- |
| 1178 | |
| 1179 | test "$silent" = yes && exec 6>/dev/null |
| 1180 | |
| 1181 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 1182 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
| 1183 | ac_ls_di=`ls -di .` && |
| 1184 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || |
| 1185 | as_fn_error $? "working directory cannot be determined" |
| 1186 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
| 1187 | as_fn_error $? "pwd does not report name of working directory" |
| 1188 | |
| 1189 | |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 1190 | # Find the source files, if location was not specified. |
| 1191 | if test -z "$srcdir"; then |
| 1192 | ac_srcdir_defaulted=yes |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 1193 | # Try the directory containing this script, then the parent directory. |
| 1194 | ac_confdir=`$as_dirname -- "$as_myself" || |
| 1195 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 1196 | X"$as_myself" : 'X\(//\)[^/]' \| \ |
| 1197 | X"$as_myself" : 'X\(//\)$' \| \ |
| 1198 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || |
| 1199 | $as_echo X"$as_myself" | |
| 1200 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 1201 | s//\1/ |
| 1202 | q |
| 1203 | } |
| 1204 | /^X\(\/\/\)[^/].*/{ |
| 1205 | s//\1/ |
| 1206 | q |
| 1207 | } |
| 1208 | /^X\(\/\/\)$/{ |
| 1209 | s//\1/ |
| 1210 | q |
| 1211 | } |
| 1212 | /^X\(\/\).*/{ |
| 1213 | s//\1/ |
| 1214 | q |
| 1215 | } |
| 1216 | s/.*/./; q'` |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 1217 | srcdir=$ac_confdir |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 1218 | if test ! -r "$srcdir/$ac_unique_file"; then |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 1219 | srcdir=.. |
| 1220 | fi |
| 1221 | else |
| 1222 | ac_srcdir_defaulted=no |
| 1223 | fi |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 1224 | if test ! -r "$srcdir/$ac_unique_file"; then |
| 1225 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." |
| 1226 | as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 1227 | fi |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 1228 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
| 1229 | ac_abs_confdir=`( |
| 1230 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" |
| 1231 | pwd)` |
| 1232 | # When building in place, set srcdir=. |
| 1233 | if test "$ac_abs_confdir" = "$ac_pwd"; then |
| 1234 | srcdir=. |
| 1235 | fi |
| 1236 | # Remove unnecessary trailing slashes from srcdir. |
| 1237 | # Double slashes in file names in object file debugging info |
| 1238 | # mess up M-x gdb in Emacs. |
| 1239 | case $srcdir in |
| 1240 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; |
| 1241 | esac |
| 1242 | for ac_var in $ac_precious_vars; do |
| 1243 | eval ac_env_${ac_var}_set=\${${ac_var}+set} |
| 1244 | eval ac_env_${ac_var}_value=\$${ac_var} |
| 1245 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} |
| 1246 | eval ac_cv_env_${ac_var}_value=\$${ac_var} |
| 1247 | done |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 1248 | |
| 1249 | # |
| 1250 | # Report the --help message. |
| 1251 | # |
| 1252 | if test "$ac_init_help" = "long"; then |
| 1253 | # Omit some internal or obsolete options to make the list less imposing. |
| 1254 | # This message is too long to be a string in the A/UX 3.1 sh. |
| 1255 | cat <<_ACEOF |
Saúl Ibarra Corretgé | ff3d042 | 2014-10-01 11:24:15 +0200 | [diff] [blame^] | 1256 | \`configure' configures libsrtp 1.4.5 to adapt to many kinds of systems. |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 1257 | |
| 1258 | Usage: $0 [OPTION]... [VAR=VALUE]... |
| 1259 | |
| 1260 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
| 1261 | VAR=VALUE. See below for descriptions of some of the useful variables. |
| 1262 | |
| 1263 | Defaults for the options are specified in brackets. |
| 1264 | |
| 1265 | Configuration: |
| 1266 | -h, --help display this help and exit |
| 1267 | --help=short display options specific to this package |
| 1268 | --help=recursive display the short help of all the included packages |
| 1269 | -V, --version display version information and exit |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 1270 | -q, --quiet, --silent do not print \`checking ...' messages |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 1271 | --cache-file=FILE cache test results in FILE [disabled] |
| 1272 | -C, --config-cache alias for \`--cache-file=config.cache' |
| 1273 | -n, --no-create do not create output files |
| 1274 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] |
| 1275 | |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 1276 | Installation directories: |
| 1277 | --prefix=PREFIX install architecture-independent files in PREFIX |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 1278 | [$ac_default_prefix] |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 1279 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 1280 | [PREFIX] |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 1281 | |
| 1282 | By default, \`make install' will install all the files in |
| 1283 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
| 1284 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
| 1285 | for instance \`--prefix=\$HOME'. |
| 1286 | |
| 1287 | For better control, use the options below. |
| 1288 | |
| 1289 | Fine tuning of the installation directories: |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 1290 | --bindir=DIR user executables [EPREFIX/bin] |
| 1291 | --sbindir=DIR system admin executables [EPREFIX/sbin] |
| 1292 | --libexecdir=DIR program executables [EPREFIX/libexec] |
| 1293 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
| 1294 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
| 1295 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
| 1296 | --libdir=DIR object code libraries [EPREFIX/lib] |
| 1297 | --includedir=DIR C header files [PREFIX/include] |
| 1298 | --oldincludedir=DIR C header files for non-gcc [/usr/include] |
| 1299 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] |
| 1300 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] |
| 1301 | --infodir=DIR info documentation [DATAROOTDIR/info] |
| 1302 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] |
| 1303 | --mandir=DIR man documentation [DATAROOTDIR/man] |
Saúl Ibarra Corretgé | ff3d042 | 2014-10-01 11:24:15 +0200 | [diff] [blame^] | 1304 | --docdir=DIR documentation root [DATAROOTDIR/doc/libsrtp] |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 1305 | --htmldir=DIR html documentation [DOCDIR] |
| 1306 | --dvidir=DIR dvi documentation [DOCDIR] |
| 1307 | --pdfdir=DIR pdf documentation [DOCDIR] |
| 1308 | --psdir=DIR ps documentation [DOCDIR] |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 1309 | _ACEOF |
| 1310 | |
| 1311 | cat <<\_ACEOF |
| 1312 | |
| 1313 | System types: |
| 1314 | --build=BUILD configure for building on BUILD [guessed] |
| 1315 | --host=HOST cross-compile to build programs to run on HOST [BUILD] |
| 1316 | _ACEOF |
| 1317 | fi |
| 1318 | |
| 1319 | if test -n "$ac_init_help"; then |
Saúl Ibarra Corretgé | ff3d042 | 2014-10-01 11:24:15 +0200 | [diff] [blame^] | 1320 | case $ac_init_help in |
| 1321 | short | recursive ) echo "Configuration of libsrtp 1.4.5:";; |
| 1322 | esac |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 1323 | cat <<\_ACEOF |
| 1324 | |
| 1325 | Optional Features: |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 1326 | --disable-option-checking ignore unrecognized --enable/--with options |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 1327 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
| 1328 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
Marcus Sundberg | 64536cc | 2005-10-03 15:23:13 +0000 | [diff] [blame] | 1329 | --enable-kernel-linux build library to run in Linux kernel context |
David McGrew | b67061f | 2005-09-28 14:23:06 +0000 | [diff] [blame] | 1330 | --disable-debug do not compile in dynamic debugging system |
| 1331 | --enable-generic-aesicm compile in changes for ISMAcryp |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 1332 | --enable-openssl compile in OpenSSL crypto engine |
David McGrew | b67061f | 2005-09-28 14:23:06 +0000 | [diff] [blame] | 1333 | --enable-syslog use syslog for error reporting |
| 1334 | --disable-stdout don't use stdout for error reporting |
| 1335 | --enable-console use /dev/console for error reporting |
| 1336 | --enable-gdoi enable GDOI key management |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 1337 | |
| 1338 | Some influential environment variables: |
| 1339 | CC C compiler command |
| 1340 | CFLAGS C compiler flags |
| 1341 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
| 1342 | nonstandard directory <lib dir> |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 1343 | LIBS libraries to pass to the linker, e.g. -l<library> |
| 1344 | CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if |
| 1345 | you have headers in a nonstandard directory <include dir> |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 1346 | CPP C preprocessor |
| 1347 | |
| 1348 | Use these variables to override the choices made by `configure' or to help |
| 1349 | it to find libraries and programs with nonstandard names/locations. |
| 1350 | |
Saúl Ibarra Corretgé | ff3d042 | 2014-10-01 11:24:15 +0200 | [diff] [blame^] | 1351 | Report bugs to <https://github.com/cisco/libsrtp/issues>. |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 1352 | _ACEOF |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 1353 | ac_status=$? |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 1354 | fi |
| 1355 | |
| 1356 | if test "$ac_init_help" = "recursive"; then |
| 1357 | # If there are subdirs, report their specific --help. |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 1358 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 1359 | test -d "$ac_dir" || |
| 1360 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || |
| 1361 | continue |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 1362 | ac_builddir=. |
| 1363 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 1364 | case "$ac_dir" in |
| 1365 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 1366 | *) |
| 1367 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
| 1368 | # A ".." for each directory in $ac_dir_suffix. |
| 1369 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
| 1370 | case $ac_top_builddir_sub in |
| 1371 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 1372 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 1373 | esac ;; |
| 1374 | esac |
| 1375 | ac_abs_top_builddir=$ac_pwd |
| 1376 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 1377 | # for backward compatibility: |
| 1378 | ac_top_builddir=$ac_top_build_prefix |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 1379 | |
| 1380 | case $srcdir in |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 1381 | .) # We are building in place. |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 1382 | ac_srcdir=. |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 1383 | ac_top_srcdir=$ac_top_builddir_sub |
| 1384 | ac_abs_top_srcdir=$ac_pwd ;; |
| 1385 | [\\/]* | ?:[\\/]* ) # Absolute name. |
Cullen Jennings | 52c5cd3 | 2013-05-01 18:07:29 -0600 | [diff] [blame] | 1386 | ac_srcdir=$srcdir$ac_dir_suffix; |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 1387 | ac_top_srcdir=$srcdir |
| 1388 | ac_abs_top_srcdir=$srcdir ;; |
| 1389 | *) # Relative name. |
| 1390 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 1391 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 1392 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
Cullen Jennings | 52c5cd3 | 2013-05-01 18:07:29 -0600 | [diff] [blame] | 1393 | esac |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 1394 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
Cullen Jennings | 52c5cd3 | 2013-05-01 18:07:29 -0600 | [diff] [blame] | 1395 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 1396 | cd "$ac_dir" || { ac_status=$?; continue; } |
| 1397 | # Check for guested configure. |
| 1398 | if test -f "$ac_srcdir/configure.gnu"; then |
| 1399 | echo && |
| 1400 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive |
| 1401 | elif test -f "$ac_srcdir/configure"; then |
| 1402 | echo && |
| 1403 | $SHELL "$ac_srcdir/configure" --help=recursive |
Cullen Jennings | 52c5cd3 | 2013-05-01 18:07:29 -0600 | [diff] [blame] | 1404 | else |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 1405 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
| 1406 | fi || ac_status=$? |
| 1407 | cd "$ac_pwd" || { ac_status=$?; break; } |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 1408 | done |
| 1409 | fi |
| 1410 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 1411 | test -n "$ac_init_help" && exit $ac_status |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 1412 | if $ac_init_version; then |
| 1413 | cat <<\_ACEOF |
Saúl Ibarra Corretgé | ff3d042 | 2014-10-01 11:24:15 +0200 | [diff] [blame^] | 1414 | libsrtp configure 1.4.5 |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 1415 | generated by GNU Autoconf 2.69 |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 1416 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 1417 | Copyright (C) 2012 Free Software Foundation, Inc. |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 1418 | This configure script is free software; the Free Software Foundation |
| 1419 | gives unlimited permission to copy, distribute and modify it. |
| 1420 | _ACEOF |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 1421 | exit |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 1422 | fi |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 1423 | |
| 1424 | ## ------------------------ ## |
| 1425 | ## Autoconf initialization. ## |
| 1426 | ## ------------------------ ## |
| 1427 | |
| 1428 | # ac_fn_c_try_compile LINENO |
| 1429 | # -------------------------- |
| 1430 | # Try to compile conftest.$ac_ext, and return whether this succeeded. |
| 1431 | ac_fn_c_try_compile () |
| 1432 | { |
| 1433 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1434 | rm -f conftest.$ac_objext |
| 1435 | if { { ac_try="$ac_compile" |
| 1436 | case "(($ac_try" in |
| 1437 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1438 | *) ac_try_echo=$ac_try;; |
| 1439 | esac |
| 1440 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1441 | $as_echo "$ac_try_echo"; } >&5 |
| 1442 | (eval "$ac_compile") 2>conftest.err |
| 1443 | ac_status=$? |
| 1444 | if test -s conftest.err; then |
| 1445 | grep -v '^ *+' conftest.err >conftest.er1 |
| 1446 | cat conftest.er1 >&5 |
| 1447 | mv -f conftest.er1 conftest.err |
| 1448 | fi |
| 1449 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1450 | test $ac_status = 0; } && { |
| 1451 | test -z "$ac_c_werror_flag" || |
| 1452 | test ! -s conftest.err |
| 1453 | } && test -s conftest.$ac_objext; then : |
| 1454 | ac_retval=0 |
| 1455 | else |
| 1456 | $as_echo "$as_me: failed program was:" >&5 |
| 1457 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1458 | |
| 1459 | ac_retval=1 |
| 1460 | fi |
| 1461 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 1462 | as_fn_set_status $ac_retval |
| 1463 | |
| 1464 | } # ac_fn_c_try_compile |
| 1465 | |
| 1466 | # ac_fn_c_try_run LINENO |
| 1467 | # ---------------------- |
| 1468 | # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes |
| 1469 | # that executables *can* be run. |
| 1470 | ac_fn_c_try_run () |
| 1471 | { |
| 1472 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1473 | if { { ac_try="$ac_link" |
| 1474 | case "(($ac_try" in |
| 1475 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1476 | *) ac_try_echo=$ac_try;; |
| 1477 | esac |
| 1478 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1479 | $as_echo "$ac_try_echo"; } >&5 |
| 1480 | (eval "$ac_link") 2>&5 |
| 1481 | ac_status=$? |
| 1482 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1483 | test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' |
| 1484 | { { case "(($ac_try" in |
| 1485 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1486 | *) ac_try_echo=$ac_try;; |
| 1487 | esac |
| 1488 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1489 | $as_echo "$ac_try_echo"; } >&5 |
| 1490 | (eval "$ac_try") 2>&5 |
| 1491 | ac_status=$? |
| 1492 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1493 | test $ac_status = 0; }; }; then : |
| 1494 | ac_retval=0 |
| 1495 | else |
| 1496 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
| 1497 | $as_echo "$as_me: failed program was:" >&5 |
| 1498 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1499 | |
| 1500 | ac_retval=$ac_status |
| 1501 | fi |
| 1502 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
| 1503 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 1504 | as_fn_set_status $ac_retval |
| 1505 | |
| 1506 | } # ac_fn_c_try_run |
| 1507 | |
| 1508 | # ac_fn_c_try_cpp LINENO |
| 1509 | # ---------------------- |
| 1510 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. |
| 1511 | ac_fn_c_try_cpp () |
| 1512 | { |
| 1513 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1514 | if { { ac_try="$ac_cpp conftest.$ac_ext" |
| 1515 | case "(($ac_try" in |
| 1516 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1517 | *) ac_try_echo=$ac_try;; |
| 1518 | esac |
| 1519 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1520 | $as_echo "$ac_try_echo"; } >&5 |
| 1521 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err |
| 1522 | ac_status=$? |
| 1523 | if test -s conftest.err; then |
| 1524 | grep -v '^ *+' conftest.err >conftest.er1 |
| 1525 | cat conftest.er1 >&5 |
| 1526 | mv -f conftest.er1 conftest.err |
| 1527 | fi |
| 1528 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1529 | test $ac_status = 0; } > conftest.i && { |
| 1530 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 1531 | test ! -s conftest.err |
| 1532 | }; then : |
| 1533 | ac_retval=0 |
| 1534 | else |
| 1535 | $as_echo "$as_me: failed program was:" >&5 |
| 1536 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1537 | |
| 1538 | ac_retval=1 |
| 1539 | fi |
| 1540 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 1541 | as_fn_set_status $ac_retval |
| 1542 | |
| 1543 | } # ac_fn_c_try_cpp |
| 1544 | |
| 1545 | # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES |
| 1546 | # ------------------------------------------------------- |
| 1547 | # Tests whether HEADER exists and can be compiled using the include files in |
| 1548 | # INCLUDES, setting the cache variable VAR accordingly. |
| 1549 | ac_fn_c_check_header_compile () |
| 1550 | { |
| 1551 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1552 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 1553 | $as_echo_n "checking for $2... " >&6; } |
| 1554 | if eval \${$3+:} false; then : |
| 1555 | $as_echo_n "(cached) " >&6 |
| 1556 | else |
| 1557 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1558 | /* end confdefs.h. */ |
| 1559 | $4 |
| 1560 | #include <$2> |
| 1561 | _ACEOF |
| 1562 | if ac_fn_c_try_compile "$LINENO"; then : |
| 1563 | eval "$3=yes" |
| 1564 | else |
| 1565 | eval "$3=no" |
| 1566 | fi |
| 1567 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 1568 | fi |
| 1569 | eval ac_res=\$$3 |
| 1570 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 1571 | $as_echo "$ac_res" >&6; } |
| 1572 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 1573 | |
| 1574 | } # ac_fn_c_check_header_compile |
| 1575 | |
| 1576 | # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES |
| 1577 | # ------------------------------------------------------- |
| 1578 | # Tests whether HEADER exists, giving a warning if it cannot be compiled using |
| 1579 | # the include files in INCLUDES and setting the cache variable VAR |
| 1580 | # accordingly. |
| 1581 | ac_fn_c_check_header_mongrel () |
| 1582 | { |
| 1583 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1584 | if eval \${$3+:} false; then : |
| 1585 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 1586 | $as_echo_n "checking for $2... " >&6; } |
| 1587 | if eval \${$3+:} false; then : |
| 1588 | $as_echo_n "(cached) " >&6 |
| 1589 | fi |
| 1590 | eval ac_res=\$$3 |
| 1591 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 1592 | $as_echo "$ac_res" >&6; } |
| 1593 | else |
| 1594 | # Is the header compilable? |
| 1595 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 |
| 1596 | $as_echo_n "checking $2 usability... " >&6; } |
| 1597 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1598 | /* end confdefs.h. */ |
| 1599 | $4 |
| 1600 | #include <$2> |
| 1601 | _ACEOF |
| 1602 | if ac_fn_c_try_compile "$LINENO"; then : |
| 1603 | ac_header_compiler=yes |
| 1604 | else |
| 1605 | ac_header_compiler=no |
| 1606 | fi |
| 1607 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 1608 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 |
| 1609 | $as_echo "$ac_header_compiler" >&6; } |
| 1610 | |
| 1611 | # Is the header present? |
| 1612 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 |
| 1613 | $as_echo_n "checking $2 presence... " >&6; } |
| 1614 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1615 | /* end confdefs.h. */ |
| 1616 | #include <$2> |
| 1617 | _ACEOF |
| 1618 | if ac_fn_c_try_cpp "$LINENO"; then : |
| 1619 | ac_header_preproc=yes |
| 1620 | else |
| 1621 | ac_header_preproc=no |
| 1622 | fi |
| 1623 | rm -f conftest.err conftest.i conftest.$ac_ext |
| 1624 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 |
| 1625 | $as_echo "$ac_header_preproc" >&6; } |
| 1626 | |
| 1627 | # So? What about this header? |
| 1628 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( |
| 1629 | yes:no: ) |
| 1630 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 1631 | $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 1632 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 |
| 1633 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} |
| 1634 | ;; |
| 1635 | no:yes:* ) |
| 1636 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 |
| 1637 | $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} |
| 1638 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 |
| 1639 | $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} |
| 1640 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 |
| 1641 | $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} |
| 1642 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 |
| 1643 | $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} |
| 1644 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 |
| 1645 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} |
Saúl Ibarra Corretgé | ff3d042 | 2014-10-01 11:24:15 +0200 | [diff] [blame^] | 1646 | ( $as_echo "## ------------------------------------------------------ ## |
| 1647 | ## Report this to https://github.com/cisco/libsrtp/issues ## |
| 1648 | ## ------------------------------------------------------ ##" |
| 1649 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 1650 | ;; |
| 1651 | esac |
| 1652 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 1653 | $as_echo_n "checking for $2... " >&6; } |
| 1654 | if eval \${$3+:} false; then : |
| 1655 | $as_echo_n "(cached) " >&6 |
| 1656 | else |
| 1657 | eval "$3=\$ac_header_compiler" |
| 1658 | fi |
| 1659 | eval ac_res=\$$3 |
| 1660 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 1661 | $as_echo "$ac_res" >&6; } |
| 1662 | fi |
| 1663 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 1664 | |
| 1665 | } # ac_fn_c_check_header_mongrel |
| 1666 | |
| 1667 | # ac_fn_c_check_type LINENO TYPE VAR INCLUDES |
| 1668 | # ------------------------------------------- |
| 1669 | # Tests whether TYPE exists after having included INCLUDES, setting cache |
| 1670 | # variable VAR accordingly. |
| 1671 | ac_fn_c_check_type () |
| 1672 | { |
| 1673 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1674 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 1675 | $as_echo_n "checking for $2... " >&6; } |
| 1676 | if eval \${$3+:} false; then : |
| 1677 | $as_echo_n "(cached) " >&6 |
| 1678 | else |
| 1679 | eval "$3=no" |
| 1680 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1681 | /* end confdefs.h. */ |
| 1682 | $4 |
| 1683 | int |
| 1684 | main () |
| 1685 | { |
| 1686 | if (sizeof ($2)) |
| 1687 | return 0; |
| 1688 | ; |
| 1689 | return 0; |
| 1690 | } |
| 1691 | _ACEOF |
| 1692 | if ac_fn_c_try_compile "$LINENO"; then : |
| 1693 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1694 | /* end confdefs.h. */ |
| 1695 | $4 |
| 1696 | int |
| 1697 | main () |
| 1698 | { |
| 1699 | if (sizeof (($2))) |
| 1700 | return 0; |
| 1701 | ; |
| 1702 | return 0; |
| 1703 | } |
| 1704 | _ACEOF |
| 1705 | if ac_fn_c_try_compile "$LINENO"; then : |
| 1706 | |
| 1707 | else |
| 1708 | eval "$3=yes" |
| 1709 | fi |
| 1710 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 1711 | fi |
| 1712 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 1713 | fi |
| 1714 | eval ac_res=\$$3 |
| 1715 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 1716 | $as_echo "$ac_res" >&6; } |
| 1717 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 1718 | |
| 1719 | } # ac_fn_c_check_type |
| 1720 | |
| 1721 | # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES |
| 1722 | # -------------------------------------------- |
| 1723 | # Tries to find the compile-time value of EXPR in a program that includes |
| 1724 | # INCLUDES, setting VAR accordingly. Returns whether the value could be |
| 1725 | # computed |
| 1726 | ac_fn_c_compute_int () |
| 1727 | { |
| 1728 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1729 | if test "$cross_compiling" = yes; then |
| 1730 | # Depending upon the size, compute the lo and hi bounds. |
| 1731 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1732 | /* end confdefs.h. */ |
| 1733 | $4 |
| 1734 | int |
| 1735 | main () |
| 1736 | { |
| 1737 | static int test_array [1 - 2 * !(($2) >= 0)]; |
| 1738 | test_array [0] = 0; |
| 1739 | return test_array [0]; |
| 1740 | |
| 1741 | ; |
| 1742 | return 0; |
| 1743 | } |
| 1744 | _ACEOF |
| 1745 | if ac_fn_c_try_compile "$LINENO"; then : |
| 1746 | ac_lo=0 ac_mid=0 |
| 1747 | while :; do |
| 1748 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1749 | /* end confdefs.h. */ |
| 1750 | $4 |
| 1751 | int |
| 1752 | main () |
| 1753 | { |
| 1754 | static int test_array [1 - 2 * !(($2) <= $ac_mid)]; |
| 1755 | test_array [0] = 0; |
| 1756 | return test_array [0]; |
| 1757 | |
| 1758 | ; |
| 1759 | return 0; |
| 1760 | } |
| 1761 | _ACEOF |
| 1762 | if ac_fn_c_try_compile "$LINENO"; then : |
| 1763 | ac_hi=$ac_mid; break |
| 1764 | else |
| 1765 | as_fn_arith $ac_mid + 1 && ac_lo=$as_val |
| 1766 | if test $ac_lo -le $ac_mid; then |
| 1767 | ac_lo= ac_hi= |
| 1768 | break |
| 1769 | fi |
| 1770 | as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val |
| 1771 | fi |
| 1772 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 1773 | done |
| 1774 | else |
| 1775 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1776 | /* end confdefs.h. */ |
| 1777 | $4 |
| 1778 | int |
| 1779 | main () |
| 1780 | { |
| 1781 | static int test_array [1 - 2 * !(($2) < 0)]; |
| 1782 | test_array [0] = 0; |
| 1783 | return test_array [0]; |
| 1784 | |
| 1785 | ; |
| 1786 | return 0; |
| 1787 | } |
| 1788 | _ACEOF |
| 1789 | if ac_fn_c_try_compile "$LINENO"; then : |
| 1790 | ac_hi=-1 ac_mid=-1 |
| 1791 | while :; do |
| 1792 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1793 | /* end confdefs.h. */ |
| 1794 | $4 |
| 1795 | int |
| 1796 | main () |
| 1797 | { |
| 1798 | static int test_array [1 - 2 * !(($2) >= $ac_mid)]; |
| 1799 | test_array [0] = 0; |
| 1800 | return test_array [0]; |
| 1801 | |
| 1802 | ; |
| 1803 | return 0; |
| 1804 | } |
| 1805 | _ACEOF |
| 1806 | if ac_fn_c_try_compile "$LINENO"; then : |
| 1807 | ac_lo=$ac_mid; break |
| 1808 | else |
| 1809 | as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val |
| 1810 | if test $ac_mid -le $ac_hi; then |
| 1811 | ac_lo= ac_hi= |
| 1812 | break |
| 1813 | fi |
| 1814 | as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val |
| 1815 | fi |
| 1816 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 1817 | done |
| 1818 | else |
| 1819 | ac_lo= ac_hi= |
| 1820 | fi |
| 1821 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 1822 | fi |
| 1823 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 1824 | # Binary search between lo and hi bounds. |
| 1825 | while test "x$ac_lo" != "x$ac_hi"; do |
| 1826 | as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val |
| 1827 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1828 | /* end confdefs.h. */ |
| 1829 | $4 |
| 1830 | int |
| 1831 | main () |
| 1832 | { |
| 1833 | static int test_array [1 - 2 * !(($2) <= $ac_mid)]; |
| 1834 | test_array [0] = 0; |
| 1835 | return test_array [0]; |
| 1836 | |
| 1837 | ; |
| 1838 | return 0; |
| 1839 | } |
| 1840 | _ACEOF |
| 1841 | if ac_fn_c_try_compile "$LINENO"; then : |
| 1842 | ac_hi=$ac_mid |
| 1843 | else |
| 1844 | as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val |
| 1845 | fi |
| 1846 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 1847 | done |
| 1848 | case $ac_lo in #(( |
| 1849 | ?*) eval "$3=\$ac_lo"; ac_retval=0 ;; |
| 1850 | '') ac_retval=1 ;; |
| 1851 | esac |
| 1852 | else |
| 1853 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1854 | /* end confdefs.h. */ |
| 1855 | $4 |
| 1856 | static long int longval () { return $2; } |
| 1857 | static unsigned long int ulongval () { return $2; } |
| 1858 | #include <stdio.h> |
| 1859 | #include <stdlib.h> |
| 1860 | int |
| 1861 | main () |
| 1862 | { |
| 1863 | |
| 1864 | FILE *f = fopen ("conftest.val", "w"); |
| 1865 | if (! f) |
| 1866 | return 1; |
| 1867 | if (($2) < 0) |
| 1868 | { |
| 1869 | long int i = longval (); |
| 1870 | if (i != ($2)) |
| 1871 | return 1; |
| 1872 | fprintf (f, "%ld", i); |
| 1873 | } |
| 1874 | else |
| 1875 | { |
| 1876 | unsigned long int i = ulongval (); |
| 1877 | if (i != ($2)) |
| 1878 | return 1; |
| 1879 | fprintf (f, "%lu", i); |
| 1880 | } |
| 1881 | /* Do not output a trailing newline, as this causes \r\n confusion |
| 1882 | on some platforms. */ |
| 1883 | return ferror (f) || fclose (f) != 0; |
| 1884 | |
| 1885 | ; |
| 1886 | return 0; |
| 1887 | } |
| 1888 | _ACEOF |
| 1889 | if ac_fn_c_try_run "$LINENO"; then : |
| 1890 | echo >>conftest.val; read $3 <conftest.val; ac_retval=0 |
| 1891 | else |
| 1892 | ac_retval=1 |
| 1893 | fi |
| 1894 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 1895 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 1896 | rm -f conftest.val |
| 1897 | |
| 1898 | fi |
| 1899 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 1900 | as_fn_set_status $ac_retval |
| 1901 | |
| 1902 | } # ac_fn_c_compute_int |
| 1903 | |
| 1904 | # ac_fn_c_try_link LINENO |
| 1905 | # ----------------------- |
| 1906 | # Try to link conftest.$ac_ext, and return whether this succeeded. |
| 1907 | ac_fn_c_try_link () |
| 1908 | { |
| 1909 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1910 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 1911 | if { { ac_try="$ac_link" |
| 1912 | case "(($ac_try" in |
| 1913 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1914 | *) ac_try_echo=$ac_try;; |
| 1915 | esac |
| 1916 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1917 | $as_echo "$ac_try_echo"; } >&5 |
| 1918 | (eval "$ac_link") 2>conftest.err |
| 1919 | ac_status=$? |
| 1920 | if test -s conftest.err; then |
| 1921 | grep -v '^ *+' conftest.err >conftest.er1 |
| 1922 | cat conftest.er1 >&5 |
| 1923 | mv -f conftest.er1 conftest.err |
| 1924 | fi |
| 1925 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1926 | test $ac_status = 0; } && { |
| 1927 | test -z "$ac_c_werror_flag" || |
| 1928 | test ! -s conftest.err |
| 1929 | } && test -s conftest$ac_exeext && { |
| 1930 | test "$cross_compiling" = yes || |
| 1931 | test -x conftest$ac_exeext |
| 1932 | }; then : |
| 1933 | ac_retval=0 |
| 1934 | else |
| 1935 | $as_echo "$as_me: failed program was:" >&5 |
| 1936 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1937 | |
| 1938 | ac_retval=1 |
| 1939 | fi |
| 1940 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information |
| 1941 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would |
| 1942 | # interfere with the next link command; also delete a directory that is |
| 1943 | # left behind by Apple's compiler. We do this before executing the actions. |
| 1944 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
| 1945 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 1946 | as_fn_set_status $ac_retval |
| 1947 | |
| 1948 | } # ac_fn_c_try_link |
| 1949 | |
| 1950 | # ac_fn_c_check_func LINENO FUNC VAR |
| 1951 | # ---------------------------------- |
| 1952 | # Tests whether FUNC exists, setting the cache variable VAR accordingly |
| 1953 | ac_fn_c_check_func () |
| 1954 | { |
| 1955 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1956 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 1957 | $as_echo_n "checking for $2... " >&6; } |
| 1958 | if eval \${$3+:} false; then : |
| 1959 | $as_echo_n "(cached) " >&6 |
| 1960 | else |
| 1961 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1962 | /* end confdefs.h. */ |
| 1963 | /* Define $2 to an innocuous variant, in case <limits.h> declares $2. |
| 1964 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 1965 | #define $2 innocuous_$2 |
| 1966 | |
| 1967 | /* System header to define __stub macros and hopefully few prototypes, |
| 1968 | which can conflict with char $2 (); below. |
| 1969 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 1970 | <limits.h> exists even on freestanding compilers. */ |
| 1971 | |
| 1972 | #ifdef __STDC__ |
| 1973 | # include <limits.h> |
| 1974 | #else |
| 1975 | # include <assert.h> |
| 1976 | #endif |
| 1977 | |
| 1978 | #undef $2 |
| 1979 | |
| 1980 | /* Override any GCC internal prototype to avoid an error. |
| 1981 | Use char because int might match the return type of a GCC |
| 1982 | builtin and then its argument prototype would still apply. */ |
| 1983 | #ifdef __cplusplus |
| 1984 | extern "C" |
| 1985 | #endif |
| 1986 | char $2 (); |
| 1987 | /* The GNU C library defines this for functions which it implements |
| 1988 | to always fail with ENOSYS. Some functions are actually named |
| 1989 | something starting with __ and the normal name is an alias. */ |
| 1990 | #if defined __stub_$2 || defined __stub___$2 |
| 1991 | choke me |
| 1992 | #endif |
| 1993 | |
| 1994 | int |
| 1995 | main () |
| 1996 | { |
| 1997 | return $2 (); |
| 1998 | ; |
| 1999 | return 0; |
| 2000 | } |
| 2001 | _ACEOF |
| 2002 | if ac_fn_c_try_link "$LINENO"; then : |
| 2003 | eval "$3=yes" |
| 2004 | else |
| 2005 | eval "$3=no" |
| 2006 | fi |
| 2007 | rm -f core conftest.err conftest.$ac_objext \ |
| 2008 | conftest$ac_exeext conftest.$ac_ext |
| 2009 | fi |
| 2010 | eval ac_res=\$$3 |
| 2011 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 2012 | $as_echo "$ac_res" >&6; } |
| 2013 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 2014 | |
| 2015 | } # ac_fn_c_check_func |
| 2016 | cat >config.log <<_ACEOF |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2017 | This file contains any messages produced by compilers while |
| 2018 | running configure, to aid debugging if configure makes a mistake. |
| 2019 | |
Saúl Ibarra Corretgé | ff3d042 | 2014-10-01 11:24:15 +0200 | [diff] [blame^] | 2020 | It was created by libsrtp $as_me 1.4.5, which was |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2021 | generated by GNU Autoconf 2.69. Invocation command line was |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2022 | |
| 2023 | $ $0 $@ |
| 2024 | |
| 2025 | _ACEOF |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2026 | exec 5>>config.log |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2027 | { |
| 2028 | cat <<_ASUNAME |
| 2029 | ## --------- ## |
| 2030 | ## Platform. ## |
| 2031 | ## --------- ## |
| 2032 | |
| 2033 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 2034 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
| 2035 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
| 2036 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
| 2037 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
| 2038 | |
| 2039 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
| 2040 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
| 2041 | |
| 2042 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
| 2043 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
| 2044 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2045 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2046 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
| 2047 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
| 2048 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
| 2049 | |
| 2050 | _ASUNAME |
| 2051 | |
| 2052 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2053 | for as_dir in $PATH |
| 2054 | do |
| 2055 | IFS=$as_save_IFS |
| 2056 | test -z "$as_dir" && as_dir=. |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2057 | $as_echo "PATH: $as_dir" |
| 2058 | done |
| 2059 | IFS=$as_save_IFS |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2060 | |
| 2061 | } >&5 |
| 2062 | |
| 2063 | cat >&5 <<_ACEOF |
| 2064 | |
| 2065 | |
| 2066 | ## ----------- ## |
| 2067 | ## Core tests. ## |
| 2068 | ## ----------- ## |
| 2069 | |
| 2070 | _ACEOF |
| 2071 | |
| 2072 | |
| 2073 | # Keep a trace of the command line. |
| 2074 | # Strip out --no-create and --no-recursion so they do not pile up. |
| 2075 | # Strip out --silent because we don't want to record it for future runs. |
| 2076 | # Also quote any args containing shell meta-characters. |
| 2077 | # Make two passes to allow for proper duplicate-argument suppression. |
| 2078 | ac_configure_args= |
| 2079 | ac_configure_args0= |
| 2080 | ac_configure_args1= |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2081 | ac_must_keep_next=false |
| 2082 | for ac_pass in 1 2 |
| 2083 | do |
| 2084 | for ac_arg |
| 2085 | do |
| 2086 | case $ac_arg in |
| 2087 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
| 2088 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 2089 | | -silent | --silent | --silen | --sile | --sil) |
| 2090 | continue ;; |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2091 | *\'*) |
| 2092 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2093 | esac |
| 2094 | case $ac_pass in |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2095 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2096 | 2) |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2097 | as_fn_append ac_configure_args1 " '$ac_arg'" |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2098 | if test $ac_must_keep_next = true; then |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame] | 2099 | ac_must_keep_next=false # Got value, back to normal. |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2100 | else |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame] | 2101 | case $ac_arg in |
| 2102 | *=* | --config-cache | -C | -disable-* | --disable-* \ |
| 2103 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
| 2104 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
| 2105 | | -with-* | --with-* | -without-* | --without-* | --x) |
| 2106 | case "$ac_configure_args0 " in |
| 2107 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
| 2108 | esac |
| 2109 | ;; |
| 2110 | -* ) ac_must_keep_next=true ;; |
| 2111 | esac |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2112 | fi |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2113 | as_fn_append ac_configure_args " '$ac_arg'" |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2114 | ;; |
| 2115 | esac |
| 2116 | done |
| 2117 | done |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2118 | { ac_configure_args0=; unset ac_configure_args0;} |
| 2119 | { ac_configure_args1=; unset ac_configure_args1;} |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2120 | |
| 2121 | # When interrupted or exit'd, cleanup temporary files, and complete |
| 2122 | # config.log. We remove comments because anyway the quotes in there |
| 2123 | # would cause problems or look ugly. |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2124 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
| 2125 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2126 | trap 'exit_status=$? |
| 2127 | # Save into config.log some information that might help in debugging. |
| 2128 | { |
| 2129 | echo |
| 2130 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2131 | $as_echo "## ---------------- ## |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2132 | ## Cache variables. ## |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2133 | ## ---------------- ##" |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2134 | echo |
| 2135 | # The following way of writing the cache mishandles newlines in values, |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2136 | ( |
| 2137 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do |
| 2138 | eval ac_val=\$$ac_var |
| 2139 | case $ac_val in #( |
| 2140 | *${as_nl}*) |
| 2141 | case $ac_var in #( |
| 2142 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
| 2143 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
| 2144 | esac |
| 2145 | case $ac_var in #( |
| 2146 | _ | IFS | as_nl) ;; #( |
| 2147 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
| 2148 | *) { eval $ac_var=; unset $ac_var;} ;; |
| 2149 | esac ;; |
| 2150 | esac |
| 2151 | done |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2152 | (set) 2>&1 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2153 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
| 2154 | *${as_nl}ac_space=\ *) |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2155 | sed -n \ |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2156 | "s/'\''/'\''\\\\'\'''\''/g; |
| 2157 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" |
| 2158 | ;; #( |
Cullen Jennings | 52c5cd3 | 2013-05-01 18:07:29 -0600 | [diff] [blame] | 2159 | *) |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2160 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
Cullen Jennings | 52c5cd3 | 2013-05-01 18:07:29 -0600 | [diff] [blame] | 2161 | ;; |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2162 | esac | |
| 2163 | sort |
| 2164 | ) |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2165 | echo |
| 2166 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2167 | $as_echo "## ----------------- ## |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2168 | ## Output variables. ## |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2169 | ## ----------------- ##" |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2170 | echo |
| 2171 | for ac_var in $ac_subst_vars |
| 2172 | do |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2173 | eval ac_val=\$$ac_var |
| 2174 | case $ac_val in |
| 2175 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
| 2176 | esac |
| 2177 | $as_echo "$ac_var='\''$ac_val'\''" |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2178 | done | sort |
| 2179 | echo |
| 2180 | |
| 2181 | if test -n "$ac_subst_files"; then |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2182 | $as_echo "## ------------------- ## |
| 2183 | ## File substitutions. ## |
| 2184 | ## ------------------- ##" |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2185 | echo |
| 2186 | for ac_var in $ac_subst_files |
| 2187 | do |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2188 | eval ac_val=\$$ac_var |
| 2189 | case $ac_val in |
| 2190 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
| 2191 | esac |
| 2192 | $as_echo "$ac_var='\''$ac_val'\''" |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2193 | done | sort |
| 2194 | echo |
| 2195 | fi |
| 2196 | |
| 2197 | if test -s confdefs.h; then |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2198 | $as_echo "## ----------- ## |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2199 | ## confdefs.h. ## |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2200 | ## ----------- ##" |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2201 | echo |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2202 | cat confdefs.h |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2203 | echo |
| 2204 | fi |
| 2205 | test "$ac_signal" != 0 && |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2206 | $as_echo "$as_me: caught signal $ac_signal" |
| 2207 | $as_echo "$as_me: exit $exit_status" |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2208 | } >&5 |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2209 | rm -f core *.core core.conftest.* && |
| 2210 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2211 | exit $exit_status |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2212 | ' 0 |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2213 | for ac_signal in 1 2 13 15; do |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2214 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2215 | done |
| 2216 | ac_signal=0 |
| 2217 | |
| 2218 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2219 | rm -f -r conftest* confdefs.h |
| 2220 | |
| 2221 | $as_echo "/* confdefs.h */" > confdefs.h |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2222 | |
| 2223 | # Predefined preprocessor variables. |
| 2224 | |
| 2225 | cat >>confdefs.h <<_ACEOF |
| 2226 | #define PACKAGE_NAME "$PACKAGE_NAME" |
| 2227 | _ACEOF |
| 2228 | |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2229 | cat >>confdefs.h <<_ACEOF |
| 2230 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
| 2231 | _ACEOF |
| 2232 | |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2233 | cat >>confdefs.h <<_ACEOF |
| 2234 | #define PACKAGE_VERSION "$PACKAGE_VERSION" |
| 2235 | _ACEOF |
| 2236 | |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2237 | cat >>confdefs.h <<_ACEOF |
| 2238 | #define PACKAGE_STRING "$PACKAGE_STRING" |
| 2239 | _ACEOF |
| 2240 | |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2241 | cat >>confdefs.h <<_ACEOF |
| 2242 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
| 2243 | _ACEOF |
| 2244 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2245 | cat >>confdefs.h <<_ACEOF |
| 2246 | #define PACKAGE_URL "$PACKAGE_URL" |
| 2247 | _ACEOF |
| 2248 | |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2249 | |
| 2250 | # Let the site file select an alternate cache file if it wants to. |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2251 | # Prefer an explicitly selected file to automatically selected ones. |
| 2252 | ac_site_file1=NONE |
| 2253 | ac_site_file2=NONE |
| 2254 | if test -n "$CONFIG_SITE"; then |
| 2255 | # We do not want a PATH search for config.site. |
| 2256 | case $CONFIG_SITE in #(( |
| 2257 | -*) ac_site_file1=./$CONFIG_SITE;; |
| 2258 | */*) ac_site_file1=$CONFIG_SITE;; |
| 2259 | *) ac_site_file1=./$CONFIG_SITE;; |
| 2260 | esac |
| 2261 | elif test "x$prefix" != xNONE; then |
| 2262 | ac_site_file1=$prefix/share/config.site |
| 2263 | ac_site_file2=$prefix/etc/config.site |
| 2264 | else |
| 2265 | ac_site_file1=$ac_default_prefix/share/config.site |
| 2266 | ac_site_file2=$ac_default_prefix/etc/config.site |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2267 | fi |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2268 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" |
| 2269 | do |
| 2270 | test "x$ac_site_file" = xNONE && continue |
| 2271 | if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then |
| 2272 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 |
| 2273 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2274 | sed 's/^/| /' "$ac_site_file" >&5 |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2275 | . "$ac_site_file" \ |
| 2276 | || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 2277 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 2278 | as_fn_error $? "failed to load site script $ac_site_file |
| 2279 | See \`config.log' for more details" "$LINENO" 5; } |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2280 | fi |
| 2281 | done |
| 2282 | |
| 2283 | if test -r "$cache_file"; then |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2284 | # Some versions of bash will fail to source /dev/null (special files |
| 2285 | # actually), so we avoid doing that. DJGPP emulates it as a regular file. |
| 2286 | if test /dev/null != "$cache_file" && test -f "$cache_file"; then |
| 2287 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 |
| 2288 | $as_echo "$as_me: loading cache $cache_file" >&6;} |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2289 | case $cache_file in |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2290 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
| 2291 | *) . "./$cache_file";; |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2292 | esac |
| 2293 | fi |
| 2294 | else |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2295 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 |
| 2296 | $as_echo "$as_me: creating cache $cache_file" >&6;} |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2297 | >$cache_file |
| 2298 | fi |
| 2299 | |
| 2300 | # Check that the precious variables saved in the cache have kept the same |
| 2301 | # value. |
| 2302 | ac_cache_corrupted=false |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2303 | for ac_var in $ac_precious_vars; do |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2304 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
| 2305 | eval ac_new_set=\$ac_env_${ac_var}_set |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2306 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
| 2307 | eval ac_new_val=\$ac_env_${ac_var}_value |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2308 | case $ac_old_set,$ac_new_set in |
| 2309 | set,) |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2310 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
| 2311 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2312 | ac_cache_corrupted=: ;; |
| 2313 | ,set) |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2314 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 |
| 2315 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2316 | ac_cache_corrupted=: ;; |
| 2317 | ,);; |
| 2318 | *) |
| 2319 | if test "x$ac_old_val" != "x$ac_new_val"; then |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2320 | # differences in whitespace do not lead to failure. |
| 2321 | ac_old_val_w=`echo x $ac_old_val` |
| 2322 | ac_new_val_w=`echo x $ac_new_val` |
| 2323 | if test "$ac_old_val_w" != "$ac_new_val_w"; then |
| 2324 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 |
| 2325 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
| 2326 | ac_cache_corrupted=: |
| 2327 | else |
| 2328 | { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 |
| 2329 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} |
| 2330 | eval $ac_var=\$ac_old_val |
| 2331 | fi |
| 2332 | { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 |
| 2333 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} |
| 2334 | { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 |
| 2335 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2336 | fi;; |
| 2337 | esac |
| 2338 | # Pass precious variables to config.status. |
| 2339 | if test "$ac_new_set" = set; then |
| 2340 | case $ac_new_val in |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2341 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2342 | *) ac_arg=$ac_var=$ac_new_val ;; |
| 2343 | esac |
| 2344 | case " $ac_configure_args " in |
| 2345 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2346 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2347 | esac |
| 2348 | fi |
| 2349 | done |
| 2350 | if $ac_cache_corrupted; then |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2351 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 2352 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 2353 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 |
| 2354 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
| 2355 | as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2356 | fi |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2357 | ## -------------------- ## |
| 2358 | ## Main body of script. ## |
| 2359 | ## -------------------- ## |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2360 | |
| 2361 | ac_ext=c |
| 2362 | ac_cpp='$CPP $CPPFLAGS' |
| 2363 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2364 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2365 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2366 | |
| 2367 | |
| 2368 | |
David McGrew | b67061f | 2005-09-28 14:23:06 +0000 | [diff] [blame] | 2369 | if test -z "$CFLAGS"; then |
Sean Bright | bfb9e30 | 2014-03-24 20:45:17 -0400 | [diff] [blame] | 2370 | CFLAGS="-fPIC -Wall -O4 -fexpensive-optimizations -funroll-loops" |
David McGrew | b67061f | 2005-09-28 14:23:06 +0000 | [diff] [blame] | 2371 | fi |
| 2372 | |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2373 | if test -n "$ac_tool_prefix"; then |
| 2374 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
| 2375 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2376 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 2377 | $as_echo_n "checking for $ac_word... " >&6; } |
| 2378 | if ${ac_cv_prog_RANLIB+:} false; then : |
| 2379 | $as_echo_n "(cached) " >&6 |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2380 | else |
| 2381 | if test -n "$RANLIB"; then |
| 2382 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 2383 | else |
| 2384 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2385 | for as_dir in $PATH |
| 2386 | do |
| 2387 | IFS=$as_save_IFS |
| 2388 | test -z "$as_dir" && as_dir=. |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2389 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2390 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2391 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2392 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2393 | break 2 |
| 2394 | fi |
| 2395 | done |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2396 | done |
| 2397 | IFS=$as_save_IFS |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2398 | |
| 2399 | fi |
| 2400 | fi |
| 2401 | RANLIB=$ac_cv_prog_RANLIB |
| 2402 | if test -n "$RANLIB"; then |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2403 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 |
| 2404 | $as_echo "$RANLIB" >&6; } |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2405 | else |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2406 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 2407 | $as_echo "no" >&6; } |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2408 | fi |
| 2409 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2410 | |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2411 | fi |
| 2412 | if test -z "$ac_cv_prog_RANLIB"; then |
| 2413 | ac_ct_RANLIB=$RANLIB |
| 2414 | # Extract the first word of "ranlib", so it can be a program name with args. |
| 2415 | set dummy ranlib; ac_word=$2 |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2416 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 2417 | $as_echo_n "checking for $ac_word... " >&6; } |
| 2418 | if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : |
| 2419 | $as_echo_n "(cached) " >&6 |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2420 | else |
| 2421 | if test -n "$ac_ct_RANLIB"; then |
| 2422 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
| 2423 | else |
| 2424 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2425 | for as_dir in $PATH |
| 2426 | do |
| 2427 | IFS=$as_save_IFS |
| 2428 | test -z "$as_dir" && as_dir=. |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2429 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2430 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2431 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2432 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2433 | break 2 |
| 2434 | fi |
| 2435 | done |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2436 | done |
| 2437 | IFS=$as_save_IFS |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2438 | |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2439 | fi |
| 2440 | fi |
| 2441 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
| 2442 | if test -n "$ac_ct_RANLIB"; then |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2443 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 |
| 2444 | $as_echo "$ac_ct_RANLIB" >&6; } |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2445 | else |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2446 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 2447 | $as_echo "no" >&6; } |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2448 | fi |
| 2449 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2450 | if test "x$ac_ct_RANLIB" = x; then |
| 2451 | RANLIB=":" |
| 2452 | else |
| 2453 | case $cross_compiling:$ac_tool_warned in |
| 2454 | yes:) |
| 2455 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 2456 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 2457 | ac_tool_warned=yes ;; |
| 2458 | esac |
| 2459 | RANLIB=$ac_ct_RANLIB |
| 2460 | fi |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2461 | else |
| 2462 | RANLIB="$ac_cv_prog_RANLIB" |
| 2463 | fi |
| 2464 | |
| 2465 | ac_ext=c |
| 2466 | ac_cpp='$CPP $CPPFLAGS' |
| 2467 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2468 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2469 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2470 | if test -n "$ac_tool_prefix"; then |
| 2471 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
| 2472 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2473 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 2474 | $as_echo_n "checking for $ac_word... " >&6; } |
| 2475 | if ${ac_cv_prog_CC+:} false; then : |
| 2476 | $as_echo_n "(cached) " >&6 |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2477 | else |
| 2478 | if test -n "$CC"; then |
| 2479 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2480 | else |
| 2481 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2482 | for as_dir in $PATH |
| 2483 | do |
| 2484 | IFS=$as_save_IFS |
| 2485 | test -z "$as_dir" && as_dir=. |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2486 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2487 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2488 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2489 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2490 | break 2 |
| 2491 | fi |
| 2492 | done |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2493 | done |
| 2494 | IFS=$as_save_IFS |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2495 | |
| 2496 | fi |
| 2497 | fi |
| 2498 | CC=$ac_cv_prog_CC |
| 2499 | if test -n "$CC"; then |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2500 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 2501 | $as_echo "$CC" >&6; } |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2502 | else |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2503 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 2504 | $as_echo "no" >&6; } |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2505 | fi |
| 2506 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2507 | |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2508 | fi |
| 2509 | if test -z "$ac_cv_prog_CC"; then |
| 2510 | ac_ct_CC=$CC |
| 2511 | # Extract the first word of "gcc", so it can be a program name with args. |
| 2512 | set dummy gcc; ac_word=$2 |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2513 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 2514 | $as_echo_n "checking for $ac_word... " >&6; } |
| 2515 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
| 2516 | $as_echo_n "(cached) " >&6 |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2517 | else |
| 2518 | if test -n "$ac_ct_CC"; then |
| 2519 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 2520 | else |
| 2521 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2522 | for as_dir in $PATH |
| 2523 | do |
| 2524 | IFS=$as_save_IFS |
| 2525 | test -z "$as_dir" && as_dir=. |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2526 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2527 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2528 | ac_cv_prog_ac_ct_CC="gcc" |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2529 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2530 | break 2 |
| 2531 | fi |
| 2532 | done |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2533 | done |
| 2534 | IFS=$as_save_IFS |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2535 | |
| 2536 | fi |
| 2537 | fi |
| 2538 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 2539 | if test -n "$ac_ct_CC"; then |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2540 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
| 2541 | $as_echo "$ac_ct_CC" >&6; } |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2542 | else |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2543 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 2544 | $as_echo "no" >&6; } |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2545 | fi |
| 2546 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2547 | if test "x$ac_ct_CC" = x; then |
| 2548 | CC="" |
| 2549 | else |
| 2550 | case $cross_compiling:$ac_tool_warned in |
| 2551 | yes:) |
| 2552 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 2553 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 2554 | ac_tool_warned=yes ;; |
| 2555 | esac |
| 2556 | CC=$ac_ct_CC |
| 2557 | fi |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2558 | else |
| 2559 | CC="$ac_cv_prog_CC" |
| 2560 | fi |
| 2561 | |
| 2562 | if test -z "$CC"; then |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2563 | if test -n "$ac_tool_prefix"; then |
| 2564 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2565 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2566 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 2567 | $as_echo_n "checking for $ac_word... " >&6; } |
| 2568 | if ${ac_cv_prog_CC+:} false; then : |
| 2569 | $as_echo_n "(cached) " >&6 |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2570 | else |
| 2571 | if test -n "$CC"; then |
| 2572 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2573 | else |
| 2574 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2575 | for as_dir in $PATH |
| 2576 | do |
| 2577 | IFS=$as_save_IFS |
| 2578 | test -z "$as_dir" && as_dir=. |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2579 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2580 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2581 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2582 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2583 | break 2 |
| 2584 | fi |
| 2585 | done |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2586 | done |
| 2587 | IFS=$as_save_IFS |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2588 | |
| 2589 | fi |
| 2590 | fi |
| 2591 | CC=$ac_cv_prog_CC |
| 2592 | if test -n "$CC"; then |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2593 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 2594 | $as_echo "$CC" >&6; } |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2595 | else |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2596 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 2597 | $as_echo "no" >&6; } |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2598 | fi |
| 2599 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2600 | |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2601 | fi |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2602 | fi |
| 2603 | if test -z "$CC"; then |
| 2604 | # Extract the first word of "cc", so it can be a program name with args. |
| 2605 | set dummy cc; ac_word=$2 |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2606 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 2607 | $as_echo_n "checking for $ac_word... " >&6; } |
| 2608 | if ${ac_cv_prog_CC+:} false; then : |
| 2609 | $as_echo_n "(cached) " >&6 |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2610 | else |
| 2611 | if test -n "$CC"; then |
| 2612 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2613 | else |
| 2614 | ac_prog_rejected=no |
| 2615 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2616 | for as_dir in $PATH |
| 2617 | do |
| 2618 | IFS=$as_save_IFS |
| 2619 | test -z "$as_dir" && as_dir=. |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2620 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2621 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2622 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
| 2623 | ac_prog_rejected=yes |
| 2624 | continue |
| 2625 | fi |
| 2626 | ac_cv_prog_CC="cc" |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2627 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2628 | break 2 |
| 2629 | fi |
| 2630 | done |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2631 | done |
| 2632 | IFS=$as_save_IFS |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2633 | |
| 2634 | if test $ac_prog_rejected = yes; then |
| 2635 | # We found a bogon in the path, so make sure we never use it. |
| 2636 | set dummy $ac_cv_prog_CC |
| 2637 | shift |
| 2638 | if test $# != 0; then |
| 2639 | # We chose a different compiler from the bogus one. |
| 2640 | # However, it has the same basename, so the bogon will be chosen |
| 2641 | # first if we set CC to just the basename; use the full file name. |
| 2642 | shift |
| 2643 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
| 2644 | fi |
| 2645 | fi |
| 2646 | fi |
| 2647 | fi |
| 2648 | CC=$ac_cv_prog_CC |
| 2649 | if test -n "$CC"; then |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2650 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 2651 | $as_echo "$CC" >&6; } |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2652 | else |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2653 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 2654 | $as_echo "no" >&6; } |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2655 | fi |
| 2656 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2657 | |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2658 | fi |
| 2659 | if test -z "$CC"; then |
| 2660 | if test -n "$ac_tool_prefix"; then |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2661 | for ac_prog in cl.exe |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2662 | do |
| 2663 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 2664 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2665 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 2666 | $as_echo_n "checking for $ac_word... " >&6; } |
| 2667 | if ${ac_cv_prog_CC+:} false; then : |
| 2668 | $as_echo_n "(cached) " >&6 |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2669 | else |
| 2670 | if test -n "$CC"; then |
| 2671 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2672 | else |
| 2673 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2674 | for as_dir in $PATH |
| 2675 | do |
| 2676 | IFS=$as_save_IFS |
| 2677 | test -z "$as_dir" && as_dir=. |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2678 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2679 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2680 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2681 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2682 | break 2 |
| 2683 | fi |
| 2684 | done |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2685 | done |
| 2686 | IFS=$as_save_IFS |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2687 | |
| 2688 | fi |
| 2689 | fi |
| 2690 | CC=$ac_cv_prog_CC |
| 2691 | if test -n "$CC"; then |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2692 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 2693 | $as_echo "$CC" >&6; } |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2694 | else |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2695 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 2696 | $as_echo "no" >&6; } |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2697 | fi |
| 2698 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2699 | |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2700 | test -n "$CC" && break |
| 2701 | done |
| 2702 | fi |
| 2703 | if test -z "$CC"; then |
| 2704 | ac_ct_CC=$CC |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2705 | for ac_prog in cl.exe |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2706 | do |
| 2707 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 2708 | set dummy $ac_prog; ac_word=$2 |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2709 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 2710 | $as_echo_n "checking for $ac_word... " >&6; } |
| 2711 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
| 2712 | $as_echo_n "(cached) " >&6 |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2713 | else |
| 2714 | if test -n "$ac_ct_CC"; then |
| 2715 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 2716 | else |
| 2717 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2718 | for as_dir in $PATH |
| 2719 | do |
| 2720 | IFS=$as_save_IFS |
| 2721 | test -z "$as_dir" && as_dir=. |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2722 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2723 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2724 | ac_cv_prog_ac_ct_CC="$ac_prog" |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2725 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2726 | break 2 |
| 2727 | fi |
| 2728 | done |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2729 | done |
| 2730 | IFS=$as_save_IFS |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2731 | |
| 2732 | fi |
| 2733 | fi |
| 2734 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 2735 | if test -n "$ac_ct_CC"; then |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2736 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
| 2737 | $as_echo "$ac_ct_CC" >&6; } |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2738 | else |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2739 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 2740 | $as_echo "no" >&6; } |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2741 | fi |
| 2742 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2743 | |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2744 | test -n "$ac_ct_CC" && break |
| 2745 | done |
| 2746 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2747 | if test "x$ac_ct_CC" = x; then |
| 2748 | CC="" |
| 2749 | else |
| 2750 | case $cross_compiling:$ac_tool_warned in |
| 2751 | yes:) |
| 2752 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 2753 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 2754 | ac_tool_warned=yes ;; |
| 2755 | esac |
| 2756 | CC=$ac_ct_CC |
| 2757 | fi |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2758 | fi |
| 2759 | |
| 2760 | fi |
| 2761 | |
| 2762 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2763 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 2764 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 2765 | as_fn_error $? "no acceptable C compiler found in \$PATH |
| 2766 | See \`config.log' for more details" "$LINENO" 5; } |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2767 | |
| 2768 | # Provide some information about the compiler. |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2769 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 |
| 2770 | set X $ac_compile |
| 2771 | ac_compiler=$2 |
| 2772 | for ac_option in --version -v -V -qversion; do |
| 2773 | { { ac_try="$ac_compiler $ac_option >&5" |
| 2774 | case "(($ac_try" in |
| 2775 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2776 | *) ac_try_echo=$ac_try;; |
| 2777 | esac |
| 2778 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 2779 | $as_echo "$ac_try_echo"; } >&5 |
| 2780 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2781 | ac_status=$? |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2782 | if test -s conftest.err; then |
| 2783 | sed '10a\ |
| 2784 | ... rest of stderr output deleted ... |
| 2785 | 10q' conftest.err >conftest.er1 |
| 2786 | cat conftest.er1 >&5 |
| 2787 | fi |
| 2788 | rm -f conftest.er1 conftest.err |
| 2789 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 2790 | test $ac_status = 0; } |
| 2791 | done |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2792 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2793 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2794 | /* end confdefs.h. */ |
| 2795 | |
| 2796 | int |
| 2797 | main () |
| 2798 | { |
| 2799 | |
| 2800 | ; |
| 2801 | return 0; |
| 2802 | } |
| 2803 | _ACEOF |
| 2804 | ac_clean_files_save=$ac_clean_files |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2805 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2806 | # Try to create an executable without -o first, disregard a.out. |
| 2807 | # It will help us diagnose broken compilers, and finding out an intuition |
| 2808 | # of exeext. |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2809 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 |
| 2810 | $as_echo_n "checking whether the C compiler works... " >&6; } |
| 2811 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
Cullen Jennings | 52c5cd3 | 2013-05-01 18:07:29 -0600 | [diff] [blame] | 2812 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2813 | # The possible output files: |
| 2814 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" |
| 2815 | |
| 2816 | ac_rmfiles= |
| 2817 | for ac_file in $ac_files |
| 2818 | do |
| 2819 | case $ac_file in |
| 2820 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
| 2821 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; |
| 2822 | esac |
| 2823 | done |
| 2824 | rm -f $ac_rmfiles |
| 2825 | |
| 2826 | if { { ac_try="$ac_link_default" |
| 2827 | case "(($ac_try" in |
| 2828 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2829 | *) ac_try_echo=$ac_try;; |
| 2830 | esac |
| 2831 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 2832 | $as_echo "$ac_try_echo"; } >&5 |
| 2833 | (eval "$ac_link_default") 2>&5 |
| 2834 | ac_status=$? |
| 2835 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 2836 | test $ac_status = 0; }; then : |
| 2837 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
| 2838 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' |
| 2839 | # in a Makefile. We should not override ac_cv_exeext if it was cached, |
| 2840 | # so that the user can short-circuit this test for compilers unknown to |
| 2841 | # Autoconf. |
| 2842 | for ac_file in $ac_files '' |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2843 | do |
| 2844 | test -f "$ac_file" || continue |
| 2845 | case $ac_file in |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2846 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame] | 2847 | ;; |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2848 | [ab].out ) |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame] | 2849 | # We found the default executable, but exeext='' is most |
| 2850 | # certainly right. |
| 2851 | break;; |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2852 | *.* ) |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2853 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
| 2854 | then :; else |
| 2855 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 2856 | fi |
| 2857 | # We set ac_cv_exeext here because the later test for it is not |
| 2858 | # safe: cross compilers may not add the suffix if given an `-o' |
| 2859 | # argument, so we may need to know it at that point already. |
| 2860 | # Even if this section looks crufty: it has the advantage of |
| 2861 | # actually working. |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame] | 2862 | break;; |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2863 | * ) |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame] | 2864 | break;; |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2865 | esac |
| 2866 | done |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2867 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
| 2868 | |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2869 | else |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2870 | ac_file='' |
| 2871 | fi |
| 2872 | if test -z "$ac_file"; then : |
| 2873 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 2874 | $as_echo "no" >&6; } |
| 2875 | $as_echo "$as_me: failed program was:" >&5 |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2876 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2877 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2878 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 2879 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 2880 | as_fn_error 77 "C compiler cannot create executables |
| 2881 | See \`config.log' for more details" "$LINENO" 5; } |
| 2882 | else |
| 2883 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 2884 | $as_echo "yes" >&6; } |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2885 | fi |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2886 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 |
| 2887 | $as_echo_n "checking for C compiler default output file name... " >&6; } |
| 2888 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 |
| 2889 | $as_echo "$ac_file" >&6; } |
Cullen Jennings | 52c5cd3 | 2013-05-01 18:07:29 -0600 | [diff] [blame] | 2890 | ac_exeext=$ac_cv_exeext |
Cullen Jennings | 52c5cd3 | 2013-05-01 18:07:29 -0600 | [diff] [blame] | 2891 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2892 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out |
Cullen Jennings | 52c5cd3 | 2013-05-01 18:07:29 -0600 | [diff] [blame] | 2893 | ac_clean_files=$ac_clean_files_save |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2894 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 |
| 2895 | $as_echo_n "checking for suffix of executables... " >&6; } |
| 2896 | if { { ac_try="$ac_link" |
| 2897 | case "(($ac_try" in |
| 2898 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2899 | *) ac_try_echo=$ac_try;; |
| 2900 | esac |
| 2901 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 2902 | $as_echo "$ac_try_echo"; } >&5 |
| 2903 | (eval "$ac_link") 2>&5 |
Cullen Jennings | 52c5cd3 | 2013-05-01 18:07:29 -0600 | [diff] [blame] | 2904 | ac_status=$? |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2905 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 2906 | test $ac_status = 0; }; then : |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2907 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
| 2908 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
| 2909 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
| 2910 | # `rm'. |
| 2911 | for ac_file in conftest.exe conftest conftest.*; do |
| 2912 | test -f "$ac_file" || continue |
| 2913 | case $ac_file in |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2914 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2915 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame] | 2916 | break;; |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2917 | * ) break;; |
| 2918 | esac |
| 2919 | done |
| 2920 | else |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2921 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 2922 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 2923 | as_fn_error $? "cannot compute suffix of executables: cannot compile and link |
| 2924 | See \`config.log' for more details" "$LINENO" 5; } |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2925 | fi |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2926 | rm -f conftest conftest$ac_cv_exeext |
| 2927 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 |
| 2928 | $as_echo "$ac_cv_exeext" >&6; } |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2929 | |
| 2930 | rm -f conftest.$ac_ext |
| 2931 | EXEEXT=$ac_cv_exeext |
| 2932 | ac_exeext=$EXEEXT |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2933 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2934 | /* end confdefs.h. */ |
| 2935 | #include <stdio.h> |
| 2936 | int |
| 2937 | main () |
| 2938 | { |
| 2939 | FILE *f = fopen ("conftest.out", "w"); |
| 2940 | return ferror (f) || fclose (f) != 0; |
| 2941 | |
| 2942 | ; |
| 2943 | return 0; |
| 2944 | } |
Cullen Jennings | 52c5cd3 | 2013-05-01 18:07:29 -0600 | [diff] [blame] | 2945 | _ACEOF |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2946 | ac_clean_files="$ac_clean_files conftest.out" |
| 2947 | # Check that the compiler produces executables we can run. If not, either |
| 2948 | # the compiler is broken, or we cross compile. |
| 2949 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 |
| 2950 | $as_echo_n "checking whether we are cross compiling... " >&6; } |
| 2951 | if test "$cross_compiling" != yes; then |
| 2952 | { { ac_try="$ac_link" |
| 2953 | case "(($ac_try" in |
| 2954 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2955 | *) ac_try_echo=$ac_try;; |
| 2956 | esac |
| 2957 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 2958 | $as_echo "$ac_try_echo"; } >&5 |
| 2959 | (eval "$ac_link") 2>&5 |
| 2960 | ac_status=$? |
| 2961 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 2962 | test $ac_status = 0; } |
| 2963 | if { ac_try='./conftest$ac_cv_exeext' |
| 2964 | { { case "(($ac_try" in |
| 2965 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2966 | *) ac_try_echo=$ac_try;; |
| 2967 | esac |
| 2968 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 2969 | $as_echo "$ac_try_echo"; } >&5 |
| 2970 | (eval "$ac_try") 2>&5 |
| 2971 | ac_status=$? |
| 2972 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 2973 | test $ac_status = 0; }; }; then |
| 2974 | cross_compiling=no |
| 2975 | else |
| 2976 | if test "$cross_compiling" = maybe; then |
| 2977 | cross_compiling=yes |
| 2978 | else |
| 2979 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 2980 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 2981 | as_fn_error $? "cannot run C compiled programs. |
| 2982 | If you meant to cross compile, use \`--host'. |
| 2983 | See \`config.log' for more details" "$LINENO" 5; } |
| 2984 | fi |
| 2985 | fi |
| 2986 | fi |
| 2987 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 |
| 2988 | $as_echo "$cross_compiling" >&6; } |
| 2989 | |
| 2990 | rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out |
| 2991 | ac_clean_files=$ac_clean_files_save |
| 2992 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 |
| 2993 | $as_echo_n "checking for suffix of object files... " >&6; } |
| 2994 | if ${ac_cv_objext+:} false; then : |
| 2995 | $as_echo_n "(cached) " >&6 |
| 2996 | else |
| 2997 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2998 | /* end confdefs.h. */ |
| 2999 | |
| 3000 | int |
| 3001 | main () |
| 3002 | { |
| 3003 | |
| 3004 | ; |
| 3005 | return 0; |
| 3006 | } |
| 3007 | _ACEOF |
| 3008 | rm -f conftest.o conftest.obj |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 3009 | if { { ac_try="$ac_compile" |
| 3010 | case "(($ac_try" in |
| 3011 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3012 | *) ac_try_echo=$ac_try;; |
| 3013 | esac |
| 3014 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3015 | $as_echo "$ac_try_echo"; } >&5 |
| 3016 | (eval "$ac_compile") 2>&5 |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 3017 | ac_status=$? |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 3018 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3019 | test $ac_status = 0; }; then : |
| 3020 | for ac_file in conftest.o conftest.obj conftest.*; do |
| 3021 | test -f "$ac_file" || continue; |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 3022 | case $ac_file in |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 3023 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 3024 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
| 3025 | break;; |
| 3026 | esac |
| 3027 | done |
| 3028 | else |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 3029 | $as_echo "$as_me: failed program was:" >&5 |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 3030 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3031 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 3032 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 3033 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 3034 | as_fn_error $? "cannot compute suffix of object files: cannot compile |
| 3035 | See \`config.log' for more details" "$LINENO" 5; } |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 3036 | fi |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 3037 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
| 3038 | fi |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 3039 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 |
| 3040 | $as_echo "$ac_cv_objext" >&6; } |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 3041 | OBJEXT=$ac_cv_objext |
| 3042 | ac_objext=$OBJEXT |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 3043 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 |
| 3044 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } |
| 3045 | if ${ac_cv_c_compiler_gnu+:} false; then : |
| 3046 | $as_echo_n "(cached) " >&6 |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 3047 | else |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 3048 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 3049 | /* end confdefs.h. */ |
| 3050 | |
| 3051 | int |
| 3052 | main () |
| 3053 | { |
| 3054 | #ifndef __GNUC__ |
| 3055 | choke me |
| 3056 | #endif |
| 3057 | |
| 3058 | ; |
| 3059 | return 0; |
| 3060 | } |
| 3061 | _ACEOF |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 3062 | if ac_fn_c_try_compile "$LINENO"; then : |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 3063 | ac_compiler_gnu=yes |
| 3064 | else |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 3065 | ac_compiler_gnu=no |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 3066 | fi |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 3067 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 3068 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
| 3069 | |
| 3070 | fi |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 3071 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
| 3072 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } |
| 3073 | if test $ac_compiler_gnu = yes; then |
| 3074 | GCC=yes |
| 3075 | else |
| 3076 | GCC= |
| 3077 | fi |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 3078 | ac_test_CFLAGS=${CFLAGS+set} |
| 3079 | ac_save_CFLAGS=$CFLAGS |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 3080 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 |
| 3081 | $as_echo_n "checking whether $CC accepts -g... " >&6; } |
| 3082 | if ${ac_cv_prog_cc_g+:} false; then : |
| 3083 | $as_echo_n "(cached) " >&6 |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 3084 | else |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 3085 | ac_save_c_werror_flag=$ac_c_werror_flag |
| 3086 | ac_c_werror_flag=yes |
| 3087 | ac_cv_prog_cc_g=no |
| 3088 | CFLAGS="-g" |
| 3089 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 3090 | /* end confdefs.h. */ |
| 3091 | |
| 3092 | int |
| 3093 | main () |
| 3094 | { |
| 3095 | |
| 3096 | ; |
| 3097 | return 0; |
| 3098 | } |
| 3099 | _ACEOF |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 3100 | if ac_fn_c_try_compile "$LINENO"; then : |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 3101 | ac_cv_prog_cc_g=yes |
| 3102 | else |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 3103 | CFLAGS="" |
| 3104 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3105 | /* end confdefs.h. */ |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 3106 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 3107 | int |
| 3108 | main () |
| 3109 | { |
| 3110 | |
| 3111 | ; |
| 3112 | return 0; |
| 3113 | } |
| 3114 | _ACEOF |
| 3115 | if ac_fn_c_try_compile "$LINENO"; then : |
| 3116 | |
| 3117 | else |
| 3118 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 3119 | CFLAGS="-g" |
| 3120 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3121 | /* end confdefs.h. */ |
| 3122 | |
| 3123 | int |
| 3124 | main () |
| 3125 | { |
| 3126 | |
| 3127 | ; |
| 3128 | return 0; |
| 3129 | } |
| 3130 | _ACEOF |
| 3131 | if ac_fn_c_try_compile "$LINENO"; then : |
| 3132 | ac_cv_prog_cc_g=yes |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 3133 | fi |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 3134 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 3135 | fi |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 3136 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3137 | fi |
| 3138 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3139 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 3140 | fi |
| 3141 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 |
| 3142 | $as_echo "$ac_cv_prog_cc_g" >&6; } |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 3143 | if test "$ac_test_CFLAGS" = set; then |
| 3144 | CFLAGS=$ac_save_CFLAGS |
| 3145 | elif test $ac_cv_prog_cc_g = yes; then |
| 3146 | if test "$GCC" = yes; then |
| 3147 | CFLAGS="-g -O2" |
| 3148 | else |
| 3149 | CFLAGS="-g" |
| 3150 | fi |
| 3151 | else |
| 3152 | if test "$GCC" = yes; then |
| 3153 | CFLAGS="-O2" |
| 3154 | else |
| 3155 | CFLAGS= |
| 3156 | fi |
| 3157 | fi |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 3158 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 |
| 3159 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } |
| 3160 | if ${ac_cv_prog_cc_c89+:} false; then : |
| 3161 | $as_echo_n "(cached) " >&6 |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 3162 | else |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 3163 | ac_cv_prog_cc_c89=no |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 3164 | ac_save_CC=$CC |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 3165 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 3166 | /* end confdefs.h. */ |
| 3167 | #include <stdarg.h> |
| 3168 | #include <stdio.h> |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 3169 | struct stat; |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 3170 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
| 3171 | struct buf { int x; }; |
| 3172 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
| 3173 | static char *e (p, i) |
| 3174 | char **p; |
| 3175 | int i; |
| 3176 | { |
| 3177 | return p[i]; |
| 3178 | } |
| 3179 | static char *f (char * (*g) (char **, int), char **p, ...) |
| 3180 | { |
| 3181 | char *s; |
| 3182 | va_list v; |
| 3183 | va_start (v,p); |
| 3184 | s = g (p, va_arg (v,int)); |
| 3185 | va_end (v); |
| 3186 | return s; |
| 3187 | } |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame] | 3188 | |
| 3189 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
| 3190 | function prototypes and stuff, but not '\xHH' hex character constants. |
| 3191 | These don't provoke an error unfortunately, instead are silently treated |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 3192 | as 'x'. The following induces an error, until -std is added to get |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame] | 3193 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
| 3194 | array size at least. It's necessary to write '\x00'==0 to get something |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 3195 | that's true only with -std. */ |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame] | 3196 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
| 3197 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 3198 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
| 3199 | inside strings and character constants. */ |
| 3200 | #define FOO(x) 'x' |
| 3201 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; |
| 3202 | |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 3203 | int test (int i, double x); |
| 3204 | struct s1 {int (*f) (int a);}; |
| 3205 | struct s2 {int (*f) (double a);}; |
| 3206 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
| 3207 | int argc; |
| 3208 | char **argv; |
| 3209 | int |
| 3210 | main () |
| 3211 | { |
| 3212 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
| 3213 | ; |
| 3214 | return 0; |
| 3215 | } |
| 3216 | _ACEOF |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 3217 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
| 3218 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 3219 | do |
| 3220 | CC="$ac_save_CC $ac_arg" |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 3221 | if ac_fn_c_try_compile "$LINENO"; then : |
| 3222 | ac_cv_prog_cc_c89=$ac_arg |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 3223 | fi |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 3224 | rm -f core conftest.err conftest.$ac_objext |
| 3225 | test "x$ac_cv_prog_cc_c89" != "xno" && break |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 3226 | done |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 3227 | rm -f conftest.$ac_ext |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 3228 | CC=$ac_save_CC |
| 3229 | |
| 3230 | fi |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 3231 | # AC_CACHE_VAL |
| 3232 | case "x$ac_cv_prog_cc_c89" in |
| 3233 | x) |
| 3234 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 |
| 3235 | $as_echo "none needed" >&6; } ;; |
| 3236 | xno) |
| 3237 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 |
| 3238 | $as_echo "unsupported" >&6; } ;; |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 3239 | *) |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 3240 | CC="$CC $ac_cv_prog_cc_c89" |
| 3241 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 |
| 3242 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 3243 | esac |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 3244 | if test "x$ac_cv_prog_cc_c89" != xno; then : |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 3245 | |
| 3246 | fi |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 3247 | |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 3248 | ac_ext=c |
| 3249 | ac_cpp='$CPP $CPPFLAGS' |
| 3250 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3251 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3252 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3253 | |
David McGrew | b67061f | 2005-09-28 14:23:06 +0000 | [diff] [blame] | 3254 | ac_aux_dir= |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 3255 | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do |
| 3256 | if test -f "$ac_dir/install-sh"; then |
David McGrew | b67061f | 2005-09-28 14:23:06 +0000 | [diff] [blame] | 3257 | ac_aux_dir=$ac_dir |
| 3258 | ac_install_sh="$ac_aux_dir/install-sh -c" |
| 3259 | break |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 3260 | elif test -f "$ac_dir/install.sh"; then |
David McGrew | b67061f | 2005-09-28 14:23:06 +0000 | [diff] [blame] | 3261 | ac_aux_dir=$ac_dir |
| 3262 | ac_install_sh="$ac_aux_dir/install.sh -c" |
| 3263 | break |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 3264 | elif test -f "$ac_dir/shtool"; then |
David McGrew | b67061f | 2005-09-28 14:23:06 +0000 | [diff] [blame] | 3265 | ac_aux_dir=$ac_dir |
| 3266 | ac_install_sh="$ac_aux_dir/shtool install -c" |
| 3267 | break |
| 3268 | fi |
| 3269 | done |
| 3270 | if test -z "$ac_aux_dir"; then |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 3271 | as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 |
David McGrew | b67061f | 2005-09-28 14:23:06 +0000 | [diff] [blame] | 3272 | fi |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 3273 | |
| 3274 | # These three variables are undocumented and unsupported, |
| 3275 | # and are intended to be withdrawn in a future Autoconf release. |
| 3276 | # They can cause serious problems if a builder's source tree is in a directory |
| 3277 | # whose full name contains unusual characters. |
| 3278 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. |
| 3279 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. |
| 3280 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. |
| 3281 | |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 3282 | |
David McGrew | b67061f | 2005-09-28 14:23:06 +0000 | [diff] [blame] | 3283 | # Find a good install program. We prefer a C program (faster), |
| 3284 | # so one script is as good as another. But avoid the broken or |
| 3285 | # incompatible versions: |
| 3286 | # SysV /etc/install, /usr/sbin/install |
| 3287 | # SunOS /usr/etc/install |
| 3288 | # IRIX /sbin/install |
| 3289 | # AIX /bin/install |
| 3290 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
| 3291 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
| 3292 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
| 3293 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
| 3294 | # OS/2's system install, which has a completely different semantic |
| 3295 | # ./install, which can be erroneously created by make from ./install.sh. |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 3296 | # Reject install programs that cannot install multiple files. |
| 3297 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 |
| 3298 | $as_echo_n "checking for a BSD-compatible install... " >&6; } |
David McGrew | b67061f | 2005-09-28 14:23:06 +0000 | [diff] [blame] | 3299 | if test -z "$INSTALL"; then |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 3300 | if ${ac_cv_path_install+:} false; then : |
| 3301 | $as_echo_n "(cached) " >&6 |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 3302 | else |
David McGrew | b67061f | 2005-09-28 14:23:06 +0000 | [diff] [blame] | 3303 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3304 | for as_dir in $PATH |
| 3305 | do |
| 3306 | IFS=$as_save_IFS |
| 3307 | test -z "$as_dir" && as_dir=. |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 3308 | # Account for people who put trailing slashes in PATH elements. |
| 3309 | case $as_dir/ in #(( |
| 3310 | ./ | .// | /[cC]/* | \ |
David McGrew | b67061f | 2005-09-28 14:23:06 +0000 | [diff] [blame] | 3311 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 3312 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ |
David McGrew | b67061f | 2005-09-28 14:23:06 +0000 | [diff] [blame] | 3313 | /usr/ucb/* ) ;; |
| 3314 | *) |
| 3315 | # OSF1 and SCO ODT 3.0 have their own names for install. |
| 3316 | # Don't use installbsd from OSF since it installs stuff as root |
| 3317 | # by default. |
| 3318 | for ac_prog in ginstall scoinst install; do |
| 3319 | for ac_exec_ext in '' $ac_executable_extensions; do |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 3320 | if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
David McGrew | b67061f | 2005-09-28 14:23:06 +0000 | [diff] [blame] | 3321 | if test $ac_prog = install && |
| 3322 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 3323 | # AIX install. It has an incompatible calling convention. |
| 3324 | : |
| 3325 | elif test $ac_prog = install && |
| 3326 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 3327 | # program-specific install script used by HP pwplus--don't use. |
| 3328 | : |
| 3329 | else |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 3330 | rm -rf conftest.one conftest.two conftest.dir |
| 3331 | echo one > conftest.one |
| 3332 | echo two > conftest.two |
| 3333 | mkdir conftest.dir |
| 3334 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && |
| 3335 | test -s conftest.one && test -s conftest.two && |
| 3336 | test -s conftest.dir/conftest.one && |
| 3337 | test -s conftest.dir/conftest.two |
| 3338 | then |
| 3339 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
| 3340 | break 3 |
| 3341 | fi |
David McGrew | b67061f | 2005-09-28 14:23:06 +0000 | [diff] [blame] | 3342 | fi |
| 3343 | fi |
| 3344 | done |
| 3345 | done |
| 3346 | ;; |
| 3347 | esac |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 3348 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 3349 | done |
| 3350 | IFS=$as_save_IFS |
| 3351 | |
| 3352 | rm -rf conftest.one conftest.two conftest.dir |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 3353 | |
| 3354 | fi |
David McGrew | b67061f | 2005-09-28 14:23:06 +0000 | [diff] [blame] | 3355 | if test "${ac_cv_path_install+set}" = set; then |
| 3356 | INSTALL=$ac_cv_path_install |
| 3357 | else |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 3358 | # As a last resort, use the slow shell script. Don't cache a |
| 3359 | # value for INSTALL within a source directory, because that will |
David McGrew | b67061f | 2005-09-28 14:23:06 +0000 | [diff] [blame] | 3360 | # break other packages using the cache if that directory is |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 3361 | # removed, or if the value is a relative name. |
David McGrew | b67061f | 2005-09-28 14:23:06 +0000 | [diff] [blame] | 3362 | INSTALL=$ac_install_sh |
| 3363 | fi |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 3364 | fi |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 3365 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 |
| 3366 | $as_echo "$INSTALL" >&6; } |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 3367 | |
David McGrew | b67061f | 2005-09-28 14:23:06 +0000 | [diff] [blame] | 3368 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
| 3369 | # It thinks the first close brace ends the variable substitution. |
| 3370 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 3371 | |
David McGrew | b67061f | 2005-09-28 14:23:06 +0000 | [diff] [blame] | 3372 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
| 3373 | |
| 3374 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 3375 | |
| 3376 | |
| 3377 | |
Cullen Jennings | 52c5cd3 | 2013-05-01 18:07:29 -0600 | [diff] [blame] | 3378 | ac_ext=c |
| 3379 | ac_cpp='$CPP $CPPFLAGS' |
| 3380 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3381 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3382 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 3383 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 |
| 3384 | $as_echo_n "checking how to run the C preprocessor... " >&6; } |
Cullen Jennings | 52c5cd3 | 2013-05-01 18:07:29 -0600 | [diff] [blame] | 3385 | # On Suns, sometimes $CPP names a directory. |
| 3386 | if test -n "$CPP" && test -d "$CPP"; then |
| 3387 | CPP= |
| 3388 | fi |
| 3389 | if test -z "$CPP"; then |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 3390 | if ${ac_cv_prog_CPP+:} false; then : |
| 3391 | $as_echo_n "(cached) " >&6 |
Cullen Jennings | 52c5cd3 | 2013-05-01 18:07:29 -0600 | [diff] [blame] | 3392 | else |
| 3393 | # Double quotes because CPP needs to be expanded |
| 3394 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
| 3395 | do |
| 3396 | ac_preproc_ok=false |
| 3397 | for ac_c_preproc_warn_flag in '' yes |
| 3398 | do |
| 3399 | # Use a header file that comes with gcc, so configuring glibc |
| 3400 | # with a fresh cross-compiler works. |
| 3401 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 3402 | # <limits.h> exists even on freestanding compilers. |
| 3403 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 3404 | # not just through cpp. "Syntax error" is here to catch this case. |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 3405 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Cullen Jennings | 52c5cd3 | 2013-05-01 18:07:29 -0600 | [diff] [blame] | 3406 | /* end confdefs.h. */ |
| 3407 | #ifdef __STDC__ |
| 3408 | # include <limits.h> |
| 3409 | #else |
| 3410 | # include <assert.h> |
| 3411 | #endif |
| 3412 | Syntax error |
| 3413 | _ACEOF |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 3414 | if ac_fn_c_try_cpp "$LINENO"; then : |
Cullen Jennings | 52c5cd3 | 2013-05-01 18:07:29 -0600 | [diff] [blame] | 3415 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 3416 | else |
Cullen Jennings | 52c5cd3 | 2013-05-01 18:07:29 -0600 | [diff] [blame] | 3417 | # Broken: fails on valid input. |
| 3418 | continue |
| 3419 | fi |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 3420 | rm -f conftest.err conftest.i conftest.$ac_ext |
Cullen Jennings | 52c5cd3 | 2013-05-01 18:07:29 -0600 | [diff] [blame] | 3421 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 3422 | # OK, works on sane cases. Now check whether nonexistent headers |
Cullen Jennings | 52c5cd3 | 2013-05-01 18:07:29 -0600 | [diff] [blame] | 3423 | # can be detected and how. |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 3424 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Cullen Jennings | 52c5cd3 | 2013-05-01 18:07:29 -0600 | [diff] [blame] | 3425 | /* end confdefs.h. */ |
| 3426 | #include <ac_nonexistent.h> |
| 3427 | _ACEOF |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 3428 | if ac_fn_c_try_cpp "$LINENO"; then : |
Cullen Jennings | 52c5cd3 | 2013-05-01 18:07:29 -0600 | [diff] [blame] | 3429 | # Broken: success on invalid input. |
| 3430 | continue |
| 3431 | else |
Cullen Jennings | 52c5cd3 | 2013-05-01 18:07:29 -0600 | [diff] [blame] | 3432 | # Passes both tests. |
| 3433 | ac_preproc_ok=: |
| 3434 | break |
| 3435 | fi |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 3436 | rm -f conftest.err conftest.i conftest.$ac_ext |
Cullen Jennings | 52c5cd3 | 2013-05-01 18:07:29 -0600 | [diff] [blame] | 3437 | |
| 3438 | done |
| 3439 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 3440 | rm -f conftest.i conftest.err conftest.$ac_ext |
| 3441 | if $ac_preproc_ok; then : |
Cullen Jennings | 52c5cd3 | 2013-05-01 18:07:29 -0600 | [diff] [blame] | 3442 | break |
| 3443 | fi |
| 3444 | |
| 3445 | done |
| 3446 | ac_cv_prog_CPP=$CPP |
| 3447 | |
| 3448 | fi |
| 3449 | CPP=$ac_cv_prog_CPP |
| 3450 | else |
| 3451 | ac_cv_prog_CPP=$CPP |
| 3452 | fi |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 3453 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 |
| 3454 | $as_echo "$CPP" >&6; } |
Cullen Jennings | 52c5cd3 | 2013-05-01 18:07:29 -0600 | [diff] [blame] | 3455 | ac_preproc_ok=false |
| 3456 | for ac_c_preproc_warn_flag in '' yes |
| 3457 | do |
| 3458 | # Use a header file that comes with gcc, so configuring glibc |
| 3459 | # with a fresh cross-compiler works. |
| 3460 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 3461 | # <limits.h> exists even on freestanding compilers. |
| 3462 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 3463 | # not just through cpp. "Syntax error" is here to catch this case. |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 3464 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Cullen Jennings | 52c5cd3 | 2013-05-01 18:07:29 -0600 | [diff] [blame] | 3465 | /* end confdefs.h. */ |
| 3466 | #ifdef __STDC__ |
| 3467 | # include <limits.h> |
| 3468 | #else |
| 3469 | # include <assert.h> |
| 3470 | #endif |
| 3471 | Syntax error |
| 3472 | _ACEOF |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 3473 | if ac_fn_c_try_cpp "$LINENO"; then : |
Cullen Jennings | 52c5cd3 | 2013-05-01 18:07:29 -0600 | [diff] [blame] | 3474 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 3475 | else |
Cullen Jennings | 52c5cd3 | 2013-05-01 18:07:29 -0600 | [diff] [blame] | 3476 | # Broken: fails on valid input. |
| 3477 | continue |
| 3478 | fi |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 3479 | rm -f conftest.err conftest.i conftest.$ac_ext |
Cullen Jennings | 52c5cd3 | 2013-05-01 18:07:29 -0600 | [diff] [blame] | 3480 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 3481 | # OK, works on sane cases. Now check whether nonexistent headers |
Cullen Jennings | 52c5cd3 | 2013-05-01 18:07:29 -0600 | [diff] [blame] | 3482 | # can be detected and how. |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 3483 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Cullen Jennings | 52c5cd3 | 2013-05-01 18:07:29 -0600 | [diff] [blame] | 3484 | /* end confdefs.h. */ |
| 3485 | #include <ac_nonexistent.h> |
| 3486 | _ACEOF |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 3487 | if ac_fn_c_try_cpp "$LINENO"; then : |
Cullen Jennings | 52c5cd3 | 2013-05-01 18:07:29 -0600 | [diff] [blame] | 3488 | # Broken: success on invalid input. |
| 3489 | continue |
| 3490 | else |
Cullen Jennings | 52c5cd3 | 2013-05-01 18:07:29 -0600 | [diff] [blame] | 3491 | # Passes both tests. |
| 3492 | ac_preproc_ok=: |
| 3493 | break |
| 3494 | fi |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 3495 | rm -f conftest.err conftest.i conftest.$ac_ext |
Cullen Jennings | 52c5cd3 | 2013-05-01 18:07:29 -0600 | [diff] [blame] | 3496 | |
| 3497 | done |
| 3498 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 3499 | rm -f conftest.i conftest.err conftest.$ac_ext |
| 3500 | if $ac_preproc_ok; then : |
| 3501 | |
Cullen Jennings | 52c5cd3 | 2013-05-01 18:07:29 -0600 | [diff] [blame] | 3502 | else |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 3503 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 3504 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 3505 | as_fn_error $? "C preprocessor \"$CPP\" fails sanity check |
| 3506 | See \`config.log' for more details" "$LINENO" 5; } |
Cullen Jennings | 52c5cd3 | 2013-05-01 18:07:29 -0600 | [diff] [blame] | 3507 | fi |
| 3508 | |
| 3509 | ac_ext=c |
| 3510 | ac_cpp='$CPP $CPPFLAGS' |
| 3511 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3512 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3513 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3514 | |
| 3515 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 3516 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 |
| 3517 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } |
| 3518 | if ${ac_cv_path_GREP+:} false; then : |
| 3519 | $as_echo_n "(cached) " >&6 |
Cullen Jennings | 52c5cd3 | 2013-05-01 18:07:29 -0600 | [diff] [blame] | 3520 | else |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 3521 | if test -z "$GREP"; then |
| 3522 | ac_path_GREP_found=false |
| 3523 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 3524 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3525 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 3526 | do |
| 3527 | IFS=$as_save_IFS |
| 3528 | test -z "$as_dir" && as_dir=. |
| 3529 | for ac_prog in grep ggrep; do |
| 3530 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3531 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" |
| 3532 | as_fn_executable_p "$ac_path_GREP" || continue |
| 3533 | # Check for GNU ac_path_GREP and select it if it is found. |
| 3534 | # Check for GNU $ac_path_GREP |
| 3535 | case `"$ac_path_GREP" --version 2>&1` in |
| 3536 | *GNU*) |
| 3537 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; |
| 3538 | *) |
| 3539 | ac_count=0 |
| 3540 | $as_echo_n 0123456789 >"conftest.in" |
| 3541 | while : |
| 3542 | do |
| 3543 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 3544 | mv "conftest.tmp" "conftest.in" |
| 3545 | cp "conftest.in" "conftest.nl" |
| 3546 | $as_echo 'GREP' >> "conftest.nl" |
| 3547 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 3548 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
| 3549 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
| 3550 | if test $ac_count -gt ${ac_path_GREP_max-0}; then |
| 3551 | # Best one so far, save it but keep looking for a better one |
| 3552 | ac_cv_path_GREP="$ac_path_GREP" |
| 3553 | ac_path_GREP_max=$ac_count |
Cullen Jennings | 52c5cd3 | 2013-05-01 18:07:29 -0600 | [diff] [blame] | 3554 | fi |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 3555 | # 10*(2^10) chars as input seems more than enough |
| 3556 | test $ac_count -gt 10 && break |
| 3557 | done |
| 3558 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 3559 | esac |
Cullen Jennings | 52c5cd3 | 2013-05-01 18:07:29 -0600 | [diff] [blame] | 3560 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 3561 | $ac_path_GREP_found && break 3 |
| 3562 | done |
| 3563 | done |
| 3564 | done |
| 3565 | IFS=$as_save_IFS |
| 3566 | if test -z "$ac_cv_path_GREP"; then |
| 3567 | as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
| 3568 | fi |
Cullen Jennings | 52c5cd3 | 2013-05-01 18:07:29 -0600 | [diff] [blame] | 3569 | else |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 3570 | ac_cv_path_GREP=$GREP |
| 3571 | fi |
| 3572 | |
| 3573 | fi |
| 3574 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 |
| 3575 | $as_echo "$ac_cv_path_GREP" >&6; } |
| 3576 | GREP="$ac_cv_path_GREP" |
| 3577 | |
| 3578 | |
| 3579 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 |
| 3580 | $as_echo_n "checking for egrep... " >&6; } |
| 3581 | if ${ac_cv_path_EGREP+:} false; then : |
| 3582 | $as_echo_n "(cached) " >&6 |
| 3583 | else |
| 3584 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
| 3585 | then ac_cv_path_EGREP="$GREP -E" |
| 3586 | else |
| 3587 | if test -z "$EGREP"; then |
| 3588 | ac_path_EGREP_found=false |
| 3589 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 3590 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3591 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 3592 | do |
| 3593 | IFS=$as_save_IFS |
| 3594 | test -z "$as_dir" && as_dir=. |
| 3595 | for ac_prog in egrep; do |
| 3596 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3597 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" |
| 3598 | as_fn_executable_p "$ac_path_EGREP" || continue |
| 3599 | # Check for GNU ac_path_EGREP and select it if it is found. |
| 3600 | # Check for GNU $ac_path_EGREP |
| 3601 | case `"$ac_path_EGREP" --version 2>&1` in |
| 3602 | *GNU*) |
| 3603 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; |
| 3604 | *) |
| 3605 | ac_count=0 |
| 3606 | $as_echo_n 0123456789 >"conftest.in" |
| 3607 | while : |
| 3608 | do |
| 3609 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 3610 | mv "conftest.tmp" "conftest.in" |
| 3611 | cp "conftest.in" "conftest.nl" |
| 3612 | $as_echo 'EGREP' >> "conftest.nl" |
| 3613 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 3614 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
| 3615 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
| 3616 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then |
| 3617 | # Best one so far, save it but keep looking for a better one |
| 3618 | ac_cv_path_EGREP="$ac_path_EGREP" |
| 3619 | ac_path_EGREP_max=$ac_count |
| 3620 | fi |
| 3621 | # 10*(2^10) chars as input seems more than enough |
| 3622 | test $ac_count -gt 10 && break |
| 3623 | done |
| 3624 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 3625 | esac |
| 3626 | |
| 3627 | $ac_path_EGREP_found && break 3 |
| 3628 | done |
| 3629 | done |
| 3630 | done |
| 3631 | IFS=$as_save_IFS |
| 3632 | if test -z "$ac_cv_path_EGREP"; then |
| 3633 | as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
| 3634 | fi |
| 3635 | else |
| 3636 | ac_cv_path_EGREP=$EGREP |
| 3637 | fi |
| 3638 | |
| 3639 | fi |
| 3640 | fi |
| 3641 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 |
| 3642 | $as_echo "$ac_cv_path_EGREP" >&6; } |
| 3643 | EGREP="$ac_cv_path_EGREP" |
| 3644 | |
| 3645 | |
| 3646 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 |
| 3647 | $as_echo_n "checking for ANSI C header files... " >&6; } |
| 3648 | if ${ac_cv_header_stdc+:} false; then : |
| 3649 | $as_echo_n "(cached) " >&6 |
| 3650 | else |
| 3651 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
jfigus | a14b5a0 | 2013-03-29 12:24:12 -0400 | [diff] [blame] | 3652 | /* end confdefs.h. */ |
| 3653 | #include <stdlib.h> |
| 3654 | #include <stdarg.h> |
| 3655 | #include <string.h> |
| 3656 | #include <float.h> |
| 3657 | |
| 3658 | int |
| 3659 | main () |
| 3660 | { |
| 3661 | |
| 3662 | ; |
| 3663 | return 0; |
| 3664 | } |
| 3665 | _ACEOF |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 3666 | if ac_fn_c_try_compile "$LINENO"; then : |
jfigus | a14b5a0 | 2013-03-29 12:24:12 -0400 | [diff] [blame] | 3667 | ac_cv_header_stdc=yes |
| 3668 | else |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 3669 | ac_cv_header_stdc=no |
jfigus | a14b5a0 | 2013-03-29 12:24:12 -0400 | [diff] [blame] | 3670 | fi |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 3671 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
jfigus | a14b5a0 | 2013-03-29 12:24:12 -0400 | [diff] [blame] | 3672 | |
| 3673 | if test $ac_cv_header_stdc = yes; then |
| 3674 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 3675 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
jfigus | a14b5a0 | 2013-03-29 12:24:12 -0400 | [diff] [blame] | 3676 | /* end confdefs.h. */ |
| 3677 | #include <string.h> |
| 3678 | |
| 3679 | _ACEOF |
| 3680 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 3681 | $EGREP "memchr" >/dev/null 2>&1; then : |
| 3682 | |
jfigus | a14b5a0 | 2013-03-29 12:24:12 -0400 | [diff] [blame] | 3683 | else |
| 3684 | ac_cv_header_stdc=no |
| 3685 | fi |
| 3686 | rm -f conftest* |
| 3687 | |
| 3688 | fi |
| 3689 | |
| 3690 | if test $ac_cv_header_stdc = yes; then |
| 3691 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 3692 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
jfigus | a14b5a0 | 2013-03-29 12:24:12 -0400 | [diff] [blame] | 3693 | /* end confdefs.h. */ |
| 3694 | #include <stdlib.h> |
| 3695 | |
| 3696 | _ACEOF |
| 3697 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 3698 | $EGREP "free" >/dev/null 2>&1; then : |
| 3699 | |
jfigus | a14b5a0 | 2013-03-29 12:24:12 -0400 | [diff] [blame] | 3700 | else |
| 3701 | ac_cv_header_stdc=no |
| 3702 | fi |
| 3703 | rm -f conftest* |
| 3704 | |
| 3705 | fi |
| 3706 | |
| 3707 | if test $ac_cv_header_stdc = yes; then |
| 3708 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 3709 | if test "$cross_compiling" = yes; then : |
jfigus | a14b5a0 | 2013-03-29 12:24:12 -0400 | [diff] [blame] | 3710 | : |
| 3711 | else |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 3712 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
jfigus | a14b5a0 | 2013-03-29 12:24:12 -0400 | [diff] [blame] | 3713 | /* end confdefs.h. */ |
| 3714 | #include <ctype.h> |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 3715 | #include <stdlib.h> |
jfigus | a14b5a0 | 2013-03-29 12:24:12 -0400 | [diff] [blame] | 3716 | #if ((' ' & 0x0FF) == 0x020) |
| 3717 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 3718 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 3719 | #else |
| 3720 | # define ISLOWER(c) \ |
| 3721 | (('a' <= (c) && (c) <= 'i') \ |
| 3722 | || ('j' <= (c) && (c) <= 'r') \ |
| 3723 | || ('s' <= (c) && (c) <= 'z')) |
| 3724 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 3725 | #endif |
| 3726 | |
| 3727 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 3728 | int |
| 3729 | main () |
| 3730 | { |
| 3731 | int i; |
| 3732 | for (i = 0; i < 256; i++) |
| 3733 | if (XOR (islower (i), ISLOWER (i)) |
| 3734 | || toupper (i) != TOUPPER (i)) |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 3735 | return 2; |
| 3736 | return 0; |
jfigus | a14b5a0 | 2013-03-29 12:24:12 -0400 | [diff] [blame] | 3737 | } |
| 3738 | _ACEOF |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 3739 | if ac_fn_c_try_run "$LINENO"; then : |
jfigus | a14b5a0 | 2013-03-29 12:24:12 -0400 | [diff] [blame] | 3740 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 3741 | else |
| 3742 | ac_cv_header_stdc=no |
Cullen Jennings | 52c5cd3 | 2013-05-01 18:07:29 -0600 | [diff] [blame] | 3743 | fi |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 3744 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 3745 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 3746 | fi |
| 3747 | |
jfigus | a14b5a0 | 2013-03-29 12:24:12 -0400 | [diff] [blame] | 3748 | fi |
| 3749 | fi |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 3750 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 |
| 3751 | $as_echo "$ac_cv_header_stdc" >&6; } |
jfigus | a14b5a0 | 2013-03-29 12:24:12 -0400 | [diff] [blame] | 3752 | if test $ac_cv_header_stdc = yes; then |
| 3753 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 3754 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h |
jfigus | a14b5a0 | 2013-03-29 12:24:12 -0400 | [diff] [blame] | 3755 | |
| 3756 | fi |
| 3757 | |
Cullen Jennings | 52c5cd3 | 2013-05-01 18:07:29 -0600 | [diff] [blame] | 3758 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
Cullen Jennings | 52c5cd3 | 2013-05-01 18:07:29 -0600 | [diff] [blame] | 3759 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
| 3760 | inttypes.h stdint.h unistd.h |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 3761 | do : |
| 3762 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 3763 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default |
| 3764 | " |
| 3765 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
Cullen Jennings | 52c5cd3 | 2013-05-01 18:07:29 -0600 | [diff] [blame] | 3766 | cat >>confdefs.h <<_ACEOF |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 3767 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Cullen Jennings | 52c5cd3 | 2013-05-01 18:07:29 -0600 | [diff] [blame] | 3768 | _ACEOF |
| 3769 | |
| 3770 | fi |
| 3771 | |
| 3772 | done |
| 3773 | |
| 3774 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 3775 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 |
| 3776 | $as_echo_n "checking whether byte ordering is bigendian... " >&6; } |
| 3777 | if ${ac_cv_c_bigendian+:} false; then : |
| 3778 | $as_echo_n "(cached) " >&6 |
Cullen Jennings | 52c5cd3 | 2013-05-01 18:07:29 -0600 | [diff] [blame] | 3779 | else |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 3780 | ac_cv_c_bigendian=unknown |
| 3781 | # See if we're dealing with a universal compiler. |
| 3782 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Cullen Jennings | 52c5cd3 | 2013-05-01 18:07:29 -0600 | [diff] [blame] | 3783 | /* end confdefs.h. */ |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 3784 | #ifndef __APPLE_CC__ |
| 3785 | not a universal capable compiler |
| 3786 | #endif |
| 3787 | typedef int dummy; |
Cullen Jennings | 52c5cd3 | 2013-05-01 18:07:29 -0600 | [diff] [blame] | 3788 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 3789 | _ACEOF |
| 3790 | if ac_fn_c_try_compile "$LINENO"; then : |
| 3791 | |
| 3792 | # Check for potential -arch flags. It is not universal unless |
| 3793 | # there are at least two -arch flags with different values. |
| 3794 | ac_arch= |
| 3795 | ac_prev= |
| 3796 | for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do |
| 3797 | if test -n "$ac_prev"; then |
| 3798 | case $ac_word in |
| 3799 | i?86 | x86_64 | ppc | ppc64) |
| 3800 | if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then |
| 3801 | ac_arch=$ac_word |
| 3802 | else |
| 3803 | ac_cv_c_bigendian=universal |
| 3804 | break |
| 3805 | fi |
| 3806 | ;; |
| 3807 | esac |
| 3808 | ac_prev= |
| 3809 | elif test "x$ac_word" = "x-arch"; then |
| 3810 | ac_prev=arch |
| 3811 | fi |
| 3812 | done |
Cullen Jennings | 52c5cd3 | 2013-05-01 18:07:29 -0600 | [diff] [blame] | 3813 | fi |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 3814 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3815 | if test $ac_cv_c_bigendian = unknown; then |
| 3816 | # See if sys/param.h defines the BYTE_ORDER macro. |
| 3817 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Cullen Jennings | 52c5cd3 | 2013-05-01 18:07:29 -0600 | [diff] [blame] | 3818 | /* end confdefs.h. */ |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 3819 | #include <sys/types.h> |
| 3820 | #include <sys/param.h> |
| 3821 | |
| 3822 | int |
| 3823 | main () |
| 3824 | { |
| 3825 | #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ |
| 3826 | && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ |
| 3827 | && LITTLE_ENDIAN) |
| 3828 | bogus endian macros |
| 3829 | #endif |
| 3830 | |
| 3831 | ; |
| 3832 | return 0; |
| 3833 | } |
Cullen Jennings | 52c5cd3 | 2013-05-01 18:07:29 -0600 | [diff] [blame] | 3834 | _ACEOF |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 3835 | if ac_fn_c_try_compile "$LINENO"; then : |
| 3836 | # It does; now see whether it defined to BIG_ENDIAN or not. |
| 3837 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Cullen Jennings | 52c5cd3 | 2013-05-01 18:07:29 -0600 | [diff] [blame] | 3838 | /* end confdefs.h. */ |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 3839 | #include <sys/types.h> |
| 3840 | #include <sys/param.h> |
| 3841 | |
| 3842 | int |
| 3843 | main () |
| 3844 | { |
| 3845 | #if BYTE_ORDER != BIG_ENDIAN |
| 3846 | not big endian |
| 3847 | #endif |
| 3848 | |
| 3849 | ; |
| 3850 | return 0; |
| 3851 | } |
Cullen Jennings | 52c5cd3 | 2013-05-01 18:07:29 -0600 | [diff] [blame] | 3852 | _ACEOF |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 3853 | if ac_fn_c_try_compile "$LINENO"; then : |
| 3854 | ac_cv_c_bigendian=yes |
Cullen Jennings | 52c5cd3 | 2013-05-01 18:07:29 -0600 | [diff] [blame] | 3855 | else |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 3856 | ac_cv_c_bigendian=no |
Cullen Jennings | 52c5cd3 | 2013-05-01 18:07:29 -0600 | [diff] [blame] | 3857 | fi |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 3858 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3859 | fi |
| 3860 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3861 | fi |
| 3862 | if test $ac_cv_c_bigendian = unknown; then |
| 3863 | # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). |
| 3864 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Cullen Jennings | 52c5cd3 | 2013-05-01 18:07:29 -0600 | [diff] [blame] | 3865 | /* end confdefs.h. */ |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 3866 | #include <limits.h> |
| 3867 | |
| 3868 | int |
| 3869 | main () |
| 3870 | { |
| 3871 | #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) |
| 3872 | bogus endian macros |
| 3873 | #endif |
| 3874 | |
| 3875 | ; |
| 3876 | return 0; |
| 3877 | } |
Cullen Jennings | 52c5cd3 | 2013-05-01 18:07:29 -0600 | [diff] [blame] | 3878 | _ACEOF |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 3879 | if ac_fn_c_try_compile "$LINENO"; then : |
| 3880 | # It does; now see whether it defined to _BIG_ENDIAN or not. |
| 3881 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Cullen Jennings | 52c5cd3 | 2013-05-01 18:07:29 -0600 | [diff] [blame] | 3882 | /* end confdefs.h. */ |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 3883 | #include <limits.h> |
| 3884 | |
| 3885 | int |
| 3886 | main () |
| 3887 | { |
| 3888 | #ifndef _BIG_ENDIAN |
| 3889 | not big endian |
| 3890 | #endif |
| 3891 | |
| 3892 | ; |
| 3893 | return 0; |
| 3894 | } |
Cullen Jennings | 52c5cd3 | 2013-05-01 18:07:29 -0600 | [diff] [blame] | 3895 | _ACEOF |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 3896 | if ac_fn_c_try_compile "$LINENO"; then : |
| 3897 | ac_cv_c_bigendian=yes |
Cullen Jennings | 52c5cd3 | 2013-05-01 18:07:29 -0600 | [diff] [blame] | 3898 | else |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 3899 | ac_cv_c_bigendian=no |
Cullen Jennings | 52c5cd3 | 2013-05-01 18:07:29 -0600 | [diff] [blame] | 3900 | fi |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 3901 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3902 | fi |
| 3903 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3904 | fi |
| 3905 | if test $ac_cv_c_bigendian = unknown; then |
| 3906 | # Compile a test program. |
| 3907 | if test "$cross_compiling" = yes; then : |
| 3908 | # Try to guess by grepping values from an object file. |
| 3909 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Cullen Jennings | 52c5cd3 | 2013-05-01 18:07:29 -0600 | [diff] [blame] | 3910 | /* end confdefs.h. */ |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 3911 | short int ascii_mm[] = |
| 3912 | { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; |
| 3913 | short int ascii_ii[] = |
| 3914 | { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; |
| 3915 | int use_ascii (int i) { |
| 3916 | return ascii_mm[i] + ascii_ii[i]; |
| 3917 | } |
| 3918 | short int ebcdic_ii[] = |
| 3919 | { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; |
| 3920 | short int ebcdic_mm[] = |
| 3921 | { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; |
| 3922 | int use_ebcdic (int i) { |
| 3923 | return ebcdic_mm[i] + ebcdic_ii[i]; |
| 3924 | } |
| 3925 | extern int foo; |
| 3926 | |
| 3927 | int |
| 3928 | main () |
| 3929 | { |
| 3930 | return use_ascii (foo) == use_ebcdic (foo); |
| 3931 | ; |
| 3932 | return 0; |
| 3933 | } |
Cullen Jennings | 52c5cd3 | 2013-05-01 18:07:29 -0600 | [diff] [blame] | 3934 | _ACEOF |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 3935 | if ac_fn_c_try_compile "$LINENO"; then : |
| 3936 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then |
| 3937 | ac_cv_c_bigendian=yes |
| 3938 | fi |
| 3939 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then |
| 3940 | if test "$ac_cv_c_bigendian" = unknown; then |
| 3941 | ac_cv_c_bigendian=no |
| 3942 | else |
| 3943 | # finding both strings is unlikely to happen, but who knows? |
| 3944 | ac_cv_c_bigendian=unknown |
| 3945 | fi |
| 3946 | fi |
| 3947 | fi |
| 3948 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Cullen Jennings | 52c5cd3 | 2013-05-01 18:07:29 -0600 | [diff] [blame] | 3949 | else |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 3950 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Cullen Jennings | 52c5cd3 | 2013-05-01 18:07:29 -0600 | [diff] [blame] | 3951 | /* end confdefs.h. */ |
| 3952 | $ac_includes_default |
| 3953 | int |
| 3954 | main () |
| 3955 | { |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 3956 | |
| 3957 | /* Are we little or big endian? From Harbison&Steele. */ |
| 3958 | union |
| 3959 | { |
| 3960 | long int l; |
| 3961 | char c[sizeof (long int)]; |
| 3962 | } u; |
| 3963 | u.l = 1; |
| 3964 | return u.c[sizeof (long int) - 1] == 1; |
| 3965 | |
Cullen Jennings | 52c5cd3 | 2013-05-01 18:07:29 -0600 | [diff] [blame] | 3966 | ; |
| 3967 | return 0; |
| 3968 | } |
| 3969 | _ACEOF |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 3970 | if ac_fn_c_try_run "$LINENO"; then : |
| 3971 | ac_cv_c_bigendian=no |
Cullen Jennings | 52c5cd3 | 2013-05-01 18:07:29 -0600 | [diff] [blame] | 3972 | else |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 3973 | ac_cv_c_bigendian=yes |
| 3974 | fi |
| 3975 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 3976 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 3977 | fi |
Cullen Jennings | 52c5cd3 | 2013-05-01 18:07:29 -0600 | [diff] [blame] | 3978 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 3979 | fi |
Cullen Jennings | 52c5cd3 | 2013-05-01 18:07:29 -0600 | [diff] [blame] | 3980 | fi |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 3981 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 |
| 3982 | $as_echo "$ac_cv_c_bigendian" >&6; } |
| 3983 | case $ac_cv_c_bigendian in #( |
| 3984 | yes) |
| 3985 | $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h |
| 3986 | ;; #( |
| 3987 | no) |
| 3988 | ;; #( |
| 3989 | universal) |
| 3990 | |
| 3991 | $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h |
| 3992 | |
| 3993 | ;; #( |
| 3994 | *) |
| 3995 | as_fn_error $? "unknown endianness |
| 3996 | presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; |
| 3997 | esac |
| 3998 | |
| 3999 | |
| 4000 | # Make sure we can run config.sub. |
| 4001 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || |
| 4002 | as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 |
| 4003 | |
| 4004 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 |
| 4005 | $as_echo_n "checking build system type... " >&6; } |
| 4006 | if ${ac_cv_build+:} false; then : |
| 4007 | $as_echo_n "(cached) " >&6 |
| 4008 | else |
| 4009 | ac_build_alias=$build_alias |
| 4010 | test "x$ac_build_alias" = x && |
| 4011 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` |
| 4012 | test "x$ac_build_alias" = x && |
| 4013 | as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 |
| 4014 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || |
| 4015 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 |
| 4016 | |
Cullen Jennings | 52c5cd3 | 2013-05-01 18:07:29 -0600 | [diff] [blame] | 4017 | fi |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 4018 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 |
| 4019 | $as_echo "$ac_cv_build" >&6; } |
| 4020 | case $ac_cv_build in |
| 4021 | *-*-*) ;; |
| 4022 | *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; |
| 4023 | esac |
| 4024 | build=$ac_cv_build |
| 4025 | ac_save_IFS=$IFS; IFS='-' |
| 4026 | set x $ac_cv_build |
| 4027 | shift |
| 4028 | build_cpu=$1 |
| 4029 | build_vendor=$2 |
| 4030 | shift; shift |
| 4031 | # Remember, the first character of IFS is used to create $*, |
| 4032 | # except with old shells: |
| 4033 | build_os=$* |
| 4034 | IFS=$ac_save_IFS |
| 4035 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac |
| 4036 | |
| 4037 | |
| 4038 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 |
| 4039 | $as_echo_n "checking host system type... " >&6; } |
| 4040 | if ${ac_cv_host+:} false; then : |
| 4041 | $as_echo_n "(cached) " >&6 |
| 4042 | else |
| 4043 | if test "x$host_alias" = x; then |
| 4044 | ac_cv_host=$ac_cv_build |
| 4045 | else |
| 4046 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || |
| 4047 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 |
| 4048 | fi |
| 4049 | |
| 4050 | fi |
| 4051 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 |
| 4052 | $as_echo "$ac_cv_host" >&6; } |
| 4053 | case $ac_cv_host in |
| 4054 | *-*-*) ;; |
| 4055 | *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; |
| 4056 | esac |
| 4057 | host=$ac_cv_host |
| 4058 | ac_save_IFS=$IFS; IFS='-' |
| 4059 | set x $ac_cv_host |
| 4060 | shift |
| 4061 | host_cpu=$1 |
| 4062 | host_vendor=$2 |
| 4063 | shift; shift |
| 4064 | # Remember, the first character of IFS is used to create $*, |
| 4065 | # except with old shells: |
| 4066 | host_os=$* |
| 4067 | IFS=$ac_save_IFS |
| 4068 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac |
| 4069 | |
| 4070 | |
| 4071 | |
| 4072 | case $host_cpu in |
| 4073 | i*86 | x86_64 ) |
| 4074 | |
| 4075 | $as_echo "#define CPU_CISC 1" >>confdefs.h |
| 4076 | |
| 4077 | |
| 4078 | $as_echo "#define HAVE_X86 1" >>confdefs.h |
| 4079 | ;; |
| 4080 | * ) |
| 4081 | # CPU_RISC is only supported for big endian machines. |
| 4082 | if test "$ac_cv_c_bigendian" = "yes"; then |
| 4083 | |
| 4084 | $as_echo "#define CPU_RISC 1" >>confdefs.h |
| 4085 | |
| 4086 | else |
| 4087 | $as_echo "#define CPU_CISC 1" >>confdefs.h |
| 4088 | |
| 4089 | fi |
| 4090 | ;; |
| 4091 | esac |
| 4092 | |
| 4093 | case $host_os in |
| 4094 | *cygwin*|*mingw* ) |
| 4095 | EXE=.exe |
| 4096 | HOST_IS_WINDOWS=yes |
| 4097 | ;; |
| 4098 | * ) |
| 4099 | EXE="" |
| 4100 | ;; |
| 4101 | esac |
| 4102 | # define executable suffix; this is needed for `make clean' |
| 4103 | |
| 4104 | |
| 4105 | # Check whether --enable-kernel-linux was given. |
| 4106 | if test "${enable_kernel_linux+set}" = set; then : |
| 4107 | enableval=$enable_kernel_linux; |
| 4108 | else |
| 4109 | enable_kernel_linux=no |
| 4110 | fi |
| 4111 | |
| 4112 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build for Linux kernel context" >&5 |
| 4113 | $as_echo_n "checking whether to build for Linux kernel context... " >&6; } |
| 4114 | if test "$enable_kernel_linux" = "yes"; then |
| 4115 | |
| 4116 | $as_echo "#define SRTP_KERNEL 1" >>confdefs.h |
| 4117 | |
| 4118 | |
| 4119 | $as_echo "#define SRTP_KERNEL_LINUX 1" >>confdefs.h |
| 4120 | |
| 4121 | fi |
| 4122 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_kernel_linux" >&5 |
| 4123 | $as_echo "$enable_kernel_linux" >&6; } |
| 4124 | |
| 4125 | if test "$cross_compiling" != yes -a "$HOST_IS_WINDOWS" != yes; then |
| 4126 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/urandom" >&5 |
| 4127 | $as_echo_n "checking for /dev/urandom... " >&6; } |
| 4128 | if ${ac_cv_file__dev_urandom+:} false; then : |
| 4129 | $as_echo_n "(cached) " >&6 |
| 4130 | else |
| 4131 | test "$cross_compiling" = yes && |
| 4132 | as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 |
| 4133 | if test -r "/dev/urandom"; then |
| 4134 | ac_cv_file__dev_urandom=yes |
| 4135 | else |
| 4136 | ac_cv_file__dev_urandom=no |
| 4137 | fi |
| 4138 | fi |
| 4139 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__dev_urandom" >&5 |
| 4140 | $as_echo "$ac_cv_file__dev_urandom" >&6; } |
| 4141 | if test "x$ac_cv_file__dev_urandom" = xyes; then : |
| 4142 | DEV_URANDOM=/dev/urandom |
| 4143 | else |
| 4144 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/random" >&5 |
| 4145 | $as_echo_n "checking for /dev/random... " >&6; } |
| 4146 | if ${ac_cv_file__dev_random+:} false; then : |
| 4147 | $as_echo_n "(cached) " >&6 |
| 4148 | else |
| 4149 | test "$cross_compiling" = yes && |
| 4150 | as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 |
| 4151 | if test -r "/dev/random"; then |
| 4152 | ac_cv_file__dev_random=yes |
| 4153 | else |
| 4154 | ac_cv_file__dev_random=no |
| 4155 | fi |
| 4156 | fi |
| 4157 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__dev_random" >&5 |
| 4158 | $as_echo "$ac_cv_file__dev_random" >&6; } |
| 4159 | if test "x$ac_cv_file__dev_random" = xyes; then : |
| 4160 | DEV_URANDOM=/dev/random |
| 4161 | fi |
| 4162 | |
| 4163 | fi |
| 4164 | |
| 4165 | fi |
| 4166 | |
| 4167 | |
| 4168 | |
| 4169 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 |
| 4170 | $as_echo_n "checking for ANSI C header files... " >&6; } |
| 4171 | if ${ac_cv_header_stdc+:} false; then : |
| 4172 | $as_echo_n "(cached) " >&6 |
| 4173 | else |
| 4174 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4175 | /* end confdefs.h. */ |
| 4176 | #include <stdlib.h> |
| 4177 | #include <stdarg.h> |
| 4178 | #include <string.h> |
| 4179 | #include <float.h> |
| 4180 | |
| 4181 | int |
| 4182 | main () |
| 4183 | { |
| 4184 | |
| 4185 | ; |
| 4186 | return 0; |
| 4187 | } |
| 4188 | _ACEOF |
| 4189 | if ac_fn_c_try_compile "$LINENO"; then : |
| 4190 | ac_cv_header_stdc=yes |
| 4191 | else |
| 4192 | ac_cv_header_stdc=no |
| 4193 | fi |
| 4194 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4195 | |
| 4196 | if test $ac_cv_header_stdc = yes; then |
| 4197 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
| 4198 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4199 | /* end confdefs.h. */ |
| 4200 | #include <string.h> |
| 4201 | |
| 4202 | _ACEOF |
| 4203 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 4204 | $EGREP "memchr" >/dev/null 2>&1; then : |
| 4205 | |
| 4206 | else |
| 4207 | ac_cv_header_stdc=no |
| 4208 | fi |
| 4209 | rm -f conftest* |
| 4210 | |
| 4211 | fi |
| 4212 | |
| 4213 | if test $ac_cv_header_stdc = yes; then |
| 4214 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
| 4215 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4216 | /* end confdefs.h. */ |
| 4217 | #include <stdlib.h> |
| 4218 | |
| 4219 | _ACEOF |
| 4220 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 4221 | $EGREP "free" >/dev/null 2>&1; then : |
| 4222 | |
| 4223 | else |
| 4224 | ac_cv_header_stdc=no |
| 4225 | fi |
| 4226 | rm -f conftest* |
| 4227 | |
| 4228 | fi |
| 4229 | |
| 4230 | if test $ac_cv_header_stdc = yes; then |
| 4231 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
| 4232 | if test "$cross_compiling" = yes; then : |
| 4233 | : |
| 4234 | else |
| 4235 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4236 | /* end confdefs.h. */ |
| 4237 | #include <ctype.h> |
| 4238 | #include <stdlib.h> |
| 4239 | #if ((' ' & 0x0FF) == 0x020) |
| 4240 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 4241 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 4242 | #else |
| 4243 | # define ISLOWER(c) \ |
| 4244 | (('a' <= (c) && (c) <= 'i') \ |
| 4245 | || ('j' <= (c) && (c) <= 'r') \ |
| 4246 | || ('s' <= (c) && (c) <= 'z')) |
| 4247 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 4248 | #endif |
| 4249 | |
| 4250 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 4251 | int |
| 4252 | main () |
| 4253 | { |
| 4254 | int i; |
| 4255 | for (i = 0; i < 256; i++) |
| 4256 | if (XOR (islower (i), ISLOWER (i)) |
| 4257 | || toupper (i) != TOUPPER (i)) |
| 4258 | return 2; |
| 4259 | return 0; |
| 4260 | } |
| 4261 | _ACEOF |
| 4262 | if ac_fn_c_try_run "$LINENO"; then : |
| 4263 | |
| 4264 | else |
| 4265 | ac_cv_header_stdc=no |
| 4266 | fi |
| 4267 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 4268 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 4269 | fi |
| 4270 | |
| 4271 | fi |
| 4272 | fi |
| 4273 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 |
| 4274 | $as_echo "$ac_cv_header_stdc" >&6; } |
| 4275 | if test $ac_cv_header_stdc = yes; then |
| 4276 | |
| 4277 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h |
| 4278 | |
| 4279 | fi |
| 4280 | |
| 4281 | for ac_header in stdlib.h |
| 4282 | do : |
| 4283 | ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default" |
| 4284 | if test "x$ac_cv_header_stdlib_h" = xyes; then : |
| 4285 | cat >>confdefs.h <<_ACEOF |
| 4286 | #define HAVE_STDLIB_H 1 |
| 4287 | _ACEOF |
| 4288 | |
| 4289 | fi |
| 4290 | |
| 4291 | done |
| 4292 | |
| 4293 | for ac_header in unistd.h |
| 4294 | do : |
| 4295 | ac_fn_c_check_header_mongrel "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default" |
| 4296 | if test "x$ac_cv_header_unistd_h" = xyes; then : |
| 4297 | cat >>confdefs.h <<_ACEOF |
| 4298 | #define HAVE_UNISTD_H 1 |
| 4299 | _ACEOF |
| 4300 | |
| 4301 | fi |
| 4302 | |
| 4303 | done |
| 4304 | |
| 4305 | for ac_header in byteswap.h |
| 4306 | do : |
| 4307 | ac_fn_c_check_header_mongrel "$LINENO" "byteswap.h" "ac_cv_header_byteswap_h" "$ac_includes_default" |
| 4308 | if test "x$ac_cv_header_byteswap_h" = xyes; then : |
| 4309 | cat >>confdefs.h <<_ACEOF |
| 4310 | #define HAVE_BYTESWAP_H 1 |
| 4311 | _ACEOF |
| 4312 | |
| 4313 | fi |
| 4314 | |
| 4315 | done |
| 4316 | |
| 4317 | for ac_header in stdint.h |
| 4318 | do : |
| 4319 | ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default" |
| 4320 | if test "x$ac_cv_header_stdint_h" = xyes; then : |
| 4321 | cat >>confdefs.h <<_ACEOF |
| 4322 | #define HAVE_STDINT_H 1 |
| 4323 | _ACEOF |
| 4324 | |
| 4325 | fi |
| 4326 | |
| 4327 | done |
| 4328 | |
| 4329 | for ac_header in sys/uio.h |
| 4330 | do : |
| 4331 | ac_fn_c_check_header_mongrel "$LINENO" "sys/uio.h" "ac_cv_header_sys_uio_h" "$ac_includes_default" |
| 4332 | if test "x$ac_cv_header_sys_uio_h" = xyes; then : |
| 4333 | cat >>confdefs.h <<_ACEOF |
| 4334 | #define HAVE_SYS_UIO_H 1 |
| 4335 | _ACEOF |
| 4336 | |
| 4337 | fi |
| 4338 | |
| 4339 | done |
| 4340 | |
| 4341 | for ac_header in inttypes.h |
| 4342 | do : |
| 4343 | ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default" |
| 4344 | if test "x$ac_cv_header_inttypes_h" = xyes; then : |
| 4345 | cat >>confdefs.h <<_ACEOF |
| 4346 | #define HAVE_INTTYPES_H 1 |
| 4347 | _ACEOF |
| 4348 | |
| 4349 | fi |
| 4350 | |
| 4351 | done |
| 4352 | |
| 4353 | for ac_header in sys/types.h |
| 4354 | do : |
| 4355 | ac_fn_c_check_header_mongrel "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default" |
| 4356 | if test "x$ac_cv_header_sys_types_h" = xyes; then : |
| 4357 | cat >>confdefs.h <<_ACEOF |
| 4358 | #define HAVE_SYS_TYPES_H 1 |
| 4359 | _ACEOF |
| 4360 | |
| 4361 | fi |
| 4362 | |
| 4363 | done |
| 4364 | |
| 4365 | for ac_header in machine/types.h |
| 4366 | do : |
| 4367 | ac_fn_c_check_header_mongrel "$LINENO" "machine/types.h" "ac_cv_header_machine_types_h" "$ac_includes_default" |
| 4368 | if test "x$ac_cv_header_machine_types_h" = xyes; then : |
| 4369 | cat >>confdefs.h <<_ACEOF |
| 4370 | #define HAVE_MACHINE_TYPES_H 1 |
| 4371 | _ACEOF |
| 4372 | |
| 4373 | fi |
| 4374 | |
| 4375 | done |
| 4376 | |
| 4377 | for ac_header in sys/int_types.h |
| 4378 | do : |
| 4379 | ac_fn_c_check_header_mongrel "$LINENO" "sys/int_types.h" "ac_cv_header_sys_int_types_h" "$ac_includes_default" |
| 4380 | if test "x$ac_cv_header_sys_int_types_h" = xyes; then : |
| 4381 | cat >>confdefs.h <<_ACEOF |
| 4382 | #define HAVE_SYS_INT_TYPES_H 1 |
| 4383 | _ACEOF |
| 4384 | |
| 4385 | fi |
| 4386 | |
| 4387 | done |
| 4388 | |
| 4389 | |
| 4390 | for ac_header in sys/socket.h netinet/in.h arpa/inet.h |
| 4391 | do : |
| 4392 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 4393 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" |
| 4394 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
| 4395 | cat >>confdefs.h <<_ACEOF |
| 4396 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 4397 | _ACEOF |
| 4398 | |
| 4399 | fi |
| 4400 | |
| 4401 | done |
| 4402 | |
| 4403 | for ac_header in windows.h |
| 4404 | do : |
| 4405 | ac_fn_c_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default" |
| 4406 | if test "x$ac_cv_header_windows_h" = xyes; then : |
| 4407 | cat >>confdefs.h <<_ACEOF |
| 4408 | #define HAVE_WINDOWS_H 1 |
| 4409 | _ACEOF |
| 4410 | for ac_header in winsock2.h |
| 4411 | do : |
| 4412 | ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default" |
| 4413 | if test "x$ac_cv_header_winsock2_h" = xyes; then : |
| 4414 | cat >>confdefs.h <<_ACEOF |
| 4415 | #define HAVE_WINSOCK2_H 1 |
| 4416 | _ACEOF |
| 4417 | |
| 4418 | fi |
| 4419 | |
| 4420 | done |
| 4421 | |
| 4422 | fi |
| 4423 | |
| 4424 | done |
| 4425 | |
| 4426 | |
| 4427 | for ac_header in syslog.h |
| 4428 | do : |
| 4429 | ac_fn_c_check_header_mongrel "$LINENO" "syslog.h" "ac_cv_header_syslog_h" "$ac_includes_default" |
| 4430 | if test "x$ac_cv_header_syslog_h" = xyes; then : |
| 4431 | cat >>confdefs.h <<_ACEOF |
| 4432 | #define HAVE_SYSLOG_H 1 |
| 4433 | _ACEOF |
| 4434 | |
| 4435 | fi |
| 4436 | |
| 4437 | done |
| 4438 | |
| 4439 | |
| 4440 | ac_fn_c_check_type "$LINENO" "int8_t" "ac_cv_type_int8_t" "$ac_includes_default" |
| 4441 | if test "x$ac_cv_type_int8_t" = xyes; then : |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 4442 | |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame] | 4443 | cat >>confdefs.h <<_ACEOF |
David McGrew | d1694b5 | 2005-09-29 10:59:33 +0000 | [diff] [blame] | 4444 | #define HAVE_INT8_T 1 |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame] | 4445 | _ACEOF |
| 4446 | |
| 4447 | |
| 4448 | fi |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 4449 | ac_fn_c_check_type "$LINENO" "uint8_t" "ac_cv_type_uint8_t" "$ac_includes_default" |
| 4450 | if test "x$ac_cv_type_uint8_t" = xyes; then : |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame] | 4451 | |
| 4452 | cat >>confdefs.h <<_ACEOF |
David McGrew | d1694b5 | 2005-09-29 10:59:33 +0000 | [diff] [blame] | 4453 | #define HAVE_UINT8_T 1 |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame] | 4454 | _ACEOF |
| 4455 | |
| 4456 | |
| 4457 | fi |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 4458 | ac_fn_c_check_type "$LINENO" "int16_t" "ac_cv_type_int16_t" "$ac_includes_default" |
| 4459 | if test "x$ac_cv_type_int16_t" = xyes; then : |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame] | 4460 | |
| 4461 | cat >>confdefs.h <<_ACEOF |
David McGrew | d1694b5 | 2005-09-29 10:59:33 +0000 | [diff] [blame] | 4462 | #define HAVE_INT16_T 1 |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame] | 4463 | _ACEOF |
| 4464 | |
| 4465 | |
| 4466 | fi |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 4467 | ac_fn_c_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "$ac_includes_default" |
| 4468 | if test "x$ac_cv_type_uint16_t" = xyes; then : |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame] | 4469 | |
| 4470 | cat >>confdefs.h <<_ACEOF |
David McGrew | d1694b5 | 2005-09-29 10:59:33 +0000 | [diff] [blame] | 4471 | #define HAVE_UINT16_T 1 |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame] | 4472 | _ACEOF |
| 4473 | |
| 4474 | |
| 4475 | fi |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 4476 | ac_fn_c_check_type "$LINENO" "int32_t" "ac_cv_type_int32_t" "$ac_includes_default" |
| 4477 | if test "x$ac_cv_type_int32_t" = xyes; then : |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame] | 4478 | |
| 4479 | cat >>confdefs.h <<_ACEOF |
David McGrew | d1694b5 | 2005-09-29 10:59:33 +0000 | [diff] [blame] | 4480 | #define HAVE_INT32_T 1 |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame] | 4481 | _ACEOF |
| 4482 | |
| 4483 | |
| 4484 | fi |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 4485 | ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "$ac_includes_default" |
| 4486 | if test "x$ac_cv_type_uint32_t" = xyes; then : |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame] | 4487 | |
| 4488 | cat >>confdefs.h <<_ACEOF |
David McGrew | d1694b5 | 2005-09-29 10:59:33 +0000 | [diff] [blame] | 4489 | #define HAVE_UINT32_T 1 |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame] | 4490 | _ACEOF |
| 4491 | |
| 4492 | |
| 4493 | fi |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 4494 | ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "$ac_includes_default" |
| 4495 | if test "x$ac_cv_type_uint64_t" = xyes; then : |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame] | 4496 | |
| 4497 | cat >>confdefs.h <<_ACEOF |
David McGrew | d1694b5 | 2005-09-29 10:59:33 +0000 | [diff] [blame] | 4498 | #define HAVE_UINT64_T 1 |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame] | 4499 | _ACEOF |
| 4500 | |
| 4501 | |
| 4502 | fi |
| 4503 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 4504 | # The cast to long int works around a bug in the HP C Compiler |
| 4505 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 4506 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 4507 | # This bug is HP SR number 8606223364. |
| 4508 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5 |
| 4509 | $as_echo_n "checking size of unsigned long... " >&6; } |
| 4510 | if ${ac_cv_sizeof_unsigned_long+:} false; then : |
| 4511 | $as_echo_n "(cached) " >&6 |
Marcus Sundberg | 9aef51e | 2005-10-02 20:02:55 +0000 | [diff] [blame] | 4512 | else |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 4513 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long))" "ac_cv_sizeof_unsigned_long" "$ac_includes_default"; then : |
Marcus Sundberg | 9aef51e | 2005-10-02 20:02:55 +0000 | [diff] [blame] | 4514 | |
Marcus Sundberg | 9aef51e | 2005-10-02 20:02:55 +0000 | [diff] [blame] | 4515 | else |
| 4516 | if test "$ac_cv_type_unsigned_long" = yes; then |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 4517 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 4518 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 4519 | as_fn_error 77 "cannot compute sizeof (unsigned long) |
| 4520 | See \`config.log' for more details" "$LINENO" 5; } |
| 4521 | else |
| 4522 | ac_cv_sizeof_unsigned_long=0 |
| 4523 | fi |
Marcus Sundberg | 9aef51e | 2005-10-02 20:02:55 +0000 | [diff] [blame] | 4524 | fi |
Marcus Sundberg | 9aef51e | 2005-10-02 20:02:55 +0000 | [diff] [blame] | 4525 | |
Marcus Sundberg | 9aef51e | 2005-10-02 20:02:55 +0000 | [diff] [blame] | 4526 | fi |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 4527 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5 |
| 4528 | $as_echo "$ac_cv_sizeof_unsigned_long" >&6; } |
Marcus Sundberg | 9aef51e | 2005-10-02 20:02:55 +0000 | [diff] [blame] | 4529 | |
Marcus Sundberg | 9aef51e | 2005-10-02 20:02:55 +0000 | [diff] [blame] | 4530 | |
Marcus Sundberg | 9aef51e | 2005-10-02 20:02:55 +0000 | [diff] [blame] | 4531 | |
Marcus Sundberg | 9aef51e | 2005-10-02 20:02:55 +0000 | [diff] [blame] | 4532 | cat >>confdefs.h <<_ACEOF |
| 4533 | #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long |
| 4534 | _ACEOF |
| 4535 | |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame] | 4536 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 4537 | # The cast to long int works around a bug in the HP C Compiler |
| 4538 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 4539 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 4540 | # This bug is HP SR number 8606223364. |
| 4541 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long long" >&5 |
| 4542 | $as_echo_n "checking size of unsigned long long... " >&6; } |
| 4543 | if ${ac_cv_sizeof_unsigned_long_long+:} false; then : |
| 4544 | $as_echo_n "(cached) " >&6 |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame] | 4545 | else |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 4546 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long long))" "ac_cv_sizeof_unsigned_long_long" "$ac_includes_default"; then : |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame] | 4547 | |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame] | 4548 | else |
Marcus Sundberg | 9aef51e | 2005-10-02 20:02:55 +0000 | [diff] [blame] | 4549 | if test "$ac_cv_type_unsigned_long_long" = yes; then |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 4550 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 4551 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 4552 | as_fn_error 77 "cannot compute sizeof (unsigned long long) |
| 4553 | See \`config.log' for more details" "$LINENO" 5; } |
| 4554 | else |
| 4555 | ac_cv_sizeof_unsigned_long_long=0 |
| 4556 | fi |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame] | 4557 | fi |
| 4558 | |
Marcus Sundberg | 9aef51e | 2005-10-02 20:02:55 +0000 | [diff] [blame] | 4559 | fi |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 4560 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long" >&5 |
| 4561 | $as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; } |
Marcus Sundberg | 9aef51e | 2005-10-02 20:02:55 +0000 | [diff] [blame] | 4562 | |
Marcus Sundberg | 9aef51e | 2005-10-02 20:02:55 +0000 | [diff] [blame] | 4563 | |
Marcus Sundberg | 9aef51e | 2005-10-02 20:02:55 +0000 | [diff] [blame] | 4564 | |
Marcus Sundberg | 9aef51e | 2005-10-02 20:02:55 +0000 | [diff] [blame] | 4565 | cat >>confdefs.h <<_ACEOF |
| 4566 | #define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame] | 4567 | _ACEOF |
| 4568 | |
Marcus Sundberg | 9aef51e | 2005-10-02 20:02:55 +0000 | [diff] [blame] | 4569 | |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 4570 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 4571 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 |
| 4572 | $as_echo_n "checking for an ANSI C-conforming const... " >&6; } |
| 4573 | if ${ac_cv_c_const+:} false; then : |
| 4574 | $as_echo_n "(cached) " >&6 |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 4575 | else |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 4576 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 4577 | /* end confdefs.h. */ |
| 4578 | |
| 4579 | int |
| 4580 | main () |
| 4581 | { |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 4582 | |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 4583 | #ifndef __cplusplus |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 4584 | /* Ultrix mips cc rejects this sort of thing. */ |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 4585 | typedef int charset[2]; |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 4586 | const charset cs = { 0, 0 }; |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 4587 | /* SunOS 4.1.1 cc rejects this. */ |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 4588 | char const *const *pcpcc; |
| 4589 | char **ppc; |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 4590 | /* NEC SVR4.0.2 mips cc rejects this. */ |
| 4591 | struct point {int x, y;}; |
| 4592 | static struct point const zero = {0,0}; |
| 4593 | /* AIX XL C 1.02.0.0 rejects this. |
| 4594 | It does not let you subtract one const X* pointer from another in |
| 4595 | an arm of an if-expression whose if-part is not a constant |
| 4596 | expression */ |
| 4597 | const char *g = "string"; |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 4598 | pcpcc = &g + (g ? g-g : 0); |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 4599 | /* HPUX 7.0 cc rejects these. */ |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 4600 | ++pcpcc; |
| 4601 | ppc = (char**) pcpcc; |
| 4602 | pcpcc = (char const *const *) ppc; |
| 4603 | { /* SCO 3.2v4 cc rejects this sort of thing. */ |
| 4604 | char tx; |
| 4605 | char *t = &tx; |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 4606 | char const *s = 0 ? (char *) 0 : (char const *) 0; |
| 4607 | |
| 4608 | *t++ = 0; |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 4609 | if (s) return 0; |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 4610 | } |
| 4611 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ |
| 4612 | int x[] = {25, 17}; |
| 4613 | const int *foo = &x[0]; |
| 4614 | ++foo; |
| 4615 | } |
| 4616 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ |
| 4617 | typedef const int *iptr; |
| 4618 | iptr p = 0; |
| 4619 | ++p; |
| 4620 | } |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 4621 | { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 4622 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 4623 | struct s { int j; const int *ap[3]; } bx; |
| 4624 | struct s *b = &bx; b->j = 5; |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 4625 | } |
| 4626 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ |
| 4627 | const int foo = 10; |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 4628 | if (!foo) return 0; |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 4629 | } |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 4630 | return !cs[0] && !zero.x; |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 4631 | #endif |
| 4632 | |
| 4633 | ; |
| 4634 | return 0; |
| 4635 | } |
| 4636 | _ACEOF |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 4637 | if ac_fn_c_try_compile "$LINENO"; then : |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 4638 | ac_cv_c_const=yes |
| 4639 | else |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 4640 | ac_cv_c_const=no |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 4641 | fi |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 4642 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 4643 | fi |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 4644 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 |
| 4645 | $as_echo "$ac_cv_c_const" >&6; } |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 4646 | if test $ac_cv_c_const = no; then |
| 4647 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 4648 | $as_echo "#define const /**/" >>confdefs.h |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 4649 | |
| 4650 | fi |
| 4651 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 4652 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 |
| 4653 | $as_echo_n "checking for inline... " >&6; } |
| 4654 | if ${ac_cv_c_inline+:} false; then : |
| 4655 | $as_echo_n "(cached) " >&6 |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 4656 | else |
| 4657 | ac_cv_c_inline=no |
| 4658 | for ac_kw in inline __inline__ __inline; do |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 4659 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 4660 | /* end confdefs.h. */ |
| 4661 | #ifndef __cplusplus |
| 4662 | typedef int foo_t; |
| 4663 | static $ac_kw foo_t static_foo () {return 0; } |
| 4664 | $ac_kw foo_t foo () {return 0; } |
| 4665 | #endif |
| 4666 | |
| 4667 | _ACEOF |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 4668 | if ac_fn_c_try_compile "$LINENO"; then : |
| 4669 | ac_cv_c_inline=$ac_kw |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 4670 | fi |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 4671 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4672 | test "$ac_cv_c_inline" != no && break |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 4673 | done |
| 4674 | |
| 4675 | fi |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 4676 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 |
| 4677 | $as_echo "$ac_cv_c_inline" >&6; } |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame] | 4678 | |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 4679 | case $ac_cv_c_inline in |
| 4680 | inline | yes) ;; |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame] | 4681 | *) |
| 4682 | case $ac_cv_c_inline in |
| 4683 | no) ac_val=;; |
| 4684 | *) ac_val=$ac_cv_c_inline;; |
| 4685 | esac |
| 4686 | cat >>confdefs.h <<_ACEOF |
| 4687 | #ifndef __cplusplus |
| 4688 | #define inline $ac_val |
| 4689 | #endif |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 4690 | _ACEOF |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame] | 4691 | ;; |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 4692 | esac |
| 4693 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 4694 | ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" |
| 4695 | if test "x$ac_cv_type_size_t" = xyes; then : |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 4696 | |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 4697 | else |
| 4698 | |
| 4699 | cat >>confdefs.h <<_ACEOF |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 4700 | #define size_t unsigned int |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 4701 | _ACEOF |
| 4702 | |
| 4703 | fi |
| 4704 | |
| 4705 | |
Jonathan Lennox | 3f7fc22 | 2010-05-17 19:32:02 +0000 | [diff] [blame] | 4706 | for ac_func in socket inet_aton usleep sigaction |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 4707 | do : |
| 4708 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 4709 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
| 4710 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 4711 | cat >>confdefs.h <<_ACEOF |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 4712 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 4713 | _ACEOF |
| 4714 | |
| 4715 | fi |
| 4716 | done |
| 4717 | |
| 4718 | |
Marcus Sundberg | 9aef51e | 2005-10-02 20:02:55 +0000 | [diff] [blame] | 4719 | if test "x$ac_cv_func_socket" = "xno"; then |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 4720 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5 |
| 4721 | $as_echo_n "checking for socket in -lsocket... " >&6; } |
| 4722 | if ${ac_cv_lib_socket_socket+:} false; then : |
| 4723 | $as_echo_n "(cached) " >&6 |
David McGrew | b67061f | 2005-09-28 14:23:06 +0000 | [diff] [blame] | 4724 | else |
| 4725 | ac_check_lib_save_LIBS=$LIBS |
| 4726 | LIBS="-lsocket $LIBS" |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 4727 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
David McGrew | b67061f | 2005-09-28 14:23:06 +0000 | [diff] [blame] | 4728 | /* end confdefs.h. */ |
| 4729 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 4730 | /* Override any GCC internal prototype to avoid an error. |
| 4731 | Use char because int might match the return type of a GCC |
| 4732 | builtin and then its argument prototype would still apply. */ |
David McGrew | b67061f | 2005-09-28 14:23:06 +0000 | [diff] [blame] | 4733 | #ifdef __cplusplus |
| 4734 | extern "C" |
| 4735 | #endif |
David McGrew | b67061f | 2005-09-28 14:23:06 +0000 | [diff] [blame] | 4736 | char socket (); |
| 4737 | int |
| 4738 | main () |
| 4739 | { |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 4740 | return socket (); |
David McGrew | b67061f | 2005-09-28 14:23:06 +0000 | [diff] [blame] | 4741 | ; |
| 4742 | return 0; |
| 4743 | } |
| 4744 | _ACEOF |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 4745 | if ac_fn_c_try_link "$LINENO"; then : |
David McGrew | b67061f | 2005-09-28 14:23:06 +0000 | [diff] [blame] | 4746 | ac_cv_lib_socket_socket=yes |
| 4747 | else |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 4748 | ac_cv_lib_socket_socket=no |
David McGrew | b67061f | 2005-09-28 14:23:06 +0000 | [diff] [blame] | 4749 | fi |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 4750 | rm -f core conftest.err conftest.$ac_objext \ |
| 4751 | conftest$ac_exeext conftest.$ac_ext |
David McGrew | b67061f | 2005-09-28 14:23:06 +0000 | [diff] [blame] | 4752 | LIBS=$ac_check_lib_save_LIBS |
| 4753 | fi |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 4754 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5 |
| 4755 | $as_echo "$ac_cv_lib_socket_socket" >&6; } |
| 4756 | if test "x$ac_cv_lib_socket_socket" = xyes; then : |
David McGrew | b67061f | 2005-09-28 14:23:06 +0000 | [diff] [blame] | 4757 | cat >>confdefs.h <<_ACEOF |
| 4758 | #define HAVE_LIBSOCKET 1 |
| 4759 | _ACEOF |
| 4760 | |
| 4761 | LIBS="-lsocket $LIBS" |
| 4762 | |
| 4763 | fi |
| 4764 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 4765 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lwsock32" >&5 |
| 4766 | $as_echo_n "checking for socket in -lwsock32... " >&6; } |
Marcus Sundberg | 9aef51e | 2005-10-02 20:02:55 +0000 | [diff] [blame] | 4767 | SAVELIBS="$LIBS" |
| 4768 | LIBS="$LIBS -lwsock32" |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 4769 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Marcus Sundberg | 9aef51e | 2005-10-02 20:02:55 +0000 | [diff] [blame] | 4770 | /* end confdefs.h. */ |
| 4771 | |
| 4772 | #include <winsock2.h> |
| 4773 | |
| 4774 | int |
| 4775 | main () |
| 4776 | { |
| 4777 | |
| 4778 | socket(0, 0, 0); |
| 4779 | |
| 4780 | ; |
| 4781 | return 0; |
| 4782 | } |
| 4783 | _ACEOF |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 4784 | if ac_fn_c_try_link "$LINENO"; then : |
Marcus Sundberg | 9aef51e | 2005-10-02 20:02:55 +0000 | [diff] [blame] | 4785 | ac_cv_func_socket=yes |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 4786 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 4787 | $as_echo "yes" >&6; } |
Marcus Sundberg | 9aef51e | 2005-10-02 20:02:55 +0000 | [diff] [blame] | 4788 | else |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 4789 | LIBS="$SAVELIBS" |
| 4790 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4791 | $as_echo "no" >&6; } |
Marcus Sundberg | 9aef51e | 2005-10-02 20:02:55 +0000 | [diff] [blame] | 4792 | fi |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 4793 | rm -f core conftest.err conftest.$ac_objext \ |
| 4794 | conftest$ac_exeext conftest.$ac_ext |
Marcus Sundberg | 9aef51e | 2005-10-02 20:02:55 +0000 | [diff] [blame] | 4795 | fi |
David McGrew | b67061f | 2005-09-28 14:23:06 +0000 | [diff] [blame] | 4796 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 4797 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to compile in debugging" >&5 |
| 4798 | $as_echo_n "checking whether to compile in debugging... " >&6; } |
| 4799 | # Check whether --enable-debug was given. |
| 4800 | if test "${enable_debug+set}" = set; then : |
| 4801 | enableval=$enable_debug; |
David McGrew | b67061f | 2005-09-28 14:23:06 +0000 | [diff] [blame] | 4802 | else |
| 4803 | enable_debug=yes |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 4804 | fi |
| 4805 | |
David McGrew | b67061f | 2005-09-28 14:23:06 +0000 | [diff] [blame] | 4806 | if test "$enable_debug" = "yes"; then |
| 4807 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 4808 | $as_echo "#define ENABLE_DEBUGGING 1" >>confdefs.h |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 4809 | |
| 4810 | fi |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 4811 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_debug" >&5 |
| 4812 | $as_echo "$enable_debug" >&6; } |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 4813 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 4814 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use ISMAcryp code" >&5 |
| 4815 | $as_echo_n "checking whether to use ISMAcryp code... " >&6; } |
| 4816 | # Check whether --enable-generic-aesicm was given. |
| 4817 | if test "${enable_generic_aesicm+set}" = set; then : |
| 4818 | enableval=$enable_generic_aesicm; |
David McGrew | b67061f | 2005-09-28 14:23:06 +0000 | [diff] [blame] | 4819 | else |
| 4820 | enable_generic_aesicm=no |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 4821 | fi |
| 4822 | |
David McGrew | b67061f | 2005-09-28 14:23:06 +0000 | [diff] [blame] | 4823 | if test "$enable_generic_aesicm" = "yes"; then |
| 4824 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 4825 | $as_echo "#define GENERIC_AESICM 1" >>confdefs.h |
jfigus | a14b5a0 | 2013-03-29 12:24:12 -0400 | [diff] [blame] | 4826 | |
jfigus | a14b5a0 | 2013-03-29 12:24:12 -0400 | [diff] [blame] | 4827 | fi |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 4828 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_generic_aesicm" >&5 |
| 4829 | $as_echo "$enable_generic_aesicm" >&6; } |
jfigus | a14b5a0 | 2013-03-29 12:24:12 -0400 | [diff] [blame] | 4830 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 4831 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to leverage OpenSSL crypto" >&5 |
| 4832 | $as_echo_n "checking whether to leverage OpenSSL crypto... " >&6; } |
| 4833 | # Check whether --enable-openssl was given. |
| 4834 | if test "${enable_openssl+set}" = set; then : |
| 4835 | enableval=$enable_openssl; |
| 4836 | else |
| 4837 | enable_openssl=no |
| 4838 | fi |
jfigus | a14b5a0 | 2013-03-29 12:24:12 -0400 | [diff] [blame] | 4839 | |
jfigus | 2b48665 | 2014-07-24 15:01:41 -0400 | [diff] [blame] | 4840 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_openssl" >&5 |
| 4841 | $as_echo "$enable_openssl" >&6; } |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 4842 | if test "$enable_openssl" = "yes"; then |
Sean Bright | bfb9e30 | 2014-03-24 20:45:17 -0400 | [diff] [blame] | 4843 | LDFLAGS="$LDFLAGS $(pkg-config --libs openssl)"; |
| 4844 | CFLAGS="$CFLAGS $(pkg-config --cflags openssl)"; |
Cullen Jennings | e1de50f | 2013-05-22 12:27:28 -0600 | [diff] [blame] | 4845 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 4846 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EVP_EncryptInit in -lcrypto" >&5 |
| 4847 | $as_echo_n "checking for EVP_EncryptInit in -lcrypto... " >&6; } |
| 4848 | if ${ac_cv_lib_crypto_EVP_EncryptInit+:} false; then : |
| 4849 | $as_echo_n "(cached) " >&6 |
| 4850 | else |
| 4851 | ac_check_lib_save_LIBS=$LIBS |
| 4852 | LIBS="-lcrypto $LIBS" |
| 4853 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4854 | /* end confdefs.h. */ |
| 4855 | |
| 4856 | /* Override any GCC internal prototype to avoid an error. |
| 4857 | Use char because int might match the return type of a GCC |
| 4858 | builtin and then its argument prototype would still apply. */ |
| 4859 | #ifdef __cplusplus |
| 4860 | extern "C" |
| 4861 | #endif |
| 4862 | char EVP_EncryptInit (); |
| 4863 | int |
| 4864 | main () |
| 4865 | { |
| 4866 | return EVP_EncryptInit (); |
| 4867 | ; |
| 4868 | return 0; |
| 4869 | } |
| 4870 | _ACEOF |
| 4871 | if ac_fn_c_try_link "$LINENO"; then : |
| 4872 | ac_cv_lib_crypto_EVP_EncryptInit=yes |
| 4873 | else |
| 4874 | ac_cv_lib_crypto_EVP_EncryptInit=no |
| 4875 | fi |
| 4876 | rm -f core conftest.err conftest.$ac_objext \ |
| 4877 | conftest$ac_exeext conftest.$ac_ext |
| 4878 | LIBS=$ac_check_lib_save_LIBS |
| 4879 | fi |
| 4880 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_EVP_EncryptInit" >&5 |
| 4881 | $as_echo "$ac_cv_lib_crypto_EVP_EncryptInit" >&6; } |
| 4882 | if test "x$ac_cv_lib_crypto_EVP_EncryptInit" = xyes; then : |
| 4883 | cat >>confdefs.h <<_ACEOF |
| 4884 | #define HAVE_LIBCRYPTO 1 |
| 4885 | _ACEOF |
| 4886 | |
| 4887 | LIBS="-lcrypto $LIBS" |
| 4888 | |
| 4889 | else |
| 4890 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 4891 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
jfigus | 5b22e37 | 2013-05-09 09:23:26 -0400 | [diff] [blame] | 4892 | as_fn_error $? "can't find openssl >1.0.1 crypto lib |
| 4893 | See \`config.log' for more details" "$LINENO" 5; } |
| 4894 | fi |
| 4895 | |
| 4896 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EVP_aes_128_ctr in -lcrypto" >&5 |
| 4897 | $as_echo_n "checking for EVP_aes_128_ctr in -lcrypto... " >&6; } |
| 4898 | if ${ac_cv_lib_crypto_EVP_aes_128_ctr+:} false; then : |
| 4899 | $as_echo_n "(cached) " >&6 |
| 4900 | else |
| 4901 | ac_check_lib_save_LIBS=$LIBS |
| 4902 | LIBS="-lcrypto $LIBS" |
| 4903 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4904 | /* end confdefs.h. */ |
| 4905 | |
| 4906 | /* Override any GCC internal prototype to avoid an error. |
| 4907 | Use char because int might match the return type of a GCC |
| 4908 | builtin and then its argument prototype would still apply. */ |
| 4909 | #ifdef __cplusplus |
| 4910 | extern "C" |
| 4911 | #endif |
| 4912 | char EVP_aes_128_ctr (); |
| 4913 | int |
| 4914 | main () |
| 4915 | { |
| 4916 | return EVP_aes_128_ctr (); |
| 4917 | ; |
| 4918 | return 0; |
| 4919 | } |
| 4920 | _ACEOF |
| 4921 | if ac_fn_c_try_link "$LINENO"; then : |
| 4922 | ac_cv_lib_crypto_EVP_aes_128_ctr=yes |
| 4923 | else |
| 4924 | ac_cv_lib_crypto_EVP_aes_128_ctr=no |
| 4925 | fi |
| 4926 | rm -f core conftest.err conftest.$ac_objext \ |
| 4927 | conftest$ac_exeext conftest.$ac_ext |
| 4928 | LIBS=$ac_check_lib_save_LIBS |
| 4929 | fi |
| 4930 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_EVP_aes_128_ctr" >&5 |
| 4931 | $as_echo "$ac_cv_lib_crypto_EVP_aes_128_ctr" >&6; } |
| 4932 | if test "x$ac_cv_lib_crypto_EVP_aes_128_ctr" = xyes; then : |
| 4933 | cat >>confdefs.h <<_ACEOF |
| 4934 | #define HAVE_LIBCRYPTO 1 |
| 4935 | _ACEOF |
| 4936 | |
| 4937 | LIBS="-lcrypto $LIBS" |
| 4938 | |
| 4939 | else |
| 4940 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 4941 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 4942 | as_fn_error $? "can't find openssl >1.0.1 crypto lib |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 4943 | See \`config.log' for more details" "$LINENO" 5; } |
| 4944 | fi |
| 4945 | |
jfigus | 7882dd9 | 2013-08-02 16:08:23 -0400 | [diff] [blame] | 4946 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EVP_aes_128_gcm in -lcrypto" >&5 |
| 4947 | $as_echo_n "checking for EVP_aes_128_gcm in -lcrypto... " >&6; } |
| 4948 | if ${ac_cv_lib_crypto_EVP_aes_128_gcm+:} false; then : |
| 4949 | $as_echo_n "(cached) " >&6 |
| 4950 | else |
| 4951 | ac_check_lib_save_LIBS=$LIBS |
| 4952 | LIBS="-lcrypto $LIBS" |
| 4953 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4954 | /* end confdefs.h. */ |
| 4955 | |
| 4956 | /* Override any GCC internal prototype to avoid an error. |
| 4957 | Use char because int might match the return type of a GCC |
| 4958 | builtin and then its argument prototype would still apply. */ |
| 4959 | #ifdef __cplusplus |
| 4960 | extern "C" |
| 4961 | #endif |
| 4962 | char EVP_aes_128_gcm (); |
| 4963 | int |
| 4964 | main () |
| 4965 | { |
| 4966 | return EVP_aes_128_gcm (); |
| 4967 | ; |
| 4968 | return 0; |
| 4969 | } |
| 4970 | _ACEOF |
| 4971 | if ac_fn_c_try_link "$LINENO"; then : |
| 4972 | ac_cv_lib_crypto_EVP_aes_128_gcm=yes |
| 4973 | else |
| 4974 | ac_cv_lib_crypto_EVP_aes_128_gcm=no |
| 4975 | fi |
| 4976 | rm -f core conftest.err conftest.$ac_objext \ |
| 4977 | conftest$ac_exeext conftest.$ac_ext |
| 4978 | LIBS=$ac_check_lib_save_LIBS |
| 4979 | fi |
| 4980 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_EVP_aes_128_gcm" >&5 |
| 4981 | $as_echo "$ac_cv_lib_crypto_EVP_aes_128_gcm" >&6; } |
| 4982 | if test "x$ac_cv_lib_crypto_EVP_aes_128_gcm" = xyes; then : |
| 4983 | cat >>confdefs.h <<_ACEOF |
| 4984 | #define HAVE_LIBCRYPTO 1 |
| 4985 | _ACEOF |
| 4986 | |
| 4987 | LIBS="-lcrypto $LIBS" |
| 4988 | |
| 4989 | else |
| 4990 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 4991 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 4992 | as_fn_error $? "can't find openssl >1.0.1 crypto lib |
| 4993 | See \`config.log' for more details" "$LINENO" 5; } |
| 4994 | fi |
| 4995 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 4996 | |
| 4997 | $as_echo "#define OPENSSL 1" >>confdefs.h |
| 4998 | |
jfigus | 7882dd9 | 2013-08-02 16:08:23 -0400 | [diff] [blame] | 4999 | AES_ICM_OBJS="crypto/cipher/aes_icm_ossl.o crypto/cipher/aes_gcm_ossl.o" |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 5000 | RNG_OBJS=rand_source_ossl.o |
| 5001 | HMAC_OBJS=crypto/hash/hmac_ossl.o |
| 5002 | USE_OPENSSL=1 |
| 5003 | |
| 5004 | else |
| 5005 | AES_ICM_OBJS="crypto/cipher/aes_icm.o crypto/cipher/aes.o crypto/cipher/aes_cbc.o" |
jfigus | 7882dd9 | 2013-08-02 16:08:23 -0400 | [diff] [blame] | 5006 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking which random device to use" >&5 |
| 5007 | $as_echo_n "checking which random device to use... " >&6; } |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 5008 | if test "$enable_kernel_linux" = "yes"; then |
| 5009 | RNG_OBJS=rand_linux_kernel.o |
| 5010 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Linux kernel builtin" >&5 |
| 5011 | $as_echo "Linux kernel builtin" >&6; } |
| 5012 | else |
| 5013 | RNG_OBJS=rand_source.o |
| 5014 | if test -n "$DEV_URANDOM"; then |
| 5015 | |
| 5016 | cat >>confdefs.h <<_ACEOF |
| 5017 | #define DEV_URANDOM "$DEV_URANDOM" |
| 5018 | _ACEOF |
| 5019 | |
| 5020 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEV_URANDOM" >&5 |
| 5021 | $as_echo "$DEV_URANDOM" >&6; } |
| 5022 | else |
| 5023 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: standard rand() function..." >&5 |
| 5024 | $as_echo "standard rand() function..." >&6; } |
| 5025 | fi |
| 5026 | fi |
| 5027 | RNG_EXTRA_OBJS="crypto/rng/prng.o crypto/rng/ctr_prng.o" |
| 5028 | HMAC_OBJS="crypto/hash/hmac.o crypto/hash/sha1.o" |
| 5029 | fi |
| 5030 | |
| 5031 | |
| 5032 | |
| 5033 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 5034 | |
| 5035 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use syslog for error reporting" >&5 |
| 5036 | $as_echo_n "checking whether to use syslog for error reporting... " >&6; } |
| 5037 | # Check whether --enable-syslog was given. |
| 5038 | if test "${enable_syslog+set}" = set; then : |
| 5039 | enableval=$enable_syslog; |
David McGrew | b67061f | 2005-09-28 14:23:06 +0000 | [diff] [blame] | 5040 | else |
| 5041 | enable_syslog=no |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 5042 | fi |
| 5043 | |
David McGrew | b67061f | 2005-09-28 14:23:06 +0000 | [diff] [blame] | 5044 | if test "$enable_syslog" = "yes"; then |
| 5045 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 5046 | $as_echo "#define USE_SYSLOG 1" >>confdefs.h |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 5047 | |
| 5048 | fi |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 5049 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_syslog" >&5 |
| 5050 | $as_echo "$enable_syslog" >&6; } |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 5051 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 5052 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use stdout for error reporting" >&5 |
| 5053 | $as_echo_n "checking whether to use stdout for error reporting... " >&6; } |
| 5054 | # Check whether --enable-stdout was given. |
| 5055 | if test "${enable_stdout+set}" = set; then : |
| 5056 | enableval=$enable_stdout; |
David McGrew | b67061f | 2005-09-28 14:23:06 +0000 | [diff] [blame] | 5057 | else |
| 5058 | enable_stdout=yes |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 5059 | fi |
| 5060 | |
David McGrew | b67061f | 2005-09-28 14:23:06 +0000 | [diff] [blame] | 5061 | if test "$enable_stdout" = "yes"; then |
| 5062 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 5063 | $as_echo "#define ERR_REPORTING_STDOUT 1" >>confdefs.h |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 5064 | |
| 5065 | fi |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 5066 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_stdout" >&5 |
| 5067 | $as_echo "$enable_stdout" >&6; } |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 5068 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 5069 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use /dev/console for error reporting" >&5 |
| 5070 | $as_echo_n "checking whether to use /dev/console for error reporting... " >&6; } |
| 5071 | # Check whether --enable-console was given. |
| 5072 | if test "${enable_console+set}" = set; then : |
| 5073 | enableval=$enable_console; |
David McGrew | b67061f | 2005-09-28 14:23:06 +0000 | [diff] [blame] | 5074 | else |
| 5075 | enable_console=no |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 5076 | fi |
| 5077 | |
David McGrew | b67061f | 2005-09-28 14:23:06 +0000 | [diff] [blame] | 5078 | if test "$enable_console" = "yes"; then |
| 5079 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 5080 | $as_echo "#define USE_ERR_REPORTING_FILE 1" >>confdefs.h |
David McGrew | b67061f | 2005-09-28 14:23:06 +0000 | [diff] [blame] | 5081 | |
| 5082 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 5083 | $as_echo "#define ERR_REPORTING_FILE \"/dev/console\"" >>confdefs.h |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 5084 | |
| 5085 | fi |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 5086 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_console" >&5 |
| 5087 | $as_echo "$enable_console" >&6; } |
David McGrew | b67061f | 2005-09-28 14:23:06 +0000 | [diff] [blame] | 5088 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 5089 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use GDOI key management" >&5 |
| 5090 | $as_echo_n "checking whether to use GDOI key management... " >&6; } |
| 5091 | # Check whether --enable-gdoi was given. |
| 5092 | if test "${enable_gdoi+set}" = set; then : |
| 5093 | enableval=$enable_gdoi; |
David McGrew | b67061f | 2005-09-28 14:23:06 +0000 | [diff] [blame] | 5094 | else |
| 5095 | enable_gdoi=no |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 5096 | fi |
| 5097 | |
David McGrew | b67061f | 2005-09-28 14:23:06 +0000 | [diff] [blame] | 5098 | if test "$enable_gdoi" = "yes"; then |
| 5099 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 5100 | $as_echo "#define SRTP_GDOI 1" >>confdefs.h |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 5101 | |
| 5102 | GDOI_OBJS=gdoi/srtp+gdoi.o |
| 5103 | |
| 5104 | fi |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 5105 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_gdoi" >&5 |
| 5106 | $as_echo "$enable_gdoi" >&6; } |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 5107 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 5108 | ac_config_headers="$ac_config_headers crypto/include/config.h:config_in.h" |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 5109 | |
| 5110 | |
Saúl Ibarra Corretgé | ff3d042 | 2014-10-01 11:24:15 +0200 | [diff] [blame^] | 5111 | # Extract the first word of "pkg-config", so it can be a program name with args. |
| 5112 | set dummy pkg-config; ac_word=$2 |
| 5113 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 5114 | $as_echo_n "checking for $ac_word... " >&6; } |
| 5115 | if ${ac_cv_prog_PKG_CONFIG+:} false; then : |
| 5116 | $as_echo_n "(cached) " >&6 |
| 5117 | else |
| 5118 | if test -n "$PKG_CONFIG"; then |
| 5119 | ac_cv_prog_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test. |
| 5120 | else |
| 5121 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5122 | for as_dir in $PATH |
| 5123 | do |
| 5124 | IFS=$as_save_IFS |
| 5125 | test -z "$as_dir" && as_dir=. |
| 5126 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5127 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 5128 | ac_cv_prog_PKG_CONFIG="yes" |
| 5129 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5130 | break 2 |
| 5131 | fi |
| 5132 | done |
| 5133 | done |
| 5134 | IFS=$as_save_IFS |
| 5135 | |
| 5136 | fi |
| 5137 | fi |
| 5138 | PKG_CONFIG=$ac_cv_prog_PKG_CONFIG |
| 5139 | if test -n "$PKG_CONFIG"; then |
| 5140 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 |
| 5141 | $as_echo "$PKG_CONFIG" >&6; } |
| 5142 | else |
| 5143 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5144 | $as_echo "no" >&6; } |
| 5145 | fi |
| 5146 | |
| 5147 | |
| 5148 | if test "x$PKG_CONFIG" != "x"; then |
| 5149 | HAVE_PKG_CONFIG=1 |
| 5150 | ac_config_files="$ac_config_files libsrtp.pc" |
| 5151 | |
| 5152 | else |
| 5153 | HAVE_PKG_CONFIG=0 |
| 5154 | fi |
| 5155 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 5156 | ac_config_files="$ac_config_files Makefile crypto/Makefile doc/Makefile" |
| 5157 | |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 5158 | cat >confcache <<\_ACEOF |
| 5159 | # This file is a shell script that caches the results of configure |
| 5160 | # tests run on this system so they can be shared between configure |
| 5161 | # scripts and configure runs, see configure's option --config-cache. |
| 5162 | # It is not useful on other systems. If it contains results you don't |
| 5163 | # want to keep, you may remove or edit it. |
| 5164 | # |
| 5165 | # config.status only pays attention to the cache file if you give it |
| 5166 | # the --recheck option to rerun configure. |
| 5167 | # |
| 5168 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
| 5169 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
| 5170 | # following values. |
| 5171 | |
| 5172 | _ACEOF |
| 5173 | |
| 5174 | # The following way of writing the cache mishandles newlines in values, |
| 5175 | # but we know of no workaround that is simple, portable, and efficient. |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 5176 | # So, we kill variables containing newlines. |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 5177 | # Ultrix sh set writes to stderr and can't be redirected directly, |
| 5178 | # and sets the high bit in the cache file unless we assign to the vars. |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 5179 | ( |
| 5180 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do |
| 5181 | eval ac_val=\$$ac_var |
| 5182 | case $ac_val in #( |
| 5183 | *${as_nl}*) |
| 5184 | case $ac_var in #( |
| 5185 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
| 5186 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
| 5187 | esac |
| 5188 | case $ac_var in #( |
| 5189 | _ | IFS | as_nl) ;; #( |
| 5190 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
| 5191 | *) { eval $ac_var=; unset $ac_var;} ;; |
| 5192 | esac ;; |
| 5193 | esac |
| 5194 | done |
| 5195 | |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 5196 | (set) 2>&1 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 5197 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
| 5198 | *${as_nl}ac_space=\ *) |
| 5199 | # `set' does not quote correctly, so add quotes: double-quote |
| 5200 | # substitution turns \\\\ into \\, and sed turns \\ into \. |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 5201 | sed -n \ |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame] | 5202 | "s/'/'\\\\''/g; |
| 5203 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 5204 | ;; #( |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 5205 | *) |
| 5206 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 5207 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 5208 | ;; |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 5209 | esac | |
| 5210 | sort |
| 5211 | ) | |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 5212 | sed ' |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 5213 | /^ac_cv_env_/b end |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 5214 | t clear |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 5215 | :clear |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 5216 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
| 5217 | t end |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 5218 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
| 5219 | :end' >>confcache |
| 5220 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else |
| 5221 | if test -w "$cache_file"; then |
| 5222 | if test "x$cache_file" != "x/dev/null"; then |
| 5223 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 |
| 5224 | $as_echo "$as_me: updating cache $cache_file" >&6;} |
| 5225 | if test ! -f "$cache_file" || test -h "$cache_file"; then |
| 5226 | cat confcache >"$cache_file" |
| 5227 | else |
| 5228 | case $cache_file in #( |
| 5229 | */* | ?:*) |
| 5230 | mv -f confcache "$cache_file"$$ && |
| 5231 | mv -f "$cache_file"$$ "$cache_file" ;; #( |
| 5232 | *) |
| 5233 | mv -f confcache "$cache_file" ;; |
| 5234 | esac |
| 5235 | fi |
| 5236 | fi |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 5237 | else |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 5238 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 |
| 5239 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 5240 | fi |
| 5241 | fi |
| 5242 | rm -f confcache |
| 5243 | |
| 5244 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
| 5245 | # Let make expand exec_prefix. |
| 5246 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
| 5247 | |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 5248 | DEFS=-DHAVE_CONFIG_H |
| 5249 | |
| 5250 | ac_libobjs= |
| 5251 | ac_ltlibobjs= |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 5252 | U= |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 5253 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
| 5254 | # 1. Remove the extension, and $U if already installed. |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 5255 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
| 5256 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` |
| 5257 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
| 5258 | # will be set to the directory where LIBOBJS objects are built. |
| 5259 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" |
| 5260 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 5261 | done |
| 5262 | LIBOBJS=$ac_libobjs |
| 5263 | |
| 5264 | LTLIBOBJS=$ac_ltlibobjs |
| 5265 | |
| 5266 | |
| 5267 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 5268 | |
| 5269 | : "${CONFIG_STATUS=./config.status}" |
| 5270 | ac_write_fail=0 |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 5271 | ac_clean_files_save=$ac_clean_files |
| 5272 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 5273 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 |
| 5274 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} |
| 5275 | as_write_fail=0 |
| 5276 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 5277 | #! $SHELL |
| 5278 | # Generated by $as_me. |
| 5279 | # Run this file to recreate the current configuration. |
| 5280 | # Compiler output produced by configure, useful for debugging |
| 5281 | # configure, is in config.log if it exists. |
| 5282 | |
| 5283 | debug=false |
| 5284 | ac_cs_recheck=false |
| 5285 | ac_cs_silent=false |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 5286 | |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 5287 | SHELL=\${CONFIG_SHELL-$SHELL} |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 5288 | export SHELL |
| 5289 | _ASEOF |
| 5290 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 |
| 5291 | ## -------------------- ## |
| 5292 | ## M4sh Initialization. ## |
| 5293 | ## -------------------- ## |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 5294 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 5295 | # Be more Bourne compatible |
| 5296 | DUALCASE=1; export DUALCASE # for MKS sh |
| 5297 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 5298 | emulate sh |
| 5299 | NULLCMD=: |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 5300 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 5301 | # is contrary to our usage. Disable this feature. |
| 5302 | alias -g '${1+"$@"}'='"$@"' |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 5303 | setopt NO_GLOB_SUBST |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 5304 | else |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 5305 | case `(set -o) 2>/dev/null` in #( |
| 5306 | *posix*) : |
| 5307 | set -o posix ;; #( |
| 5308 | *) : |
| 5309 | ;; |
| 5310 | esac |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 5311 | fi |
| 5312 | |
| 5313 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 5314 | as_nl=' |
| 5315 | ' |
| 5316 | export as_nl |
| 5317 | # Printing a long string crashes Solaris 7 /usr/bin/printf. |
| 5318 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
| 5319 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo |
| 5320 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo |
| 5321 | # Prefer a ksh shell builtin over an external printf program on Solaris, |
| 5322 | # but without wasting forks for bash or zsh. |
| 5323 | if test -z "$BASH_VERSION$ZSH_VERSION" \ |
| 5324 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then |
| 5325 | as_echo='print -r --' |
| 5326 | as_echo_n='print -rn --' |
| 5327 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then |
| 5328 | as_echo='printf %s\n' |
| 5329 | as_echo_n='printf %s' |
| 5330 | else |
| 5331 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then |
| 5332 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' |
| 5333 | as_echo_n='/usr/ucb/echo -n' |
| 5334 | else |
| 5335 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
| 5336 | as_echo_n_body='eval |
| 5337 | arg=$1; |
| 5338 | case $arg in #( |
| 5339 | *"$as_nl"*) |
| 5340 | expr "X$arg" : "X\\(.*\\)$as_nl"; |
| 5341 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; |
| 5342 | esac; |
| 5343 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" |
| 5344 | ' |
| 5345 | export as_echo_n_body |
| 5346 | as_echo_n='sh -c $as_echo_n_body as_echo' |
| 5347 | fi |
| 5348 | export as_echo_body |
| 5349 | as_echo='sh -c $as_echo_body as_echo' |
| 5350 | fi |
| 5351 | |
| 5352 | # The user is always right. |
| 5353 | if test "${PATH_SEPARATOR+set}" != set; then |
| 5354 | PATH_SEPARATOR=: |
| 5355 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { |
| 5356 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || |
| 5357 | PATH_SEPARATOR=';' |
| 5358 | } |
| 5359 | fi |
| 5360 | |
| 5361 | |
| 5362 | # IFS |
| 5363 | # We need space, tab and new line, in precisely that order. Quoting is |
| 5364 | # there to prevent editors from complaining about space-tab. |
| 5365 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
| 5366 | # splitting by setting IFS to empty value.) |
| 5367 | IFS=" "" $as_nl" |
| 5368 | |
| 5369 | # Find who we are. Look in the path if we contain no directory separator. |
| 5370 | as_myself= |
| 5371 | case $0 in #(( |
| 5372 | *[\\/]* ) as_myself=$0 ;; |
| 5373 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5374 | for as_dir in $PATH |
| 5375 | do |
| 5376 | IFS=$as_save_IFS |
| 5377 | test -z "$as_dir" && as_dir=. |
| 5378 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 5379 | done |
| 5380 | IFS=$as_save_IFS |
| 5381 | |
| 5382 | ;; |
| 5383 | esac |
| 5384 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 5385 | # in which case we are not to be found in the path. |
| 5386 | if test "x$as_myself" = x; then |
| 5387 | as_myself=$0 |
| 5388 | fi |
| 5389 | if test ! -f "$as_myself"; then |
| 5390 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
| 5391 | exit 1 |
| 5392 | fi |
| 5393 | |
| 5394 | # Unset variables that we do not need and which cause bugs (e.g. in |
| 5395 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" |
| 5396 | # suppresses any "Segmentation fault" message there. '((' could |
| 5397 | # trigger a bug in pdksh 5.2.14. |
| 5398 | for as_var in BASH_ENV ENV MAIL MAILPATH |
| 5399 | do eval test x\${$as_var+set} = xset \ |
| 5400 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : |
| 5401 | done |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 5402 | PS1='$ ' |
| 5403 | PS2='> ' |
| 5404 | PS4='+ ' |
| 5405 | |
| 5406 | # NLS nuisances. |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 5407 | LC_ALL=C |
| 5408 | export LC_ALL |
| 5409 | LANGUAGE=C |
| 5410 | export LANGUAGE |
jfigus | a14b5a0 | 2013-03-29 12:24:12 -0400 | [diff] [blame] | 5411 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 5412 | # CDPATH. |
| 5413 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
| 5414 | |
| 5415 | |
| 5416 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
| 5417 | # ---------------------------------------- |
| 5418 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
| 5419 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the |
| 5420 | # script with STATUS, using 1 if that was 0. |
| 5421 | as_fn_error () |
| 5422 | { |
| 5423 | as_status=$1; test $as_status -eq 0 && as_status=1 |
| 5424 | if test "$4"; then |
| 5425 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 5426 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 |
| 5427 | fi |
| 5428 | $as_echo "$as_me: error: $2" >&2 |
| 5429 | as_fn_exit $as_status |
| 5430 | } # as_fn_error |
| 5431 | |
| 5432 | |
| 5433 | # as_fn_set_status STATUS |
| 5434 | # ----------------------- |
| 5435 | # Set $? to STATUS, without forking. |
| 5436 | as_fn_set_status () |
| 5437 | { |
| 5438 | return $1 |
| 5439 | } # as_fn_set_status |
| 5440 | |
| 5441 | # as_fn_exit STATUS |
| 5442 | # ----------------- |
| 5443 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. |
| 5444 | as_fn_exit () |
| 5445 | { |
| 5446 | set +e |
| 5447 | as_fn_set_status $1 |
| 5448 | exit $1 |
| 5449 | } # as_fn_exit |
| 5450 | |
| 5451 | # as_fn_unset VAR |
| 5452 | # --------------- |
| 5453 | # Portably unset VAR. |
| 5454 | as_fn_unset () |
| 5455 | { |
| 5456 | { eval $1=; unset $1;} |
| 5457 | } |
| 5458 | as_unset=as_fn_unset |
| 5459 | # as_fn_append VAR VALUE |
| 5460 | # ---------------------- |
| 5461 | # Append the text in VALUE to the end of the definition contained in VAR. Take |
| 5462 | # advantage of any shell optimizations that allow amortized linear growth over |
| 5463 | # repeated appends, instead of the typical quadratic growth present in naive |
| 5464 | # implementations. |
| 5465 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : |
| 5466 | eval 'as_fn_append () |
| 5467 | { |
| 5468 | eval $1+=\$2 |
| 5469 | }' |
| 5470 | else |
| 5471 | as_fn_append () |
| 5472 | { |
| 5473 | eval $1=\$$1\$2 |
| 5474 | } |
| 5475 | fi # as_fn_append |
| 5476 | |
| 5477 | # as_fn_arith ARG... |
| 5478 | # ------------------ |
| 5479 | # Perform arithmetic evaluation on the ARGs, and store the result in the |
| 5480 | # global $as_val. Take advantage of shells that can avoid forks. The arguments |
| 5481 | # must be portable across $(()) and expr. |
| 5482 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : |
| 5483 | eval 'as_fn_arith () |
| 5484 | { |
| 5485 | as_val=$(( $* )) |
| 5486 | }' |
| 5487 | else |
| 5488 | as_fn_arith () |
| 5489 | { |
| 5490 | as_val=`expr "$@" || test $? -eq 1` |
| 5491 | } |
| 5492 | fi # as_fn_arith |
| 5493 | |
| 5494 | |
| 5495 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 5496 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 5497 | as_expr=expr |
| 5498 | else |
| 5499 | as_expr=false |
| 5500 | fi |
| 5501 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 5502 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 5503 | as_basename=basename |
| 5504 | else |
| 5505 | as_basename=false |
| 5506 | fi |
| 5507 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 5508 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
| 5509 | as_dirname=dirname |
| 5510 | else |
| 5511 | as_dirname=false |
| 5512 | fi |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 5513 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 5514 | as_me=`$as_basename -- "$0" || |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 5515 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 5516 | X"$0" : 'X\(//\)$' \| \ |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 5517 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
| 5518 | $as_echo X/"$0" | |
| 5519 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
| 5520 | s//\1/ |
| 5521 | q |
| 5522 | } |
| 5523 | /^X\/\(\/\/\)$/{ |
| 5524 | s//\1/ |
| 5525 | q |
| 5526 | } |
| 5527 | /^X\/\(\/\).*/{ |
| 5528 | s//\1/ |
| 5529 | q |
| 5530 | } |
| 5531 | s/.*/./; q'` |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 5532 | |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 5533 | # Avoid depending upon Character Ranges. |
| 5534 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 5535 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 5536 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 5537 | as_cr_digits='0123456789' |
| 5538 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
| 5539 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 5540 | ECHO_C= ECHO_N= ECHO_T= |
| 5541 | case `echo -n x` in #((((( |
| 5542 | -n*) |
| 5543 | case `echo 'xy\c'` in |
| 5544 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
| 5545 | xy) ECHO_C='\c';; |
| 5546 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null |
| 5547 | ECHO_T=' ';; |
| 5548 | esac;; |
| 5549 | *) |
| 5550 | ECHO_N='-n';; |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 5551 | esac |
| 5552 | |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 5553 | rm -f conf$$ conf$$.exe conf$$.file |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 5554 | if test -d conf$$.dir; then |
| 5555 | rm -f conf$$.dir/conf$$.file |
| 5556 | else |
| 5557 | rm -f conf$$.dir |
| 5558 | mkdir conf$$.dir 2>/dev/null |
| 5559 | fi |
| 5560 | if (echo >conf$$.file) 2>/dev/null; then |
| 5561 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
Cullen Jennings | 52c5cd3 | 2013-05-01 18:07:29 -0600 | [diff] [blame] | 5562 | as_ln_s='ln -s' |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 5563 | # ... but there are two gotchas: |
| 5564 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
| 5565 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
| 5566 | # In both cases, we have to default to `cp -pR'. |
| 5567 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
| 5568 | as_ln_s='cp -pR' |
| 5569 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 5570 | as_ln_s=ln |
| 5571 | else |
| 5572 | as_ln_s='cp -pR' |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 5573 | fi |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 5574 | else |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 5575 | as_ln_s='cp -pR' |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 5576 | fi |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 5577 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
| 5578 | rmdir conf$$.dir 2>/dev/null |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 5579 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 5580 | |
| 5581 | # as_fn_mkdir_p |
| 5582 | # ------------- |
| 5583 | # Create "$as_dir" as a directory, including parents if necessary. |
| 5584 | as_fn_mkdir_p () |
| 5585 | { |
| 5586 | |
| 5587 | case $as_dir in #( |
| 5588 | -*) as_dir=./$as_dir;; |
| 5589 | esac |
| 5590 | test -d "$as_dir" || eval $as_mkdir_p || { |
| 5591 | as_dirs= |
| 5592 | while :; do |
| 5593 | case $as_dir in #( |
| 5594 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
| 5595 | *) as_qdir=$as_dir;; |
| 5596 | esac |
| 5597 | as_dirs="'$as_qdir' $as_dirs" |
| 5598 | as_dir=`$as_dirname -- "$as_dir" || |
| 5599 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 5600 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 5601 | X"$as_dir" : 'X\(//\)$' \| \ |
| 5602 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
| 5603 | $as_echo X"$as_dir" | |
| 5604 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 5605 | s//\1/ |
| 5606 | q |
| 5607 | } |
| 5608 | /^X\(\/\/\)[^/].*/{ |
| 5609 | s//\1/ |
| 5610 | q |
| 5611 | } |
| 5612 | /^X\(\/\/\)$/{ |
| 5613 | s//\1/ |
| 5614 | q |
| 5615 | } |
| 5616 | /^X\(\/\).*/{ |
| 5617 | s//\1/ |
| 5618 | q |
| 5619 | } |
| 5620 | s/.*/./; q'` |
| 5621 | test -d "$as_dir" && break |
| 5622 | done |
| 5623 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
| 5624 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
| 5625 | |
| 5626 | |
| 5627 | } # as_fn_mkdir_p |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 5628 | if mkdir -p . 2>/dev/null; then |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 5629 | as_mkdir_p='mkdir -p "$as_dir"' |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 5630 | else |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame] | 5631 | test -d ./-p && rmdir ./-p |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 5632 | as_mkdir_p=false |
| 5633 | fi |
| 5634 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 5635 | |
| 5636 | # as_fn_executable_p FILE |
| 5637 | # ----------------------- |
| 5638 | # Test if FILE is an executable regular file. |
| 5639 | as_fn_executable_p () |
| 5640 | { |
| 5641 | test -f "$1" && test -x "$1" |
| 5642 | } # as_fn_executable_p |
| 5643 | as_test_x='test -x' |
| 5644 | as_executable_p=as_fn_executable_p |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 5645 | |
| 5646 | # Sed expression to map a string onto a valid CPP name. |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame] | 5647 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 5648 | |
| 5649 | # Sed expression to map a string onto a valid variable name. |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame] | 5650 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 5651 | |
| 5652 | |
Cullen Jennings | 52c5cd3 | 2013-05-01 18:07:29 -0600 | [diff] [blame] | 5653 | exec 6>&1 |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 5654 | ## ----------------------------------- ## |
| 5655 | ## Main body of $CONFIG_STATUS script. ## |
| 5656 | ## ----------------------------------- ## |
| 5657 | _ASEOF |
| 5658 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 |
Cullen Jennings | 52c5cd3 | 2013-05-01 18:07:29 -0600 | [diff] [blame] | 5659 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 5660 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 5661 | # Save the log message, to keep $0 and so on meaningful, and to |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 5662 | # report actual input values of CONFIG_FILES etc. instead of their |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 5663 | # values after options handling. |
| 5664 | ac_log=" |
Saúl Ibarra Corretgé | ff3d042 | 2014-10-01 11:24:15 +0200 | [diff] [blame^] | 5665 | This file was extended by libsrtp $as_me 1.4.5, which was |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 5666 | generated by GNU Autoconf 2.69. Invocation command line was |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 5667 | |
| 5668 | CONFIG_FILES = $CONFIG_FILES |
| 5669 | CONFIG_HEADERS = $CONFIG_HEADERS |
| 5670 | CONFIG_LINKS = $CONFIG_LINKS |
| 5671 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
| 5672 | $ $0 $@ |
| 5673 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 5674 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 5675 | " |
| 5676 | |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 5677 | _ACEOF |
| 5678 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 5679 | case $ac_config_files in *" |
| 5680 | "*) set x $ac_config_files; shift; ac_config_files=$*;; |
| 5681 | esac |
| 5682 | |
| 5683 | case $ac_config_headers in *" |
| 5684 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;; |
| 5685 | esac |
| 5686 | |
| 5687 | |
| 5688 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 5689 | # Files that config.status was made for. |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 5690 | config_files="$ac_config_files" |
| 5691 | config_headers="$ac_config_headers" |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 5692 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 5693 | _ACEOF |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 5694 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 5695 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 5696 | ac_cs_usage="\ |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 5697 | \`$as_me' instantiates files and other configuration actions |
| 5698 | from templates according to the current configuration. Unless the files |
| 5699 | and actions are specified as TAGs, all are instantiated by default. |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 5700 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 5701 | Usage: $0 [OPTION]... [TAG]... |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 5702 | |
| 5703 | -h, --help print this help, then exit |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 5704 | -V, --version print version number and configuration settings, then exit |
| 5705 | --config print configuration, then exit |
| 5706 | -q, --quiet, --silent |
| 5707 | do not print progress messages |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 5708 | -d, --debug don't remove temporary files |
| 5709 | --recheck update $as_me by reconfiguring in the same conditions |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 5710 | --file=FILE[:TEMPLATE] |
| 5711 | instantiate the configuration file FILE |
| 5712 | --header=FILE[:TEMPLATE] |
| 5713 | instantiate the configuration header FILE |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 5714 | |
| 5715 | Configuration files: |
| 5716 | $config_files |
| 5717 | |
| 5718 | Configuration headers: |
| 5719 | $config_headers |
| 5720 | |
Saúl Ibarra Corretgé | ff3d042 | 2014-10-01 11:24:15 +0200 | [diff] [blame^] | 5721 | Report bugs to <https://github.com/cisco/libsrtp/issues>." |
Cullen Jennings | 52c5cd3 | 2013-05-01 18:07:29 -0600 | [diff] [blame] | 5722 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 5723 | _ACEOF |
| 5724 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 5725 | ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 5726 | ac_cs_version="\\ |
Saúl Ibarra Corretgé | ff3d042 | 2014-10-01 11:24:15 +0200 | [diff] [blame^] | 5727 | libsrtp config.status 1.4.5 |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 5728 | configured by $0, generated by GNU Autoconf 2.69, |
| 5729 | with options \\"\$ac_cs_config\\" |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 5730 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 5731 | Copyright (C) 2012 Free Software Foundation, Inc. |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 5732 | This config.status script is free software; the Free Software Foundation |
| 5733 | gives unlimited permission to copy, distribute and modify it." |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 5734 | |
| 5735 | ac_pwd='$ac_pwd' |
| 5736 | srcdir='$srcdir' |
| 5737 | INSTALL='$INSTALL' |
| 5738 | test -n "\$AWK" || AWK=awk |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 5739 | _ACEOF |
| 5740 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 5741 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 5742 | # The default lists apply if the user does not specify any file. |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 5743 | ac_need_defaults=: |
| 5744 | while test $# != 0 |
| 5745 | do |
| 5746 | case $1 in |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 5747 | --*=?*) |
| 5748 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
| 5749 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 5750 | ac_shift=: |
| 5751 | ;; |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 5752 | --*=) |
| 5753 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
| 5754 | ac_optarg= |
| 5755 | ac_shift=: |
| 5756 | ;; |
| 5757 | *) |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 5758 | ac_option=$1 |
| 5759 | ac_optarg=$2 |
| 5760 | ac_shift=shift |
| 5761 | ;; |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 5762 | esac |
| 5763 | |
| 5764 | case $ac_option in |
| 5765 | # Handling of the options. |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 5766 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
| 5767 | ac_cs_recheck=: ;; |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 5768 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
| 5769 | $as_echo "$ac_cs_version"; exit ;; |
| 5770 | --config | --confi | --conf | --con | --co | --c ) |
| 5771 | $as_echo "$ac_cs_config"; exit ;; |
| 5772 | --debug | --debu | --deb | --de | --d | -d ) |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 5773 | debug=: ;; |
| 5774 | --file | --fil | --fi | --f ) |
| 5775 | $ac_shift |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 5776 | case $ac_optarg in |
| 5777 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 5778 | '') as_fn_error $? "missing file argument" ;; |
| 5779 | esac |
| 5780 | as_fn_append CONFIG_FILES " '$ac_optarg'" |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 5781 | ac_need_defaults=false;; |
| 5782 | --header | --heade | --head | --hea ) |
| 5783 | $ac_shift |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 5784 | case $ac_optarg in |
| 5785 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 5786 | esac |
| 5787 | as_fn_append CONFIG_HEADERS " '$ac_optarg'" |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 5788 | ac_need_defaults=false;; |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 5789 | --he | --h) |
| 5790 | # Conflict between --help and --header |
| 5791 | as_fn_error $? "ambiguous option: \`$1' |
| 5792 | Try \`$0 --help' for more information.";; |
| 5793 | --help | --hel | -h ) |
| 5794 | $as_echo "$ac_cs_usage"; exit ;; |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 5795 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 5796 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
| 5797 | ac_cs_silent=: ;; |
| 5798 | |
| 5799 | # This is an error. |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 5800 | -*) as_fn_error $? "unrecognized option: \`$1' |
| 5801 | Try \`$0 --help' for more information." ;; |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 5802 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 5803 | *) as_fn_append ac_config_targets " $1" |
| 5804 | ac_need_defaults=false ;; |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 5805 | |
| 5806 | esac |
| 5807 | shift |
| 5808 | done |
| 5809 | |
| 5810 | ac_configure_extra_args= |
| 5811 | |
| 5812 | if $ac_cs_silent; then |
| 5813 | exec 6>/dev/null |
| 5814 | ac_configure_extra_args="$ac_configure_extra_args --silent" |
| 5815 | fi |
| 5816 | |
| 5817 | _ACEOF |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 5818 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 5819 | if \$ac_cs_recheck; then |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 5820 | set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
| 5821 | shift |
| 5822 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 |
| 5823 | CONFIG_SHELL='$SHELL' |
| 5824 | export CONFIG_SHELL |
| 5825 | exec "\$@" |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 5826 | fi |
| 5827 | |
| 5828 | _ACEOF |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 5829 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 5830 | exec 5>>config.log |
| 5831 | { |
| 5832 | echo |
| 5833 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
| 5834 | ## Running $as_me. ## |
| 5835 | _ASBOX |
| 5836 | $as_echo "$ac_log" |
| 5837 | } >&5 |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 5838 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 5839 | _ACEOF |
| 5840 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 5841 | _ACEOF |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 5842 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 5843 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 5844 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 5845 | # Handling of arguments. |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 5846 | for ac_config_target in $ac_config_targets |
| 5847 | do |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 5848 | case $ac_config_target in |
| 5849 | "crypto/include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS crypto/include/config.h:config_in.h" ;; |
Saúl Ibarra Corretgé | ff3d042 | 2014-10-01 11:24:15 +0200 | [diff] [blame^] | 5850 | "libsrtp.pc") CONFIG_FILES="$CONFIG_FILES libsrtp.pc" ;; |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 5851 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; |
| 5852 | "crypto/Makefile") CONFIG_FILES="$CONFIG_FILES crypto/Makefile" ;; |
| 5853 | "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; |
| 5854 | |
| 5855 | *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 5856 | esac |
| 5857 | done |
| 5858 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 5859 | |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 5860 | # If the user did not use the arguments to specify the items to instantiate, |
| 5861 | # then the envvar interface is used. Set only those that are not. |
| 5862 | # We use the long form for the default assignment because of an extremely |
| 5863 | # bizarre bug on SunOS 4.1.3. |
| 5864 | if $ac_need_defaults; then |
| 5865 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
| 5866 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
| 5867 | fi |
| 5868 | |
| 5869 | # Have a temporary directory for convenience. Make it in the build tree |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 5870 | # simply because there is no reason against having it here, and in addition, |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 5871 | # creating and moving files from /tmp can sometimes cause problems. |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 5872 | # Hook for its removal unless debugging. |
| 5873 | # Note that there is a small window in which the directory will not be cleaned: |
| 5874 | # after its creation but before its name has been assigned to `$tmp'. |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 5875 | $debug || |
| 5876 | { |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 5877 | tmp= ac_tmp= |
| 5878 | trap 'exit_status=$? |
| 5879 | : "${ac_tmp:=$tmp}" |
| 5880 | { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status |
| 5881 | ' 0 |
| 5882 | trap 'as_fn_exit 1' 1 2 13 15 |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 5883 | } |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 5884 | # Create a (secure) tmp directory for tmp files. |
| 5885 | |
| 5886 | { |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 5887 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
| 5888 | test -d "$tmp" |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 5889 | } || |
| 5890 | { |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 5891 | tmp=./conf$$-$RANDOM |
| 5892 | (umask 077 && mkdir "$tmp") |
| 5893 | } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 |
| 5894 | ac_tmp=$tmp |
| 5895 | |
| 5896 | # Set up the scripts for CONFIG_FILES section. |
| 5897 | # No need to generate them if there are no CONFIG_FILES. |
| 5898 | # This happens for instance with `./config.status config.h'. |
| 5899 | if test -n "$CONFIG_FILES"; then |
| 5900 | |
| 5901 | |
| 5902 | ac_cr=`echo X | tr X '\015'` |
| 5903 | # On cygwin, bash can eat \r inside `` if the user requested igncr. |
| 5904 | # But we know of no other shell where ac_cr would be empty at this |
| 5905 | # point, so we can use a bashism as a fallback. |
| 5906 | if test "x$ac_cr" = x; then |
| 5907 | eval ac_cr=\$\'\\r\' |
| 5908 | fi |
| 5909 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` |
| 5910 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then |
| 5911 | ac_cs_awk_cr='\\r' |
| 5912 | else |
| 5913 | ac_cs_awk_cr=$ac_cr |
| 5914 | fi |
| 5915 | |
| 5916 | echo 'BEGIN {' >"$ac_tmp/subs1.awk" && |
| 5917 | _ACEOF |
| 5918 | |
| 5919 | |
Cullen Jennings | 52c5cd3 | 2013-05-01 18:07:29 -0600 | [diff] [blame] | 5920 | { |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 5921 | echo "cat >conf$$subs.awk <<_ACEOF" && |
| 5922 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && |
| 5923 | echo "_ACEOF" |
| 5924 | } >conf$$subs.sh || |
| 5925 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
| 5926 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` |
| 5927 | ac_delim='%!_!# ' |
| 5928 | for ac_last_try in false false false false false :; do |
| 5929 | . ./conf$$subs.sh || |
| 5930 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
| 5931 | |
| 5932 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` |
| 5933 | if test $ac_delim_n = $ac_delim_num; then |
| 5934 | break |
| 5935 | elif $ac_last_try; then |
| 5936 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
| 5937 | else |
| 5938 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
| 5939 | fi |
| 5940 | done |
| 5941 | rm -f conf$$subs.sh |
| 5942 | |
| 5943 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 5944 | cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && |
| 5945 | _ACEOF |
| 5946 | sed -n ' |
| 5947 | h |
| 5948 | s/^/S["/; s/!.*/"]=/ |
| 5949 | p |
| 5950 | g |
| 5951 | s/^[^!]*!// |
| 5952 | :repl |
| 5953 | t repl |
| 5954 | s/'"$ac_delim"'$// |
| 5955 | t delim |
| 5956 | :nl |
| 5957 | h |
| 5958 | s/\(.\{148\}\)..*/\1/ |
| 5959 | t more1 |
| 5960 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ |
| 5961 | p |
| 5962 | n |
| 5963 | b repl |
| 5964 | :more1 |
| 5965 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ |
| 5966 | p |
| 5967 | g |
| 5968 | s/.\{148\}// |
| 5969 | t nl |
| 5970 | :delim |
| 5971 | h |
| 5972 | s/\(.\{148\}\)..*/\1/ |
| 5973 | t more2 |
| 5974 | s/["\\]/\\&/g; s/^/"/; s/$/"/ |
| 5975 | p |
| 5976 | b |
| 5977 | :more2 |
| 5978 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ |
| 5979 | p |
| 5980 | g |
| 5981 | s/.\{148\}// |
| 5982 | t delim |
| 5983 | ' <conf$$subs.awk | sed ' |
| 5984 | /^[^""]/{ |
| 5985 | N |
| 5986 | s/\n// |
| 5987 | } |
| 5988 | ' >>$CONFIG_STATUS || ac_write_fail=1 |
| 5989 | rm -f conf$$subs.awk |
| 5990 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 5991 | _ACAWK |
| 5992 | cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && |
| 5993 | for (key in S) S_is_set[key] = 1 |
| 5994 | FS = "" |
| 5995 | |
| 5996 | } |
| 5997 | { |
| 5998 | line = $ 0 |
| 5999 | nfields = split(line, field, "@") |
| 6000 | substed = 0 |
| 6001 | len = length(field[1]) |
| 6002 | for (i = 2; i < nfields; i++) { |
| 6003 | key = field[i] |
| 6004 | keylen = length(key) |
| 6005 | if (S_is_set[key]) { |
| 6006 | value = S[key] |
| 6007 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) |
| 6008 | len += length(value) + length(field[++i]) |
| 6009 | substed = 1 |
| 6010 | } else |
| 6011 | len += 1 + keylen |
| 6012 | } |
| 6013 | |
| 6014 | print line |
Cullen Jennings | 52c5cd3 | 2013-05-01 18:07:29 -0600 | [diff] [blame] | 6015 | } |
jfigus | a14b5a0 | 2013-03-29 12:24:12 -0400 | [diff] [blame] | 6016 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 6017 | _ACAWK |
| 6018 | _ACEOF |
| 6019 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 6020 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then |
| 6021 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" |
| 6022 | else |
| 6023 | cat |
| 6024 | fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ |
| 6025 | || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 |
jfigus | a14b5a0 | 2013-03-29 12:24:12 -0400 | [diff] [blame] | 6026 | _ACEOF |
| 6027 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 6028 | # VPATH may cause trouble with some makes, so we remove sole $(srcdir), |
| 6029 | # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and |
| 6030 | # trailing colons and then remove the whole line if VPATH becomes empty |
| 6031 | # (actually we leave an empty line to preserve line numbers). |
| 6032 | if test "x$srcdir" = x.; then |
| 6033 | ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ |
| 6034 | h |
| 6035 | s/// |
| 6036 | s/^/:/ |
| 6037 | s/[ ]*$/:/ |
| 6038 | s/:\$(srcdir):/:/g |
| 6039 | s/:\${srcdir}:/:/g |
| 6040 | s/:@srcdir@:/:/g |
| 6041 | s/^:*// |
| 6042 | s/:*$// |
| 6043 | x |
| 6044 | s/\(=[ ]*\).*/\1/ |
| 6045 | G |
| 6046 | s/\n// |
| 6047 | s/^[^=]*=[ ]*$// |
| 6048 | }' |
| 6049 | fi |
jfigus | a14b5a0 | 2013-03-29 12:24:12 -0400 | [diff] [blame] | 6050 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 6051 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 6052 | fi # test -n "$CONFIG_FILES" |
| 6053 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 6054 | # Set up the scripts for CONFIG_HEADERS section. |
| 6055 | # No need to generate them if there are no CONFIG_HEADERS. |
| 6056 | # This happens for instance with `./config.status Makefile'. |
| 6057 | if test -n "$CONFIG_HEADERS"; then |
| 6058 | cat >"$ac_tmp/defines.awk" <<\_ACAWK || |
| 6059 | BEGIN { |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 6060 | _ACEOF |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 6061 | |
| 6062 | # Transform confdefs.h into an awk script `defines.awk', embedded as |
| 6063 | # here-document in config.status, that substitutes the proper values into |
| 6064 | # config.h.in to produce config.h. |
| 6065 | |
| 6066 | # Create a delimiter string that does not exist in confdefs.h, to ease |
| 6067 | # handling of long lines. |
| 6068 | ac_delim='%!_!# ' |
| 6069 | for ac_last_try in false false :; do |
| 6070 | ac_tt=`sed -n "/$ac_delim/p" confdefs.h` |
| 6071 | if test -z "$ac_tt"; then |
| 6072 | break |
| 6073 | elif $ac_last_try; then |
| 6074 | as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 |
| 6075 | else |
| 6076 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
| 6077 | fi |
| 6078 | done |
| 6079 | |
| 6080 | # For the awk script, D is an array of macro values keyed by name, |
| 6081 | # likewise P contains macro parameters if any. Preserve backslash |
| 6082 | # newline sequences. |
| 6083 | |
| 6084 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* |
| 6085 | sed -n ' |
| 6086 | s/.\{148\}/&'"$ac_delim"'/g |
| 6087 | t rset |
| 6088 | :rset |
| 6089 | s/^[ ]*#[ ]*define[ ][ ]*/ / |
| 6090 | t def |
| 6091 | d |
| 6092 | :def |
| 6093 | s/\\$// |
| 6094 | t bsnl |
| 6095 | s/["\\]/\\&/g |
| 6096 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ |
| 6097 | D["\1"]=" \3"/p |
| 6098 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p |
| 6099 | d |
| 6100 | :bsnl |
| 6101 | s/["\\]/\\&/g |
| 6102 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ |
| 6103 | D["\1"]=" \3\\\\\\n"\\/p |
| 6104 | t cont |
| 6105 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p |
| 6106 | t cont |
| 6107 | d |
| 6108 | :cont |
| 6109 | n |
| 6110 | s/.\{148\}/&'"$ac_delim"'/g |
| 6111 | t clear |
| 6112 | :clear |
| 6113 | s/\\$// |
| 6114 | t bsnlc |
| 6115 | s/["\\]/\\&/g; s/^/"/; s/$/"/p |
| 6116 | d |
| 6117 | :bsnlc |
| 6118 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p |
| 6119 | b cont |
| 6120 | ' <confdefs.h | sed ' |
| 6121 | s/'"$ac_delim"'/"\\\ |
| 6122 | "/g' >>$CONFIG_STATUS || ac_write_fail=1 |
| 6123 | |
| 6124 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 6125 | for (key in D) D_is_set[key] = 1 |
| 6126 | FS = "" |
| 6127 | } |
| 6128 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { |
| 6129 | line = \$ 0 |
| 6130 | split(line, arg, " ") |
| 6131 | if (arg[1] == "#") { |
| 6132 | defundef = arg[2] |
| 6133 | mac1 = arg[3] |
| 6134 | } else { |
| 6135 | defundef = substr(arg[1], 2) |
| 6136 | mac1 = arg[2] |
| 6137 | } |
| 6138 | split(mac1, mac2, "(") #) |
| 6139 | macro = mac2[1] |
| 6140 | prefix = substr(line, 1, index(line, defundef) - 1) |
| 6141 | if (D_is_set[macro]) { |
| 6142 | # Preserve the white space surrounding the "#". |
| 6143 | print prefix "define", macro P[macro] D[macro] |
| 6144 | next |
| 6145 | } else { |
| 6146 | # Replace #undef with comments. This is necessary, for example, |
| 6147 | # in the case of _POSIX_SOURCE, which is predefined and required |
| 6148 | # on some systems where configure will not decide to define it. |
| 6149 | if (defundef == "undef") { |
| 6150 | print "/*", prefix defundef, macro, "*/" |
| 6151 | next |
| 6152 | } |
| 6153 | } |
| 6154 | } |
| 6155 | { print } |
| 6156 | _ACAWK |
| 6157 | _ACEOF |
| 6158 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 6159 | as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 |
| 6160 | fi # test -n "$CONFIG_HEADERS" |
| 6161 | |
| 6162 | |
| 6163 | eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS " |
| 6164 | shift |
| 6165 | for ac_tag |
| 6166 | do |
| 6167 | case $ac_tag in |
| 6168 | :[FHLC]) ac_mode=$ac_tag; continue;; |
| 6169 | esac |
| 6170 | case $ac_mode$ac_tag in |
| 6171 | :[FHL]*:*);; |
| 6172 | :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; |
| 6173 | :[FH]-) ac_tag=-:-;; |
| 6174 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; |
| 6175 | esac |
| 6176 | ac_save_IFS=$IFS |
| 6177 | IFS=: |
| 6178 | set x $ac_tag |
| 6179 | IFS=$ac_save_IFS |
| 6180 | shift |
| 6181 | ac_file=$1 |
| 6182 | shift |
| 6183 | |
| 6184 | case $ac_mode in |
| 6185 | :L) ac_source=$1;; |
| 6186 | :[FH]) |
| 6187 | ac_file_inputs= |
| 6188 | for ac_f |
| 6189 | do |
| 6190 | case $ac_f in |
| 6191 | -) ac_f="$ac_tmp/stdin";; |
| 6192 | *) # Look for the file first in the build tree, then in the source tree |
| 6193 | # (if the path is not absolute). The absolute path cannot be DOS-style, |
| 6194 | # because $ac_f cannot contain `:'. |
| 6195 | test -f "$ac_f" || |
| 6196 | case $ac_f in |
| 6197 | [\\/$]*) false;; |
| 6198 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; |
| 6199 | esac || |
| 6200 | as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; |
| 6201 | esac |
| 6202 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac |
| 6203 | as_fn_append ac_file_inputs " '$ac_f'" |
| 6204 | done |
| 6205 | |
| 6206 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
| 6207 | # use $as_me), people would be surprised to read: |
| 6208 | # /* config.h. Generated by config.status. */ |
| 6209 | configure_input='Generated from '` |
| 6210 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' |
| 6211 | `' by configure.' |
| 6212 | if test x"$ac_file" != x-; then |
| 6213 | configure_input="$ac_file. $configure_input" |
| 6214 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 |
| 6215 | $as_echo "$as_me: creating $ac_file" >&6;} |
| 6216 | fi |
| 6217 | # Neutralize special characters interpreted by sed in replacement strings. |
| 6218 | case $configure_input in #( |
| 6219 | *\&* | *\|* | *\\* ) |
| 6220 | ac_sed_conf_input=`$as_echo "$configure_input" | |
| 6221 | sed 's/[\\\\&|]/\\\\&/g'`;; #( |
| 6222 | *) ac_sed_conf_input=$configure_input;; |
| 6223 | esac |
| 6224 | |
| 6225 | case $ac_tag in |
| 6226 | *:-:* | *:-) cat >"$ac_tmp/stdin" \ |
| 6227 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; |
| 6228 | esac |
| 6229 | ;; |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 6230 | esac |
| 6231 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 6232 | ac_dir=`$as_dirname -- "$ac_file" || |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 6233 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame] | 6234 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 6235 | X"$ac_file" : 'X\(//\)$' \| \ |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 6236 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
| 6237 | $as_echo X"$ac_file" | |
| 6238 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 6239 | s//\1/ |
| 6240 | q |
| 6241 | } |
| 6242 | /^X\(\/\/\)[^/].*/{ |
| 6243 | s//\1/ |
| 6244 | q |
| 6245 | } |
| 6246 | /^X\(\/\/\)$/{ |
| 6247 | s//\1/ |
| 6248 | q |
| 6249 | } |
| 6250 | /^X\(\/\).*/{ |
| 6251 | s//\1/ |
| 6252 | q |
| 6253 | } |
| 6254 | s/.*/./; q'` |
| 6255 | as_dir="$ac_dir"; as_fn_mkdir_p |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 6256 | ac_builddir=. |
| 6257 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 6258 | case "$ac_dir" in |
| 6259 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 6260 | *) |
| 6261 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
| 6262 | # A ".." for each directory in $ac_dir_suffix. |
| 6263 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
| 6264 | case $ac_top_builddir_sub in |
| 6265 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 6266 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 6267 | esac ;; |
| 6268 | esac |
| 6269 | ac_abs_top_builddir=$ac_pwd |
| 6270 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 6271 | # for backward compatibility: |
| 6272 | ac_top_builddir=$ac_top_build_prefix |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 6273 | |
| 6274 | case $srcdir in |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 6275 | .) # We are building in place. |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 6276 | ac_srcdir=. |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 6277 | ac_top_srcdir=$ac_top_builddir_sub |
| 6278 | ac_abs_top_srcdir=$ac_pwd ;; |
| 6279 | [\\/]* | ?:[\\/]* ) # Absolute name. |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 6280 | ac_srcdir=$srcdir$ac_dir_suffix; |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 6281 | ac_top_srcdir=$srcdir |
| 6282 | ac_abs_top_srcdir=$srcdir ;; |
| 6283 | *) # Relative name. |
| 6284 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 6285 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 6286 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 6287 | esac |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 6288 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame] | 6289 | |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 6290 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 6291 | case $ac_mode in |
| 6292 | :F) |
| 6293 | # |
| 6294 | # CONFIG_FILE |
| 6295 | # |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 6296 | |
David McGrew | b67061f | 2005-09-28 14:23:06 +0000 | [diff] [blame] | 6297 | case $INSTALL in |
| 6298 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 6299 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
David McGrew | b67061f | 2005-09-28 14:23:06 +0000 | [diff] [blame] | 6300 | esac |
Cullen Jennings | 52c5cd3 | 2013-05-01 18:07:29 -0600 | [diff] [blame] | 6301 | _ACEOF |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 6302 | |
| 6303 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 6304 | # If the template does not know about datarootdir, expand it. |
| 6305 | # FIXME: This hack should be removed a few years after 2.60. |
| 6306 | ac_datarootdir_hack=; ac_datarootdir_seen= |
| 6307 | ac_sed_dataroot=' |
| 6308 | /datarootdir/ { |
| 6309 | p |
| 6310 | q |
| 6311 | } |
| 6312 | /@datadir@/p |
| 6313 | /@docdir@/p |
| 6314 | /@infodir@/p |
| 6315 | /@localedir@/p |
| 6316 | /@mandir@/p' |
| 6317 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in |
| 6318 | *datarootdir*) ac_datarootdir_seen=yes;; |
| 6319 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) |
| 6320 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 |
| 6321 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} |
| 6322 | _ACEOF |
| 6323 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 6324 | ac_datarootdir_hack=' |
| 6325 | s&@datadir@&$datadir&g |
| 6326 | s&@docdir@&$docdir&g |
| 6327 | s&@infodir@&$infodir&g |
| 6328 | s&@localedir@&$localedir&g |
| 6329 | s&@mandir@&$mandir&g |
| 6330 | s&\\\${datarootdir}&$datarootdir&g' ;; |
| 6331 | esac |
| 6332 | _ACEOF |
| 6333 | |
| 6334 | # Neutralize VPATH when `$srcdir' = `.'. |
| 6335 | # Shell code in configure.ac might set extrasub. |
| 6336 | # FIXME: do we really want to maintain this feature? |
| 6337 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 6338 | ac_sed_extra="$ac_vpsub |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 6339 | $extrasub |
| 6340 | _ACEOF |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 6341 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 6342 | :t |
| 6343 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 6344 | s|@configure_input@|$ac_sed_conf_input|;t t |
| 6345 | s&@top_builddir@&$ac_top_builddir_sub&;t t |
| 6346 | s&@top_build_prefix@&$ac_top_build_prefix&;t t |
| 6347 | s&@srcdir@&$ac_srcdir&;t t |
| 6348 | s&@abs_srcdir@&$ac_abs_srcdir&;t t |
| 6349 | s&@top_srcdir@&$ac_top_srcdir&;t t |
| 6350 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t |
| 6351 | s&@builddir@&$ac_builddir&;t t |
| 6352 | s&@abs_builddir@&$ac_abs_builddir&;t t |
| 6353 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t |
| 6354 | s&@INSTALL@&$ac_INSTALL&;t t |
| 6355 | $ac_datarootdir_hack |
| 6356 | " |
| 6357 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ |
| 6358 | >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 6359 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 6360 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && |
| 6361 | { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && |
| 6362 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ |
| 6363 | "$ac_tmp/out"`; test -z "$ac_out"; } && |
| 6364 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
| 6365 | which seems to be undefined. Please make sure it is defined" >&5 |
| 6366 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
| 6367 | which seems to be undefined. Please make sure it is defined" >&2;} |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 6368 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 6369 | rm -f "$ac_tmp/stdin" |
Cullen Jennings | 52c5cd3 | 2013-05-01 18:07:29 -0600 | [diff] [blame] | 6370 | case $ac_file in |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 6371 | -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; |
| 6372 | *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; |
| 6373 | esac \ |
| 6374 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
| 6375 | ;; |
| 6376 | :H) |
| 6377 | # |
| 6378 | # CONFIG_HEADER |
| 6379 | # |
Cullen Jennings | 52c5cd3 | 2013-05-01 18:07:29 -0600 | [diff] [blame] | 6380 | if test x"$ac_file" != x-; then |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 6381 | { |
| 6382 | $as_echo "/* $configure_input */" \ |
| 6383 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" |
| 6384 | } >"$ac_tmp/config.h" \ |
| 6385 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
| 6386 | if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then |
| 6387 | { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 |
| 6388 | $as_echo "$as_me: $ac_file is unchanged" >&6;} |
Cullen Jennings | 52c5cd3 | 2013-05-01 18:07:29 -0600 | [diff] [blame] | 6389 | else |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 6390 | rm -f "$ac_file" |
| 6391 | mv "$ac_tmp/config.h" "$ac_file" \ |
| 6392 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
Cullen Jennings | 52c5cd3 | 2013-05-01 18:07:29 -0600 | [diff] [blame] | 6393 | fi |
| 6394 | else |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 6395 | $as_echo "/* $configure_input */" \ |
| 6396 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ |
| 6397 | || as_fn_error $? "could not create -" "$LINENO" 5 |
Cullen Jennings | 52c5cd3 | 2013-05-01 18:07:29 -0600 | [diff] [blame] | 6398 | fi |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 6399 | ;; |
Cullen Jennings | 52c5cd3 | 2013-05-01 18:07:29 -0600 | [diff] [blame] | 6400 | |
Cullen Jennings | 52c5cd3 | 2013-05-01 18:07:29 -0600 | [diff] [blame] | 6401 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 6402 | esac |
| 6403 | |
| 6404 | done # for ac_tag |
| 6405 | |
| 6406 | |
| 6407 | as_fn_exit 0 |
Cullen Jennings | 52c5cd3 | 2013-05-01 18:07:29 -0600 | [diff] [blame] | 6408 | _ACEOF |
Cullen Jennings | 52c5cd3 | 2013-05-01 18:07:29 -0600 | [diff] [blame] | 6409 | ac_clean_files=$ac_clean_files_save |
jfigus | a14b5a0 | 2013-03-29 12:24:12 -0400 | [diff] [blame] | 6410 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 6411 | test $ac_write_fail = 0 || |
| 6412 | as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 |
| 6413 | |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 6414 | |
| 6415 | # configure is writing to config.log, and then calls config.status. |
| 6416 | # config.status does its own redirection, appending to config.log. |
| 6417 | # Unfortunately, on DOS this fails, as config.log is still kept open |
| 6418 | # by configure, so config.status won't be able to write to it; its |
| 6419 | # output is simply discarded. So we exec the FD to /dev/null, |
| 6420 | # effectively closing config.log, so it can be properly (re)opened and |
| 6421 | # appended to by config.status. When coming back to configure, we |
| 6422 | # need to make the FD available again. |
| 6423 | if test "$no_create" != yes; then |
| 6424 | ac_cs_success=: |
| 6425 | ac_config_status_args= |
| 6426 | test "$silent" = yes && |
| 6427 | ac_config_status_args="$ac_config_status_args --quiet" |
| 6428 | exec 5>/dev/null |
| 6429 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
| 6430 | exec 5>>config.log |
| 6431 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
| 6432 | # would make configure fail if this is the last instruction. |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 6433 | $ac_cs_success || as_fn_exit 1 |
| 6434 | fi |
| 6435 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then |
| 6436 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 |
| 6437 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 6438 | fi |
| 6439 | |
Marcus Sundberg | 979e1bc | 2005-09-29 14:33:09 +0000 | [diff] [blame] | 6440 | |
| 6441 | # This is needed when building outside the source dir. |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 6442 | as_dir=crypto/ae_xfm; as_fn_mkdir_p |
| 6443 | as_dir=crypto/cipher; as_fn_mkdir_p |
| 6444 | as_dir=crypto/hash; as_fn_mkdir_p |
| 6445 | as_dir=crypto/kernel; as_fn_mkdir_p |
| 6446 | as_dir=crypto/math; as_fn_mkdir_p |
| 6447 | as_dir=crypto/replay; as_fn_mkdir_p |
| 6448 | as_dir=crypto/rng; as_fn_mkdir_p |
| 6449 | as_dir=crypto/test; as_fn_mkdir_p |
| 6450 | as_dir=doc; as_fn_mkdir_p |
| 6451 | as_dir=srtp; as_fn_mkdir_p |
| 6452 | as_dir=tables; as_fn_mkdir_p |
| 6453 | as_dir=test; as_fn_mkdir_p |