Lines Matching full:name

11 dnl AC_LIB_LINKFLAGS(name [, dependencies]) searches for libname and
13 dnl Sets and AC_SUBSTs the LIB${NAME} and LTLIB${NAME} variables and
15 dnl Sets and AC_SUBSTs the LIB${NAME}_PREFIX variable to nonempty if libname
16 dnl was found in ${LIB${NAME}_PREFIX}/$acl_libdirstem.
21 pushdef([Name],[m4_translit([$1],[./+-], [____])])
22 pushdef([NAME],[m4_translit([$1],[abcdefghijklmnopqrstuvwxyz./+-],
24 AC_CACHE_CHECK([how to link with lib[]$1], [ac_cv_lib[]Name[]_libs], [
26 ac_cv_lib[]Name[]_libs="$LIB[]NAME"
27 ac_cv_lib[]Name[]_ltlibs="$LTLIB[]NAME"
28 ac_cv_lib[]Name[]_cppflags="$INC[]NAME"
29 ac_cv_lib[]Name[]_prefix="$LIB[]NAME[]_PREFIX"
31 LIB[]NAME="$ac_cv_lib[]Name[]_libs"
32 LTLIB[]NAME="$ac_cv_lib[]Name[]_ltlibs"
33 INC[]NAME="$ac_cv_lib[]Name[]_cppflags"
34 LIB[]NAME[]_PREFIX="$ac_cv_lib[]Name[]_prefix"
35 AC_LIB_APPENDTOVAR([CPPFLAGS], [$INC]NAME)
36 AC_SUBST([LIB]NAME)
37 AC_SUBST([LTLIB]NAME)
38 AC_SUBST([LIB]NAME[_PREFIX])
39 dnl Also set HAVE_LIB[]NAME so that AC_LIB_HAVE_LINKFLAGS can reuse the
41 HAVE_LIB[]NAME=yes
42 popdef([NAME])
43 popdef([Name])
46 dnl AC_LIB_HAVE_LINKFLAGS(name, dependencies, includes, testcode, [missing-message])
51 dnl If found, it sets and AC_SUBSTs HAVE_LIB${NAME}=yes and the LIB${NAME}
52 dnl and LTLIB${NAME} variables and augments the CPPFLAGS variable, and
53 dnl #defines HAVE_LIB${NAME} to 1. Otherwise, it sets and AC_SUBSTs
54 dnl HAVE_LIB${NAME}=no and LIB${NAME} and LTLIB${NAME} to empty.
55 dnl Sets and AC_SUBSTs the LIB${NAME}_PREFIX variable to nonempty if libname
56 dnl was found in ${LIB${NAME}_PREFIX}/$acl_libdirstem.
61 pushdef([Name],[m4_translit([$1],[./+-], [____])])
62 pushdef([NAME],[m4_translit([$1],[abcdefghijklmnopqrstuvwxyz./+-],
65 dnl Search for lib[]Name and define LIB[]NAME, LTLIB[]NAME and INC[]NAME
69 dnl Add $INC[]NAME to CPPFLAGS before performing the following checks,
70 dnl so that if lib[]Name is installed, it will be used (unless
71 dnl disabled via --without-lib[]Name-prefix).
73 AC_LIB_APPENDTOVAR([CPPFLAGS], [$INC]NAME)
75 AC_CACHE_CHECK([for lib[]$1], [ac_cv_lib[]Name], [
77 dnl If $LIB[]NAME contains some -l options, add it to the end of LIBS,
84 case " $LIB[]NAME" in
85 *" -l"*) LIBS="$LIBS $LIB[]NAME" ;;
86 *) LIBS="$LIB[]NAME $LIBS" ;;
90 [ac_cv_lib[]Name=yes],
91 [ac_cv_lib[]Name='m4_if([$5], [], [no], [[$5]])'])
94 if test "$ac_cv_lib[]Name" = yes; then
95 HAVE_LIB[]NAME=yes
96 AC_DEFINE([HAVE_LIB]NAME, 1, [Define if you have the lib][$1 library.])
98 AC_MSG_RESULT([$LIB[]NAME])
100 HAVE_LIB[]NAME=no
101 dnl If $LIB[]NAME didn't lead to a usable library, we don't need
102 dnl $INC[]NAME either.
104 LIB[]NAME=
105 LTLIB[]NAME=
106 LIB[]NAME[]_PREFIX=
108 AC_SUBST([HAVE_LIB]NAME)
109 AC_SUBST([LIB]NAME)
110 AC_SUBST([LTLIB]NAME)
111 AC_SUBST([LIB]NAME[_PREFIX])
112 popdef([NAME])
113 popdef([Name])
155 dnl AC_LIB_FROMPACKAGE(name, package)
163 pushdef([NAME],[m4_translit([$1],[abcdefghijklmnopqrstuvwxyz./+-],
165 define([acl_frompackage_]NAME, [$2])
166 popdef([NAME])
176 dnl AC_LIB_LINKFLAGS_BODY(name [, dependencies]) searches for libname and
178 dnl Sets the LIB${NAME}, LTLIB${NAME} and INC${NAME} variables.
179 dnl Also, sets the LIB${NAME}_PREFIX variable to nonempty if libname was found
180 dnl in ${LIB${NAME}_PREFIX}/$acl_libdirstem.
184 pushdef([NAME],[m4_translit([$1],[abcdefghijklmnopqrstuvwxyz./+-],
186 pushdef([PACK],[m4_ifdef([acl_frompackage_]NAME, [acl_frompackage_]NAME, lib[$1])])
189 pushdef([PACKLIBS],[m4_ifdef([acl_frompackage_]NAME, [acl_libsinpackage_]PACKUP, lib[$1])])
220 LIB[]NAME=
221 LTLIB[]NAME=
222 INC[]NAME=
223 LIB[]NAME[]_PREFIX=
224 dnl HAVE_LIB${NAME} is an indicator that LIB${NAME}, LTLIB${NAME} have been
226 HAVE_LIB[]NAME=
234 for name in $names_this_round; do
237 if test "$n" = "$name"; then
243 names_already_handled="$names_already_handled $name"
246 …uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|…
251 test -z "$value" || LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$value"
253 test -z "$value" || LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }$value"
260 dnl Search the library lib$name in $additional_libdir and $LDFLAGS
266 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
317 for x in $LDFLAGS $LTLIB[]NAME; do
371 LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-L$found_dir -l$name"
380 LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so"
400 LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so"
405 LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so"
423 for x in $LDFLAGS $LIB[]NAME; do
431 LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-L$found_dir"
435 dnl "-L$found_dir -l$name" or "-L$found_dir $found_so"
437 LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so"
444 dnl "-L$found_dir -l$name" or "-L$found_dir $found_so"
446 LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-l$name"
454 LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_a"
458 LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-L$found_dir -l$name"
466 if test "$name" = '$1'; then
467 LIB[]NAME[]_PREFIX="$basedir"
473 if test "$name" = '$1'; then
474 LIB[]NAME[]_PREFIX="$basedir"
497 for x in $CPPFLAGS $INC[]NAME; do
507 INC[]NAME="${INC[]NAME}${INC[]NAME:+ }-I$additional_includedir"
549 for x in $LDFLAGS $LIB[]NAME; do
559 LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-L$additional_libdir"
563 for x in $LDFLAGS $LTLIB[]NAME; do
573 LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-L$additional_libdir"
619 dnl Most likely an immediate library name.
620 LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$dep"
621 LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }$dep"
631 LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-l$name"
632 LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-l$name"
652 LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$flag"
660 LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$flag"
668 LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-R$found_dir"
674 popdef([NAME])