diff options
| author | Paul Eggert | 2014-02-23 23:12:42 -0800 |
|---|---|---|
| committer | Paul Eggert | 2014-02-23 23:12:42 -0800 |
| commit | f1037d0b8b95cf2afcbacededaae1627b3cb22f1 (patch) | |
| tree | 7c53e9d94a127a52be32386e81c8295a700eb63d /m4 | |
| parent | 8ee4c296ecae9e354bc743fad0fd7f5a5e49e1a2 (diff) | |
| download | emacs-f1037d0b8b95cf2afcbacededaae1627b3cb22f1.tar.gz emacs-f1037d0b8b95cf2afcbacededaae1627b3cb22f1.zip | |
Merge from gnulib.
2014-02-21 timer: fix uClibc detection of threading
2014-02-21 maintainer-makefiles: provide AC_PROG_SED for older autoconf
* texinfo.tex: Update from gnulib.
Diffstat (limited to 'm4')
| -rw-r--r-- | m4/gnulib-common.m4 | 56 | ||||
| -rw-r--r-- | m4/timer_time.m4 | 2 |
2 files changed, 57 insertions, 1 deletions
diff --git a/m4/gnulib-common.m4 b/m4/gnulib-common.m4 index 3b61b239beb..20ce40e7441 100644 --- a/m4/gnulib-common.m4 +++ b/m4/gnulib-common.m4 | |||
| @@ -379,3 +379,59 @@ AC_DEFUN([gl_CACHE_VAL_SILENT], | |||
| 379 | # AS_VAR_COPY was added in autoconf 2.63b | 379 | # AS_VAR_COPY was added in autoconf 2.63b |
| 380 | m4_define_default([AS_VAR_COPY], | 380 | m4_define_default([AS_VAR_COPY], |
| 381 | [AS_LITERAL_IF([$1[]$2], [$1=$$2], [eval $1=\$$2])]) | 381 | [AS_LITERAL_IF([$1[]$2], [$1=$$2], [eval $1=\$$2])]) |
| 382 | |||
| 383 | # AC_PROG_SED was added in autoconf 2.59b | ||
| 384 | m4_ifndef([AC_PROG_SED], | ||
| 385 | [AC_DEFUN([AC_PROG_SED], | ||
| 386 | [AC_CACHE_CHECK([for a sed that does not truncate output], ac_cv_path_SED, | ||
| 387 | [dnl ac_script should not contain more than 99 commands (for HP-UX sed), | ||
| 388 | dnl but more than about 7000 bytes, to catch a limit in Solaris 8 /usr/ucb/sed. | ||
| 389 | ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ | ||
| 390 | for ac_i in 1 2 3 4 5 6 7; do | ||
| 391 | ac_script="$ac_script$as_nl$ac_script" | ||
| 392 | done | ||
| 393 | echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed | ||
| 394 | AS_UNSET([ac_script]) | ||
| 395 | if test -z "$SED"; then | ||
| 396 | ac_path_SED_found=false | ||
| 397 | _AS_PATH_WALK([], [ | ||
| 398 | for ac_prog in sed gsed; do | ||
| 399 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
| 400 | ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" | ||
| 401 | AS_EXECUTABLE_P(["$ac_path_SED"]) || continue | ||
| 402 | case `"$ac_path_SED" --version 2>&1` in | ||
| 403 | *GNU*) ac_cv_path_SED=$ac_path_SED ac_path_SED_found=:;; | ||
| 404 | *) | ||
| 405 | ac_count=0 | ||
| 406 | _AS_ECHO_N([0123456789]) >conftest.in | ||
| 407 | while : | ||
| 408 | do | ||
| 409 | cat conftest.in conftest.in >conftest.tmp | ||
| 410 | mv conftest.tmp conftest.in | ||
| 411 | cp conftest.in conftest.nl | ||
| 412 | echo >> conftest.nl | ||
| 413 | "$ac_path_SED" -f conftest.sed <conftest.nl >conftest.out 2>/dev/null || break | ||
| 414 | diff conftest.out conftest.nl >/dev/null 2>&1 || break | ||
| 415 | ac_count=`expr $ac_count + 1` | ||
| 416 | if test $ac_count -gt ${ac_path_SED_max-0}; then | ||
| 417 | # Best so far, but keep looking for better | ||
| 418 | ac_cv_path_SED=$ac_path_SED | ||
| 419 | ac_path_SED_max=$ac_count | ||
| 420 | fi | ||
| 421 | test $ac_count -gt 10 && break | ||
| 422 | done | ||
| 423 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | ||
| 424 | esac | ||
| 425 | $ac_path_SED_found && break 3 | ||
| 426 | done | ||
| 427 | done]) | ||
| 428 | if test -z "$ac_cv_path_SED"; then | ||
| 429 | AC_ERROR([no acceptable sed could be found in \$PATH]) | ||
| 430 | fi | ||
| 431 | else | ||
| 432 | ac_cv_path_SED=$SED | ||
| 433 | fi | ||
| 434 | SED="$ac_cv_path_SED" | ||
| 435 | AC_SUBST([SED])dnl | ||
| 436 | rm -f conftest.sed | ||
| 437 | ])])]) | ||
diff --git a/m4/timer_time.m4 b/m4/timer_time.m4 index 6eceadd59a3..8e2c921cbef 100644 --- a/m4/timer_time.m4 +++ b/m4/timer_time.m4 | |||
| @@ -28,7 +28,7 @@ AC_DEFUN([gl_TIMER_TIME], | |||
| 28 | #include <features.h> | 28 | #include <features.h> |
| 29 | #ifdef __GNU_LIBRARY__ | 29 | #ifdef __GNU_LIBRARY__ |
| 30 | #if ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 2) || (__GLIBC__ > 2)) \ | 30 | #if ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 2) || (__GLIBC__ > 2)) \ |
| 31 | && !defined __UCLIBC__ | 31 | && !(__UCLIBC__ && __HAS_NO_THREADS__) |
| 32 | Thread emulation available | 32 | Thread emulation available |
| 33 | #endif | 33 | #endif |
| 34 | #endif | 34 | #endif |