1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.69 for telegram-cli 1.0. 4# 5# 6# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. 7# 8# 9# This configure script is free software; the Free Software Foundation 10# gives unlimited permission to copy, distribute and modify it. 11## -------------------- ## 12## M4sh Initialization. ## 13## -------------------- ## 14 15# Be more Bourne compatible 16DUALCASE=1; export DUALCASE # for MKS sh 17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 18 emulate sh 19 NULLCMD=: 20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 21 # is contrary to our usage. Disable this feature. 22 alias -g '${1+"$@"}'='"$@"' 23 setopt NO_GLOB_SUBST 24else 25 case `(set -o) 2>/dev/null` in #( 26 *posix*) : 27 set -o posix ;; #( 28 *) : 29 ;; 30esac 31fi 32 33 34as_nl=' 35' 36export as_nl 37# Printing a long string crashes Solaris 7 /usr/bin/printf. 38as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 39as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 40as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 41# Prefer a ksh shell builtin over an external printf program on Solaris, 42# but without wasting forks for bash or zsh. 43if test -z "$BASH_VERSION$ZSH_VERSION" \ 44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 45 as_echo='print -r --' 46 as_echo_n='print -rn --' 47elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 48 as_echo='printf %s\n' 49 as_echo_n='printf %s' 50else 51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 53 as_echo_n='/usr/ucb/echo -n' 54 else 55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 56 as_echo_n_body='eval 57 arg=$1; 58 case $arg in #( 59 *"$as_nl"*) 60 expr "X$arg" : "X\\(.*\\)$as_nl"; 61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 62 esac; 63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 64 ' 65 export as_echo_n_body 66 as_echo_n='sh -c $as_echo_n_body as_echo' 67 fi 68 export as_echo_body 69 as_echo='sh -c $as_echo_body as_echo' 70fi 71 72# The user is always right. 73if test "${PATH_SEPARATOR+set}" != set; then 74 PATH_SEPARATOR=: 75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 77 PATH_SEPARATOR=';' 78 } 79fi 80 81 82# IFS 83# We need space, tab and new line, in precisely that order. Quoting is 84# there to prevent editors from complaining about space-tab. 85# (If _AS_PATH_WALK were called with IFS unset, it would disable word 86# splitting by setting IFS to empty value.) 87IFS=" "" $as_nl" 88 89# Find who we are. Look in the path if we contain no directory separator. 90as_myself= 91case $0 in #(( 92 *[\\/]* ) as_myself=$0 ;; 93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 94for as_dir in $PATH 95do 96 IFS=$as_save_IFS 97 test -z "$as_dir" && as_dir=. 98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 99 done 100IFS=$as_save_IFS 101 102 ;; 103esac 104# We did not find ourselves, most probably we were run as `sh COMMAND' 105# in which case we are not to be found in the path. 106if test "x$as_myself" = x; then 107 as_myself=$0 108fi 109if test ! -f "$as_myself"; then 110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 111 exit 1 112fi 113 114# Unset variables that we do not need and which cause bugs (e.g. in 115# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 116# suppresses any "Segmentation fault" message there. '((' could 117# trigger a bug in pdksh 5.2.14. 118for as_var in BASH_ENV ENV MAIL MAILPATH 119do eval test x\${$as_var+set} = xset \ 120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 121done 122PS1='$ ' 123PS2='> ' 124PS4='+ ' 125 126# NLS nuisances. 127LC_ALL=C 128export LC_ALL 129LANGUAGE=C 130export LANGUAGE 131 132# CDPATH. 133(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 134 135# Use a proper internal environment variable to ensure we don't fall 136 # into an infinite loop, continuously re-executing ourselves. 137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 138 _as_can_reexec=no; export _as_can_reexec; 139 # We cannot yet assume a decent shell, so we have to provide a 140# neutralization value for shells without unset; and this also 141# works around shells that cannot unset nonexistent variables. 142# Preserve -v and -x to the replacement shell. 143BASH_ENV=/dev/null 144ENV=/dev/null 145(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 146case $- in # (((( 147 *v*x* | *x*v* ) as_opts=-vx ;; 148 *v* ) as_opts=-v ;; 149 *x* ) as_opts=-x ;; 150 * ) as_opts= ;; 151esac 152exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 153# Admittedly, this is quite paranoid, since all the known shells bail 154# out after a failed `exec'. 155$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 156as_fn_exit 255 157 fi 158 # We don't want this to propagate to other subprocesses. 159 { _as_can_reexec=; unset _as_can_reexec;} 160if test "x$CONFIG_SHELL" = x; then 161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 162 emulate sh 163 NULLCMD=: 164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 165 # is contrary to our usage. Disable this feature. 166 alias -g '\${1+\"\$@\"}'='\"\$@\"' 167 setopt NO_GLOB_SUBST 168else 169 case \`(set -o) 2>/dev/null\` in #( 170 *posix*) : 171 set -o posix ;; #( 172 *) : 173 ;; 174esac 175fi 176" 177 as_required="as_fn_return () { (exit \$1); } 178as_fn_success () { as_fn_return 0; } 179as_fn_failure () { as_fn_return 1; } 180as_fn_ret_success () { return 0; } 181as_fn_ret_failure () { return 1; } 182 183exitcode=0 184as_fn_success || { exitcode=1; echo as_fn_success failed.; } 185as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 186as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 187as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 188if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 189 190else 191 exitcode=1; echo positional parameters were not saved. 192fi 193test x\$exitcode = x0 || exit 1 194test -x / || exit 1" 195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 199test \$(( 1 + 1 )) = 2 || exit 1" 200 if (eval "$as_required") 2>/dev/null; then : 201 as_have_required=yes 202else 203 as_have_required=no 204fi 205 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 206 207else 208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 209as_found=false 210for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 211do 212 IFS=$as_save_IFS 213 test -z "$as_dir" && as_dir=. 214 as_found=: 215 case $as_dir in #( 216 /*) 217 for as_base in sh bash ksh sh5; do 218 # Try only shells that exist, to save several forks. 219 as_shell=$as_dir/$as_base 220 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 221 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 222 CONFIG_SHELL=$as_shell as_have_required=yes 223 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 224 break 2 225fi 226fi 227 done;; 228 esac 229 as_found=false 230done 231$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 232 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 233 CONFIG_SHELL=$SHELL as_have_required=yes 234fi; } 235IFS=$as_save_IFS 236 237 238 if test "x$CONFIG_SHELL" != x; then : 239 export CONFIG_SHELL 240 # We cannot yet assume a decent shell, so we have to provide a 241# neutralization value for shells without unset; and this also 242# works around shells that cannot unset nonexistent variables. 243# Preserve -v and -x to the replacement shell. 244BASH_ENV=/dev/null 245ENV=/dev/null 246(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 247case $- in # (((( 248 *v*x* | *x*v* ) as_opts=-vx ;; 249 *v* ) as_opts=-v ;; 250 *x* ) as_opts=-x ;; 251 * ) as_opts= ;; 252esac 253exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 254# Admittedly, this is quite paranoid, since all the known shells bail 255# out after a failed `exec'. 256$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 257exit 255 258fi 259 260 if test x$as_have_required = xno; then : 261 $as_echo "$0: This script requires a shell more modern than all" 262 $as_echo "$0: the shells that I found on your system." 263 if test x${ZSH_VERSION+set} = xset ; then 264 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 265 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 266 else 267 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system, 268$0: including any error possibly output before this 269$0: message. Then install a modern shell, or manually run 270$0: the script under such a shell if you do have one." 271 fi 272 exit 1 273fi 274fi 275fi 276SHELL=${CONFIG_SHELL-/bin/sh} 277export SHELL 278# Unset more variables known to interfere with behavior of common tools. 279CLICOLOR_FORCE= GREP_OPTIONS= 280unset CLICOLOR_FORCE GREP_OPTIONS 281 282## --------------------- ## 283## M4sh Shell Functions. ## 284## --------------------- ## 285# as_fn_unset VAR 286# --------------- 287# Portably unset VAR. 288as_fn_unset () 289{ 290 { eval $1=; unset $1;} 291} 292as_unset=as_fn_unset 293 294# as_fn_set_status STATUS 295# ----------------------- 296# Set $? to STATUS, without forking. 297as_fn_set_status () 298{ 299 return $1 300} # as_fn_set_status 301 302# as_fn_exit STATUS 303# ----------------- 304# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 305as_fn_exit () 306{ 307 set +e 308 as_fn_set_status $1 309 exit $1 310} # as_fn_exit 311 312# as_fn_mkdir_p 313# ------------- 314# Create "$as_dir" as a directory, including parents if necessary. 315as_fn_mkdir_p () 316{ 317 318 case $as_dir in #( 319 -*) as_dir=./$as_dir;; 320 esac 321 test -d "$as_dir" || eval $as_mkdir_p || { 322 as_dirs= 323 while :; do 324 case $as_dir in #( 325 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 326 *) as_qdir=$as_dir;; 327 esac 328 as_dirs="'$as_qdir' $as_dirs" 329 as_dir=`$as_dirname -- "$as_dir" || 330$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 331 X"$as_dir" : 'X\(//\)[^/]' \| \ 332 X"$as_dir" : 'X\(//\)$' \| \ 333 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 334$as_echo X"$as_dir" | 335 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 336 s//\1/ 337 q 338 } 339 /^X\(\/\/\)[^/].*/{ 340 s//\1/ 341 q 342 } 343 /^X\(\/\/\)$/{ 344 s//\1/ 345 q 346 } 347 /^X\(\/\).*/{ 348 s//\1/ 349 q 350 } 351 s/.*/./; q'` 352 test -d "$as_dir" && break 353 done 354 test -z "$as_dirs" || eval "mkdir $as_dirs" 355 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 356 357 358} # as_fn_mkdir_p 359 360# as_fn_executable_p FILE 361# ----------------------- 362# Test if FILE is an executable regular file. 363as_fn_executable_p () 364{ 365 test -f "$1" && test -x "$1" 366} # as_fn_executable_p 367# as_fn_append VAR VALUE 368# ---------------------- 369# Append the text in VALUE to the end of the definition contained in VAR. Take 370# advantage of any shell optimizations that allow amortized linear growth over 371# repeated appends, instead of the typical quadratic growth present in naive 372# implementations. 373if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 374 eval 'as_fn_append () 375 { 376 eval $1+=\$2 377 }' 378else 379 as_fn_append () 380 { 381 eval $1=\$$1\$2 382 } 383fi # as_fn_append 384 385# as_fn_arith ARG... 386# ------------------ 387# Perform arithmetic evaluation on the ARGs, and store the result in the 388# global $as_val. Take advantage of shells that can avoid forks. The arguments 389# must be portable across $(()) and expr. 390if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 391 eval 'as_fn_arith () 392 { 393 as_val=$(( $* )) 394 }' 395else 396 as_fn_arith () 397 { 398 as_val=`expr "$@" || test $? -eq 1` 399 } 400fi # as_fn_arith 401 402 403# as_fn_error STATUS ERROR [LINENO LOG_FD] 404# ---------------------------------------- 405# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 406# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 407# script with STATUS, using 1 if that was 0. 408as_fn_error () 409{ 410 as_status=$1; test $as_status -eq 0 && as_status=1 411 if test "$4"; then 412 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 413 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 414 fi 415 $as_echo "$as_me: error: $2" >&2 416 as_fn_exit $as_status 417} # as_fn_error 418 419if expr a : '\(a\)' >/dev/null 2>&1 && 420 test "X`expr 00001 : '.*\(...\)'`" = X001; then 421 as_expr=expr 422else 423 as_expr=false 424fi 425 426if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 427 as_basename=basename 428else 429 as_basename=false 430fi 431 432if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 433 as_dirname=dirname 434else 435 as_dirname=false 436fi 437 438as_me=`$as_basename -- "$0" || 439$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 440 X"$0" : 'X\(//\)$' \| \ 441 X"$0" : 'X\(/\)' \| . 2>/dev/null || 442$as_echo X/"$0" | 443 sed '/^.*\/\([^/][^/]*\)\/*$/{ 444 s//\1/ 445 q 446 } 447 /^X\/\(\/\/\)$/{ 448 s//\1/ 449 q 450 } 451 /^X\/\(\/\).*/{ 452 s//\1/ 453 q 454 } 455 s/.*/./; q'` 456 457# Avoid depending upon Character Ranges. 458as_cr_letters='abcdefghijklmnopqrstuvwxyz' 459as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 460as_cr_Letters=$as_cr_letters$as_cr_LETTERS 461as_cr_digits='0123456789' 462as_cr_alnum=$as_cr_Letters$as_cr_digits 463 464 465 as_lineno_1=$LINENO as_lineno_1a=$LINENO 466 as_lineno_2=$LINENO as_lineno_2a=$LINENO 467 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 468 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 469 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 470 sed -n ' 471 p 472 /[$]LINENO/= 473 ' <$as_myself | 474 sed ' 475 s/[$]LINENO.*/&-/ 476 t lineno 477 b 478 :lineno 479 N 480 :loop 481 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 482 t loop 483 s/-\n.*// 484 ' >$as_me.lineno && 485 chmod +x "$as_me.lineno" || 486 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 487 488 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 489 # already done that, so ensure we don't try to do so again and fall 490 # in an infinite loop. This has already happened in practice. 491 _as_can_reexec=no; export _as_can_reexec 492 # Don't try to exec as it changes $[0], causing all sort of problems 493 # (the dirname of $[0] is not the place where we might find the 494 # original and so on. Autoconf is especially sensitive to this). 495 . "./$as_me.lineno" 496 # Exit status is that of the last command. 497 exit 498} 499 500ECHO_C= ECHO_N= ECHO_T= 501case `echo -n x` in #((((( 502-n*) 503 case `echo 'xy\c'` in 504 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 505 xy) ECHO_C='\c';; 506 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 507 ECHO_T=' ';; 508 esac;; 509*) 510 ECHO_N='-n';; 511esac 512 513rm -f conf$$ conf$$.exe conf$$.file 514if test -d conf$$.dir; then 515 rm -f conf$$.dir/conf$$.file 516else 517 rm -f conf$$.dir 518 mkdir conf$$.dir 2>/dev/null 519fi 520if (echo >conf$$.file) 2>/dev/null; then 521 if ln -s conf$$.file conf$$ 2>/dev/null; then 522 as_ln_s='ln -s' 523 # ... but there are two gotchas: 524 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 525 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 526 # In both cases, we have to default to `cp -pR'. 527 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 528 as_ln_s='cp -pR' 529 elif ln conf$$.file conf$$ 2>/dev/null; then 530 as_ln_s=ln 531 else 532 as_ln_s='cp -pR' 533 fi 534else 535 as_ln_s='cp -pR' 536fi 537rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 538rmdir conf$$.dir 2>/dev/null 539 540if mkdir -p . 2>/dev/null; then 541 as_mkdir_p='mkdir -p "$as_dir"' 542else 543 test -d ./-p && rmdir ./-p 544 as_mkdir_p=false 545fi 546 547as_test_x='test -x' 548as_executable_p=as_fn_executable_p 549 550# Sed expression to map a string onto a valid CPP name. 551as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 552 553# Sed expression to map a string onto a valid variable name. 554as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 555 556 557test -n "$DJDIR" || exec 7<&0 </dev/null 558exec 6>&1 559 560# Name of the host. 561# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 562# so uname gets run too. 563ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 564 565# 566# Initializations. 567# 568ac_default_prefix=/usr/local 569ac_clean_files= 570ac_config_libobj_dir=. 571LIBOBJS= 572cross_compiling=no 573subdirs= 574MFLAGS= 575MAKEFLAGS= 576 577# Identity of this package. 578PACKAGE_NAME='telegram-cli' 579PACKAGE_TARNAME='telegram-cli' 580PACKAGE_VERSION='1.0' 581PACKAGE_STRING='telegram-cli 1.0' 582PACKAGE_BUGREPORT='' 583PACKAGE_URL='' 584 585ac_unique_file="config.h.in" 586# Factoring default headers for most tests. 587ac_includes_default="\ 588#include <stdio.h> 589#ifdef HAVE_SYS_TYPES_H 590# include <sys/types.h> 591#endif 592#ifdef HAVE_SYS_STAT_H 593# include <sys/stat.h> 594#endif 595#ifdef STDC_HEADERS 596# include <stdlib.h> 597# include <stddef.h> 598#else 599# ifdef HAVE_STDLIB_H 600# include <stdlib.h> 601# endif 602#endif 603#ifdef HAVE_STRING_H 604# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 605# include <memory.h> 606# endif 607# include <string.h> 608#endif 609#ifdef HAVE_STRINGS_H 610# include <strings.h> 611#endif 612#ifdef HAVE_INTTYPES_H 613# include <inttypes.h> 614#endif 615#ifdef HAVE_STDINT_H 616# include <stdint.h> 617#endif 618#ifdef HAVE_UNISTD_H 619# include <unistd.h> 620#endif" 621 622ac_subst_vars='LTLIBOBJS 623EXTRA_LIBS 624LIBOBJS 625PYTHON_CFLAGS 626PYTHON_LIBS 627PYTHON_FOUND 628PYTHON_LIB 629PYTHON_INCLUDE_DIR 630PYTHON_BIN 631LUA_LIB 632LUA_INCLUDE 633pkgluaexecdir 634luaexecdir 635pkgluadir 636luadir 637LUA_EXEC_PREFIX 638LUA_PREFIX 639LUA_PLATFORM 640LUA_SHORT_VERSION 641LUA_VERSION 642LUA 643OPENSSL_LDFLAGS 644OPENSSL_LIBS 645OPENSSL_INCLUDES 646PKG_CONFIG 647EGREP 648GREP 649CPP 650OBJEXT 651EXEEXT 652ac_ct_CC 653CPPFLAGS 654LDFLAGS 655CFLAGS 656CC 657target_alias 658host_alias 659build_alias 660LIBS 661ECHO_T 662ECHO_N 663ECHO_C 664DEFS 665mandir 666localedir 667libdir 668psdir 669pdfdir 670dvidir 671htmldir 672infodir 673docdir 674oldincludedir 675includedir 676localstatedir 677sharedstatedir 678sysconfdir 679datadir 680datarootdir 681libexecdir 682sbindir 683bindir 684program_transform_name 685prefix 686exec_prefix 687PACKAGE_URL 688PACKAGE_BUGREPORT 689PACKAGE_STRING 690PACKAGE_VERSION 691PACKAGE_TARNAME 692PACKAGE_NAME 693PATH_SEPARATOR 694SHELL' 695ac_subst_files='' 696ac_user_opts=' 697enable_option_checking 698enable_openssl 699with_openssl 700with_zlib 701enable_libconfig 702enable_extf 703enable_liblua 704enable_python 705enable_json 706with_progname 707enable_valgrind 708' 709 ac_precious_vars='build_alias 710host_alias 711target_alias 712CC 713CFLAGS 714LDFLAGS 715LIBS 716CPPFLAGS 717CPP 718LUA 719LUA_INCLUDE 720LUA_LIB' 721 722 723# Initialize some variables set by options. 724ac_init_help= 725ac_init_version=false 726ac_unrecognized_opts= 727ac_unrecognized_sep= 728# The variables have the same names as the options, with 729# dashes changed to underlines. 730cache_file=/dev/null 731exec_prefix=NONE 732no_create= 733no_recursion= 734prefix=NONE 735program_prefix=NONE 736program_suffix=NONE 737program_transform_name=s,x,x, 738silent= 739site= 740srcdir= 741verbose= 742x_includes=NONE 743x_libraries=NONE 744 745# Installation directory options. 746# These are left unexpanded so users can "make install exec_prefix=/foo" 747# and all the variables that are supposed to be based on exec_prefix 748# by default will actually change. 749# Use braces instead of parens because sh, perl, etc. also accept them. 750# (The list follows the same order as the GNU Coding Standards.) 751bindir='${exec_prefix}/bin' 752sbindir='${exec_prefix}/sbin' 753libexecdir='${exec_prefix}/libexec' 754datarootdir='${prefix}/share' 755datadir='${datarootdir}' 756sysconfdir='${prefix}/etc' 757sharedstatedir='${prefix}/com' 758localstatedir='${prefix}/var' 759includedir='${prefix}/include' 760oldincludedir='/usr/include' 761docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 762infodir='${datarootdir}/info' 763htmldir='${docdir}' 764dvidir='${docdir}' 765pdfdir='${docdir}' 766psdir='${docdir}' 767libdir='${exec_prefix}/lib' 768localedir='${datarootdir}/locale' 769mandir='${datarootdir}/man' 770 771ac_prev= 772ac_dashdash= 773for ac_option 774do 775 # If the previous option needs an argument, assign it. 776 if test -n "$ac_prev"; then 777 eval $ac_prev=\$ac_option 778 ac_prev= 779 continue 780 fi 781 782 case $ac_option in 783 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 784 *=) ac_optarg= ;; 785 *) ac_optarg=yes ;; 786 esac 787 788 # Accept the important Cygnus configure options, so we can diagnose typos. 789 790 case $ac_dashdash$ac_option in 791 --) 792 ac_dashdash=yes ;; 793 794 -bindir | --bindir | --bindi | --bind | --bin | --bi) 795 ac_prev=bindir ;; 796 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 797 bindir=$ac_optarg ;; 798 799 -build | --build | --buil | --bui | --bu) 800 ac_prev=build_alias ;; 801 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 802 build_alias=$ac_optarg ;; 803 804 -cache-file | --cache-file | --cache-fil | --cache-fi \ 805 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 806 ac_prev=cache_file ;; 807 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 808 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 809 cache_file=$ac_optarg ;; 810 811 --config-cache | -C) 812 cache_file=config.cache ;; 813 814 -datadir | --datadir | --datadi | --datad) 815 ac_prev=datadir ;; 816 -datadir=* | --datadir=* | --datadi=* | --datad=*) 817 datadir=$ac_optarg ;; 818 819 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 820 | --dataroo | --dataro | --datar) 821 ac_prev=datarootdir ;; 822 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 823 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 824 datarootdir=$ac_optarg ;; 825 826 -disable-* | --disable-*) 827 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 828 # Reject names that are not valid shell variable names. 829 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 830 as_fn_error $? "invalid feature name: $ac_useropt" 831 ac_useropt_orig=$ac_useropt 832 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 833 case $ac_user_opts in 834 *" 835"enable_$ac_useropt" 836"*) ;; 837 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 838 ac_unrecognized_sep=', ';; 839 esac 840 eval enable_$ac_useropt=no ;; 841 842 -docdir | --docdir | --docdi | --doc | --do) 843 ac_prev=docdir ;; 844 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 845 docdir=$ac_optarg ;; 846 847 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 848 ac_prev=dvidir ;; 849 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 850 dvidir=$ac_optarg ;; 851 852 -enable-* | --enable-*) 853 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 854 # Reject names that are not valid shell variable names. 855 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 856 as_fn_error $? "invalid feature name: $ac_useropt" 857 ac_useropt_orig=$ac_useropt 858 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 859 case $ac_user_opts in 860 *" 861"enable_$ac_useropt" 862"*) ;; 863 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 864 ac_unrecognized_sep=', ';; 865 esac 866 eval enable_$ac_useropt=\$ac_optarg ;; 867 868 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 869 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 870 | --exec | --exe | --ex) 871 ac_prev=exec_prefix ;; 872 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 873 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 874 | --exec=* | --exe=* | --ex=*) 875 exec_prefix=$ac_optarg ;; 876 877 -gas | --gas | --ga | --g) 878 # Obsolete; use --with-gas. 879 with_gas=yes ;; 880 881 -help | --help | --hel | --he | -h) 882 ac_init_help=long ;; 883 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 884 ac_init_help=recursive ;; 885 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 886 ac_init_help=short ;; 887 888 -host | --host | --hos | --ho) 889 ac_prev=host_alias ;; 890 -host=* | --host=* | --hos=* | --ho=*) 891 host_alias=$ac_optarg ;; 892 893 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 894 ac_prev=htmldir ;; 895 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 896 | --ht=*) 897 htmldir=$ac_optarg ;; 898 899 -includedir | --includedir | --includedi | --included | --include \ 900 | --includ | --inclu | --incl | --inc) 901 ac_prev=includedir ;; 902 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 903 | --includ=* | --inclu=* | --incl=* | --inc=*) 904 includedir=$ac_optarg ;; 905 906 -infodir | --infodir | --infodi | --infod | --info | --inf) 907 ac_prev=infodir ;; 908 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 909 infodir=$ac_optarg ;; 910 911 -libdir | --libdir | --libdi | --libd) 912 ac_prev=libdir ;; 913 -libdir=* | --libdir=* | --libdi=* | --libd=*) 914 libdir=$ac_optarg ;; 915 916 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 917 | --libexe | --libex | --libe) 918 ac_prev=libexecdir ;; 919 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 920 | --libexe=* | --libex=* | --libe=*) 921 libexecdir=$ac_optarg ;; 922 923 -localedir | --localedir | --localedi | --localed | --locale) 924 ac_prev=localedir ;; 925 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 926 localedir=$ac_optarg ;; 927 928 -localstatedir | --localstatedir | --localstatedi | --localstated \ 929 | --localstate | --localstat | --localsta | --localst | --locals) 930 ac_prev=localstatedir ;; 931 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 932 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 933 localstatedir=$ac_optarg ;; 934 935 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 936 ac_prev=mandir ;; 937 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 938 mandir=$ac_optarg ;; 939 940 -nfp | --nfp | --nf) 941 # Obsolete; use --without-fp. 942 with_fp=no ;; 943 944 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 945 | --no-cr | --no-c | -n) 946 no_create=yes ;; 947 948 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 949 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 950 no_recursion=yes ;; 951 952 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 953 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 954 | --oldin | --oldi | --old | --ol | --o) 955 ac_prev=oldincludedir ;; 956 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 957 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 958 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 959 oldincludedir=$ac_optarg ;; 960 961 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 962 ac_prev=prefix ;; 963 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 964 prefix=$ac_optarg ;; 965 966 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 967 | --program-pre | --program-pr | --program-p) 968 ac_prev=program_prefix ;; 969 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 970 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 971 program_prefix=$ac_optarg ;; 972 973 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 974 | --program-suf | --program-su | --program-s) 975 ac_prev=program_suffix ;; 976 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 977 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 978 program_suffix=$ac_optarg ;; 979 980 -program-transform-name | --program-transform-name \ 981 | --program-transform-nam | --program-transform-na \ 982 | --program-transform-n | --program-transform- \ 983 | --program-transform | --program-transfor \ 984 | --program-transfo | --program-transf \ 985 | --program-trans | --program-tran \ 986 | --progr-tra | --program-tr | --program-t) 987 ac_prev=program_transform_name ;; 988 -program-transform-name=* | --program-transform-name=* \ 989 | --program-transform-nam=* | --program-transform-na=* \ 990 | --program-transform-n=* | --program-transform-=* \ 991 | --program-transform=* | --program-transfor=* \ 992 | --program-transfo=* | --program-transf=* \ 993 | --program-trans=* | --program-tran=* \ 994 | --progr-tra=* | --program-tr=* | --program-t=*) 995 program_transform_name=$ac_optarg ;; 996 997 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 998 ac_prev=pdfdir ;; 999 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1000 pdfdir=$ac_optarg ;; 1001 1002 -psdir | --psdir | --psdi | --psd | --ps) 1003 ac_prev=psdir ;; 1004 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1005 psdir=$ac_optarg ;; 1006 1007 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1008 | -silent | --silent | --silen | --sile | --sil) 1009 silent=yes ;; 1010 1011 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1012 ac_prev=sbindir ;; 1013 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1014 | --sbi=* | --sb=*) 1015 sbindir=$ac_optarg ;; 1016 1017 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1018 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1019 | --sharedst | --shareds | --shared | --share | --shar \ 1020 | --sha | --sh) 1021 ac_prev=sharedstatedir ;; 1022 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1023 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1024 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1025 | --sha=* | --sh=*) 1026 sharedstatedir=$ac_optarg ;; 1027 1028 -site | --site | --sit) 1029 ac_prev=site ;; 1030 -site=* | --site=* | --sit=*) 1031 site=$ac_optarg ;; 1032 1033 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1034 ac_prev=srcdir ;; 1035 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1036 srcdir=$ac_optarg ;; 1037 1038 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1039 | --syscon | --sysco | --sysc | --sys | --sy) 1040 ac_prev=sysconfdir ;; 1041 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1042 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1043 sysconfdir=$ac_optarg ;; 1044 1045 -target | --target | --targe | --targ | --tar | --ta | --t) 1046 ac_prev=target_alias ;; 1047 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1048 target_alias=$ac_optarg ;; 1049 1050 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1051 verbose=yes ;; 1052 1053 -version | --version | --versio | --versi | --vers | -V) 1054 ac_init_version=: ;; 1055 1056 -with-* | --with-*) 1057 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1058 # Reject names that are not valid shell variable names. 1059 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1060 as_fn_error $? "invalid package name: $ac_useropt" 1061 ac_useropt_orig=$ac_useropt 1062 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1063 case $ac_user_opts in 1064 *" 1065"with_$ac_useropt" 1066"*) ;; 1067 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1068 ac_unrecognized_sep=', ';; 1069 esac 1070 eval with_$ac_useropt=\$ac_optarg ;; 1071 1072 -without-* | --without-*) 1073 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1074 # Reject names that are not valid shell variable names. 1075 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1076 as_fn_error $? "invalid package name: $ac_useropt" 1077 ac_useropt_orig=$ac_useropt 1078 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1079 case $ac_user_opts in 1080 *" 1081"with_$ac_useropt" 1082"*) ;; 1083 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1084 ac_unrecognized_sep=', ';; 1085 esac 1086 eval with_$ac_useropt=no ;; 1087 1088 --x) 1089 # Obsolete; use --with-x. 1090 with_x=yes ;; 1091 1092 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1093 | --x-incl | --x-inc | --x-in | --x-i) 1094 ac_prev=x_includes ;; 1095 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1096 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1097 x_includes=$ac_optarg ;; 1098 1099 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1100 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1101 ac_prev=x_libraries ;; 1102 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1103 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1104 x_libraries=$ac_optarg ;; 1105 1106 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1107Try \`$0 --help' for more information" 1108 ;; 1109 1110 *=*) 1111 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1112 # Reject names that are not valid shell variable names. 1113 case $ac_envvar in #( 1114 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1115 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1116 esac 1117 eval $ac_envvar=\$ac_optarg 1118 export $ac_envvar ;; 1119 1120 *) 1121 # FIXME: should be removed in autoconf 3.0. 1122 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1123 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1124 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1125 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1126 ;; 1127 1128 esac 1129done 1130 1131if test -n "$ac_prev"; then 1132 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1133 as_fn_error $? "missing argument to $ac_option" 1134fi 1135 1136if test -n "$ac_unrecognized_opts"; then 1137 case $enable_option_checking in 1138 no) ;; 1139 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1140 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1141 esac 1142fi 1143 1144# Check all directory arguments for consistency. 1145for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1146 datadir sysconfdir sharedstatedir localstatedir includedir \ 1147 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1148 libdir localedir mandir 1149do 1150 eval ac_val=\$$ac_var 1151 # Remove trailing slashes. 1152 case $ac_val in 1153 */ ) 1154 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1155 eval $ac_var=\$ac_val;; 1156 esac 1157 # Be sure to have absolute directory names. 1158 case $ac_val in 1159 [\\/$]* | ?:[\\/]* ) continue;; 1160 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1161 esac 1162 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1163done 1164 1165# There might be people who depend on the old broken behavior: `$host' 1166# used to hold the argument of --host etc. 1167# FIXME: To remove some day. 1168build=$build_alias 1169host=$host_alias 1170target=$target_alias 1171 1172# FIXME: To remove some day. 1173if test "x$host_alias" != x; then 1174 if test "x$build_alias" = x; then 1175 cross_compiling=maybe 1176 elif test "x$build_alias" != "x$host_alias"; then 1177 cross_compiling=yes 1178 fi 1179fi 1180 1181ac_tool_prefix= 1182test -n "$host_alias" && ac_tool_prefix=$host_alias- 1183 1184test "$silent" = yes && exec 6>/dev/null 1185 1186 1187ac_pwd=`pwd` && test -n "$ac_pwd" && 1188ac_ls_di=`ls -di .` && 1189ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1190 as_fn_error $? "working directory cannot be determined" 1191test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1192 as_fn_error $? "pwd does not report name of working directory" 1193 1194 1195# Find the source files, if location was not specified. 1196if test -z "$srcdir"; then 1197 ac_srcdir_defaulted=yes 1198 # Try the directory containing this script, then the parent directory. 1199 ac_confdir=`$as_dirname -- "$as_myself" || 1200$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1201 X"$as_myself" : 'X\(//\)[^/]' \| \ 1202 X"$as_myself" : 'X\(//\)$' \| \ 1203 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1204$as_echo X"$as_myself" | 1205 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1206 s//\1/ 1207 q 1208 } 1209 /^X\(\/\/\)[^/].*/{ 1210 s//\1/ 1211 q 1212 } 1213 /^X\(\/\/\)$/{ 1214 s//\1/ 1215 q 1216 } 1217 /^X\(\/\).*/{ 1218 s//\1/ 1219 q 1220 } 1221 s/.*/./; q'` 1222 srcdir=$ac_confdir 1223 if test ! -r "$srcdir/$ac_unique_file"; then 1224 srcdir=.. 1225 fi 1226else 1227 ac_srcdir_defaulted=no 1228fi 1229if test ! -r "$srcdir/$ac_unique_file"; then 1230 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1231 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1232fi 1233ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1234ac_abs_confdir=`( 1235 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1236 pwd)` 1237# When building in place, set srcdir=. 1238if test "$ac_abs_confdir" = "$ac_pwd"; then 1239 srcdir=. 1240fi 1241# Remove unnecessary trailing slashes from srcdir. 1242# Double slashes in file names in object file debugging info 1243# mess up M-x gdb in Emacs. 1244case $srcdir in 1245*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1246esac 1247for ac_var in $ac_precious_vars; do 1248 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1249 eval ac_env_${ac_var}_value=\$${ac_var} 1250 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1251 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1252done 1253 1254# 1255# Report the --help message. 1256# 1257if test "$ac_init_help" = "long"; then 1258 # Omit some internal or obsolete options to make the list less imposing. 1259 # This message is too long to be a string in the A/UX 3.1 sh. 1260 cat <<_ACEOF 1261\`configure' configures telegram-cli 1.0 to adapt to many kinds of systems. 1262 1263Usage: $0 [OPTION]... [VAR=VALUE]... 1264 1265To assign environment variables (e.g., CC, CFLAGS...), specify them as 1266VAR=VALUE. See below for descriptions of some of the useful variables. 1267 1268Defaults for the options are specified in brackets. 1269 1270Configuration: 1271 -h, --help display this help and exit 1272 --help=short display options specific to this package 1273 --help=recursive display the short help of all the included packages 1274 -V, --version display version information and exit 1275 -q, --quiet, --silent do not print \`checking ...' messages 1276 --cache-file=FILE cache test results in FILE [disabled] 1277 -C, --config-cache alias for \`--cache-file=config.cache' 1278 -n, --no-create do not create output files 1279 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1280 1281Installation directories: 1282 --prefix=PREFIX install architecture-independent files in PREFIX 1283 [$ac_default_prefix] 1284 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1285 [PREFIX] 1286 1287By default, \`make install' will install all the files in 1288\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1289an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1290for instance \`--prefix=\$HOME'. 1291 1292For better control, use the options below. 1293 1294Fine tuning of the installation directories: 1295 --bindir=DIR user executables [EPREFIX/bin] 1296 --sbindir=DIR system admin executables [EPREFIX/sbin] 1297 --libexecdir=DIR program executables [EPREFIX/libexec] 1298 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1299 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1300 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1301 --libdir=DIR object code libraries [EPREFIX/lib] 1302 --includedir=DIR C header files [PREFIX/include] 1303 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1304 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1305 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1306 --infodir=DIR info documentation [DATAROOTDIR/info] 1307 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1308 --mandir=DIR man documentation [DATAROOTDIR/man] 1309 --docdir=DIR documentation root [DATAROOTDIR/doc/telegram-cli] 1310 --htmldir=DIR html documentation [DOCDIR] 1311 --dvidir=DIR dvi documentation [DOCDIR] 1312 --pdfdir=DIR pdf documentation [DOCDIR] 1313 --psdir=DIR ps documentation [DOCDIR] 1314_ACEOF 1315 1316 cat <<\_ACEOF 1317_ACEOF 1318fi 1319 1320if test -n "$ac_init_help"; then 1321 case $ac_init_help in 1322 short | recursive ) echo "Configuration of telegram-cli 1.0:";; 1323 esac 1324 cat <<\_ACEOF 1325 1326Optional Features: 1327 --disable-option-checking ignore unrecognized --enable/--with options 1328 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1329 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1330 --disable-openssl disables OpenSSL, and don't link against it 1331 (this can't read *.pub files, though.) 1332--enable-libconfig/--disable-libconfig 1333--enable-extf/--disable-extf 1334--enable-liblua/--disable-liblua 1335--enable-python/--disable-python 1336--enable-json/--disable-json 1337--enable-valgrind/--disable-valgrind 1338 1339Optional Packages: 1340 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1341 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1342 --with-openssl=DIR root of the OpenSSL directory 1343 --with-zlib=DIR root directory path of zlib installation [defaults to 1344 /usr/local or /usr if not found in /usr/local] 1345 --without-zlib to disable zlib usage completely 1346--with-progname=<name> 1347 1348Some influential environment variables: 1349 CC C compiler command 1350 CFLAGS C compiler flags 1351 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1352 nonstandard directory <lib dir> 1353 LIBS libraries to pass to the linker, e.g. -l<library> 1354 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1355 you have headers in a nonstandard directory <include dir> 1356 CPP C preprocessor 1357 LUA The Lua interpreter, e.g. /usr/bin/lua5.1 1358 LUA_INCLUDE The Lua includes, e.g. -I/usr/include/lua5.1 1359 LUA_LIB The Lua library, e.g. -llua5.1 1360 1361Use these variables to override the choices made by `configure' or to help 1362it to find libraries and programs with nonstandard names/locations. 1363 1364Report bugs to the package provider. 1365_ACEOF 1366ac_status=$? 1367fi 1368 1369if test "$ac_init_help" = "recursive"; then 1370 # If there are subdirs, report their specific --help. 1371 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1372 test -d "$ac_dir" || 1373 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1374 continue 1375 ac_builddir=. 1376 1377case "$ac_dir" in 1378.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1379*) 1380 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1381 # A ".." for each directory in $ac_dir_suffix. 1382 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1383 case $ac_top_builddir_sub in 1384 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1385 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1386 esac ;; 1387esac 1388ac_abs_top_builddir=$ac_pwd 1389ac_abs_builddir=$ac_pwd$ac_dir_suffix 1390# for backward compatibility: 1391ac_top_builddir=$ac_top_build_prefix 1392 1393case $srcdir in 1394 .) # We are building in place. 1395 ac_srcdir=. 1396 ac_top_srcdir=$ac_top_builddir_sub 1397 ac_abs_top_srcdir=$ac_pwd ;; 1398 [\\/]* | ?:[\\/]* ) # Absolute name. 1399 ac_srcdir=$srcdir$ac_dir_suffix; 1400 ac_top_srcdir=$srcdir 1401 ac_abs_top_srcdir=$srcdir ;; 1402 *) # Relative name. 1403 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1404 ac_top_srcdir=$ac_top_build_prefix$srcdir 1405 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1406esac 1407ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1408 1409 cd "$ac_dir" || { ac_status=$?; continue; } 1410 # Check for guested configure. 1411 if test -f "$ac_srcdir/configure.gnu"; then 1412 echo && 1413 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1414 elif test -f "$ac_srcdir/configure"; then 1415 echo && 1416 $SHELL "$ac_srcdir/configure" --help=recursive 1417 else 1418 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1419 fi || ac_status=$? 1420 cd "$ac_pwd" || { ac_status=$?; break; } 1421 done 1422fi 1423 1424test -n "$ac_init_help" && exit $ac_status 1425if $ac_init_version; then 1426 cat <<\_ACEOF 1427telegram-cli configure 1.0 1428generated by GNU Autoconf 2.69 1429 1430Copyright (C) 2012 Free Software Foundation, Inc. 1431This configure script is free software; the Free Software Foundation 1432gives unlimited permission to copy, distribute and modify it. 1433_ACEOF 1434 exit 1435fi 1436 1437## ------------------------ ## 1438## Autoconf initialization. ## 1439## ------------------------ ## 1440 1441# ac_fn_c_try_compile LINENO 1442# -------------------------- 1443# Try to compile conftest.$ac_ext, and return whether this succeeded. 1444ac_fn_c_try_compile () 1445{ 1446 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1447 rm -f conftest.$ac_objext 1448 if { { ac_try="$ac_compile" 1449case "(($ac_try" in 1450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1451 *) ac_try_echo=$ac_try;; 1452esac 1453eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1454$as_echo "$ac_try_echo"; } >&5 1455 (eval "$ac_compile") 2>conftest.err 1456 ac_status=$? 1457 if test -s conftest.err; then 1458 grep -v '^ *+' conftest.err >conftest.er1 1459 cat conftest.er1 >&5 1460 mv -f conftest.er1 conftest.err 1461 fi 1462 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1463 test $ac_status = 0; } && { 1464 test -z "$ac_c_werror_flag" || 1465 test ! -s conftest.err 1466 } && test -s conftest.$ac_objext; then : 1467 ac_retval=0 1468else 1469 $as_echo "$as_me: failed program was:" >&5 1470sed 's/^/| /' conftest.$ac_ext >&5 1471 1472 ac_retval=1 1473fi 1474 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1475 as_fn_set_status $ac_retval 1476 1477} # ac_fn_c_try_compile 1478 1479# ac_fn_c_try_link LINENO 1480# ----------------------- 1481# Try to link conftest.$ac_ext, and return whether this succeeded. 1482ac_fn_c_try_link () 1483{ 1484 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1485 rm -f conftest.$ac_objext conftest$ac_exeext 1486 if { { ac_try="$ac_link" 1487case "(($ac_try" in 1488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1489 *) ac_try_echo=$ac_try;; 1490esac 1491eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1492$as_echo "$ac_try_echo"; } >&5 1493 (eval "$ac_link") 2>conftest.err 1494 ac_status=$? 1495 if test -s conftest.err; then 1496 grep -v '^ *+' conftest.err >conftest.er1 1497 cat conftest.er1 >&5 1498 mv -f conftest.er1 conftest.err 1499 fi 1500 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1501 test $ac_status = 0; } && { 1502 test -z "$ac_c_werror_flag" || 1503 test ! -s conftest.err 1504 } && test -s conftest$ac_exeext && { 1505 test "$cross_compiling" = yes || 1506 test -x conftest$ac_exeext 1507 }; then : 1508 ac_retval=0 1509else 1510 $as_echo "$as_me: failed program was:" >&5 1511sed 's/^/| /' conftest.$ac_ext >&5 1512 1513 ac_retval=1 1514fi 1515 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1516 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1517 # interfere with the next link command; also delete a directory that is 1518 # left behind by Apple's compiler. We do this before executing the actions. 1519 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1520 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1521 as_fn_set_status $ac_retval 1522 1523} # ac_fn_c_try_link 1524 1525# ac_fn_c_try_cpp LINENO 1526# ---------------------- 1527# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1528ac_fn_c_try_cpp () 1529{ 1530 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1531 if { { ac_try="$ac_cpp conftest.$ac_ext" 1532case "(($ac_try" in 1533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1534 *) ac_try_echo=$ac_try;; 1535esac 1536eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1537$as_echo "$ac_try_echo"; } >&5 1538 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1539 ac_status=$? 1540 if test -s conftest.err; then 1541 grep -v '^ *+' conftest.err >conftest.er1 1542 cat conftest.er1 >&5 1543 mv -f conftest.er1 conftest.err 1544 fi 1545 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1546 test $ac_status = 0; } > conftest.i && { 1547 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1548 test ! -s conftest.err 1549 }; then : 1550 ac_retval=0 1551else 1552 $as_echo "$as_me: failed program was:" >&5 1553sed 's/^/| /' conftest.$ac_ext >&5 1554 1555 ac_retval=1 1556fi 1557 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1558 as_fn_set_status $ac_retval 1559 1560} # ac_fn_c_try_cpp 1561 1562# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1563# ------------------------------------------------------- 1564# Tests whether HEADER exists, giving a warning if it cannot be compiled using 1565# the include files in INCLUDES and setting the cache variable VAR 1566# accordingly. 1567ac_fn_c_check_header_mongrel () 1568{ 1569 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1570 if eval \${$3+:} false; then : 1571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1572$as_echo_n "checking for $2... " >&6; } 1573if eval \${$3+:} false; then : 1574 $as_echo_n "(cached) " >&6 1575fi 1576eval ac_res=\$$3 1577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1578$as_echo "$ac_res" >&6; } 1579else 1580 # Is the header compilable? 1581{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 1582$as_echo_n "checking $2 usability... " >&6; } 1583cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1584/* end confdefs.h. */ 1585$4 1586#include <$2> 1587_ACEOF 1588if ac_fn_c_try_compile "$LINENO"; then : 1589 ac_header_compiler=yes 1590else 1591 ac_header_compiler=no 1592fi 1593rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1594{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 1595$as_echo "$ac_header_compiler" >&6; } 1596 1597# Is the header present? 1598{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 1599$as_echo_n "checking $2 presence... " >&6; } 1600cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1601/* end confdefs.h. */ 1602#include <$2> 1603_ACEOF 1604if ac_fn_c_try_cpp "$LINENO"; then : 1605 ac_header_preproc=yes 1606else 1607 ac_header_preproc=no 1608fi 1609rm -f conftest.err conftest.i conftest.$ac_ext 1610{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 1611$as_echo "$ac_header_preproc" >&6; } 1612 1613# So? What about this header? 1614case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 1615 yes:no: ) 1616 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 1617$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 1618 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1619$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1620 ;; 1621 no:yes:* ) 1622 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 1623$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 1624 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 1625$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 1626 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 1627$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 1628 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 1629$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 1630 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1631$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1632 ;; 1633esac 1634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1635$as_echo_n "checking for $2... " >&6; } 1636if eval \${$3+:} false; then : 1637 $as_echo_n "(cached) " >&6 1638else 1639 eval "$3=\$ac_header_compiler" 1640fi 1641eval ac_res=\$$3 1642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1643$as_echo "$ac_res" >&6; } 1644fi 1645 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1646 1647} # ac_fn_c_check_header_mongrel 1648 1649# ac_fn_c_try_run LINENO 1650# ---------------------- 1651# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1652# that executables *can* be run. 1653ac_fn_c_try_run () 1654{ 1655 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1656 if { { ac_try="$ac_link" 1657case "(($ac_try" in 1658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1659 *) ac_try_echo=$ac_try;; 1660esac 1661eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1662$as_echo "$ac_try_echo"; } >&5 1663 (eval "$ac_link") 2>&5 1664 ac_status=$? 1665 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1666 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1667 { { case "(($ac_try" in 1668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1669 *) ac_try_echo=$ac_try;; 1670esac 1671eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1672$as_echo "$ac_try_echo"; } >&5 1673 (eval "$ac_try") 2>&5 1674 ac_status=$? 1675 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1676 test $ac_status = 0; }; }; then : 1677 ac_retval=0 1678else 1679 $as_echo "$as_me: program exited with status $ac_status" >&5 1680 $as_echo "$as_me: failed program was:" >&5 1681sed 's/^/| /' conftest.$ac_ext >&5 1682 1683 ac_retval=$ac_status 1684fi 1685 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1686 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1687 as_fn_set_status $ac_retval 1688 1689} # ac_fn_c_try_run 1690 1691# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1692# ------------------------------------------------------- 1693# Tests whether HEADER exists and can be compiled using the include files in 1694# INCLUDES, setting the cache variable VAR accordingly. 1695ac_fn_c_check_header_compile () 1696{ 1697 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1699$as_echo_n "checking for $2... " >&6; } 1700if eval \${$3+:} false; then : 1701 $as_echo_n "(cached) " >&6 1702else 1703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1704/* end confdefs.h. */ 1705$4 1706#include <$2> 1707_ACEOF 1708if ac_fn_c_try_compile "$LINENO"; then : 1709 eval "$3=yes" 1710else 1711 eval "$3=no" 1712fi 1713rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1714fi 1715eval ac_res=\$$3 1716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1717$as_echo "$ac_res" >&6; } 1718 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1719 1720} # ac_fn_c_check_header_compile 1721 1722# ac_fn_c_check_type LINENO TYPE VAR INCLUDES 1723# ------------------------------------------- 1724# Tests whether TYPE exists after having included INCLUDES, setting cache 1725# variable VAR accordingly. 1726ac_fn_c_check_type () 1727{ 1728 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1730$as_echo_n "checking for $2... " >&6; } 1731if eval \${$3+:} false; then : 1732 $as_echo_n "(cached) " >&6 1733else 1734 eval "$3=no" 1735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1736/* end confdefs.h. */ 1737$4 1738int 1739main () 1740{ 1741if (sizeof ($2)) 1742 return 0; 1743 ; 1744 return 0; 1745} 1746_ACEOF 1747if ac_fn_c_try_compile "$LINENO"; then : 1748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1749/* end confdefs.h. */ 1750$4 1751int 1752main () 1753{ 1754if (sizeof (($2))) 1755 return 0; 1756 ; 1757 return 0; 1758} 1759_ACEOF 1760if ac_fn_c_try_compile "$LINENO"; then : 1761 1762else 1763 eval "$3=yes" 1764fi 1765rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1766fi 1767rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1768fi 1769eval ac_res=\$$3 1770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1771$as_echo "$ac_res" >&6; } 1772 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1773 1774} # ac_fn_c_check_type 1775 1776# ac_fn_c_check_func LINENO FUNC VAR 1777# ---------------------------------- 1778# Tests whether FUNC exists, setting the cache variable VAR accordingly 1779ac_fn_c_check_func () 1780{ 1781 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1783$as_echo_n "checking for $2... " >&6; } 1784if eval \${$3+:} false; then : 1785 $as_echo_n "(cached) " >&6 1786else 1787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1788/* end confdefs.h. */ 1789/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1790 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1791#define $2 innocuous_$2 1792 1793/* System header to define __stub macros and hopefully few prototypes, 1794 which can conflict with char $2 (); below. 1795 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1796 <limits.h> exists even on freestanding compilers. */ 1797 1798#ifdef __STDC__ 1799# include <limits.h> 1800#else 1801# include <assert.h> 1802#endif 1803 1804#undef $2 1805 1806/* Override any GCC internal prototype to avoid an error. 1807 Use char because int might match the return type of a GCC 1808 builtin and then its argument prototype would still apply. */ 1809#ifdef __cplusplus 1810extern "C" 1811#endif 1812char $2 (); 1813/* The GNU C library defines this for functions which it implements 1814 to always fail with ENOSYS. Some functions are actually named 1815 something starting with __ and the normal name is an alias. */ 1816#if defined __stub_$2 || defined __stub___$2 1817choke me 1818#endif 1819 1820int 1821main () 1822{ 1823return $2 (); 1824 ; 1825 return 0; 1826} 1827_ACEOF 1828if ac_fn_c_try_link "$LINENO"; then : 1829 eval "$3=yes" 1830else 1831 eval "$3=no" 1832fi 1833rm -f core conftest.err conftest.$ac_objext \ 1834 conftest$ac_exeext conftest.$ac_ext 1835fi 1836eval ac_res=\$$3 1837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1838$as_echo "$ac_res" >&6; } 1839 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1840 1841} # ac_fn_c_check_func 1842cat >config.log <<_ACEOF 1843This file contains any messages produced by compilers while 1844running configure, to aid debugging if configure makes a mistake. 1845 1846It was created by telegram-cli $as_me 1.0, which was 1847generated by GNU Autoconf 2.69. Invocation command line was 1848 1849 $ $0 $@ 1850 1851_ACEOF 1852exec 5>>config.log 1853{ 1854cat <<_ASUNAME 1855## --------- ## 1856## Platform. ## 1857## --------- ## 1858 1859hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1860uname -m = `(uname -m) 2>/dev/null || echo unknown` 1861uname -r = `(uname -r) 2>/dev/null || echo unknown` 1862uname -s = `(uname -s) 2>/dev/null || echo unknown` 1863uname -v = `(uname -v) 2>/dev/null || echo unknown` 1864 1865/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1866/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1867 1868/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1869/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1870/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1871/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1872/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1873/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1874/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1875 1876_ASUNAME 1877 1878as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1879for as_dir in $PATH 1880do 1881 IFS=$as_save_IFS 1882 test -z "$as_dir" && as_dir=. 1883 $as_echo "PATH: $as_dir" 1884 done 1885IFS=$as_save_IFS 1886 1887} >&5 1888 1889cat >&5 <<_ACEOF 1890 1891 1892## ----------- ## 1893## Core tests. ## 1894## ----------- ## 1895 1896_ACEOF 1897 1898 1899# Keep a trace of the command line. 1900# Strip out --no-create and --no-recursion so they do not pile up. 1901# Strip out --silent because we don't want to record it for future runs. 1902# Also quote any args containing shell meta-characters. 1903# Make two passes to allow for proper duplicate-argument suppression. 1904ac_configure_args= 1905ac_configure_args0= 1906ac_configure_args1= 1907ac_must_keep_next=false 1908for ac_pass in 1 2 1909do 1910 for ac_arg 1911 do 1912 case $ac_arg in 1913 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1914 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1915 | -silent | --silent | --silen | --sile | --sil) 1916 continue ;; 1917 *\'*) 1918 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1919 esac 1920 case $ac_pass in 1921 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 1922 2) 1923 as_fn_append ac_configure_args1 " '$ac_arg'" 1924 if test $ac_must_keep_next = true; then 1925 ac_must_keep_next=false # Got value, back to normal. 1926 else 1927 case $ac_arg in 1928 *=* | --config-cache | -C | -disable-* | --disable-* \ 1929 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1930 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1931 | -with-* | --with-* | -without-* | --without-* | --x) 1932 case "$ac_configure_args0 " in 1933 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1934 esac 1935 ;; 1936 -* ) ac_must_keep_next=true ;; 1937 esac 1938 fi 1939 as_fn_append ac_configure_args " '$ac_arg'" 1940 ;; 1941 esac 1942 done 1943done 1944{ ac_configure_args0=; unset ac_configure_args0;} 1945{ ac_configure_args1=; unset ac_configure_args1;} 1946 1947# When interrupted or exit'd, cleanup temporary files, and complete 1948# config.log. We remove comments because anyway the quotes in there 1949# would cause problems or look ugly. 1950# WARNING: Use '\'' to represent an apostrophe within the trap. 1951# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1952trap 'exit_status=$? 1953 # Save into config.log some information that might help in debugging. 1954 { 1955 echo 1956 1957 $as_echo "## ---------------- ## 1958## Cache variables. ## 1959## ---------------- ##" 1960 echo 1961 # The following way of writing the cache mishandles newlines in values, 1962( 1963 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1964 eval ac_val=\$$ac_var 1965 case $ac_val in #( 1966 *${as_nl}*) 1967 case $ac_var in #( 1968 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 1969$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 1970 esac 1971 case $ac_var in #( 1972 _ | IFS | as_nl) ;; #( 1973 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 1974 *) { eval $ac_var=; unset $ac_var;} ;; 1975 esac ;; 1976 esac 1977 done 1978 (set) 2>&1 | 1979 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 1980 *${as_nl}ac_space=\ *) 1981 sed -n \ 1982 "s/'\''/'\''\\\\'\'''\''/g; 1983 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 1984 ;; #( 1985 *) 1986 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 1987 ;; 1988 esac | 1989 sort 1990) 1991 echo 1992 1993 $as_echo "## ----------------- ## 1994## Output variables. ## 1995## ----------------- ##" 1996 echo 1997 for ac_var in $ac_subst_vars 1998 do 1999 eval ac_val=\$$ac_var 2000 case $ac_val in 2001 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2002 esac 2003 $as_echo "$ac_var='\''$ac_val'\''" 2004 done | sort 2005 echo 2006 2007 if test -n "$ac_subst_files"; then 2008 $as_echo "## ------------------- ## 2009## File substitutions. ## 2010## ------------------- ##" 2011 echo 2012 for ac_var in $ac_subst_files 2013 do 2014 eval ac_val=\$$ac_var 2015 case $ac_val in 2016 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2017 esac 2018 $as_echo "$ac_var='\''$ac_val'\''" 2019 done | sort 2020 echo 2021 fi 2022 2023 if test -s confdefs.h; then 2024 $as_echo "## ----------- ## 2025## confdefs.h. ## 2026## ----------- ##" 2027 echo 2028 cat confdefs.h 2029 echo 2030 fi 2031 test "$ac_signal" != 0 && 2032 $as_echo "$as_me: caught signal $ac_signal" 2033 $as_echo "$as_me: exit $exit_status" 2034 } >&5 2035 rm -f core *.core core.conftest.* && 2036 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2037 exit $exit_status 2038' 0 2039for ac_signal in 1 2 13 15; do 2040 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2041done 2042ac_signal=0 2043 2044# confdefs.h avoids OS command line length limits that DEFS can exceed. 2045rm -f -r conftest* confdefs.h 2046 2047$as_echo "/* confdefs.h */" > confdefs.h 2048 2049# Predefined preprocessor variables. 2050 2051cat >>confdefs.h <<_ACEOF 2052#define PACKAGE_NAME "$PACKAGE_NAME" 2053_ACEOF 2054 2055cat >>confdefs.h <<_ACEOF 2056#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2057_ACEOF 2058 2059cat >>confdefs.h <<_ACEOF 2060#define PACKAGE_VERSION "$PACKAGE_VERSION" 2061_ACEOF 2062 2063cat >>confdefs.h <<_ACEOF 2064#define PACKAGE_STRING "$PACKAGE_STRING" 2065_ACEOF 2066 2067cat >>confdefs.h <<_ACEOF 2068#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2069_ACEOF 2070 2071cat >>confdefs.h <<_ACEOF 2072#define PACKAGE_URL "$PACKAGE_URL" 2073_ACEOF 2074 2075 2076# Let the site file select an alternate cache file if it wants to. 2077# Prefer an explicitly selected file to automatically selected ones. 2078ac_site_file1=NONE 2079ac_site_file2=NONE 2080if test -n "$CONFIG_SITE"; then 2081 # We do not want a PATH search for config.site. 2082 case $CONFIG_SITE in #(( 2083 -*) ac_site_file1=./$CONFIG_SITE;; 2084 */*) ac_site_file1=$CONFIG_SITE;; 2085 *) ac_site_file1=./$CONFIG_SITE;; 2086 esac 2087elif test "x$prefix" != xNONE; then 2088 ac_site_file1=$prefix/share/config.site 2089 ac_site_file2=$prefix/etc/config.site 2090else 2091 ac_site_file1=$ac_default_prefix/share/config.site 2092 ac_site_file2=$ac_default_prefix/etc/config.site 2093fi 2094for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2095do 2096 test "x$ac_site_file" = xNONE && continue 2097 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2098 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2099$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2100 sed 's/^/| /' "$ac_site_file" >&5 2101 . "$ac_site_file" \ 2102 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2103$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2104as_fn_error $? "failed to load site script $ac_site_file 2105See \`config.log' for more details" "$LINENO" 5; } 2106 fi 2107done 2108 2109if test -r "$cache_file"; then 2110 # Some versions of bash will fail to source /dev/null (special files 2111 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2112 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2113 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2114$as_echo "$as_me: loading cache $cache_file" >&6;} 2115 case $cache_file in 2116 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2117 *) . "./$cache_file";; 2118 esac 2119 fi 2120else 2121 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2122$as_echo "$as_me: creating cache $cache_file" >&6;} 2123 >$cache_file 2124fi 2125 2126# Check that the precious variables saved in the cache have kept the same 2127# value. 2128ac_cache_corrupted=false 2129for ac_var in $ac_precious_vars; do 2130 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2131 eval ac_new_set=\$ac_env_${ac_var}_set 2132 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2133 eval ac_new_val=\$ac_env_${ac_var}_value 2134 case $ac_old_set,$ac_new_set in 2135 set,) 2136 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2137$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2138 ac_cache_corrupted=: ;; 2139 ,set) 2140 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2141$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2142 ac_cache_corrupted=: ;; 2143 ,);; 2144 *) 2145 if test "x$ac_old_val" != "x$ac_new_val"; then 2146 # differences in whitespace do not lead to failure. 2147 ac_old_val_w=`echo x $ac_old_val` 2148 ac_new_val_w=`echo x $ac_new_val` 2149 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2150 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2151$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2152 ac_cache_corrupted=: 2153 else 2154 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2155$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2156 eval $ac_var=\$ac_old_val 2157 fi 2158 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2159$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2160 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2161$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2162 fi;; 2163 esac 2164 # Pass precious variables to config.status. 2165 if test "$ac_new_set" = set; then 2166 case $ac_new_val in 2167 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2168 *) ac_arg=$ac_var=$ac_new_val ;; 2169 esac 2170 case " $ac_configure_args " in 2171 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2172 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2173 esac 2174 fi 2175done 2176if $ac_cache_corrupted; then 2177 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2178$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2179 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2180$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2181 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2182fi 2183## -------------------- ## 2184## Main body of script. ## 2185## -------------------- ## 2186 2187ac_ext=c 2188ac_cpp='$CPP $CPPFLAGS' 2189ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2190ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2191ac_compiler_gnu=$ac_cv_c_compiler_gnu 2192 2193 2194 2195ac_config_headers="$ac_config_headers config.h" 2196 2197 2198# =========================================================================== 2199# http://www.gnu.org/software/autoconf-archive/ax_lua.html 2200# =========================================================================== 2201# 2202# SYNOPSIS 2203# 2204# AX_PROG_LUA[([MINIMUM-VERSION], [TOO-BIG-VERSION], [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])] 2205# AX_LUA_HEADERS[([ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])] 2206# AX_LUA_LIBS[([ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])] 2207# AX_LUA_READLINE[([ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])] 2208# 2209# DESCRIPTION 2210# 2211# Detect a Lua interpreter, optionally specifying a minimum and maximum 2212# version number. Set up important Lua paths, such as the directories in 2213# which to install scripts and modules (shared libraries). 2214# 2215# Also detect Lua headers and libraries. The Lua version contained in the 2216# header is checked to match the Lua interpreter version exactly. When 2217# searching for Lua libraries, the version number is used as a suffix. 2218# This is done with the goal of supporting multiple Lua installs (5.1 and 2219# 5.2 side-by-side). 2220# 2221# A note on compatibility with previous versions: This file has been 2222# mostly rewritten for serial 18. Most developers should be able to use 2223# these macros without needing to modify configure.ac. Care has been taken 2224# to preserve each macro's behavior, but there are some differences: 2225# 2226# 1) AX_WITH_LUA is deprecated; it now expands to the exact same thing as 2227# AX_PROG_LUA with no arguments. 2228# 2229# 2) AX_LUA_HEADERS now checks that the version number defined in lua.h 2230# matches the interpreter version. AX_LUA_HEADERS_VERSION is therefore 2231# unnecessary, so it is deprecated and does not expand to anything. 2232# 2233# 3) The configure flag --with-lua-suffix no longer exists; the user 2234# should instead specify the LUA precious variable on the command line. 2235# See the AX_PROG_LUA description for details. 2236# 2237# Please read the macro descriptions below for more information. 2238# 2239# This file was inspired by Andrew Dalke's and James Henstridge's 2240# python.m4 and Tom Payne's, Matthieu Moy's, and Reuben Thomas's ax_lua.m4 2241# (serial 17). Basically, this file is a mash-up of those two files. I 2242# like to think it combines the best of the two! 2243# 2244# AX_PROG_LUA: Search for the Lua interpreter, and set up important Lua 2245# paths. Adds precious variable LUA, which may contain the path of the Lua 2246# interpreter. If LUA is blank, the user's path is searched for an 2247# suitable interpreter. 2248# 2249# If MINIMUM-VERSION is supplied, then only Lua interpreters with a 2250# version number greater or equal to MINIMUM-VERSION will be accepted. If 2251# TOO-BIG- VERSION is also supplied, then only Lua interpreters with a 2252# version number greater or equal to MINIMUM-VERSION and less than 2253# TOO-BIG-VERSION will be accepted. 2254# 2255# Version comparisons require the AX_COMPARE_VERSION macro, which is 2256# provided by ax_compare_version.m4 from the Autoconf Archive. 2257# 2258# The Lua version number, LUA_VERSION, is found from the interpreter, and 2259# substituted. LUA_PLATFORM is also found, but not currently supported (no 2260# standard representation). 2261# 2262# Finally, the macro finds four paths: 2263# 2264# luadir Directory to install Lua scripts. 2265# pkgluadir $luadir/$PACKAGE 2266# luaexecdir Directory to install Lua modules. 2267# pkgluaexecdir $luaexecdir/$PACKAGE 2268# 2269# These paths a found based on $prefix, $exec_prefix, Lua's package.path, 2270# and package.cpath. The first path of package.path beginning with $prefix 2271# is selected as luadir. The first path of package.cpath beginning with 2272# $exec_prefix is used as luaexecdir. This should work on all reasonable 2273# Lua installations. If a path cannot be determined, a default path is 2274# used. Of course, the user can override these later when invoking make. 2275# 2276# luadir Default: $prefix/share/lua/$LUA_VERSION 2277# luaexecdir Default: $exec_prefix/lib/lua/$LUA_VERSION 2278# 2279# These directories can be used by Automake as install destinations. The 2280# variable name minus 'dir' needs to be used as a prefix to the 2281# appropriate Automake primary, e.g. lua_SCRIPS or luaexec_LIBRARIES. 2282# 2283# If an acceptable Lua interpreter is found, then ACTION-IF-FOUND is 2284# performed, otherwise ACTION-IF-NOT-FOUND is preformed. If ACTION-IF-NOT- 2285# FOUND is blank, then it will default to printing an error. To prevent 2286# the default behavior, give ':' as an action. 2287# 2288# AX_LUA_HEADERS: Search for Lua headers. Requires that AX_PROG_LUA be 2289# expanded before this macro. Adds precious variable LUA_INCLUDE, which 2290# may contain Lua specific include flags, e.g. -I/usr/include/lua5.1. If 2291# LUA_INCLUDE is blank, then this macro will attempt to find suitable 2292# flags. 2293# 2294# LUA_INCLUDE can be used by Automake to compile Lua modules or 2295# executables with embedded interpreters. The *_CPPFLAGS variables should 2296# be used for this purpose, e.g. myprog_CPPFLAGS = $(LUA_INCLUDE). 2297# 2298# This macro searches for the header lua.h (and others). The search is 2299# performed with a combination of CPPFLAGS, CPATH, etc, and LUA_INCLUDE. 2300# If the search is unsuccessful, then some common directories are tried. 2301# If the headers are then found, then LUA_INCLUDE is set accordingly. 2302# 2303# The paths automatically searched are: 2304# 2305# * /usr/include/luaX.Y 2306# * /usr/include/lua/X.Y 2307# * /usr/include/luaXY 2308# * /usr/local/include/luaX.Y 2309# * /usr/local/include/lua-X.Y 2310# * /usr/local/include/lua/X.Y 2311# * /usr/local/include/luaXY 2312# 2313# (Where X.Y is the Lua version number, e.g. 5.1.) 2314# 2315# The Lua version number found in the headers is always checked to match 2316# the Lua interpreter's version number. Lua headers with mismatched 2317# version numbers are not accepted. 2318# 2319# If headers are found, then ACTION-IF-FOUND is performed, otherwise 2320# ACTION-IF-NOT-FOUND is performed. If ACTION-IF-NOT-FOUND is blank, then 2321# it will default to printing an error. To prevent the default behavior, 2322# set the action to ':'. 2323# 2324# AX_LUA_LIBS: Search for Lua libraries. Requires that AX_PROG_LUA be 2325# expanded before this macro. Adds precious variable LUA_LIB, which may 2326# contain Lua specific linker flags, e.g. -llua5.1. If LUA_LIB is blank, 2327# then this macro will attempt to find suitable flags. 2328# 2329# LUA_LIB can be used by Automake to link Lua modules or executables with 2330# embedded interpreters. The *_LIBADD and *_LDADD variables should be used 2331# for this purpose, e.g. mymod_LIBADD = $(LUA_LIB). 2332# 2333# This macro searches for the Lua library. More technically, it searches 2334# for a library containing the function lua_load. The search is performed 2335# with a combination of LIBS, LIBRARY_PATH, and LUA_LIB. 2336# 2337# If the search determines that some linker flags are missing, then those 2338# flags will be added to LUA_LIB. 2339# 2340# If libraries are found, then ACTION-IF-FOUND is performed, otherwise 2341# ACTION-IF-NOT-FOUND is performed. If ACTION-IF-NOT-FOUND is blank, then 2342# it will default to printing an error. To prevent the default behavior, 2343# set the action to ':'. 2344# 2345# AX_LUA_READLINE: Search for readline headers and libraries. Requires the 2346# AX_LIB_READLINE macro, which is provided by ax_lib_readline.m4 from the 2347# Autoconf Archive. 2348# 2349# If a readline compatible library is found, then ACTION-IF-FOUND is 2350# performed, otherwise ACTION-IF-NOT-FOUND is performed. 2351# 2352# LICENSE 2353# 2354# Copyright (c) 2013 Tim Perkins <tprk77@gmail.com> 2355# Copyright (c) 2013 Reuben Thomas <rrt@sc3d.org> 2356# 2357# This program is free software: you can redistribute it and/or modify it 2358# under the terms of the GNU General Public License as published by the 2359# Free Software Foundation, either version 3 of the License, or (at your 2360# option) any later version. 2361# 2362# This program is distributed in the hope that it will be useful, but 2363# WITHOUT ANY WARRANTY; without even the implied warranty of 2364# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General 2365# Public License for more details. 2366# 2367# You should have received a copy of the GNU General Public License along 2368# with this program. If not, see <http://www.gnu.org/licenses/>. 2369# 2370# As a special exception, the respective Autoconf Macro's copyright owner 2371# gives unlimited permission to copy, distribute and modify the configure 2372# scripts that are the output of Autoconf when processing the Macro. You 2373# need not follow the terms of the GNU General Public License when using 2374# or distributing such scripts, even though portions of the text of the 2375# Macro appear in them. The GNU General Public License (GPL) does govern 2376# all other use of the material that constitutes the Autoconf Macro. 2377# 2378# This special exception to the GPL applies to versions of the Autoconf 2379# Macro released by the Autoconf Archive. When you make and distribute a 2380# modified version of the Autoconf Macro, you may extend this special 2381# exception to the GPL to apply to your modified version as well. 2382 2383#serial 21 2384 2385 2386 2387 2388 2389 2390 2391 2392 2393 2394 2395 2396 2397 2398 2399 2400 2401 2402 2403 2404 2405 2406 2407 2408 2409# =========================================================================== 2410# http://www.gnu.org/software/autoconf-archive/ax_python.html 2411# =========================================================================== 2412# 2413# SYNOPSIS 2414# 2415# AX_PYTHON 2416# 2417# DESCRIPTION 2418# 2419# This macro does a complete Python development environment check. 2420# 2421# It recurses through several python versions (from 2.1 to 2.6 in this 2422# version), looking for an executable. When it finds an executable, it 2423# looks to find the header files and library. 2424# 2425# It sets PYTHON_BIN to the name of the python executable, 2426# PYTHON_INCLUDE_DIR to the directory holding the header files, and 2427# PYTHON_LIB to the name of the Python library. 2428# 2429# This macro calls AC_SUBST on PYTHON_BIN (via AC_CHECK_PROG), 2430# PYTHON_INCLUDE_DIR and PYTHON_LIB. 2431# 2432# LICENSE 2433# 2434# Copyright (c) 2008 Michael Tindal 2435# 2436# This program is free software; you can redistribute it and/or modify it 2437# under the terms of the GNU General Public License as published by the 2438# Free Software Foundation; either version 2 of the License, or (at your 2439# option) any later version. 2440# 2441# This program is distributed in the hope that it will be useful, but 2442# WITHOUT ANY WARRANTY; without even the implied warranty of 2443# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General 2444# Public License for more details. 2445# 2446# You should have received a copy of the GNU General Public License along 2447# with this program. If not, see <http://www.gnu.org/licenses/>. 2448# 2449# As a special exception, the respective Autoconf Macro's copyright owner 2450# gives unlimited permission to copy, distribute and modify the configure 2451# scripts that are the output of Autoconf when processing the Macro. You 2452# need not follow the terms of the GNU General Public License when using 2453# or distributing such scripts, even though portions of the text of the 2454# Macro appear in them. The GNU General Public License (GPL) does govern 2455# all other use of the material that constitutes the Autoconf Macro. 2456# 2457# This special exception to the GPL applies to versions of the Autoconf 2458# Macro released by the Autoconf Archive. When you make and distribute a 2459# modified version of the Autoconf Macro, you may extend this special 2460# exception to the GPL to apply to your modified version as well. 2461 2462#serial 14 2463 2464 2465# =========================================================================== 2466# http://www.gnu.org/software/autoconf-archive/ax_check_openssl.html 2467# =========================================================================== 2468# 2469# SYNOPSIS 2470# 2471# AX_CHECK_OPENSSL([action-if-found[, action-if-not-found]]) 2472# 2473# DESCRIPTION 2474# 2475# Look for OpenSSL in a number of default spots, or in a user-selected 2476# spot (via --with-openssl). Sets 2477# 2478# OPENSSL_INCLUDES to the include directives required 2479# OPENSSL_LIBS to the -l directives required 2480# OPENSSL_LDFLAGS to the -L or -R flags required 2481# 2482# and calls ACTION-IF-FOUND or ACTION-IF-NOT-FOUND appropriately 2483# 2484# This macro sets OPENSSL_INCLUDES such that source files should use the 2485# openssl/ directory in include directives: 2486# 2487# #include <openssl/hmac.h> 2488# 2489# LICENSE 2490# 2491# Copyright (c) 2009,2010 Zmanda Inc. <http://www.zmanda.com/> 2492# Copyright (c) 2009,2010 Dustin J. Mitchell <dustin@zmanda.com> 2493# 2494# Copying and distribution of this file, with or without modification, are 2495# permitted in any medium without royalty provided the copyright notice 2496# and this notice are preserved. This file is offered as-is, without any 2497# warranty. 2498 2499#serial 8 2500 2501# This is what autoupdate's m4 run will expand. It fires 2502# the warning (with _au_warn_XXX), outputs it into the 2503# updated configure.ac (with AC_DIAGNOSE), and then outputs 2504# the replacement expansion. 2505 2506 2507# This is an auxiliary macro that is also run when 2508# autoupdate runs m4. It simply calls m4_warning, but 2509# we need a wrapper so that each warning is emitted only 2510# once. We break the quoting in m4_warning's argument in 2511# order to expand this macro's arguments, not AU_DEFUN's. 2512 2513 2514# Finally, this is the expansion that is picked up by 2515# autoconf. It tells the user to run autoupdate, and 2516# then outputs the replacement expansion. We do not care 2517# about autoupdate's warning because that contains 2518# information on what to do *after* running autoupdate. 2519 2520 2521 2522# =========================================================================== 2523# http://www.gnu.org/software/autoconf-archive/ax_check_zlib.html 2524# =========================================================================== 2525# 2526# SYNOPSIS 2527# 2528# AX_CHECK_ZLIB([action-if-found], [action-if-not-found]) 2529# 2530# DESCRIPTION 2531# 2532# This macro searches for an installed zlib library. If nothing was 2533# specified when calling configure, it searches first in /usr/local and 2534# then in /usr, /opt/local and /sw. If the --with-zlib=DIR is specified, 2535# it will try to find it in DIR/include/zlib.h and DIR/lib/libz.a. If 2536# --without-zlib is specified, the library is not searched at all. 2537# 2538# If either the header file (zlib.h) or the library (libz) is not found, 2539# shell commands 'action-if-not-found' is run. If 'action-if-not-found' is 2540# not specified, the configuration exits on error, asking for a valid zlib 2541# installation directory or --without-zlib. 2542# 2543# If both header file and library are found, shell commands 2544# 'action-if-found' is run. If 'action-if-found' is not specified, the 2545# default action appends '-I${ZLIB_HOME}/include' to CPFLAGS, appends 2546# '-L$ZLIB_HOME}/lib' to LDFLAGS, prepends '-lz' to LIBS, and calls 2547# AC_DEFINE(HAVE_LIBZ). You should use autoheader to include a definition 2548# for this symbol in a config.h file. Sample usage in a C/C++ source is as 2549# follows: 2550# 2551# #ifdef HAVE_LIBZ 2552# #include <zlib.h> 2553# #endif /* HAVE_LIBZ */ 2554# 2555# LICENSE 2556# 2557# Copyright (c) 2008 Loic Dachary <loic@senga.org> 2558# Copyright (c) 2010 Bastien Chevreux <bach@chevreux.org> 2559# 2560# This program is free software; you can redistribute it and/or modify it 2561# under the terms of the GNU General Public License as published by the 2562# Free Software Foundation; either version 2 of the License, or (at your 2563# option) any later version. 2564# 2565# This program is distributed in the hope that it will be useful, but 2566# WITHOUT ANY WARRANTY; without even the implied warranty of 2567# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General 2568# Public License for more details. 2569# 2570# You should have received a copy of the GNU General Public License along 2571# with this program. If not, see <http://www.gnu.org/licenses/>. 2572# 2573# As a special exception, the respective Autoconf Macro's copyright owner 2574# gives unlimited permission to copy, distribute and modify the configure 2575# scripts that are the output of Autoconf when processing the Macro. You 2576# need not follow the terms of the GNU General Public License when using 2577# or distributing such scripts, even though portions of the text of the 2578# Macro appear in them. The GNU General Public License (GPL) does govern 2579# all other use of the material that constitutes the Autoconf Macro. 2580# 2581# This special exception to the GPL applies to versions of the Autoconf 2582# Macro released by the Autoconf Archive. When you make and distribute a 2583# modified version of the Autoconf Macro, you may extend this special 2584# exception to the GPL to apply to your modified version as well. 2585 2586#serial 14 2587 2588# This is what autoupdate's m4 run will expand. It fires 2589# the warning (with _au_warn_XXX), outputs it into the 2590# updated configure.ac (with AC_DIAGNOSE), and then outputs 2591# the replacement expansion. 2592 2593 2594# This is an auxiliary macro that is also run when 2595# autoupdate runs m4. It simply calls m4_warning, but 2596# we need a wrapper so that each warning is emitted only 2597# once. We break the quoting in m4_warning's argument in 2598# order to expand this macro's arguments, not AU_DEFUN's. 2599 2600 2601# Finally, this is the expansion that is picked up by 2602# autoconf. It tells the user to run autoupdate, and 2603# then outputs the replacement expansion. We do not care 2604# about autoupdate's warning because that contains 2605# information on what to do *after* running autoupdate. 2606 2607 2608 2609# =========================================================================== 2610# http://www.gnu.org/software/autoconf-archive/ax_gcc_builtin.html 2611# =========================================================================== 2612# 2613# SYNOPSIS 2614# 2615# AX_GCC_BUILTIN(BUILTIN) 2616# 2617# DESCRIPTION 2618# 2619# This macro checks if the compiler supports one of GCC's built-in 2620# functions; many other compilers also provide those same built-ins. 2621# 2622# The BUILTIN parameter is the name of the built-in function. 2623# 2624# If BUILTIN is supported define HAVE_<BUILTIN>. Keep in mind that since 2625# builtins usually start with two underscores they will be copied over 2626# into the HAVE_<BUILTIN> definition (e.g. HAVE___BUILTIN_EXPECT for 2627# __builtin_expect()). 2628# 2629# The macro caches its result in the ax_cv_have_<BUILTIN> variable (e.g. 2630# ax_cv_have___builtin_expect). 2631# 2632# The macro currently supports the following built-in functions: 2633# 2634# __builtin_assume_aligned 2635# __builtin_bswap32 2636# __builtin_bswap64 2637# __builtin_choose_expr 2638# __builtin___clear_cache 2639# __builtin_clrsb 2640# __builtin_clrsbl 2641# __builtin_clrsbll 2642# __builtin_clz 2643# __builtin_clzl 2644# __builtin_clzll 2645# __builtin_complex 2646# __builtin_constant_p 2647# __builtin_ctz 2648# __builtin_ctzl 2649# __builtin_ctzll 2650# __builtin_expect 2651# __builtin_ffs 2652# __builtin_ffsl 2653# __builtin_ffsll 2654# __builtin_fpclassify 2655# __builtin_huge_val 2656# __builtin_huge_valf 2657# __builtin_huge_vall 2658# __builtin_inf 2659# __builtin_infd128 2660# __builtin_infd32 2661# __builtin_infd64 2662# __builtin_inff 2663# __builtin_infl 2664# __builtin_isinf_sign 2665# __builtin_nan 2666# __builtin_nand128 2667# __builtin_nand32 2668# __builtin_nand64 2669# __builtin_nanf 2670# __builtin_nanl 2671# __builtin_nans 2672# __builtin_nansf 2673# __builtin_nansl 2674# __builtin_object_size 2675# __builtin_parity 2676# __builtin_parityl 2677# __builtin_parityll 2678# __builtin_popcount 2679# __builtin_popcountl 2680# __builtin_popcountll 2681# __builtin_powi 2682# __builtin_powif 2683# __builtin_powil 2684# __builtin_prefetch 2685# __builtin_trap 2686# __builtin_types_compatible_p 2687# __builtin_unreachable 2688# 2689# Unsuppored built-ins will be tested with an empty parameter set and the 2690# result of the check might be wrong or meaningless so use with care. 2691# 2692# LICENSE 2693# 2694# Copyright (c) 2013 Gabriele Svelto <gabriele.svelto@gmail.com> 2695# 2696# Copying and distribution of this file, with or without modification, are 2697# permitted in any medium without royalty provided the copyright notice 2698# and this notice are preserved. This file is offered as-is, without any 2699# warranty. 2700 2701#serial 2 2702 2703 2704 2705 2706# Checks for programs. 2707ac_ext=c 2708ac_cpp='$CPP $CPPFLAGS' 2709ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2710ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2711ac_compiler_gnu=$ac_cv_c_compiler_gnu 2712if test -n "$ac_tool_prefix"; then 2713 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2714set dummy ${ac_tool_prefix}gcc; ac_word=$2 2715{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2716$as_echo_n "checking for $ac_word... " >&6; } 2717if ${ac_cv_prog_CC+:} false; then : 2718 $as_echo_n "(cached) " >&6 2719else 2720 if test -n "$CC"; then 2721 ac_cv_prog_CC="$CC" # Let the user override the test. 2722else 2723as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2724for as_dir in $PATH 2725do 2726 IFS=$as_save_IFS 2727 test -z "$as_dir" && as_dir=. 2728 for ac_exec_ext in '' $ac_executable_extensions; do 2729 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2730 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2731 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2732 break 2 2733 fi 2734done 2735 done 2736IFS=$as_save_IFS 2737 2738fi 2739fi 2740CC=$ac_cv_prog_CC 2741if test -n "$CC"; then 2742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2743$as_echo "$CC" >&6; } 2744else 2745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2746$as_echo "no" >&6; } 2747fi 2748 2749 2750fi 2751if test -z "$ac_cv_prog_CC"; then 2752 ac_ct_CC=$CC 2753 # Extract the first word of "gcc", so it can be a program name with args. 2754set dummy gcc; ac_word=$2 2755{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2756$as_echo_n "checking for $ac_word... " >&6; } 2757if ${ac_cv_prog_ac_ct_CC+:} false; then : 2758 $as_echo_n "(cached) " >&6 2759else 2760 if test -n "$ac_ct_CC"; then 2761 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2762else 2763as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2764for as_dir in $PATH 2765do 2766 IFS=$as_save_IFS 2767 test -z "$as_dir" && as_dir=. 2768 for ac_exec_ext in '' $ac_executable_extensions; do 2769 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2770 ac_cv_prog_ac_ct_CC="gcc" 2771 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2772 break 2 2773 fi 2774done 2775 done 2776IFS=$as_save_IFS 2777 2778fi 2779fi 2780ac_ct_CC=$ac_cv_prog_ac_ct_CC 2781if test -n "$ac_ct_CC"; then 2782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2783$as_echo "$ac_ct_CC" >&6; } 2784else 2785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2786$as_echo "no" >&6; } 2787fi 2788 2789 if test "x$ac_ct_CC" = x; then 2790 CC="" 2791 else 2792 case $cross_compiling:$ac_tool_warned in 2793yes:) 2794{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2795$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2796ac_tool_warned=yes ;; 2797esac 2798 CC=$ac_ct_CC 2799 fi 2800else 2801 CC="$ac_cv_prog_CC" 2802fi 2803 2804if test -z "$CC"; then 2805 if test -n "$ac_tool_prefix"; then 2806 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2807set dummy ${ac_tool_prefix}cc; ac_word=$2 2808{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2809$as_echo_n "checking for $ac_word... " >&6; } 2810if ${ac_cv_prog_CC+:} false; then : 2811 $as_echo_n "(cached) " >&6 2812else 2813 if test -n "$CC"; then 2814 ac_cv_prog_CC="$CC" # Let the user override the test. 2815else 2816as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2817for as_dir in $PATH 2818do 2819 IFS=$as_save_IFS 2820 test -z "$as_dir" && as_dir=. 2821 for ac_exec_ext in '' $ac_executable_extensions; do 2822 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2823 ac_cv_prog_CC="${ac_tool_prefix}cc" 2824 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2825 break 2 2826 fi 2827done 2828 done 2829IFS=$as_save_IFS 2830 2831fi 2832fi 2833CC=$ac_cv_prog_CC 2834if test -n "$CC"; then 2835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2836$as_echo "$CC" >&6; } 2837else 2838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2839$as_echo "no" >&6; } 2840fi 2841 2842 2843 fi 2844fi 2845if test -z "$CC"; then 2846 # Extract the first word of "cc", so it can be a program name with args. 2847set dummy cc; ac_word=$2 2848{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2849$as_echo_n "checking for $ac_word... " >&6; } 2850if ${ac_cv_prog_CC+:} false; then : 2851 $as_echo_n "(cached) " >&6 2852else 2853 if test -n "$CC"; then 2854 ac_cv_prog_CC="$CC" # Let the user override the test. 2855else 2856 ac_prog_rejected=no 2857as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2858for as_dir in $PATH 2859do 2860 IFS=$as_save_IFS 2861 test -z "$as_dir" && as_dir=. 2862 for ac_exec_ext in '' $ac_executable_extensions; do 2863 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2864 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2865 ac_prog_rejected=yes 2866 continue 2867 fi 2868 ac_cv_prog_CC="cc" 2869 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2870 break 2 2871 fi 2872done 2873 done 2874IFS=$as_save_IFS 2875 2876if test $ac_prog_rejected = yes; then 2877 # We found a bogon in the path, so make sure we never use it. 2878 set dummy $ac_cv_prog_CC 2879 shift 2880 if test $# != 0; then 2881 # We chose a different compiler from the bogus one. 2882 # However, it has the same basename, so the bogon will be chosen 2883 # first if we set CC to just the basename; use the full file name. 2884 shift 2885 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 2886 fi 2887fi 2888fi 2889fi 2890CC=$ac_cv_prog_CC 2891if test -n "$CC"; then 2892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2893$as_echo "$CC" >&6; } 2894else 2895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2896$as_echo "no" >&6; } 2897fi 2898 2899 2900fi 2901if test -z "$CC"; then 2902 if test -n "$ac_tool_prefix"; then 2903 for ac_prog in cl.exe 2904 do 2905 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2906set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2907{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2908$as_echo_n "checking for $ac_word... " >&6; } 2909if ${ac_cv_prog_CC+:} false; then : 2910 $as_echo_n "(cached) " >&6 2911else 2912 if test -n "$CC"; then 2913 ac_cv_prog_CC="$CC" # Let the user override the test. 2914else 2915as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2916for as_dir in $PATH 2917do 2918 IFS=$as_save_IFS 2919 test -z "$as_dir" && as_dir=. 2920 for ac_exec_ext in '' $ac_executable_extensions; do 2921 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2922 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2923 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2924 break 2 2925 fi 2926done 2927 done 2928IFS=$as_save_IFS 2929 2930fi 2931fi 2932CC=$ac_cv_prog_CC 2933if test -n "$CC"; then 2934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2935$as_echo "$CC" >&6; } 2936else 2937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2938$as_echo "no" >&6; } 2939fi 2940 2941 2942 test -n "$CC" && break 2943 done 2944fi 2945if test -z "$CC"; then 2946 ac_ct_CC=$CC 2947 for ac_prog in cl.exe 2948do 2949 # Extract the first word of "$ac_prog", so it can be a program name with args. 2950set dummy $ac_prog; ac_word=$2 2951{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2952$as_echo_n "checking for $ac_word... " >&6; } 2953if ${ac_cv_prog_ac_ct_CC+:} false; then : 2954 $as_echo_n "(cached) " >&6 2955else 2956 if test -n "$ac_ct_CC"; then 2957 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2958else 2959as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2960for as_dir in $PATH 2961do 2962 IFS=$as_save_IFS 2963 test -z "$as_dir" && as_dir=. 2964 for ac_exec_ext in '' $ac_executable_extensions; do 2965 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2966 ac_cv_prog_ac_ct_CC="$ac_prog" 2967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2968 break 2 2969 fi 2970done 2971 done 2972IFS=$as_save_IFS 2973 2974fi 2975fi 2976ac_ct_CC=$ac_cv_prog_ac_ct_CC 2977if test -n "$ac_ct_CC"; then 2978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2979$as_echo "$ac_ct_CC" >&6; } 2980else 2981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2982$as_echo "no" >&6; } 2983fi 2984 2985 2986 test -n "$ac_ct_CC" && break 2987done 2988 2989 if test "x$ac_ct_CC" = x; then 2990 CC="" 2991 else 2992 case $cross_compiling:$ac_tool_warned in 2993yes:) 2994{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2995$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2996ac_tool_warned=yes ;; 2997esac 2998 CC=$ac_ct_CC 2999 fi 3000fi 3001 3002fi 3003 3004 3005test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3006$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3007as_fn_error $? "no acceptable C compiler found in \$PATH 3008See \`config.log' for more details" "$LINENO" 5; } 3009 3010# Provide some information about the compiler. 3011$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3012set X $ac_compile 3013ac_compiler=$2 3014for ac_option in --version -v -V -qversion; do 3015 { { ac_try="$ac_compiler $ac_option >&5" 3016case "(($ac_try" in 3017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3018 *) ac_try_echo=$ac_try;; 3019esac 3020eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3021$as_echo "$ac_try_echo"; } >&5 3022 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3023 ac_status=$? 3024 if test -s conftest.err; then 3025 sed '10a\ 3026... rest of stderr output deleted ... 3027 10q' conftest.err >conftest.er1 3028 cat conftest.er1 >&5 3029 fi 3030 rm -f conftest.er1 conftest.err 3031 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3032 test $ac_status = 0; } 3033done 3034 3035cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3036/* end confdefs.h. */ 3037 3038int 3039main () 3040{ 3041 3042 ; 3043 return 0; 3044} 3045_ACEOF 3046ac_clean_files_save=$ac_clean_files 3047ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3048# Try to create an executable without -o first, disregard a.out. 3049# It will help us diagnose broken compilers, and finding out an intuition 3050# of exeext. 3051{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3052$as_echo_n "checking whether the C compiler works... " >&6; } 3053ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3054 3055# The possible output files: 3056ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3057 3058ac_rmfiles= 3059for ac_file in $ac_files 3060do 3061 case $ac_file in 3062 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3063 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3064 esac 3065done 3066rm -f $ac_rmfiles 3067 3068if { { ac_try="$ac_link_default" 3069case "(($ac_try" in 3070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3071 *) ac_try_echo=$ac_try;; 3072esac 3073eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3074$as_echo "$ac_try_echo"; } >&5 3075 (eval "$ac_link_default") 2>&5 3076 ac_status=$? 3077 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3078 test $ac_status = 0; }; then : 3079 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3080# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3081# in a Makefile. We should not override ac_cv_exeext if it was cached, 3082# so that the user can short-circuit this test for compilers unknown to 3083# Autoconf. 3084for ac_file in $ac_files '' 3085do 3086 test -f "$ac_file" || continue 3087 case $ac_file in 3088 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3089 ;; 3090 [ab].out ) 3091 # We found the default executable, but exeext='' is most 3092 # certainly right. 3093 break;; 3094 *.* ) 3095 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3096 then :; else 3097 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3098 fi 3099 # We set ac_cv_exeext here because the later test for it is not 3100 # safe: cross compilers may not add the suffix if given an `-o' 3101 # argument, so we may need to know it at that point already. 3102 # Even if this section looks crufty: it has the advantage of 3103 # actually working. 3104 break;; 3105 * ) 3106 break;; 3107 esac 3108done 3109test "$ac_cv_exeext" = no && ac_cv_exeext= 3110 3111else 3112 ac_file='' 3113fi 3114if test -z "$ac_file"; then : 3115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3116$as_echo "no" >&6; } 3117$as_echo "$as_me: failed program was:" >&5 3118sed 's/^/| /' conftest.$ac_ext >&5 3119 3120{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3121$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3122as_fn_error 77 "C compiler cannot create executables 3123See \`config.log' for more details" "$LINENO" 5; } 3124else 3125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3126$as_echo "yes" >&6; } 3127fi 3128{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3129$as_echo_n "checking for C compiler default output file name... " >&6; } 3130{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3131$as_echo "$ac_file" >&6; } 3132ac_exeext=$ac_cv_exeext 3133 3134rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3135ac_clean_files=$ac_clean_files_save 3136{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3137$as_echo_n "checking for suffix of executables... " >&6; } 3138if { { ac_try="$ac_link" 3139case "(($ac_try" in 3140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3141 *) ac_try_echo=$ac_try;; 3142esac 3143eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3144$as_echo "$ac_try_echo"; } >&5 3145 (eval "$ac_link") 2>&5 3146 ac_status=$? 3147 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3148 test $ac_status = 0; }; then : 3149 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3150# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3151# work properly (i.e., refer to `conftest.exe'), while it won't with 3152# `rm'. 3153for ac_file in conftest.exe conftest conftest.*; do 3154 test -f "$ac_file" || continue 3155 case $ac_file in 3156 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3157 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3158 break;; 3159 * ) break;; 3160 esac 3161done 3162else 3163 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3164$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3165as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3166See \`config.log' for more details" "$LINENO" 5; } 3167fi 3168rm -f conftest conftest$ac_cv_exeext 3169{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3170$as_echo "$ac_cv_exeext" >&6; } 3171 3172rm -f conftest.$ac_ext 3173EXEEXT=$ac_cv_exeext 3174ac_exeext=$EXEEXT 3175cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3176/* end confdefs.h. */ 3177#include <stdio.h> 3178int 3179main () 3180{ 3181FILE *f = fopen ("conftest.out", "w"); 3182 return ferror (f) || fclose (f) != 0; 3183 3184 ; 3185 return 0; 3186} 3187_ACEOF 3188ac_clean_files="$ac_clean_files conftest.out" 3189# Check that the compiler produces executables we can run. If not, either 3190# the compiler is broken, or we cross compile. 3191{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3192$as_echo_n "checking whether we are cross compiling... " >&6; } 3193if test "$cross_compiling" != yes; then 3194 { { ac_try="$ac_link" 3195case "(($ac_try" in 3196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3197 *) ac_try_echo=$ac_try;; 3198esac 3199eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3200$as_echo "$ac_try_echo"; } >&5 3201 (eval "$ac_link") 2>&5 3202 ac_status=$? 3203 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3204 test $ac_status = 0; } 3205 if { ac_try='./conftest$ac_cv_exeext' 3206 { { case "(($ac_try" in 3207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3208 *) ac_try_echo=$ac_try;; 3209esac 3210eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3211$as_echo "$ac_try_echo"; } >&5 3212 (eval "$ac_try") 2>&5 3213 ac_status=$? 3214 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3215 test $ac_status = 0; }; }; then 3216 cross_compiling=no 3217 else 3218 if test "$cross_compiling" = maybe; then 3219 cross_compiling=yes 3220 else 3221 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3222$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3223as_fn_error $? "cannot run C compiled programs. 3224If you meant to cross compile, use \`--host'. 3225See \`config.log' for more details" "$LINENO" 5; } 3226 fi 3227 fi 3228fi 3229{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3230$as_echo "$cross_compiling" >&6; } 3231 3232rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3233ac_clean_files=$ac_clean_files_save 3234{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3235$as_echo_n "checking for suffix of object files... " >&6; } 3236if ${ac_cv_objext+:} false; then : 3237 $as_echo_n "(cached) " >&6 3238else 3239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3240/* end confdefs.h. */ 3241 3242int 3243main () 3244{ 3245 3246 ; 3247 return 0; 3248} 3249_ACEOF 3250rm -f conftest.o conftest.obj 3251if { { ac_try="$ac_compile" 3252case "(($ac_try" in 3253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3254 *) ac_try_echo=$ac_try;; 3255esac 3256eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3257$as_echo "$ac_try_echo"; } >&5 3258 (eval "$ac_compile") 2>&5 3259 ac_status=$? 3260 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3261 test $ac_status = 0; }; then : 3262 for ac_file in conftest.o conftest.obj conftest.*; do 3263 test -f "$ac_file" || continue; 3264 case $ac_file in 3265 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3266 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3267 break;; 3268 esac 3269done 3270else 3271 $as_echo "$as_me: failed program was:" >&5 3272sed 's/^/| /' conftest.$ac_ext >&5 3273 3274{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3275$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3276as_fn_error $? "cannot compute suffix of object files: cannot compile 3277See \`config.log' for more details" "$LINENO" 5; } 3278fi 3279rm -f conftest.$ac_cv_objext conftest.$ac_ext 3280fi 3281{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3282$as_echo "$ac_cv_objext" >&6; } 3283OBJEXT=$ac_cv_objext 3284ac_objext=$OBJEXT 3285{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3286$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3287if ${ac_cv_c_compiler_gnu+:} false; then : 3288 $as_echo_n "(cached) " >&6 3289else 3290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3291/* end confdefs.h. */ 3292 3293int 3294main () 3295{ 3296#ifndef __GNUC__ 3297 choke me 3298#endif 3299 3300 ; 3301 return 0; 3302} 3303_ACEOF 3304if ac_fn_c_try_compile "$LINENO"; then : 3305 ac_compiler_gnu=yes 3306else 3307 ac_compiler_gnu=no 3308fi 3309rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3310ac_cv_c_compiler_gnu=$ac_compiler_gnu 3311 3312fi 3313{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3314$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3315if test $ac_compiler_gnu = yes; then 3316 GCC=yes 3317else 3318 GCC= 3319fi 3320ac_test_CFLAGS=${CFLAGS+set} 3321ac_save_CFLAGS=$CFLAGS 3322{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3323$as_echo_n "checking whether $CC accepts -g... " >&6; } 3324if ${ac_cv_prog_cc_g+:} false; then : 3325 $as_echo_n "(cached) " >&6 3326else 3327 ac_save_c_werror_flag=$ac_c_werror_flag 3328 ac_c_werror_flag=yes 3329 ac_cv_prog_cc_g=no 3330 CFLAGS="-g" 3331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3332/* end confdefs.h. */ 3333 3334int 3335main () 3336{ 3337 3338 ; 3339 return 0; 3340} 3341_ACEOF 3342if ac_fn_c_try_compile "$LINENO"; then : 3343 ac_cv_prog_cc_g=yes 3344else 3345 CFLAGS="" 3346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3347/* end confdefs.h. */ 3348 3349int 3350main () 3351{ 3352 3353 ; 3354 return 0; 3355} 3356_ACEOF 3357if ac_fn_c_try_compile "$LINENO"; then : 3358 3359else 3360 ac_c_werror_flag=$ac_save_c_werror_flag 3361 CFLAGS="-g" 3362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3363/* end confdefs.h. */ 3364 3365int 3366main () 3367{ 3368 3369 ; 3370 return 0; 3371} 3372_ACEOF 3373if ac_fn_c_try_compile "$LINENO"; then : 3374 ac_cv_prog_cc_g=yes 3375fi 3376rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3377fi 3378rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3379fi 3380rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3381 ac_c_werror_flag=$ac_save_c_werror_flag 3382fi 3383{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3384$as_echo "$ac_cv_prog_cc_g" >&6; } 3385if test "$ac_test_CFLAGS" = set; then 3386 CFLAGS=$ac_save_CFLAGS 3387elif test $ac_cv_prog_cc_g = yes; then 3388 if test "$GCC" = yes; then 3389 CFLAGS="-g -O2" 3390 else 3391 CFLAGS="-g" 3392 fi 3393else 3394 if test "$GCC" = yes; then 3395 CFLAGS="-O2" 3396 else 3397 CFLAGS= 3398 fi 3399fi 3400{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3401$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3402if ${ac_cv_prog_cc_c89+:} false; then : 3403 $as_echo_n "(cached) " >&6 3404else 3405 ac_cv_prog_cc_c89=no 3406ac_save_CC=$CC 3407cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3408/* end confdefs.h. */ 3409#include <stdarg.h> 3410#include <stdio.h> 3411struct stat; 3412/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3413struct buf { int x; }; 3414FILE * (*rcsopen) (struct buf *, struct stat *, int); 3415static char *e (p, i) 3416 char **p; 3417 int i; 3418{ 3419 return p[i]; 3420} 3421static char *f (char * (*g) (char **, int), char **p, ...) 3422{ 3423 char *s; 3424 va_list v; 3425 va_start (v,p); 3426 s = g (p, va_arg (v,int)); 3427 va_end (v); 3428 return s; 3429} 3430 3431/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3432 function prototypes and stuff, but not '\xHH' hex character constants. 3433 These don't provoke an error unfortunately, instead are silently treated 3434 as 'x'. The following induces an error, until -std is added to get 3435 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3436 array size at least. It's necessary to write '\x00'==0 to get something 3437 that's true only with -std. */ 3438int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3439 3440/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3441 inside strings and character constants. */ 3442#define FOO(x) 'x' 3443int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3444 3445int test (int i, double x); 3446struct s1 {int (*f) (int a);}; 3447struct s2 {int (*f) (double a);}; 3448int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3449int argc; 3450char **argv; 3451int 3452main () 3453{ 3454return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3455 ; 3456 return 0; 3457} 3458_ACEOF 3459for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3460 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3461do 3462 CC="$ac_save_CC $ac_arg" 3463 if ac_fn_c_try_compile "$LINENO"; then : 3464 ac_cv_prog_cc_c89=$ac_arg 3465fi 3466rm -f core conftest.err conftest.$ac_objext 3467 test "x$ac_cv_prog_cc_c89" != "xno" && break 3468done 3469rm -f conftest.$ac_ext 3470CC=$ac_save_CC 3471 3472fi 3473# AC_CACHE_VAL 3474case "x$ac_cv_prog_cc_c89" in 3475 x) 3476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3477$as_echo "none needed" >&6; } ;; 3478 xno) 3479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3480$as_echo "unsupported" >&6; } ;; 3481 *) 3482 CC="$CC $ac_cv_prog_cc_c89" 3483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3484$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3485esac 3486if test "x$ac_cv_prog_cc_c89" != xno; then : 3487 3488fi 3489 3490ac_ext=c 3491ac_cpp='$CPP $CPPFLAGS' 3492ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3493ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3494ac_compiler_gnu=$ac_cv_c_compiler_gnu 3495 3496 3497# BSD locations for headers and libraries from packages, Linux locations for self-compiled stuff. 3498CPPFLAGS="$CPPFLAGS -I/usr/local/include" 3499LDFLAGS="$LDFLAGS -L/usr/local/lib" 3500 3501# Checks for libraries. 3502 3503{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5 3504$as_echo_n "checking for library containing clock_gettime... " >&6; } 3505if ${ac_cv_search_clock_gettime+:} false; then : 3506 $as_echo_n "(cached) " >&6 3507else 3508 ac_func_search_save_LIBS=$LIBS 3509cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3510/* end confdefs.h. */ 3511 3512/* Override any GCC internal prototype to avoid an error. 3513 Use char because int might match the return type of a GCC 3514 builtin and then its argument prototype would still apply. */ 3515#ifdef __cplusplus 3516extern "C" 3517#endif 3518char clock_gettime (); 3519int 3520main () 3521{ 3522return clock_gettime (); 3523 ; 3524 return 0; 3525} 3526_ACEOF 3527for ac_lib in '' rt; do 3528 if test -z "$ac_lib"; then 3529 ac_res="none required" 3530 else 3531 ac_res=-l$ac_lib 3532 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 3533 fi 3534 if ac_fn_c_try_link "$LINENO"; then : 3535 ac_cv_search_clock_gettime=$ac_res 3536fi 3537rm -f core conftest.err conftest.$ac_objext \ 3538 conftest$ac_exeext 3539 if ${ac_cv_search_clock_gettime+:} false; then : 3540 break 3541fi 3542done 3543if ${ac_cv_search_clock_gettime+:} false; then : 3544 3545else 3546 ac_cv_search_clock_gettime=no 3547fi 3548rm conftest.$ac_ext 3549LIBS=$ac_func_search_save_LIBS 3550fi 3551{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5 3552$as_echo "$ac_cv_search_clock_gettime" >&6; } 3553ac_res=$ac_cv_search_clock_gettime 3554if test "$ac_res" != no; then : 3555 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 3556 3557fi 3558 3559{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing backtrace" >&5 3560$as_echo_n "checking for library containing backtrace... " >&6; } 3561if ${ac_cv_search_backtrace+:} false; then : 3562 $as_echo_n "(cached) " >&6 3563else 3564 ac_func_search_save_LIBS=$LIBS 3565cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3566/* end confdefs.h. */ 3567 3568/* Override any GCC internal prototype to avoid an error. 3569 Use char because int might match the return type of a GCC 3570 builtin and then its argument prototype would still apply. */ 3571#ifdef __cplusplus 3572extern "C" 3573#endif 3574char backtrace (); 3575int 3576main () 3577{ 3578return backtrace (); 3579 ; 3580 return 0; 3581} 3582_ACEOF 3583for ac_lib in '' execinfo; do 3584 if test -z "$ac_lib"; then 3585 ac_res="none required" 3586 else 3587 ac_res=-l$ac_lib 3588 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 3589 fi 3590 if ac_fn_c_try_link "$LINENO"; then : 3591 ac_cv_search_backtrace=$ac_res 3592fi 3593rm -f core conftest.err conftest.$ac_objext \ 3594 conftest$ac_exeext 3595 if ${ac_cv_search_backtrace+:} false; then : 3596 break 3597fi 3598done 3599if ${ac_cv_search_backtrace+:} false; then : 3600 3601else 3602 ac_cv_search_backtrace=no 3603fi 3604rm conftest.$ac_ext 3605LIBS=$ac_func_search_save_LIBS 3606fi 3607{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_backtrace" >&5 3608$as_echo "$ac_cv_search_backtrace" >&6; } 3609ac_res=$ac_cv_search_backtrace 3610if test "$ac_res" != no; then : 3611 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 3612 3613fi 3614 3615{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for event_base_new in -levent" >&5 3616$as_echo_n "checking for event_base_new in -levent... " >&6; } 3617if ${ac_cv_lib_event_event_base_new+:} false; then : 3618 $as_echo_n "(cached) " >&6 3619else 3620 ac_check_lib_save_LIBS=$LIBS 3621LIBS="-levent $LIBS" 3622cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3623/* end confdefs.h. */ 3624 3625/* Override any GCC internal prototype to avoid an error. 3626 Use char because int might match the return type of a GCC 3627 builtin and then its argument prototype would still apply. */ 3628#ifdef __cplusplus 3629extern "C" 3630#endif 3631char event_base_new (); 3632int 3633main () 3634{ 3635return event_base_new (); 3636 ; 3637 return 0; 3638} 3639_ACEOF 3640if ac_fn_c_try_link "$LINENO"; then : 3641 ac_cv_lib_event_event_base_new=yes 3642else 3643 ac_cv_lib_event_event_base_new=no 3644fi 3645rm -f core conftest.err conftest.$ac_objext \ 3646 conftest$ac_exeext conftest.$ac_ext 3647LIBS=$ac_check_lib_save_LIBS 3648fi 3649{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_event_event_base_new" >&5 3650$as_echo "$ac_cv_lib_event_event_base_new" >&6; } 3651if test "x$ac_cv_lib_event_event_base_new" = xyes; then : 3652 cat >>confdefs.h <<_ACEOF 3653#define HAVE_LIBEVENT 1 3654_ACEOF 3655 3656 LIBS="-levent $LIBS" 3657 3658else 3659 as_fn_error $? "no libevent found" "$LINENO" 5 3660fi 3661 3662 3663EVENT_VER="" 3664 3665ac_ext=c 3666ac_cpp='$CPP $CPPFLAGS' 3667ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3668ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3669ac_compiler_gnu=$ac_cv_c_compiler_gnu 3670{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 3671$as_echo_n "checking how to run the C preprocessor... " >&6; } 3672# On Suns, sometimes $CPP names a directory. 3673if test -n "$CPP" && test -d "$CPP"; then 3674 CPP= 3675fi 3676if test -z "$CPP"; then 3677 if ${ac_cv_prog_CPP+:} false; then : 3678 $as_echo_n "(cached) " >&6 3679else 3680 # Double quotes because CPP needs to be expanded 3681 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 3682 do 3683 ac_preproc_ok=false 3684for ac_c_preproc_warn_flag in '' yes 3685do 3686 # Use a header file that comes with gcc, so configuring glibc 3687 # with a fresh cross-compiler works. 3688 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3689 # <limits.h> exists even on freestanding compilers. 3690 # On the NeXT, cc -E runs the code through the compiler's parser, 3691 # not just through cpp. "Syntax error" is here to catch this case. 3692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3693/* end confdefs.h. */ 3694#ifdef __STDC__ 3695# include <limits.h> 3696#else 3697# include <assert.h> 3698#endif 3699 Syntax error 3700_ACEOF 3701if ac_fn_c_try_cpp "$LINENO"; then : 3702 3703else 3704 # Broken: fails on valid input. 3705continue 3706fi 3707rm -f conftest.err conftest.i conftest.$ac_ext 3708 3709 # OK, works on sane cases. Now check whether nonexistent headers 3710 # can be detected and how. 3711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3712/* end confdefs.h. */ 3713#include <ac_nonexistent.h> 3714_ACEOF 3715if ac_fn_c_try_cpp "$LINENO"; then : 3716 # Broken: success on invalid input. 3717continue 3718else 3719 # Passes both tests. 3720ac_preproc_ok=: 3721break 3722fi 3723rm -f conftest.err conftest.i conftest.$ac_ext 3724 3725done 3726# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3727rm -f conftest.i conftest.err conftest.$ac_ext 3728if $ac_preproc_ok; then : 3729 break 3730fi 3731 3732 done 3733 ac_cv_prog_CPP=$CPP 3734 3735fi 3736 CPP=$ac_cv_prog_CPP 3737else 3738 ac_cv_prog_CPP=$CPP 3739fi 3740{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 3741$as_echo "$CPP" >&6; } 3742ac_preproc_ok=false 3743for ac_c_preproc_warn_flag in '' yes 3744do 3745 # Use a header file that comes with gcc, so configuring glibc 3746 # with a fresh cross-compiler works. 3747 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3748 # <limits.h> exists even on freestanding compilers. 3749 # On the NeXT, cc -E runs the code through the compiler's parser, 3750 # not just through cpp. "Syntax error" is here to catch this case. 3751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3752/* end confdefs.h. */ 3753#ifdef __STDC__ 3754# include <limits.h> 3755#else 3756# include <assert.h> 3757#endif 3758 Syntax error 3759_ACEOF 3760if ac_fn_c_try_cpp "$LINENO"; then : 3761 3762else 3763 # Broken: fails on valid input. 3764continue 3765fi 3766rm -f conftest.err conftest.i conftest.$ac_ext 3767 3768 # OK, works on sane cases. Now check whether nonexistent headers 3769 # can be detected and how. 3770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3771/* end confdefs.h. */ 3772#include <ac_nonexistent.h> 3773_ACEOF 3774if ac_fn_c_try_cpp "$LINENO"; then : 3775 # Broken: success on invalid input. 3776continue 3777else 3778 # Passes both tests. 3779ac_preproc_ok=: 3780break 3781fi 3782rm -f conftest.err conftest.i conftest.$ac_ext 3783 3784done 3785# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3786rm -f conftest.i conftest.err conftest.$ac_ext 3787if $ac_preproc_ok; then : 3788 3789else 3790 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3791$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3792as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 3793See \`config.log' for more details" "$LINENO" 5; } 3794fi 3795 3796ac_ext=c 3797ac_cpp='$CPP $CPPFLAGS' 3798ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3799ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3800ac_compiler_gnu=$ac_cv_c_compiler_gnu 3801 3802 3803{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 3804$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 3805if ${ac_cv_path_GREP+:} false; then : 3806 $as_echo_n "(cached) " >&6 3807else 3808 if test -z "$GREP"; then 3809 ac_path_GREP_found=false 3810 # Loop through the user's path and test for each of PROGNAME-LIST 3811 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3812for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3813do 3814 IFS=$as_save_IFS 3815 test -z "$as_dir" && as_dir=. 3816 for ac_prog in grep ggrep; do 3817 for ac_exec_ext in '' $ac_executable_extensions; do 3818 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 3819 as_fn_executable_p "$ac_path_GREP" || continue 3820# Check for GNU ac_path_GREP and select it if it is found. 3821 # Check for GNU $ac_path_GREP 3822case `"$ac_path_GREP" --version 2>&1` in 3823*GNU*) 3824 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 3825*) 3826 ac_count=0 3827 $as_echo_n 0123456789 >"conftest.in" 3828 while : 3829 do 3830 cat "conftest.in" "conftest.in" >"conftest.tmp" 3831 mv "conftest.tmp" "conftest.in" 3832 cp "conftest.in" "conftest.nl" 3833 $as_echo 'GREP' >> "conftest.nl" 3834 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3835 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3836 as_fn_arith $ac_count + 1 && ac_count=$as_val 3837 if test $ac_count -gt ${ac_path_GREP_max-0}; then 3838 # Best one so far, save it but keep looking for a better one 3839 ac_cv_path_GREP="$ac_path_GREP" 3840 ac_path_GREP_max=$ac_count 3841 fi 3842 # 10*(2^10) chars as input seems more than enough 3843 test $ac_count -gt 10 && break 3844 done 3845 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3846esac 3847 3848 $ac_path_GREP_found && break 3 3849 done 3850 done 3851 done 3852IFS=$as_save_IFS 3853 if test -z "$ac_cv_path_GREP"; then 3854 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 3855 fi 3856else 3857 ac_cv_path_GREP=$GREP 3858fi 3859 3860fi 3861{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 3862$as_echo "$ac_cv_path_GREP" >&6; } 3863 GREP="$ac_cv_path_GREP" 3864 3865 3866{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 3867$as_echo_n "checking for egrep... " >&6; } 3868if ${ac_cv_path_EGREP+:} false; then : 3869 $as_echo_n "(cached) " >&6 3870else 3871 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 3872 then ac_cv_path_EGREP="$GREP -E" 3873 else 3874 if test -z "$EGREP"; then 3875 ac_path_EGREP_found=false 3876 # Loop through the user's path and test for each of PROGNAME-LIST 3877 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3878for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3879do 3880 IFS=$as_save_IFS 3881 test -z "$as_dir" && as_dir=. 3882 for ac_prog in egrep; do 3883 for ac_exec_ext in '' $ac_executable_extensions; do 3884 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 3885 as_fn_executable_p "$ac_path_EGREP" || continue 3886# Check for GNU ac_path_EGREP and select it if it is found. 3887 # Check for GNU $ac_path_EGREP 3888case `"$ac_path_EGREP" --version 2>&1` in 3889*GNU*) 3890 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 3891*) 3892 ac_count=0 3893 $as_echo_n 0123456789 >"conftest.in" 3894 while : 3895 do 3896 cat "conftest.in" "conftest.in" >"conftest.tmp" 3897 mv "conftest.tmp" "conftest.in" 3898 cp "conftest.in" "conftest.nl" 3899 $as_echo 'EGREP' >> "conftest.nl" 3900 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3901 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3902 as_fn_arith $ac_count + 1 && ac_count=$as_val 3903 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 3904 # Best one so far, save it but keep looking for a better one 3905 ac_cv_path_EGREP="$ac_path_EGREP" 3906 ac_path_EGREP_max=$ac_count 3907 fi 3908 # 10*(2^10) chars as input seems more than enough 3909 test $ac_count -gt 10 && break 3910 done 3911 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3912esac 3913 3914 $ac_path_EGREP_found && break 3 3915 done 3916 done 3917 done 3918IFS=$as_save_IFS 3919 if test -z "$ac_cv_path_EGREP"; then 3920 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 3921 fi 3922else 3923 ac_cv_path_EGREP=$EGREP 3924fi 3925 3926 fi 3927fi 3928{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 3929$as_echo "$ac_cv_path_EGREP" >&6; } 3930 EGREP="$ac_cv_path_EGREP" 3931 3932 3933{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 3934$as_echo_n "checking for ANSI C header files... " >&6; } 3935if ${ac_cv_header_stdc+:} false; then : 3936 $as_echo_n "(cached) " >&6 3937else 3938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3939/* end confdefs.h. */ 3940#include <stdlib.h> 3941#include <stdarg.h> 3942#include <string.h> 3943#include <float.h> 3944 3945int 3946main () 3947{ 3948 3949 ; 3950 return 0; 3951} 3952_ACEOF 3953if ac_fn_c_try_compile "$LINENO"; then : 3954 ac_cv_header_stdc=yes 3955else 3956 ac_cv_header_stdc=no 3957fi 3958rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3959 3960if test $ac_cv_header_stdc = yes; then 3961 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 3962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3963/* end confdefs.h. */ 3964#include <string.h> 3965 3966_ACEOF 3967if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3968 $EGREP "memchr" >/dev/null 2>&1; then : 3969 3970else 3971 ac_cv_header_stdc=no 3972fi 3973rm -f conftest* 3974 3975fi 3976 3977if test $ac_cv_header_stdc = yes; then 3978 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 3979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3980/* end confdefs.h. */ 3981#include <stdlib.h> 3982 3983_ACEOF 3984if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3985 $EGREP "free" >/dev/null 2>&1; then : 3986 3987else 3988 ac_cv_header_stdc=no 3989fi 3990rm -f conftest* 3991 3992fi 3993 3994if test $ac_cv_header_stdc = yes; then 3995 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 3996 if test "$cross_compiling" = yes; then : 3997 : 3998else 3999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4000/* end confdefs.h. */ 4001#include <ctype.h> 4002#include <stdlib.h> 4003#if ((' ' & 0x0FF) == 0x020) 4004# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 4005# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 4006#else 4007# define ISLOWER(c) \ 4008 (('a' <= (c) && (c) <= 'i') \ 4009 || ('j' <= (c) && (c) <= 'r') \ 4010 || ('s' <= (c) && (c) <= 'z')) 4011# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 4012#endif 4013 4014#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 4015int 4016main () 4017{ 4018 int i; 4019 for (i = 0; i < 256; i++) 4020 if (XOR (islower (i), ISLOWER (i)) 4021 || toupper (i) != TOUPPER (i)) 4022 return 2; 4023 return 0; 4024} 4025_ACEOF 4026if ac_fn_c_try_run "$LINENO"; then : 4027 4028else 4029 ac_cv_header_stdc=no 4030fi 4031rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 4032 conftest.$ac_objext conftest.beam conftest.$ac_ext 4033fi 4034 4035fi 4036fi 4037{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 4038$as_echo "$ac_cv_header_stdc" >&6; } 4039if test $ac_cv_header_stdc = yes; then 4040 4041$as_echo "#define STDC_HEADERS 1" >>confdefs.h 4042 4043fi 4044 4045# On IRIX 5.3, sys/types and inttypes.h are conflicting. 4046for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 4047 inttypes.h stdint.h unistd.h 4048do : 4049 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 4050ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 4051" 4052if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 4053 cat >>confdefs.h <<_ACEOF 4054#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 4055_ACEOF 4056 4057fi 4058 4059done 4060 4061 4062ac_fn_c_check_header_mongrel "$LINENO" "event2/event.h" "ac_cv_header_event2_event_h" "$ac_includes_default" 4063if test "x$ac_cv_header_event2_event_h" = xyes; then : 4064 4065$as_echo "#define EVENT_V2 1" >>confdefs.h 4066 4067else 4068 4069 ac_fn_c_check_header_mongrel "$LINENO" "event.h" "ac_cv_header_event_h" "$ac_includes_default" 4070if test "x$ac_cv_header_event_h" = xyes; then : 4071 4072$as_echo "#define EVENT_V1 1" >>confdefs.h 4073 4074else 4075 as_fn_error $? "no libevent found" "$LINENO" 5 4076fi 4077 4078 4079 4080fi 4081 4082 4083 4084EXTRA_LIBS="" 4085 4086# OPENSSL_INCLUDES to the include directives required 4087# OPENSSL_LIBS to the -l directives required 4088# OPENSSL_LDFLAGS to the -L or -R flags required 4089 4090# Check whether --enable-openssl was given. 4091if test "${enable_openssl+set}" = set; then : 4092 enableval=$enable_openssl; 4093 if test "x$enableval" = "xno" ; then 4094 4095$as_echo "#define TGL_AVOID_OPENSSL 1" >>confdefs.h 4096 4097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcry_mpi_snatch in -lgcrypt" >&5 4098$as_echo_n "checking for gcry_mpi_snatch in -lgcrypt... " >&6; } 4099if ${ac_cv_lib_gcrypt_gcry_mpi_snatch+:} false; then : 4100 $as_echo_n "(cached) " >&6 4101else 4102 ac_check_lib_save_LIBS=$LIBS 4103LIBS="-lgcrypt $LIBS" 4104cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4105/* end confdefs.h. */ 4106 4107/* Override any GCC internal prototype to avoid an error. 4108 Use char because int might match the return type of a GCC 4109 builtin and then its argument prototype would still apply. */ 4110#ifdef __cplusplus 4111extern "C" 4112#endif 4113char gcry_mpi_snatch (); 4114int 4115main () 4116{ 4117return gcry_mpi_snatch (); 4118 ; 4119 return 0; 4120} 4121_ACEOF 4122if ac_fn_c_try_link "$LINENO"; then : 4123 ac_cv_lib_gcrypt_gcry_mpi_snatch=yes 4124else 4125 ac_cv_lib_gcrypt_gcry_mpi_snatch=no 4126fi 4127rm -f core conftest.err conftest.$ac_objext \ 4128 conftest$ac_exeext conftest.$ac_ext 4129LIBS=$ac_check_lib_save_LIBS 4130fi 4131{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcrypt_gcry_mpi_snatch" >&5 4132$as_echo "$ac_cv_lib_gcrypt_gcry_mpi_snatch" >&6; } 4133if test "x$ac_cv_lib_gcrypt_gcry_mpi_snatch" = xyes; then : 4134 cat >>confdefs.h <<_ACEOF 4135#define HAVE_LIBGCRYPT 1 4136_ACEOF 4137 4138 LIBS="-lgcrypt $LIBS" 4139 4140else 4141 as_fn_error $? "\"Need libgcrypt >= 1.60\"" "$LINENO" 5 4142fi 4143 4144 else 4145 # Don't be annoying, so don't inform the user about --disable-openssl 4146 4147 found=false 4148 4149# Check whether --with-openssl was given. 4150if test "${with_openssl+set}" = set; then : 4151 withval=$with_openssl; 4152 case "$withval" in 4153 "" | y | ye | yes | n | no) 4154 as_fn_error $? "Invalid --with-openssl value" "$LINENO" 5 4155 ;; 4156 *) ssldirs="$withval" 4157 ;; 4158 esac 4159 4160else 4161 4162 # if pkg-config is installed and openssl has installed a .pc file, 4163 # then use that information and don't search ssldirs 4164 # Extract the first word of "pkg-config", so it can be a program name with args. 4165set dummy pkg-config; ac_word=$2 4166{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4167$as_echo_n "checking for $ac_word... " >&6; } 4168if ${ac_cv_path_PKG_CONFIG+:} false; then : 4169 $as_echo_n "(cached) " >&6 4170else 4171 case $PKG_CONFIG in 4172 [\\/]* | ?:[\\/]*) 4173 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 4174 ;; 4175 *) 4176 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4177for as_dir in $PATH 4178do 4179 IFS=$as_save_IFS 4180 test -z "$as_dir" && as_dir=. 4181 for ac_exec_ext in '' $ac_executable_extensions; do 4182 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4183 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 4184 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4185 break 2 4186 fi 4187done 4188 done 4189IFS=$as_save_IFS 4190 4191 ;; 4192esac 4193fi 4194PKG_CONFIG=$ac_cv_path_PKG_CONFIG 4195if test -n "$PKG_CONFIG"; then 4196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 4197$as_echo "$PKG_CONFIG" >&6; } 4198else 4199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4200$as_echo "no" >&6; } 4201fi 4202 4203 4204 if test x"$PKG_CONFIG" != x""; then 4205 OPENSSL_LDFLAGS=`$PKG_CONFIG openssl --libs-only-L 2>/dev/null` 4206 if test $? = 0; then 4207 OPENSSL_LIBS=`$PKG_CONFIG openssl --libs-only-l 2>/dev/null` 4208 OPENSSL_INCLUDES=`$PKG_CONFIG openssl --cflags-only-I 2>/dev/null` 4209 found=true 4210 fi 4211 fi 4212 4213 # no such luck; use some default ssldirs 4214 if ! $found; then 4215 ssldirs="/usr/local/ssl /usr/lib/ssl /usr/ssl /usr/pkg /usr/local /usr" 4216 fi 4217 4218 4219fi 4220 4221 4222 4223 # note that we #include <openssl/foo.h>, so the OpenSSL headers have to be in 4224 # an 'openssl' subdirectory 4225 4226 if ! $found; then 4227 OPENSSL_INCLUDES= 4228 for ssldir in $ssldirs; do 4229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openssl/ssl.h in $ssldir" >&5 4230$as_echo_n "checking for openssl/ssl.h in $ssldir... " >&6; } 4231 if test -f "$ssldir/include/openssl/ssl.h"; then 4232 OPENSSL_INCLUDES="-I$ssldir/include" 4233 OPENSSL_LDFLAGS="-L$ssldir/lib" 4234 OPENSSL_LIBS="-lssl -lcrypto" 4235 found=true 4236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4237$as_echo "yes" >&6; } 4238 break 4239 else 4240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4241$as_echo "no" >&6; } 4242 fi 4243 done 4244 4245 # if the file wasn't found, well, go ahead and try the link anyway -- maybe 4246 # it will just work! 4247 fi 4248 4249 # try the preprocessor and linker with our new flags, 4250 # being careful not to pollute the global LIBS, LDFLAGS, and CPPFLAGS 4251 4252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiling and linking against OpenSSL works" >&5 4253$as_echo_n "checking whether compiling and linking against OpenSSL works... " >&6; } 4254 echo "Trying link with OPENSSL_LDFLAGS=$OPENSSL_LDFLAGS;" \ 4255 "OPENSSL_LIBS=$OPENSSL_LIBS; OPENSSL_INCLUDES=$OPENSSL_INCLUDES" >&5 4256 4257 save_LIBS="$LIBS" 4258 save_LDFLAGS="$LDFLAGS" 4259 save_CPPFLAGS="$CPPFLAGS" 4260 LDFLAGS="$LDFLAGS $OPENSSL_LDFLAGS" 4261 LIBS="$OPENSSL_LIBS $LIBS" 4262 CPPFLAGS="$OPENSSL_INCLUDES $CPPFLAGS" 4263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4264/* end confdefs.h. */ 4265#include <openssl/ssl.h> 4266int 4267main () 4268{ 4269SSL_new(NULL) 4270 ; 4271 return 0; 4272} 4273_ACEOF 4274if ac_fn_c_try_link "$LINENO"; then : 4275 4276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4277$as_echo "yes" >&6; } 4278 4279 4280else 4281 4282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4283$as_echo "no" >&6; } 4284 as_fn_error $? "No openssl found." "$LINENO" 5 4285 4286fi 4287rm -f core conftest.err conftest.$ac_objext \ 4288 conftest$ac_exeext conftest.$ac_ext 4289 CPPFLAGS="$save_CPPFLAGS" 4290 LDFLAGS="$save_LDFLAGS" 4291 LIBS="$save_LIBS" 4292 4293 4294 4295 4296 4297 fi 4298 4299else 4300 4301 4302 found=false 4303 4304# Check whether --with-openssl was given. 4305if test "${with_openssl+set}" = set; then : 4306 withval=$with_openssl; 4307 case "$withval" in 4308 "" | y | ye | yes | n | no) 4309 as_fn_error $? "Invalid --with-openssl value" "$LINENO" 5 4310 ;; 4311 *) ssldirs="$withval" 4312 ;; 4313 esac 4314 4315else 4316 4317 # if pkg-config is installed and openssl has installed a .pc file, 4318 # then use that information and don't search ssldirs 4319 # Extract the first word of "pkg-config", so it can be a program name with args. 4320set dummy pkg-config; ac_word=$2 4321{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4322$as_echo_n "checking for $ac_word... " >&6; } 4323if ${ac_cv_path_PKG_CONFIG+:} false; then : 4324 $as_echo_n "(cached) " >&6 4325else 4326 case $PKG_CONFIG in 4327 [\\/]* | ?:[\\/]*) 4328 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 4329 ;; 4330 *) 4331 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4332for as_dir in $PATH 4333do 4334 IFS=$as_save_IFS 4335 test -z "$as_dir" && as_dir=. 4336 for ac_exec_ext in '' $ac_executable_extensions; do 4337 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4338 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 4339 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4340 break 2 4341 fi 4342done 4343 done 4344IFS=$as_save_IFS 4345 4346 ;; 4347esac 4348fi 4349PKG_CONFIG=$ac_cv_path_PKG_CONFIG 4350if test -n "$PKG_CONFIG"; then 4351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 4352$as_echo "$PKG_CONFIG" >&6; } 4353else 4354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4355$as_echo "no" >&6; } 4356fi 4357 4358 4359 if test x"$PKG_CONFIG" != x""; then 4360 OPENSSL_LDFLAGS=`$PKG_CONFIG openssl --libs-only-L 2>/dev/null` 4361 if test $? = 0; then 4362 OPENSSL_LIBS=`$PKG_CONFIG openssl --libs-only-l 2>/dev/null` 4363 OPENSSL_INCLUDES=`$PKG_CONFIG openssl --cflags-only-I 2>/dev/null` 4364 found=true 4365 fi 4366 fi 4367 4368 # no such luck; use some default ssldirs 4369 if ! $found; then 4370 ssldirs="/usr/local/ssl /usr/lib/ssl /usr/ssl /usr/pkg /usr/local /usr" 4371 fi 4372 4373 4374fi 4375 4376 4377 4378 # note that we #include <openssl/foo.h>, so the OpenSSL headers have to be in 4379 # an 'openssl' subdirectory 4380 4381 if ! $found; then 4382 OPENSSL_INCLUDES= 4383 for ssldir in $ssldirs; do 4384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openssl/ssl.h in $ssldir" >&5 4385$as_echo_n "checking for openssl/ssl.h in $ssldir... " >&6; } 4386 if test -f "$ssldir/include/openssl/ssl.h"; then 4387 OPENSSL_INCLUDES="-I$ssldir/include" 4388 OPENSSL_LDFLAGS="-L$ssldir/lib" 4389 OPENSSL_LIBS="-lssl -lcrypto" 4390 found=true 4391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4392$as_echo "yes" >&6; } 4393 break 4394 else 4395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4396$as_echo "no" >&6; } 4397 fi 4398 done 4399 4400 # if the file wasn't found, well, go ahead and try the link anyway -- maybe 4401 # it will just work! 4402 fi 4403 4404 # try the preprocessor and linker with our new flags, 4405 # being careful not to pollute the global LIBS, LDFLAGS, and CPPFLAGS 4406 4407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiling and linking against OpenSSL works" >&5 4408$as_echo_n "checking whether compiling and linking against OpenSSL works... " >&6; } 4409 echo "Trying link with OPENSSL_LDFLAGS=$OPENSSL_LDFLAGS;" \ 4410 "OPENSSL_LIBS=$OPENSSL_LIBS; OPENSSL_INCLUDES=$OPENSSL_INCLUDES" >&5 4411 4412 save_LIBS="$LIBS" 4413 save_LDFLAGS="$LDFLAGS" 4414 save_CPPFLAGS="$CPPFLAGS" 4415 LDFLAGS="$LDFLAGS $OPENSSL_LDFLAGS" 4416 LIBS="$OPENSSL_LIBS $LIBS" 4417 CPPFLAGS="$OPENSSL_INCLUDES $CPPFLAGS" 4418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4419/* end confdefs.h. */ 4420#include <openssl/ssl.h> 4421int 4422main () 4423{ 4424SSL_new(NULL) 4425 ; 4426 return 0; 4427} 4428_ACEOF 4429if ac_fn_c_try_link "$LINENO"; then : 4430 4431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4432$as_echo "yes" >&6; } 4433 4434 4435else 4436 4437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4438$as_echo "no" >&6; } 4439 as_fn_error $? "No openssl found. With --disable-openssl, libtgl will use libgcrypt instead." "$LINENO" 5 4440 4441fi 4442rm -f core conftest.err conftest.$ac_objext \ 4443 conftest$ac_exeext conftest.$ac_ext 4444 CPPFLAGS="$save_CPPFLAGS" 4445 LDFLAGS="$save_LDFLAGS" 4446 LIBS="$save_LIBS" 4447 4448 4449 4450 4451 4452 4453fi 4454 4455# 4456# Handle user hints 4457# 4458{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if zlib is wanted" >&5 4459$as_echo_n "checking if zlib is wanted... " >&6; } 4460zlib_places="/usr/local /usr /opt/local /sw" 4461 4462# Check whether --with-zlib was given. 4463if test "${with_zlib+set}" = set; then : 4464 withval=$with_zlib; if test "$withval" != no ; then 4465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4466$as_echo "yes" >&6; } 4467 if test -d "$withval" 4468 then 4469 zlib_places="$withval $zlib_places" 4470 else 4471 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Sorry, $withval does not exist, checking usual places" >&5 4472$as_echo "$as_me: WARNING: Sorry, $withval does not exist, checking usual places" >&2;} 4473 fi 4474else 4475 zlib_places= 4476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4477$as_echo "no" >&6; } 4478fi 4479else 4480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4481$as_echo "yes" >&6; } 4482fi 4483 4484 4485# 4486# Locate zlib, if wanted 4487# 4488if test -n "${zlib_places}" 4489then 4490 # check the user supplied or any other more or less 'standard' place: 4491 # Most UNIX systems : /usr/local and /usr 4492 # MacPorts / Fink on OSX : /opt/local respectively /sw 4493 for ZLIB_HOME in ${zlib_places} ; do 4494 if test -f "${ZLIB_HOME}/include/zlib.h"; then break; fi 4495 ZLIB_HOME="" 4496 done 4497 4498 ZLIB_OLD_LDFLAGS=$LDFLAGS 4499 ZLIB_OLD_CPPFLAGS=$CPPFLAGS 4500 if test -n "${ZLIB_HOME}"; then 4501 LDFLAGS="$LDFLAGS -L${ZLIB_HOME}/lib" 4502 CPPFLAGS="$CPPFLAGS -I${ZLIB_HOME}/include" 4503 fi 4504 4505 ac_ext=c 4506ac_cpp='$CPP $CPPFLAGS' 4507ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4508ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4509ac_compiler_gnu=$ac_cv_c_compiler_gnu 4510 4511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflateEnd in -lz" >&5 4512$as_echo_n "checking for inflateEnd in -lz... " >&6; } 4513if ${ac_cv_lib_z_inflateEnd+:} false; then : 4514 $as_echo_n "(cached) " >&6 4515else 4516 ac_check_lib_save_LIBS=$LIBS 4517LIBS="-lz $LIBS" 4518cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4519/* end confdefs.h. */ 4520 4521/* Override any GCC internal prototype to avoid an error. 4522 Use char because int might match the return type of a GCC 4523 builtin and then its argument prototype would still apply. */ 4524#ifdef __cplusplus 4525extern "C" 4526#endif 4527char inflateEnd (); 4528int 4529main () 4530{ 4531return inflateEnd (); 4532 ; 4533 return 0; 4534} 4535_ACEOF 4536if ac_fn_c_try_link "$LINENO"; then : 4537 ac_cv_lib_z_inflateEnd=yes 4538else 4539 ac_cv_lib_z_inflateEnd=no 4540fi 4541rm -f core conftest.err conftest.$ac_objext \ 4542 conftest$ac_exeext conftest.$ac_ext 4543LIBS=$ac_check_lib_save_LIBS 4544fi 4545{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflateEnd" >&5 4546$as_echo "$ac_cv_lib_z_inflateEnd" >&6; } 4547if test "x$ac_cv_lib_z_inflateEnd" = xyes; then : 4548 zlib_cv_libz=yes 4549else 4550 zlib_cv_libz=no 4551fi 4552 4553 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default" 4554if test "x$ac_cv_header_zlib_h" = xyes; then : 4555 zlib_cv_zlib_h=yes 4556else 4557 zlib_cv_zlib_h=no 4558fi 4559 4560 4561 ac_ext=c 4562ac_cpp='$CPP $CPPFLAGS' 4563ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4564ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4565ac_compiler_gnu=$ac_cv_c_compiler_gnu 4566 4567 if test "$zlib_cv_libz" = "yes" && test "$zlib_cv_zlib_h" = "yes" 4568 then 4569 # 4570 # If both library and header were found, action-if-found 4571 # 4572 4573 CPPFLAGS="$CPPFLAGS -I${ZLIB_HOME}/include" 4574 LDFLAGS="$LDFLAGS -L${ZLIB_HOME}/lib" 4575 LIBS="-lz $LIBS" 4576 4577$as_echo "#define HAVE_LIBZ 1" >>confdefs.h 4578 4579 4580 else 4581 # 4582 # If either header or library was not found, action-if-not-found 4583 # 4584 as_fn_error $? "No zlib found" "$LINENO" 5 4585 fi 4586fi 4587 4588 4589{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_save_prompt in -lreadline" >&5 4590$as_echo_n "checking for rl_save_prompt in -lreadline... " >&6; } 4591if ${ac_cv_lib_readline_rl_save_prompt+:} false; then : 4592 $as_echo_n "(cached) " >&6 4593else 4594 ac_check_lib_save_LIBS=$LIBS 4595LIBS="-lreadline $LIBS" 4596cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4597/* end confdefs.h. */ 4598 4599/* Override any GCC internal prototype to avoid an error. 4600 Use char because int might match the return type of a GCC 4601 builtin and then its argument prototype would still apply. */ 4602#ifdef __cplusplus 4603extern "C" 4604#endif 4605char rl_save_prompt (); 4606int 4607main () 4608{ 4609return rl_save_prompt (); 4610 ; 4611 return 0; 4612} 4613_ACEOF 4614if ac_fn_c_try_link "$LINENO"; then : 4615 ac_cv_lib_readline_rl_save_prompt=yes 4616else 4617 ac_cv_lib_readline_rl_save_prompt=no 4618fi 4619rm -f core conftest.err conftest.$ac_objext \ 4620 conftest$ac_exeext conftest.$ac_ext 4621LIBS=$ac_check_lib_save_LIBS 4622fi 4623{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_rl_save_prompt" >&5 4624$as_echo "$ac_cv_lib_readline_rl_save_prompt" >&6; } 4625if test "x$ac_cv_lib_readline_rl_save_prompt" = xyes; then : 4626 EXTRA_LIBS="${EXTRA_LIBS} -lreadline" ; 4627else 4628 as_fn_error $? "no libreadline found" "$LINENO" 5 4629fi 4630 4631 4632{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libconfig" >&5 4633$as_echo_n "checking for libconfig... " >&6; } 4634# Check whether --enable-libconfig was given. 4635if test "${enable_libconfig+set}" = set; then : 4636 enableval=$enable_libconfig; 4637 if test "x$enableval" = "xno" ; then 4638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 4639$as_echo "disabled" >&6; } 4640 else 4641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: enabled" >&5 4642$as_echo "enabled" >&6; } 4643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for config_init in -lconfig" >&5 4644$as_echo_n "checking for config_init in -lconfig... " >&6; } 4645if ${ac_cv_lib_config_config_init+:} false; then : 4646 $as_echo_n "(cached) " >&6 4647else 4648 ac_check_lib_save_LIBS=$LIBS 4649LIBS="-lconfig $LIBS" 4650cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4651/* end confdefs.h. */ 4652 4653/* Override any GCC internal prototype to avoid an error. 4654 Use char because int might match the return type of a GCC 4655 builtin and then its argument prototype would still apply. */ 4656#ifdef __cplusplus 4657extern "C" 4658#endif 4659char config_init (); 4660int 4661main () 4662{ 4663return config_init (); 4664 ; 4665 return 0; 4666} 4667_ACEOF 4668if ac_fn_c_try_link "$LINENO"; then : 4669 ac_cv_lib_config_config_init=yes 4670else 4671 ac_cv_lib_config_config_init=no 4672fi 4673rm -f core conftest.err conftest.$ac_objext \ 4674 conftest$ac_exeext conftest.$ac_ext 4675LIBS=$ac_check_lib_save_LIBS 4676fi 4677{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_config_config_init" >&5 4678$as_echo "$ac_cv_lib_config_config_init" >&6; } 4679if test "x$ac_cv_lib_config_config_init" = xyes; then : 4680 cat >>confdefs.h <<_ACEOF 4681#define HAVE_LIBCONFIG 1 4682_ACEOF 4683 4684 LIBS="-lconfig $LIBS" 4685 4686else 4687 as_fn_error $? "No libconfig found. Try --disable-libconfig" "$LINENO" 5 4688fi 4689 4690 fi 4691 4692else 4693 4694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: enabled" >&5 4695$as_echo "enabled" >&6; } 4696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for config_init in -lconfig" >&5 4697$as_echo_n "checking for config_init in -lconfig... " >&6; } 4698if ${ac_cv_lib_config_config_init+:} false; then : 4699 $as_echo_n "(cached) " >&6 4700else 4701 ac_check_lib_save_LIBS=$LIBS 4702LIBS="-lconfig $LIBS" 4703cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4704/* end confdefs.h. */ 4705 4706/* Override any GCC internal prototype to avoid an error. 4707 Use char because int might match the return type of a GCC 4708 builtin and then its argument prototype would still apply. */ 4709#ifdef __cplusplus 4710extern "C" 4711#endif 4712char config_init (); 4713int 4714main () 4715{ 4716return config_init (); 4717 ; 4718 return 0; 4719} 4720_ACEOF 4721if ac_fn_c_try_link "$LINENO"; then : 4722 ac_cv_lib_config_config_init=yes 4723else 4724 ac_cv_lib_config_config_init=no 4725fi 4726rm -f core conftest.err conftest.$ac_objext \ 4727 conftest$ac_exeext conftest.$ac_ext 4728LIBS=$ac_check_lib_save_LIBS 4729fi 4730{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_config_config_init" >&5 4731$as_echo "$ac_cv_lib_config_config_init" >&6; } 4732if test "x$ac_cv_lib_config_config_init" = xyes; then : 4733 cat >>confdefs.h <<_ACEOF 4734#define HAVE_LIBCONFIG 1 4735_ACEOF 4736 4737 LIBS="-lconfig $LIBS" 4738 4739else 4740 as_fn_error $? "No libconfig found. Try --disable-libconfig" "$LINENO" 5 4741fi 4742 4743 4744fi 4745 4746 4747# Check whether --enable-extf was given. 4748if test "${enable_extf+set}" = set; then : 4749 enableval=$enable_extf; 4750 if test "x$enableval" = "xno" ; then 4751 4752$as_echo "#define DISABLE_EXTF 1" >>confdefs.h 4753 4754 fi 4755 4756fi 4757 4758 4759{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for liblua" >&5 4760$as_echo_n "checking for liblua... " >&6; } 4761# Check whether --enable-liblua was given. 4762if test "${enable_liblua+set}" = set; then : 4763 enableval=$enable_liblua; 4764 if test "x$enableval" = "xno" ; then 4765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 4766$as_echo "disabled" >&6; } 4767 else 4768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: enabled" >&5 4769$as_echo "enabled" >&6; } 4770 4771 4772 4773 4774 4775 if test "x$LUA" = 'x'; then : 4776 for ac_prog in lua lua5.2 lua52 lua5.1 lua51 lua50 4777do 4778 # Extract the first word of "$ac_prog", so it can be a program name with args. 4779set dummy $ac_prog; ac_word=$2 4780{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4781$as_echo_n "checking for $ac_word... " >&6; } 4782if ${ac_cv_path_LUA+:} false; then : 4783 $as_echo_n "(cached) " >&6 4784else 4785 case $LUA in 4786 [\\/]* | ?:[\\/]*) 4787 ac_cv_path_LUA="$LUA" # Let the user override the test with a path. 4788 ;; 4789 *) 4790 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4791for as_dir in $PATH 4792do 4793 IFS=$as_save_IFS 4794 test -z "$as_dir" && as_dir=. 4795 for ac_exec_ext in '' $ac_executable_extensions; do 4796 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4797 ac_cv_path_LUA="$as_dir/$ac_word$ac_exec_ext" 4798 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4799 break 2 4800 fi 4801done 4802 done 4803IFS=$as_save_IFS 4804 4805 ;; 4806esac 4807fi 4808LUA=$ac_cv_path_LUA 4809if test -n "$LUA"; then 4810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LUA" >&5 4811$as_echo "$LUA" >&6; } 4812else 4813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4814$as_echo "no" >&6; } 4815fi 4816 4817 4818 test -n "$LUA" && break 4819done 4820test -n "$LUA" || LUA=":" 4821 4822fi 4823 ax_display_LUA='lua' 4824 4825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $LUA is a Lua interpreter" >&5 4826$as_echo_n "checking if $LUA is a Lua interpreter... " >&6; } 4827 4828 if $LUA -e "print('Hello ' .. _VERSION .. '!')" &>/dev/null; then : 4829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4830$as_echo "yes" >&6; } 4831else 4832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4833$as_echo "no" >&6; } 4834 as_fn_error $? "not a Lua interpreter" "$LINENO" 5 4835 4836fi 4837 4838 4839 4840 if test "x$LUA" = 'x:'; then : 4841 4842 as_fn_error $? "No lua found. Try --disable-liblua" "$LINENO" 5 4843 4844 4845else 4846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ax_display_LUA version" >&5 4847$as_echo_n "checking for $ax_display_LUA version... " >&6; } 4848if ${ax_cv_lua_version+:} false; then : 4849 $as_echo_n "(cached) " >&6 4850else 4851 ax_cv_lua_version=`$LUA -e "print(_VERSION)" | \ 4852 sed "s|^Lua \(.*\)|\1|" | \ 4853 grep -E -o "^[0-9]+\.[0-9]+"` 4854 4855fi 4856{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_lua_version" >&5 4857$as_echo "$ax_cv_lua_version" >&6; } 4858 if test "x$ax_cv_lua_version" = 'x'; then : 4859 as_fn_error $? "invalid Lua version number" "$LINENO" 5 4860fi 4861 LUA_VERSION=$ax_cv_lua_version 4862 4863 LUA_SHORT_VERSION=`echo "$LUA_VERSION" | sed 's|\.||'` 4864 4865 4866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ax_display_LUA platform" >&5 4867$as_echo_n "checking for $ax_display_LUA platform... " >&6; } 4868if ${ax_cv_lua_platform+:} false; then : 4869 $as_echo_n "(cached) " >&6 4870else 4871 ax_cv_lua_platform=`$LUA -e "print('unknown')"` 4872fi 4873{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_lua_platform" >&5 4874$as_echo "$ax_cv_lua_platform" >&6; } 4875 LUA_PLATFORM=$ax_cv_lua_platform 4876 4877 4878 LUA_PREFIX='${prefix}' 4879 4880 LUA_EXEC_PREFIX='${exec_prefix}' 4881 4882 4883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ax_display_LUA script directory" >&5 4884$as_echo_n "checking for $ax_display_LUA script directory... " >&6; } 4885if ${ax_cv_lua_luadir+:} false; then : 4886 $as_echo_n "(cached) " >&6 4887else 4888 if test "x$prefix" = 'xNONE'; then : 4889 ax_lua_prefix=$ac_default_prefix 4890else 4891 ax_lua_prefix=$prefix 4892fi 4893 4894 ax_cv_lua_luadir="$LUA_PREFIX/share/lua/$LUA_VERSION" 4895 4896 4897 4898 ax_lua_prefixed_path='' 4899 _ax_package_paths=`$LUA -e 'print(package.path)' 2>/dev/null | sed 's|;|\n|g'` 4900 for _ax_package_path in $_ax_package_paths; do 4901 _ax_path_parts=`echo "$_ax_package_path" | sed 's|/|\n|g'` 4902 _ax_reassembled='' 4903 for _ax_path_part in $_ax_path_parts; do 4904 echo "$_ax_path_part" | grep '\?' >/dev/null && break 4905 _ax_reassembled="$_ax_reassembled/$_ax_path_part" 4906 done 4907 _ax_package_path=$_ax_reassembled 4908 if echo "$_ax_package_path" | grep "^$ax_lua_prefix" >/dev/null; then 4909 ax_lua_prefixed_path=$_ax_package_path 4910 break 4911 fi 4912 done 4913 4914 if test "x$ax_lua_prefixed_path" != 'x'; then : 4915 _ax_strip_prefix=`echo "$ax_lua_prefix" | sed 's|.|.|g'` 4916 ax_cv_lua_luadir=`echo "$ax_lua_prefixed_path" | \ 4917 sed "s,^$_ax_strip_prefix,$LUA_PREFIX,"` 4918 4919fi 4920 4921fi 4922{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_lua_luadir" >&5 4923$as_echo "$ax_cv_lua_luadir" >&6; } 4924 luadir=$ax_cv_lua_luadir 4925 4926 pkgluadir=\${luadir}/$PACKAGE 4927 4928 4929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ax_display_LUA module directory" >&5 4930$as_echo_n "checking for $ax_display_LUA module directory... " >&6; } 4931if ${ax_cv_lua_luaexecdir+:} false; then : 4932 $as_echo_n "(cached) " >&6 4933else 4934 if test "x$exec_prefix" = 'xNONE'; then : 4935 ax_lua_exec_prefix=$ax_lua_prefix 4936else 4937 ax_lua_exec_prefix=$exec_prefix 4938fi 4939 4940 ax_cv_lua_luaexecdir="$LUA_EXEC_PREFIX/lib/lua/$LUA_VERSION" 4941 4942 4943 4944 ax_lua_prefixed_path='' 4945 _ax_package_paths=`$LUA -e 'print(package.cpathd)' 2>/dev/null | sed 's|;|\n|g'` 4946 for _ax_package_path in $_ax_package_paths; do 4947 _ax_path_parts=`echo "$_ax_package_path" | sed 's|/|\n|g'` 4948 _ax_reassembled='' 4949 for _ax_path_part in $_ax_path_parts; do 4950 echo "$_ax_path_part" | grep '\?' >/dev/null && break 4951 _ax_reassembled="$_ax_reassembled/$_ax_path_part" 4952 done 4953 _ax_package_path=$_ax_reassembled 4954 if echo "$_ax_package_path" | grep "^$ax_lua_exec_prefix" >/dev/null; then 4955 ax_lua_prefixed_path=$_ax_package_path 4956 break 4957 fi 4958 done 4959 4960 if test "x$ax_lua_prefixed_path" != 'x'; then : 4961 _ax_strip_prefix=`echo "$ax_lua_exec_prefix" | sed 's|.|.|g'` 4962 ax_cv_lua_luaexecdir=`echo "$ax_lua_prefixed_path" | \ 4963 sed "s,^$_ax_strip_prefix,$LUA_EXEC_PREFIX,"` 4964 4965fi 4966 4967fi 4968{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_lua_luaexecdir" >&5 4969$as_echo "$ax_cv_lua_luaexecdir" >&6; } 4970 luaexecdir=$ax_cv_lua_luaexecdir 4971 4972 pkgluaexecdir=\${luaexecdir}/$PACKAGE 4973 4974 4975 4976 4977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LUA_VERSION is defined" >&5 4978$as_echo_n "checking if LUA_VERSION is defined... " >&6; } 4979 if test "x$LUA_VERSION" != 'x'; then : 4980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4981$as_echo "yes" >&6; } 4982else 4983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4984$as_echo "no" >&6; } 4985 as_fn_error $? "cannot check Lua headers without knowing LUA_VERSION" "$LINENO" 5 4986 4987fi 4988 4989 4990 4991 LUA_SHORT_VERSION=`echo "$LUA_VERSION" | sed 's|\.||'` 4992 4993 4994 _ax_lua_saved_cppflags=$CPPFLAGS 4995 CPPFLAGS="$CPPFLAGS $LUA_INCLUDE" 4996 for ac_header in lua.h lualib.h lauxlib.h luaconf.h 4997do : 4998 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 4999ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 5000if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 5001 cat >>confdefs.h <<_ACEOF 5002#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 5003_ACEOF 5004 5005fi 5006 5007done 5008 5009 CPPFLAGS=$_ax_lua_saved_cppflags 5010 5011 if test "x$LUA_INCLUDE" = 'x' && 5012 test "x$ac_cv_header_lua_h" != 'xyes'; then : 5013 for _ax_include_path in /usr/include/lua$LUA_VERSION \ 5014 /usr/include/lua/$LUA_VERSION \ 5015 /usr/include/lua$LUA_SHORT_VERSION \ 5016 /usr/local/include/lua$LUA_VERSION \ 5017 /usr/local/include/lua-$LUA_VERSION \ 5018 /usr/local/include/lua/$LUA_VERSION \ 5019 /usr/local/include/lua$LUA_SHORT_VERSION \ 5020 ; do 5021 test ! -d "$_ax_include_path" && continue 5022 5023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Lua headers in" >&5 5024$as_echo_n "checking for Lua headers in... " >&6; } 5025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_ax_include_path" >&5 5026$as_echo "$_ax_include_path" >&6; } 5027 5028 { ac_cv_header_lua_h=; unset ac_cv_header_lua_h;} 5029 { ac_cv_header_lualib_h=; unset ac_cv_header_lualib_h;} 5030 { ac_cv_header_lauxlib_h=; unset ac_cv_header_lauxlib_h;} 5031 { ac_cv_header_luaconf_h=; unset ac_cv_header_luaconf_h;} 5032 5033 _ax_lua_saved_cppflags=$CPPFLAGS 5034 CPPFLAGS="$CPPFLAGS -I$_ax_include_path" 5035 for ac_header in lua.h lualib.h lauxlib.h luaconf.h 5036do : 5037 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 5038ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 5039if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 5040 cat >>confdefs.h <<_ACEOF 5041#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 5042_ACEOF 5043 5044fi 5045 5046done 5047 5048 CPPFLAGS=$_ax_lua_saved_cppflags 5049 5050 if test "x$ac_cv_header_lua_h" = 'xyes'; then : 5051 LUA_INCLUDE="-I$_ax_include_path" 5052 break 5053 5054fi 5055 done 5056 5057fi 5058 5059 if test "x$ac_cv_header_lua_h" = 'xyes'; then : 5060 5061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Lua header version" >&5 5062$as_echo_n "checking for Lua header version... " >&6; } 5063if ${ax_cv_lua_header_version+:} false; then : 5064 $as_echo_n "(cached) " >&6 5065else 5066 _ax_lua_saved_cppflags=$CPPFLAGS 5067 CPPFLAGS="$CPPFLAGS $LUA_INCLUDE" 5068 if test "$cross_compiling" = yes; then : 5069 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 5070$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 5071as_fn_error $? "cannot run test program while cross compiling 5072See \`config.log' for more details" "$LINENO" 5; } 5073else 5074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5075/* end confdefs.h. */ 5076 5077#include <lua.h> 5078#include <stdlib.h> 5079#include <stdio.h> 5080int main(int argc, char ** argv) 5081{ 5082 if(argc > 1) printf("%s", LUA_VERSION); 5083 exit(EXIT_SUCCESS); 5084} 5085 5086 5087_ACEOF 5088if ac_fn_c_try_run "$LINENO"; then : 5089 ax_cv_lua_header_version=`./conftest$EXEEXT p | \ 5090 sed "s|^Lua \(.*\)|\1|" | \ 5091 grep -E -o "^[0-9]+\.[0-9]+"` 5092 5093else 5094 ax_cv_lua_header_version='unknown' 5095fi 5096rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 5097 conftest.$ac_objext conftest.beam conftest.$ac_ext 5098fi 5099 5100 CPPFLAGS=$_ax_lua_saved_cppflags 5101 5102fi 5103{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_lua_header_version" >&5 5104$as_echo "$ax_cv_lua_header_version" >&6; } 5105 5106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Lua header version matches $LUA_VERSION" >&5 5107$as_echo_n "checking if Lua header version matches $LUA_VERSION... " >&6; } 5108 if test "x$ax_cv_lua_header_version" = "x$LUA_VERSION"; then : 5109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5110$as_echo "yes" >&6; } 5111 ax_header_version_match='yes' 5112 5113else 5114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5115$as_echo "no" >&6; } 5116 ax_header_version_match='no' 5117 5118fi 5119 5120fi 5121 5122 if test "x$ax_header_version_match" != 'xyes' && 5123 test "x$LUA_INCLUDE" != 'x'; then : 5124 as_fn_error $? "cannot find headers for specified LUA_INCLUDE" "$LINENO" 5 5125fi 5126 5127 if test "x$ax_header_version_match" = 'xyes'; then : 5128 5129else 5130 as_fn_error $? "No lua headers found. Try --disable-liblua" "$LINENO" 5 5131fi 5132 5133 5134 5135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LUA_VERSION is defined" >&5 5136$as_echo_n "checking if LUA_VERSION is defined... " >&6; } 5137 if test "x$LUA_VERSION" != 'x'; then : 5138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5139$as_echo "yes" >&6; } 5140else 5141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5142$as_echo "no" >&6; } 5143 as_fn_error $? "cannot check Lua libs without knowing LUA_VERSION" "$LINENO" 5 5144 5145fi 5146 5147 5148 5149 if test "x$LUA_LIB" != 'x'; then : 5150 _ax_lua_saved_libs=$LIBS 5151 LIBS="$LIBS $LUA_LIB" 5152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing lua_load" >&5 5153$as_echo_n "checking for library containing lua_load... " >&6; } 5154if ${ac_cv_search_lua_load+:} false; then : 5155 $as_echo_n "(cached) " >&6 5156else 5157 ac_func_search_save_LIBS=$LIBS 5158cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5159/* end confdefs.h. */ 5160 5161/* Override any GCC internal prototype to avoid an error. 5162 Use char because int might match the return type of a GCC 5163 builtin and then its argument prototype would still apply. */ 5164#ifdef __cplusplus 5165extern "C" 5166#endif 5167char lua_load (); 5168int 5169main () 5170{ 5171return lua_load (); 5172 ; 5173 return 0; 5174} 5175_ACEOF 5176for ac_lib in '' ; do 5177 if test -z "$ac_lib"; then 5178 ac_res="none required" 5179 else 5180 ac_res=-l$ac_lib 5181 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 5182 fi 5183 if ac_fn_c_try_link "$LINENO"; then : 5184 ac_cv_search_lua_load=$ac_res 5185fi 5186rm -f core conftest.err conftest.$ac_objext \ 5187 conftest$ac_exeext 5188 if ${ac_cv_search_lua_load+:} false; then : 5189 break 5190fi 5191done 5192if ${ac_cv_search_lua_load+:} false; then : 5193 5194else 5195 ac_cv_search_lua_load=no 5196fi 5197rm conftest.$ac_ext 5198LIBS=$ac_func_search_save_LIBS 5199fi 5200{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_lua_load" >&5 5201$as_echo "$ac_cv_search_lua_load" >&6; } 5202ac_res=$ac_cv_search_lua_load 5203if test "$ac_res" != no; then : 5204 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 5205 _ax_found_lua_libs='yes' 5206else 5207 _ax_found_lua_libs='no' 5208fi 5209 5210 LIBS=$_ax_lua_saved_libs 5211 5212 if test "x$_ax_found_lua_libs" != 'xyes'; then : 5213 as_fn_error $? "cannot find libs for specified LUA_LIB" "$LINENO" 5 5214fi 5215 5216else 5217 _ax_lua_extra_libs='' 5218 5219 _ax_lua_saved_libs=$LIBS 5220 LIBS="$LIBS $LUA_LIB" 5221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing exp" >&5 5222$as_echo_n "checking for library containing exp... " >&6; } 5223if ${ac_cv_search_exp+:} false; then : 5224 $as_echo_n "(cached) " >&6 5225else 5226 ac_func_search_save_LIBS=$LIBS 5227cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5228/* end confdefs.h. */ 5229 5230/* Override any GCC internal prototype to avoid an error. 5231 Use char because int might match the return type of a GCC 5232 builtin and then its argument prototype would still apply. */ 5233#ifdef __cplusplus 5234extern "C" 5235#endif 5236char exp (); 5237int 5238main () 5239{ 5240return exp (); 5241 ; 5242 return 0; 5243} 5244_ACEOF 5245for ac_lib in '' m; do 5246 if test -z "$ac_lib"; then 5247 ac_res="none required" 5248 else 5249 ac_res=-l$ac_lib 5250 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 5251 fi 5252 if ac_fn_c_try_link "$LINENO"; then : 5253 ac_cv_search_exp=$ac_res 5254fi 5255rm -f core conftest.err conftest.$ac_objext \ 5256 conftest$ac_exeext 5257 if ${ac_cv_search_exp+:} false; then : 5258 break 5259fi 5260done 5261if ${ac_cv_search_exp+:} false; then : 5262 5263else 5264 ac_cv_search_exp=no 5265fi 5266rm conftest.$ac_ext 5267LIBS=$ac_func_search_save_LIBS 5268fi 5269{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_exp" >&5 5270$as_echo "$ac_cv_search_exp" >&6; } 5271ac_res=$ac_cv_search_exp 5272if test "$ac_res" != no; then : 5273 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 5274 5275fi 5276 5277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5 5278$as_echo_n "checking for library containing dlopen... " >&6; } 5279if ${ac_cv_search_dlopen+:} false; then : 5280 $as_echo_n "(cached) " >&6 5281else 5282 ac_func_search_save_LIBS=$LIBS 5283cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5284/* end confdefs.h. */ 5285 5286/* Override any GCC internal prototype to avoid an error. 5287 Use char because int might match the return type of a GCC 5288 builtin and then its argument prototype would still apply. */ 5289#ifdef __cplusplus 5290extern "C" 5291#endif 5292char dlopen (); 5293int 5294main () 5295{ 5296return dlopen (); 5297 ; 5298 return 0; 5299} 5300_ACEOF 5301for ac_lib in '' dl; do 5302 if test -z "$ac_lib"; then 5303 ac_res="none required" 5304 else 5305 ac_res=-l$ac_lib 5306 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 5307 fi 5308 if ac_fn_c_try_link "$LINENO"; then : 5309 ac_cv_search_dlopen=$ac_res 5310fi 5311rm -f core conftest.err conftest.$ac_objext \ 5312 conftest$ac_exeext 5313 if ${ac_cv_search_dlopen+:} false; then : 5314 break 5315fi 5316done 5317if ${ac_cv_search_dlopen+:} false; then : 5318 5319else 5320 ac_cv_search_dlopen=no 5321fi 5322rm conftest.$ac_ext 5323LIBS=$ac_func_search_save_LIBS 5324fi 5325{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5 5326$as_echo "$ac_cv_search_dlopen" >&6; } 5327ac_res=$ac_cv_search_dlopen 5328if test "$ac_res" != no; then : 5329 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 5330 5331fi 5332 5333 LIBS=$_ax_lua_saved_libs 5334 5335 if test "x$ac_cv_search_exp" != 'xno' && 5336 test "x$ac_cv_search_exp" != 'xnone required'; then : 5337 _ax_lua_extra_libs="$_ax_lua_extra_libs $ac_cv_search_exp" 5338fi 5339 5340 if test "x$ac_cv_search_dlopen" != 'xno' && 5341 test "x$ac_cv_search_dlopen" != 'xnone required'; then : 5342 _ax_lua_extra_libs="$_ax_lua_extra_libs $ac_cv_search_dlopen" 5343fi 5344 5345 _ax_lua_saved_libs=$LIBS 5346 LIBS="$LIBS $LUA_LIB" 5347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing lua_load" >&5 5348$as_echo_n "checking for library containing lua_load... " >&6; } 5349if ${ac_cv_search_lua_load+:} false; then : 5350 $as_echo_n "(cached) " >&6 5351else 5352 ac_func_search_save_LIBS=$LIBS 5353cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5354/* end confdefs.h. */ 5355 5356/* Override any GCC internal prototype to avoid an error. 5357 Use char because int might match the return type of a GCC 5358 builtin and then its argument prototype would still apply. */ 5359#ifdef __cplusplus 5360extern "C" 5361#endif 5362char lua_load (); 5363int 5364main () 5365{ 5366return lua_load (); 5367 ; 5368 return 0; 5369} 5370_ACEOF 5371for ac_lib in '' lua$LUA_VERSION \ 5372 lua$LUA_SHORT_VERSION \ 5373 lua-$LUA_VERSION \ 5374 lua-$LUA_SHORT_VERSION \ 5375 lua; do 5376 if test -z "$ac_lib"; then 5377 ac_res="none required" 5378 else 5379 ac_res=-l$ac_lib 5380 LIBS="-l$ac_lib $_ax_lua_extra_libs $ac_func_search_save_LIBS" 5381 fi 5382 if ac_fn_c_try_link "$LINENO"; then : 5383 ac_cv_search_lua_load=$ac_res 5384fi 5385rm -f core conftest.err conftest.$ac_objext \ 5386 conftest$ac_exeext 5387 if ${ac_cv_search_lua_load+:} false; then : 5388 break 5389fi 5390done 5391if ${ac_cv_search_lua_load+:} false; then : 5392 5393else 5394 ac_cv_search_lua_load=no 5395fi 5396rm conftest.$ac_ext 5397LIBS=$ac_func_search_save_LIBS 5398fi 5399{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_lua_load" >&5 5400$as_echo "$ac_cv_search_lua_load" >&6; } 5401ac_res=$ac_cv_search_lua_load 5402if test "$ac_res" != no; then : 5403 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 5404 _ax_found_lua_libs='yes' 5405else 5406 _ax_found_lua_libs='no' 5407fi 5408 5409 LIBS=$_ax_lua_saved_libs 5410 5411 if test "x$ac_cv_search_lua_load" != 'xno' && 5412 test "x$ac_cv_search_lua_load" != 'xnone required'; then : 5413 LUA_LIB="$ac_cv_search_lua_load $_ax_lua_extra_libs" 5414fi 5415 5416fi 5417 5418 if test "x$_ax_found_lua_libs" = 'xyes'; then : 5419 5420else 5421 as_fn_error $? "No lua libs found. Try --disable-liblua" "$LINENO" 5 5422fi 5423 5424 EXTRA_LIBS="${EXTRA_LIBS} ${LUA_LIB}" ; 5425 CPPFLAGS="${CPPFLAGS} ${LUA_INCLUDE}" ; 5426 5427$as_echo "#define USE_LUA 1" >>confdefs.h 5428 5429 5430 5431fi 5432 5433 fi 5434 5435else 5436 5437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: enabled" >&5 5438$as_echo "enabled" >&6; } 5439 5440 5441 5442 5443 5444 if test "x$LUA" = 'x'; then : 5445 for ac_prog in lua lua5.4 lua54 lua5.3 lua53 lua5.2 lua52 lua5.1 lua51 5446do 5447 # Extract the first word of "$ac_prog", so it can be a program name with args. 5448set dummy $ac_prog; ac_word=$2 5449{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5450$as_echo_n "checking for $ac_word... " >&6; } 5451if ${ac_cv_path_LUA+:} false; then : 5452 $as_echo_n "(cached) " >&6 5453else 5454 case $LUA in 5455 [\\/]* | ?:[\\/]*) 5456 ac_cv_path_LUA="$LUA" # Let the user override the test with a path. 5457 ;; 5458 *) 5459 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5460for as_dir in $PATH 5461do 5462 IFS=$as_save_IFS 5463 test -z "$as_dir" && as_dir=. 5464 for ac_exec_ext in '' $ac_executable_extensions; do 5465 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5466 ac_cv_path_LUA="$as_dir/$ac_word$ac_exec_ext" 5467 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5468 break 2 5469 fi 5470done 5471 done 5472IFS=$as_save_IFS 5473 5474 ;; 5475esac 5476fi 5477LUA=$ac_cv_path_LUA 5478if test -n "$LUA"; then 5479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LUA" >&5 5480$as_echo "$LUA" >&6; } 5481else 5482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5483$as_echo "no" >&6; } 5484fi 5485 5486 5487 test -n "$LUA" && break 5488done 5489test -n "$LUA" || LUA=":" 5490 5491fi 5492 ax_display_LUA='lua' 5493 5494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $LUA is a Lua interpreter" >&5 5495$as_echo_n "checking if $LUA is a Lua interpreter... " >&6; } 5496 5497 if $LUA -e "print('Hello ' .. _VERSION .. '!')" &>/dev/null; then : 5498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5499$as_echo "yes" >&6; } 5500else 5501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5502$as_echo "no" >&6; } 5503 as_fn_error $? "not a Lua interpreter" "$LINENO" 5 5504 5505fi 5506 5507 5508 5509 if test "x$LUA" = 'x:'; then : 5510 5511 as_fn_error $? "No lua found. Try --disable-liblua" "$LINENO" 5 5512 5513 5514else 5515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ax_display_LUA version" >&5 5516$as_echo_n "checking for $ax_display_LUA version... " >&6; } 5517if ${ax_cv_lua_version+:} false; then : 5518 $as_echo_n "(cached) " >&6 5519else 5520 ax_cv_lua_version=`$LUA -e "print(_VERSION)" | \ 5521 sed "s|^Lua \(.*\)|\1|" | \ 5522 grep -E -o "^[0-9]+\.[0-9]+"` 5523 5524fi 5525{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_lua_version" >&5 5526$as_echo "$ax_cv_lua_version" >&6; } 5527 if test "x$ax_cv_lua_version" = 'x'; then : 5528 as_fn_error $? "invalid Lua version number" "$LINENO" 5 5529fi 5530 LUA_VERSION=$ax_cv_lua_version 5531 5532 LUA_SHORT_VERSION=`echo "$LUA_VERSION" | sed 's|\.||'` 5533 5534 5535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ax_display_LUA platform" >&5 5536$as_echo_n "checking for $ax_display_LUA platform... " >&6; } 5537if ${ax_cv_lua_platform+:} false; then : 5538 $as_echo_n "(cached) " >&6 5539else 5540 ax_cv_lua_platform=`$LUA -e "print('unknown')"` 5541fi 5542{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_lua_platform" >&5 5543$as_echo "$ax_cv_lua_platform" >&6; } 5544 LUA_PLATFORM=$ax_cv_lua_platform 5545 5546 5547 LUA_PREFIX='${prefix}' 5548 5549 LUA_EXEC_PREFIX='${exec_prefix}' 5550 5551 5552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ax_display_LUA script directory" >&5 5553$as_echo_n "checking for $ax_display_LUA script directory... " >&6; } 5554if ${ax_cv_lua_luadir+:} false; then : 5555 $as_echo_n "(cached) " >&6 5556else 5557 if test "x$prefix" = 'xNONE'; then : 5558 ax_lua_prefix=$ac_default_prefix 5559else 5560 ax_lua_prefix=$prefix 5561fi 5562 5563 ax_cv_lua_luadir="$LUA_PREFIX/share/lua/$LUA_VERSION" 5564 5565 5566 5567 ax_lua_prefixed_path='' 5568 _ax_package_paths=`$LUA -e 'print(package.path)' 2>/dev/null | sed 's|;|\n|g'` 5569 for _ax_package_path in $_ax_package_paths; do 5570 _ax_path_parts=`echo "$_ax_package_path" | sed 's|/|\n|g'` 5571 _ax_reassembled='' 5572 for _ax_path_part in $_ax_path_parts; do 5573 echo "$_ax_path_part" | grep '\?' >/dev/null && break 5574 _ax_reassembled="$_ax_reassembled/$_ax_path_part" 5575 done 5576 _ax_package_path=$_ax_reassembled 5577 if echo "$_ax_package_path" | grep "^$ax_lua_prefix" >/dev/null; then 5578 ax_lua_prefixed_path=$_ax_package_path 5579 break 5580 fi 5581 done 5582 5583 if test "x$ax_lua_prefixed_path" != 'x'; then : 5584 _ax_strip_prefix=`echo "$ax_lua_prefix" | sed 's|.|.|g'` 5585 ax_cv_lua_luadir=`echo "$ax_lua_prefixed_path" | \ 5586 sed "s,^$_ax_strip_prefix,$LUA_PREFIX,"` 5587 5588fi 5589 5590fi 5591{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_lua_luadir" >&5 5592$as_echo "$ax_cv_lua_luadir" >&6; } 5593 luadir=$ax_cv_lua_luadir 5594 5595 pkgluadir=\${luadir}/$PACKAGE 5596 5597 5598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ax_display_LUA module directory" >&5 5599$as_echo_n "checking for $ax_display_LUA module directory... " >&6; } 5600if ${ax_cv_lua_luaexecdir+:} false; then : 5601 $as_echo_n "(cached) " >&6 5602else 5603 if test "x$exec_prefix" = 'xNONE'; then : 5604 ax_lua_exec_prefix=$ax_lua_prefix 5605else 5606 ax_lua_exec_prefix=$exec_prefix 5607fi 5608 5609 ax_cv_lua_luaexecdir="$LUA_EXEC_PREFIX/lib/lua/$LUA_VERSION" 5610 5611 5612 5613 ax_lua_prefixed_path='' 5614 _ax_package_paths=`$LUA -e 'print(package.cpathd)' 2>/dev/null | sed 's|;|\n|g'` 5615 for _ax_package_path in $_ax_package_paths; do 5616 _ax_path_parts=`echo "$_ax_package_path" | sed 's|/|\n|g'` 5617 _ax_reassembled='' 5618 for _ax_path_part in $_ax_path_parts; do 5619 echo "$_ax_path_part" | grep '\?' >/dev/null && break 5620 _ax_reassembled="$_ax_reassembled/$_ax_path_part" 5621 done 5622 _ax_package_path=$_ax_reassembled 5623 if echo "$_ax_package_path" | grep "^$ax_lua_exec_prefix" >/dev/null; then 5624 ax_lua_prefixed_path=$_ax_package_path 5625 break 5626 fi 5627 done 5628 5629 if test "x$ax_lua_prefixed_path" != 'x'; then : 5630 _ax_strip_prefix=`echo "$ax_lua_exec_prefix" | sed 's|.|.|g'` 5631 ax_cv_lua_luaexecdir=`echo "$ax_lua_prefixed_path" | \ 5632 sed "s,^$_ax_strip_prefix,$LUA_EXEC_PREFIX,"` 5633 5634fi 5635 5636fi 5637{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_lua_luaexecdir" >&5 5638$as_echo "$ax_cv_lua_luaexecdir" >&6; } 5639 luaexecdir=$ax_cv_lua_luaexecdir 5640 5641 pkgluaexecdir=\${luaexecdir}/$PACKAGE 5642 5643 5644 5645 5646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LUA_VERSION is defined" >&5 5647$as_echo_n "checking if LUA_VERSION is defined... " >&6; } 5648 if test "x$LUA_VERSION" != 'x'; then : 5649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5650$as_echo "yes" >&6; } 5651else 5652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5653$as_echo "no" >&6; } 5654 as_fn_error $? "cannot check Lua headers without knowing LUA_VERSION" "$LINENO" 5 5655 5656fi 5657 5658 5659 5660 LUA_SHORT_VERSION=`echo "$LUA_VERSION" | sed 's|\.||'` 5661 5662 5663 _ax_lua_saved_cppflags=$CPPFLAGS 5664 CPPFLAGS="$CPPFLAGS $LUA_INCLUDE" 5665 for ac_header in lua.h lualib.h lauxlib.h luaconf.h 5666do : 5667 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 5668ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 5669if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 5670 cat >>confdefs.h <<_ACEOF 5671#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 5672_ACEOF 5673 5674fi 5675 5676done 5677 5678 CPPFLAGS=$_ax_lua_saved_cppflags 5679 5680 if test "x$LUA_INCLUDE" = 'x' && 5681 test "x$ac_cv_header_lua_h" != 'xyes'; then : 5682 for _ax_include_path in /usr/include/lua$LUA_VERSION \ 5683 /usr/include/lua/$LUA_VERSION \ 5684 /usr/include/lua$LUA_SHORT_VERSION \ 5685 /usr/local/include/lua$LUA_VERSION \ 5686 /usr/local/include/lua-$LUA_VERSION \ 5687 /usr/local/include/lua/$LUA_VERSION \ 5688 /usr/local/include/lua$LUA_SHORT_VERSION \ 5689 ; do 5690 test ! -d "$_ax_include_path" && continue 5691 5692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Lua headers in" >&5 5693$as_echo_n "checking for Lua headers in... " >&6; } 5694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_ax_include_path" >&5 5695$as_echo "$_ax_include_path" >&6; } 5696 5697 { ac_cv_header_lua_h=; unset ac_cv_header_lua_h;} 5698 { ac_cv_header_lualib_h=; unset ac_cv_header_lualib_h;} 5699 { ac_cv_header_lauxlib_h=; unset ac_cv_header_lauxlib_h;} 5700 { ac_cv_header_luaconf_h=; unset ac_cv_header_luaconf_h;} 5701 5702 _ax_lua_saved_cppflags=$CPPFLAGS 5703 CPPFLAGS="$CPPFLAGS -I$_ax_include_path" 5704 for ac_header in lua.h lualib.h lauxlib.h luaconf.h 5705do : 5706 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 5707ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 5708if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 5709 cat >>confdefs.h <<_ACEOF 5710#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 5711_ACEOF 5712 5713fi 5714 5715done 5716 5717 CPPFLAGS=$_ax_lua_saved_cppflags 5718 5719 if test "x$ac_cv_header_lua_h" = 'xyes'; then : 5720 LUA_INCLUDE="-I$_ax_include_path" 5721 break 5722 5723fi 5724 done 5725 5726fi 5727 5728 if test "x$ac_cv_header_lua_h" = 'xyes'; then : 5729 5730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Lua header version" >&5 5731$as_echo_n "checking for Lua header version... " >&6; } 5732if ${ax_cv_lua_header_version+:} false; then : 5733 $as_echo_n "(cached) " >&6 5734else 5735 _ax_lua_saved_cppflags=$CPPFLAGS 5736 CPPFLAGS="$CPPFLAGS $LUA_INCLUDE" 5737 if test "$cross_compiling" = yes; then : 5738 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 5739$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 5740as_fn_error $? "cannot run test program while cross compiling 5741See \`config.log' for more details" "$LINENO" 5; } 5742else 5743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5744/* end confdefs.h. */ 5745 5746#include <lua.h> 5747#include <stdlib.h> 5748#include <stdio.h> 5749int main(int argc, char ** argv) 5750{ 5751 if(argc > 1) printf("%s", LUA_VERSION); 5752 exit(EXIT_SUCCESS); 5753} 5754 5755 5756_ACEOF 5757if ac_fn_c_try_run "$LINENO"; then : 5758 ax_cv_lua_header_version=`./conftest$EXEEXT p | \ 5759 sed "s|^Lua \(.*\)|\1|" | \ 5760 grep -E -o "^[0-9]+\.[0-9]+"` 5761 5762else 5763 ax_cv_lua_header_version='unknown' 5764fi 5765rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 5766 conftest.$ac_objext conftest.beam conftest.$ac_ext 5767fi 5768 5769 CPPFLAGS=$_ax_lua_saved_cppflags 5770 5771fi 5772{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_lua_header_version" >&5 5773$as_echo "$ax_cv_lua_header_version" >&6; } 5774 5775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Lua header version matches $LUA_VERSION" >&5 5776$as_echo_n "checking if Lua header version matches $LUA_VERSION... " >&6; } 5777 if test "x$ax_cv_lua_header_version" = "x$LUA_VERSION"; then : 5778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5779$as_echo "yes" >&6; } 5780 ax_header_version_match='yes' 5781 5782else 5783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5784$as_echo "no" >&6; } 5785 ax_header_version_match='no' 5786 5787fi 5788 5789fi 5790 5791 if test "x$ax_header_version_match" != 'xyes' && 5792 test "x$LUA_INCLUDE" != 'x'; then : 5793 as_fn_error $? "cannot find headers for specified LUA_INCLUDE" "$LINENO" 5 5794fi 5795 5796 if test "x$ax_header_version_match" = 'xyes'; then : 5797 5798else 5799 as_fn_error $? "No lua headers found. Try --disable-liblua" "$LINENO" 5 5800fi 5801 5802 5803 5804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LUA_VERSION is defined" >&5 5805$as_echo_n "checking if LUA_VERSION is defined... " >&6; } 5806 if test "x$LUA_VERSION" != 'x'; then : 5807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5808$as_echo "yes" >&6; } 5809else 5810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5811$as_echo "no" >&6; } 5812 as_fn_error $? "cannot check Lua libs without knowing LUA_VERSION" "$LINENO" 5 5813 5814fi 5815 5816 5817 5818 if test "x$LUA_LIB" != 'x'; then : 5819 _ax_lua_saved_libs=$LIBS 5820 LIBS="$LIBS $LUA_LIB" 5821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing lua_load" >&5 5822$as_echo_n "checking for library containing lua_load... " >&6; } 5823if ${ac_cv_search_lua_load+:} false; then : 5824 $as_echo_n "(cached) " >&6 5825else 5826 ac_func_search_save_LIBS=$LIBS 5827cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5828/* end confdefs.h. */ 5829 5830/* Override any GCC internal prototype to avoid an error. 5831 Use char because int might match the return type of a GCC 5832 builtin and then its argument prototype would still apply. */ 5833#ifdef __cplusplus 5834extern "C" 5835#endif 5836char lua_load (); 5837int 5838main () 5839{ 5840return lua_load (); 5841 ; 5842 return 0; 5843} 5844_ACEOF 5845for ac_lib in '' ; do 5846 if test -z "$ac_lib"; then 5847 ac_res="none required" 5848 else 5849 ac_res=-l$ac_lib 5850 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 5851 fi 5852 if ac_fn_c_try_link "$LINENO"; then : 5853 ac_cv_search_lua_load=$ac_res 5854fi 5855rm -f core conftest.err conftest.$ac_objext \ 5856 conftest$ac_exeext 5857 if ${ac_cv_search_lua_load+:} false; then : 5858 break 5859fi 5860done 5861if ${ac_cv_search_lua_load+:} false; then : 5862 5863else 5864 ac_cv_search_lua_load=no 5865fi 5866rm conftest.$ac_ext 5867LIBS=$ac_func_search_save_LIBS 5868fi 5869{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_lua_load" >&5 5870$as_echo "$ac_cv_search_lua_load" >&6; } 5871ac_res=$ac_cv_search_lua_load 5872if test "$ac_res" != no; then : 5873 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 5874 _ax_found_lua_libs='yes' 5875else 5876 _ax_found_lua_libs='no' 5877fi 5878 5879 LIBS=$_ax_lua_saved_libs 5880 5881 if test "x$_ax_found_lua_libs" != 'xyes'; then : 5882 as_fn_error $? "cannot find libs for specified LUA_LIB" "$LINENO" 5 5883fi 5884 5885else 5886 _ax_lua_extra_libs='' 5887 5888 _ax_lua_saved_libs=$LIBS 5889 LIBS="$LIBS $LUA_LIB" 5890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing exp" >&5 5891$as_echo_n "checking for library containing exp... " >&6; } 5892if ${ac_cv_search_exp+:} false; then : 5893 $as_echo_n "(cached) " >&6 5894else 5895 ac_func_search_save_LIBS=$LIBS 5896cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5897/* end confdefs.h. */ 5898 5899/* Override any GCC internal prototype to avoid an error. 5900 Use char because int might match the return type of a GCC 5901 builtin and then its argument prototype would still apply. */ 5902#ifdef __cplusplus 5903extern "C" 5904#endif 5905char exp (); 5906int 5907main () 5908{ 5909return exp (); 5910 ; 5911 return 0; 5912} 5913_ACEOF 5914for ac_lib in '' m; do 5915 if test -z "$ac_lib"; then 5916 ac_res="none required" 5917 else 5918 ac_res=-l$ac_lib 5919 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 5920 fi 5921 if ac_fn_c_try_link "$LINENO"; then : 5922 ac_cv_search_exp=$ac_res 5923fi 5924rm -f core conftest.err conftest.$ac_objext \ 5925 conftest$ac_exeext 5926 if ${ac_cv_search_exp+:} false; then : 5927 break 5928fi 5929done 5930if ${ac_cv_search_exp+:} false; then : 5931 5932else 5933 ac_cv_search_exp=no 5934fi 5935rm conftest.$ac_ext 5936LIBS=$ac_func_search_save_LIBS 5937fi 5938{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_exp" >&5 5939$as_echo "$ac_cv_search_exp" >&6; } 5940ac_res=$ac_cv_search_exp 5941if test "$ac_res" != no; then : 5942 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 5943 5944fi 5945 5946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5 5947$as_echo_n "checking for library containing dlopen... " >&6; } 5948if ${ac_cv_search_dlopen+:} false; then : 5949 $as_echo_n "(cached) " >&6 5950else 5951 ac_func_search_save_LIBS=$LIBS 5952cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5953/* end confdefs.h. */ 5954 5955/* Override any GCC internal prototype to avoid an error. 5956 Use char because int might match the return type of a GCC 5957 builtin and then its argument prototype would still apply. */ 5958#ifdef __cplusplus 5959extern "C" 5960#endif 5961char dlopen (); 5962int 5963main () 5964{ 5965return dlopen (); 5966 ; 5967 return 0; 5968} 5969_ACEOF 5970for ac_lib in '' dl; do 5971 if test -z "$ac_lib"; then 5972 ac_res="none required" 5973 else 5974 ac_res=-l$ac_lib 5975 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 5976 fi 5977 if ac_fn_c_try_link "$LINENO"; then : 5978 ac_cv_search_dlopen=$ac_res 5979fi 5980rm -f core conftest.err conftest.$ac_objext \ 5981 conftest$ac_exeext 5982 if ${ac_cv_search_dlopen+:} false; then : 5983 break 5984fi 5985done 5986if ${ac_cv_search_dlopen+:} false; then : 5987 5988else 5989 ac_cv_search_dlopen=no 5990fi 5991rm conftest.$ac_ext 5992LIBS=$ac_func_search_save_LIBS 5993fi 5994{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5 5995$as_echo "$ac_cv_search_dlopen" >&6; } 5996ac_res=$ac_cv_search_dlopen 5997if test "$ac_res" != no; then : 5998 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 5999 6000fi 6001 6002 LIBS=$_ax_lua_saved_libs 6003 6004 if test "x$ac_cv_search_exp" != 'xno' && 6005 test "x$ac_cv_search_exp" != 'xnone required'; then : 6006 _ax_lua_extra_libs="$_ax_lua_extra_libs $ac_cv_search_exp" 6007fi 6008 6009 if test "x$ac_cv_search_dlopen" != 'xno' && 6010 test "x$ac_cv_search_dlopen" != 'xnone required'; then : 6011 _ax_lua_extra_libs="$_ax_lua_extra_libs $ac_cv_search_dlopen" 6012fi 6013 6014 _ax_lua_saved_libs=$LIBS 6015 LIBS="$LIBS $LUA_LIB" 6016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing lua_load" >&5 6017$as_echo_n "checking for library containing lua_load... " >&6; } 6018if ${ac_cv_search_lua_load+:} false; then : 6019 $as_echo_n "(cached) " >&6 6020else 6021 ac_func_search_save_LIBS=$LIBS 6022cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6023/* end confdefs.h. */ 6024 6025/* Override any GCC internal prototype to avoid an error. 6026 Use char because int might match the return type of a GCC 6027 builtin and then its argument prototype would still apply. */ 6028#ifdef __cplusplus 6029extern "C" 6030#endif 6031char lua_load (); 6032int 6033main () 6034{ 6035return lua_load (); 6036 ; 6037 return 0; 6038} 6039_ACEOF 6040for ac_lib in '' lua$LUA_VERSION \ 6041 lua$LUA_SHORT_VERSION \ 6042 lua-$LUA_VERSION \ 6043 lua-$LUA_SHORT_VERSION \ 6044 lua; do 6045 if test -z "$ac_lib"; then 6046 ac_res="none required" 6047 else 6048 ac_res=-l$ac_lib 6049 LIBS="-l$ac_lib $_ax_lua_extra_libs $ac_func_search_save_LIBS" 6050 fi 6051 if ac_fn_c_try_link "$LINENO"; then : 6052 ac_cv_search_lua_load=$ac_res 6053fi 6054rm -f core conftest.err conftest.$ac_objext \ 6055 conftest$ac_exeext 6056 if ${ac_cv_search_lua_load+:} false; then : 6057 break 6058fi 6059done 6060if ${ac_cv_search_lua_load+:} false; then : 6061 6062else 6063 ac_cv_search_lua_load=no 6064fi 6065rm conftest.$ac_ext 6066LIBS=$ac_func_search_save_LIBS 6067fi 6068{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_lua_load" >&5 6069$as_echo "$ac_cv_search_lua_load" >&6; } 6070ac_res=$ac_cv_search_lua_load 6071if test "$ac_res" != no; then : 6072 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 6073 _ax_found_lua_libs='yes' 6074else 6075 _ax_found_lua_libs='no' 6076fi 6077 6078 LIBS=$_ax_lua_saved_libs 6079 6080 if test "x$ac_cv_search_lua_load" != 'xno' && 6081 test "x$ac_cv_search_lua_load" != 'xnone required'; then : 6082 LUA_LIB="$ac_cv_search_lua_load $_ax_lua_extra_libs" 6083fi 6084 6085fi 6086 6087 if test "x$_ax_found_lua_libs" = 'xyes'; then : 6088 6089else 6090 as_fn_error $? "No lua libs found. Try --disable-liblua" "$LINENO" 5 6091fi 6092 6093 EXTRA_LIBS="${EXTRA_LIBS} ${LUA_LIB}" ; 6094 CPPFLAGS="${CPPFLAGS} ${LUA_INCLUDE}" ; 6095 6096$as_echo "#define USE_LUA 1" >>confdefs.h 6097 6098 6099 6100fi 6101 6102 6103fi 6104 6105 6106{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for python" >&5 6107$as_echo_n "checking for python... " >&6; } 6108# Check whether --enable-python was given. 6109if test "${enable_python+set}" = set; then : 6110 enableval=$enable_python; 6111 if test "x$enableval" = "xno" ; then 6112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 6113$as_echo "disabled" >&6; } 6114 else 6115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: enabled" >&5 6116$as_echo "enabled" >&6; } 6117 6118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for python build information" >&5 6119$as_echo_n "checking for python build information... " >&6; } 6120{ $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 6121$as_echo "" >&6; } 6122for python in python3.5 python3.4 python3.3 python3.2 python3.1 python3 python2.7 python2.6 python2 python; do 6123for ac_prog in $python 6124do 6125 # Extract the first word of "$ac_prog", so it can be a program name with args. 6126set dummy $ac_prog; ac_word=$2 6127{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6128$as_echo_n "checking for $ac_word... " >&6; } 6129if ${ac_cv_prog_PYTHON_BIN+:} false; then : 6130 $as_echo_n "(cached) " >&6 6131else 6132 if test -n "$PYTHON_BIN"; then 6133 ac_cv_prog_PYTHON_BIN="$PYTHON_BIN" # Let the user override the test. 6134else 6135as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6136for as_dir in $PATH 6137do 6138 IFS=$as_save_IFS 6139 test -z "$as_dir" && as_dir=. 6140 for ac_exec_ext in '' $ac_executable_extensions; do 6141 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6142 ac_cv_prog_PYTHON_BIN="$ac_prog" 6143 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6144 break 2 6145 fi 6146done 6147 done 6148IFS=$as_save_IFS 6149 6150fi 6151fi 6152PYTHON_BIN=$ac_cv_prog_PYTHON_BIN 6153if test -n "$PYTHON_BIN"; then 6154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_BIN" >&5 6155$as_echo "$PYTHON_BIN" >&6; } 6156else 6157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6158$as_echo "no" >&6; } 6159fi 6160 6161 6162 test -n "$PYTHON_BIN" && break 6163done 6164 6165ax_python_bin=$PYTHON_BIN 6166if test x$ax_python_bin != x; then 6167 as_ac_Lib=`$as_echo "ac_cv_lib_$ax_python_bin''_main" | $as_tr_sh` 6168{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -l$ax_python_bin" >&5 6169$as_echo_n "checking for main in -l$ax_python_bin... " >&6; } 6170if eval \${$as_ac_Lib+:} false; then : 6171 $as_echo_n "(cached) " >&6 6172else 6173 ac_check_lib_save_LIBS=$LIBS 6174LIBS="-l$ax_python_bin $LIBS" 6175cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6176/* end confdefs.h. */ 6177 6178 6179int 6180main () 6181{ 6182return main (); 6183 ; 6184 return 0; 6185} 6186_ACEOF 6187if ac_fn_c_try_link "$LINENO"; then : 6188 eval "$as_ac_Lib=yes" 6189else 6190 eval "$as_ac_Lib=no" 6191fi 6192rm -f core conftest.err conftest.$ac_objext \ 6193 conftest$ac_exeext conftest.$ac_ext 6194LIBS=$ac_check_lib_save_LIBS 6195fi 6196eval ac_res=\$$as_ac_Lib 6197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 6198$as_echo "$ac_res" >&6; } 6199if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 6200 ax_python_lib=$ax_python_bin 6201else 6202 ax_python_lib=no 6203fi 6204 6205 if test x$ax_python_lib == xno; then 6206 as_ac_Lib=`$as_echo "ac_cv_lib_${ax_python_bin}m''_main" | $as_tr_sh` 6207{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -l${ax_python_bin}m" >&5 6208$as_echo_n "checking for main in -l${ax_python_bin}m... " >&6; } 6209if eval \${$as_ac_Lib+:} false; then : 6210 $as_echo_n "(cached) " >&6 6211else 6212 ac_check_lib_save_LIBS=$LIBS 6213LIBS="-l${ax_python_bin}m $LIBS" 6214cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6215/* end confdefs.h. */ 6216 6217 6218int 6219main () 6220{ 6221return main (); 6222 ; 6223 return 0; 6224} 6225_ACEOF 6226if ac_fn_c_try_link "$LINENO"; then : 6227 eval "$as_ac_Lib=yes" 6228else 6229 eval "$as_ac_Lib=no" 6230fi 6231rm -f core conftest.err conftest.$ac_objext \ 6232 conftest$ac_exeext conftest.$ac_ext 6233LIBS=$ac_check_lib_save_LIBS 6234fi 6235eval ac_res=\$$as_ac_Lib 6236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 6237$as_echo "$ac_res" >&6; } 6238if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 6239 ax_python_lib=${ax_python_bin}m 6240else 6241 ax_python_lib=no 6242fi 6243 6244 fi 6245 if test x$ax_python_lib == xno; then 6246 as_ac_Lib=`$as_echo "ac_cv_lib_${ax_python_bin}mu''_main" | $as_tr_sh` 6247{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -l${ax_python_bin}mu" >&5 6248$as_echo_n "checking for main in -l${ax_python_bin}mu... " >&6; } 6249if eval \${$as_ac_Lib+:} false; then : 6250 $as_echo_n "(cached) " >&6 6251else 6252 ac_check_lib_save_LIBS=$LIBS 6253LIBS="-l${ax_python_bin}mu $LIBS" 6254cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6255/* end confdefs.h. */ 6256 6257 6258int 6259main () 6260{ 6261return main (); 6262 ; 6263 return 0; 6264} 6265_ACEOF 6266if ac_fn_c_try_link "$LINENO"; then : 6267 eval "$as_ac_Lib=yes" 6268else 6269 eval "$as_ac_Lib=no" 6270fi 6271rm -f core conftest.err conftest.$ac_objext \ 6272 conftest$ac_exeext conftest.$ac_ext 6273LIBS=$ac_check_lib_save_LIBS 6274fi 6275eval ac_res=\$$as_ac_Lib 6276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 6277$as_echo "$ac_res" >&6; } 6278if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 6279 ax_python_lib=${ax_python_bin}mu 6280else 6281 ax_python_lib=no 6282fi 6283 6284 fi 6285 if test x$ax_python_lib != xno; then 6286 ax_python_header=`$ax_python_bin -c "from distutils.sysconfig import *; print(get_config_var('CONFINCLUDEPY'))"` 6287 if test x$ax_python_header != x; then 6288 break; 6289 fi 6290 fi 6291fi 6292unset ac_cv_prog_PYTHON_BIN 6293unset PYTHON_BIN 6294done 6295if test x$ax_python_bin = x; then 6296 ax_python_bin=no 6297fi 6298if test x$ax_python_header = x; then 6299 ax_python_header=no 6300fi 6301if test x$ax_python_lib = x; then 6302 ax_python_lib=no 6303fi 6304 6305{ $as_echo "$as_me:${as_lineno-$LINENO}: result: results of the Python check:" >&5 6306$as_echo " results of the Python check:" >&6; } 6307{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Binary: $ax_python_bin" >&5 6308$as_echo " Binary: $ax_python_bin" >&6; } 6309{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Library: $ax_python_lib" >&5 6310$as_echo " Library: $ax_python_lib" >&6; } 6311{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Include Dir: $ax_python_header" >&5 6312$as_echo " Include Dir: $ax_python_header" >&6; } 6313 6314 6315PYTHON_FOUND=yes 6316if test x$ax_python_header != xno; then 6317 PYTHON_INCLUDE_DIR=$ax_python_header 6318 6319else 6320 PYTHON_FOUND=no 6321fi 6322 6323if test x$ax_python_lib != xno; then 6324 PYTHON_LIB=$ax_python_lib 6325 6326else 6327 PYTHON_FOUND=no 6328fi 6329 6330 6331 6332 6333 if test $PYTHON_FOUND = no ; then 6334 as_fn_error $? "No supported python lib version found. Try --disable-python" "$LINENO" 5 6335 else 6336 6337 6338 EXTRA_LIBS="${EXTRA_LIBS} -l${PYTHON_LIB}" 6339 CPPFLAGS="${CPPFLAGS} -I${PYTHON_INCLUDE_DIR}" 6340 6341$as_echo "#define USE_PYTHON 1" >>confdefs.h 6342 6343 fi 6344 fi 6345 6346else 6347 6348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 6349$as_echo "disabled" >&6; } 6350 6351fi 6352 6353 6354 6355 6356{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libjansson" >&5 6357$as_echo_n "checking for libjansson... " >&6; } 6358# Check whether --enable-json was given. 6359if test "${enable_json+set}" = set; then : 6360 enableval=$enable_json; 6361 if test "x$enableval" = "xno" ; then 6362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 6363$as_echo "disabled" >&6; } 6364 else 6365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: enabled" >&5 6366$as_echo "enabled" >&6; } 6367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for json_array_set_new in -ljansson" >&5 6368$as_echo_n "checking for json_array_set_new in -ljansson... " >&6; } 6369if ${ac_cv_lib_jansson_json_array_set_new+:} false; then : 6370 $as_echo_n "(cached) " >&6 6371else 6372 ac_check_lib_save_LIBS=$LIBS 6373LIBS="-ljansson $LIBS" 6374cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6375/* end confdefs.h. */ 6376 6377/* Override any GCC internal prototype to avoid an error. 6378 Use char because int might match the return type of a GCC 6379 builtin and then its argument prototype would still apply. */ 6380#ifdef __cplusplus 6381extern "C" 6382#endif 6383char json_array_set_new (); 6384int 6385main () 6386{ 6387return json_array_set_new (); 6388 ; 6389 return 0; 6390} 6391_ACEOF 6392if ac_fn_c_try_link "$LINENO"; then : 6393 ac_cv_lib_jansson_json_array_set_new=yes 6394else 6395 ac_cv_lib_jansson_json_array_set_new=no 6396fi 6397rm -f core conftest.err conftest.$ac_objext \ 6398 conftest$ac_exeext conftest.$ac_ext 6399LIBS=$ac_check_lib_save_LIBS 6400fi 6401{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jansson_json_array_set_new" >&5 6402$as_echo "$ac_cv_lib_jansson_json_array_set_new" >&6; } 6403if test "x$ac_cv_lib_jansson_json_array_set_new" = xyes; then : 6404 cat >>confdefs.h <<_ACEOF 6405#define HAVE_LIBJANSSON 1 6406_ACEOF 6407 6408 LIBS="-ljansson $LIBS" 6409 6410else 6411 as_fn_error $? "No libjansson found. Try --disable-json" "$LINENO" 5 6412fi 6413 6414 6415$as_echo "#define USE_JSON 1" >>confdefs.h 6416 6417 fi 6418 6419else 6420 6421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: enabled" >&5 6422$as_echo "enabled" >&6; } 6423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for json_array_set_new in -ljansson" >&5 6424$as_echo_n "checking for json_array_set_new in -ljansson... " >&6; } 6425if ${ac_cv_lib_jansson_json_array_set_new+:} false; then : 6426 $as_echo_n "(cached) " >&6 6427else 6428 ac_check_lib_save_LIBS=$LIBS 6429LIBS="-ljansson $LIBS" 6430cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6431/* end confdefs.h. */ 6432 6433/* Override any GCC internal prototype to avoid an error. 6434 Use char because int might match the return type of a GCC 6435 builtin and then its argument prototype would still apply. */ 6436#ifdef __cplusplus 6437extern "C" 6438#endif 6439char json_array_set_new (); 6440int 6441main () 6442{ 6443return json_array_set_new (); 6444 ; 6445 return 0; 6446} 6447_ACEOF 6448if ac_fn_c_try_link "$LINENO"; then : 6449 ac_cv_lib_jansson_json_array_set_new=yes 6450else 6451 ac_cv_lib_jansson_json_array_set_new=no 6452fi 6453rm -f core conftest.err conftest.$ac_objext \ 6454 conftest$ac_exeext conftest.$ac_ext 6455LIBS=$ac_check_lib_save_LIBS 6456fi 6457{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jansson_json_array_set_new" >&5 6458$as_echo "$ac_cv_lib_jansson_json_array_set_new" >&6; } 6459if test "x$ac_cv_lib_jansson_json_array_set_new" = xyes; then : 6460 cat >>confdefs.h <<_ACEOF 6461#define HAVE_LIBJANSSON 1 6462_ACEOF 6463 6464 LIBS="-ljansson $LIBS" 6465 6466else 6467 as_fn_error $? "No libjansson found. Try --disable-json" "$LINENO" 5 6468fi 6469 6470 6471$as_echo "#define USE_JSON 1" >>confdefs.h 6472 6473 6474fi 6475 6476 6477#check for custom prog name 6478{ $as_echo "$as_me:${as_lineno-$LINENO}: checking progname" >&5 6479$as_echo_n "checking progname... " >&6; } 6480 6481# Check whether --with-progname was given. 6482if test "${with_progname+set}" = set; then : 6483 withval=$with_progname; 6484 if test "x$with_progname" = "xno" ; then 6485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: default" >&5 6486$as_echo "default" >&6; } 6487 elif test "x$with_progname" = "xyes" ; then 6488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: default" >&5 6489$as_echo "default" >&6; } 6490 else 6491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"$with_progname\"" >&5 6492$as_echo "\"$with_progname\"" >&6; } 6493 6494cat >>confdefs.h <<_ACEOF 6495#define PROG_NAME "$with_progname" 6496_ACEOF 6497 6498 fi 6499 6500else 6501 6502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: default" >&5 6503$as_echo "default" >&6; } 6504 6505fi 6506 6507 6508# Check whether --enable-valgrind was given. 6509if test "${enable_valgrind+set}" = set; then : 6510 enableval=$enable_valgrind; 6511 if test "x$enableval" = "xyes" ; then 6512 ac_fn_c_check_header_mongrel "$LINENO" "valgrind/memcheck.h" "ac_cv_header_valgrind_memcheck_h" "$ac_includes_default" 6513if test "x$ac_cv_header_valgrind_memcheck_h" = xyes; then : 6514 6515$as_echo "#define VALGRIND_FIXES 1" >>confdefs.h 6516 6517fi 6518 6519 6520 fi 6521 6522fi 6523 6524 6525 6526# Checks for header files. 6527for ac_header in execinfo.h fcntl.h malloc.h netdb.h stdlib.h string.h unistd.h arpa/inet.h mach/mach.h netinet/in.h sys/file.h sys/socket.h termios.h 6528do : 6529 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 6530ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 6531if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 6532 cat >>confdefs.h <<_ACEOF 6533#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 6534_ACEOF 6535 6536fi 6537 6538done 6539 6540 6541# Checks for typedefs, structures, and compiler characteristics. 6542ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" 6543if test "x$ac_cv_type_size_t" = xyes; then : 6544 6545else 6546 6547cat >>confdefs.h <<_ACEOF 6548#define size_t unsigned int 6549_ACEOF 6550 6551fi 6552 6553{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5 6554$as_echo_n "checking for uid_t in sys/types.h... " >&6; } 6555if ${ac_cv_type_uid_t+:} false; then : 6556 $as_echo_n "(cached) " >&6 6557else 6558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6559/* end confdefs.h. */ 6560#include <sys/types.h> 6561 6562_ACEOF 6563if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6564 $EGREP "uid_t" >/dev/null 2>&1; then : 6565 ac_cv_type_uid_t=yes 6566else 6567 ac_cv_type_uid_t=no 6568fi 6569rm -f conftest* 6570 6571fi 6572{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5 6573$as_echo "$ac_cv_type_uid_t" >&6; } 6574if test $ac_cv_type_uid_t = no; then 6575 6576$as_echo "#define uid_t int" >>confdefs.h 6577 6578 6579$as_echo "#define gid_t int" >>confdefs.h 6580 6581fi 6582 6583{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 6584$as_echo_n "checking for inline... " >&6; } 6585if ${ac_cv_c_inline+:} false; then : 6586 $as_echo_n "(cached) " >&6 6587else 6588 ac_cv_c_inline=no 6589for ac_kw in inline __inline__ __inline; do 6590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6591/* end confdefs.h. */ 6592#ifndef __cplusplus 6593typedef int foo_t; 6594static $ac_kw foo_t static_foo () {return 0; } 6595$ac_kw foo_t foo () {return 0; } 6596#endif 6597 6598_ACEOF 6599if ac_fn_c_try_compile "$LINENO"; then : 6600 ac_cv_c_inline=$ac_kw 6601fi 6602rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6603 test "$ac_cv_c_inline" != no && break 6604done 6605 6606fi 6607{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 6608$as_echo "$ac_cv_c_inline" >&6; } 6609 6610case $ac_cv_c_inline in 6611 inline | yes) ;; 6612 *) 6613 case $ac_cv_c_inline in 6614 no) ac_val=;; 6615 *) ac_val=$ac_cv_c_inline;; 6616 esac 6617 cat >>confdefs.h <<_ACEOF 6618#ifndef __cplusplus 6619#define inline $ac_val 6620#endif 6621_ACEOF 6622 ;; 6623esac 6624 6625 6626# Checks for library functions. 6627for ac_header in stdlib.h 6628do : 6629 ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default" 6630if test "x$ac_cv_header_stdlib_h" = xyes; then : 6631 cat >>confdefs.h <<_ACEOF 6632#define HAVE_STDLIB_H 1 6633_ACEOF 6634 6635fi 6636 6637done 6638 6639{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5 6640$as_echo_n "checking for GNU libc compatible malloc... " >&6; } 6641if ${ac_cv_func_malloc_0_nonnull+:} false; then : 6642 $as_echo_n "(cached) " >&6 6643else 6644 if test "$cross_compiling" = yes; then : 6645 ac_cv_func_malloc_0_nonnull=no 6646else 6647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6648/* end confdefs.h. */ 6649#if defined STDC_HEADERS || defined HAVE_STDLIB_H 6650# include <stdlib.h> 6651#else 6652char *malloc (); 6653#endif 6654 6655int 6656main () 6657{ 6658return ! malloc (0); 6659 ; 6660 return 0; 6661} 6662_ACEOF 6663if ac_fn_c_try_run "$LINENO"; then : 6664 ac_cv_func_malloc_0_nonnull=yes 6665else 6666 ac_cv_func_malloc_0_nonnull=no 6667fi 6668rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 6669 conftest.$ac_objext conftest.beam conftest.$ac_ext 6670fi 6671 6672fi 6673{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5 6674$as_echo "$ac_cv_func_malloc_0_nonnull" >&6; } 6675if test $ac_cv_func_malloc_0_nonnull = yes; then : 6676 6677$as_echo "#define HAVE_MALLOC 1" >>confdefs.h 6678 6679else 6680 $as_echo "#define HAVE_MALLOC 0" >>confdefs.h 6681 6682 case " $LIBOBJS " in 6683 *" malloc.$ac_objext "* ) ;; 6684 *) LIBOBJS="$LIBOBJS malloc.$ac_objext" 6685 ;; 6686esac 6687 6688 6689$as_echo "#define malloc rpl_malloc" >>confdefs.h 6690 6691fi 6692 6693 6694for ac_header in stdlib.h 6695do : 6696 ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default" 6697if test "x$ac_cv_header_stdlib_h" = xyes; then : 6698 cat >>confdefs.h <<_ACEOF 6699#define HAVE_STDLIB_H 1 6700_ACEOF 6701 6702fi 6703 6704done 6705 6706{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible realloc" >&5 6707$as_echo_n "checking for GNU libc compatible realloc... " >&6; } 6708if ${ac_cv_func_realloc_0_nonnull+:} false; then : 6709 $as_echo_n "(cached) " >&6 6710else 6711 if test "$cross_compiling" = yes; then : 6712 ac_cv_func_realloc_0_nonnull=no 6713else 6714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6715/* end confdefs.h. */ 6716#if defined STDC_HEADERS || defined HAVE_STDLIB_H 6717# include <stdlib.h> 6718#else 6719char *realloc (); 6720#endif 6721 6722int 6723main () 6724{ 6725return ! realloc (0, 0); 6726 ; 6727 return 0; 6728} 6729_ACEOF 6730if ac_fn_c_try_run "$LINENO"; then : 6731 ac_cv_func_realloc_0_nonnull=yes 6732else 6733 ac_cv_func_realloc_0_nonnull=no 6734fi 6735rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 6736 conftest.$ac_objext conftest.beam conftest.$ac_ext 6737fi 6738 6739fi 6740{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_realloc_0_nonnull" >&5 6741$as_echo "$ac_cv_func_realloc_0_nonnull" >&6; } 6742if test $ac_cv_func_realloc_0_nonnull = yes; then : 6743 6744$as_echo "#define HAVE_REALLOC 1" >>confdefs.h 6745 6746else 6747 $as_echo "#define HAVE_REALLOC 0" >>confdefs.h 6748 6749 case " $LIBOBJS " in 6750 *" realloc.$ac_objext "* ) ;; 6751 *) LIBOBJS="$LIBOBJS realloc.$ac_objext" 6752 ;; 6753esac 6754 6755 6756$as_echo "#define realloc rpl_realloc" >>confdefs.h 6757 6758fi 6759 6760 6761for ac_func in alarm endpwent memset memmove mkdir select socket strdup strndup uname 6762do : 6763 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 6764ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 6765if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 6766 cat >>confdefs.h <<_ACEOF 6767#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 6768_ACEOF 6769 6770fi 6771done 6772 6773 6774 6775 6776 6777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_bswap32" >&5 6778$as_echo_n "checking for __builtin_bswap32... " >&6; } 6779if ${ax_cv_have___builtin_bswap32+:} false; then : 6780 $as_echo_n "(cached) " >&6 6781else 6782 6783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6784/* end confdefs.h. */ 6785 6786int 6787main () 6788{ 6789 6790 __builtin_bswap32(0) 6791 6792 ; 6793 return 0; 6794} 6795_ACEOF 6796if ac_fn_c_try_link "$LINENO"; then : 6797 ax_cv_have___builtin_bswap32=yes 6798else 6799 ax_cv_have___builtin_bswap32=no 6800fi 6801rm -f core conftest.err conftest.$ac_objext \ 6802 conftest$ac_exeext conftest.$ac_ext 6803 6804fi 6805{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_have___builtin_bswap32" >&5 6806$as_echo "$ax_cv_have___builtin_bswap32" >&6; } 6807 6808 if test yes = $ax_cv_have___builtin_bswap32; then : 6809 6810cat >>confdefs.h <<_ACEOF 6811#define HAVE___BUILTIN_BSWAP32 1 6812_ACEOF 6813 6814fi 6815 6816 6817 6818 6819 6820ac_config_files="$ac_config_files Makefile" 6821 6822cat >confcache <<\_ACEOF 6823# This file is a shell script that caches the results of configure 6824# tests run on this system so they can be shared between configure 6825# scripts and configure runs, see configure's option --config-cache. 6826# It is not useful on other systems. If it contains results you don't 6827# want to keep, you may remove or edit it. 6828# 6829# config.status only pays attention to the cache file if you give it 6830# the --recheck option to rerun configure. 6831# 6832# `ac_cv_env_foo' variables (set or unset) will be overridden when 6833# loading this file, other *unset* `ac_cv_foo' will be assigned the 6834# following values. 6835 6836_ACEOF 6837 6838# The following way of writing the cache mishandles newlines in values, 6839# but we know of no workaround that is simple, portable, and efficient. 6840# So, we kill variables containing newlines. 6841# Ultrix sh set writes to stderr and can't be redirected directly, 6842# and sets the high bit in the cache file unless we assign to the vars. 6843( 6844 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 6845 eval ac_val=\$$ac_var 6846 case $ac_val in #( 6847 *${as_nl}*) 6848 case $ac_var in #( 6849 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 6850$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 6851 esac 6852 case $ac_var in #( 6853 _ | IFS | as_nl) ;; #( 6854 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 6855 *) { eval $ac_var=; unset $ac_var;} ;; 6856 esac ;; 6857 esac 6858 done 6859 6860 (set) 2>&1 | 6861 case $as_nl`(ac_space=' '; set) 2>&1` in #( 6862 *${as_nl}ac_space=\ *) 6863 # `set' does not quote correctly, so add quotes: double-quote 6864 # substitution turns \\\\ into \\, and sed turns \\ into \. 6865 sed -n \ 6866 "s/'/'\\\\''/g; 6867 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 6868 ;; #( 6869 *) 6870 # `set' quotes correctly as required by POSIX, so do not add quotes. 6871 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 6872 ;; 6873 esac | 6874 sort 6875) | 6876 sed ' 6877 /^ac_cv_env_/b end 6878 t clear 6879 :clear 6880 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 6881 t end 6882 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 6883 :end' >>confcache 6884if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 6885 if test -w "$cache_file"; then 6886 if test "x$cache_file" != "x/dev/null"; then 6887 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 6888$as_echo "$as_me: updating cache $cache_file" >&6;} 6889 if test ! -f "$cache_file" || test -h "$cache_file"; then 6890 cat confcache >"$cache_file" 6891 else 6892 case $cache_file in #( 6893 */* | ?:*) 6894 mv -f confcache "$cache_file"$$ && 6895 mv -f "$cache_file"$$ "$cache_file" ;; #( 6896 *) 6897 mv -f confcache "$cache_file" ;; 6898 esac 6899 fi 6900 fi 6901 else 6902 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 6903$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 6904 fi 6905fi 6906rm -f confcache 6907 6908test "x$prefix" = xNONE && prefix=$ac_default_prefix 6909# Let make expand exec_prefix. 6910test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 6911 6912DEFS=-DHAVE_CONFIG_H 6913 6914ac_libobjs= 6915ac_ltlibobjs= 6916U= 6917for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 6918 # 1. Remove the extension, and $U if already installed. 6919 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 6920 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 6921 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 6922 # will be set to the directory where LIBOBJS objects are built. 6923 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 6924 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 6925done 6926LIBOBJS=$ac_libobjs 6927 6928LTLIBOBJS=$ac_ltlibobjs 6929 6930 6931 6932: "${CONFIG_STATUS=./config.status}" 6933ac_write_fail=0 6934ac_clean_files_save=$ac_clean_files 6935ac_clean_files="$ac_clean_files $CONFIG_STATUS" 6936{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 6937$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 6938as_write_fail=0 6939cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 6940#! $SHELL 6941# Generated by $as_me. 6942# Run this file to recreate the current configuration. 6943# Compiler output produced by configure, useful for debugging 6944# configure, is in config.log if it exists. 6945 6946debug=false 6947ac_cs_recheck=false 6948ac_cs_silent=false 6949 6950SHELL=\${CONFIG_SHELL-$SHELL} 6951export SHELL 6952_ASEOF 6953cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 6954## -------------------- ## 6955## M4sh Initialization. ## 6956## -------------------- ## 6957 6958# Be more Bourne compatible 6959DUALCASE=1; export DUALCASE # for MKS sh 6960if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 6961 emulate sh 6962 NULLCMD=: 6963 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 6964 # is contrary to our usage. Disable this feature. 6965 alias -g '${1+"$@"}'='"$@"' 6966 setopt NO_GLOB_SUBST 6967else 6968 case `(set -o) 2>/dev/null` in #( 6969 *posix*) : 6970 set -o posix ;; #( 6971 *) : 6972 ;; 6973esac 6974fi 6975 6976 6977as_nl=' 6978' 6979export as_nl 6980# Printing a long string crashes Solaris 7 /usr/bin/printf. 6981as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 6982as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 6983as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 6984# Prefer a ksh shell builtin over an external printf program on Solaris, 6985# but without wasting forks for bash or zsh. 6986if test -z "$BASH_VERSION$ZSH_VERSION" \ 6987 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 6988 as_echo='print -r --' 6989 as_echo_n='print -rn --' 6990elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 6991 as_echo='printf %s\n' 6992 as_echo_n='printf %s' 6993else 6994 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 6995 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 6996 as_echo_n='/usr/ucb/echo -n' 6997 else 6998 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 6999 as_echo_n_body='eval 7000 arg=$1; 7001 case $arg in #( 7002 *"$as_nl"*) 7003 expr "X$arg" : "X\\(.*\\)$as_nl"; 7004 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 7005 esac; 7006 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 7007 ' 7008 export as_echo_n_body 7009 as_echo_n='sh -c $as_echo_n_body as_echo' 7010 fi 7011 export as_echo_body 7012 as_echo='sh -c $as_echo_body as_echo' 7013fi 7014 7015# The user is always right. 7016if test "${PATH_SEPARATOR+set}" != set; then 7017 PATH_SEPARATOR=: 7018 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 7019 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 7020 PATH_SEPARATOR=';' 7021 } 7022fi 7023 7024 7025# IFS 7026# We need space, tab and new line, in precisely that order. Quoting is 7027# there to prevent editors from complaining about space-tab. 7028# (If _AS_PATH_WALK were called with IFS unset, it would disable word 7029# splitting by setting IFS to empty value.) 7030IFS=" "" $as_nl" 7031 7032# Find who we are. Look in the path if we contain no directory separator. 7033as_myself= 7034case $0 in #(( 7035 *[\\/]* ) as_myself=$0 ;; 7036 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7037for as_dir in $PATH 7038do 7039 IFS=$as_save_IFS 7040 test -z "$as_dir" && as_dir=. 7041 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 7042 done 7043IFS=$as_save_IFS 7044 7045 ;; 7046esac 7047# We did not find ourselves, most probably we were run as `sh COMMAND' 7048# in which case we are not to be found in the path. 7049if test "x$as_myself" = x; then 7050 as_myself=$0 7051fi 7052if test ! -f "$as_myself"; then 7053 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 7054 exit 1 7055fi 7056 7057# Unset variables that we do not need and which cause bugs (e.g. in 7058# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 7059# suppresses any "Segmentation fault" message there. '((' could 7060# trigger a bug in pdksh 5.2.14. 7061for as_var in BASH_ENV ENV MAIL MAILPATH 7062do eval test x\${$as_var+set} = xset \ 7063 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 7064done 7065PS1='$ ' 7066PS2='> ' 7067PS4='+ ' 7068 7069# NLS nuisances. 7070LC_ALL=C 7071export LC_ALL 7072LANGUAGE=C 7073export LANGUAGE 7074 7075# CDPATH. 7076(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 7077 7078 7079# as_fn_error STATUS ERROR [LINENO LOG_FD] 7080# ---------------------------------------- 7081# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 7082# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 7083# script with STATUS, using 1 if that was 0. 7084as_fn_error () 7085{ 7086 as_status=$1; test $as_status -eq 0 && as_status=1 7087 if test "$4"; then 7088 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 7089 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 7090 fi 7091 $as_echo "$as_me: error: $2" >&2 7092 as_fn_exit $as_status 7093} # as_fn_error 7094 7095 7096# as_fn_set_status STATUS 7097# ----------------------- 7098# Set $? to STATUS, without forking. 7099as_fn_set_status () 7100{ 7101 return $1 7102} # as_fn_set_status 7103 7104# as_fn_exit STATUS 7105# ----------------- 7106# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 7107as_fn_exit () 7108{ 7109 set +e 7110 as_fn_set_status $1 7111 exit $1 7112} # as_fn_exit 7113 7114# as_fn_unset VAR 7115# --------------- 7116# Portably unset VAR. 7117as_fn_unset () 7118{ 7119 { eval $1=; unset $1;} 7120} 7121as_unset=as_fn_unset 7122# as_fn_append VAR VALUE 7123# ---------------------- 7124# Append the text in VALUE to the end of the definition contained in VAR. Take 7125# advantage of any shell optimizations that allow amortized linear growth over 7126# repeated appends, instead of the typical quadratic growth present in naive 7127# implementations. 7128if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 7129 eval 'as_fn_append () 7130 { 7131 eval $1+=\$2 7132 }' 7133else 7134 as_fn_append () 7135 { 7136 eval $1=\$$1\$2 7137 } 7138fi # as_fn_append 7139 7140# as_fn_arith ARG... 7141# ------------------ 7142# Perform arithmetic evaluation on the ARGs, and store the result in the 7143# global $as_val. Take advantage of shells that can avoid forks. The arguments 7144# must be portable across $(()) and expr. 7145if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 7146 eval 'as_fn_arith () 7147 { 7148 as_val=$(( $* )) 7149 }' 7150else 7151 as_fn_arith () 7152 { 7153 as_val=`expr "$@" || test $? -eq 1` 7154 } 7155fi # as_fn_arith 7156 7157 7158if expr a : '\(a\)' >/dev/null 2>&1 && 7159 test "X`expr 00001 : '.*\(...\)'`" = X001; then 7160 as_expr=expr 7161else 7162 as_expr=false 7163fi 7164 7165if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 7166 as_basename=basename 7167else 7168 as_basename=false 7169fi 7170 7171if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 7172 as_dirname=dirname 7173else 7174 as_dirname=false 7175fi 7176 7177as_me=`$as_basename -- "$0" || 7178$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 7179 X"$0" : 'X\(//\)$' \| \ 7180 X"$0" : 'X\(/\)' \| . 2>/dev/null || 7181$as_echo X/"$0" | 7182 sed '/^.*\/\([^/][^/]*\)\/*$/{ 7183 s//\1/ 7184 q 7185 } 7186 /^X\/\(\/\/\)$/{ 7187 s//\1/ 7188 q 7189 } 7190 /^X\/\(\/\).*/{ 7191 s//\1/ 7192 q 7193 } 7194 s/.*/./; q'` 7195 7196# Avoid depending upon Character Ranges. 7197as_cr_letters='abcdefghijklmnopqrstuvwxyz' 7198as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 7199as_cr_Letters=$as_cr_letters$as_cr_LETTERS 7200as_cr_digits='0123456789' 7201as_cr_alnum=$as_cr_Letters$as_cr_digits 7202 7203ECHO_C= ECHO_N= ECHO_T= 7204case `echo -n x` in #((((( 7205-n*) 7206 case `echo 'xy\c'` in 7207 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 7208 xy) ECHO_C='\c';; 7209 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 7210 ECHO_T=' ';; 7211 esac;; 7212*) 7213 ECHO_N='-n';; 7214esac 7215 7216rm -f conf$$ conf$$.exe conf$$.file 7217if test -d conf$$.dir; then 7218 rm -f conf$$.dir/conf$$.file 7219else 7220 rm -f conf$$.dir 7221 mkdir conf$$.dir 2>/dev/null 7222fi 7223if (echo >conf$$.file) 2>/dev/null; then 7224 if ln -s conf$$.file conf$$ 2>/dev/null; then 7225 as_ln_s='ln -s' 7226 # ... but there are two gotchas: 7227 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 7228 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 7229 # In both cases, we have to default to `cp -pR'. 7230 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 7231 as_ln_s='cp -pR' 7232 elif ln conf$$.file conf$$ 2>/dev/null; then 7233 as_ln_s=ln 7234 else 7235 as_ln_s='cp -pR' 7236 fi 7237else 7238 as_ln_s='cp -pR' 7239fi 7240rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 7241rmdir conf$$.dir 2>/dev/null 7242 7243 7244# as_fn_mkdir_p 7245# ------------- 7246# Create "$as_dir" as a directory, including parents if necessary. 7247as_fn_mkdir_p () 7248{ 7249 7250 case $as_dir in #( 7251 -*) as_dir=./$as_dir;; 7252 esac 7253 test -d "$as_dir" || eval $as_mkdir_p || { 7254 as_dirs= 7255 while :; do 7256 case $as_dir in #( 7257 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 7258 *) as_qdir=$as_dir;; 7259 esac 7260 as_dirs="'$as_qdir' $as_dirs" 7261 as_dir=`$as_dirname -- "$as_dir" || 7262$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 7263 X"$as_dir" : 'X\(//\)[^/]' \| \ 7264 X"$as_dir" : 'X\(//\)$' \| \ 7265 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 7266$as_echo X"$as_dir" | 7267 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 7268 s//\1/ 7269 q 7270 } 7271 /^X\(\/\/\)[^/].*/{ 7272 s//\1/ 7273 q 7274 } 7275 /^X\(\/\/\)$/{ 7276 s//\1/ 7277 q 7278 } 7279 /^X\(\/\).*/{ 7280 s//\1/ 7281 q 7282 } 7283 s/.*/./; q'` 7284 test -d "$as_dir" && break 7285 done 7286 test -z "$as_dirs" || eval "mkdir $as_dirs" 7287 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 7288 7289 7290} # as_fn_mkdir_p 7291if mkdir -p . 2>/dev/null; then 7292 as_mkdir_p='mkdir -p "$as_dir"' 7293else 7294 test -d ./-p && rmdir ./-p 7295 as_mkdir_p=false 7296fi 7297 7298 7299# as_fn_executable_p FILE 7300# ----------------------- 7301# Test if FILE is an executable regular file. 7302as_fn_executable_p () 7303{ 7304 test -f "$1" && test -x "$1" 7305} # as_fn_executable_p 7306as_test_x='test -x' 7307as_executable_p=as_fn_executable_p 7308 7309# Sed expression to map a string onto a valid CPP name. 7310as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 7311 7312# Sed expression to map a string onto a valid variable name. 7313as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 7314 7315 7316exec 6>&1 7317## ----------------------------------- ## 7318## Main body of $CONFIG_STATUS script. ## 7319## ----------------------------------- ## 7320_ASEOF 7321test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 7322 7323cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 7324# Save the log message, to keep $0 and so on meaningful, and to 7325# report actual input values of CONFIG_FILES etc. instead of their 7326# values after options handling. 7327ac_log=" 7328This file was extended by telegram-cli $as_me 1.0, which was 7329generated by GNU Autoconf 2.69. Invocation command line was 7330 7331 CONFIG_FILES = $CONFIG_FILES 7332 CONFIG_HEADERS = $CONFIG_HEADERS 7333 CONFIG_LINKS = $CONFIG_LINKS 7334 CONFIG_COMMANDS = $CONFIG_COMMANDS 7335 $ $0 $@ 7336 7337on `(hostname || uname -n) 2>/dev/null | sed 1q` 7338" 7339 7340_ACEOF 7341 7342case $ac_config_files in *" 7343"*) set x $ac_config_files; shift; ac_config_files=$*;; 7344esac 7345 7346case $ac_config_headers in *" 7347"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 7348esac 7349 7350 7351cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 7352# Files that config.status was made for. 7353config_files="$ac_config_files" 7354config_headers="$ac_config_headers" 7355 7356_ACEOF 7357 7358cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 7359ac_cs_usage="\ 7360\`$as_me' instantiates files and other configuration actions 7361from templates according to the current configuration. Unless the files 7362and actions are specified as TAGs, all are instantiated by default. 7363 7364Usage: $0 [OPTION]... [TAG]... 7365 7366 -h, --help print this help, then exit 7367 -V, --version print version number and configuration settings, then exit 7368 --config print configuration, then exit 7369 -q, --quiet, --silent 7370 do not print progress messages 7371 -d, --debug don't remove temporary files 7372 --recheck update $as_me by reconfiguring in the same conditions 7373 --file=FILE[:TEMPLATE] 7374 instantiate the configuration file FILE 7375 --header=FILE[:TEMPLATE] 7376 instantiate the configuration header FILE 7377 7378Configuration files: 7379$config_files 7380 7381Configuration headers: 7382$config_headers 7383 7384Report bugs to the package provider." 7385 7386_ACEOF 7387cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 7388ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 7389ac_cs_version="\\ 7390telegram-cli config.status 1.0 7391configured by $0, generated by GNU Autoconf 2.69, 7392 with options \\"\$ac_cs_config\\" 7393 7394Copyright (C) 2012 Free Software Foundation, Inc. 7395This config.status script is free software; the Free Software Foundation 7396gives unlimited permission to copy, distribute and modify it." 7397 7398ac_pwd='$ac_pwd' 7399srcdir='$srcdir' 7400test -n "\$AWK" || AWK=awk 7401_ACEOF 7402 7403cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 7404# The default lists apply if the user does not specify any file. 7405ac_need_defaults=: 7406while test $# != 0 7407do 7408 case $1 in 7409 --*=?*) 7410 ac_option=`expr "X$1" : 'X\([^=]*\)='` 7411 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 7412 ac_shift=: 7413 ;; 7414 --*=) 7415 ac_option=`expr "X$1" : 'X\([^=]*\)='` 7416 ac_optarg= 7417 ac_shift=: 7418 ;; 7419 *) 7420 ac_option=$1 7421 ac_optarg=$2 7422 ac_shift=shift 7423 ;; 7424 esac 7425 7426 case $ac_option in 7427 # Handling of the options. 7428 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 7429 ac_cs_recheck=: ;; 7430 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 7431 $as_echo "$ac_cs_version"; exit ;; 7432 --config | --confi | --conf | --con | --co | --c ) 7433 $as_echo "$ac_cs_config"; exit ;; 7434 --debug | --debu | --deb | --de | --d | -d ) 7435 debug=: ;; 7436 --file | --fil | --fi | --f ) 7437 $ac_shift 7438 case $ac_optarg in 7439 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 7440 '') as_fn_error $? "missing file argument" ;; 7441 esac 7442 as_fn_append CONFIG_FILES " '$ac_optarg'" 7443 ac_need_defaults=false;; 7444 --header | --heade | --head | --hea ) 7445 $ac_shift 7446 case $ac_optarg in 7447 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 7448 esac 7449 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 7450 ac_need_defaults=false;; 7451 --he | --h) 7452 # Conflict between --help and --header 7453 as_fn_error $? "ambiguous option: \`$1' 7454Try \`$0 --help' for more information.";; 7455 --help | --hel | -h ) 7456 $as_echo "$ac_cs_usage"; exit ;; 7457 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 7458 | -silent | --silent | --silen | --sile | --sil | --si | --s) 7459 ac_cs_silent=: ;; 7460 7461 # This is an error. 7462 -*) as_fn_error $? "unrecognized option: \`$1' 7463Try \`$0 --help' for more information." ;; 7464 7465 *) as_fn_append ac_config_targets " $1" 7466 ac_need_defaults=false ;; 7467 7468 esac 7469 shift 7470done 7471 7472ac_configure_extra_args= 7473 7474if $ac_cs_silent; then 7475 exec 6>/dev/null 7476 ac_configure_extra_args="$ac_configure_extra_args --silent" 7477fi 7478 7479_ACEOF 7480cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 7481if \$ac_cs_recheck; then 7482 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 7483 shift 7484 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 7485 CONFIG_SHELL='$SHELL' 7486 export CONFIG_SHELL 7487 exec "\$@" 7488fi 7489 7490_ACEOF 7491cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 7492exec 5>>config.log 7493{ 7494 echo 7495 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 7496## Running $as_me. ## 7497_ASBOX 7498 $as_echo "$ac_log" 7499} >&5 7500 7501_ACEOF 7502cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 7503_ACEOF 7504 7505cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 7506 7507# Handling of arguments. 7508for ac_config_target in $ac_config_targets 7509do 7510 case $ac_config_target in 7511 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 7512 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 7513 7514 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 7515 esac 7516done 7517 7518 7519# If the user did not use the arguments to specify the items to instantiate, 7520# then the envvar interface is used. Set only those that are not. 7521# We use the long form for the default assignment because of an extremely 7522# bizarre bug on SunOS 4.1.3. 7523if $ac_need_defaults; then 7524 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 7525 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 7526fi 7527 7528# Have a temporary directory for convenience. Make it in the build tree 7529# simply because there is no reason against having it here, and in addition, 7530# creating and moving files from /tmp can sometimes cause problems. 7531# Hook for its removal unless debugging. 7532# Note that there is a small window in which the directory will not be cleaned: 7533# after its creation but before its name has been assigned to `$tmp'. 7534$debug || 7535{ 7536 tmp= ac_tmp= 7537 trap 'exit_status=$? 7538 : "${ac_tmp:=$tmp}" 7539 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 7540' 0 7541 trap 'as_fn_exit 1' 1 2 13 15 7542} 7543# Create a (secure) tmp directory for tmp files. 7544 7545{ 7546 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 7547 test -d "$tmp" 7548} || 7549{ 7550 tmp=./conf$$-$RANDOM 7551 (umask 077 && mkdir "$tmp") 7552} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 7553ac_tmp=$tmp 7554 7555# Set up the scripts for CONFIG_FILES section. 7556# No need to generate them if there are no CONFIG_FILES. 7557# This happens for instance with `./config.status config.h'. 7558if test -n "$CONFIG_FILES"; then 7559 7560 7561ac_cr=`echo X | tr X '\015'` 7562# On cygwin, bash can eat \r inside `` if the user requested igncr. 7563# But we know of no other shell where ac_cr would be empty at this 7564# point, so we can use a bashism as a fallback. 7565if test "x$ac_cr" = x; then 7566 eval ac_cr=\$\'\\r\' 7567fi 7568ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 7569if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 7570 ac_cs_awk_cr='\\r' 7571else 7572 ac_cs_awk_cr=$ac_cr 7573fi 7574 7575echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 7576_ACEOF 7577 7578 7579{ 7580 echo "cat >conf$$subs.awk <<_ACEOF" && 7581 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 7582 echo "_ACEOF" 7583} >conf$$subs.sh || 7584 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 7585ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 7586ac_delim='%!_!# ' 7587for ac_last_try in false false false false false :; do 7588 . ./conf$$subs.sh || 7589 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 7590 7591 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 7592 if test $ac_delim_n = $ac_delim_num; then 7593 break 7594 elif $ac_last_try; then 7595 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 7596 else 7597 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 7598 fi 7599done 7600rm -f conf$$subs.sh 7601 7602cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 7603cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 7604_ACEOF 7605sed -n ' 7606h 7607s/^/S["/; s/!.*/"]=/ 7608p 7609g 7610s/^[^!]*!// 7611:repl 7612t repl 7613s/'"$ac_delim"'$// 7614t delim 7615:nl 7616h 7617s/\(.\{148\}\)..*/\1/ 7618t more1 7619s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 7620p 7621n 7622b repl 7623:more1 7624s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 7625p 7626g 7627s/.\{148\}// 7628t nl 7629:delim 7630h 7631s/\(.\{148\}\)..*/\1/ 7632t more2 7633s/["\\]/\\&/g; s/^/"/; s/$/"/ 7634p 7635b 7636:more2 7637s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 7638p 7639g 7640s/.\{148\}// 7641t delim 7642' <conf$$subs.awk | sed ' 7643/^[^""]/{ 7644 N 7645 s/\n// 7646} 7647' >>$CONFIG_STATUS || ac_write_fail=1 7648rm -f conf$$subs.awk 7649cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 7650_ACAWK 7651cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 7652 for (key in S) S_is_set[key] = 1 7653 FS = "" 7654 7655} 7656{ 7657 line = $ 0 7658 nfields = split(line, field, "@") 7659 substed = 0 7660 len = length(field[1]) 7661 for (i = 2; i < nfields; i++) { 7662 key = field[i] 7663 keylen = length(key) 7664 if (S_is_set[key]) { 7665 value = S[key] 7666 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 7667 len += length(value) + length(field[++i]) 7668 substed = 1 7669 } else 7670 len += 1 + keylen 7671 } 7672 7673 print line 7674} 7675 7676_ACAWK 7677_ACEOF 7678cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 7679if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 7680 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 7681else 7682 cat 7683fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 7684 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 7685_ACEOF 7686 7687# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 7688# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 7689# trailing colons and then remove the whole line if VPATH becomes empty 7690# (actually we leave an empty line to preserve line numbers). 7691if test "x$srcdir" = x.; then 7692 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 7693h 7694s/// 7695s/^/:/ 7696s/[ ]*$/:/ 7697s/:\$(srcdir):/:/g 7698s/:\${srcdir}:/:/g 7699s/:@srcdir@:/:/g 7700s/^:*// 7701s/:*$// 7702x 7703s/\(=[ ]*\).*/\1/ 7704G 7705s/\n// 7706s/^[^=]*=[ ]*$// 7707}' 7708fi 7709 7710cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 7711fi # test -n "$CONFIG_FILES" 7712 7713# Set up the scripts for CONFIG_HEADERS section. 7714# No need to generate them if there are no CONFIG_HEADERS. 7715# This happens for instance with `./config.status Makefile'. 7716if test -n "$CONFIG_HEADERS"; then 7717cat >"$ac_tmp/defines.awk" <<\_ACAWK || 7718BEGIN { 7719_ACEOF 7720 7721# Transform confdefs.h into an awk script `defines.awk', embedded as 7722# here-document in config.status, that substitutes the proper values into 7723# config.h.in to produce config.h. 7724 7725# Create a delimiter string that does not exist in confdefs.h, to ease 7726# handling of long lines. 7727ac_delim='%!_!# ' 7728for ac_last_try in false false :; do 7729 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 7730 if test -z "$ac_tt"; then 7731 break 7732 elif $ac_last_try; then 7733 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 7734 else 7735 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 7736 fi 7737done 7738 7739# For the awk script, D is an array of macro values keyed by name, 7740# likewise P contains macro parameters if any. Preserve backslash 7741# newline sequences. 7742 7743ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 7744sed -n ' 7745s/.\{148\}/&'"$ac_delim"'/g 7746t rset 7747:rset 7748s/^[ ]*#[ ]*define[ ][ ]*/ / 7749t def 7750d 7751:def 7752s/\\$// 7753t bsnl 7754s/["\\]/\\&/g 7755s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 7756D["\1"]=" \3"/p 7757s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 7758d 7759:bsnl 7760s/["\\]/\\&/g 7761s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 7762D["\1"]=" \3\\\\\\n"\\/p 7763t cont 7764s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 7765t cont 7766d 7767:cont 7768n 7769s/.\{148\}/&'"$ac_delim"'/g 7770t clear 7771:clear 7772s/\\$// 7773t bsnlc 7774s/["\\]/\\&/g; s/^/"/; s/$/"/p 7775d 7776:bsnlc 7777s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 7778b cont 7779' <confdefs.h | sed ' 7780s/'"$ac_delim"'/"\\\ 7781"/g' >>$CONFIG_STATUS || ac_write_fail=1 7782 7783cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 7784 for (key in D) D_is_set[key] = 1 7785 FS = "" 7786} 7787/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 7788 line = \$ 0 7789 split(line, arg, " ") 7790 if (arg[1] == "#") { 7791 defundef = arg[2] 7792 mac1 = arg[3] 7793 } else { 7794 defundef = substr(arg[1], 2) 7795 mac1 = arg[2] 7796 } 7797 split(mac1, mac2, "(") #) 7798 macro = mac2[1] 7799 prefix = substr(line, 1, index(line, defundef) - 1) 7800 if (D_is_set[macro]) { 7801 # Preserve the white space surrounding the "#". 7802 print prefix "define", macro P[macro] D[macro] 7803 next 7804 } else { 7805 # Replace #undef with comments. This is necessary, for example, 7806 # in the case of _POSIX_SOURCE, which is predefined and required 7807 # on some systems where configure will not decide to define it. 7808 if (defundef == "undef") { 7809 print "/*", prefix defundef, macro, "*/" 7810 next 7811 } 7812 } 7813} 7814{ print } 7815_ACAWK 7816_ACEOF 7817cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 7818 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 7819fi # test -n "$CONFIG_HEADERS" 7820 7821 7822eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS " 7823shift 7824for ac_tag 7825do 7826 case $ac_tag in 7827 :[FHLC]) ac_mode=$ac_tag; continue;; 7828 esac 7829 case $ac_mode$ac_tag in 7830 :[FHL]*:*);; 7831 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 7832 :[FH]-) ac_tag=-:-;; 7833 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 7834 esac 7835 ac_save_IFS=$IFS 7836 IFS=: 7837 set x $ac_tag 7838 IFS=$ac_save_IFS 7839 shift 7840 ac_file=$1 7841 shift 7842 7843 case $ac_mode in 7844 :L) ac_source=$1;; 7845 :[FH]) 7846 ac_file_inputs= 7847 for ac_f 7848 do 7849 case $ac_f in 7850 -) ac_f="$ac_tmp/stdin";; 7851 *) # Look for the file first in the build tree, then in the source tree 7852 # (if the path is not absolute). The absolute path cannot be DOS-style, 7853 # because $ac_f cannot contain `:'. 7854 test -f "$ac_f" || 7855 case $ac_f in 7856 [\\/$]*) false;; 7857 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 7858 esac || 7859 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 7860 esac 7861 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 7862 as_fn_append ac_file_inputs " '$ac_f'" 7863 done 7864 7865 # Let's still pretend it is `configure' which instantiates (i.e., don't 7866 # use $as_me), people would be surprised to read: 7867 # /* config.h. Generated by config.status. */ 7868 configure_input='Generated from '` 7869 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 7870 `' by configure.' 7871 if test x"$ac_file" != x-; then 7872 configure_input="$ac_file. $configure_input" 7873 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 7874$as_echo "$as_me: creating $ac_file" >&6;} 7875 fi 7876 # Neutralize special characters interpreted by sed in replacement strings. 7877 case $configure_input in #( 7878 *\&* | *\|* | *\\* ) 7879 ac_sed_conf_input=`$as_echo "$configure_input" | 7880 sed 's/[\\\\&|]/\\\\&/g'`;; #( 7881 *) ac_sed_conf_input=$configure_input;; 7882 esac 7883 7884 case $ac_tag in 7885 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 7886 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 7887 esac 7888 ;; 7889 esac 7890 7891 ac_dir=`$as_dirname -- "$ac_file" || 7892$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 7893 X"$ac_file" : 'X\(//\)[^/]' \| \ 7894 X"$ac_file" : 'X\(//\)$' \| \ 7895 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 7896$as_echo X"$ac_file" | 7897 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 7898 s//\1/ 7899 q 7900 } 7901 /^X\(\/\/\)[^/].*/{ 7902 s//\1/ 7903 q 7904 } 7905 /^X\(\/\/\)$/{ 7906 s//\1/ 7907 q 7908 } 7909 /^X\(\/\).*/{ 7910 s//\1/ 7911 q 7912 } 7913 s/.*/./; q'` 7914 as_dir="$ac_dir"; as_fn_mkdir_p 7915 ac_builddir=. 7916 7917case "$ac_dir" in 7918.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 7919*) 7920 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 7921 # A ".." for each directory in $ac_dir_suffix. 7922 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 7923 case $ac_top_builddir_sub in 7924 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 7925 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 7926 esac ;; 7927esac 7928ac_abs_top_builddir=$ac_pwd 7929ac_abs_builddir=$ac_pwd$ac_dir_suffix 7930# for backward compatibility: 7931ac_top_builddir=$ac_top_build_prefix 7932 7933case $srcdir in 7934 .) # We are building in place. 7935 ac_srcdir=. 7936 ac_top_srcdir=$ac_top_builddir_sub 7937 ac_abs_top_srcdir=$ac_pwd ;; 7938 [\\/]* | ?:[\\/]* ) # Absolute name. 7939 ac_srcdir=$srcdir$ac_dir_suffix; 7940 ac_top_srcdir=$srcdir 7941 ac_abs_top_srcdir=$srcdir ;; 7942 *) # Relative name. 7943 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 7944 ac_top_srcdir=$ac_top_build_prefix$srcdir 7945 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 7946esac 7947ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 7948 7949 7950 case $ac_mode in 7951 :F) 7952 # 7953 # CONFIG_FILE 7954 # 7955 7956_ACEOF 7957 7958cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 7959# If the template does not know about datarootdir, expand it. 7960# FIXME: This hack should be removed a few years after 2.60. 7961ac_datarootdir_hack=; ac_datarootdir_seen= 7962ac_sed_dataroot=' 7963/datarootdir/ { 7964 p 7965 q 7966} 7967/@datadir@/p 7968/@docdir@/p 7969/@infodir@/p 7970/@localedir@/p 7971/@mandir@/p' 7972case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 7973*datarootdir*) ac_datarootdir_seen=yes;; 7974*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 7975 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 7976$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 7977_ACEOF 7978cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 7979 ac_datarootdir_hack=' 7980 s&@datadir@&$datadir&g 7981 s&@docdir@&$docdir&g 7982 s&@infodir@&$infodir&g 7983 s&@localedir@&$localedir&g 7984 s&@mandir@&$mandir&g 7985 s&\\\${datarootdir}&$datarootdir&g' ;; 7986esac 7987_ACEOF 7988 7989# Neutralize VPATH when `$srcdir' = `.'. 7990# Shell code in configure.ac might set extrasub. 7991# FIXME: do we really want to maintain this feature? 7992cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 7993ac_sed_extra="$ac_vpsub 7994$extrasub 7995_ACEOF 7996cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 7997:t 7998/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 7999s|@configure_input@|$ac_sed_conf_input|;t t 8000s&@top_builddir@&$ac_top_builddir_sub&;t t 8001s&@top_build_prefix@&$ac_top_build_prefix&;t t 8002s&@srcdir@&$ac_srcdir&;t t 8003s&@abs_srcdir@&$ac_abs_srcdir&;t t 8004s&@top_srcdir@&$ac_top_srcdir&;t t 8005s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 8006s&@builddir@&$ac_builddir&;t t 8007s&@abs_builddir@&$ac_abs_builddir&;t t 8008s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 8009$ac_datarootdir_hack 8010" 8011eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 8012 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 8013 8014test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 8015 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 8016 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 8017 "$ac_tmp/out"`; test -z "$ac_out"; } && 8018 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 8019which seems to be undefined. Please make sure it is defined" >&5 8020$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 8021which seems to be undefined. Please make sure it is defined" >&2;} 8022 8023 rm -f "$ac_tmp/stdin" 8024 case $ac_file in 8025 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 8026 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 8027 esac \ 8028 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 8029 ;; 8030 :H) 8031 # 8032 # CONFIG_HEADER 8033 # 8034 if test x"$ac_file" != x-; then 8035 { 8036 $as_echo "/* $configure_input */" \ 8037 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 8038 } >"$ac_tmp/config.h" \ 8039 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 8040 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 8041 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 8042$as_echo "$as_me: $ac_file is unchanged" >&6;} 8043 else 8044 rm -f "$ac_file" 8045 mv "$ac_tmp/config.h" "$ac_file" \ 8046 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 8047 fi 8048 else 8049 $as_echo "/* $configure_input */" \ 8050 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 8051 || as_fn_error $? "could not create -" "$LINENO" 5 8052 fi 8053 ;; 8054 8055 8056 esac 8057 8058done # for ac_tag 8059 8060 8061as_fn_exit 0 8062_ACEOF 8063ac_clean_files=$ac_clean_files_save 8064 8065test $ac_write_fail = 0 || 8066 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 8067 8068 8069# configure is writing to config.log, and then calls config.status. 8070# config.status does its own redirection, appending to config.log. 8071# Unfortunately, on DOS this fails, as config.log is still kept open 8072# by configure, so config.status won't be able to write to it; its 8073# output is simply discarded. So we exec the FD to /dev/null, 8074# effectively closing config.log, so it can be properly (re)opened and 8075# appended to by config.status. When coming back to configure, we 8076# need to make the FD available again. 8077if test "$no_create" != yes; then 8078 ac_cs_success=: 8079 ac_config_status_args= 8080 test "$silent" = yes && 8081 ac_config_status_args="$ac_config_status_args --quiet" 8082 exec 5>/dev/null 8083 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 8084 exec 5>>config.log 8085 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 8086 # would make configure fail if this is the last instruction. 8087 $ac_cs_success || as_fn_exit 1 8088fi 8089if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 8090 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 8091$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 8092fi 8093 8094 8095