Skip to content

Commit 6bf85ac

Browse files
matrixisened-deily
authored andcommitted
[2.7] Docs: fix some wrong words (GH-6987) (GH-10315)
1 parent 421b41b commit 6bf85ac

File tree

3 files changed

+74
-18
lines changed

3 files changed

+74
-18
lines changed

aclocal.m4

Lines changed: 71 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@
1212
# PARTICULAR PURPOSE.
1313

1414
m4_ifndef([AC_CONFIG_MACRO_DIRS], [m4_defun([_AM_CONFIG_MACRO_DIRS], [])m4_defun([AC_CONFIG_MACRO_DIRS], [_AM_CONFIG_MACRO_DIRS($@)])])
15-
dnl pkg.m4 - Macros to locate and utilise pkg-config. -*- Autoconf -*-
16-
dnl serial 11 (pkg-config-0.29.1)
17-
dnl
15+
# pkg.m4 - Macros to locate and utilise pkg-config. -*- Autoconf -*-
16+
# serial 11 (pkg-config-0.29.1)
17+
1818
dnl Copyright © 2004 Scott James Remnant <[email protected]>.
1919
dnl Copyright © 2012-2015 Dan Nicholson <[email protected]>
2020
dnl
@@ -288,3 +288,71 @@ AS_VAR_COPY([$1], [pkg_cv_][$1])
288288
AS_VAR_IF([$1], [""], [$5], [$4])dnl
289289
])dnl PKG_CHECK_VAR
290290

291+
dnl PKG_WITH_MODULES(VARIABLE-PREFIX, MODULES,
292+
dnl [ACTION-IF-FOUND],[ACTION-IF-NOT-FOUND],
293+
dnl [DESCRIPTION], [DEFAULT])
294+
dnl ------------------------------------------
295+
dnl
296+
dnl Prepare a "--with-" configure option using the lowercase
297+
dnl [VARIABLE-PREFIX] name, merging the behaviour of AC_ARG_WITH and
298+
dnl PKG_CHECK_MODULES in a single macro.
299+
AC_DEFUN([PKG_WITH_MODULES],
300+
[
301+
m4_pushdef([with_arg], m4_tolower([$1]))
302+
303+
m4_pushdef([description],
304+
[m4_default([$5], [build with ]with_arg[ support])])
305+
306+
m4_pushdef([def_arg], [m4_default([$6], [auto])])
307+
m4_pushdef([def_action_if_found], [AS_TR_SH([with_]with_arg)=yes])
308+
m4_pushdef([def_action_if_not_found], [AS_TR_SH([with_]with_arg)=no])
309+
310+
m4_case(def_arg,
311+
[yes],[m4_pushdef([with_without], [--without-]with_arg)],
312+
[m4_pushdef([with_without],[--with-]with_arg)])
313+
314+
AC_ARG_WITH(with_arg,
315+
AS_HELP_STRING(with_without, description[ @<:@default=]def_arg[@:>@]),,
316+
[AS_TR_SH([with_]with_arg)=def_arg])
317+
318+
AS_CASE([$AS_TR_SH([with_]with_arg)],
319+
[yes],[PKG_CHECK_MODULES([$1],[$2],$3,$4)],
320+
[auto],[PKG_CHECK_MODULES([$1],[$2],
321+
[m4_n([def_action_if_found]) $3],
322+
[m4_n([def_action_if_not_found]) $4])])
323+
324+
m4_popdef([with_arg])
325+
m4_popdef([description])
326+
m4_popdef([def_arg])
327+
328+
])dnl PKG_WITH_MODULES
329+
330+
dnl PKG_HAVE_WITH_MODULES(VARIABLE-PREFIX, MODULES,
331+
dnl [DESCRIPTION], [DEFAULT])
332+
dnl -----------------------------------------------
333+
dnl
334+
dnl Convenience macro to trigger AM_CONDITIONAL after PKG_WITH_MODULES
335+
dnl check._[VARIABLE-PREFIX] is exported as make variable.
336+
AC_DEFUN([PKG_HAVE_WITH_MODULES],
337+
[
338+
PKG_WITH_MODULES([$1],[$2],,,[$3],[$4])
339+
340+
AM_CONDITIONAL([HAVE_][$1],
341+
[test "$AS_TR_SH([with_]m4_tolower([$1]))" = "yes"])
342+
])dnl PKG_HAVE_WITH_MODULES
343+
344+
dnl PKG_HAVE_DEFINE_WITH_MODULES(VARIABLE-PREFIX, MODULES,
345+
dnl [DESCRIPTION], [DEFAULT])
346+
dnl ------------------------------------------------------
347+
dnl
348+
dnl Convenience macro to run AM_CONDITIONAL and AC_DEFINE after
349+
dnl PKG_WITH_MODULES check. HAVE_[VARIABLE-PREFIX] is exported as make
350+
dnl and preprocessor variable.
351+
AC_DEFUN([PKG_HAVE_DEFINE_WITH_MODULES],
352+
[
353+
PKG_HAVE_WITH_MODULES([$1],[$2],[$3],[$4])
354+
355+
AS_IF([test "$AS_TR_SH([with_]m4_tolower([$1]))" = "yes"],
356+
[AC_DEFINE([HAVE_][$1], 1, [Enable ]m4_tolower([$1])[ support])])
357+
])dnl PKG_HAVE_DEFINE_WITH_MODULES
358+

