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. |
jfigus | d196e02 | 2014-11-20 16:43:44 -0500 | [diff] [blame] | 3 | # Generated by GNU Autoconf 2.69 for libsrtp2 2.0.0-pre. |
Saúl Ibarra Corretgé | ff3d042 | 2014-10-01 11:24:15 +0200 | [diff] [blame] | 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. |
jfigus | d196e02 | 2014-11-20 16:43:44 -0500 | [diff] [blame] | 581 | PACKAGE_NAME='libsrtp2' |
| 582 | PACKAGE_TARNAME='libsrtp2' |
jfigus | b058a3b | 2014-10-31 09:27:18 -0400 | [diff] [blame] | 583 | PACKAGE_VERSION='2.0.0-pre' |
jfigus | d196e02 | 2014-11-20 16:43:44 -0500 | [diff] [blame] | 584 | PACKAGE_STRING='libsrtp2 2.0.0-pre' |
Saúl Ibarra Corretgé | ff3d042 | 2014-10-01 11:24:15 +0200 | [diff] [blame] | 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 |
Bernardo Torres | b3c5142 | 2014-10-14 12:40:09 -0300 | [diff] [blame] | 628 | HAVE_PCAP |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 629 | HMAC_OBJS |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 630 | AES_ICM_OBJS |
| 631 | USE_OPENSSL |
| 632 | EXE |
| 633 | host_os |
| 634 | host_vendor |
| 635 | host_cpu |
| 636 | host |
| 637 | build_os |
| 638 | build_vendor |
| 639 | build_cpu |
| 640 | build |
| 641 | EGREP |
| 642 | GREP |
| 643 | CPP |
| 644 | INSTALL_DATA |
| 645 | INSTALL_SCRIPT |
| 646 | INSTALL_PROGRAM |
| 647 | OBJEXT |
| 648 | EXEEXT |
| 649 | ac_ct_CC |
| 650 | CPPFLAGS |
| 651 | LDFLAGS |
| 652 | CFLAGS |
| 653 | CC |
| 654 | RANLIB |
| 655 | target_alias |
| 656 | host_alias |
| 657 | build_alias |
| 658 | LIBS |
| 659 | ECHO_T |
| 660 | ECHO_N |
| 661 | ECHO_C |
| 662 | DEFS |
| 663 | mandir |
| 664 | localedir |
| 665 | libdir |
| 666 | psdir |
| 667 | pdfdir |
| 668 | dvidir |
| 669 | htmldir |
| 670 | infodir |
| 671 | docdir |
| 672 | oldincludedir |
| 673 | includedir |
| 674 | localstatedir |
| 675 | sharedstatedir |
| 676 | sysconfdir |
| 677 | datadir |
| 678 | datarootdir |
| 679 | libexecdir |
| 680 | sbindir |
| 681 | bindir |
| 682 | program_transform_name |
| 683 | prefix |
| 684 | exec_prefix |
| 685 | PACKAGE_URL |
| 686 | PACKAGE_BUGREPORT |
| 687 | PACKAGE_STRING |
| 688 | PACKAGE_VERSION |
| 689 | PACKAGE_TARNAME |
| 690 | PACKAGE_NAME |
| 691 | PATH_SEPARATOR |
| 692 | SHELL' |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 693 | ac_subst_files='' |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 694 | ac_user_opts=' |
| 695 | enable_option_checking |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 696 | enable_debug |
| 697 | enable_generic_aesicm |
| 698 | enable_openssl |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 699 | enable_stdout |
| 700 | enable_console |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 701 | ' |
| 702 | ac_precious_vars='build_alias |
| 703 | host_alias |
| 704 | target_alias |
| 705 | CC |
| 706 | CFLAGS |
| 707 | LDFLAGS |
| 708 | LIBS |
| 709 | CPPFLAGS |
| 710 | CPP' |
| 711 | |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 712 | |
| 713 | # Initialize some variables set by options. |
| 714 | ac_init_help= |
| 715 | ac_init_version=false |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 716 | ac_unrecognized_opts= |
| 717 | ac_unrecognized_sep= |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 718 | # The variables have the same names as the options, with |
| 719 | # dashes changed to underlines. |
| 720 | cache_file=/dev/null |
| 721 | exec_prefix=NONE |
| 722 | no_create= |
| 723 | no_recursion= |
| 724 | prefix=NONE |
| 725 | program_prefix=NONE |
| 726 | program_suffix=NONE |
| 727 | program_transform_name=s,x,x, |
| 728 | silent= |
| 729 | site= |
| 730 | srcdir= |
| 731 | verbose= |
| 732 | x_includes=NONE |
| 733 | x_libraries=NONE |
| 734 | |
| 735 | # Installation directory options. |
| 736 | # These are left unexpanded so users can "make install exec_prefix=/foo" |
| 737 | # and all the variables that are supposed to be based on exec_prefix |
| 738 | # by default will actually change. |
| 739 | # Use braces instead of parens because sh, perl, etc. also accept them. |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 740 | # (The list follows the same order as the GNU Coding Standards.) |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 741 | bindir='${exec_prefix}/bin' |
| 742 | sbindir='${exec_prefix}/sbin' |
| 743 | libexecdir='${exec_prefix}/libexec' |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 744 | datarootdir='${prefix}/share' |
| 745 | datadir='${datarootdir}' |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 746 | sysconfdir='${prefix}/etc' |
| 747 | sharedstatedir='${prefix}/com' |
| 748 | localstatedir='${prefix}/var' |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 749 | includedir='${prefix}/include' |
| 750 | oldincludedir='/usr/include' |
Saúl Ibarra Corretgé | ff3d042 | 2014-10-01 11:24:15 +0200 | [diff] [blame] | 751 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 752 | infodir='${datarootdir}/info' |
| 753 | htmldir='${docdir}' |
| 754 | dvidir='${docdir}' |
| 755 | pdfdir='${docdir}' |
| 756 | psdir='${docdir}' |
| 757 | libdir='${exec_prefix}/lib' |
| 758 | localedir='${datarootdir}/locale' |
| 759 | mandir='${datarootdir}/man' |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 760 | |
| 761 | ac_prev= |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 762 | ac_dashdash= |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 763 | for ac_option |
| 764 | do |
| 765 | # If the previous option needs an argument, assign it. |
| 766 | if test -n "$ac_prev"; then |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 767 | eval $ac_prev=\$ac_option |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 768 | ac_prev= |
| 769 | continue |
| 770 | fi |
| 771 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 772 | case $ac_option in |
| 773 | *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
| 774 | *=) ac_optarg= ;; |
| 775 | *) ac_optarg=yes ;; |
| 776 | esac |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 777 | |
| 778 | # Accept the important Cygnus configure options, so we can diagnose typos. |
| 779 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 780 | case $ac_dashdash$ac_option in |
| 781 | --) |
| 782 | ac_dashdash=yes ;; |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 783 | |
| 784 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
| 785 | ac_prev=bindir ;; |
| 786 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
| 787 | bindir=$ac_optarg ;; |
| 788 | |
| 789 | -build | --build | --buil | --bui | --bu) |
| 790 | ac_prev=build_alias ;; |
| 791 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
| 792 | build_alias=$ac_optarg ;; |
| 793 | |
| 794 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
| 795 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
| 796 | ac_prev=cache_file ;; |
| 797 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
| 798 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
| 799 | cache_file=$ac_optarg ;; |
| 800 | |
| 801 | --config-cache | -C) |
| 802 | cache_file=config.cache ;; |
| 803 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 804 | -datadir | --datadir | --datadi | --datad) |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 805 | ac_prev=datadir ;; |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 806 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 807 | datadir=$ac_optarg ;; |
| 808 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 809 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
| 810 | | --dataroo | --dataro | --datar) |
| 811 | ac_prev=datarootdir ;; |
| 812 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ |
| 813 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) |
| 814 | datarootdir=$ac_optarg ;; |
| 815 | |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 816 | -disable-* | --disable-*) |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 817 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 818 | # Reject names that are not valid shell variable names. |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 819 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
| 820 | as_fn_error $? "invalid feature name: $ac_useropt" |
| 821 | ac_useropt_orig=$ac_useropt |
| 822 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 823 | case $ac_user_opts in |
| 824 | *" |
| 825 | "enable_$ac_useropt" |
| 826 | "*) ;; |
| 827 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" |
| 828 | ac_unrecognized_sep=', ';; |
| 829 | esac |
| 830 | eval enable_$ac_useropt=no ;; |
| 831 | |
| 832 | -docdir | --docdir | --docdi | --doc | --do) |
| 833 | ac_prev=docdir ;; |
| 834 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) |
| 835 | docdir=$ac_optarg ;; |
| 836 | |
| 837 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) |
| 838 | ac_prev=dvidir ;; |
| 839 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) |
| 840 | dvidir=$ac_optarg ;; |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 841 | |
| 842 | -enable-* | --enable-*) |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 843 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 844 | # Reject names that are not valid shell variable names. |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 845 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
| 846 | as_fn_error $? "invalid feature name: $ac_useropt" |
| 847 | ac_useropt_orig=$ac_useropt |
| 848 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 849 | case $ac_user_opts in |
| 850 | *" |
| 851 | "enable_$ac_useropt" |
| 852 | "*) ;; |
| 853 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" |
| 854 | ac_unrecognized_sep=', ';; |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 855 | esac |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 856 | eval enable_$ac_useropt=\$ac_optarg ;; |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 857 | |
| 858 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
| 859 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
| 860 | | --exec | --exe | --ex) |
| 861 | ac_prev=exec_prefix ;; |
| 862 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
| 863 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
| 864 | | --exec=* | --exe=* | --ex=*) |
| 865 | exec_prefix=$ac_optarg ;; |
| 866 | |
| 867 | -gas | --gas | --ga | --g) |
| 868 | # Obsolete; use --with-gas. |
| 869 | with_gas=yes ;; |
| 870 | |
| 871 | -help | --help | --hel | --he | -h) |
| 872 | ac_init_help=long ;; |
| 873 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
| 874 | ac_init_help=recursive ;; |
| 875 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
| 876 | ac_init_help=short ;; |
| 877 | |
| 878 | -host | --host | --hos | --ho) |
| 879 | ac_prev=host_alias ;; |
| 880 | -host=* | --host=* | --hos=* | --ho=*) |
| 881 | host_alias=$ac_optarg ;; |
| 882 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 883 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
| 884 | ac_prev=htmldir ;; |
| 885 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ |
| 886 | | --ht=*) |
| 887 | htmldir=$ac_optarg ;; |
| 888 | |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 889 | -includedir | --includedir | --includedi | --included | --include \ |
| 890 | | --includ | --inclu | --incl | --inc) |
| 891 | ac_prev=includedir ;; |
| 892 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
| 893 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
| 894 | includedir=$ac_optarg ;; |
| 895 | |
| 896 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
| 897 | ac_prev=infodir ;; |
| 898 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
| 899 | infodir=$ac_optarg ;; |
| 900 | |
| 901 | -libdir | --libdir | --libdi | --libd) |
| 902 | ac_prev=libdir ;; |
| 903 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
| 904 | libdir=$ac_optarg ;; |
| 905 | |
| 906 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
| 907 | | --libexe | --libex | --libe) |
| 908 | ac_prev=libexecdir ;; |
| 909 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
| 910 | | --libexe=* | --libex=* | --libe=*) |
| 911 | libexecdir=$ac_optarg ;; |
| 912 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 913 | -localedir | --localedir | --localedi | --localed | --locale) |
| 914 | ac_prev=localedir ;; |
| 915 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) |
| 916 | localedir=$ac_optarg ;; |
| 917 | |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 918 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 919 | | --localstate | --localstat | --localsta | --localst | --locals) |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 920 | ac_prev=localstatedir ;; |
| 921 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 922 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 923 | localstatedir=$ac_optarg ;; |
| 924 | |
| 925 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
| 926 | ac_prev=mandir ;; |
| 927 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
| 928 | mandir=$ac_optarg ;; |
| 929 | |
| 930 | -nfp | --nfp | --nf) |
| 931 | # Obsolete; use --without-fp. |
| 932 | with_fp=no ;; |
| 933 | |
| 934 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
| 935 | | --no-cr | --no-c | -n) |
| 936 | no_create=yes ;; |
| 937 | |
| 938 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
| 939 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
| 940 | no_recursion=yes ;; |
| 941 | |
| 942 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
| 943 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
| 944 | | --oldin | --oldi | --old | --ol | --o) |
| 945 | ac_prev=oldincludedir ;; |
| 946 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
| 947 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
| 948 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
| 949 | oldincludedir=$ac_optarg ;; |
| 950 | |
| 951 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
| 952 | ac_prev=prefix ;; |
| 953 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
| 954 | prefix=$ac_optarg ;; |
| 955 | |
| 956 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
| 957 | | --program-pre | --program-pr | --program-p) |
| 958 | ac_prev=program_prefix ;; |
| 959 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
| 960 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
| 961 | program_prefix=$ac_optarg ;; |
| 962 | |
| 963 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
| 964 | | --program-suf | --program-su | --program-s) |
| 965 | ac_prev=program_suffix ;; |
| 966 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
| 967 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
| 968 | program_suffix=$ac_optarg ;; |
| 969 | |
| 970 | -program-transform-name | --program-transform-name \ |
| 971 | | --program-transform-nam | --program-transform-na \ |
| 972 | | --program-transform-n | --program-transform- \ |
| 973 | | --program-transform | --program-transfor \ |
| 974 | | --program-transfo | --program-transf \ |
| 975 | | --program-trans | --program-tran \ |
| 976 | | --progr-tra | --program-tr | --program-t) |
| 977 | ac_prev=program_transform_name ;; |
| 978 | -program-transform-name=* | --program-transform-name=* \ |
| 979 | | --program-transform-nam=* | --program-transform-na=* \ |
| 980 | | --program-transform-n=* | --program-transform-=* \ |
| 981 | | --program-transform=* | --program-transfor=* \ |
| 982 | | --program-transfo=* | --program-transf=* \ |
| 983 | | --program-trans=* | --program-tran=* \ |
| 984 | | --progr-tra=* | --program-tr=* | --program-t=*) |
| 985 | program_transform_name=$ac_optarg ;; |
| 986 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 987 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
| 988 | ac_prev=pdfdir ;; |
| 989 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) |
| 990 | pdfdir=$ac_optarg ;; |
| 991 | |
| 992 | -psdir | --psdir | --psdi | --psd | --ps) |
| 993 | ac_prev=psdir ;; |
| 994 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) |
| 995 | psdir=$ac_optarg ;; |
| 996 | |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 997 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 998 | | -silent | --silent | --silen | --sile | --sil) |
| 999 | silent=yes ;; |
| 1000 | |
| 1001 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
| 1002 | ac_prev=sbindir ;; |
| 1003 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
| 1004 | | --sbi=* | --sb=*) |
| 1005 | sbindir=$ac_optarg ;; |
| 1006 | |
| 1007 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
| 1008 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
| 1009 | | --sharedst | --shareds | --shared | --share | --shar \ |
| 1010 | | --sha | --sh) |
| 1011 | ac_prev=sharedstatedir ;; |
| 1012 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
| 1013 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
| 1014 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
| 1015 | | --sha=* | --sh=*) |
| 1016 | sharedstatedir=$ac_optarg ;; |
| 1017 | |
| 1018 | -site | --site | --sit) |
| 1019 | ac_prev=site ;; |
| 1020 | -site=* | --site=* | --sit=*) |
| 1021 | site=$ac_optarg ;; |
| 1022 | |
| 1023 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
| 1024 | ac_prev=srcdir ;; |
| 1025 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
| 1026 | srcdir=$ac_optarg ;; |
| 1027 | |
| 1028 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
| 1029 | | --syscon | --sysco | --sysc | --sys | --sy) |
| 1030 | ac_prev=sysconfdir ;; |
| 1031 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
| 1032 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
| 1033 | sysconfdir=$ac_optarg ;; |
| 1034 | |
| 1035 | -target | --target | --targe | --targ | --tar | --ta | --t) |
| 1036 | ac_prev=target_alias ;; |
| 1037 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
| 1038 | target_alias=$ac_optarg ;; |
| 1039 | |
| 1040 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
| 1041 | verbose=yes ;; |
| 1042 | |
| 1043 | -version | --version | --versio | --versi | --vers | -V) |
| 1044 | ac_init_version=: ;; |
| 1045 | |
| 1046 | -with-* | --with-*) |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 1047 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 1048 | # Reject names that are not valid shell variable names. |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 1049 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
| 1050 | as_fn_error $? "invalid package name: $ac_useropt" |
| 1051 | ac_useropt_orig=$ac_useropt |
| 1052 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 1053 | case $ac_user_opts in |
| 1054 | *" |
| 1055 | "with_$ac_useropt" |
| 1056 | "*) ;; |
| 1057 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" |
| 1058 | ac_unrecognized_sep=', ';; |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 1059 | esac |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 1060 | eval with_$ac_useropt=\$ac_optarg ;; |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 1061 | |
| 1062 | -without-* | --without-*) |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 1063 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 1064 | # Reject names that are not valid shell variable names. |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 1065 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
| 1066 | as_fn_error $? "invalid package name: $ac_useropt" |
| 1067 | ac_useropt_orig=$ac_useropt |
| 1068 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 1069 | case $ac_user_opts in |
| 1070 | *" |
| 1071 | "with_$ac_useropt" |
| 1072 | "*) ;; |
| 1073 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" |
| 1074 | ac_unrecognized_sep=', ';; |
| 1075 | esac |
| 1076 | eval with_$ac_useropt=no ;; |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 1077 | |
| 1078 | --x) |
| 1079 | # Obsolete; use --with-x. |
| 1080 | with_x=yes ;; |
| 1081 | |
| 1082 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
| 1083 | | --x-incl | --x-inc | --x-in | --x-i) |
| 1084 | ac_prev=x_includes ;; |
| 1085 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
| 1086 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
| 1087 | x_includes=$ac_optarg ;; |
| 1088 | |
| 1089 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
| 1090 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
| 1091 | ac_prev=x_libraries ;; |
| 1092 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
| 1093 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
| 1094 | x_libraries=$ac_optarg ;; |
| 1095 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 1096 | -*) as_fn_error $? "unrecognized option: \`$ac_option' |
| 1097 | Try \`$0 --help' for more information" |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 1098 | ;; |
| 1099 | |
| 1100 | *=*) |
| 1101 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
| 1102 | # Reject names that are not valid shell variable names. |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 1103 | case $ac_envvar in #( |
| 1104 | '' | [0-9]* | *[!_$as_cr_alnum]* ) |
| 1105 | as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; |
| 1106 | esac |
| 1107 | eval $ac_envvar=\$ac_optarg |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 1108 | export $ac_envvar ;; |
| 1109 | |
| 1110 | *) |
| 1111 | # FIXME: should be removed in autoconf 3.0. |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 1112 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 1113 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 1114 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
| 1115 | : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 1116 | ;; |
| 1117 | |
| 1118 | esac |
| 1119 | done |
| 1120 | |
| 1121 | if test -n "$ac_prev"; then |
| 1122 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 1123 | as_fn_error $? "missing argument to $ac_option" |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 1124 | fi |
| 1125 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 1126 | if test -n "$ac_unrecognized_opts"; then |
| 1127 | case $enable_option_checking in |
| 1128 | no) ;; |
| 1129 | fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; |
| 1130 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 1131 | esac |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 1132 | fi |
Cullen Jennings | 52c5cd3 | 2013-05-01 18:07:29 -0600 | [diff] [blame] | 1133 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 1134 | # Check all directory arguments for consistency. |
| 1135 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
| 1136 | datadir sysconfdir sharedstatedir localstatedir includedir \ |
| 1137 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ |
| 1138 | libdir localedir mandir |
Cullen Jennings | 52c5cd3 | 2013-05-01 18:07:29 -0600 | [diff] [blame] | 1139 | do |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 1140 | eval ac_val=\$$ac_var |
| 1141 | # Remove trailing slashes. |
jfigus | a14b5a0 | 2013-03-29 12:24:12 -0400 | [diff] [blame] | 1142 | case $ac_val in |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 1143 | */ ) |
| 1144 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` |
| 1145 | eval $ac_var=\$ac_val;; |
jfigus | a14b5a0 | 2013-03-29 12:24:12 -0400 | [diff] [blame] | 1146 | esac |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 1147 | # Be sure to have absolute directory names. |
| 1148 | case $ac_val in |
| 1149 | [\\/$]* | ?:[\\/]* ) continue;; |
| 1150 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; |
| 1151 | esac |
| 1152 | 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] | 1153 | done |
| 1154 | |
| 1155 | # There might be people who depend on the old broken behavior: `$host' |
| 1156 | # used to hold the argument of --host etc. |
| 1157 | # FIXME: To remove some day. |
| 1158 | build=$build_alias |
| 1159 | host=$host_alias |
| 1160 | target=$target_alias |
| 1161 | |
| 1162 | # FIXME: To remove some day. |
| 1163 | if test "x$host_alias" != x; then |
| 1164 | if test "x$build_alias" = x; then |
| 1165 | cross_compiling=maybe |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 1166 | elif test "x$build_alias" != "x$host_alias"; then |
| 1167 | cross_compiling=yes |
| 1168 | fi |
| 1169 | fi |
| 1170 | |
| 1171 | ac_tool_prefix= |
| 1172 | test -n "$host_alias" && ac_tool_prefix=$host_alias- |
| 1173 | |
| 1174 | test "$silent" = yes && exec 6>/dev/null |
| 1175 | |
| 1176 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 1177 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
| 1178 | ac_ls_di=`ls -di .` && |
| 1179 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || |
| 1180 | as_fn_error $? "working directory cannot be determined" |
| 1181 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
| 1182 | as_fn_error $? "pwd does not report name of working directory" |
| 1183 | |
| 1184 | |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 1185 | # Find the source files, if location was not specified. |
| 1186 | if test -z "$srcdir"; then |
| 1187 | ac_srcdir_defaulted=yes |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 1188 | # Try the directory containing this script, then the parent directory. |
| 1189 | ac_confdir=`$as_dirname -- "$as_myself" || |
| 1190 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 1191 | X"$as_myself" : 'X\(//\)[^/]' \| \ |
| 1192 | X"$as_myself" : 'X\(//\)$' \| \ |
| 1193 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || |
| 1194 | $as_echo X"$as_myself" | |
| 1195 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 1196 | s//\1/ |
| 1197 | q |
| 1198 | } |
| 1199 | /^X\(\/\/\)[^/].*/{ |
| 1200 | s//\1/ |
| 1201 | q |
| 1202 | } |
| 1203 | /^X\(\/\/\)$/{ |
| 1204 | s//\1/ |
| 1205 | q |
| 1206 | } |
| 1207 | /^X\(\/\).*/{ |
| 1208 | s//\1/ |
| 1209 | q |
| 1210 | } |
| 1211 | s/.*/./; q'` |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 1212 | srcdir=$ac_confdir |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 1213 | if test ! -r "$srcdir/$ac_unique_file"; then |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 1214 | srcdir=.. |
| 1215 | fi |
| 1216 | else |
| 1217 | ac_srcdir_defaulted=no |
| 1218 | fi |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 1219 | if test ! -r "$srcdir/$ac_unique_file"; then |
| 1220 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." |
| 1221 | as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 1222 | fi |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 1223 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
| 1224 | ac_abs_confdir=`( |
| 1225 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" |
| 1226 | pwd)` |
| 1227 | # When building in place, set srcdir=. |
| 1228 | if test "$ac_abs_confdir" = "$ac_pwd"; then |
| 1229 | srcdir=. |
| 1230 | fi |
| 1231 | # Remove unnecessary trailing slashes from srcdir. |
| 1232 | # Double slashes in file names in object file debugging info |
| 1233 | # mess up M-x gdb in Emacs. |
| 1234 | case $srcdir in |
| 1235 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; |
| 1236 | esac |
| 1237 | for ac_var in $ac_precious_vars; do |
| 1238 | eval ac_env_${ac_var}_set=\${${ac_var}+set} |
| 1239 | eval ac_env_${ac_var}_value=\$${ac_var} |
| 1240 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} |
| 1241 | eval ac_cv_env_${ac_var}_value=\$${ac_var} |
| 1242 | done |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 1243 | |
| 1244 | # |
| 1245 | # Report the --help message. |
| 1246 | # |
| 1247 | if test "$ac_init_help" = "long"; then |
| 1248 | # Omit some internal or obsolete options to make the list less imposing. |
| 1249 | # This message is too long to be a string in the A/UX 3.1 sh. |
| 1250 | cat <<_ACEOF |
jfigus | d196e02 | 2014-11-20 16:43:44 -0500 | [diff] [blame] | 1251 | \`configure' configures libsrtp2 2.0.0-pre to adapt to many kinds of systems. |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 1252 | |
| 1253 | Usage: $0 [OPTION]... [VAR=VALUE]... |
| 1254 | |
| 1255 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
| 1256 | VAR=VALUE. See below for descriptions of some of the useful variables. |
| 1257 | |
| 1258 | Defaults for the options are specified in brackets. |
| 1259 | |
| 1260 | Configuration: |
| 1261 | -h, --help display this help and exit |
| 1262 | --help=short display options specific to this package |
| 1263 | --help=recursive display the short help of all the included packages |
| 1264 | -V, --version display version information and exit |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 1265 | -q, --quiet, --silent do not print \`checking ...' messages |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 1266 | --cache-file=FILE cache test results in FILE [disabled] |
| 1267 | -C, --config-cache alias for \`--cache-file=config.cache' |
| 1268 | -n, --no-create do not create output files |
| 1269 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] |
| 1270 | |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 1271 | Installation directories: |
| 1272 | --prefix=PREFIX install architecture-independent files in PREFIX |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 1273 | [$ac_default_prefix] |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 1274 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 1275 | [PREFIX] |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 1276 | |
| 1277 | By default, \`make install' will install all the files in |
| 1278 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
| 1279 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
| 1280 | for instance \`--prefix=\$HOME'. |
| 1281 | |
| 1282 | For better control, use the options below. |
| 1283 | |
| 1284 | Fine tuning of the installation directories: |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 1285 | --bindir=DIR user executables [EPREFIX/bin] |
| 1286 | --sbindir=DIR system admin executables [EPREFIX/sbin] |
| 1287 | --libexecdir=DIR program executables [EPREFIX/libexec] |
| 1288 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
| 1289 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
| 1290 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
| 1291 | --libdir=DIR object code libraries [EPREFIX/lib] |
| 1292 | --includedir=DIR C header files [PREFIX/include] |
| 1293 | --oldincludedir=DIR C header files for non-gcc [/usr/include] |
| 1294 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] |
| 1295 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] |
| 1296 | --infodir=DIR info documentation [DATAROOTDIR/info] |
| 1297 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] |
| 1298 | --mandir=DIR man documentation [DATAROOTDIR/man] |
jfigus | d196e02 | 2014-11-20 16:43:44 -0500 | [diff] [blame] | 1299 | --docdir=DIR documentation root [DATAROOTDIR/doc/libsrtp2] |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 1300 | --htmldir=DIR html documentation [DOCDIR] |
| 1301 | --dvidir=DIR dvi documentation [DOCDIR] |
| 1302 | --pdfdir=DIR pdf documentation [DOCDIR] |
| 1303 | --psdir=DIR ps documentation [DOCDIR] |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 1304 | _ACEOF |
| 1305 | |
| 1306 | cat <<\_ACEOF |
| 1307 | |
| 1308 | System types: |
| 1309 | --build=BUILD configure for building on BUILD [guessed] |
| 1310 | --host=HOST cross-compile to build programs to run on HOST [BUILD] |
| 1311 | _ACEOF |
| 1312 | fi |
| 1313 | |
| 1314 | if test -n "$ac_init_help"; then |
Saúl Ibarra Corretgé | ff3d042 | 2014-10-01 11:24:15 +0200 | [diff] [blame] | 1315 | case $ac_init_help in |
jfigus | d196e02 | 2014-11-20 16:43:44 -0500 | [diff] [blame] | 1316 | short | recursive ) echo "Configuration of libsrtp2 2.0.0-pre:";; |
Saúl Ibarra Corretgé | ff3d042 | 2014-10-01 11:24:15 +0200 | [diff] [blame] | 1317 | esac |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 1318 | cat <<\_ACEOF |
| 1319 | |
| 1320 | Optional Features: |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 1321 | --disable-option-checking ignore unrecognized --enable/--with options |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 1322 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
| 1323 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
David McGrew | b67061f | 2005-09-28 14:23:06 +0000 | [diff] [blame] | 1324 | --disable-debug do not compile in dynamic debugging system |
| 1325 | --enable-generic-aesicm compile in changes for ISMAcryp |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 1326 | --enable-openssl compile in OpenSSL crypto engine |
jfigus | 97a80f4 | 2014-11-04 14:15:40 -0500 | [diff] [blame] | 1327 | --enable-stdout use stdout for debug/error reporting |
David McGrew | b67061f | 2005-09-28 14:23:06 +0000 | [diff] [blame] | 1328 | --enable-console use /dev/console for error reporting |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 1329 | |
| 1330 | Some influential environment variables: |
| 1331 | CC C compiler command |
| 1332 | CFLAGS C compiler flags |
| 1333 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
| 1334 | nonstandard directory <lib dir> |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 1335 | LIBS libraries to pass to the linker, e.g. -l<library> |
| 1336 | CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if |
| 1337 | you have headers in a nonstandard directory <include dir> |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 1338 | CPP C preprocessor |
| 1339 | |
| 1340 | Use these variables to override the choices made by `configure' or to help |
| 1341 | it to find libraries and programs with nonstandard names/locations. |
| 1342 | |
Saúl Ibarra Corretgé | ff3d042 | 2014-10-01 11:24:15 +0200 | [diff] [blame] | 1343 | Report bugs to <https://github.com/cisco/libsrtp/issues>. |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 1344 | _ACEOF |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 1345 | ac_status=$? |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 1346 | fi |
| 1347 | |
| 1348 | if test "$ac_init_help" = "recursive"; then |
| 1349 | # If there are subdirs, report their specific --help. |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 1350 | 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] | 1351 | test -d "$ac_dir" || |
| 1352 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || |
| 1353 | continue |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 1354 | ac_builddir=. |
| 1355 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 1356 | case "$ac_dir" in |
| 1357 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 1358 | *) |
| 1359 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
| 1360 | # A ".." for each directory in $ac_dir_suffix. |
| 1361 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
| 1362 | case $ac_top_builddir_sub in |
| 1363 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 1364 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 1365 | esac ;; |
| 1366 | esac |
| 1367 | ac_abs_top_builddir=$ac_pwd |
| 1368 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 1369 | # for backward compatibility: |
| 1370 | ac_top_builddir=$ac_top_build_prefix |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 1371 | |
| 1372 | case $srcdir in |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 1373 | .) # We are building in place. |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 1374 | ac_srcdir=. |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 1375 | ac_top_srcdir=$ac_top_builddir_sub |
| 1376 | ac_abs_top_srcdir=$ac_pwd ;; |
| 1377 | [\\/]* | ?:[\\/]* ) # Absolute name. |
Cullen Jennings | 52c5cd3 | 2013-05-01 18:07:29 -0600 | [diff] [blame] | 1378 | ac_srcdir=$srcdir$ac_dir_suffix; |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 1379 | ac_top_srcdir=$srcdir |
| 1380 | ac_abs_top_srcdir=$srcdir ;; |
| 1381 | *) # Relative name. |
| 1382 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 1383 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 1384 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
Cullen Jennings | 52c5cd3 | 2013-05-01 18:07:29 -0600 | [diff] [blame] | 1385 | esac |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 1386 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
Cullen Jennings | 52c5cd3 | 2013-05-01 18:07:29 -0600 | [diff] [blame] | 1387 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 1388 | cd "$ac_dir" || { ac_status=$?; continue; } |
| 1389 | # Check for guested configure. |
| 1390 | if test -f "$ac_srcdir/configure.gnu"; then |
| 1391 | echo && |
| 1392 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive |
| 1393 | elif test -f "$ac_srcdir/configure"; then |
| 1394 | echo && |
| 1395 | $SHELL "$ac_srcdir/configure" --help=recursive |
Cullen Jennings | 52c5cd3 | 2013-05-01 18:07:29 -0600 | [diff] [blame] | 1396 | else |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 1397 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
| 1398 | fi || ac_status=$? |
| 1399 | cd "$ac_pwd" || { ac_status=$?; break; } |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 1400 | done |
| 1401 | fi |
| 1402 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 1403 | test -n "$ac_init_help" && exit $ac_status |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 1404 | if $ac_init_version; then |
| 1405 | cat <<\_ACEOF |
jfigus | d196e02 | 2014-11-20 16:43:44 -0500 | [diff] [blame] | 1406 | libsrtp2 configure 2.0.0-pre |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 1407 | generated by GNU Autoconf 2.69 |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 1408 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 1409 | Copyright (C) 2012 Free Software Foundation, Inc. |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 1410 | This configure script is free software; the Free Software Foundation |
| 1411 | gives unlimited permission to copy, distribute and modify it. |
| 1412 | _ACEOF |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 1413 | exit |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 1414 | fi |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 1415 | |
| 1416 | ## ------------------------ ## |
| 1417 | ## Autoconf initialization. ## |
| 1418 | ## ------------------------ ## |
| 1419 | |
| 1420 | # ac_fn_c_try_compile LINENO |
| 1421 | # -------------------------- |
| 1422 | # Try to compile conftest.$ac_ext, and return whether this succeeded. |
| 1423 | ac_fn_c_try_compile () |
| 1424 | { |
| 1425 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1426 | rm -f conftest.$ac_objext |
| 1427 | if { { ac_try="$ac_compile" |
| 1428 | case "(($ac_try" in |
| 1429 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1430 | *) ac_try_echo=$ac_try;; |
| 1431 | esac |
| 1432 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1433 | $as_echo "$ac_try_echo"; } >&5 |
| 1434 | (eval "$ac_compile") 2>conftest.err |
| 1435 | ac_status=$? |
| 1436 | if test -s conftest.err; then |
| 1437 | grep -v '^ *+' conftest.err >conftest.er1 |
| 1438 | cat conftest.er1 >&5 |
| 1439 | mv -f conftest.er1 conftest.err |
| 1440 | fi |
| 1441 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1442 | test $ac_status = 0; } && { |
| 1443 | test -z "$ac_c_werror_flag" || |
| 1444 | test ! -s conftest.err |
| 1445 | } && test -s conftest.$ac_objext; then : |
| 1446 | ac_retval=0 |
| 1447 | else |
| 1448 | $as_echo "$as_me: failed program was:" >&5 |
| 1449 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1450 | |
| 1451 | ac_retval=1 |
| 1452 | fi |
| 1453 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 1454 | as_fn_set_status $ac_retval |
| 1455 | |
| 1456 | } # ac_fn_c_try_compile |
| 1457 | |
| 1458 | # ac_fn_c_try_run LINENO |
| 1459 | # ---------------------- |
| 1460 | # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes |
| 1461 | # that executables *can* be run. |
| 1462 | ac_fn_c_try_run () |
| 1463 | { |
| 1464 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1465 | if { { ac_try="$ac_link" |
| 1466 | case "(($ac_try" in |
| 1467 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1468 | *) ac_try_echo=$ac_try;; |
| 1469 | esac |
| 1470 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1471 | $as_echo "$ac_try_echo"; } >&5 |
| 1472 | (eval "$ac_link") 2>&5 |
| 1473 | ac_status=$? |
| 1474 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1475 | test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' |
| 1476 | { { case "(($ac_try" in |
| 1477 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1478 | *) ac_try_echo=$ac_try;; |
| 1479 | esac |
| 1480 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1481 | $as_echo "$ac_try_echo"; } >&5 |
| 1482 | (eval "$ac_try") 2>&5 |
| 1483 | ac_status=$? |
| 1484 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1485 | test $ac_status = 0; }; }; then : |
| 1486 | ac_retval=0 |
| 1487 | else |
| 1488 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
| 1489 | $as_echo "$as_me: failed program was:" >&5 |
| 1490 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1491 | |
| 1492 | ac_retval=$ac_status |
| 1493 | fi |
| 1494 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
| 1495 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 1496 | as_fn_set_status $ac_retval |
| 1497 | |
| 1498 | } # ac_fn_c_try_run |
| 1499 | |
| 1500 | # ac_fn_c_try_cpp LINENO |
| 1501 | # ---------------------- |
| 1502 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. |
| 1503 | ac_fn_c_try_cpp () |
| 1504 | { |
| 1505 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1506 | if { { ac_try="$ac_cpp conftest.$ac_ext" |
| 1507 | case "(($ac_try" in |
| 1508 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1509 | *) ac_try_echo=$ac_try;; |
| 1510 | esac |
| 1511 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1512 | $as_echo "$ac_try_echo"; } >&5 |
| 1513 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err |
| 1514 | ac_status=$? |
| 1515 | if test -s conftest.err; then |
| 1516 | grep -v '^ *+' conftest.err >conftest.er1 |
| 1517 | cat conftest.er1 >&5 |
| 1518 | mv -f conftest.er1 conftest.err |
| 1519 | fi |
| 1520 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1521 | test $ac_status = 0; } > conftest.i && { |
| 1522 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 1523 | test ! -s conftest.err |
| 1524 | }; then : |
| 1525 | ac_retval=0 |
| 1526 | else |
| 1527 | $as_echo "$as_me: failed program was:" >&5 |
| 1528 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1529 | |
| 1530 | ac_retval=1 |
| 1531 | fi |
| 1532 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 1533 | as_fn_set_status $ac_retval |
| 1534 | |
| 1535 | } # ac_fn_c_try_cpp |
| 1536 | |
| 1537 | # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES |
| 1538 | # ------------------------------------------------------- |
| 1539 | # Tests whether HEADER exists and can be compiled using the include files in |
| 1540 | # INCLUDES, setting the cache variable VAR accordingly. |
| 1541 | ac_fn_c_check_header_compile () |
| 1542 | { |
| 1543 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1544 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 1545 | $as_echo_n "checking for $2... " >&6; } |
| 1546 | if eval \${$3+:} false; then : |
| 1547 | $as_echo_n "(cached) " >&6 |
| 1548 | else |
| 1549 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1550 | /* end confdefs.h. */ |
| 1551 | $4 |
| 1552 | #include <$2> |
| 1553 | _ACEOF |
| 1554 | if ac_fn_c_try_compile "$LINENO"; then : |
| 1555 | eval "$3=yes" |
| 1556 | else |
| 1557 | eval "$3=no" |
| 1558 | fi |
| 1559 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 1560 | fi |
| 1561 | eval ac_res=\$$3 |
| 1562 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 1563 | $as_echo "$ac_res" >&6; } |
| 1564 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 1565 | |
| 1566 | } # ac_fn_c_check_header_compile |
| 1567 | |
| 1568 | # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES |
| 1569 | # ------------------------------------------------------- |
| 1570 | # Tests whether HEADER exists, giving a warning if it cannot be compiled using |
| 1571 | # the include files in INCLUDES and setting the cache variable VAR |
| 1572 | # accordingly. |
| 1573 | ac_fn_c_check_header_mongrel () |
| 1574 | { |
| 1575 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1576 | if eval \${$3+:} false; then : |
| 1577 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 1578 | $as_echo_n "checking for $2... " >&6; } |
| 1579 | if eval \${$3+:} false; then : |
| 1580 | $as_echo_n "(cached) " >&6 |
| 1581 | fi |
| 1582 | eval ac_res=\$$3 |
| 1583 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 1584 | $as_echo "$ac_res" >&6; } |
| 1585 | else |
| 1586 | # Is the header compilable? |
| 1587 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 |
| 1588 | $as_echo_n "checking $2 usability... " >&6; } |
| 1589 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1590 | /* end confdefs.h. */ |
| 1591 | $4 |
| 1592 | #include <$2> |
| 1593 | _ACEOF |
| 1594 | if ac_fn_c_try_compile "$LINENO"; then : |
| 1595 | ac_header_compiler=yes |
| 1596 | else |
| 1597 | ac_header_compiler=no |
| 1598 | fi |
| 1599 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 1600 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 |
| 1601 | $as_echo "$ac_header_compiler" >&6; } |
| 1602 | |
| 1603 | # Is the header present? |
| 1604 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 |
| 1605 | $as_echo_n "checking $2 presence... " >&6; } |
| 1606 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1607 | /* end confdefs.h. */ |
| 1608 | #include <$2> |
| 1609 | _ACEOF |
| 1610 | if ac_fn_c_try_cpp "$LINENO"; then : |
| 1611 | ac_header_preproc=yes |
| 1612 | else |
| 1613 | ac_header_preproc=no |
| 1614 | fi |
| 1615 | rm -f conftest.err conftest.i conftest.$ac_ext |
| 1616 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 |
| 1617 | $as_echo "$ac_header_preproc" >&6; } |
| 1618 | |
| 1619 | # So? What about this header? |
| 1620 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( |
| 1621 | yes:no: ) |
| 1622 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 1623 | $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 1624 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 |
| 1625 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} |
| 1626 | ;; |
| 1627 | no:yes:* ) |
| 1628 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 |
| 1629 | $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} |
| 1630 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 |
| 1631 | $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} |
| 1632 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 |
| 1633 | $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} |
| 1634 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 |
| 1635 | $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} |
| 1636 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 |
| 1637 | $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] | 1638 | ( $as_echo "## ------------------------------------------------------ ## |
| 1639 | ## Report this to https://github.com/cisco/libsrtp/issues ## |
| 1640 | ## ------------------------------------------------------ ##" |
| 1641 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 1642 | ;; |
| 1643 | esac |
| 1644 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 1645 | $as_echo_n "checking for $2... " >&6; } |
| 1646 | if eval \${$3+:} false; then : |
| 1647 | $as_echo_n "(cached) " >&6 |
| 1648 | else |
| 1649 | eval "$3=\$ac_header_compiler" |
| 1650 | fi |
| 1651 | eval ac_res=\$$3 |
| 1652 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 1653 | $as_echo "$ac_res" >&6; } |
| 1654 | fi |
| 1655 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 1656 | |
| 1657 | } # ac_fn_c_check_header_mongrel |
| 1658 | |
| 1659 | # ac_fn_c_check_type LINENO TYPE VAR INCLUDES |
| 1660 | # ------------------------------------------- |
| 1661 | # Tests whether TYPE exists after having included INCLUDES, setting cache |
| 1662 | # variable VAR accordingly. |
| 1663 | ac_fn_c_check_type () |
| 1664 | { |
| 1665 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1666 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 1667 | $as_echo_n "checking for $2... " >&6; } |
| 1668 | if eval \${$3+:} false; then : |
| 1669 | $as_echo_n "(cached) " >&6 |
| 1670 | else |
| 1671 | eval "$3=no" |
| 1672 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1673 | /* end confdefs.h. */ |
| 1674 | $4 |
| 1675 | int |
| 1676 | main () |
| 1677 | { |
| 1678 | if (sizeof ($2)) |
| 1679 | return 0; |
| 1680 | ; |
| 1681 | return 0; |
| 1682 | } |
| 1683 | _ACEOF |
| 1684 | if ac_fn_c_try_compile "$LINENO"; then : |
| 1685 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1686 | /* end confdefs.h. */ |
| 1687 | $4 |
| 1688 | int |
| 1689 | main () |
| 1690 | { |
| 1691 | if (sizeof (($2))) |
| 1692 | return 0; |
| 1693 | ; |
| 1694 | return 0; |
| 1695 | } |
| 1696 | _ACEOF |
| 1697 | if ac_fn_c_try_compile "$LINENO"; then : |
| 1698 | |
| 1699 | else |
| 1700 | eval "$3=yes" |
| 1701 | fi |
| 1702 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 1703 | fi |
| 1704 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 1705 | fi |
| 1706 | eval ac_res=\$$3 |
| 1707 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 1708 | $as_echo "$ac_res" >&6; } |
| 1709 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 1710 | |
| 1711 | } # ac_fn_c_check_type |
| 1712 | |
| 1713 | # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES |
| 1714 | # -------------------------------------------- |
| 1715 | # Tries to find the compile-time value of EXPR in a program that includes |
| 1716 | # INCLUDES, setting VAR accordingly. Returns whether the value could be |
| 1717 | # computed |
| 1718 | ac_fn_c_compute_int () |
| 1719 | { |
| 1720 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1721 | if test "$cross_compiling" = yes; then |
| 1722 | # Depending upon the size, compute the lo and hi bounds. |
| 1723 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1724 | /* end confdefs.h. */ |
| 1725 | $4 |
| 1726 | int |
| 1727 | main () |
| 1728 | { |
| 1729 | static int test_array [1 - 2 * !(($2) >= 0)]; |
| 1730 | test_array [0] = 0; |
| 1731 | return test_array [0]; |
| 1732 | |
| 1733 | ; |
| 1734 | return 0; |
| 1735 | } |
| 1736 | _ACEOF |
| 1737 | if ac_fn_c_try_compile "$LINENO"; then : |
| 1738 | ac_lo=0 ac_mid=0 |
| 1739 | while :; do |
| 1740 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1741 | /* end confdefs.h. */ |
| 1742 | $4 |
| 1743 | int |
| 1744 | main () |
| 1745 | { |
| 1746 | static int test_array [1 - 2 * !(($2) <= $ac_mid)]; |
| 1747 | test_array [0] = 0; |
| 1748 | return test_array [0]; |
| 1749 | |
| 1750 | ; |
| 1751 | return 0; |
| 1752 | } |
| 1753 | _ACEOF |
| 1754 | if ac_fn_c_try_compile "$LINENO"; then : |
| 1755 | ac_hi=$ac_mid; break |
| 1756 | else |
| 1757 | as_fn_arith $ac_mid + 1 && ac_lo=$as_val |
| 1758 | if test $ac_lo -le $ac_mid; then |
| 1759 | ac_lo= ac_hi= |
| 1760 | break |
| 1761 | fi |
| 1762 | as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val |
| 1763 | fi |
| 1764 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 1765 | done |
| 1766 | else |
| 1767 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1768 | /* end confdefs.h. */ |
| 1769 | $4 |
| 1770 | int |
| 1771 | main () |
| 1772 | { |
| 1773 | static int test_array [1 - 2 * !(($2) < 0)]; |
| 1774 | test_array [0] = 0; |
| 1775 | return test_array [0]; |
| 1776 | |
| 1777 | ; |
| 1778 | return 0; |
| 1779 | } |
| 1780 | _ACEOF |
| 1781 | if ac_fn_c_try_compile "$LINENO"; then : |
| 1782 | ac_hi=-1 ac_mid=-1 |
| 1783 | while :; do |
| 1784 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1785 | /* end confdefs.h. */ |
| 1786 | $4 |
| 1787 | int |
| 1788 | main () |
| 1789 | { |
| 1790 | static int test_array [1 - 2 * !(($2) >= $ac_mid)]; |
| 1791 | test_array [0] = 0; |
| 1792 | return test_array [0]; |
| 1793 | |
| 1794 | ; |
| 1795 | return 0; |
| 1796 | } |
| 1797 | _ACEOF |
| 1798 | if ac_fn_c_try_compile "$LINENO"; then : |
| 1799 | ac_lo=$ac_mid; break |
| 1800 | else |
| 1801 | as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val |
| 1802 | if test $ac_mid -le $ac_hi; then |
| 1803 | ac_lo= ac_hi= |
| 1804 | break |
| 1805 | fi |
| 1806 | as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val |
| 1807 | fi |
| 1808 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 1809 | done |
| 1810 | else |
| 1811 | ac_lo= ac_hi= |
| 1812 | fi |
| 1813 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 1814 | fi |
| 1815 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 1816 | # Binary search between lo and hi bounds. |
| 1817 | while test "x$ac_lo" != "x$ac_hi"; do |
| 1818 | as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val |
| 1819 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1820 | /* end confdefs.h. */ |
| 1821 | $4 |
| 1822 | int |
| 1823 | main () |
| 1824 | { |
| 1825 | static int test_array [1 - 2 * !(($2) <= $ac_mid)]; |
| 1826 | test_array [0] = 0; |
| 1827 | return test_array [0]; |
| 1828 | |
| 1829 | ; |
| 1830 | return 0; |
| 1831 | } |
| 1832 | _ACEOF |
| 1833 | if ac_fn_c_try_compile "$LINENO"; then : |
| 1834 | ac_hi=$ac_mid |
| 1835 | else |
| 1836 | as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val |
| 1837 | fi |
| 1838 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 1839 | done |
| 1840 | case $ac_lo in #(( |
| 1841 | ?*) eval "$3=\$ac_lo"; ac_retval=0 ;; |
| 1842 | '') ac_retval=1 ;; |
| 1843 | esac |
| 1844 | else |
| 1845 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1846 | /* end confdefs.h. */ |
| 1847 | $4 |
| 1848 | static long int longval () { return $2; } |
| 1849 | static unsigned long int ulongval () { return $2; } |
| 1850 | #include <stdio.h> |
| 1851 | #include <stdlib.h> |
| 1852 | int |
| 1853 | main () |
| 1854 | { |
| 1855 | |
| 1856 | FILE *f = fopen ("conftest.val", "w"); |
| 1857 | if (! f) |
| 1858 | return 1; |
| 1859 | if (($2) < 0) |
| 1860 | { |
| 1861 | long int i = longval (); |
| 1862 | if (i != ($2)) |
| 1863 | return 1; |
| 1864 | fprintf (f, "%ld", i); |
| 1865 | } |
| 1866 | else |
| 1867 | { |
| 1868 | unsigned long int i = ulongval (); |
| 1869 | if (i != ($2)) |
| 1870 | return 1; |
| 1871 | fprintf (f, "%lu", i); |
| 1872 | } |
| 1873 | /* Do not output a trailing newline, as this causes \r\n confusion |
| 1874 | on some platforms. */ |
| 1875 | return ferror (f) || fclose (f) != 0; |
| 1876 | |
| 1877 | ; |
| 1878 | return 0; |
| 1879 | } |
| 1880 | _ACEOF |
| 1881 | if ac_fn_c_try_run "$LINENO"; then : |
| 1882 | echo >>conftest.val; read $3 <conftest.val; ac_retval=0 |
| 1883 | else |
| 1884 | ac_retval=1 |
| 1885 | fi |
| 1886 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 1887 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 1888 | rm -f conftest.val |
| 1889 | |
| 1890 | fi |
| 1891 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 1892 | as_fn_set_status $ac_retval |
| 1893 | |
| 1894 | } # ac_fn_c_compute_int |
| 1895 | |
| 1896 | # ac_fn_c_try_link LINENO |
| 1897 | # ----------------------- |
| 1898 | # Try to link conftest.$ac_ext, and return whether this succeeded. |
| 1899 | ac_fn_c_try_link () |
| 1900 | { |
| 1901 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1902 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 1903 | if { { ac_try="$ac_link" |
| 1904 | case "(($ac_try" in |
| 1905 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1906 | *) ac_try_echo=$ac_try;; |
| 1907 | esac |
| 1908 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1909 | $as_echo "$ac_try_echo"; } >&5 |
| 1910 | (eval "$ac_link") 2>conftest.err |
| 1911 | ac_status=$? |
| 1912 | if test -s conftest.err; then |
| 1913 | grep -v '^ *+' conftest.err >conftest.er1 |
| 1914 | cat conftest.er1 >&5 |
| 1915 | mv -f conftest.er1 conftest.err |
| 1916 | fi |
| 1917 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1918 | test $ac_status = 0; } && { |
| 1919 | test -z "$ac_c_werror_flag" || |
| 1920 | test ! -s conftest.err |
| 1921 | } && test -s conftest$ac_exeext && { |
| 1922 | test "$cross_compiling" = yes || |
| 1923 | test -x conftest$ac_exeext |
| 1924 | }; then : |
| 1925 | ac_retval=0 |
| 1926 | else |
| 1927 | $as_echo "$as_me: failed program was:" >&5 |
| 1928 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1929 | |
| 1930 | ac_retval=1 |
| 1931 | fi |
| 1932 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information |
| 1933 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would |
| 1934 | # interfere with the next link command; also delete a directory that is |
| 1935 | # left behind by Apple's compiler. We do this before executing the actions. |
| 1936 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
| 1937 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 1938 | as_fn_set_status $ac_retval |
| 1939 | |
| 1940 | } # ac_fn_c_try_link |
| 1941 | |
| 1942 | # ac_fn_c_check_func LINENO FUNC VAR |
| 1943 | # ---------------------------------- |
| 1944 | # Tests whether FUNC exists, setting the cache variable VAR accordingly |
| 1945 | ac_fn_c_check_func () |
| 1946 | { |
| 1947 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1948 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 1949 | $as_echo_n "checking for $2... " >&6; } |
| 1950 | if eval \${$3+:} false; then : |
| 1951 | $as_echo_n "(cached) " >&6 |
| 1952 | else |
| 1953 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1954 | /* end confdefs.h. */ |
| 1955 | /* Define $2 to an innocuous variant, in case <limits.h> declares $2. |
| 1956 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 1957 | #define $2 innocuous_$2 |
| 1958 | |
| 1959 | /* System header to define __stub macros and hopefully few prototypes, |
| 1960 | which can conflict with char $2 (); below. |
| 1961 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 1962 | <limits.h> exists even on freestanding compilers. */ |
| 1963 | |
| 1964 | #ifdef __STDC__ |
| 1965 | # include <limits.h> |
| 1966 | #else |
| 1967 | # include <assert.h> |
| 1968 | #endif |
| 1969 | |
| 1970 | #undef $2 |
| 1971 | |
| 1972 | /* Override any GCC internal prototype to avoid an error. |
| 1973 | Use char because int might match the return type of a GCC |
| 1974 | builtin and then its argument prototype would still apply. */ |
| 1975 | #ifdef __cplusplus |
| 1976 | extern "C" |
| 1977 | #endif |
| 1978 | char $2 (); |
| 1979 | /* The GNU C library defines this for functions which it implements |
| 1980 | to always fail with ENOSYS. Some functions are actually named |
| 1981 | something starting with __ and the normal name is an alias. */ |
| 1982 | #if defined __stub_$2 || defined __stub___$2 |
| 1983 | choke me |
| 1984 | #endif |
| 1985 | |
| 1986 | int |
| 1987 | main () |
| 1988 | { |
| 1989 | return $2 (); |
| 1990 | ; |
| 1991 | return 0; |
| 1992 | } |
| 1993 | _ACEOF |
| 1994 | if ac_fn_c_try_link "$LINENO"; then : |
| 1995 | eval "$3=yes" |
| 1996 | else |
| 1997 | eval "$3=no" |
| 1998 | fi |
| 1999 | rm -f core conftest.err conftest.$ac_objext \ |
| 2000 | conftest$ac_exeext conftest.$ac_ext |
| 2001 | fi |
| 2002 | eval ac_res=\$$3 |
| 2003 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 2004 | $as_echo "$ac_res" >&6; } |
| 2005 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 2006 | |
| 2007 | } # ac_fn_c_check_func |
| 2008 | cat >config.log <<_ACEOF |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2009 | This file contains any messages produced by compilers while |
| 2010 | running configure, to aid debugging if configure makes a mistake. |
| 2011 | |
jfigus | d196e02 | 2014-11-20 16:43:44 -0500 | [diff] [blame] | 2012 | It was created by libsrtp2 $as_me 2.0.0-pre, which was |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2013 | generated by GNU Autoconf 2.69. Invocation command line was |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2014 | |
| 2015 | $ $0 $@ |
| 2016 | |
| 2017 | _ACEOF |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2018 | exec 5>>config.log |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2019 | { |
| 2020 | cat <<_ASUNAME |
| 2021 | ## --------- ## |
| 2022 | ## Platform. ## |
| 2023 | ## --------- ## |
| 2024 | |
| 2025 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 2026 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
| 2027 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
| 2028 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
| 2029 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
| 2030 | |
| 2031 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
| 2032 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
| 2033 | |
| 2034 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
| 2035 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
| 2036 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2037 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2038 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
| 2039 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
| 2040 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
| 2041 | |
| 2042 | _ASUNAME |
| 2043 | |
| 2044 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2045 | for as_dir in $PATH |
| 2046 | do |
| 2047 | IFS=$as_save_IFS |
| 2048 | test -z "$as_dir" && as_dir=. |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2049 | $as_echo "PATH: $as_dir" |
| 2050 | done |
| 2051 | IFS=$as_save_IFS |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2052 | |
| 2053 | } >&5 |
| 2054 | |
| 2055 | cat >&5 <<_ACEOF |
| 2056 | |
| 2057 | |
| 2058 | ## ----------- ## |
| 2059 | ## Core tests. ## |
| 2060 | ## ----------- ## |
| 2061 | |
| 2062 | _ACEOF |
| 2063 | |
| 2064 | |
| 2065 | # Keep a trace of the command line. |
| 2066 | # Strip out --no-create and --no-recursion so they do not pile up. |
| 2067 | # Strip out --silent because we don't want to record it for future runs. |
| 2068 | # Also quote any args containing shell meta-characters. |
| 2069 | # Make two passes to allow for proper duplicate-argument suppression. |
| 2070 | ac_configure_args= |
| 2071 | ac_configure_args0= |
| 2072 | ac_configure_args1= |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2073 | ac_must_keep_next=false |
| 2074 | for ac_pass in 1 2 |
| 2075 | do |
| 2076 | for ac_arg |
| 2077 | do |
| 2078 | case $ac_arg in |
| 2079 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
| 2080 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 2081 | | -silent | --silent | --silen | --sile | --sil) |
| 2082 | continue ;; |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2083 | *\'*) |
| 2084 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2085 | esac |
| 2086 | case $ac_pass in |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2087 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2088 | 2) |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2089 | as_fn_append ac_configure_args1 " '$ac_arg'" |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2090 | if test $ac_must_keep_next = true; then |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame] | 2091 | ac_must_keep_next=false # Got value, back to normal. |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2092 | else |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame] | 2093 | case $ac_arg in |
| 2094 | *=* | --config-cache | -C | -disable-* | --disable-* \ |
| 2095 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
| 2096 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
| 2097 | | -with-* | --with-* | -without-* | --without-* | --x) |
| 2098 | case "$ac_configure_args0 " in |
| 2099 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
| 2100 | esac |
| 2101 | ;; |
| 2102 | -* ) ac_must_keep_next=true ;; |
| 2103 | esac |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2104 | fi |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2105 | as_fn_append ac_configure_args " '$ac_arg'" |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2106 | ;; |
| 2107 | esac |
| 2108 | done |
| 2109 | done |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2110 | { ac_configure_args0=; unset ac_configure_args0;} |
| 2111 | { ac_configure_args1=; unset ac_configure_args1;} |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2112 | |
| 2113 | # When interrupted or exit'd, cleanup temporary files, and complete |
| 2114 | # config.log. We remove comments because anyway the quotes in there |
| 2115 | # would cause problems or look ugly. |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2116 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
| 2117 | # 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] | 2118 | trap 'exit_status=$? |
| 2119 | # Save into config.log some information that might help in debugging. |
| 2120 | { |
| 2121 | echo |
| 2122 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2123 | $as_echo "## ---------------- ## |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2124 | ## Cache variables. ## |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2125 | ## ---------------- ##" |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2126 | echo |
| 2127 | # The following way of writing the cache mishandles newlines in values, |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2128 | ( |
| 2129 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do |
| 2130 | eval ac_val=\$$ac_var |
| 2131 | case $ac_val in #( |
| 2132 | *${as_nl}*) |
| 2133 | case $ac_var in #( |
| 2134 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
| 2135 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
| 2136 | esac |
| 2137 | case $ac_var in #( |
| 2138 | _ | IFS | as_nl) ;; #( |
| 2139 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
| 2140 | *) { eval $ac_var=; unset $ac_var;} ;; |
| 2141 | esac ;; |
| 2142 | esac |
| 2143 | done |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2144 | (set) 2>&1 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2145 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
| 2146 | *${as_nl}ac_space=\ *) |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2147 | sed -n \ |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2148 | "s/'\''/'\''\\\\'\'''\''/g; |
| 2149 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" |
| 2150 | ;; #( |
Cullen Jennings | 52c5cd3 | 2013-05-01 18:07:29 -0600 | [diff] [blame] | 2151 | *) |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2152 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
Cullen Jennings | 52c5cd3 | 2013-05-01 18:07:29 -0600 | [diff] [blame] | 2153 | ;; |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2154 | esac | |
| 2155 | sort |
| 2156 | ) |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2157 | echo |
| 2158 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2159 | $as_echo "## ----------------- ## |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2160 | ## Output variables. ## |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2161 | ## ----------------- ##" |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2162 | echo |
| 2163 | for ac_var in $ac_subst_vars |
| 2164 | do |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2165 | eval ac_val=\$$ac_var |
| 2166 | case $ac_val in |
| 2167 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
| 2168 | esac |
| 2169 | $as_echo "$ac_var='\''$ac_val'\''" |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2170 | done | sort |
| 2171 | echo |
| 2172 | |
| 2173 | if test -n "$ac_subst_files"; then |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2174 | $as_echo "## ------------------- ## |
| 2175 | ## File substitutions. ## |
| 2176 | ## ------------------- ##" |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2177 | echo |
| 2178 | for ac_var in $ac_subst_files |
| 2179 | do |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2180 | eval ac_val=\$$ac_var |
| 2181 | case $ac_val in |
| 2182 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
| 2183 | esac |
| 2184 | $as_echo "$ac_var='\''$ac_val'\''" |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2185 | done | sort |
| 2186 | echo |
| 2187 | fi |
| 2188 | |
| 2189 | if test -s confdefs.h; then |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2190 | $as_echo "## ----------- ## |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2191 | ## confdefs.h. ## |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2192 | ## ----------- ##" |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2193 | echo |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2194 | cat confdefs.h |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2195 | echo |
| 2196 | fi |
| 2197 | test "$ac_signal" != 0 && |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2198 | $as_echo "$as_me: caught signal $ac_signal" |
| 2199 | $as_echo "$as_me: exit $exit_status" |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2200 | } >&5 |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2201 | rm -f core *.core core.conftest.* && |
| 2202 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2203 | exit $exit_status |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2204 | ' 0 |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2205 | for ac_signal in 1 2 13 15; do |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2206 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2207 | done |
| 2208 | ac_signal=0 |
| 2209 | |
| 2210 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2211 | rm -f -r conftest* confdefs.h |
| 2212 | |
| 2213 | $as_echo "/* confdefs.h */" > confdefs.h |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2214 | |
| 2215 | # Predefined preprocessor variables. |
| 2216 | |
| 2217 | cat >>confdefs.h <<_ACEOF |
| 2218 | #define PACKAGE_NAME "$PACKAGE_NAME" |
| 2219 | _ACEOF |
| 2220 | |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2221 | cat >>confdefs.h <<_ACEOF |
| 2222 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
| 2223 | _ACEOF |
| 2224 | |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2225 | cat >>confdefs.h <<_ACEOF |
| 2226 | #define PACKAGE_VERSION "$PACKAGE_VERSION" |
| 2227 | _ACEOF |
| 2228 | |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2229 | cat >>confdefs.h <<_ACEOF |
| 2230 | #define PACKAGE_STRING "$PACKAGE_STRING" |
| 2231 | _ACEOF |
| 2232 | |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2233 | cat >>confdefs.h <<_ACEOF |
| 2234 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
| 2235 | _ACEOF |
| 2236 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2237 | cat >>confdefs.h <<_ACEOF |
| 2238 | #define PACKAGE_URL "$PACKAGE_URL" |
| 2239 | _ACEOF |
| 2240 | |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2241 | |
| 2242 | # Let the site file select an alternate cache file if it wants to. |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2243 | # Prefer an explicitly selected file to automatically selected ones. |
| 2244 | ac_site_file1=NONE |
| 2245 | ac_site_file2=NONE |
| 2246 | if test -n "$CONFIG_SITE"; then |
| 2247 | # We do not want a PATH search for config.site. |
| 2248 | case $CONFIG_SITE in #(( |
| 2249 | -*) ac_site_file1=./$CONFIG_SITE;; |
| 2250 | */*) ac_site_file1=$CONFIG_SITE;; |
| 2251 | *) ac_site_file1=./$CONFIG_SITE;; |
| 2252 | esac |
| 2253 | elif test "x$prefix" != xNONE; then |
| 2254 | ac_site_file1=$prefix/share/config.site |
| 2255 | ac_site_file2=$prefix/etc/config.site |
| 2256 | else |
| 2257 | ac_site_file1=$ac_default_prefix/share/config.site |
| 2258 | ac_site_file2=$ac_default_prefix/etc/config.site |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2259 | fi |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2260 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" |
| 2261 | do |
| 2262 | test "x$ac_site_file" = xNONE && continue |
| 2263 | if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then |
| 2264 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 |
| 2265 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2266 | sed 's/^/| /' "$ac_site_file" >&5 |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2267 | . "$ac_site_file" \ |
| 2268 | || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 2269 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 2270 | as_fn_error $? "failed to load site script $ac_site_file |
| 2271 | See \`config.log' for more details" "$LINENO" 5; } |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2272 | fi |
| 2273 | done |
| 2274 | |
| 2275 | if test -r "$cache_file"; then |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2276 | # Some versions of bash will fail to source /dev/null (special files |
| 2277 | # actually), so we avoid doing that. DJGPP emulates it as a regular file. |
| 2278 | if test /dev/null != "$cache_file" && test -f "$cache_file"; then |
| 2279 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 |
| 2280 | $as_echo "$as_me: loading cache $cache_file" >&6;} |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2281 | case $cache_file in |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2282 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
| 2283 | *) . "./$cache_file";; |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2284 | esac |
| 2285 | fi |
| 2286 | else |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2287 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 |
| 2288 | $as_echo "$as_me: creating cache $cache_file" >&6;} |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2289 | >$cache_file |
| 2290 | fi |
| 2291 | |
| 2292 | # Check that the precious variables saved in the cache have kept the same |
| 2293 | # value. |
| 2294 | ac_cache_corrupted=false |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2295 | for ac_var in $ac_precious_vars; do |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2296 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
| 2297 | eval ac_new_set=\$ac_env_${ac_var}_set |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2298 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
| 2299 | eval ac_new_val=\$ac_env_${ac_var}_value |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2300 | case $ac_old_set,$ac_new_set in |
| 2301 | set,) |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2302 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
| 2303 | $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] | 2304 | ac_cache_corrupted=: ;; |
| 2305 | ,set) |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2306 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 |
| 2307 | $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] | 2308 | ac_cache_corrupted=: ;; |
| 2309 | ,);; |
| 2310 | *) |
| 2311 | if test "x$ac_old_val" != "x$ac_new_val"; then |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2312 | # differences in whitespace do not lead to failure. |
| 2313 | ac_old_val_w=`echo x $ac_old_val` |
| 2314 | ac_new_val_w=`echo x $ac_new_val` |
| 2315 | if test "$ac_old_val_w" != "$ac_new_val_w"; then |
| 2316 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 |
| 2317 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
| 2318 | ac_cache_corrupted=: |
| 2319 | else |
| 2320 | { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 |
| 2321 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} |
| 2322 | eval $ac_var=\$ac_old_val |
| 2323 | fi |
| 2324 | { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 |
| 2325 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} |
| 2326 | { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 |
| 2327 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2328 | fi;; |
| 2329 | esac |
| 2330 | # Pass precious variables to config.status. |
| 2331 | if test "$ac_new_set" = set; then |
| 2332 | case $ac_new_val in |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2333 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2334 | *) ac_arg=$ac_var=$ac_new_val ;; |
| 2335 | esac |
| 2336 | case " $ac_configure_args " in |
| 2337 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2338 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2339 | esac |
| 2340 | fi |
| 2341 | done |
| 2342 | if $ac_cache_corrupted; then |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2343 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 2344 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 2345 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 |
| 2346 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
| 2347 | 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] | 2348 | fi |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2349 | ## -------------------- ## |
| 2350 | ## Main body of script. ## |
| 2351 | ## -------------------- ## |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2352 | |
| 2353 | ac_ext=c |
| 2354 | ac_cpp='$CPP $CPPFLAGS' |
| 2355 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2356 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2357 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2358 | |
| 2359 | |
| 2360 | |
David McGrew | b67061f | 2005-09-28 14:23:06 +0000 | [diff] [blame] | 2361 | if test -z "$CFLAGS"; then |
Sean Bright | bfb9e30 | 2014-03-24 20:45:17 -0400 | [diff] [blame] | 2362 | CFLAGS="-fPIC -Wall -O4 -fexpensive-optimizations -funroll-loops" |
David McGrew | b67061f | 2005-09-28 14:23:06 +0000 | [diff] [blame] | 2363 | fi |
| 2364 | |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2365 | if test -n "$ac_tool_prefix"; then |
| 2366 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
| 2367 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2368 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 2369 | $as_echo_n "checking for $ac_word... " >&6; } |
| 2370 | if ${ac_cv_prog_RANLIB+:} false; then : |
| 2371 | $as_echo_n "(cached) " >&6 |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2372 | else |
| 2373 | if test -n "$RANLIB"; then |
| 2374 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 2375 | else |
| 2376 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2377 | for as_dir in $PATH |
| 2378 | do |
| 2379 | IFS=$as_save_IFS |
| 2380 | test -z "$as_dir" && as_dir=. |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2381 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2382 | 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] | 2383 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2384 | $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] | 2385 | break 2 |
| 2386 | fi |
| 2387 | done |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2388 | done |
| 2389 | IFS=$as_save_IFS |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2390 | |
| 2391 | fi |
| 2392 | fi |
| 2393 | RANLIB=$ac_cv_prog_RANLIB |
| 2394 | if test -n "$RANLIB"; then |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2395 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 |
| 2396 | $as_echo "$RANLIB" >&6; } |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2397 | else |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2398 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 2399 | $as_echo "no" >&6; } |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2400 | fi |
| 2401 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2402 | |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2403 | fi |
| 2404 | if test -z "$ac_cv_prog_RANLIB"; then |
| 2405 | ac_ct_RANLIB=$RANLIB |
| 2406 | # Extract the first word of "ranlib", so it can be a program name with args. |
| 2407 | set dummy ranlib; ac_word=$2 |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2408 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 2409 | $as_echo_n "checking for $ac_word... " >&6; } |
| 2410 | if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : |
| 2411 | $as_echo_n "(cached) " >&6 |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2412 | else |
| 2413 | if test -n "$ac_ct_RANLIB"; then |
| 2414 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
| 2415 | else |
| 2416 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2417 | for as_dir in $PATH |
| 2418 | do |
| 2419 | IFS=$as_save_IFS |
| 2420 | test -z "$as_dir" && as_dir=. |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2421 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2422 | 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] | 2423 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2424 | $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] | 2425 | break 2 |
| 2426 | fi |
| 2427 | done |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2428 | done |
| 2429 | IFS=$as_save_IFS |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2430 | |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2431 | fi |
| 2432 | fi |
| 2433 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
| 2434 | if test -n "$ac_ct_RANLIB"; then |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2435 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 |
| 2436 | $as_echo "$ac_ct_RANLIB" >&6; } |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2437 | else |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2438 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 2439 | $as_echo "no" >&6; } |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2440 | fi |
| 2441 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2442 | if test "x$ac_ct_RANLIB" = x; then |
| 2443 | RANLIB=":" |
| 2444 | else |
| 2445 | case $cross_compiling:$ac_tool_warned in |
| 2446 | yes:) |
| 2447 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 2448 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 2449 | ac_tool_warned=yes ;; |
| 2450 | esac |
| 2451 | RANLIB=$ac_ct_RANLIB |
| 2452 | fi |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2453 | else |
| 2454 | RANLIB="$ac_cv_prog_RANLIB" |
| 2455 | fi |
| 2456 | |
| 2457 | ac_ext=c |
| 2458 | ac_cpp='$CPP $CPPFLAGS' |
| 2459 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2460 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2461 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2462 | if test -n "$ac_tool_prefix"; then |
| 2463 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
| 2464 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2465 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 2466 | $as_echo_n "checking for $ac_word... " >&6; } |
| 2467 | if ${ac_cv_prog_CC+:} false; then : |
| 2468 | $as_echo_n "(cached) " >&6 |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2469 | else |
| 2470 | if test -n "$CC"; then |
| 2471 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2472 | else |
| 2473 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2474 | for as_dir in $PATH |
| 2475 | do |
| 2476 | IFS=$as_save_IFS |
| 2477 | test -z "$as_dir" && as_dir=. |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2478 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2479 | 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] | 2480 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2481 | $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] | 2482 | break 2 |
| 2483 | fi |
| 2484 | done |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2485 | done |
| 2486 | IFS=$as_save_IFS |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2487 | |
| 2488 | fi |
| 2489 | fi |
| 2490 | CC=$ac_cv_prog_CC |
| 2491 | if test -n "$CC"; then |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2492 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 2493 | $as_echo "$CC" >&6; } |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2494 | else |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2495 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 2496 | $as_echo "no" >&6; } |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2497 | fi |
| 2498 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2499 | |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2500 | fi |
| 2501 | if test -z "$ac_cv_prog_CC"; then |
| 2502 | ac_ct_CC=$CC |
| 2503 | # Extract the first word of "gcc", so it can be a program name with args. |
| 2504 | set dummy gcc; ac_word=$2 |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2505 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 2506 | $as_echo_n "checking for $ac_word... " >&6; } |
| 2507 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
| 2508 | $as_echo_n "(cached) " >&6 |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2509 | else |
| 2510 | if test -n "$ac_ct_CC"; then |
| 2511 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 2512 | else |
| 2513 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2514 | for as_dir in $PATH |
| 2515 | do |
| 2516 | IFS=$as_save_IFS |
| 2517 | test -z "$as_dir" && as_dir=. |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2518 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2519 | 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] | 2520 | ac_cv_prog_ac_ct_CC="gcc" |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2521 | $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] | 2522 | break 2 |
| 2523 | fi |
| 2524 | done |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2525 | done |
| 2526 | IFS=$as_save_IFS |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2527 | |
| 2528 | fi |
| 2529 | fi |
| 2530 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 2531 | if test -n "$ac_ct_CC"; then |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2532 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
| 2533 | $as_echo "$ac_ct_CC" >&6; } |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2534 | else |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2535 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 2536 | $as_echo "no" >&6; } |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2537 | fi |
| 2538 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2539 | if test "x$ac_ct_CC" = x; then |
| 2540 | CC="" |
| 2541 | else |
| 2542 | case $cross_compiling:$ac_tool_warned in |
| 2543 | yes:) |
| 2544 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 2545 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 2546 | ac_tool_warned=yes ;; |
| 2547 | esac |
| 2548 | CC=$ac_ct_CC |
| 2549 | fi |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2550 | else |
| 2551 | CC="$ac_cv_prog_CC" |
| 2552 | fi |
| 2553 | |
| 2554 | if test -z "$CC"; then |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2555 | if test -n "$ac_tool_prefix"; then |
| 2556 | # 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] | 2557 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2558 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 2559 | $as_echo_n "checking for $ac_word... " >&6; } |
| 2560 | if ${ac_cv_prog_CC+:} false; then : |
| 2561 | $as_echo_n "(cached) " >&6 |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2562 | else |
| 2563 | if test -n "$CC"; then |
| 2564 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2565 | else |
| 2566 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2567 | for as_dir in $PATH |
| 2568 | do |
| 2569 | IFS=$as_save_IFS |
| 2570 | test -z "$as_dir" && as_dir=. |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2571 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2572 | 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] | 2573 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2574 | $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] | 2575 | break 2 |
| 2576 | fi |
| 2577 | done |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2578 | done |
| 2579 | IFS=$as_save_IFS |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2580 | |
| 2581 | fi |
| 2582 | fi |
| 2583 | CC=$ac_cv_prog_CC |
| 2584 | if test -n "$CC"; then |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2585 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 2586 | $as_echo "$CC" >&6; } |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2587 | else |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2588 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 2589 | $as_echo "no" >&6; } |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2590 | fi |
| 2591 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2592 | |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2593 | fi |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2594 | fi |
| 2595 | if test -z "$CC"; then |
| 2596 | # Extract the first word of "cc", so it can be a program name with args. |
| 2597 | set dummy cc; ac_word=$2 |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2598 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 2599 | $as_echo_n "checking for $ac_word... " >&6; } |
| 2600 | if ${ac_cv_prog_CC+:} false; then : |
| 2601 | $as_echo_n "(cached) " >&6 |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2602 | else |
| 2603 | if test -n "$CC"; then |
| 2604 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2605 | else |
| 2606 | ac_prog_rejected=no |
| 2607 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2608 | for as_dir in $PATH |
| 2609 | do |
| 2610 | IFS=$as_save_IFS |
| 2611 | test -z "$as_dir" && as_dir=. |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2612 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2613 | 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] | 2614 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
| 2615 | ac_prog_rejected=yes |
| 2616 | continue |
| 2617 | fi |
| 2618 | ac_cv_prog_CC="cc" |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2619 | $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] | 2620 | break 2 |
| 2621 | fi |
| 2622 | done |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2623 | done |
| 2624 | IFS=$as_save_IFS |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2625 | |
| 2626 | if test $ac_prog_rejected = yes; then |
| 2627 | # We found a bogon in the path, so make sure we never use it. |
| 2628 | set dummy $ac_cv_prog_CC |
| 2629 | shift |
| 2630 | if test $# != 0; then |
| 2631 | # We chose a different compiler from the bogus one. |
| 2632 | # However, it has the same basename, so the bogon will be chosen |
| 2633 | # first if we set CC to just the basename; use the full file name. |
| 2634 | shift |
| 2635 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
| 2636 | fi |
| 2637 | fi |
| 2638 | fi |
| 2639 | fi |
| 2640 | CC=$ac_cv_prog_CC |
| 2641 | if test -n "$CC"; then |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2642 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 2643 | $as_echo "$CC" >&6; } |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2644 | else |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2645 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 2646 | $as_echo "no" >&6; } |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2647 | fi |
| 2648 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2649 | |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2650 | fi |
| 2651 | if test -z "$CC"; then |
| 2652 | if test -n "$ac_tool_prefix"; then |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2653 | for ac_prog in cl.exe |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2654 | do |
| 2655 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 2656 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2657 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 2658 | $as_echo_n "checking for $ac_word... " >&6; } |
| 2659 | if ${ac_cv_prog_CC+:} false; then : |
| 2660 | $as_echo_n "(cached) " >&6 |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2661 | else |
| 2662 | if test -n "$CC"; then |
| 2663 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2664 | else |
| 2665 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2666 | for as_dir in $PATH |
| 2667 | do |
| 2668 | IFS=$as_save_IFS |
| 2669 | test -z "$as_dir" && as_dir=. |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2670 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2671 | 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] | 2672 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2673 | $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] | 2674 | break 2 |
| 2675 | fi |
| 2676 | done |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2677 | done |
| 2678 | IFS=$as_save_IFS |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2679 | |
| 2680 | fi |
| 2681 | fi |
| 2682 | CC=$ac_cv_prog_CC |
| 2683 | if test -n "$CC"; then |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2684 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 2685 | $as_echo "$CC" >&6; } |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2686 | else |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2687 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 2688 | $as_echo "no" >&6; } |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2689 | fi |
| 2690 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2691 | |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2692 | test -n "$CC" && break |
| 2693 | done |
| 2694 | fi |
| 2695 | if test -z "$CC"; then |
| 2696 | ac_ct_CC=$CC |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2697 | for ac_prog in cl.exe |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2698 | do |
| 2699 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 2700 | set dummy $ac_prog; ac_word=$2 |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2701 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 2702 | $as_echo_n "checking for $ac_word... " >&6; } |
| 2703 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
| 2704 | $as_echo_n "(cached) " >&6 |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2705 | else |
| 2706 | if test -n "$ac_ct_CC"; then |
| 2707 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 2708 | else |
| 2709 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2710 | for as_dir in $PATH |
| 2711 | do |
| 2712 | IFS=$as_save_IFS |
| 2713 | test -z "$as_dir" && as_dir=. |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2714 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2715 | 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] | 2716 | ac_cv_prog_ac_ct_CC="$ac_prog" |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2717 | $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] | 2718 | break 2 |
| 2719 | fi |
| 2720 | done |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2721 | done |
| 2722 | IFS=$as_save_IFS |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2723 | |
| 2724 | fi |
| 2725 | fi |
| 2726 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 2727 | if test -n "$ac_ct_CC"; then |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2728 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
| 2729 | $as_echo "$ac_ct_CC" >&6; } |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2730 | else |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2731 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 2732 | $as_echo "no" >&6; } |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2733 | fi |
| 2734 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2735 | |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2736 | test -n "$ac_ct_CC" && break |
| 2737 | done |
| 2738 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2739 | if test "x$ac_ct_CC" = x; then |
| 2740 | CC="" |
| 2741 | else |
| 2742 | case $cross_compiling:$ac_tool_warned in |
| 2743 | yes:) |
| 2744 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 2745 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 2746 | ac_tool_warned=yes ;; |
| 2747 | esac |
| 2748 | CC=$ac_ct_CC |
| 2749 | fi |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2750 | fi |
| 2751 | |
| 2752 | fi |
| 2753 | |
| 2754 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2755 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 2756 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 2757 | as_fn_error $? "no acceptable C compiler found in \$PATH |
| 2758 | See \`config.log' for more details" "$LINENO" 5; } |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2759 | |
| 2760 | # Provide some information about the compiler. |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2761 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 |
| 2762 | set X $ac_compile |
| 2763 | ac_compiler=$2 |
| 2764 | for ac_option in --version -v -V -qversion; do |
| 2765 | { { ac_try="$ac_compiler $ac_option >&5" |
| 2766 | case "(($ac_try" in |
| 2767 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2768 | *) ac_try_echo=$ac_try;; |
| 2769 | esac |
| 2770 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 2771 | $as_echo "$ac_try_echo"; } >&5 |
| 2772 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2773 | ac_status=$? |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2774 | if test -s conftest.err; then |
| 2775 | sed '10a\ |
| 2776 | ... rest of stderr output deleted ... |
| 2777 | 10q' conftest.err >conftest.er1 |
| 2778 | cat conftest.er1 >&5 |
| 2779 | fi |
| 2780 | rm -f conftest.er1 conftest.err |
| 2781 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 2782 | test $ac_status = 0; } |
| 2783 | done |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2784 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2785 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2786 | /* end confdefs.h. */ |
| 2787 | |
| 2788 | int |
| 2789 | main () |
| 2790 | { |
| 2791 | |
| 2792 | ; |
| 2793 | return 0; |
| 2794 | } |
| 2795 | _ACEOF |
| 2796 | ac_clean_files_save=$ac_clean_files |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2797 | 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] | 2798 | # Try to create an executable without -o first, disregard a.out. |
| 2799 | # It will help us diagnose broken compilers, and finding out an intuition |
| 2800 | # of exeext. |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2801 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 |
| 2802 | $as_echo_n "checking whether the C compiler works... " >&6; } |
| 2803 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
Cullen Jennings | 52c5cd3 | 2013-05-01 18:07:29 -0600 | [diff] [blame] | 2804 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2805 | # The possible output files: |
| 2806 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" |
| 2807 | |
| 2808 | ac_rmfiles= |
| 2809 | for ac_file in $ac_files |
| 2810 | do |
| 2811 | case $ac_file in |
| 2812 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
| 2813 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; |
| 2814 | esac |
| 2815 | done |
| 2816 | rm -f $ac_rmfiles |
| 2817 | |
| 2818 | if { { ac_try="$ac_link_default" |
| 2819 | case "(($ac_try" in |
| 2820 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2821 | *) ac_try_echo=$ac_try;; |
| 2822 | esac |
| 2823 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 2824 | $as_echo "$ac_try_echo"; } >&5 |
| 2825 | (eval "$ac_link_default") 2>&5 |
| 2826 | ac_status=$? |
| 2827 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 2828 | test $ac_status = 0; }; then : |
| 2829 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
| 2830 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' |
| 2831 | # in a Makefile. We should not override ac_cv_exeext if it was cached, |
| 2832 | # so that the user can short-circuit this test for compilers unknown to |
| 2833 | # Autoconf. |
| 2834 | for ac_file in $ac_files '' |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2835 | do |
| 2836 | test -f "$ac_file" || continue |
| 2837 | case $ac_file in |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2838 | *.$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] | 2839 | ;; |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2840 | [ab].out ) |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame] | 2841 | # We found the default executable, but exeext='' is most |
| 2842 | # certainly right. |
| 2843 | break;; |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2844 | *.* ) |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2845 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
| 2846 | then :; else |
| 2847 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 2848 | fi |
| 2849 | # We set ac_cv_exeext here because the later test for it is not |
| 2850 | # safe: cross compilers may not add the suffix if given an `-o' |
| 2851 | # argument, so we may need to know it at that point already. |
| 2852 | # Even if this section looks crufty: it has the advantage of |
| 2853 | # actually working. |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame] | 2854 | break;; |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2855 | * ) |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame] | 2856 | break;; |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2857 | esac |
| 2858 | done |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2859 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
| 2860 | |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2861 | else |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2862 | ac_file='' |
| 2863 | fi |
| 2864 | if test -z "$ac_file"; then : |
| 2865 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 2866 | $as_echo "no" >&6; } |
| 2867 | $as_echo "$as_me: failed program was:" >&5 |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2868 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2869 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2870 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 2871 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 2872 | as_fn_error 77 "C compiler cannot create executables |
| 2873 | See \`config.log' for more details" "$LINENO" 5; } |
| 2874 | else |
| 2875 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 2876 | $as_echo "yes" >&6; } |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2877 | fi |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2878 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 |
| 2879 | $as_echo_n "checking for C compiler default output file name... " >&6; } |
| 2880 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 |
| 2881 | $as_echo "$ac_file" >&6; } |
Cullen Jennings | 52c5cd3 | 2013-05-01 18:07:29 -0600 | [diff] [blame] | 2882 | ac_exeext=$ac_cv_exeext |
Cullen Jennings | 52c5cd3 | 2013-05-01 18:07:29 -0600 | [diff] [blame] | 2883 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2884 | 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] | 2885 | ac_clean_files=$ac_clean_files_save |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2886 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 |
| 2887 | $as_echo_n "checking for suffix of executables... " >&6; } |
| 2888 | if { { ac_try="$ac_link" |
| 2889 | case "(($ac_try" in |
| 2890 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2891 | *) ac_try_echo=$ac_try;; |
| 2892 | esac |
| 2893 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 2894 | $as_echo "$ac_try_echo"; } >&5 |
| 2895 | (eval "$ac_link") 2>&5 |
Cullen Jennings | 52c5cd3 | 2013-05-01 18:07:29 -0600 | [diff] [blame] | 2896 | ac_status=$? |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2897 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 2898 | test $ac_status = 0; }; then : |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2899 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
| 2900 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
| 2901 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
| 2902 | # `rm'. |
| 2903 | for ac_file in conftest.exe conftest conftest.*; do |
| 2904 | test -f "$ac_file" || continue |
| 2905 | case $ac_file in |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2906 | *.$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] | 2907 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame] | 2908 | break;; |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2909 | * ) break;; |
| 2910 | esac |
| 2911 | done |
| 2912 | else |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2913 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 2914 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 2915 | as_fn_error $? "cannot compute suffix of executables: cannot compile and link |
| 2916 | See \`config.log' for more details" "$LINENO" 5; } |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2917 | fi |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2918 | rm -f conftest conftest$ac_cv_exeext |
| 2919 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 |
| 2920 | $as_echo "$ac_cv_exeext" >&6; } |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2921 | |
| 2922 | rm -f conftest.$ac_ext |
| 2923 | EXEEXT=$ac_cv_exeext |
| 2924 | ac_exeext=$EXEEXT |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2925 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2926 | /* end confdefs.h. */ |
| 2927 | #include <stdio.h> |
| 2928 | int |
| 2929 | main () |
| 2930 | { |
| 2931 | FILE *f = fopen ("conftest.out", "w"); |
| 2932 | return ferror (f) || fclose (f) != 0; |
| 2933 | |
| 2934 | ; |
| 2935 | return 0; |
| 2936 | } |
Cullen Jennings | 52c5cd3 | 2013-05-01 18:07:29 -0600 | [diff] [blame] | 2937 | _ACEOF |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2938 | ac_clean_files="$ac_clean_files conftest.out" |
| 2939 | # Check that the compiler produces executables we can run. If not, either |
| 2940 | # the compiler is broken, or we cross compile. |
| 2941 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 |
| 2942 | $as_echo_n "checking whether we are cross compiling... " >&6; } |
| 2943 | if test "$cross_compiling" != yes; then |
| 2944 | { { ac_try="$ac_link" |
| 2945 | case "(($ac_try" in |
| 2946 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2947 | *) ac_try_echo=$ac_try;; |
| 2948 | esac |
| 2949 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 2950 | $as_echo "$ac_try_echo"; } >&5 |
| 2951 | (eval "$ac_link") 2>&5 |
| 2952 | ac_status=$? |
| 2953 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 2954 | test $ac_status = 0; } |
| 2955 | if { ac_try='./conftest$ac_cv_exeext' |
| 2956 | { { case "(($ac_try" in |
| 2957 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2958 | *) ac_try_echo=$ac_try;; |
| 2959 | esac |
| 2960 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 2961 | $as_echo "$ac_try_echo"; } >&5 |
| 2962 | (eval "$ac_try") 2>&5 |
| 2963 | ac_status=$? |
| 2964 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 2965 | test $ac_status = 0; }; }; then |
| 2966 | cross_compiling=no |
| 2967 | else |
| 2968 | if test "$cross_compiling" = maybe; then |
| 2969 | cross_compiling=yes |
| 2970 | else |
| 2971 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 2972 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 2973 | as_fn_error $? "cannot run C compiled programs. |
| 2974 | If you meant to cross compile, use \`--host'. |
| 2975 | See \`config.log' for more details" "$LINENO" 5; } |
| 2976 | fi |
| 2977 | fi |
| 2978 | fi |
| 2979 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 |
| 2980 | $as_echo "$cross_compiling" >&6; } |
| 2981 | |
| 2982 | rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out |
| 2983 | ac_clean_files=$ac_clean_files_save |
| 2984 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 |
| 2985 | $as_echo_n "checking for suffix of object files... " >&6; } |
| 2986 | if ${ac_cv_objext+:} false; then : |
| 2987 | $as_echo_n "(cached) " >&6 |
| 2988 | else |
| 2989 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2990 | /* end confdefs.h. */ |
| 2991 | |
| 2992 | int |
| 2993 | main () |
| 2994 | { |
| 2995 | |
| 2996 | ; |
| 2997 | return 0; |
| 2998 | } |
| 2999 | _ACEOF |
| 3000 | rm -f conftest.o conftest.obj |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 3001 | if { { ac_try="$ac_compile" |
| 3002 | case "(($ac_try" in |
| 3003 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3004 | *) ac_try_echo=$ac_try;; |
| 3005 | esac |
| 3006 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3007 | $as_echo "$ac_try_echo"; } >&5 |
| 3008 | (eval "$ac_compile") 2>&5 |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 3009 | ac_status=$? |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 3010 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3011 | test $ac_status = 0; }; then : |
| 3012 | for ac_file in conftest.o conftest.obj conftest.*; do |
| 3013 | test -f "$ac_file" || continue; |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 3014 | case $ac_file in |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 3015 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 3016 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
| 3017 | break;; |
| 3018 | esac |
| 3019 | done |
| 3020 | else |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 3021 | $as_echo "$as_me: failed program was:" >&5 |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 3022 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3023 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 3024 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 3025 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 3026 | as_fn_error $? "cannot compute suffix of object files: cannot compile |
| 3027 | See \`config.log' for more details" "$LINENO" 5; } |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 3028 | fi |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 3029 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
| 3030 | fi |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 3031 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 |
| 3032 | $as_echo "$ac_cv_objext" >&6; } |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 3033 | OBJEXT=$ac_cv_objext |
| 3034 | ac_objext=$OBJEXT |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 3035 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 |
| 3036 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } |
| 3037 | if ${ac_cv_c_compiler_gnu+:} false; then : |
| 3038 | $as_echo_n "(cached) " >&6 |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 3039 | else |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 3040 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 3041 | /* end confdefs.h. */ |
| 3042 | |
| 3043 | int |
| 3044 | main () |
| 3045 | { |
| 3046 | #ifndef __GNUC__ |
| 3047 | choke me |
| 3048 | #endif |
| 3049 | |
| 3050 | ; |
| 3051 | return 0; |
| 3052 | } |
| 3053 | _ACEOF |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 3054 | if ac_fn_c_try_compile "$LINENO"; then : |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 3055 | ac_compiler_gnu=yes |
| 3056 | else |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 3057 | ac_compiler_gnu=no |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 3058 | fi |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 3059 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 3060 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
| 3061 | |
| 3062 | fi |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 3063 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
| 3064 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } |
| 3065 | if test $ac_compiler_gnu = yes; then |
| 3066 | GCC=yes |
| 3067 | else |
| 3068 | GCC= |
| 3069 | fi |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 3070 | ac_test_CFLAGS=${CFLAGS+set} |
| 3071 | ac_save_CFLAGS=$CFLAGS |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 3072 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 |
| 3073 | $as_echo_n "checking whether $CC accepts -g... " >&6; } |
| 3074 | if ${ac_cv_prog_cc_g+:} false; then : |
| 3075 | $as_echo_n "(cached) " >&6 |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 3076 | else |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 3077 | ac_save_c_werror_flag=$ac_c_werror_flag |
| 3078 | ac_c_werror_flag=yes |
| 3079 | ac_cv_prog_cc_g=no |
| 3080 | CFLAGS="-g" |
| 3081 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 3082 | /* end confdefs.h. */ |
| 3083 | |
| 3084 | int |
| 3085 | main () |
| 3086 | { |
| 3087 | |
| 3088 | ; |
| 3089 | return 0; |
| 3090 | } |
| 3091 | _ACEOF |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 3092 | if ac_fn_c_try_compile "$LINENO"; then : |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 3093 | ac_cv_prog_cc_g=yes |
| 3094 | else |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 3095 | CFLAGS="" |
| 3096 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3097 | /* end confdefs.h. */ |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 3098 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 3099 | int |
| 3100 | main () |
| 3101 | { |
| 3102 | |
| 3103 | ; |
| 3104 | return 0; |
| 3105 | } |
| 3106 | _ACEOF |
| 3107 | if ac_fn_c_try_compile "$LINENO"; then : |
| 3108 | |
| 3109 | else |
| 3110 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 3111 | CFLAGS="-g" |
| 3112 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3113 | /* end confdefs.h. */ |
| 3114 | |
| 3115 | int |
| 3116 | main () |
| 3117 | { |
| 3118 | |
| 3119 | ; |
| 3120 | return 0; |
| 3121 | } |
| 3122 | _ACEOF |
| 3123 | if ac_fn_c_try_compile "$LINENO"; then : |
| 3124 | ac_cv_prog_cc_g=yes |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 3125 | fi |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 3126 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 3127 | fi |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 3128 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3129 | fi |
| 3130 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3131 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 3132 | fi |
| 3133 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 |
| 3134 | $as_echo "$ac_cv_prog_cc_g" >&6; } |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 3135 | if test "$ac_test_CFLAGS" = set; then |
| 3136 | CFLAGS=$ac_save_CFLAGS |
| 3137 | elif test $ac_cv_prog_cc_g = yes; then |
| 3138 | if test "$GCC" = yes; then |
| 3139 | CFLAGS="-g -O2" |
| 3140 | else |
| 3141 | CFLAGS="-g" |
| 3142 | fi |
| 3143 | else |
| 3144 | if test "$GCC" = yes; then |
| 3145 | CFLAGS="-O2" |
| 3146 | else |
| 3147 | CFLAGS= |
| 3148 | fi |
| 3149 | fi |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 3150 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 |
| 3151 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } |
| 3152 | if ${ac_cv_prog_cc_c89+:} false; then : |
| 3153 | $as_echo_n "(cached) " >&6 |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 3154 | else |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 3155 | ac_cv_prog_cc_c89=no |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 3156 | ac_save_CC=$CC |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 3157 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 3158 | /* end confdefs.h. */ |
| 3159 | #include <stdarg.h> |
| 3160 | #include <stdio.h> |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 3161 | struct stat; |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 3162 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
| 3163 | struct buf { int x; }; |
| 3164 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
| 3165 | static char *e (p, i) |
| 3166 | char **p; |
| 3167 | int i; |
| 3168 | { |
| 3169 | return p[i]; |
| 3170 | } |
| 3171 | static char *f (char * (*g) (char **, int), char **p, ...) |
| 3172 | { |
| 3173 | char *s; |
| 3174 | va_list v; |
| 3175 | va_start (v,p); |
| 3176 | s = g (p, va_arg (v,int)); |
| 3177 | va_end (v); |
| 3178 | return s; |
| 3179 | } |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame] | 3180 | |
| 3181 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
| 3182 | function prototypes and stuff, but not '\xHH' hex character constants. |
| 3183 | These don't provoke an error unfortunately, instead are silently treated |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 3184 | 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] | 3185 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
| 3186 | 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] | 3187 | that's true only with -std. */ |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame] | 3188 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
| 3189 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 3190 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
| 3191 | inside strings and character constants. */ |
| 3192 | #define FOO(x) 'x' |
| 3193 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; |
| 3194 | |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 3195 | int test (int i, double x); |
| 3196 | struct s1 {int (*f) (int a);}; |
| 3197 | struct s2 {int (*f) (double a);}; |
| 3198 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
| 3199 | int argc; |
| 3200 | char **argv; |
| 3201 | int |
| 3202 | main () |
| 3203 | { |
| 3204 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
| 3205 | ; |
| 3206 | return 0; |
| 3207 | } |
| 3208 | _ACEOF |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 3209 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
| 3210 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 3211 | do |
| 3212 | CC="$ac_save_CC $ac_arg" |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 3213 | if ac_fn_c_try_compile "$LINENO"; then : |
| 3214 | ac_cv_prog_cc_c89=$ac_arg |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 3215 | fi |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 3216 | rm -f core conftest.err conftest.$ac_objext |
| 3217 | test "x$ac_cv_prog_cc_c89" != "xno" && break |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 3218 | done |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 3219 | rm -f conftest.$ac_ext |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 3220 | CC=$ac_save_CC |
| 3221 | |
| 3222 | fi |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 3223 | # AC_CACHE_VAL |
| 3224 | case "x$ac_cv_prog_cc_c89" in |
| 3225 | x) |
| 3226 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 |
| 3227 | $as_echo "none needed" >&6; } ;; |
| 3228 | xno) |
| 3229 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 |
| 3230 | $as_echo "unsupported" >&6; } ;; |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 3231 | *) |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 3232 | CC="$CC $ac_cv_prog_cc_c89" |
| 3233 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 |
| 3234 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 3235 | esac |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 3236 | if test "x$ac_cv_prog_cc_c89" != xno; then : |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 3237 | |
| 3238 | fi |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 3239 | |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 3240 | ac_ext=c |
| 3241 | ac_cpp='$CPP $CPPFLAGS' |
| 3242 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3243 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3244 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3245 | |
David McGrew | b67061f | 2005-09-28 14:23:06 +0000 | [diff] [blame] | 3246 | ac_aux_dir= |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 3247 | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do |
| 3248 | if test -f "$ac_dir/install-sh"; then |
David McGrew | b67061f | 2005-09-28 14:23:06 +0000 | [diff] [blame] | 3249 | ac_aux_dir=$ac_dir |
| 3250 | ac_install_sh="$ac_aux_dir/install-sh -c" |
| 3251 | break |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 3252 | elif test -f "$ac_dir/install.sh"; then |
David McGrew | b67061f | 2005-09-28 14:23:06 +0000 | [diff] [blame] | 3253 | ac_aux_dir=$ac_dir |
| 3254 | ac_install_sh="$ac_aux_dir/install.sh -c" |
| 3255 | break |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 3256 | elif test -f "$ac_dir/shtool"; 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/shtool install -c" |
| 3259 | break |
| 3260 | fi |
| 3261 | done |
| 3262 | if test -z "$ac_aux_dir"; then |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 3263 | 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] | 3264 | fi |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 3265 | |
| 3266 | # These three variables are undocumented and unsupported, |
| 3267 | # and are intended to be withdrawn in a future Autoconf release. |
| 3268 | # They can cause serious problems if a builder's source tree is in a directory |
| 3269 | # whose full name contains unusual characters. |
| 3270 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. |
| 3271 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. |
| 3272 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. |
| 3273 | |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 3274 | |
David McGrew | b67061f | 2005-09-28 14:23:06 +0000 | [diff] [blame] | 3275 | # Find a good install program. We prefer a C program (faster), |
| 3276 | # so one script is as good as another. But avoid the broken or |
| 3277 | # incompatible versions: |
| 3278 | # SysV /etc/install, /usr/sbin/install |
| 3279 | # SunOS /usr/etc/install |
| 3280 | # IRIX /sbin/install |
| 3281 | # AIX /bin/install |
| 3282 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
| 3283 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
| 3284 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
| 3285 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
| 3286 | # OS/2's system install, which has a completely different semantic |
| 3287 | # ./install, which can be erroneously created by make from ./install.sh. |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 3288 | # Reject install programs that cannot install multiple files. |
| 3289 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 |
| 3290 | $as_echo_n "checking for a BSD-compatible install... " >&6; } |
David McGrew | b67061f | 2005-09-28 14:23:06 +0000 | [diff] [blame] | 3291 | if test -z "$INSTALL"; then |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 3292 | if ${ac_cv_path_install+:} false; then : |
| 3293 | $as_echo_n "(cached) " >&6 |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 3294 | else |
David McGrew | b67061f | 2005-09-28 14:23:06 +0000 | [diff] [blame] | 3295 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3296 | for as_dir in $PATH |
| 3297 | do |
| 3298 | IFS=$as_save_IFS |
| 3299 | test -z "$as_dir" && as_dir=. |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 3300 | # Account for people who put trailing slashes in PATH elements. |
| 3301 | case $as_dir/ in #(( |
| 3302 | ./ | .// | /[cC]/* | \ |
David McGrew | b67061f | 2005-09-28 14:23:06 +0000 | [diff] [blame] | 3303 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 3304 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ |
David McGrew | b67061f | 2005-09-28 14:23:06 +0000 | [diff] [blame] | 3305 | /usr/ucb/* ) ;; |
| 3306 | *) |
| 3307 | # OSF1 and SCO ODT 3.0 have their own names for install. |
| 3308 | # Don't use installbsd from OSF since it installs stuff as root |
| 3309 | # by default. |
| 3310 | for ac_prog in ginstall scoinst install; do |
| 3311 | for ac_exec_ext in '' $ac_executable_extensions; do |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 3312 | 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] | 3313 | if test $ac_prog = install && |
| 3314 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 3315 | # AIX install. It has an incompatible calling convention. |
| 3316 | : |
| 3317 | elif test $ac_prog = install && |
| 3318 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 3319 | # program-specific install script used by HP pwplus--don't use. |
| 3320 | : |
| 3321 | else |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 3322 | rm -rf conftest.one conftest.two conftest.dir |
| 3323 | echo one > conftest.one |
| 3324 | echo two > conftest.two |
| 3325 | mkdir conftest.dir |
| 3326 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && |
| 3327 | test -s conftest.one && test -s conftest.two && |
| 3328 | test -s conftest.dir/conftest.one && |
| 3329 | test -s conftest.dir/conftest.two |
| 3330 | then |
| 3331 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
| 3332 | break 3 |
| 3333 | fi |
David McGrew | b67061f | 2005-09-28 14:23:06 +0000 | [diff] [blame] | 3334 | fi |
| 3335 | fi |
| 3336 | done |
| 3337 | done |
| 3338 | ;; |
| 3339 | esac |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 3340 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 3341 | done |
| 3342 | IFS=$as_save_IFS |
| 3343 | |
| 3344 | rm -rf conftest.one conftest.two conftest.dir |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 3345 | |
| 3346 | fi |
David McGrew | b67061f | 2005-09-28 14:23:06 +0000 | [diff] [blame] | 3347 | if test "${ac_cv_path_install+set}" = set; then |
| 3348 | INSTALL=$ac_cv_path_install |
| 3349 | else |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 3350 | # As a last resort, use the slow shell script. Don't cache a |
| 3351 | # value for INSTALL within a source directory, because that will |
David McGrew | b67061f | 2005-09-28 14:23:06 +0000 | [diff] [blame] | 3352 | # break other packages using the cache if that directory is |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 3353 | # removed, or if the value is a relative name. |
David McGrew | b67061f | 2005-09-28 14:23:06 +0000 | [diff] [blame] | 3354 | INSTALL=$ac_install_sh |
| 3355 | fi |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 3356 | fi |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 3357 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 |
| 3358 | $as_echo "$INSTALL" >&6; } |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 3359 | |
David McGrew | b67061f | 2005-09-28 14:23:06 +0000 | [diff] [blame] | 3360 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
| 3361 | # It thinks the first close brace ends the variable substitution. |
| 3362 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 3363 | |
David McGrew | b67061f | 2005-09-28 14:23:06 +0000 | [diff] [blame] | 3364 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
| 3365 | |
| 3366 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 3367 | |
| 3368 | |
| 3369 | |
Cullen Jennings | 52c5cd3 | 2013-05-01 18:07:29 -0600 | [diff] [blame] | 3370 | ac_ext=c |
| 3371 | ac_cpp='$CPP $CPPFLAGS' |
| 3372 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3373 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3374 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 3375 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 |
| 3376 | $as_echo_n "checking how to run the C preprocessor... " >&6; } |
Cullen Jennings | 52c5cd3 | 2013-05-01 18:07:29 -0600 | [diff] [blame] | 3377 | # On Suns, sometimes $CPP names a directory. |
| 3378 | if test -n "$CPP" && test -d "$CPP"; then |
| 3379 | CPP= |
| 3380 | fi |
| 3381 | if test -z "$CPP"; then |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 3382 | if ${ac_cv_prog_CPP+:} false; then : |
| 3383 | $as_echo_n "(cached) " >&6 |
Cullen Jennings | 52c5cd3 | 2013-05-01 18:07:29 -0600 | [diff] [blame] | 3384 | else |
| 3385 | # Double quotes because CPP needs to be expanded |
| 3386 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
| 3387 | do |
| 3388 | ac_preproc_ok=false |
| 3389 | for ac_c_preproc_warn_flag in '' yes |
| 3390 | do |
| 3391 | # Use a header file that comes with gcc, so configuring glibc |
| 3392 | # with a fresh cross-compiler works. |
| 3393 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 3394 | # <limits.h> exists even on freestanding compilers. |
| 3395 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 3396 | # not just through cpp. "Syntax error" is here to catch this case. |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 3397 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Cullen Jennings | 52c5cd3 | 2013-05-01 18:07:29 -0600 | [diff] [blame] | 3398 | /* end confdefs.h. */ |
| 3399 | #ifdef __STDC__ |
| 3400 | # include <limits.h> |
| 3401 | #else |
| 3402 | # include <assert.h> |
| 3403 | #endif |
| 3404 | Syntax error |
| 3405 | _ACEOF |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 3406 | if ac_fn_c_try_cpp "$LINENO"; then : |
Cullen Jennings | 52c5cd3 | 2013-05-01 18:07:29 -0600 | [diff] [blame] | 3407 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 3408 | else |
Cullen Jennings | 52c5cd3 | 2013-05-01 18:07:29 -0600 | [diff] [blame] | 3409 | # Broken: fails on valid input. |
| 3410 | continue |
| 3411 | fi |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 3412 | rm -f conftest.err conftest.i conftest.$ac_ext |
Cullen Jennings | 52c5cd3 | 2013-05-01 18:07:29 -0600 | [diff] [blame] | 3413 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 3414 | # OK, works on sane cases. Now check whether nonexistent headers |
Cullen Jennings | 52c5cd3 | 2013-05-01 18:07:29 -0600 | [diff] [blame] | 3415 | # can be detected and how. |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 3416 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Cullen Jennings | 52c5cd3 | 2013-05-01 18:07:29 -0600 | [diff] [blame] | 3417 | /* end confdefs.h. */ |
| 3418 | #include <ac_nonexistent.h> |
| 3419 | _ACEOF |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 3420 | if ac_fn_c_try_cpp "$LINENO"; then : |
Cullen Jennings | 52c5cd3 | 2013-05-01 18:07:29 -0600 | [diff] [blame] | 3421 | # Broken: success on invalid input. |
| 3422 | continue |
| 3423 | else |
Cullen Jennings | 52c5cd3 | 2013-05-01 18:07:29 -0600 | [diff] [blame] | 3424 | # Passes both tests. |
| 3425 | ac_preproc_ok=: |
| 3426 | break |
| 3427 | fi |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 3428 | rm -f conftest.err conftest.i conftest.$ac_ext |
Cullen Jennings | 52c5cd3 | 2013-05-01 18:07:29 -0600 | [diff] [blame] | 3429 | |
| 3430 | done |
| 3431 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 3432 | rm -f conftest.i conftest.err conftest.$ac_ext |
| 3433 | if $ac_preproc_ok; then : |
Cullen Jennings | 52c5cd3 | 2013-05-01 18:07:29 -0600 | [diff] [blame] | 3434 | break |
| 3435 | fi |
| 3436 | |
| 3437 | done |
| 3438 | ac_cv_prog_CPP=$CPP |
| 3439 | |
| 3440 | fi |
| 3441 | CPP=$ac_cv_prog_CPP |
| 3442 | else |
| 3443 | ac_cv_prog_CPP=$CPP |
| 3444 | fi |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 3445 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 |
| 3446 | $as_echo "$CPP" >&6; } |
Cullen Jennings | 52c5cd3 | 2013-05-01 18:07:29 -0600 | [diff] [blame] | 3447 | ac_preproc_ok=false |
| 3448 | for ac_c_preproc_warn_flag in '' yes |
| 3449 | do |
| 3450 | # Use a header file that comes with gcc, so configuring glibc |
| 3451 | # with a fresh cross-compiler works. |
| 3452 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 3453 | # <limits.h> exists even on freestanding compilers. |
| 3454 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 3455 | # not just through cpp. "Syntax error" is here to catch this case. |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 3456 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Cullen Jennings | 52c5cd3 | 2013-05-01 18:07:29 -0600 | [diff] [blame] | 3457 | /* end confdefs.h. */ |
| 3458 | #ifdef __STDC__ |
| 3459 | # include <limits.h> |
| 3460 | #else |
| 3461 | # include <assert.h> |
| 3462 | #endif |
| 3463 | Syntax error |
| 3464 | _ACEOF |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 3465 | if ac_fn_c_try_cpp "$LINENO"; then : |
Cullen Jennings | 52c5cd3 | 2013-05-01 18:07:29 -0600 | [diff] [blame] | 3466 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 3467 | else |
Cullen Jennings | 52c5cd3 | 2013-05-01 18:07:29 -0600 | [diff] [blame] | 3468 | # Broken: fails on valid input. |
| 3469 | continue |
| 3470 | fi |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 3471 | rm -f conftest.err conftest.i conftest.$ac_ext |
Cullen Jennings | 52c5cd3 | 2013-05-01 18:07:29 -0600 | [diff] [blame] | 3472 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 3473 | # OK, works on sane cases. Now check whether nonexistent headers |
Cullen Jennings | 52c5cd3 | 2013-05-01 18:07:29 -0600 | [diff] [blame] | 3474 | # can be detected and how. |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 3475 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Cullen Jennings | 52c5cd3 | 2013-05-01 18:07:29 -0600 | [diff] [blame] | 3476 | /* end confdefs.h. */ |
| 3477 | #include <ac_nonexistent.h> |
| 3478 | _ACEOF |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 3479 | if ac_fn_c_try_cpp "$LINENO"; then : |
Cullen Jennings | 52c5cd3 | 2013-05-01 18:07:29 -0600 | [diff] [blame] | 3480 | # Broken: success on invalid input. |
| 3481 | continue |
| 3482 | else |
Cullen Jennings | 52c5cd3 | 2013-05-01 18:07:29 -0600 | [diff] [blame] | 3483 | # Passes both tests. |
| 3484 | ac_preproc_ok=: |
| 3485 | break |
| 3486 | fi |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 3487 | rm -f conftest.err conftest.i conftest.$ac_ext |
Cullen Jennings | 52c5cd3 | 2013-05-01 18:07:29 -0600 | [diff] [blame] | 3488 | |
| 3489 | done |
| 3490 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 3491 | rm -f conftest.i conftest.err conftest.$ac_ext |
| 3492 | if $ac_preproc_ok; then : |
| 3493 | |
Cullen Jennings | 52c5cd3 | 2013-05-01 18:07:29 -0600 | [diff] [blame] | 3494 | else |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 3495 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 3496 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 3497 | as_fn_error $? "C preprocessor \"$CPP\" fails sanity check |
| 3498 | See \`config.log' for more details" "$LINENO" 5; } |
Cullen Jennings | 52c5cd3 | 2013-05-01 18:07:29 -0600 | [diff] [blame] | 3499 | fi |
| 3500 | |
| 3501 | ac_ext=c |
| 3502 | ac_cpp='$CPP $CPPFLAGS' |
| 3503 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3504 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3505 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3506 | |
| 3507 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 3508 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 |
| 3509 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } |
| 3510 | if ${ac_cv_path_GREP+:} false; then : |
| 3511 | $as_echo_n "(cached) " >&6 |
Cullen Jennings | 52c5cd3 | 2013-05-01 18:07:29 -0600 | [diff] [blame] | 3512 | else |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 3513 | if test -z "$GREP"; then |
| 3514 | ac_path_GREP_found=false |
| 3515 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 3516 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3517 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 3518 | do |
| 3519 | IFS=$as_save_IFS |
| 3520 | test -z "$as_dir" && as_dir=. |
| 3521 | for ac_prog in grep ggrep; do |
| 3522 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3523 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" |
| 3524 | as_fn_executable_p "$ac_path_GREP" || continue |
| 3525 | # Check for GNU ac_path_GREP and select it if it is found. |
| 3526 | # Check for GNU $ac_path_GREP |
| 3527 | case `"$ac_path_GREP" --version 2>&1` in |
| 3528 | *GNU*) |
| 3529 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; |
| 3530 | *) |
| 3531 | ac_count=0 |
| 3532 | $as_echo_n 0123456789 >"conftest.in" |
| 3533 | while : |
| 3534 | do |
| 3535 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 3536 | mv "conftest.tmp" "conftest.in" |
| 3537 | cp "conftest.in" "conftest.nl" |
| 3538 | $as_echo 'GREP' >> "conftest.nl" |
| 3539 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 3540 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
| 3541 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
| 3542 | if test $ac_count -gt ${ac_path_GREP_max-0}; then |
| 3543 | # Best one so far, save it but keep looking for a better one |
| 3544 | ac_cv_path_GREP="$ac_path_GREP" |
| 3545 | ac_path_GREP_max=$ac_count |
Cullen Jennings | 52c5cd3 | 2013-05-01 18:07:29 -0600 | [diff] [blame] | 3546 | fi |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 3547 | # 10*(2^10) chars as input seems more than enough |
| 3548 | test $ac_count -gt 10 && break |
| 3549 | done |
| 3550 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 3551 | esac |
Cullen Jennings | 52c5cd3 | 2013-05-01 18:07:29 -0600 | [diff] [blame] | 3552 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 3553 | $ac_path_GREP_found && break 3 |
| 3554 | done |
| 3555 | done |
| 3556 | done |
| 3557 | IFS=$as_save_IFS |
| 3558 | if test -z "$ac_cv_path_GREP"; then |
| 3559 | as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
| 3560 | fi |
Cullen Jennings | 52c5cd3 | 2013-05-01 18:07:29 -0600 | [diff] [blame] | 3561 | else |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 3562 | ac_cv_path_GREP=$GREP |
| 3563 | fi |
| 3564 | |
| 3565 | fi |
| 3566 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 |
| 3567 | $as_echo "$ac_cv_path_GREP" >&6; } |
| 3568 | GREP="$ac_cv_path_GREP" |
| 3569 | |
| 3570 | |
| 3571 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 |
| 3572 | $as_echo_n "checking for egrep... " >&6; } |
| 3573 | if ${ac_cv_path_EGREP+:} false; then : |
| 3574 | $as_echo_n "(cached) " >&6 |
| 3575 | else |
| 3576 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
| 3577 | then ac_cv_path_EGREP="$GREP -E" |
| 3578 | else |
| 3579 | if test -z "$EGREP"; then |
| 3580 | ac_path_EGREP_found=false |
| 3581 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 3582 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3583 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 3584 | do |
| 3585 | IFS=$as_save_IFS |
| 3586 | test -z "$as_dir" && as_dir=. |
| 3587 | for ac_prog in egrep; do |
| 3588 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3589 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" |
| 3590 | as_fn_executable_p "$ac_path_EGREP" || continue |
| 3591 | # Check for GNU ac_path_EGREP and select it if it is found. |
| 3592 | # Check for GNU $ac_path_EGREP |
| 3593 | case `"$ac_path_EGREP" --version 2>&1` in |
| 3594 | *GNU*) |
| 3595 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; |
| 3596 | *) |
| 3597 | ac_count=0 |
| 3598 | $as_echo_n 0123456789 >"conftest.in" |
| 3599 | while : |
| 3600 | do |
| 3601 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 3602 | mv "conftest.tmp" "conftest.in" |
| 3603 | cp "conftest.in" "conftest.nl" |
| 3604 | $as_echo 'EGREP' >> "conftest.nl" |
| 3605 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 3606 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
| 3607 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
| 3608 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then |
| 3609 | # Best one so far, save it but keep looking for a better one |
| 3610 | ac_cv_path_EGREP="$ac_path_EGREP" |
| 3611 | ac_path_EGREP_max=$ac_count |
| 3612 | fi |
| 3613 | # 10*(2^10) chars as input seems more than enough |
| 3614 | test $ac_count -gt 10 && break |
| 3615 | done |
| 3616 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 3617 | esac |
| 3618 | |
| 3619 | $ac_path_EGREP_found && break 3 |
| 3620 | done |
| 3621 | done |
| 3622 | done |
| 3623 | IFS=$as_save_IFS |
| 3624 | if test -z "$ac_cv_path_EGREP"; then |
| 3625 | as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
| 3626 | fi |
| 3627 | else |
| 3628 | ac_cv_path_EGREP=$EGREP |
| 3629 | fi |
| 3630 | |
| 3631 | fi |
| 3632 | fi |
| 3633 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 |
| 3634 | $as_echo "$ac_cv_path_EGREP" >&6; } |
| 3635 | EGREP="$ac_cv_path_EGREP" |
| 3636 | |
| 3637 | |
| 3638 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 |
| 3639 | $as_echo_n "checking for ANSI C header files... " >&6; } |
| 3640 | if ${ac_cv_header_stdc+:} false; then : |
| 3641 | $as_echo_n "(cached) " >&6 |
| 3642 | else |
| 3643 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
jfigus | a14b5a0 | 2013-03-29 12:24:12 -0400 | [diff] [blame] | 3644 | /* end confdefs.h. */ |
| 3645 | #include <stdlib.h> |
| 3646 | #include <stdarg.h> |
| 3647 | #include <string.h> |
| 3648 | #include <float.h> |
| 3649 | |
| 3650 | int |
| 3651 | main () |
| 3652 | { |
| 3653 | |
| 3654 | ; |
| 3655 | return 0; |
| 3656 | } |
| 3657 | _ACEOF |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 3658 | if ac_fn_c_try_compile "$LINENO"; then : |
jfigus | a14b5a0 | 2013-03-29 12:24:12 -0400 | [diff] [blame] | 3659 | ac_cv_header_stdc=yes |
| 3660 | else |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 3661 | ac_cv_header_stdc=no |
jfigus | a14b5a0 | 2013-03-29 12:24:12 -0400 | [diff] [blame] | 3662 | fi |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 3663 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
jfigus | a14b5a0 | 2013-03-29 12:24:12 -0400 | [diff] [blame] | 3664 | |
| 3665 | if test $ac_cv_header_stdc = yes; then |
| 3666 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 3667 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
jfigus | a14b5a0 | 2013-03-29 12:24:12 -0400 | [diff] [blame] | 3668 | /* end confdefs.h. */ |
| 3669 | #include <string.h> |
| 3670 | |
| 3671 | _ACEOF |
| 3672 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 3673 | $EGREP "memchr" >/dev/null 2>&1; then : |
| 3674 | |
jfigus | a14b5a0 | 2013-03-29 12:24:12 -0400 | [diff] [blame] | 3675 | else |
| 3676 | ac_cv_header_stdc=no |
| 3677 | fi |
| 3678 | rm -f conftest* |
| 3679 | |
| 3680 | fi |
| 3681 | |
| 3682 | if test $ac_cv_header_stdc = yes; then |
| 3683 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 3684 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
jfigus | a14b5a0 | 2013-03-29 12:24:12 -0400 | [diff] [blame] | 3685 | /* end confdefs.h. */ |
| 3686 | #include <stdlib.h> |
| 3687 | |
| 3688 | _ACEOF |
| 3689 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 3690 | $EGREP "free" >/dev/null 2>&1; then : |
| 3691 | |
jfigus | a14b5a0 | 2013-03-29 12:24:12 -0400 | [diff] [blame] | 3692 | else |
| 3693 | ac_cv_header_stdc=no |
| 3694 | fi |
| 3695 | rm -f conftest* |
| 3696 | |
| 3697 | fi |
| 3698 | |
| 3699 | if test $ac_cv_header_stdc = yes; then |
| 3700 | # /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] | 3701 | if test "$cross_compiling" = yes; then : |
jfigus | a14b5a0 | 2013-03-29 12:24:12 -0400 | [diff] [blame] | 3702 | : |
| 3703 | else |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 3704 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
jfigus | a14b5a0 | 2013-03-29 12:24:12 -0400 | [diff] [blame] | 3705 | /* end confdefs.h. */ |
| 3706 | #include <ctype.h> |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 3707 | #include <stdlib.h> |
jfigus | a14b5a0 | 2013-03-29 12:24:12 -0400 | [diff] [blame] | 3708 | #if ((' ' & 0x0FF) == 0x020) |
| 3709 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 3710 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 3711 | #else |
| 3712 | # define ISLOWER(c) \ |
| 3713 | (('a' <= (c) && (c) <= 'i') \ |
| 3714 | || ('j' <= (c) && (c) <= 'r') \ |
| 3715 | || ('s' <= (c) && (c) <= 'z')) |
| 3716 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 3717 | #endif |
| 3718 | |
| 3719 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 3720 | int |
| 3721 | main () |
| 3722 | { |
| 3723 | int i; |
| 3724 | for (i = 0; i < 256; i++) |
| 3725 | if (XOR (islower (i), ISLOWER (i)) |
| 3726 | || toupper (i) != TOUPPER (i)) |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 3727 | return 2; |
| 3728 | return 0; |
jfigus | a14b5a0 | 2013-03-29 12:24:12 -0400 | [diff] [blame] | 3729 | } |
| 3730 | _ACEOF |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 3731 | if ac_fn_c_try_run "$LINENO"; then : |
jfigus | a14b5a0 | 2013-03-29 12:24:12 -0400 | [diff] [blame] | 3732 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 3733 | else |
| 3734 | ac_cv_header_stdc=no |
Cullen Jennings | 52c5cd3 | 2013-05-01 18:07:29 -0600 | [diff] [blame] | 3735 | fi |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 3736 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 3737 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 3738 | fi |
| 3739 | |
jfigus | a14b5a0 | 2013-03-29 12:24:12 -0400 | [diff] [blame] | 3740 | fi |
| 3741 | fi |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 3742 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 |
| 3743 | $as_echo "$ac_cv_header_stdc" >&6; } |
jfigus | a14b5a0 | 2013-03-29 12:24:12 -0400 | [diff] [blame] | 3744 | if test $ac_cv_header_stdc = yes; then |
| 3745 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 3746 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h |
jfigus | a14b5a0 | 2013-03-29 12:24:12 -0400 | [diff] [blame] | 3747 | |
| 3748 | fi |
| 3749 | |
Cullen Jennings | 52c5cd3 | 2013-05-01 18:07:29 -0600 | [diff] [blame] | 3750 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
Cullen Jennings | 52c5cd3 | 2013-05-01 18:07:29 -0600 | [diff] [blame] | 3751 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
| 3752 | inttypes.h stdint.h unistd.h |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 3753 | do : |
| 3754 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 3755 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default |
| 3756 | " |
| 3757 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
Cullen Jennings | 52c5cd3 | 2013-05-01 18:07:29 -0600 | [diff] [blame] | 3758 | cat >>confdefs.h <<_ACEOF |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 3759 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Cullen Jennings | 52c5cd3 | 2013-05-01 18:07:29 -0600 | [diff] [blame] | 3760 | _ACEOF |
| 3761 | |
| 3762 | fi |
| 3763 | |
| 3764 | done |
| 3765 | |
| 3766 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 3767 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 |
| 3768 | $as_echo_n "checking whether byte ordering is bigendian... " >&6; } |
| 3769 | if ${ac_cv_c_bigendian+:} false; then : |
| 3770 | $as_echo_n "(cached) " >&6 |
Cullen Jennings | 52c5cd3 | 2013-05-01 18:07:29 -0600 | [diff] [blame] | 3771 | else |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 3772 | ac_cv_c_bigendian=unknown |
| 3773 | # See if we're dealing with a universal compiler. |
| 3774 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Cullen Jennings | 52c5cd3 | 2013-05-01 18:07:29 -0600 | [diff] [blame] | 3775 | /* end confdefs.h. */ |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 3776 | #ifndef __APPLE_CC__ |
| 3777 | not a universal capable compiler |
| 3778 | #endif |
| 3779 | typedef int dummy; |
Cullen Jennings | 52c5cd3 | 2013-05-01 18:07:29 -0600 | [diff] [blame] | 3780 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 3781 | _ACEOF |
| 3782 | if ac_fn_c_try_compile "$LINENO"; then : |
| 3783 | |
| 3784 | # Check for potential -arch flags. It is not universal unless |
| 3785 | # there are at least two -arch flags with different values. |
| 3786 | ac_arch= |
| 3787 | ac_prev= |
| 3788 | for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do |
| 3789 | if test -n "$ac_prev"; then |
| 3790 | case $ac_word in |
| 3791 | i?86 | x86_64 | ppc | ppc64) |
| 3792 | if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then |
| 3793 | ac_arch=$ac_word |
| 3794 | else |
| 3795 | ac_cv_c_bigendian=universal |
| 3796 | break |
| 3797 | fi |
| 3798 | ;; |
| 3799 | esac |
| 3800 | ac_prev= |
| 3801 | elif test "x$ac_word" = "x-arch"; then |
| 3802 | ac_prev=arch |
| 3803 | fi |
| 3804 | done |
Cullen Jennings | 52c5cd3 | 2013-05-01 18:07:29 -0600 | [diff] [blame] | 3805 | fi |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 3806 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3807 | if test $ac_cv_c_bigendian = unknown; then |
| 3808 | # See if sys/param.h defines the BYTE_ORDER macro. |
| 3809 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Cullen Jennings | 52c5cd3 | 2013-05-01 18:07:29 -0600 | [diff] [blame] | 3810 | /* end confdefs.h. */ |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 3811 | #include <sys/types.h> |
| 3812 | #include <sys/param.h> |
| 3813 | |
| 3814 | int |
| 3815 | main () |
| 3816 | { |
| 3817 | #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ |
| 3818 | && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ |
| 3819 | && LITTLE_ENDIAN) |
| 3820 | bogus endian macros |
| 3821 | #endif |
| 3822 | |
| 3823 | ; |
| 3824 | return 0; |
| 3825 | } |
Cullen Jennings | 52c5cd3 | 2013-05-01 18:07:29 -0600 | [diff] [blame] | 3826 | _ACEOF |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 3827 | if ac_fn_c_try_compile "$LINENO"; then : |
| 3828 | # It does; now see whether it defined to BIG_ENDIAN or not. |
| 3829 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Cullen Jennings | 52c5cd3 | 2013-05-01 18:07:29 -0600 | [diff] [blame] | 3830 | /* end confdefs.h. */ |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 3831 | #include <sys/types.h> |
| 3832 | #include <sys/param.h> |
| 3833 | |
| 3834 | int |
| 3835 | main () |
| 3836 | { |
| 3837 | #if BYTE_ORDER != BIG_ENDIAN |
| 3838 | not big endian |
| 3839 | #endif |
| 3840 | |
| 3841 | ; |
| 3842 | return 0; |
| 3843 | } |
Cullen Jennings | 52c5cd3 | 2013-05-01 18:07:29 -0600 | [diff] [blame] | 3844 | _ACEOF |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 3845 | if ac_fn_c_try_compile "$LINENO"; then : |
| 3846 | ac_cv_c_bigendian=yes |
Cullen Jennings | 52c5cd3 | 2013-05-01 18:07:29 -0600 | [diff] [blame] | 3847 | else |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 3848 | ac_cv_c_bigendian=no |
Cullen Jennings | 52c5cd3 | 2013-05-01 18:07:29 -0600 | [diff] [blame] | 3849 | fi |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 3850 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3851 | fi |
| 3852 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3853 | fi |
| 3854 | if test $ac_cv_c_bigendian = unknown; then |
| 3855 | # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). |
| 3856 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Cullen Jennings | 52c5cd3 | 2013-05-01 18:07:29 -0600 | [diff] [blame] | 3857 | /* end confdefs.h. */ |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 3858 | #include <limits.h> |
| 3859 | |
| 3860 | int |
| 3861 | main () |
| 3862 | { |
| 3863 | #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) |
| 3864 | bogus endian macros |
| 3865 | #endif |
| 3866 | |
| 3867 | ; |
| 3868 | return 0; |
| 3869 | } |
Cullen Jennings | 52c5cd3 | 2013-05-01 18:07:29 -0600 | [diff] [blame] | 3870 | _ACEOF |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 3871 | if ac_fn_c_try_compile "$LINENO"; then : |
| 3872 | # It does; now see whether it defined to _BIG_ENDIAN or not. |
| 3873 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Cullen Jennings | 52c5cd3 | 2013-05-01 18:07:29 -0600 | [diff] [blame] | 3874 | /* end confdefs.h. */ |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 3875 | #include <limits.h> |
| 3876 | |
| 3877 | int |
| 3878 | main () |
| 3879 | { |
| 3880 | #ifndef _BIG_ENDIAN |
| 3881 | not big endian |
| 3882 | #endif |
| 3883 | |
| 3884 | ; |
| 3885 | return 0; |
| 3886 | } |
Cullen Jennings | 52c5cd3 | 2013-05-01 18:07:29 -0600 | [diff] [blame] | 3887 | _ACEOF |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 3888 | if ac_fn_c_try_compile "$LINENO"; then : |
| 3889 | ac_cv_c_bigendian=yes |
Cullen Jennings | 52c5cd3 | 2013-05-01 18:07:29 -0600 | [diff] [blame] | 3890 | else |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 3891 | ac_cv_c_bigendian=no |
Cullen Jennings | 52c5cd3 | 2013-05-01 18:07:29 -0600 | [diff] [blame] | 3892 | fi |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 3893 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3894 | fi |
| 3895 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3896 | fi |
| 3897 | if test $ac_cv_c_bigendian = unknown; then |
| 3898 | # Compile a test program. |
| 3899 | if test "$cross_compiling" = yes; then : |
| 3900 | # Try to guess by grepping values from an object file. |
| 3901 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Cullen Jennings | 52c5cd3 | 2013-05-01 18:07:29 -0600 | [diff] [blame] | 3902 | /* end confdefs.h. */ |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 3903 | short int ascii_mm[] = |
| 3904 | { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; |
| 3905 | short int ascii_ii[] = |
| 3906 | { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; |
| 3907 | int use_ascii (int i) { |
| 3908 | return ascii_mm[i] + ascii_ii[i]; |
| 3909 | } |
| 3910 | short int ebcdic_ii[] = |
| 3911 | { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; |
| 3912 | short int ebcdic_mm[] = |
| 3913 | { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; |
| 3914 | int use_ebcdic (int i) { |
| 3915 | return ebcdic_mm[i] + ebcdic_ii[i]; |
| 3916 | } |
| 3917 | extern int foo; |
| 3918 | |
| 3919 | int |
| 3920 | main () |
| 3921 | { |
| 3922 | return use_ascii (foo) == use_ebcdic (foo); |
| 3923 | ; |
| 3924 | return 0; |
| 3925 | } |
Cullen Jennings | 52c5cd3 | 2013-05-01 18:07:29 -0600 | [diff] [blame] | 3926 | _ACEOF |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 3927 | if ac_fn_c_try_compile "$LINENO"; then : |
| 3928 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then |
| 3929 | ac_cv_c_bigendian=yes |
| 3930 | fi |
| 3931 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then |
| 3932 | if test "$ac_cv_c_bigendian" = unknown; then |
| 3933 | ac_cv_c_bigendian=no |
| 3934 | else |
| 3935 | # finding both strings is unlikely to happen, but who knows? |
| 3936 | ac_cv_c_bigendian=unknown |
| 3937 | fi |
| 3938 | fi |
| 3939 | fi |
| 3940 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Cullen Jennings | 52c5cd3 | 2013-05-01 18:07:29 -0600 | [diff] [blame] | 3941 | else |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 3942 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Cullen Jennings | 52c5cd3 | 2013-05-01 18:07:29 -0600 | [diff] [blame] | 3943 | /* end confdefs.h. */ |
| 3944 | $ac_includes_default |
| 3945 | int |
| 3946 | main () |
| 3947 | { |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 3948 | |
| 3949 | /* Are we little or big endian? From Harbison&Steele. */ |
| 3950 | union |
| 3951 | { |
| 3952 | long int l; |
| 3953 | char c[sizeof (long int)]; |
| 3954 | } u; |
| 3955 | u.l = 1; |
| 3956 | return u.c[sizeof (long int) - 1] == 1; |
| 3957 | |
Cullen Jennings | 52c5cd3 | 2013-05-01 18:07:29 -0600 | [diff] [blame] | 3958 | ; |
| 3959 | return 0; |
| 3960 | } |
| 3961 | _ACEOF |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 3962 | if ac_fn_c_try_run "$LINENO"; then : |
| 3963 | ac_cv_c_bigendian=no |
Cullen Jennings | 52c5cd3 | 2013-05-01 18:07:29 -0600 | [diff] [blame] | 3964 | else |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 3965 | ac_cv_c_bigendian=yes |
| 3966 | fi |
| 3967 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 3968 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 3969 | fi |
Cullen Jennings | 52c5cd3 | 2013-05-01 18:07:29 -0600 | [diff] [blame] | 3970 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 3971 | fi |
Cullen Jennings | 52c5cd3 | 2013-05-01 18:07:29 -0600 | [diff] [blame] | 3972 | fi |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 3973 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 |
| 3974 | $as_echo "$ac_cv_c_bigendian" >&6; } |
| 3975 | case $ac_cv_c_bigendian in #( |
| 3976 | yes) |
| 3977 | $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h |
| 3978 | ;; #( |
| 3979 | no) |
| 3980 | ;; #( |
| 3981 | universal) |
| 3982 | |
| 3983 | $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h |
| 3984 | |
| 3985 | ;; #( |
| 3986 | *) |
| 3987 | as_fn_error $? "unknown endianness |
| 3988 | presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; |
| 3989 | esac |
| 3990 | |
| 3991 | |
| 3992 | # Make sure we can run config.sub. |
| 3993 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || |
| 3994 | as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 |
| 3995 | |
| 3996 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 |
| 3997 | $as_echo_n "checking build system type... " >&6; } |
| 3998 | if ${ac_cv_build+:} false; then : |
| 3999 | $as_echo_n "(cached) " >&6 |
| 4000 | else |
| 4001 | ac_build_alias=$build_alias |
| 4002 | test "x$ac_build_alias" = x && |
| 4003 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` |
| 4004 | test "x$ac_build_alias" = x && |
| 4005 | as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 |
| 4006 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || |
| 4007 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 |
| 4008 | |
Cullen Jennings | 52c5cd3 | 2013-05-01 18:07:29 -0600 | [diff] [blame] | 4009 | fi |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 4010 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 |
| 4011 | $as_echo "$ac_cv_build" >&6; } |
| 4012 | case $ac_cv_build in |
| 4013 | *-*-*) ;; |
| 4014 | *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; |
| 4015 | esac |
| 4016 | build=$ac_cv_build |
| 4017 | ac_save_IFS=$IFS; IFS='-' |
| 4018 | set x $ac_cv_build |
| 4019 | shift |
| 4020 | build_cpu=$1 |
| 4021 | build_vendor=$2 |
| 4022 | shift; shift |
| 4023 | # Remember, the first character of IFS is used to create $*, |
| 4024 | # except with old shells: |
| 4025 | build_os=$* |
| 4026 | IFS=$ac_save_IFS |
| 4027 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac |
| 4028 | |
| 4029 | |
| 4030 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 |
| 4031 | $as_echo_n "checking host system type... " >&6; } |
| 4032 | if ${ac_cv_host+:} false; then : |
| 4033 | $as_echo_n "(cached) " >&6 |
| 4034 | else |
| 4035 | if test "x$host_alias" = x; then |
| 4036 | ac_cv_host=$ac_cv_build |
| 4037 | else |
| 4038 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || |
| 4039 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 |
| 4040 | fi |
| 4041 | |
| 4042 | fi |
| 4043 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 |
| 4044 | $as_echo "$ac_cv_host" >&6; } |
| 4045 | case $ac_cv_host in |
| 4046 | *-*-*) ;; |
| 4047 | *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; |
| 4048 | esac |
| 4049 | host=$ac_cv_host |
| 4050 | ac_save_IFS=$IFS; IFS='-' |
| 4051 | set x $ac_cv_host |
| 4052 | shift |
| 4053 | host_cpu=$1 |
| 4054 | host_vendor=$2 |
| 4055 | shift; shift |
| 4056 | # Remember, the first character of IFS is used to create $*, |
| 4057 | # except with old shells: |
| 4058 | host_os=$* |
| 4059 | IFS=$ac_save_IFS |
| 4060 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac |
| 4061 | |
| 4062 | |
| 4063 | |
| 4064 | case $host_cpu in |
| 4065 | i*86 | x86_64 ) |
| 4066 | |
| 4067 | $as_echo "#define CPU_CISC 1" >>confdefs.h |
| 4068 | |
| 4069 | |
| 4070 | $as_echo "#define HAVE_X86 1" >>confdefs.h |
| 4071 | ;; |
| 4072 | * ) |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 4073 | |
| 4074 | $as_echo "#define CPU_RISC 1" >>confdefs.h |
jfigus | fb83841 | 2014-12-04 10:15:47 -0500 | [diff] [blame] | 4075 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 4076 | ;; |
| 4077 | esac |
| 4078 | |
| 4079 | case $host_os in |
| 4080 | *cygwin*|*mingw* ) |
| 4081 | EXE=.exe |
| 4082 | HOST_IS_WINDOWS=yes |
| 4083 | ;; |
| 4084 | * ) |
| 4085 | EXE="" |
| 4086 | ;; |
| 4087 | esac |
| 4088 | # define executable suffix; this is needed for `make clean' |
| 4089 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 4090 | if test "$cross_compiling" != yes -a "$HOST_IS_WINDOWS" != yes; then |
| 4091 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/urandom" >&5 |
| 4092 | $as_echo_n "checking for /dev/urandom... " >&6; } |
| 4093 | if ${ac_cv_file__dev_urandom+:} false; then : |
| 4094 | $as_echo_n "(cached) " >&6 |
| 4095 | else |
| 4096 | test "$cross_compiling" = yes && |
| 4097 | as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 |
| 4098 | if test -r "/dev/urandom"; then |
| 4099 | ac_cv_file__dev_urandom=yes |
| 4100 | else |
| 4101 | ac_cv_file__dev_urandom=no |
| 4102 | fi |
| 4103 | fi |
| 4104 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__dev_urandom" >&5 |
| 4105 | $as_echo "$ac_cv_file__dev_urandom" >&6; } |
| 4106 | if test "x$ac_cv_file__dev_urandom" = xyes; then : |
| 4107 | DEV_URANDOM=/dev/urandom |
| 4108 | else |
| 4109 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/random" >&5 |
| 4110 | $as_echo_n "checking for /dev/random... " >&6; } |
| 4111 | if ${ac_cv_file__dev_random+:} false; then : |
| 4112 | $as_echo_n "(cached) " >&6 |
| 4113 | else |
| 4114 | test "$cross_compiling" = yes && |
| 4115 | as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 |
| 4116 | if test -r "/dev/random"; then |
| 4117 | ac_cv_file__dev_random=yes |
| 4118 | else |
| 4119 | ac_cv_file__dev_random=no |
| 4120 | fi |
| 4121 | fi |
| 4122 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__dev_random" >&5 |
| 4123 | $as_echo "$ac_cv_file__dev_random" >&6; } |
| 4124 | if test "x$ac_cv_file__dev_random" = xyes; then : |
| 4125 | DEV_URANDOM=/dev/random |
| 4126 | fi |
| 4127 | |
| 4128 | fi |
| 4129 | |
| 4130 | fi |
| 4131 | |
| 4132 | |
| 4133 | |
| 4134 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 |
| 4135 | $as_echo_n "checking for ANSI C header files... " >&6; } |
| 4136 | if ${ac_cv_header_stdc+:} false; then : |
| 4137 | $as_echo_n "(cached) " >&6 |
| 4138 | else |
| 4139 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4140 | /* end confdefs.h. */ |
| 4141 | #include <stdlib.h> |
| 4142 | #include <stdarg.h> |
| 4143 | #include <string.h> |
| 4144 | #include <float.h> |
| 4145 | |
| 4146 | int |
| 4147 | main () |
| 4148 | { |
| 4149 | |
| 4150 | ; |
| 4151 | return 0; |
| 4152 | } |
| 4153 | _ACEOF |
| 4154 | if ac_fn_c_try_compile "$LINENO"; then : |
| 4155 | ac_cv_header_stdc=yes |
| 4156 | else |
| 4157 | ac_cv_header_stdc=no |
| 4158 | fi |
| 4159 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4160 | |
| 4161 | if test $ac_cv_header_stdc = yes; then |
| 4162 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
| 4163 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4164 | /* end confdefs.h. */ |
| 4165 | #include <string.h> |
| 4166 | |
| 4167 | _ACEOF |
| 4168 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 4169 | $EGREP "memchr" >/dev/null 2>&1; then : |
| 4170 | |
| 4171 | else |
| 4172 | ac_cv_header_stdc=no |
| 4173 | fi |
| 4174 | rm -f conftest* |
| 4175 | |
| 4176 | fi |
| 4177 | |
| 4178 | if test $ac_cv_header_stdc = yes; then |
| 4179 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
| 4180 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4181 | /* end confdefs.h. */ |
| 4182 | #include <stdlib.h> |
| 4183 | |
| 4184 | _ACEOF |
| 4185 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 4186 | $EGREP "free" >/dev/null 2>&1; then : |
| 4187 | |
| 4188 | else |
| 4189 | ac_cv_header_stdc=no |
| 4190 | fi |
| 4191 | rm -f conftest* |
| 4192 | |
| 4193 | fi |
| 4194 | |
| 4195 | if test $ac_cv_header_stdc = yes; then |
| 4196 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
| 4197 | if test "$cross_compiling" = yes; then : |
| 4198 | : |
| 4199 | else |
| 4200 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4201 | /* end confdefs.h. */ |
| 4202 | #include <ctype.h> |
| 4203 | #include <stdlib.h> |
| 4204 | #if ((' ' & 0x0FF) == 0x020) |
| 4205 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 4206 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 4207 | #else |
| 4208 | # define ISLOWER(c) \ |
| 4209 | (('a' <= (c) && (c) <= 'i') \ |
| 4210 | || ('j' <= (c) && (c) <= 'r') \ |
| 4211 | || ('s' <= (c) && (c) <= 'z')) |
| 4212 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 4213 | #endif |
| 4214 | |
| 4215 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 4216 | int |
| 4217 | main () |
| 4218 | { |
| 4219 | int i; |
| 4220 | for (i = 0; i < 256; i++) |
| 4221 | if (XOR (islower (i), ISLOWER (i)) |
| 4222 | || toupper (i) != TOUPPER (i)) |
| 4223 | return 2; |
| 4224 | return 0; |
| 4225 | } |
| 4226 | _ACEOF |
| 4227 | if ac_fn_c_try_run "$LINENO"; then : |
| 4228 | |
| 4229 | else |
| 4230 | ac_cv_header_stdc=no |
| 4231 | fi |
| 4232 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 4233 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 4234 | fi |
| 4235 | |
| 4236 | fi |
| 4237 | fi |
| 4238 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 |
| 4239 | $as_echo "$ac_cv_header_stdc" >&6; } |
| 4240 | if test $ac_cv_header_stdc = yes; then |
| 4241 | |
| 4242 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h |
| 4243 | |
| 4244 | fi |
| 4245 | |
| 4246 | for ac_header in stdlib.h |
| 4247 | do : |
| 4248 | ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default" |
| 4249 | if test "x$ac_cv_header_stdlib_h" = xyes; then : |
| 4250 | cat >>confdefs.h <<_ACEOF |
| 4251 | #define HAVE_STDLIB_H 1 |
| 4252 | _ACEOF |
| 4253 | |
| 4254 | fi |
| 4255 | |
| 4256 | done |
| 4257 | |
| 4258 | for ac_header in unistd.h |
| 4259 | do : |
| 4260 | ac_fn_c_check_header_mongrel "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default" |
| 4261 | if test "x$ac_cv_header_unistd_h" = xyes; then : |
| 4262 | cat >>confdefs.h <<_ACEOF |
| 4263 | #define HAVE_UNISTD_H 1 |
| 4264 | _ACEOF |
| 4265 | |
| 4266 | fi |
| 4267 | |
| 4268 | done |
| 4269 | |
| 4270 | for ac_header in byteswap.h |
| 4271 | do : |
| 4272 | ac_fn_c_check_header_mongrel "$LINENO" "byteswap.h" "ac_cv_header_byteswap_h" "$ac_includes_default" |
| 4273 | if test "x$ac_cv_header_byteswap_h" = xyes; then : |
| 4274 | cat >>confdefs.h <<_ACEOF |
| 4275 | #define HAVE_BYTESWAP_H 1 |
| 4276 | _ACEOF |
| 4277 | |
| 4278 | fi |
| 4279 | |
| 4280 | done |
| 4281 | |
| 4282 | for ac_header in stdint.h |
| 4283 | do : |
| 4284 | ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default" |
| 4285 | if test "x$ac_cv_header_stdint_h" = xyes; then : |
| 4286 | cat >>confdefs.h <<_ACEOF |
| 4287 | #define HAVE_STDINT_H 1 |
| 4288 | _ACEOF |
| 4289 | |
| 4290 | fi |
| 4291 | |
| 4292 | done |
| 4293 | |
| 4294 | for ac_header in sys/uio.h |
| 4295 | do : |
| 4296 | ac_fn_c_check_header_mongrel "$LINENO" "sys/uio.h" "ac_cv_header_sys_uio_h" "$ac_includes_default" |
| 4297 | if test "x$ac_cv_header_sys_uio_h" = xyes; then : |
| 4298 | cat >>confdefs.h <<_ACEOF |
| 4299 | #define HAVE_SYS_UIO_H 1 |
| 4300 | _ACEOF |
| 4301 | |
| 4302 | fi |
| 4303 | |
| 4304 | done |
| 4305 | |
| 4306 | for ac_header in inttypes.h |
| 4307 | do : |
| 4308 | ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default" |
| 4309 | if test "x$ac_cv_header_inttypes_h" = xyes; then : |
| 4310 | cat >>confdefs.h <<_ACEOF |
| 4311 | #define HAVE_INTTYPES_H 1 |
| 4312 | _ACEOF |
| 4313 | |
| 4314 | fi |
| 4315 | |
| 4316 | done |
| 4317 | |
| 4318 | for ac_header in sys/types.h |
| 4319 | do : |
| 4320 | ac_fn_c_check_header_mongrel "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default" |
| 4321 | if test "x$ac_cv_header_sys_types_h" = xyes; then : |
| 4322 | cat >>confdefs.h <<_ACEOF |
| 4323 | #define HAVE_SYS_TYPES_H 1 |
| 4324 | _ACEOF |
| 4325 | |
| 4326 | fi |
| 4327 | |
| 4328 | done |
| 4329 | |
| 4330 | for ac_header in machine/types.h |
| 4331 | do : |
| 4332 | ac_fn_c_check_header_mongrel "$LINENO" "machine/types.h" "ac_cv_header_machine_types_h" "$ac_includes_default" |
| 4333 | if test "x$ac_cv_header_machine_types_h" = xyes; then : |
| 4334 | cat >>confdefs.h <<_ACEOF |
| 4335 | #define HAVE_MACHINE_TYPES_H 1 |
| 4336 | _ACEOF |
| 4337 | |
| 4338 | fi |
| 4339 | |
| 4340 | done |
| 4341 | |
| 4342 | for ac_header in sys/int_types.h |
| 4343 | do : |
| 4344 | ac_fn_c_check_header_mongrel "$LINENO" "sys/int_types.h" "ac_cv_header_sys_int_types_h" "$ac_includes_default" |
| 4345 | if test "x$ac_cv_header_sys_int_types_h" = xyes; then : |
| 4346 | cat >>confdefs.h <<_ACEOF |
| 4347 | #define HAVE_SYS_INT_TYPES_H 1 |
| 4348 | _ACEOF |
| 4349 | |
| 4350 | fi |
| 4351 | |
| 4352 | done |
| 4353 | |
| 4354 | |
| 4355 | for ac_header in sys/socket.h netinet/in.h arpa/inet.h |
| 4356 | do : |
| 4357 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 4358 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" |
| 4359 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
| 4360 | cat >>confdefs.h <<_ACEOF |
| 4361 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 4362 | _ACEOF |
| 4363 | |
| 4364 | fi |
| 4365 | |
| 4366 | done |
| 4367 | |
| 4368 | for ac_header in windows.h |
| 4369 | do : |
| 4370 | ac_fn_c_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default" |
| 4371 | if test "x$ac_cv_header_windows_h" = xyes; then : |
| 4372 | cat >>confdefs.h <<_ACEOF |
| 4373 | #define HAVE_WINDOWS_H 1 |
| 4374 | _ACEOF |
| 4375 | for ac_header in winsock2.h |
| 4376 | do : |
| 4377 | ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default" |
| 4378 | if test "x$ac_cv_header_winsock2_h" = xyes; then : |
| 4379 | cat >>confdefs.h <<_ACEOF |
| 4380 | #define HAVE_WINSOCK2_H 1 |
| 4381 | _ACEOF |
| 4382 | |
| 4383 | fi |
| 4384 | |
| 4385 | done |
| 4386 | |
| 4387 | fi |
| 4388 | |
| 4389 | done |
| 4390 | |
| 4391 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 4392 | ac_fn_c_check_type "$LINENO" "int8_t" "ac_cv_type_int8_t" "$ac_includes_default" |
| 4393 | if test "x$ac_cv_type_int8_t" = xyes; then : |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 4394 | |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame] | 4395 | cat >>confdefs.h <<_ACEOF |
David McGrew | d1694b5 | 2005-09-29 10:59:33 +0000 | [diff] [blame] | 4396 | #define HAVE_INT8_T 1 |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame] | 4397 | _ACEOF |
| 4398 | |
| 4399 | |
| 4400 | fi |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 4401 | ac_fn_c_check_type "$LINENO" "uint8_t" "ac_cv_type_uint8_t" "$ac_includes_default" |
| 4402 | if test "x$ac_cv_type_uint8_t" = xyes; then : |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame] | 4403 | |
| 4404 | cat >>confdefs.h <<_ACEOF |
David McGrew | d1694b5 | 2005-09-29 10:59:33 +0000 | [diff] [blame] | 4405 | #define HAVE_UINT8_T 1 |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame] | 4406 | _ACEOF |
| 4407 | |
| 4408 | |
| 4409 | fi |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 4410 | ac_fn_c_check_type "$LINENO" "int16_t" "ac_cv_type_int16_t" "$ac_includes_default" |
| 4411 | if test "x$ac_cv_type_int16_t" = xyes; then : |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame] | 4412 | |
| 4413 | cat >>confdefs.h <<_ACEOF |
David McGrew | d1694b5 | 2005-09-29 10:59:33 +0000 | [diff] [blame] | 4414 | #define HAVE_INT16_T 1 |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame] | 4415 | _ACEOF |
| 4416 | |
| 4417 | |
| 4418 | fi |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 4419 | ac_fn_c_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "$ac_includes_default" |
| 4420 | if test "x$ac_cv_type_uint16_t" = xyes; then : |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame] | 4421 | |
| 4422 | cat >>confdefs.h <<_ACEOF |
David McGrew | d1694b5 | 2005-09-29 10:59:33 +0000 | [diff] [blame] | 4423 | #define HAVE_UINT16_T 1 |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame] | 4424 | _ACEOF |
| 4425 | |
| 4426 | |
| 4427 | fi |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 4428 | ac_fn_c_check_type "$LINENO" "int32_t" "ac_cv_type_int32_t" "$ac_includes_default" |
| 4429 | if test "x$ac_cv_type_int32_t" = xyes; then : |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame] | 4430 | |
| 4431 | cat >>confdefs.h <<_ACEOF |
David McGrew | d1694b5 | 2005-09-29 10:59:33 +0000 | [diff] [blame] | 4432 | #define HAVE_INT32_T 1 |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame] | 4433 | _ACEOF |
| 4434 | |
| 4435 | |
| 4436 | fi |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 4437 | ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "$ac_includes_default" |
| 4438 | if test "x$ac_cv_type_uint32_t" = xyes; then : |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame] | 4439 | |
| 4440 | cat >>confdefs.h <<_ACEOF |
David McGrew | d1694b5 | 2005-09-29 10:59:33 +0000 | [diff] [blame] | 4441 | #define HAVE_UINT32_T 1 |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame] | 4442 | _ACEOF |
| 4443 | |
| 4444 | |
| 4445 | fi |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 4446 | ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "$ac_includes_default" |
| 4447 | if test "x$ac_cv_type_uint64_t" = xyes; then : |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame] | 4448 | |
| 4449 | cat >>confdefs.h <<_ACEOF |
David McGrew | d1694b5 | 2005-09-29 10:59:33 +0000 | [diff] [blame] | 4450 | #define HAVE_UINT64_T 1 |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame] | 4451 | _ACEOF |
| 4452 | |
| 4453 | |
| 4454 | fi |
| 4455 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 4456 | # The cast to long int works around a bug in the HP C Compiler |
| 4457 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 4458 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 4459 | # This bug is HP SR number 8606223364. |
| 4460 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5 |
| 4461 | $as_echo_n "checking size of unsigned long... " >&6; } |
| 4462 | if ${ac_cv_sizeof_unsigned_long+:} false; then : |
| 4463 | $as_echo_n "(cached) " >&6 |
Marcus Sundberg | 9aef51e | 2005-10-02 20:02:55 +0000 | [diff] [blame] | 4464 | else |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 4465 | 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] | 4466 | |
Marcus Sundberg | 9aef51e | 2005-10-02 20:02:55 +0000 | [diff] [blame] | 4467 | else |
| 4468 | if test "$ac_cv_type_unsigned_long" = yes; then |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 4469 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 4470 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 4471 | as_fn_error 77 "cannot compute sizeof (unsigned long) |
| 4472 | See \`config.log' for more details" "$LINENO" 5; } |
| 4473 | else |
| 4474 | ac_cv_sizeof_unsigned_long=0 |
| 4475 | fi |
Marcus Sundberg | 9aef51e | 2005-10-02 20:02:55 +0000 | [diff] [blame] | 4476 | fi |
Marcus Sundberg | 9aef51e | 2005-10-02 20:02:55 +0000 | [diff] [blame] | 4477 | |
Marcus Sundberg | 9aef51e | 2005-10-02 20:02:55 +0000 | [diff] [blame] | 4478 | fi |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 4479 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5 |
| 4480 | $as_echo "$ac_cv_sizeof_unsigned_long" >&6; } |
Marcus Sundberg | 9aef51e | 2005-10-02 20:02:55 +0000 | [diff] [blame] | 4481 | |
Marcus Sundberg | 9aef51e | 2005-10-02 20:02:55 +0000 | [diff] [blame] | 4482 | |
Marcus Sundberg | 9aef51e | 2005-10-02 20:02:55 +0000 | [diff] [blame] | 4483 | |
Marcus Sundberg | 9aef51e | 2005-10-02 20:02:55 +0000 | [diff] [blame] | 4484 | cat >>confdefs.h <<_ACEOF |
| 4485 | #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long |
| 4486 | _ACEOF |
| 4487 | |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame] | 4488 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 4489 | # The cast to long int works around a bug in the HP C Compiler |
| 4490 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 4491 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 4492 | # This bug is HP SR number 8606223364. |
| 4493 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long long" >&5 |
| 4494 | $as_echo_n "checking size of unsigned long long... " >&6; } |
| 4495 | if ${ac_cv_sizeof_unsigned_long_long+:} false; then : |
| 4496 | $as_echo_n "(cached) " >&6 |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame] | 4497 | else |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 4498 | 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] | 4499 | |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame] | 4500 | else |
Marcus Sundberg | 9aef51e | 2005-10-02 20:02:55 +0000 | [diff] [blame] | 4501 | if test "$ac_cv_type_unsigned_long_long" = yes; then |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 4502 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 4503 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 4504 | as_fn_error 77 "cannot compute sizeof (unsigned long long) |
| 4505 | See \`config.log' for more details" "$LINENO" 5; } |
| 4506 | else |
| 4507 | ac_cv_sizeof_unsigned_long_long=0 |
| 4508 | fi |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame] | 4509 | fi |
| 4510 | |
Marcus Sundberg | 9aef51e | 2005-10-02 20:02:55 +0000 | [diff] [blame] | 4511 | fi |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 4512 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long" >&5 |
| 4513 | $as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; } |
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 | |
Marcus Sundberg | 9aef51e | 2005-10-02 20:02:55 +0000 | [diff] [blame] | 4516 | |
Marcus Sundberg | 9aef51e | 2005-10-02 20:02:55 +0000 | [diff] [blame] | 4517 | cat >>confdefs.h <<_ACEOF |
| 4518 | #define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame] | 4519 | _ACEOF |
| 4520 | |
Marcus Sundberg | 9aef51e | 2005-10-02 20:02:55 +0000 | [diff] [blame] | 4521 | |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 4522 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 4523 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 |
| 4524 | $as_echo_n "checking for an ANSI C-conforming const... " >&6; } |
| 4525 | if ${ac_cv_c_const+:} false; then : |
| 4526 | $as_echo_n "(cached) " >&6 |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 4527 | else |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 4528 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 4529 | /* end confdefs.h. */ |
| 4530 | |
| 4531 | int |
| 4532 | main () |
| 4533 | { |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 4534 | |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 4535 | #ifndef __cplusplus |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 4536 | /* Ultrix mips cc rejects this sort of thing. */ |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 4537 | typedef int charset[2]; |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 4538 | const charset cs = { 0, 0 }; |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 4539 | /* SunOS 4.1.1 cc rejects this. */ |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 4540 | char const *const *pcpcc; |
| 4541 | char **ppc; |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 4542 | /* NEC SVR4.0.2 mips cc rejects this. */ |
| 4543 | struct point {int x, y;}; |
| 4544 | static struct point const zero = {0,0}; |
| 4545 | /* AIX XL C 1.02.0.0 rejects this. |
| 4546 | It does not let you subtract one const X* pointer from another in |
| 4547 | an arm of an if-expression whose if-part is not a constant |
| 4548 | expression */ |
| 4549 | const char *g = "string"; |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 4550 | pcpcc = &g + (g ? g-g : 0); |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 4551 | /* HPUX 7.0 cc rejects these. */ |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 4552 | ++pcpcc; |
| 4553 | ppc = (char**) pcpcc; |
| 4554 | pcpcc = (char const *const *) ppc; |
| 4555 | { /* SCO 3.2v4 cc rejects this sort of thing. */ |
| 4556 | char tx; |
| 4557 | char *t = &tx; |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 4558 | char const *s = 0 ? (char *) 0 : (char const *) 0; |
| 4559 | |
| 4560 | *t++ = 0; |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 4561 | if (s) return 0; |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 4562 | } |
| 4563 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ |
| 4564 | int x[] = {25, 17}; |
| 4565 | const int *foo = &x[0]; |
| 4566 | ++foo; |
| 4567 | } |
| 4568 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ |
| 4569 | typedef const int *iptr; |
| 4570 | iptr p = 0; |
| 4571 | ++p; |
| 4572 | } |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 4573 | { /* 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] | 4574 | "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] | 4575 | struct s { int j; const int *ap[3]; } bx; |
| 4576 | struct s *b = &bx; b->j = 5; |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 4577 | } |
| 4578 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ |
| 4579 | const int foo = 10; |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 4580 | if (!foo) return 0; |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 4581 | } |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 4582 | return !cs[0] && !zero.x; |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 4583 | #endif |
| 4584 | |
| 4585 | ; |
| 4586 | return 0; |
| 4587 | } |
| 4588 | _ACEOF |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 4589 | if ac_fn_c_try_compile "$LINENO"; then : |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 4590 | ac_cv_c_const=yes |
| 4591 | else |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 4592 | ac_cv_c_const=no |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 4593 | fi |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 4594 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 4595 | fi |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 4596 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 |
| 4597 | $as_echo "$ac_cv_c_const" >&6; } |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 4598 | if test $ac_cv_c_const = no; then |
| 4599 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 4600 | $as_echo "#define const /**/" >>confdefs.h |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 4601 | |
| 4602 | fi |
| 4603 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 4604 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 |
| 4605 | $as_echo_n "checking for inline... " >&6; } |
| 4606 | if ${ac_cv_c_inline+:} false; then : |
| 4607 | $as_echo_n "(cached) " >&6 |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 4608 | else |
| 4609 | ac_cv_c_inline=no |
| 4610 | for ac_kw in inline __inline__ __inline; do |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 4611 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 4612 | /* end confdefs.h. */ |
| 4613 | #ifndef __cplusplus |
| 4614 | typedef int foo_t; |
| 4615 | static $ac_kw foo_t static_foo () {return 0; } |
| 4616 | $ac_kw foo_t foo () {return 0; } |
| 4617 | #endif |
| 4618 | |
| 4619 | _ACEOF |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 4620 | if ac_fn_c_try_compile "$LINENO"; then : |
| 4621 | ac_cv_c_inline=$ac_kw |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 4622 | fi |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 4623 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4624 | test "$ac_cv_c_inline" != no && break |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 4625 | done |
| 4626 | |
| 4627 | fi |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 4628 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 |
| 4629 | $as_echo "$ac_cv_c_inline" >&6; } |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame] | 4630 | |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 4631 | case $ac_cv_c_inline in |
| 4632 | inline | yes) ;; |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame] | 4633 | *) |
| 4634 | case $ac_cv_c_inline in |
| 4635 | no) ac_val=;; |
| 4636 | *) ac_val=$ac_cv_c_inline;; |
| 4637 | esac |
| 4638 | cat >>confdefs.h <<_ACEOF |
| 4639 | #ifndef __cplusplus |
| 4640 | #define inline $ac_val |
| 4641 | #endif |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 4642 | _ACEOF |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame] | 4643 | ;; |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 4644 | esac |
| 4645 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 4646 | ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" |
| 4647 | if test "x$ac_cv_type_size_t" = xyes; then : |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 4648 | |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 4649 | else |
| 4650 | |
| 4651 | cat >>confdefs.h <<_ACEOF |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 4652 | #define size_t unsigned int |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 4653 | _ACEOF |
| 4654 | |
| 4655 | fi |
| 4656 | |
| 4657 | |
Jonathan Lennox | 3f7fc22 | 2010-05-17 19:32:02 +0000 | [diff] [blame] | 4658 | for ac_func in socket inet_aton usleep sigaction |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 4659 | do : |
| 4660 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 4661 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
| 4662 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 4663 | cat >>confdefs.h <<_ACEOF |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 4664 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 4665 | _ACEOF |
| 4666 | |
| 4667 | fi |
| 4668 | done |
| 4669 | |
| 4670 | |
Marcus Sundberg | 9aef51e | 2005-10-02 20:02:55 +0000 | [diff] [blame] | 4671 | if test "x$ac_cv_func_socket" = "xno"; then |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 4672 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5 |
| 4673 | $as_echo_n "checking for socket in -lsocket... " >&6; } |
| 4674 | if ${ac_cv_lib_socket_socket+:} false; then : |
| 4675 | $as_echo_n "(cached) " >&6 |
David McGrew | b67061f | 2005-09-28 14:23:06 +0000 | [diff] [blame] | 4676 | else |
| 4677 | ac_check_lib_save_LIBS=$LIBS |
| 4678 | LIBS="-lsocket $LIBS" |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 4679 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
David McGrew | b67061f | 2005-09-28 14:23:06 +0000 | [diff] [blame] | 4680 | /* end confdefs.h. */ |
| 4681 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 4682 | /* Override any GCC internal prototype to avoid an error. |
| 4683 | Use char because int might match the return type of a GCC |
| 4684 | builtin and then its argument prototype would still apply. */ |
David McGrew | b67061f | 2005-09-28 14:23:06 +0000 | [diff] [blame] | 4685 | #ifdef __cplusplus |
| 4686 | extern "C" |
| 4687 | #endif |
David McGrew | b67061f | 2005-09-28 14:23:06 +0000 | [diff] [blame] | 4688 | char socket (); |
| 4689 | int |
| 4690 | main () |
| 4691 | { |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 4692 | return socket (); |
David McGrew | b67061f | 2005-09-28 14:23:06 +0000 | [diff] [blame] | 4693 | ; |
| 4694 | return 0; |
| 4695 | } |
| 4696 | _ACEOF |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 4697 | if ac_fn_c_try_link "$LINENO"; then : |
David McGrew | b67061f | 2005-09-28 14:23:06 +0000 | [diff] [blame] | 4698 | ac_cv_lib_socket_socket=yes |
| 4699 | else |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 4700 | ac_cv_lib_socket_socket=no |
David McGrew | b67061f | 2005-09-28 14:23:06 +0000 | [diff] [blame] | 4701 | fi |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 4702 | rm -f core conftest.err conftest.$ac_objext \ |
| 4703 | conftest$ac_exeext conftest.$ac_ext |
David McGrew | b67061f | 2005-09-28 14:23:06 +0000 | [diff] [blame] | 4704 | LIBS=$ac_check_lib_save_LIBS |
| 4705 | fi |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 4706 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5 |
| 4707 | $as_echo "$ac_cv_lib_socket_socket" >&6; } |
| 4708 | if test "x$ac_cv_lib_socket_socket" = xyes; then : |
David McGrew | b67061f | 2005-09-28 14:23:06 +0000 | [diff] [blame] | 4709 | cat >>confdefs.h <<_ACEOF |
| 4710 | #define HAVE_LIBSOCKET 1 |
| 4711 | _ACEOF |
| 4712 | |
| 4713 | LIBS="-lsocket $LIBS" |
| 4714 | |
| 4715 | fi |
| 4716 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 4717 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lwsock32" >&5 |
| 4718 | $as_echo_n "checking for socket in -lwsock32... " >&6; } |
Marcus Sundberg | 9aef51e | 2005-10-02 20:02:55 +0000 | [diff] [blame] | 4719 | SAVELIBS="$LIBS" |
| 4720 | LIBS="$LIBS -lwsock32" |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 4721 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Marcus Sundberg | 9aef51e | 2005-10-02 20:02:55 +0000 | [diff] [blame] | 4722 | /* end confdefs.h. */ |
| 4723 | |
| 4724 | #include <winsock2.h> |
| 4725 | |
| 4726 | int |
| 4727 | main () |
| 4728 | { |
| 4729 | |
| 4730 | socket(0, 0, 0); |
| 4731 | |
| 4732 | ; |
| 4733 | return 0; |
| 4734 | } |
| 4735 | _ACEOF |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 4736 | if ac_fn_c_try_link "$LINENO"; then : |
Marcus Sundberg | 9aef51e | 2005-10-02 20:02:55 +0000 | [diff] [blame] | 4737 | ac_cv_func_socket=yes |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 4738 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 4739 | $as_echo "yes" >&6; } |
Marcus Sundberg | 9aef51e | 2005-10-02 20:02:55 +0000 | [diff] [blame] | 4740 | else |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 4741 | LIBS="$SAVELIBS" |
| 4742 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4743 | $as_echo "no" >&6; } |
Marcus Sundberg | 9aef51e | 2005-10-02 20:02:55 +0000 | [diff] [blame] | 4744 | fi |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 4745 | rm -f core conftest.err conftest.$ac_objext \ |
| 4746 | conftest$ac_exeext conftest.$ac_ext |
Marcus Sundberg | 9aef51e | 2005-10-02 20:02:55 +0000 | [diff] [blame] | 4747 | fi |
David McGrew | b67061f | 2005-09-28 14:23:06 +0000 | [diff] [blame] | 4748 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 4749 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to compile in debugging" >&5 |
| 4750 | $as_echo_n "checking whether to compile in debugging... " >&6; } |
| 4751 | # Check whether --enable-debug was given. |
| 4752 | if test "${enable_debug+set}" = set; then : |
| 4753 | enableval=$enable_debug; |
David McGrew | b67061f | 2005-09-28 14:23:06 +0000 | [diff] [blame] | 4754 | else |
| 4755 | enable_debug=yes |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 4756 | fi |
| 4757 | |
David McGrew | b67061f | 2005-09-28 14:23:06 +0000 | [diff] [blame] | 4758 | if test "$enable_debug" = "yes"; then |
| 4759 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 4760 | $as_echo "#define ENABLE_DEBUGGING 1" >>confdefs.h |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 4761 | |
| 4762 | fi |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 4763 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_debug" >&5 |
| 4764 | $as_echo "$enable_debug" >&6; } |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 4765 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 4766 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use ISMAcryp code" >&5 |
| 4767 | $as_echo_n "checking whether to use ISMAcryp code... " >&6; } |
| 4768 | # Check whether --enable-generic-aesicm was given. |
| 4769 | if test "${enable_generic_aesicm+set}" = set; then : |
| 4770 | enableval=$enable_generic_aesicm; |
David McGrew | b67061f | 2005-09-28 14:23:06 +0000 | [diff] [blame] | 4771 | else |
| 4772 | enable_generic_aesicm=no |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 4773 | fi |
| 4774 | |
David McGrew | b67061f | 2005-09-28 14:23:06 +0000 | [diff] [blame] | 4775 | if test "$enable_generic_aesicm" = "yes"; then |
| 4776 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 4777 | $as_echo "#define GENERIC_AESICM 1" >>confdefs.h |
jfigus | a14b5a0 | 2013-03-29 12:24:12 -0400 | [diff] [blame] | 4778 | |
jfigus | a14b5a0 | 2013-03-29 12:24:12 -0400 | [diff] [blame] | 4779 | fi |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 4780 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_generic_aesicm" >&5 |
| 4781 | $as_echo "$enable_generic_aesicm" >&6; } |
jfigus | a14b5a0 | 2013-03-29 12:24:12 -0400 | [diff] [blame] | 4782 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 4783 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to leverage OpenSSL crypto" >&5 |
| 4784 | $as_echo_n "checking whether to leverage OpenSSL crypto... " >&6; } |
| 4785 | # Check whether --enable-openssl was given. |
| 4786 | if test "${enable_openssl+set}" = set; then : |
| 4787 | enableval=$enable_openssl; |
| 4788 | else |
| 4789 | enable_openssl=no |
| 4790 | fi |
jfigus | a14b5a0 | 2013-03-29 12:24:12 -0400 | [diff] [blame] | 4791 | |
jfigus | 2b48665 | 2014-07-24 15:01:41 -0400 | [diff] [blame] | 4792 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_openssl" >&5 |
| 4793 | $as_echo "$enable_openssl" >&6; } |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 4794 | if test "$enable_openssl" = "yes"; then |
Sean Bright | bfb9e30 | 2014-03-24 20:45:17 -0400 | [diff] [blame] | 4795 | LDFLAGS="$LDFLAGS $(pkg-config --libs openssl)"; |
| 4796 | CFLAGS="$CFLAGS $(pkg-config --cflags openssl)"; |
Cullen Jennings | e1de50f | 2013-05-22 12:27:28 -0600 | [diff] [blame] | 4797 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 4798 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EVP_EncryptInit in -lcrypto" >&5 |
| 4799 | $as_echo_n "checking for EVP_EncryptInit in -lcrypto... " >&6; } |
| 4800 | if ${ac_cv_lib_crypto_EVP_EncryptInit+:} false; then : |
| 4801 | $as_echo_n "(cached) " >&6 |
| 4802 | else |
| 4803 | ac_check_lib_save_LIBS=$LIBS |
| 4804 | LIBS="-lcrypto $LIBS" |
| 4805 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4806 | /* end confdefs.h. */ |
| 4807 | |
| 4808 | /* Override any GCC internal prototype to avoid an error. |
| 4809 | Use char because int might match the return type of a GCC |
| 4810 | builtin and then its argument prototype would still apply. */ |
| 4811 | #ifdef __cplusplus |
| 4812 | extern "C" |
| 4813 | #endif |
| 4814 | char EVP_EncryptInit (); |
| 4815 | int |
| 4816 | main () |
| 4817 | { |
| 4818 | return EVP_EncryptInit (); |
| 4819 | ; |
| 4820 | return 0; |
| 4821 | } |
| 4822 | _ACEOF |
| 4823 | if ac_fn_c_try_link "$LINENO"; then : |
| 4824 | ac_cv_lib_crypto_EVP_EncryptInit=yes |
| 4825 | else |
| 4826 | ac_cv_lib_crypto_EVP_EncryptInit=no |
| 4827 | fi |
| 4828 | rm -f core conftest.err conftest.$ac_objext \ |
| 4829 | conftest$ac_exeext conftest.$ac_ext |
| 4830 | LIBS=$ac_check_lib_save_LIBS |
| 4831 | fi |
| 4832 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_EVP_EncryptInit" >&5 |
| 4833 | $as_echo "$ac_cv_lib_crypto_EVP_EncryptInit" >&6; } |
| 4834 | if test "x$ac_cv_lib_crypto_EVP_EncryptInit" = xyes; then : |
| 4835 | cat >>confdefs.h <<_ACEOF |
| 4836 | #define HAVE_LIBCRYPTO 1 |
| 4837 | _ACEOF |
| 4838 | |
| 4839 | LIBS="-lcrypto $LIBS" |
| 4840 | |
| 4841 | else |
| 4842 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 4843 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
jfigus | 5b22e37 | 2013-05-09 09:23:26 -0400 | [diff] [blame] | 4844 | as_fn_error $? "can't find openssl >1.0.1 crypto lib |
| 4845 | See \`config.log' for more details" "$LINENO" 5; } |
| 4846 | fi |
| 4847 | |
| 4848 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EVP_aes_128_ctr in -lcrypto" >&5 |
| 4849 | $as_echo_n "checking for EVP_aes_128_ctr in -lcrypto... " >&6; } |
| 4850 | if ${ac_cv_lib_crypto_EVP_aes_128_ctr+:} false; then : |
| 4851 | $as_echo_n "(cached) " >&6 |
| 4852 | else |
| 4853 | ac_check_lib_save_LIBS=$LIBS |
| 4854 | LIBS="-lcrypto $LIBS" |
| 4855 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4856 | /* end confdefs.h. */ |
| 4857 | |
| 4858 | /* Override any GCC internal prototype to avoid an error. |
| 4859 | Use char because int might match the return type of a GCC |
| 4860 | builtin and then its argument prototype would still apply. */ |
| 4861 | #ifdef __cplusplus |
| 4862 | extern "C" |
| 4863 | #endif |
| 4864 | char EVP_aes_128_ctr (); |
| 4865 | int |
| 4866 | main () |
| 4867 | { |
| 4868 | return EVP_aes_128_ctr (); |
| 4869 | ; |
| 4870 | return 0; |
| 4871 | } |
| 4872 | _ACEOF |
| 4873 | if ac_fn_c_try_link "$LINENO"; then : |
| 4874 | ac_cv_lib_crypto_EVP_aes_128_ctr=yes |
| 4875 | else |
| 4876 | ac_cv_lib_crypto_EVP_aes_128_ctr=no |
| 4877 | fi |
| 4878 | rm -f core conftest.err conftest.$ac_objext \ |
| 4879 | conftest$ac_exeext conftest.$ac_ext |
| 4880 | LIBS=$ac_check_lib_save_LIBS |
| 4881 | fi |
| 4882 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_EVP_aes_128_ctr" >&5 |
| 4883 | $as_echo "$ac_cv_lib_crypto_EVP_aes_128_ctr" >&6; } |
| 4884 | if test "x$ac_cv_lib_crypto_EVP_aes_128_ctr" = xyes; then : |
| 4885 | cat >>confdefs.h <<_ACEOF |
| 4886 | #define HAVE_LIBCRYPTO 1 |
| 4887 | _ACEOF |
| 4888 | |
| 4889 | LIBS="-lcrypto $LIBS" |
| 4890 | |
| 4891 | else |
| 4892 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 4893 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 4894 | as_fn_error $? "can't find openssl >1.0.1 crypto lib |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 4895 | See \`config.log' for more details" "$LINENO" 5; } |
| 4896 | fi |
| 4897 | |
jfigus | 7882dd9 | 2013-08-02 16:08:23 -0400 | [diff] [blame] | 4898 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EVP_aes_128_gcm in -lcrypto" >&5 |
| 4899 | $as_echo_n "checking for EVP_aes_128_gcm in -lcrypto... " >&6; } |
| 4900 | if ${ac_cv_lib_crypto_EVP_aes_128_gcm+:} false; then : |
| 4901 | $as_echo_n "(cached) " >&6 |
| 4902 | else |
| 4903 | ac_check_lib_save_LIBS=$LIBS |
| 4904 | LIBS="-lcrypto $LIBS" |
| 4905 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4906 | /* end confdefs.h. */ |
| 4907 | |
| 4908 | /* Override any GCC internal prototype to avoid an error. |
| 4909 | Use char because int might match the return type of a GCC |
| 4910 | builtin and then its argument prototype would still apply. */ |
| 4911 | #ifdef __cplusplus |
| 4912 | extern "C" |
| 4913 | #endif |
| 4914 | char EVP_aes_128_gcm (); |
| 4915 | int |
| 4916 | main () |
| 4917 | { |
| 4918 | return EVP_aes_128_gcm (); |
| 4919 | ; |
| 4920 | return 0; |
| 4921 | } |
| 4922 | _ACEOF |
| 4923 | if ac_fn_c_try_link "$LINENO"; then : |
| 4924 | ac_cv_lib_crypto_EVP_aes_128_gcm=yes |
| 4925 | else |
| 4926 | ac_cv_lib_crypto_EVP_aes_128_gcm=no |
| 4927 | fi |
| 4928 | rm -f core conftest.err conftest.$ac_objext \ |
| 4929 | conftest$ac_exeext conftest.$ac_ext |
| 4930 | LIBS=$ac_check_lib_save_LIBS |
| 4931 | fi |
| 4932 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_EVP_aes_128_gcm" >&5 |
| 4933 | $as_echo "$ac_cv_lib_crypto_EVP_aes_128_gcm" >&6; } |
| 4934 | if test "x$ac_cv_lib_crypto_EVP_aes_128_gcm" = xyes; then : |
| 4935 | cat >>confdefs.h <<_ACEOF |
| 4936 | #define HAVE_LIBCRYPTO 1 |
| 4937 | _ACEOF |
| 4938 | |
| 4939 | LIBS="-lcrypto $LIBS" |
| 4940 | |
| 4941 | else |
| 4942 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 4943 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 4944 | as_fn_error $? "can't find openssl >1.0.1 crypto lib |
| 4945 | See \`config.log' for more details" "$LINENO" 5; } |
| 4946 | fi |
| 4947 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 4948 | |
| 4949 | $as_echo "#define OPENSSL 1" >>confdefs.h |
| 4950 | |
jfigus | 7882dd9 | 2013-08-02 16:08:23 -0400 | [diff] [blame] | 4951 | 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] | 4952 | HMAC_OBJS=crypto/hash/hmac_ossl.o |
| 4953 | USE_OPENSSL=1 |
| 4954 | |
| 4955 | else |
jfigus | a3127b8 | 2014-11-19 14:46:52 -0500 | [diff] [blame] | 4956 | AES_ICM_OBJS="crypto/cipher/aes_icm.o crypto/cipher/aes.o" |
jfigus | 7882dd9 | 2013-08-02 16:08:23 -0400 | [diff] [blame] | 4957 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking which random device to use" >&5 |
| 4958 | $as_echo_n "checking which random device to use... " >&6; } |
jfigus | a6cf208 | 2014-11-21 10:04:03 -0500 | [diff] [blame] | 4959 | if test -n "$DEV_URANDOM"; then |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 4960 | |
| 4961 | cat >>confdefs.h <<_ACEOF |
| 4962 | #define DEV_URANDOM "$DEV_URANDOM" |
| 4963 | _ACEOF |
| 4964 | |
jfigus | a6cf208 | 2014-11-21 10:04:03 -0500 | [diff] [blame] | 4965 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEV_URANDOM" >&5 |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 4966 | $as_echo "$DEV_URANDOM" >&6; } |
jfigus | a6cf208 | 2014-11-21 10:04:03 -0500 | [diff] [blame] | 4967 | else |
| 4968 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: standard rand() function..." >&5 |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 4969 | $as_echo "standard rand() function..." >&6; } |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 4970 | fi |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 4971 | HMAC_OBJS="crypto/hash/hmac.o crypto/hash/sha1.o" |
| 4972 | fi |
| 4973 | |
| 4974 | |
| 4975 | |
Bernardo Torres | 79e38ae | 2014-10-10 05:29:36 -0300 | [diff] [blame] | 4976 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcap_create in -lpcap" >&5 |
| 4977 | $as_echo_n "checking for pcap_create in -lpcap... " >&6; } |
| 4978 | if ${ac_cv_lib_pcap_pcap_create+:} false; then : |
| 4979 | $as_echo_n "(cached) " >&6 |
| 4980 | else |
| 4981 | ac_check_lib_save_LIBS=$LIBS |
| 4982 | LIBS="-lpcap $LIBS" |
| 4983 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4984 | /* end confdefs.h. */ |
| 4985 | |
| 4986 | /* Override any GCC internal prototype to avoid an error. |
| 4987 | Use char because int might match the return type of a GCC |
| 4988 | builtin and then its argument prototype would still apply. */ |
| 4989 | #ifdef __cplusplus |
| 4990 | extern "C" |
| 4991 | #endif |
| 4992 | char pcap_create (); |
| 4993 | int |
| 4994 | main () |
| 4995 | { |
| 4996 | return pcap_create (); |
| 4997 | ; |
| 4998 | return 0; |
| 4999 | } |
| 5000 | _ACEOF |
| 5001 | if ac_fn_c_try_link "$LINENO"; then : |
| 5002 | ac_cv_lib_pcap_pcap_create=yes |
| 5003 | else |
| 5004 | ac_cv_lib_pcap_pcap_create=no |
| 5005 | fi |
| 5006 | rm -f core conftest.err conftest.$ac_objext \ |
| 5007 | conftest$ac_exeext conftest.$ac_ext |
| 5008 | LIBS=$ac_check_lib_save_LIBS |
| 5009 | fi |
| 5010 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pcap_pcap_create" >&5 |
| 5011 | $as_echo "$ac_cv_lib_pcap_pcap_create" >&6; } |
| 5012 | if test "x$ac_cv_lib_pcap_pcap_create" = xyes; then : |
Bernardo Torres | b3c5142 | 2014-10-14 12:40:09 -0300 | [diff] [blame] | 5013 | PCAP=1 |
| 5014 | LIBS="-lpcap $LIBS" |
| 5015 | HAVE_PCAP=1 |
Bernardo Torres | 79e38ae | 2014-10-10 05:29:36 -0300 | [diff] [blame] | 5016 | |
Bernardo Torres | b3c5142 | 2014-10-14 12:40:09 -0300 | [diff] [blame] | 5017 | $as_echo "#define HAVE_PCAP 1" >>confdefs.h |
| 5018 | |
| 5019 | |
Bernardo Torres | 79e38ae | 2014-10-10 05:29:36 -0300 | [diff] [blame] | 5020 | |
| 5021 | fi |
| 5022 | |
Bernardo Torres | 79e38ae | 2014-10-10 05:29:36 -0300 | [diff] [blame] | 5023 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 5024 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use stdout for error reporting" >&5 |
| 5025 | $as_echo_n "checking whether to use stdout for error reporting... " >&6; } |
| 5026 | # Check whether --enable-stdout was given. |
| 5027 | if test "${enable_stdout+set}" = set; then : |
| 5028 | enableval=$enable_stdout; |
David McGrew | b67061f | 2005-09-28 14:23:06 +0000 | [diff] [blame] | 5029 | else |
jfigus | 97a80f4 | 2014-11-04 14:15:40 -0500 | [diff] [blame] | 5030 | enable_stdout=no |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 5031 | fi |
| 5032 | |
David McGrew | b67061f | 2005-09-28 14:23:06 +0000 | [diff] [blame] | 5033 | if test "$enable_stdout" = "yes"; then |
| 5034 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 5035 | $as_echo "#define ERR_REPORTING_STDOUT 1" >>confdefs.h |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 5036 | |
| 5037 | fi |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 5038 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_stdout" >&5 |
| 5039 | $as_echo "$enable_stdout" >&6; } |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 5040 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 5041 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use /dev/console for error reporting" >&5 |
| 5042 | $as_echo_n "checking whether to use /dev/console for error reporting... " >&6; } |
| 5043 | # Check whether --enable-console was given. |
| 5044 | if test "${enable_console+set}" = set; then : |
| 5045 | enableval=$enable_console; |
David McGrew | b67061f | 2005-09-28 14:23:06 +0000 | [diff] [blame] | 5046 | else |
| 5047 | enable_console=no |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 5048 | fi |
| 5049 | |
David McGrew | b67061f | 2005-09-28 14:23:06 +0000 | [diff] [blame] | 5050 | if test "$enable_console" = "yes"; then |
| 5051 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 5052 | $as_echo "#define USE_ERR_REPORTING_FILE 1" >>confdefs.h |
David McGrew | b67061f | 2005-09-28 14:23:06 +0000 | [diff] [blame] | 5053 | |
| 5054 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 5055 | $as_echo "#define ERR_REPORTING_FILE \"/dev/console\"" >>confdefs.h |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 5056 | |
| 5057 | fi |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 5058 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_console" >&5 |
| 5059 | $as_echo "$enable_console" >&6; } |
David McGrew | b67061f | 2005-09-28 14:23:06 +0000 | [diff] [blame] | 5060 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 5061 | 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] | 5062 | |
| 5063 | |
Saúl Ibarra Corretgé | ff3d042 | 2014-10-01 11:24:15 +0200 | [diff] [blame] | 5064 | # Extract the first word of "pkg-config", so it can be a program name with args. |
| 5065 | set dummy pkg-config; ac_word=$2 |
| 5066 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 5067 | $as_echo_n "checking for $ac_word... " >&6; } |
| 5068 | if ${ac_cv_prog_PKG_CONFIG+:} false; then : |
| 5069 | $as_echo_n "(cached) " >&6 |
| 5070 | else |
| 5071 | if test -n "$PKG_CONFIG"; then |
| 5072 | ac_cv_prog_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test. |
| 5073 | else |
| 5074 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5075 | for as_dir in $PATH |
| 5076 | do |
| 5077 | IFS=$as_save_IFS |
| 5078 | test -z "$as_dir" && as_dir=. |
| 5079 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5080 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 5081 | ac_cv_prog_PKG_CONFIG="yes" |
| 5082 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5083 | break 2 |
| 5084 | fi |
| 5085 | done |
| 5086 | done |
| 5087 | IFS=$as_save_IFS |
| 5088 | |
| 5089 | fi |
| 5090 | fi |
| 5091 | PKG_CONFIG=$ac_cv_prog_PKG_CONFIG |
| 5092 | if test -n "$PKG_CONFIG"; then |
| 5093 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 |
| 5094 | $as_echo "$PKG_CONFIG" >&6; } |
| 5095 | else |
| 5096 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5097 | $as_echo "no" >&6; } |
| 5098 | fi |
| 5099 | |
| 5100 | |
| 5101 | if test "x$PKG_CONFIG" != "x"; then |
| 5102 | HAVE_PKG_CONFIG=1 |
jfigus | d196e02 | 2014-11-20 16:43:44 -0500 | [diff] [blame] | 5103 | ac_config_files="$ac_config_files libsrtp2.pc" |
Saúl Ibarra Corretgé | ff3d042 | 2014-10-01 11:24:15 +0200 | [diff] [blame] | 5104 | |
| 5105 | else |
| 5106 | HAVE_PKG_CONFIG=0 |
| 5107 | fi |
| 5108 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 5109 | ac_config_files="$ac_config_files Makefile crypto/Makefile doc/Makefile" |
| 5110 | |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 5111 | cat >confcache <<\_ACEOF |
| 5112 | # This file is a shell script that caches the results of configure |
| 5113 | # tests run on this system so they can be shared between configure |
| 5114 | # scripts and configure runs, see configure's option --config-cache. |
| 5115 | # It is not useful on other systems. If it contains results you don't |
| 5116 | # want to keep, you may remove or edit it. |
| 5117 | # |
| 5118 | # config.status only pays attention to the cache file if you give it |
| 5119 | # the --recheck option to rerun configure. |
| 5120 | # |
| 5121 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
| 5122 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
| 5123 | # following values. |
| 5124 | |
| 5125 | _ACEOF |
| 5126 | |
| 5127 | # The following way of writing the cache mishandles newlines in values, |
| 5128 | # but we know of no workaround that is simple, portable, and efficient. |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 5129 | # So, we kill variables containing newlines. |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 5130 | # Ultrix sh set writes to stderr and can't be redirected directly, |
| 5131 | # 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] | 5132 | ( |
| 5133 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do |
| 5134 | eval ac_val=\$$ac_var |
| 5135 | case $ac_val in #( |
| 5136 | *${as_nl}*) |
| 5137 | case $ac_var in #( |
| 5138 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
| 5139 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
| 5140 | esac |
| 5141 | case $ac_var in #( |
| 5142 | _ | IFS | as_nl) ;; #( |
| 5143 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
| 5144 | *) { eval $ac_var=; unset $ac_var;} ;; |
| 5145 | esac ;; |
| 5146 | esac |
| 5147 | done |
| 5148 | |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 5149 | (set) 2>&1 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 5150 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
| 5151 | *${as_nl}ac_space=\ *) |
| 5152 | # `set' does not quote correctly, so add quotes: double-quote |
| 5153 | # substitution turns \\\\ into \\, and sed turns \\ into \. |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 5154 | sed -n \ |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame] | 5155 | "s/'/'\\\\''/g; |
| 5156 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 5157 | ;; #( |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 5158 | *) |
| 5159 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 5160 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 5161 | ;; |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 5162 | esac | |
| 5163 | sort |
| 5164 | ) | |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 5165 | sed ' |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 5166 | /^ac_cv_env_/b end |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 5167 | t clear |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 5168 | :clear |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 5169 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
| 5170 | t end |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 5171 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
| 5172 | :end' >>confcache |
| 5173 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else |
| 5174 | if test -w "$cache_file"; then |
| 5175 | if test "x$cache_file" != "x/dev/null"; then |
| 5176 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 |
| 5177 | $as_echo "$as_me: updating cache $cache_file" >&6;} |
| 5178 | if test ! -f "$cache_file" || test -h "$cache_file"; then |
| 5179 | cat confcache >"$cache_file" |
| 5180 | else |
| 5181 | case $cache_file in #( |
| 5182 | */* | ?:*) |
| 5183 | mv -f confcache "$cache_file"$$ && |
| 5184 | mv -f "$cache_file"$$ "$cache_file" ;; #( |
| 5185 | *) |
| 5186 | mv -f confcache "$cache_file" ;; |
| 5187 | esac |
| 5188 | fi |
| 5189 | fi |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 5190 | else |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 5191 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 |
| 5192 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 5193 | fi |
| 5194 | fi |
| 5195 | rm -f confcache |
| 5196 | |
| 5197 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
| 5198 | # Let make expand exec_prefix. |
| 5199 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
| 5200 | |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 5201 | DEFS=-DHAVE_CONFIG_H |
| 5202 | |
| 5203 | ac_libobjs= |
| 5204 | ac_ltlibobjs= |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 5205 | U= |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 5206 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
| 5207 | # 1. Remove the extension, and $U if already installed. |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 5208 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
| 5209 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` |
| 5210 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
| 5211 | # will be set to the directory where LIBOBJS objects are built. |
| 5212 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" |
| 5213 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 5214 | done |
| 5215 | LIBOBJS=$ac_libobjs |
| 5216 | |
| 5217 | LTLIBOBJS=$ac_ltlibobjs |
| 5218 | |
| 5219 | |
| 5220 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 5221 | |
| 5222 | : "${CONFIG_STATUS=./config.status}" |
| 5223 | ac_write_fail=0 |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 5224 | ac_clean_files_save=$ac_clean_files |
| 5225 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 5226 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 |
| 5227 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} |
| 5228 | as_write_fail=0 |
| 5229 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 5230 | #! $SHELL |
| 5231 | # Generated by $as_me. |
| 5232 | # Run this file to recreate the current configuration. |
| 5233 | # Compiler output produced by configure, useful for debugging |
| 5234 | # configure, is in config.log if it exists. |
| 5235 | |
| 5236 | debug=false |
| 5237 | ac_cs_recheck=false |
| 5238 | ac_cs_silent=false |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 5239 | |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 5240 | SHELL=\${CONFIG_SHELL-$SHELL} |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 5241 | export SHELL |
| 5242 | _ASEOF |
| 5243 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 |
| 5244 | ## -------------------- ## |
| 5245 | ## M4sh Initialization. ## |
| 5246 | ## -------------------- ## |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 5247 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 5248 | # Be more Bourne compatible |
| 5249 | DUALCASE=1; export DUALCASE # for MKS sh |
| 5250 | 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] | 5251 | emulate sh |
| 5252 | NULLCMD=: |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 5253 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 5254 | # is contrary to our usage. Disable this feature. |
| 5255 | alias -g '${1+"$@"}'='"$@"' |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 5256 | setopt NO_GLOB_SUBST |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 5257 | else |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 5258 | case `(set -o) 2>/dev/null` in #( |
| 5259 | *posix*) : |
| 5260 | set -o posix ;; #( |
| 5261 | *) : |
| 5262 | ;; |
| 5263 | esac |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 5264 | fi |
| 5265 | |
| 5266 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 5267 | as_nl=' |
| 5268 | ' |
| 5269 | export as_nl |
| 5270 | # Printing a long string crashes Solaris 7 /usr/bin/printf. |
| 5271 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
| 5272 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo |
| 5273 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo |
| 5274 | # Prefer a ksh shell builtin over an external printf program on Solaris, |
| 5275 | # but without wasting forks for bash or zsh. |
| 5276 | if test -z "$BASH_VERSION$ZSH_VERSION" \ |
| 5277 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then |
| 5278 | as_echo='print -r --' |
| 5279 | as_echo_n='print -rn --' |
| 5280 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then |
| 5281 | as_echo='printf %s\n' |
| 5282 | as_echo_n='printf %s' |
| 5283 | else |
| 5284 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then |
| 5285 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' |
| 5286 | as_echo_n='/usr/ucb/echo -n' |
| 5287 | else |
| 5288 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
| 5289 | as_echo_n_body='eval |
| 5290 | arg=$1; |
| 5291 | case $arg in #( |
| 5292 | *"$as_nl"*) |
| 5293 | expr "X$arg" : "X\\(.*\\)$as_nl"; |
| 5294 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; |
| 5295 | esac; |
| 5296 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" |
| 5297 | ' |
| 5298 | export as_echo_n_body |
| 5299 | as_echo_n='sh -c $as_echo_n_body as_echo' |
| 5300 | fi |
| 5301 | export as_echo_body |
| 5302 | as_echo='sh -c $as_echo_body as_echo' |
| 5303 | fi |
| 5304 | |
| 5305 | # The user is always right. |
| 5306 | if test "${PATH_SEPARATOR+set}" != set; then |
| 5307 | PATH_SEPARATOR=: |
| 5308 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { |
| 5309 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || |
| 5310 | PATH_SEPARATOR=';' |
| 5311 | } |
| 5312 | fi |
| 5313 | |
| 5314 | |
| 5315 | # IFS |
| 5316 | # We need space, tab and new line, in precisely that order. Quoting is |
| 5317 | # there to prevent editors from complaining about space-tab. |
| 5318 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
| 5319 | # splitting by setting IFS to empty value.) |
| 5320 | IFS=" "" $as_nl" |
| 5321 | |
| 5322 | # Find who we are. Look in the path if we contain no directory separator. |
| 5323 | as_myself= |
| 5324 | case $0 in #(( |
| 5325 | *[\\/]* ) as_myself=$0 ;; |
| 5326 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5327 | for as_dir in $PATH |
| 5328 | do |
| 5329 | IFS=$as_save_IFS |
| 5330 | test -z "$as_dir" && as_dir=. |
| 5331 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 5332 | done |
| 5333 | IFS=$as_save_IFS |
| 5334 | |
| 5335 | ;; |
| 5336 | esac |
| 5337 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 5338 | # in which case we are not to be found in the path. |
| 5339 | if test "x$as_myself" = x; then |
| 5340 | as_myself=$0 |
| 5341 | fi |
| 5342 | if test ! -f "$as_myself"; then |
| 5343 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
| 5344 | exit 1 |
| 5345 | fi |
| 5346 | |
| 5347 | # Unset variables that we do not need and which cause bugs (e.g. in |
| 5348 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" |
| 5349 | # suppresses any "Segmentation fault" message there. '((' could |
| 5350 | # trigger a bug in pdksh 5.2.14. |
| 5351 | for as_var in BASH_ENV ENV MAIL MAILPATH |
| 5352 | do eval test x\${$as_var+set} = xset \ |
| 5353 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : |
| 5354 | done |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 5355 | PS1='$ ' |
| 5356 | PS2='> ' |
| 5357 | PS4='+ ' |
| 5358 | |
| 5359 | # NLS nuisances. |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 5360 | LC_ALL=C |
| 5361 | export LC_ALL |
| 5362 | LANGUAGE=C |
| 5363 | export LANGUAGE |
jfigus | a14b5a0 | 2013-03-29 12:24:12 -0400 | [diff] [blame] | 5364 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 5365 | # CDPATH. |
| 5366 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
| 5367 | |
| 5368 | |
| 5369 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
| 5370 | # ---------------------------------------- |
| 5371 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
| 5372 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the |
| 5373 | # script with STATUS, using 1 if that was 0. |
| 5374 | as_fn_error () |
| 5375 | { |
| 5376 | as_status=$1; test $as_status -eq 0 && as_status=1 |
| 5377 | if test "$4"; then |
| 5378 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 5379 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 |
| 5380 | fi |
| 5381 | $as_echo "$as_me: error: $2" >&2 |
| 5382 | as_fn_exit $as_status |
| 5383 | } # as_fn_error |
| 5384 | |
| 5385 | |
| 5386 | # as_fn_set_status STATUS |
| 5387 | # ----------------------- |
| 5388 | # Set $? to STATUS, without forking. |
| 5389 | as_fn_set_status () |
| 5390 | { |
| 5391 | return $1 |
| 5392 | } # as_fn_set_status |
| 5393 | |
| 5394 | # as_fn_exit STATUS |
| 5395 | # ----------------- |
| 5396 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. |
| 5397 | as_fn_exit () |
| 5398 | { |
| 5399 | set +e |
| 5400 | as_fn_set_status $1 |
| 5401 | exit $1 |
| 5402 | } # as_fn_exit |
| 5403 | |
| 5404 | # as_fn_unset VAR |
| 5405 | # --------------- |
| 5406 | # Portably unset VAR. |
| 5407 | as_fn_unset () |
| 5408 | { |
| 5409 | { eval $1=; unset $1;} |
| 5410 | } |
| 5411 | as_unset=as_fn_unset |
| 5412 | # as_fn_append VAR VALUE |
| 5413 | # ---------------------- |
| 5414 | # Append the text in VALUE to the end of the definition contained in VAR. Take |
| 5415 | # advantage of any shell optimizations that allow amortized linear growth over |
| 5416 | # repeated appends, instead of the typical quadratic growth present in naive |
| 5417 | # implementations. |
| 5418 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : |
| 5419 | eval 'as_fn_append () |
| 5420 | { |
| 5421 | eval $1+=\$2 |
| 5422 | }' |
| 5423 | else |
| 5424 | as_fn_append () |
| 5425 | { |
| 5426 | eval $1=\$$1\$2 |
| 5427 | } |
| 5428 | fi # as_fn_append |
| 5429 | |
| 5430 | # as_fn_arith ARG... |
| 5431 | # ------------------ |
| 5432 | # Perform arithmetic evaluation on the ARGs, and store the result in the |
| 5433 | # global $as_val. Take advantage of shells that can avoid forks. The arguments |
| 5434 | # must be portable across $(()) and expr. |
| 5435 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : |
| 5436 | eval 'as_fn_arith () |
| 5437 | { |
| 5438 | as_val=$(( $* )) |
| 5439 | }' |
| 5440 | else |
| 5441 | as_fn_arith () |
| 5442 | { |
| 5443 | as_val=`expr "$@" || test $? -eq 1` |
| 5444 | } |
| 5445 | fi # as_fn_arith |
| 5446 | |
| 5447 | |
| 5448 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 5449 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 5450 | as_expr=expr |
| 5451 | else |
| 5452 | as_expr=false |
| 5453 | fi |
| 5454 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 5455 | 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] | 5456 | as_basename=basename |
| 5457 | else |
| 5458 | as_basename=false |
| 5459 | fi |
| 5460 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 5461 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
| 5462 | as_dirname=dirname |
| 5463 | else |
| 5464 | as_dirname=false |
| 5465 | fi |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 5466 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 5467 | as_me=`$as_basename -- "$0" || |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 5468 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 5469 | X"$0" : 'X\(//\)$' \| \ |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 5470 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
| 5471 | $as_echo X/"$0" | |
| 5472 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
| 5473 | s//\1/ |
| 5474 | q |
| 5475 | } |
| 5476 | /^X\/\(\/\/\)$/{ |
| 5477 | s//\1/ |
| 5478 | q |
| 5479 | } |
| 5480 | /^X\/\(\/\).*/{ |
| 5481 | s//\1/ |
| 5482 | q |
| 5483 | } |
| 5484 | s/.*/./; q'` |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 5485 | |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 5486 | # Avoid depending upon Character Ranges. |
| 5487 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 5488 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 5489 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 5490 | as_cr_digits='0123456789' |
| 5491 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
| 5492 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 5493 | ECHO_C= ECHO_N= ECHO_T= |
| 5494 | case `echo -n x` in #((((( |
| 5495 | -n*) |
| 5496 | case `echo 'xy\c'` in |
| 5497 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
| 5498 | xy) ECHO_C='\c';; |
| 5499 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null |
| 5500 | ECHO_T=' ';; |
| 5501 | esac;; |
| 5502 | *) |
| 5503 | ECHO_N='-n';; |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 5504 | esac |
| 5505 | |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 5506 | rm -f conf$$ conf$$.exe conf$$.file |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 5507 | if test -d conf$$.dir; then |
| 5508 | rm -f conf$$.dir/conf$$.file |
| 5509 | else |
| 5510 | rm -f conf$$.dir |
| 5511 | mkdir conf$$.dir 2>/dev/null |
| 5512 | fi |
| 5513 | if (echo >conf$$.file) 2>/dev/null; then |
| 5514 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
Cullen Jennings | 52c5cd3 | 2013-05-01 18:07:29 -0600 | [diff] [blame] | 5515 | as_ln_s='ln -s' |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 5516 | # ... but there are two gotchas: |
| 5517 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
| 5518 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
| 5519 | # In both cases, we have to default to `cp -pR'. |
| 5520 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
| 5521 | as_ln_s='cp -pR' |
| 5522 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 5523 | as_ln_s=ln |
| 5524 | else |
| 5525 | as_ln_s='cp -pR' |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 5526 | fi |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 5527 | else |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 5528 | as_ln_s='cp -pR' |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 5529 | fi |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 5530 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
| 5531 | rmdir conf$$.dir 2>/dev/null |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 5532 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 5533 | |
| 5534 | # as_fn_mkdir_p |
| 5535 | # ------------- |
| 5536 | # Create "$as_dir" as a directory, including parents if necessary. |
| 5537 | as_fn_mkdir_p () |
| 5538 | { |
| 5539 | |
| 5540 | case $as_dir in #( |
| 5541 | -*) as_dir=./$as_dir;; |
| 5542 | esac |
| 5543 | test -d "$as_dir" || eval $as_mkdir_p || { |
| 5544 | as_dirs= |
| 5545 | while :; do |
| 5546 | case $as_dir in #( |
| 5547 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
| 5548 | *) as_qdir=$as_dir;; |
| 5549 | esac |
| 5550 | as_dirs="'$as_qdir' $as_dirs" |
| 5551 | as_dir=`$as_dirname -- "$as_dir" || |
| 5552 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 5553 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 5554 | X"$as_dir" : 'X\(//\)$' \| \ |
| 5555 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
| 5556 | $as_echo X"$as_dir" | |
| 5557 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 5558 | s//\1/ |
| 5559 | q |
| 5560 | } |
| 5561 | /^X\(\/\/\)[^/].*/{ |
| 5562 | s//\1/ |
| 5563 | q |
| 5564 | } |
| 5565 | /^X\(\/\/\)$/{ |
| 5566 | s//\1/ |
| 5567 | q |
| 5568 | } |
| 5569 | /^X\(\/\).*/{ |
| 5570 | s//\1/ |
| 5571 | q |
| 5572 | } |
| 5573 | s/.*/./; q'` |
| 5574 | test -d "$as_dir" && break |
| 5575 | done |
| 5576 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
| 5577 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
| 5578 | |
| 5579 | |
| 5580 | } # as_fn_mkdir_p |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 5581 | if mkdir -p . 2>/dev/null; then |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 5582 | as_mkdir_p='mkdir -p "$as_dir"' |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 5583 | else |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame] | 5584 | test -d ./-p && rmdir ./-p |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 5585 | as_mkdir_p=false |
| 5586 | fi |
| 5587 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 5588 | |
| 5589 | # as_fn_executable_p FILE |
| 5590 | # ----------------------- |
| 5591 | # Test if FILE is an executable regular file. |
| 5592 | as_fn_executable_p () |
| 5593 | { |
| 5594 | test -f "$1" && test -x "$1" |
| 5595 | } # as_fn_executable_p |
| 5596 | as_test_x='test -x' |
| 5597 | as_executable_p=as_fn_executable_p |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 5598 | |
| 5599 | # Sed expression to map a string onto a valid CPP name. |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame] | 5600 | 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] | 5601 | |
| 5602 | # Sed expression to map a string onto a valid variable name. |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame] | 5603 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 5604 | |
| 5605 | |
Cullen Jennings | 52c5cd3 | 2013-05-01 18:07:29 -0600 | [diff] [blame] | 5606 | exec 6>&1 |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 5607 | ## ----------------------------------- ## |
| 5608 | ## Main body of $CONFIG_STATUS script. ## |
| 5609 | ## ----------------------------------- ## |
| 5610 | _ASEOF |
| 5611 | 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] | 5612 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 5613 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 5614 | # 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] | 5615 | # report actual input values of CONFIG_FILES etc. instead of their |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 5616 | # values after options handling. |
| 5617 | ac_log=" |
jfigus | d196e02 | 2014-11-20 16:43:44 -0500 | [diff] [blame] | 5618 | This file was extended by libsrtp2 $as_me 2.0.0-pre, which was |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 5619 | generated by GNU Autoconf 2.69. Invocation command line was |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 5620 | |
| 5621 | CONFIG_FILES = $CONFIG_FILES |
| 5622 | CONFIG_HEADERS = $CONFIG_HEADERS |
| 5623 | CONFIG_LINKS = $CONFIG_LINKS |
| 5624 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
| 5625 | $ $0 $@ |
| 5626 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 5627 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 5628 | " |
| 5629 | |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 5630 | _ACEOF |
| 5631 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 5632 | case $ac_config_files in *" |
| 5633 | "*) set x $ac_config_files; shift; ac_config_files=$*;; |
| 5634 | esac |
| 5635 | |
| 5636 | case $ac_config_headers in *" |
| 5637 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;; |
| 5638 | esac |
| 5639 | |
| 5640 | |
| 5641 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 5642 | # Files that config.status was made for. |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 5643 | config_files="$ac_config_files" |
| 5644 | config_headers="$ac_config_headers" |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 5645 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 5646 | _ACEOF |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 5647 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 5648 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 5649 | ac_cs_usage="\ |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 5650 | \`$as_me' instantiates files and other configuration actions |
| 5651 | from templates according to the current configuration. Unless the files |
| 5652 | and actions are specified as TAGs, all are instantiated by default. |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 5653 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 5654 | Usage: $0 [OPTION]... [TAG]... |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 5655 | |
| 5656 | -h, --help print this help, then exit |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 5657 | -V, --version print version number and configuration settings, then exit |
| 5658 | --config print configuration, then exit |
| 5659 | -q, --quiet, --silent |
| 5660 | do not print progress messages |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 5661 | -d, --debug don't remove temporary files |
| 5662 | --recheck update $as_me by reconfiguring in the same conditions |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 5663 | --file=FILE[:TEMPLATE] |
| 5664 | instantiate the configuration file FILE |
| 5665 | --header=FILE[:TEMPLATE] |
| 5666 | instantiate the configuration header FILE |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 5667 | |
| 5668 | Configuration files: |
| 5669 | $config_files |
| 5670 | |
| 5671 | Configuration headers: |
| 5672 | $config_headers |
| 5673 | |
Saúl Ibarra Corretgé | ff3d042 | 2014-10-01 11:24:15 +0200 | [diff] [blame] | 5674 | Report bugs to <https://github.com/cisco/libsrtp/issues>." |
Cullen Jennings | 52c5cd3 | 2013-05-01 18:07:29 -0600 | [diff] [blame] | 5675 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 5676 | _ACEOF |
| 5677 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 5678 | ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 5679 | ac_cs_version="\\ |
jfigus | d196e02 | 2014-11-20 16:43:44 -0500 | [diff] [blame] | 5680 | libsrtp2 config.status 2.0.0-pre |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 5681 | configured by $0, generated by GNU Autoconf 2.69, |
| 5682 | with options \\"\$ac_cs_config\\" |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 5683 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 5684 | Copyright (C) 2012 Free Software Foundation, Inc. |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 5685 | This config.status script is free software; the Free Software Foundation |
| 5686 | gives unlimited permission to copy, distribute and modify it." |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 5687 | |
| 5688 | ac_pwd='$ac_pwd' |
| 5689 | srcdir='$srcdir' |
| 5690 | INSTALL='$INSTALL' |
| 5691 | test -n "\$AWK" || AWK=awk |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 5692 | _ACEOF |
| 5693 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 5694 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 5695 | # The default lists apply if the user does not specify any file. |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 5696 | ac_need_defaults=: |
| 5697 | while test $# != 0 |
| 5698 | do |
| 5699 | case $1 in |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 5700 | --*=?*) |
| 5701 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
| 5702 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 5703 | ac_shift=: |
| 5704 | ;; |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 5705 | --*=) |
| 5706 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
| 5707 | ac_optarg= |
| 5708 | ac_shift=: |
| 5709 | ;; |
| 5710 | *) |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 5711 | ac_option=$1 |
| 5712 | ac_optarg=$2 |
| 5713 | ac_shift=shift |
| 5714 | ;; |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 5715 | esac |
| 5716 | |
| 5717 | case $ac_option in |
| 5718 | # Handling of the options. |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 5719 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
| 5720 | ac_cs_recheck=: ;; |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 5721 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
| 5722 | $as_echo "$ac_cs_version"; exit ;; |
| 5723 | --config | --confi | --conf | --con | --co | --c ) |
| 5724 | $as_echo "$ac_cs_config"; exit ;; |
| 5725 | --debug | --debu | --deb | --de | --d | -d ) |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 5726 | debug=: ;; |
| 5727 | --file | --fil | --fi | --f ) |
| 5728 | $ac_shift |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 5729 | case $ac_optarg in |
| 5730 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 5731 | '') as_fn_error $? "missing file argument" ;; |
| 5732 | esac |
| 5733 | as_fn_append CONFIG_FILES " '$ac_optarg'" |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 5734 | ac_need_defaults=false;; |
| 5735 | --header | --heade | --head | --hea ) |
| 5736 | $ac_shift |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 5737 | case $ac_optarg in |
| 5738 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 5739 | esac |
| 5740 | as_fn_append CONFIG_HEADERS " '$ac_optarg'" |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 5741 | ac_need_defaults=false;; |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 5742 | --he | --h) |
| 5743 | # Conflict between --help and --header |
| 5744 | as_fn_error $? "ambiguous option: \`$1' |
| 5745 | Try \`$0 --help' for more information.";; |
| 5746 | --help | --hel | -h ) |
| 5747 | $as_echo "$ac_cs_usage"; exit ;; |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 5748 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 5749 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
| 5750 | ac_cs_silent=: ;; |
| 5751 | |
| 5752 | # This is an error. |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 5753 | -*) as_fn_error $? "unrecognized option: \`$1' |
| 5754 | Try \`$0 --help' for more information." ;; |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 5755 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 5756 | *) as_fn_append ac_config_targets " $1" |
| 5757 | ac_need_defaults=false ;; |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 5758 | |
| 5759 | esac |
| 5760 | shift |
| 5761 | done |
| 5762 | |
| 5763 | ac_configure_extra_args= |
| 5764 | |
| 5765 | if $ac_cs_silent; then |
| 5766 | exec 6>/dev/null |
| 5767 | ac_configure_extra_args="$ac_configure_extra_args --silent" |
| 5768 | fi |
| 5769 | |
| 5770 | _ACEOF |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 5771 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 5772 | if \$ac_cs_recheck; then |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 5773 | set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
| 5774 | shift |
| 5775 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 |
| 5776 | CONFIG_SHELL='$SHELL' |
| 5777 | export CONFIG_SHELL |
| 5778 | exec "\$@" |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 5779 | fi |
| 5780 | |
| 5781 | _ACEOF |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 5782 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 5783 | exec 5>>config.log |
| 5784 | { |
| 5785 | echo |
| 5786 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
| 5787 | ## Running $as_me. ## |
| 5788 | _ASBOX |
| 5789 | $as_echo "$ac_log" |
| 5790 | } >&5 |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 5791 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 5792 | _ACEOF |
| 5793 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 5794 | _ACEOF |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 5795 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 5796 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 5797 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 5798 | # Handling of arguments. |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 5799 | for ac_config_target in $ac_config_targets |
| 5800 | do |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 5801 | case $ac_config_target in |
| 5802 | "crypto/include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS crypto/include/config.h:config_in.h" ;; |
jfigus | d196e02 | 2014-11-20 16:43:44 -0500 | [diff] [blame] | 5803 | "libsrtp2.pc") CONFIG_FILES="$CONFIG_FILES libsrtp2.pc" ;; |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 5804 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; |
| 5805 | "crypto/Makefile") CONFIG_FILES="$CONFIG_FILES crypto/Makefile" ;; |
| 5806 | "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; |
| 5807 | |
| 5808 | *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 5809 | esac |
| 5810 | done |
| 5811 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 5812 | |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 5813 | # If the user did not use the arguments to specify the items to instantiate, |
| 5814 | # then the envvar interface is used. Set only those that are not. |
| 5815 | # We use the long form for the default assignment because of an extremely |
| 5816 | # bizarre bug on SunOS 4.1.3. |
| 5817 | if $ac_need_defaults; then |
| 5818 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
| 5819 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
| 5820 | fi |
| 5821 | |
| 5822 | # Have a temporary directory for convenience. Make it in the build tree |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 5823 | # 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] | 5824 | # creating and moving files from /tmp can sometimes cause problems. |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 5825 | # Hook for its removal unless debugging. |
| 5826 | # Note that there is a small window in which the directory will not be cleaned: |
| 5827 | # after its creation but before its name has been assigned to `$tmp'. |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 5828 | $debug || |
| 5829 | { |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 5830 | tmp= ac_tmp= |
| 5831 | trap 'exit_status=$? |
| 5832 | : "${ac_tmp:=$tmp}" |
| 5833 | { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status |
| 5834 | ' 0 |
| 5835 | trap 'as_fn_exit 1' 1 2 13 15 |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 5836 | } |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 5837 | # Create a (secure) tmp directory for tmp files. |
| 5838 | |
| 5839 | { |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 5840 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
| 5841 | test -d "$tmp" |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 5842 | } || |
| 5843 | { |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 5844 | tmp=./conf$$-$RANDOM |
| 5845 | (umask 077 && mkdir "$tmp") |
| 5846 | } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 |
| 5847 | ac_tmp=$tmp |
| 5848 | |
| 5849 | # Set up the scripts for CONFIG_FILES section. |
| 5850 | # No need to generate them if there are no CONFIG_FILES. |
| 5851 | # This happens for instance with `./config.status config.h'. |
| 5852 | if test -n "$CONFIG_FILES"; then |
| 5853 | |
| 5854 | |
| 5855 | ac_cr=`echo X | tr X '\015'` |
| 5856 | # On cygwin, bash can eat \r inside `` if the user requested igncr. |
| 5857 | # But we know of no other shell where ac_cr would be empty at this |
| 5858 | # point, so we can use a bashism as a fallback. |
| 5859 | if test "x$ac_cr" = x; then |
| 5860 | eval ac_cr=\$\'\\r\' |
| 5861 | fi |
| 5862 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` |
| 5863 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then |
| 5864 | ac_cs_awk_cr='\\r' |
| 5865 | else |
| 5866 | ac_cs_awk_cr=$ac_cr |
| 5867 | fi |
| 5868 | |
| 5869 | echo 'BEGIN {' >"$ac_tmp/subs1.awk" && |
| 5870 | _ACEOF |
| 5871 | |
| 5872 | |
Cullen Jennings | 52c5cd3 | 2013-05-01 18:07:29 -0600 | [diff] [blame] | 5873 | { |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 5874 | echo "cat >conf$$subs.awk <<_ACEOF" && |
| 5875 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && |
| 5876 | echo "_ACEOF" |
| 5877 | } >conf$$subs.sh || |
| 5878 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
| 5879 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` |
| 5880 | ac_delim='%!_!# ' |
| 5881 | for ac_last_try in false false false false false :; do |
| 5882 | . ./conf$$subs.sh || |
| 5883 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
| 5884 | |
| 5885 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` |
| 5886 | if test $ac_delim_n = $ac_delim_num; then |
| 5887 | break |
| 5888 | elif $ac_last_try; then |
| 5889 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
| 5890 | else |
| 5891 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
| 5892 | fi |
| 5893 | done |
| 5894 | rm -f conf$$subs.sh |
| 5895 | |
| 5896 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 5897 | cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && |
| 5898 | _ACEOF |
| 5899 | sed -n ' |
| 5900 | h |
| 5901 | s/^/S["/; s/!.*/"]=/ |
| 5902 | p |
| 5903 | g |
| 5904 | s/^[^!]*!// |
| 5905 | :repl |
| 5906 | t repl |
| 5907 | s/'"$ac_delim"'$// |
| 5908 | t delim |
| 5909 | :nl |
| 5910 | h |
| 5911 | s/\(.\{148\}\)..*/\1/ |
| 5912 | t more1 |
| 5913 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ |
| 5914 | p |
| 5915 | n |
| 5916 | b repl |
| 5917 | :more1 |
| 5918 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ |
| 5919 | p |
| 5920 | g |
| 5921 | s/.\{148\}// |
| 5922 | t nl |
| 5923 | :delim |
| 5924 | h |
| 5925 | s/\(.\{148\}\)..*/\1/ |
| 5926 | t more2 |
| 5927 | s/["\\]/\\&/g; s/^/"/; s/$/"/ |
| 5928 | p |
| 5929 | b |
| 5930 | :more2 |
| 5931 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ |
| 5932 | p |
| 5933 | g |
| 5934 | s/.\{148\}// |
| 5935 | t delim |
| 5936 | ' <conf$$subs.awk | sed ' |
| 5937 | /^[^""]/{ |
| 5938 | N |
| 5939 | s/\n// |
| 5940 | } |
| 5941 | ' >>$CONFIG_STATUS || ac_write_fail=1 |
| 5942 | rm -f conf$$subs.awk |
| 5943 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 5944 | _ACAWK |
| 5945 | cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && |
| 5946 | for (key in S) S_is_set[key] = 1 |
| 5947 | FS = "" |
| 5948 | |
| 5949 | } |
| 5950 | { |
| 5951 | line = $ 0 |
| 5952 | nfields = split(line, field, "@") |
| 5953 | substed = 0 |
| 5954 | len = length(field[1]) |
| 5955 | for (i = 2; i < nfields; i++) { |
| 5956 | key = field[i] |
| 5957 | keylen = length(key) |
| 5958 | if (S_is_set[key]) { |
| 5959 | value = S[key] |
| 5960 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) |
| 5961 | len += length(value) + length(field[++i]) |
| 5962 | substed = 1 |
| 5963 | } else |
| 5964 | len += 1 + keylen |
| 5965 | } |
| 5966 | |
| 5967 | print line |
Cullen Jennings | 52c5cd3 | 2013-05-01 18:07:29 -0600 | [diff] [blame] | 5968 | } |
jfigus | a14b5a0 | 2013-03-29 12:24:12 -0400 | [diff] [blame] | 5969 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 5970 | _ACAWK |
| 5971 | _ACEOF |
| 5972 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 5973 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then |
| 5974 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" |
| 5975 | else |
| 5976 | cat |
| 5977 | fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ |
| 5978 | || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 |
jfigus | a14b5a0 | 2013-03-29 12:24:12 -0400 | [diff] [blame] | 5979 | _ACEOF |
| 5980 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 5981 | # VPATH may cause trouble with some makes, so we remove sole $(srcdir), |
| 5982 | # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and |
| 5983 | # trailing colons and then remove the whole line if VPATH becomes empty |
| 5984 | # (actually we leave an empty line to preserve line numbers). |
| 5985 | if test "x$srcdir" = x.; then |
| 5986 | ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ |
| 5987 | h |
| 5988 | s/// |
| 5989 | s/^/:/ |
| 5990 | s/[ ]*$/:/ |
| 5991 | s/:\$(srcdir):/:/g |
| 5992 | s/:\${srcdir}:/:/g |
| 5993 | s/:@srcdir@:/:/g |
| 5994 | s/^:*// |
| 5995 | s/:*$// |
| 5996 | x |
| 5997 | s/\(=[ ]*\).*/\1/ |
| 5998 | G |
| 5999 | s/\n// |
| 6000 | s/^[^=]*=[ ]*$// |
| 6001 | }' |
| 6002 | fi |
jfigus | a14b5a0 | 2013-03-29 12:24:12 -0400 | [diff] [blame] | 6003 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 6004 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 6005 | fi # test -n "$CONFIG_FILES" |
| 6006 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 6007 | # Set up the scripts for CONFIG_HEADERS section. |
| 6008 | # No need to generate them if there are no CONFIG_HEADERS. |
| 6009 | # This happens for instance with `./config.status Makefile'. |
| 6010 | if test -n "$CONFIG_HEADERS"; then |
| 6011 | cat >"$ac_tmp/defines.awk" <<\_ACAWK || |
| 6012 | BEGIN { |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 6013 | _ACEOF |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 6014 | |
| 6015 | # Transform confdefs.h into an awk script `defines.awk', embedded as |
| 6016 | # here-document in config.status, that substitutes the proper values into |
| 6017 | # config.h.in to produce config.h. |
| 6018 | |
| 6019 | # Create a delimiter string that does not exist in confdefs.h, to ease |
| 6020 | # handling of long lines. |
| 6021 | ac_delim='%!_!# ' |
| 6022 | for ac_last_try in false false :; do |
| 6023 | ac_tt=`sed -n "/$ac_delim/p" confdefs.h` |
| 6024 | if test -z "$ac_tt"; then |
| 6025 | break |
| 6026 | elif $ac_last_try; then |
| 6027 | as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 |
| 6028 | else |
| 6029 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
| 6030 | fi |
| 6031 | done |
| 6032 | |
| 6033 | # For the awk script, D is an array of macro values keyed by name, |
| 6034 | # likewise P contains macro parameters if any. Preserve backslash |
| 6035 | # newline sequences. |
| 6036 | |
| 6037 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* |
| 6038 | sed -n ' |
| 6039 | s/.\{148\}/&'"$ac_delim"'/g |
| 6040 | t rset |
| 6041 | :rset |
| 6042 | s/^[ ]*#[ ]*define[ ][ ]*/ / |
| 6043 | t def |
| 6044 | d |
| 6045 | :def |
| 6046 | s/\\$// |
| 6047 | t bsnl |
| 6048 | s/["\\]/\\&/g |
| 6049 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ |
| 6050 | D["\1"]=" \3"/p |
| 6051 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p |
| 6052 | d |
| 6053 | :bsnl |
| 6054 | s/["\\]/\\&/g |
| 6055 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ |
| 6056 | D["\1"]=" \3\\\\\\n"\\/p |
| 6057 | t cont |
| 6058 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p |
| 6059 | t cont |
| 6060 | d |
| 6061 | :cont |
| 6062 | n |
| 6063 | s/.\{148\}/&'"$ac_delim"'/g |
| 6064 | t clear |
| 6065 | :clear |
| 6066 | s/\\$// |
| 6067 | t bsnlc |
| 6068 | s/["\\]/\\&/g; s/^/"/; s/$/"/p |
| 6069 | d |
| 6070 | :bsnlc |
| 6071 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p |
| 6072 | b cont |
| 6073 | ' <confdefs.h | sed ' |
| 6074 | s/'"$ac_delim"'/"\\\ |
| 6075 | "/g' >>$CONFIG_STATUS || ac_write_fail=1 |
| 6076 | |
| 6077 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 6078 | for (key in D) D_is_set[key] = 1 |
| 6079 | FS = "" |
| 6080 | } |
| 6081 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { |
| 6082 | line = \$ 0 |
| 6083 | split(line, arg, " ") |
| 6084 | if (arg[1] == "#") { |
| 6085 | defundef = arg[2] |
| 6086 | mac1 = arg[3] |
| 6087 | } else { |
| 6088 | defundef = substr(arg[1], 2) |
| 6089 | mac1 = arg[2] |
| 6090 | } |
| 6091 | split(mac1, mac2, "(") #) |
| 6092 | macro = mac2[1] |
| 6093 | prefix = substr(line, 1, index(line, defundef) - 1) |
| 6094 | if (D_is_set[macro]) { |
| 6095 | # Preserve the white space surrounding the "#". |
| 6096 | print prefix "define", macro P[macro] D[macro] |
| 6097 | next |
| 6098 | } else { |
| 6099 | # Replace #undef with comments. This is necessary, for example, |
| 6100 | # in the case of _POSIX_SOURCE, which is predefined and required |
| 6101 | # on some systems where configure will not decide to define it. |
| 6102 | if (defundef == "undef") { |
| 6103 | print "/*", prefix defundef, macro, "*/" |
| 6104 | next |
| 6105 | } |
| 6106 | } |
| 6107 | } |
| 6108 | { print } |
| 6109 | _ACAWK |
| 6110 | _ACEOF |
| 6111 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 6112 | as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 |
| 6113 | fi # test -n "$CONFIG_HEADERS" |
| 6114 | |
| 6115 | |
| 6116 | eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS " |
| 6117 | shift |
| 6118 | for ac_tag |
| 6119 | do |
| 6120 | case $ac_tag in |
| 6121 | :[FHLC]) ac_mode=$ac_tag; continue;; |
| 6122 | esac |
| 6123 | case $ac_mode$ac_tag in |
| 6124 | :[FHL]*:*);; |
| 6125 | :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; |
| 6126 | :[FH]-) ac_tag=-:-;; |
| 6127 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; |
| 6128 | esac |
| 6129 | ac_save_IFS=$IFS |
| 6130 | IFS=: |
| 6131 | set x $ac_tag |
| 6132 | IFS=$ac_save_IFS |
| 6133 | shift |
| 6134 | ac_file=$1 |
| 6135 | shift |
| 6136 | |
| 6137 | case $ac_mode in |
| 6138 | :L) ac_source=$1;; |
| 6139 | :[FH]) |
| 6140 | ac_file_inputs= |
| 6141 | for ac_f |
| 6142 | do |
| 6143 | case $ac_f in |
| 6144 | -) ac_f="$ac_tmp/stdin";; |
| 6145 | *) # Look for the file first in the build tree, then in the source tree |
| 6146 | # (if the path is not absolute). The absolute path cannot be DOS-style, |
| 6147 | # because $ac_f cannot contain `:'. |
| 6148 | test -f "$ac_f" || |
| 6149 | case $ac_f in |
| 6150 | [\\/$]*) false;; |
| 6151 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; |
| 6152 | esac || |
| 6153 | as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; |
| 6154 | esac |
| 6155 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac |
| 6156 | as_fn_append ac_file_inputs " '$ac_f'" |
| 6157 | done |
| 6158 | |
| 6159 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
| 6160 | # use $as_me), people would be surprised to read: |
| 6161 | # /* config.h. Generated by config.status. */ |
| 6162 | configure_input='Generated from '` |
| 6163 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' |
| 6164 | `' by configure.' |
| 6165 | if test x"$ac_file" != x-; then |
| 6166 | configure_input="$ac_file. $configure_input" |
| 6167 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 |
| 6168 | $as_echo "$as_me: creating $ac_file" >&6;} |
| 6169 | fi |
| 6170 | # Neutralize special characters interpreted by sed in replacement strings. |
| 6171 | case $configure_input in #( |
| 6172 | *\&* | *\|* | *\\* ) |
| 6173 | ac_sed_conf_input=`$as_echo "$configure_input" | |
| 6174 | sed 's/[\\\\&|]/\\\\&/g'`;; #( |
| 6175 | *) ac_sed_conf_input=$configure_input;; |
| 6176 | esac |
| 6177 | |
| 6178 | case $ac_tag in |
| 6179 | *:-:* | *:-) cat >"$ac_tmp/stdin" \ |
| 6180 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; |
| 6181 | esac |
| 6182 | ;; |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 6183 | esac |
| 6184 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 6185 | ac_dir=`$as_dirname -- "$ac_file" || |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 6186 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame] | 6187 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 6188 | X"$ac_file" : 'X\(//\)$' \| \ |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 6189 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
| 6190 | $as_echo X"$ac_file" | |
| 6191 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 6192 | s//\1/ |
| 6193 | q |
| 6194 | } |
| 6195 | /^X\(\/\/\)[^/].*/{ |
| 6196 | s//\1/ |
| 6197 | q |
| 6198 | } |
| 6199 | /^X\(\/\/\)$/{ |
| 6200 | s//\1/ |
| 6201 | q |
| 6202 | } |
| 6203 | /^X\(\/\).*/{ |
| 6204 | s//\1/ |
| 6205 | q |
| 6206 | } |
| 6207 | s/.*/./; q'` |
| 6208 | as_dir="$ac_dir"; as_fn_mkdir_p |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 6209 | ac_builddir=. |
| 6210 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 6211 | case "$ac_dir" in |
| 6212 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 6213 | *) |
| 6214 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
| 6215 | # A ".." for each directory in $ac_dir_suffix. |
| 6216 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
| 6217 | case $ac_top_builddir_sub in |
| 6218 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 6219 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 6220 | esac ;; |
| 6221 | esac |
| 6222 | ac_abs_top_builddir=$ac_pwd |
| 6223 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 6224 | # for backward compatibility: |
| 6225 | ac_top_builddir=$ac_top_build_prefix |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 6226 | |
| 6227 | case $srcdir in |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 6228 | .) # We are building in place. |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 6229 | ac_srcdir=. |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 6230 | ac_top_srcdir=$ac_top_builddir_sub |
| 6231 | ac_abs_top_srcdir=$ac_pwd ;; |
| 6232 | [\\/]* | ?:[\\/]* ) # Absolute name. |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 6233 | ac_srcdir=$srcdir$ac_dir_suffix; |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 6234 | ac_top_srcdir=$srcdir |
| 6235 | ac_abs_top_srcdir=$srcdir ;; |
| 6236 | *) # Relative name. |
| 6237 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 6238 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 6239 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 6240 | esac |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 6241 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame] | 6242 | |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 6243 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 6244 | case $ac_mode in |
| 6245 | :F) |
| 6246 | # |
| 6247 | # CONFIG_FILE |
| 6248 | # |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 6249 | |
David McGrew | b67061f | 2005-09-28 14:23:06 +0000 | [diff] [blame] | 6250 | case $INSTALL in |
| 6251 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 6252 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
David McGrew | b67061f | 2005-09-28 14:23:06 +0000 | [diff] [blame] | 6253 | esac |
Cullen Jennings | 52c5cd3 | 2013-05-01 18:07:29 -0600 | [diff] [blame] | 6254 | _ACEOF |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 6255 | |
| 6256 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 6257 | # If the template does not know about datarootdir, expand it. |
| 6258 | # FIXME: This hack should be removed a few years after 2.60. |
| 6259 | ac_datarootdir_hack=; ac_datarootdir_seen= |
| 6260 | ac_sed_dataroot=' |
| 6261 | /datarootdir/ { |
| 6262 | p |
| 6263 | q |
| 6264 | } |
| 6265 | /@datadir@/p |
| 6266 | /@docdir@/p |
| 6267 | /@infodir@/p |
| 6268 | /@localedir@/p |
| 6269 | /@mandir@/p' |
| 6270 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in |
| 6271 | *datarootdir*) ac_datarootdir_seen=yes;; |
| 6272 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) |
| 6273 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 |
| 6274 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} |
| 6275 | _ACEOF |
| 6276 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 6277 | ac_datarootdir_hack=' |
| 6278 | s&@datadir@&$datadir&g |
| 6279 | s&@docdir@&$docdir&g |
| 6280 | s&@infodir@&$infodir&g |
| 6281 | s&@localedir@&$localedir&g |
| 6282 | s&@mandir@&$mandir&g |
| 6283 | s&\\\${datarootdir}&$datarootdir&g' ;; |
| 6284 | esac |
| 6285 | _ACEOF |
| 6286 | |
| 6287 | # Neutralize VPATH when `$srcdir' = `.'. |
| 6288 | # Shell code in configure.ac might set extrasub. |
| 6289 | # FIXME: do we really want to maintain this feature? |
| 6290 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 6291 | ac_sed_extra="$ac_vpsub |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 6292 | $extrasub |
| 6293 | _ACEOF |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 6294 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 6295 | :t |
| 6296 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 6297 | s|@configure_input@|$ac_sed_conf_input|;t t |
| 6298 | s&@top_builddir@&$ac_top_builddir_sub&;t t |
| 6299 | s&@top_build_prefix@&$ac_top_build_prefix&;t t |
| 6300 | s&@srcdir@&$ac_srcdir&;t t |
| 6301 | s&@abs_srcdir@&$ac_abs_srcdir&;t t |
| 6302 | s&@top_srcdir@&$ac_top_srcdir&;t t |
| 6303 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t |
| 6304 | s&@builddir@&$ac_builddir&;t t |
| 6305 | s&@abs_builddir@&$ac_abs_builddir&;t t |
| 6306 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t |
| 6307 | s&@INSTALL@&$ac_INSTALL&;t t |
| 6308 | $ac_datarootdir_hack |
| 6309 | " |
| 6310 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ |
| 6311 | >$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] | 6312 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 6313 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && |
| 6314 | { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && |
| 6315 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ |
| 6316 | "$ac_tmp/out"`; test -z "$ac_out"; } && |
| 6317 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
| 6318 | which seems to be undefined. Please make sure it is defined" >&5 |
| 6319 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
| 6320 | which seems to be undefined. Please make sure it is defined" >&2;} |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 6321 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 6322 | rm -f "$ac_tmp/stdin" |
Cullen Jennings | 52c5cd3 | 2013-05-01 18:07:29 -0600 | [diff] [blame] | 6323 | case $ac_file in |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 6324 | -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; |
| 6325 | *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; |
| 6326 | esac \ |
| 6327 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
| 6328 | ;; |
| 6329 | :H) |
| 6330 | # |
| 6331 | # CONFIG_HEADER |
| 6332 | # |
Cullen Jennings | 52c5cd3 | 2013-05-01 18:07:29 -0600 | [diff] [blame] | 6333 | if test x"$ac_file" != x-; then |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 6334 | { |
| 6335 | $as_echo "/* $configure_input */" \ |
| 6336 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" |
| 6337 | } >"$ac_tmp/config.h" \ |
| 6338 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
| 6339 | if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then |
| 6340 | { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 |
| 6341 | $as_echo "$as_me: $ac_file is unchanged" >&6;} |
Cullen Jennings | 52c5cd3 | 2013-05-01 18:07:29 -0600 | [diff] [blame] | 6342 | else |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 6343 | rm -f "$ac_file" |
| 6344 | mv "$ac_tmp/config.h" "$ac_file" \ |
| 6345 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
Cullen Jennings | 52c5cd3 | 2013-05-01 18:07:29 -0600 | [diff] [blame] | 6346 | fi |
| 6347 | else |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 6348 | $as_echo "/* $configure_input */" \ |
| 6349 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ |
| 6350 | || as_fn_error $? "could not create -" "$LINENO" 5 |
Cullen Jennings | 52c5cd3 | 2013-05-01 18:07:29 -0600 | [diff] [blame] | 6351 | fi |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 6352 | ;; |
Cullen Jennings | 52c5cd3 | 2013-05-01 18:07:29 -0600 | [diff] [blame] | 6353 | |
Cullen Jennings | 52c5cd3 | 2013-05-01 18:07:29 -0600 | [diff] [blame] | 6354 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 6355 | esac |
| 6356 | |
| 6357 | done # for ac_tag |
| 6358 | |
| 6359 | |
| 6360 | as_fn_exit 0 |
Cullen Jennings | 52c5cd3 | 2013-05-01 18:07:29 -0600 | [diff] [blame] | 6361 | _ACEOF |
Cullen Jennings | 52c5cd3 | 2013-05-01 18:07:29 -0600 | [diff] [blame] | 6362 | ac_clean_files=$ac_clean_files_save |
jfigus | a14b5a0 | 2013-03-29 12:24:12 -0400 | [diff] [blame] | 6363 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 6364 | test $ac_write_fail = 0 || |
| 6365 | as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 |
| 6366 | |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 6367 | |
| 6368 | # configure is writing to config.log, and then calls config.status. |
| 6369 | # config.status does its own redirection, appending to config.log. |
| 6370 | # Unfortunately, on DOS this fails, as config.log is still kept open |
| 6371 | # by configure, so config.status won't be able to write to it; its |
| 6372 | # output is simply discarded. So we exec the FD to /dev/null, |
| 6373 | # effectively closing config.log, so it can be properly (re)opened and |
| 6374 | # appended to by config.status. When coming back to configure, we |
| 6375 | # need to make the FD available again. |
| 6376 | if test "$no_create" != yes; then |
| 6377 | ac_cs_success=: |
| 6378 | ac_config_status_args= |
| 6379 | test "$silent" = yes && |
| 6380 | ac_config_status_args="$ac_config_status_args --quiet" |
| 6381 | exec 5>/dev/null |
| 6382 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
| 6383 | exec 5>>config.log |
| 6384 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
| 6385 | # would make configure fail if this is the last instruction. |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 6386 | $ac_cs_success || as_fn_exit 1 |
| 6387 | fi |
| 6388 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then |
| 6389 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 |
| 6390 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 6391 | fi |
| 6392 | |
Marcus Sundberg | 979e1bc | 2005-09-29 14:33:09 +0000 | [diff] [blame] | 6393 | |
| 6394 | # This is needed when building outside the source dir. |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 6395 | as_dir=crypto/cipher; as_fn_mkdir_p |
| 6396 | as_dir=crypto/hash; as_fn_mkdir_p |
| 6397 | as_dir=crypto/kernel; as_fn_mkdir_p |
| 6398 | as_dir=crypto/math; as_fn_mkdir_p |
| 6399 | as_dir=crypto/replay; as_fn_mkdir_p |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 6400 | as_dir=crypto/test; as_fn_mkdir_p |
| 6401 | as_dir=doc; as_fn_mkdir_p |
| 6402 | as_dir=srtp; as_fn_mkdir_p |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 6403 | as_dir=test; as_fn_mkdir_p |