Fix autoreconf warnings
Before adoption: this commit came in with the history the project adopted, so no landing records it.
authored by itchyny · committed by Nico Williams · parent 1915b68 · Browse files · 2 files·+34 added−20 removed
This commit
State
Before adoption: this commit came in with the history the project adopted, so no landing records it.
Diff stats
2 files+34 added−20 removed
- other:+34 added−20 removed
Provenance
- Commit
1cb9ba3- Tree
1ca9275- Author
itchyny <itchyny@cybozu.co.jp>- Committer
Nico Williams <nico@cryptonector.com>- Parent
1915b68
2 files changed+34 added−20 removed
modified:m4/ax_pthread.m4+22 added-7 removed
12 unmodified lines13 # flags, and the PTHREAD_CFLAGS output variable to any special C compiler14 # flags that are needed. (The user can also force certain compiler15 # flags/libs to be tested by setting these environment variables.)16 #17-# Also sets PTHREAD_CC to any special C compiler that is needed for18-# multi-threaded programs (defaults to the value of CC otherwise). (This19-# is necessary on AIX to use the special cc_r compiler alias.)17+# Also sets PTHREAD_CC and PTHREAD_CXX to any special C compiler that is18+# needed for multi-threaded programs (defaults to the value of CC19+# respectively CXX otherwise). (This is necessary on e.g. AIX to use the20+# special cc_r/CC_r compiler alias.)21 #22 # NOTE: You are assumed to not only compile your program with these flags,23 # but also to link with them as well. For example, you might link with24 # $PTHREAD_CC $CFLAGS $PTHREAD_CFLAGS $LDFLAGS ... $PTHREAD_LIBS $LIBS25+# $PTHREAD_CXX $CXXFLAGS $PTHREAD_CFLAGS $LDFLAGS ... $PTHREAD_LIBS $LIBS26 #27 # If you are only building threaded programs, you may wish to use these28 # variables in your default LIBS, CFLAGS, and CC:29 #30 # LIBS="$PTHREAD_LIBS $LIBS"31 # CFLAGS="$CFLAGS $PTHREAD_CFLAGS"32+# CXXFLAGS="$CXXFLAGS $PTHREAD_CFLAGS"33 # CC="$PTHREAD_CC"34+# CXX="$PTHREAD_CXX"35 #36 # In addition, if the PTHREAD_CREATE_JOINABLE thread-attribute constant37 # has a nonstandard name, this macro defines PTHREAD_CREATE_JOINABLE to38 # that name (e.g. PTHREAD_CREATE_UNDETACHED on AIX).47 unmodified lines86 # Macro released by the Autoconf Archive. When you make and distribute a87 # modified version of the Autoconf Macro, you may extend this special88 # exception to the GPL to apply to your modified version as well.89 86-#serial 2790+#serial 3191 92 AU_ALIAS([ACX_PTHREAD], [AX_PTHREAD])93 AC_DEFUN([AX_PTHREAD], [94 AC_REQUIRE([AC_CANONICAL_HOST])13 unmodified lines108 ax_pthread_save_CC="$CC"109 ax_pthread_save_CFLAGS="$CFLAGS"110 ax_pthread_save_LIBS="$LIBS"111 AS_IF([test "x$PTHREAD_CC" != "x"], [CC="$PTHREAD_CC"])112+ AS_IF([test "x$PTHREAD_CXX" != "x"], [CXX="$PTHREAD_CXX"])113 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"114 LIBS="$PTHREAD_LIBS $LIBS"115 AC_MSG_CHECKING([for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS])116 AC_LINK_IFELSE([AC_LANG_CALL([], [pthread_join])], [ax_pthread_ok=yes])273 unmodified lines390 # (.c -> exe), because the warning occurs only in the second391 # step392 ax_pthread_save_ac_link="$ac_link"393 ax_pthread_sed='s/conftest\.\$ac_ext/conftest.$ac_objext/g'389- ax_pthread_link_step=`$as_echo "$ac_link" | sed "$ax_pthread_sed"`394+ ax_pthread_link_step=`AS_ECHO(["$ac_link"]) | sed "$ax_pthread_sed"`395 ax_pthread_2step_ac_link="($ac_compile) && (echo ==== >&5) && ($ax_pthread_link_step)"396 ax_pthread_save_CFLAGS="$CFLAGS"397 for ax_pthread_try in '' -Qunused-arguments -Wno-unused-command-line-argument unknown; do398 AS_IF([test "x$ax_pthread_try" = "xunknown"], [break])87 unmodified lines486 [x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6],487 [#handle absolute path differently from PATH based program lookup488 AS_CASE(["x$CC"],489 [x/*],485- [AS_IF([AS_EXECUTABLE_P([${CC}_r])],[PTHREAD_CC="${CC}_r"])],486- [AC_CHECK_PROGS([PTHREAD_CC],[${CC}_r],[$CC])])])490+ [491+ AS_IF([AS_EXECUTABLE_P([${CC}_r])],[PTHREAD_CC="${CC}_r"])492+ AS_IF([test "x${CXX}" != "x"], [AS_IF([AS_EXECUTABLE_P([${CXX}_r])],[PTHREAD_CXX="${CXX}_r"])])493+ ],494+ [495+ AC_CHECK_PROGS([PTHREAD_CC],[${CC}_r],[$CC])496+ AS_IF([test "x${CXX}" != "x"], [AC_CHECK_PROGS([PTHREAD_CXX],[${CXX}_r],[$CXX])])497+ ]498+ )499+ ])500 ;;501 esac502 fi503 fi504 505 test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"506+test -n "$PTHREAD_CXX" || PTHREAD_CXX="$CXX"507 508 AC_SUBST([PTHREAD_LIBS])509 AC_SUBST([PTHREAD_CFLAGS])510 AC_SUBST([PTHREAD_CC])511+AC_SUBST([PTHREAD_CXX])512 513 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:514 if test "x$ax_pthread_ok" = "xyes"; then515 ifelse([$1],,[AC_DEFINE([HAVE_PTHREAD],[1],[Define if you have POSIX threads libraries and header files.])],[$1])7 unmodified linesmodified:configure.ac+12 added-13 removed
1 m4_define([jq_version], m4_esyscmd_s([scripts/version])))2 3-AC_INIT([jq], [jq_version], [https://github.com/jqlang/jq/issues],4- [jq], [https://jqlang.github.io/jq])3+AC_INIT([jq],[jq_version],[https://github.com/jqlang/jq/issues],[jq],[https://jqlang.github.io/jq])4 5 dnl Created autoconf implementation thompson@dtosolutions, 26NOV127-AC_PREREQ([2.64])6+AC_PREREQ([2.65])7 AC_CONFIG_AUX_DIR([config])8+AC_USE_SYSTEM_EXTENSIONS9 AM_INIT_AUTOMAKE([1.11.2 subdir-objects parallel-tests foreign -Wall])10 AM_SILENT_RULES([yes])11 AM_PROG_AR12 AM_MAINTAINER_MODE([enable])13 AC_PROG_CC14-AC_PROG_CC_STDC14+m4_version_prereq([2.70], [], [AC_PROG_CC_STDC])15 AC_PROG_CPP_WERROR16 AC_PROG_YACC17 AC_OBJEXT18 AC_EXEEXT19-AC_USE_SYSTEM_EXTENSIONS19 LT_INIT([shared static win32-dll])20 AM_PROG_CC_C_O21 22 AC_SYS_LARGEFILE # issue 216731 unmodified lines54 dnl Running tests with Valgrind is slow. It is faster to iterate on55 dnl code without Valgrind until tests pass, then enable Valgrind and56 dnl fix leaks.57 AC_ARG_ENABLE([valgrind],59- AC_HELP_STRING([--disable-valgrind], [do not run tests under Valgrind]))58+ AS_HELP_STRING([--disable-valgrind],[do not run tests under Valgrind]))59 60 dnl Running tests with Valgrind is slow; address sanitizer (ASAN) is61 dnl faster.62 AC_ARG_ENABLE([asan],64- AC_HELP_STRING([--enable-asan], [enable address sanitizer]))63+ AS_HELP_STRING([--enable-asan],[enable address sanitizer]))64 65 dnl Undefined Behavior Sanitizer66 AC_ARG_ENABLE([ubsan],68- AC_HELP_STRING([--enable-ubsan], [enable undefined behavior sanitizer]))67+ AS_HELP_STRING([--enable-ubsan],[enable undefined behavior sanitizer]))68 69 dnl Code coverage70 AC_ARG_ENABLE([gcov],72- AC_HELP_STRING([--enable-gcov], [enable gcov code coverage tool]))71+ AS_HELP_STRING([--enable-gcov],[enable gcov code coverage tool]))72 73 dnl Don't attempt to build docs if python deps aren't installed74 AC_ARG_ENABLE([docs],76- AC_HELP_STRING([--disable-docs], [don't build docs]), [], [enable_docs=yes])75+ AS_HELP_STRING([--disable-docs],[do not build docs]), [], [enable_docs=yes])76 77 dnl Don't attempt to build the error injection object (if there is no LD_PRELOAD support)78 AC_ARG_ENABLE([error-injection],80- AC_HELP_STRING([--enable-error-injection], [build and test with error injection]))79+ AS_HELP_STRING([--enable-error-injection],[build and test with error injection]))80 81 dnl Enable building all static82 AC_ARG_ENABLE([all-static],84- AC_HELP_STRING([--enable-all-static], [link jq with static libraries only]))83+ AS_HELP_STRING([--enable-all-static],[link jq with static libraries only]))84 85 dnl find pipenv86 AC_ARG_VAR([PIPENV], [pipenv command])87 AC_CHECK_PROGS([PIPENV], pipenv)20 unmodified lines108 ])109 110 dnl Disable decNumber support111 AC_ARG_ENABLE([decnum],113- AC_HELP_STRING([--disable-decnum], [disable decnum support]))112+ AS_HELP_STRING([--disable-decnum],[disable decnum support]))113 114 AS_IF([test "x$enable_decnum" != "xno"],[115 AC_DEFINE([USE_DECNUM],1)116 ])180 unmodified lines