configure

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -769,7 +769,6 @@ infodir
769769
docdir
770770
oldincludedir
771771
includedir
772-
runstatedir
773772
localstatedir
774773
sharedstatedir
775774
sysconfdir
@@ -881,7 +880,6 @@ datadir='${datarootdir}'
881880
sysconfdir='${prefix}/etc'
882881
sharedstatedir='${prefix}/com'
883882
localstatedir='${prefix}/var'
884-
runstatedir='${localstatedir}/run'
885883
includedir='${prefix}/include'
886884
oldincludedir='/usr/include'
887885
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
@@ -1134,15 +1132,6 @@ do
11341132
| -silent | --silent | --silen | --sile | --sil)
11351133
silent=yes ;;
11361134

1137-
-runstatedir | --runstatedir | --runstatedi | --runstated \
1138-
| --runstate | --runstat | --runsta | --runst | --runs \
1139-
| --run | --ru | --r)
1140-
ac_prev=runstatedir ;;
1141-
-runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1142-
| --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1143-
| --run=* | --ru=* | --r=*)
1144-
runstatedir=$ac_optarg ;;
1145-
11461135
-sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
11471136
ac_prev=sbindir ;;
11481137
-sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
@@ -1280,7 +1269,7 @@ fi
12801269
for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
12811270
datadir sysconfdir sharedstatedir localstatedir includedir \
12821271
oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1283-
libdir localedir mandir runstatedir
1272+
libdir localedir mandir
12841273
do
12851274
eval ac_val=\$$ac_var
12861275
# Remove trailing slashes.
@@ -1433,7 +1422,6 @@ Fine tuning of the installation directories:
14331422
--sysconfdir=DIR read-only single-machine data [PREFIX/etc]
14341423
--sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
14351424
--localstatedir=DIR modifiable single-machine data [PREFIX/var]
1436-
--runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
14371425
--libdir=DIR object code libraries [EPREFIX/lib]
14381426
--includedir=DIR C header files [PREFIX/include]
14391427
--oldincludedir=DIR C header files for non-gcc [/usr/include]
@@ -3052,7 +3040,7 @@ if test "${enable_universalsdk+set}" = set; then :
30523040
enableval=$enable_universalsdk;
30533041
case $enableval in
30543042
yes)
3055-
# Locate the best usable SDK, see Mac/README.txt for more
3043+
# Locate the best usable SDK, see Mac/README for more
30563044
# information
30573045
enableval="`/usr/bin/xcodebuild -version -sdk macosx Path 2>/dev/null`"
30583046
if ! ( echo $enableval | grep -E '\.sdk' 1>/dev/null )

configure.ac

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ AC_ARG_ENABLE(universalsdk,
117117
[
118118
case $enableval in
119119
yes)
120-
# Locate the best usable SDK, see Mac/README.txt for more
120+
# Locate the best usable SDK, see Mac/README for more
121121
# information
122122
enableval="`/usr/bin/xcodebuild -version -sdk macosx Path 2>/dev/null`"
123123
if ! ( echo $enableval | grep -E '\.sdk' 1>/dev/null )

0 commit comments

Comments
 (0)