Lines Matching +refs:cc +refs:check +refs:function +refs:in +refs:lib

8 dnl "Software"), to deal in the Software without restriction, including
15 dnl in all copies or portions of the Software.
25 dnl Except as contained in this notice, the name(s) of the above copyright
26 dnl holders shall not be used in advertising or otherwise to promote the
27 dnl sale, use or other dealings in this Software without prior written
67 for presentlang in $ALL_LINGUAS; do
69 for desiredlang in ${LINGUAS-$ALL_LINGUAS}; do
72 # b. a variant of presentlang (because in this case,
74 # which are not translated in the desiredlang catalog).
75 case "$desiredlang" in
89 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
114 dnl Some systems have iconv in libc, some have it in libiconv (OSF/1 and
119 search for libiconv in DIR/include and DIR/lib], [
131 AC_DEFINE(HAVE_ICONV, 1, [Define if you have the iconv() function.])
199 dnl Check whether LC_MESSAGES is available in <locale.h>.
203 dnl be used in projects which are not available under the GNU General Public
209 dnl They are *not* in the public domain.
234 dnl be used in projects which are not available under the GNU General Public
240 dnl They are *not* in the public domain.
252 [case "[$]$1" in
258 for ac_dir in ifelse([$5], , $PATH, [$5]); do
298 dnl be used in projects which are not available under the GNU General Public
304 dnl They are *not* in the public domain.
315 dnl implementations (in libc or libintl) without the ngettext() function
323 dnl 1) GNU gettext, as included in the intl subdirectory, will be compiled
325 dnl Catalog format: GNU --> install in $(datadir)
326 dnl Catalog extension: .mo after installation, .gmo in source tree
327 dnl 2) GNU gettext has been found in the system's C library.
328 dnl Catalog format: GNU --> install in $(datadir)
329 dnl Catalog extension: .mo after installation, .gmo in source tree
335 dnl but we keep it in order not to force irrelevant filename changes on the
385 dnl Search for GNU msgfmt in the PATH.
391 dnl Search for GNU xgettext in the PATH.
420 dnl use it. But if this macro is used in GNU gettext, and GNU
421 dnl gettext is already preinstalled in libintl, we update this
422 dnl libintl. (Cf. the install rule in intl/Makefile.in.)
425 [Define if the GNU gettext() function is already present or preinstalled.])
430 dnl If iconv() is in a separate libiconv library, then anyone
461 dnl GNU gettext is not found in the C library.
503 [for ac_file in $CONFIG_FILES; do
506 case "$ac_file" in
510 # PO directories have a Makefile.in generated from Makefile.inn.
511 case "$ac_file" in
512 (*/[Mm]akefile.in)
517 ac_base="`basename $ac_file .in`"
522 case "$ac_given_srcdir" in
528 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
531 …dir/& \\\\," -e "\$s/\(.*\) \\\\/\1/" < "$ac_given_srcdir/$ac_dir/POTFILES.in" > "$ac_dir/POTFILES"
533 sed -e "/POTFILES =/r $ac_dir/POTFILES" "$ac_dir/$ac_base.in" > "$ac_dir/$ac_base"
539 dnl If this is used in GNU gettext we have to set BUILD_INCLUDED_LIBINTL
549 dnl bison is only needed for the maintainer (who touches plural.y). But in
551 dnl the rule in general Makefile. Now, some people carelessly touch the
560 dnl Found it, now check the version.
564 case "$ac_prog_version" in
580 dnl in configure.in.
581 for lang in $ALL_LINGUAS; do
647 dnl Put any preprocessor definitions that use quoted strings in $EXTRA_CPPFLAGS,
648 dnl to simplify use of $CPPFLAGS in compiler checks, etc., that are easily
657 for cf_add_cflags in $1
659 case "$cf_fix_cppflags" in
661 case "$cf_add_cflags" in
663 case "$cf_add_cflags" in
680 case "$CPPFLAGS" in
684 case "$cf_add_cflags" in
740 for cf_add_incdir in $1
749 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
809 for cf_add_libdir in $1
811 if test "$cf_add_libdir" = /usr/lib ; then
818 for cf_test_libdir in $LDFLAGS $LIBS ; do
837 dnl already exist in the list.
845 for cf_add_1lib in $1; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
847 for cf_add_1lib in $cf_add_0lib; do
848 for cf_add_2lib in $cf_add_libs; do
880 case "$1" in
894 dnl They can be either the common root of include- and lib-directories, or the
895 dnl lib-directory (to allow for things like lib64 directories).
903 for cf_searchpath in `echo "$1" | tr $PATH_SEPARATOR ' '`; do
911 if test -d "$cf_searchpath/lib" ; then
912 CF_ADD_LIBDIR($cf_searchpath/lib)
923 dnl Append to a search-list for a nonstandard header/lib-file
926 dnl $3 = the subdirectory, e.g., bin, include or lib
1021 case "$cf_cv_system_name" in
1036 for cf_ar_flags in -curvU -curv curv -crv crv -cqv cqv -rv rv
1039 # check if $ARFLAGS already contains this choice
1091 dnl Sets variables which can be used to substitute in makefiles:
1096 dnl SUB_MAKEFILE - list of makefiles in ./intl, ./po directories
1161 for cf_makefile in \
1162 $srcdir/intl/Makefile.in \
1163 $srcdir/intl/makefile.in
1166 …SUB_MAKEFILE="$SUB_MAKEFILE `echo \"${cf_makefile}\"|sed -e 's,^'$srcdir/',,' -e 's/\.in$//'`:${cf…
1182 dnl FIXME: we use this in lynx (the alternative is a spurious dependency upon
1203 AC_DEFINE(HAVE_GETTEXT,1,[Define to 1 if we have gettext function])
1205 AC_DEFINE(HAVE_GETTEXT,1,[Define to 1 if we have gettext function])
1220 dnl preprocessor in a consistent manner.
1222 dnl Caveat: this also disallows blanks in the pathname for the compiler, but
1228 : "${CC:=cc}"
1231 case "x$CFLAGS" in
1237 for cf_arg in $cf_flags
1248 case "$CC" in
1256 for cf_arg in $cf_flags
1258 case "x$cf_arg" in
1280 dnl Derive the system name, as a check for reusing the autoconf cache.
1285 dnl which is useful in cross-compiles.
1338 dnl Save the version in a cache variable - this is not entirely a good thing,
1388 case "$CC" in
1401 for cf_clang_opt in \
1403 -Wno-error=implicit-function-declaration
1429 dnl compilers bundled by more than one vendor in lieu of providing a standard C
1432 dnl string literals would be in readonly memory.
1471 case "$cf_cv_const_x_string" in
1511 dnl still check for the ncurses version number, for use in other macros.
1526 case "$host_os" in
1537 test -d /usr/5lib && \
1556 dnl the curses_exit() function is always present, simplifying linkage changes
1575 for cf_func in $1
1615 for cf_header in \
1648 case "$host_os" in
1672 case `arch 2>/dev/null` in
1678 CF_ADD_LIBDIR(/lib)
1682 CF_ADD_LIBDIR(/lib)
1689 if test -d /usr/5lib ; then
1690 CF_ADD_LIBDIR(/usr/5lib)
1713 for cf_term_lib in $cf_check_list otermcap termcap tinfo termlib unknown
1727 for cf_curs_lib in $cf_check_list xcurses jcurses pdcurses unknown
1766 dnl the low-level interface). This may not be true in old/broken implementations,
1767 dnl as well as in misconfigured systems (e.g., gcc configured for Solaris 2.4
1780 case "${cf_cv_ncurses_header:-curses.h}" in
1787 for cf_header in $cf_header_list
1798 case "$cf_cv_term_header" in
1802 for cf_header in ncurses/term.h ncursesw/term.h
1820 case "$cf_cv_term_header" in
1836 dnl may put it in a subdirectory (along with ncurses' other headers, of
1837 dnl course). Packages which put the headers in inconsistent locations are
1850 case "${cf_cv_ncurses_header:-curses.h}" in
1857 for cf_header in $cf_header_list
1869 case "$cf_cv_unctrl_header" in
1875 case "$cf_cv_unctrl_header" in
1895 for name in wacs_map _wacs_map __wacs_map _nc_wacs _wacs_char
1912 dnl Do a check to see if the WACS_xxx constants are defined compatibly with
1949 dnl defining an application-specific function that gives this functionality.
1951 dnl $1 = name of function to use if the feature is missing
1981 dnl ECHO_LD - symbol to prefix "cc -o" lines
1982 dnl RULE_CC - symbol to put before implicit "cc -c" lines (e.g., .c.o)
1983 dnl SHOW_CC - symbol to put before explicit "cc -c" lines
1984 dnl ECHO_CC - symbol to put before any "cc" line
2030 case "x$VERSION" in
2055 dnl *BSD ports which may have essential libraries in unusual places. But it
2057 dnl option in that case.
2095 dnl yes: always do this, e.g., to use in generated library-headers
2122 dnl library in the standard library location(s).
2127 dnl $5 = corresponding function-name
2139 AC_MSG_CHECKING(for $5 in -l$1)
2147 for cf_libdir in $cf_search
2149 AC_MSG_CHECKING(for -l$1 in $cf_libdir)
2170 dnl Find a library (specifically the linkage used in the code fragment),
2171 dnl searching for it if it is not already in the library path.
2190 # If the linkage is not already in the $CPPFLAGS/$LDFLAGS configuration, these
2202 cf_cv_library_path_$3=/usr/lib
2210 cf_cv_library_path_$3=/usr/lib
2217 CF_MSG_LOG([Searching for headers in [FIND_LINKAGE]($3,$6)])
2223 for cf_cv_header_path_$3 in $cf_search
2230 CF_VERBOSE(... found $3 headers in $cf_cv_header_path_$3)
2241 CF_MSG_LOG([Searching for $3 library in [FIND_LINKAGE]($3,$6)])
2250 CF_VERBOSE(... found $3 library in system)
2258 for cf_cv_library_path_$3 in $cf_search
2266 CF_VERBOSE(... found $3 library in $cf_cv_library_path_$3)
2301 dnl Warning flags do not belong in CFLAGS, CPPFLAGS, etc. Any of gcc's
2309 case [$]$1 in
2313 for cf_temp_scan in [$]$1
2315 case "x$cf_temp_scan" in
2347 dnl Note that we cannot simply grep for 'union wait' in the wait.h file,
2431 for cf_attribute in scanf printf unused noreturn
2437 case "$cf_attribute" in
2460 case "$cf_attribute" in
2515 dnl -Wconversion (useful in older versions of gcc, but not in gcc 2.7.x)
2528 dnl If $with_ext_const is "yes", add a check for -Wwrite-strings
2541 # remark #1419: external declaration in primary source file
2548 # remark #981: operands are evaluated in unspecified order
2554 for cf_opt in \
2580 for cf_opt in W Wall \
2581 Wbad-function-cast \
2598 case "$cf_opt" in
2600 case "$GCC_VERSION" in
2602 CF_VERBOSE(feature is broken in gcc $GCC_VERSION)
2607 case "$GCC_VERSION" in
2609 CF_VERBOSE(feature is broken in gcc $GCC_VERSION)
2654 # With glibc 2.19 (13 years after this check was begun), _DEFAULT_SOURCE
2743 EXTRA_OUTPUT="$EXTRA_OUTPUT headers-sh:$srcdir/headers-sh.in"
2760 for cf_header_path in $CPPFLAGS $CFLAGS
2762 case "$cf_header_path" in
2810 case "$host_os" in
2839 # Normally we would collect these definitions in the config.h,
2892 case "$cf_cv_system_name" in
2923 case "x$LD_RPATH_OPT" in
2939 dnl Try to obtain the linker's search-path, for use in scripts.
2967 # do this to bypass check
2968 cf_cv_ld_searchpath='$HOME/lib'
2969 cf_pathlist="/usr/local/lib /lib /usr/lib"
2976 if test -d /opt/SUNWspro/lib
2978 cf_pathlist="/opt/SUNWspro/lib /usr/ccs/lib /usr/lib"
2979 elif test -d /usr/ccs/lib
2981 cf_pathlist="/usr/ccs/lib /usr/lib"
2988 test -z "$cf_pathlist" && cf_pathlist="/usr/lib /lib"
2990 # Finally, check that this is only directories
2991 for cf_path in [$]0 $cf_pathlist
3000 test -z "$cf_cv_ld_searchpath" && cf_cv_ld_searchpath=/usr/lib
3019 for cf_library_path in $LDFLAGS $LIBS
3021 case "$cf_library_path" in
3023 cf_library_path=`echo ".$cf_library_path" |sed -e 's/^...//' -e 's,/lib$,,'`
3024 CF_ADD_SUBDIR_PATH($1,$2,lib,$cf_library_path,NONE)
3031 CF_SUBDIR_PATH($1,$2,lib)
3054 case "$cf_cv_system_name" in
3057 LIB_PREFIX='lib'
3065 (*) LIB_PREFIX='lib'
3081 case X$1 in
3087 case "$cf_cv_system_name" in
3089 $2='_g.lib'
3098 case "$cf_cv_system_name" in
3100 $2='_p.lib'
3109 case "$cf_cv_system_name" in
3116 $3='.dll.lib'
3127 case "$target" in
3145 case "$target" in
3147 $2='.lib'
3174 for cf_option in '-${MAKEFLAGS}' '${MFLAGS}'
3182 case "$cf_result" in
3184 cf_result="`${MAKE:-make} -k -f cf_makeflags.tmp CC=cc 2>/dev/null`"
3185 case "$cf_result" in
3272 dnl as well as include stdio.h to work around a misuse of varargs in wchar.h
3325 case "$target_alias" in
3349 dnl Write a debug message to config.log, along with the line number in the
3365 #undef HAVE_LIBUTF8_H /* in case we used CF_UTF8_LIB */
3390 dnl Tie together the configure-script macros for ncurses, preferring these in
3418 # At least one wrapper for c89/c99 (in Apple's xcode) has its own
3421 case "x${CC}@@${cf_pkg_libs}@${cf_pkg_cflags}" in
3520 dnl Look for the SVr4 curses clone 'ncurses' in the standard places, adjusting
3526 dnl the curses.h file would be in an ncurses subdirectory (e.g.,
3529 dnl version) of ncurses don't define either __NCURSES_H or NCURSES_VERSION in
3533 dnl is already in the include-path, don't even bother with this, since we cannot
3536 dnl The optional parameter gives the root name of the library, in case it is
3550 AC_CACHE_CHECK(for $cf_ncuhdr_root header in include-path, cf_cv_ncurses_h,[
3553 for cf_header in $cf_header_list
3563 # some applications need this, but should check for NCURSES_VERSION
3586 for cf_incdir in $cf_search
3589 for cf_header in \
3618 case "$cf_cv_ncurses_header" in
3624 case "$cf_cv_ncurses_header" in
3644 dnl The optional parameter gives the root name of the library, in case it is
3652 # ncurses is in a nonstandard location via $LIBS, and we really want
3661 case "$host_os" in
3686 for p in $cf_ncurses_LIBS ; do
3705 dnl Use this followup check to ensure that we link with pthreads if ncurses
3720 dnl Check for the version of ncurses, to aid in reporting bugs, etc.
3782 dnl glibc locale support has runtime extensions which might be implemented in
3818 case ".$with_cflags" in
3820 case .$CFLAGS in
3838 case $1 in
3856 dnl Sets variables which can be used to substitute in makefiles:
3858 dnl SUB_MAKEFILE - makefile in ./po directory (see CF_BUNDLED_INTL)
3879 SUB_MAKEFILE="$SUB_MAKEFILE po/$cf_makefile.in:$srcdir/po/$cf_makefile.inn"
3890 dnl as provided in autoconf 2.5x).
3894 case "$cf_cv_system_name" in
3916 case ".[$]$1" in
3925 case ".[$]$1" in
3997 case "$cf_pkg_config" in
4056 case .$cf_POSIX_C_SOURCE in
4106 dnl diverged from POSIX in 2002 by setting symbols which make all of the most
4107 dnl recent features visible in the system header files unless the application
4111 dnl This macro makes a special check for the symbols used for this, to avoid a
4136 dnl standard check for CC, plus followup sanity checks
4157 case "$cf_cv_system_name" in
4201 case "x$LINT" in
4250 dnl Restore flags saved in CF_SAVE_XTRA_FLAGS
4270 cf_rpath_list="/usr/lib /lib"
4282 # partly honor /usr/local/lib (or whatever). Sometimes this behavior
4283 # is intentional, e.g., installing gcc in /usr/bin and suppressing the
4287 for cf_rpath_src in $cf_rpath_oops
4289 for cf_rpath_dir in \
4294 if test -f "$cf_rpath_dir/lib/$cf_rpath_src"
4296 CF_VERBOSE(...adding -L$cf_rpath_dir/lib to LDFLAGS for $cf_rpath_src)
4297 LDFLAGS="$LDFLAGS -L$cf_rpath_dir/lib"
4331 for cf_rpath_src in [$]$1
4333 case "$cf_rpath_src" in
4336 # check if this refers to a directory which we will ignore
4340 for cf_rpath_item in $cf_rpath_list
4389 for cf_X_CFLAGS in $X_CFLAGS
4391 case "x$cf_X_CFLAGS" in
4410 dnl the build-tree, i.e., by making use of the libraries that are compiled in
4411 dnl $rel_builddir/lib We avoid compiling-in a $rel_builddir/lib path for the
4414 dnl libraries are compiled in ../../lib
4452 case "$withval" in
4478 case "$cf_cv_system_name" in
4489 for CC_SHARED_OPTS in -fPIC -fpic ''
4500 case "$cf_cv_system_name" in
4504 …MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -shared -Wl,-brtl -Wl,-blibpath:${RPATH_LIST}:/usr/lib -…
4508 …MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -G -Wl,-brtl -Wl,-blibpath:${RPATH_LIST}:/usr/lib -o [$]…
4525 IMPORT_LIB=\`echo "\[$]1" | sed -e 's/cyg/lib/' -e 's/[[0-9]]*\.dll[$]/.dll.a/'\`
4547 IMPORT_LIB=\`echo "\[$]1" | sed -e 's/msys-/lib/' -e 's/[[0-9]]*\.dll[$]/.dll.a/'\`
4591 # readonly to exploit a quirk in the memory manager.
4608 # tested with IRIX 5.2 and 'cc'.
4640 RM_SHARED_OPTS="$RM_SHARED_OPTS $rel_builddir/mk_shared_lib.sh *.dll.lib"
4644 IMPORT_LIB=\`echo "\[$]1" | sed -e 's/[[0-9]]*\.dll[$]/.dll.lib/'\`
4653 args=\$(echo \[$]* | sed -E "s#-l(\w*)#\1.dll.lib#g" | sed -E "s#-L(\w*)#-LIBPATH:\1#g")
4668 case "\[$]1" in
4697 for linkarg in \`echo '\[$]1' | sed -e 's/-Wl,//' -e 's/,/ /'\`; do
4701 *.lib)
4716 for lib in \[$]{libs[[*]]}; do
4717 ldopts+=("\[$]lib.dll.lib")
4720 for lib in \[$]{libs[[*]]}; do
4721 ldopts+=("\[$]lib.lib")
4816 # tested with OSF/1 V3.2 and 'cc'
4820 case "$host_os" in
4844 LINK_TESTS='Pwd=`pwd`;LD_RUN_PATH=`dirname $${Pwd}`/lib'
4867 for cf_shared_opts in -xcode=pic32 -xcode=pic13 -KPIC -Kpic -O
4880 # tested with UnixWare 7.1.0 (gcc 2.95.2 and cc)
4892 # This works if the last tokens in $MK_SHARED_LIB are the -o target.
4893 case "$cf_cv_shlib_version" in
4895 case "$MK_SHARED_LIB" in
4918 for cf_opt in $cf_try_cflags
4989 for cf_opts in "" "NEED_PTEM_H"
5007 /* This is a workaround for SCO: they neglected to define struct winsize in
5008 * termios.h -- it's only in termio.h and ptem.h
5049 case "$cf_cv_sizechange" in
5072 case "$CFLAGS $CPPFLAGS" in
5096 dnl Construct a search-list for a nonstandard header/lib-file
5099 dnl $3 = the subdirectory, e.g., bin, include or lib
5106 for cf_subdir_prefix in \
5121 dnl to terminfo database. Usually it is in the same include-path as curses.h,
5125 case "${cf_cv_ncurses_header}" in
5134 for cf_test in $cf_term_header "ncurses/term.h" "ncursesw/term.h"
5149 case "$cf_cv_term_header" in
5155 case "$cf_cv_term_header" in
5170 for cf_trim_lib in Xmu Xt X11
5172 case "$LIBS" in
5184 dnl available in that form.
5210 dnl If _XOPEN_SOURCE is not defined in the compile environment, check if we
5250 dnl use this, though it is deprecated in favor of the 'int' type in Posix.
5256 dnl use the macros for either union wait or int. So we do a check compile to
5349 dnl file is preferred to embedding the version numbers in various scripts.
5363 dnl patch-version is an integer in the form yyyymmdd, so ifdef's and
5395 case .$VERSION_PATCH in
5515 dnl packager has incremented the ABI past that used in the original package,
5527 case "$cf_cv_rel_version" in
5551 [ --with-curses-dir=DIR directory in which (n)curses is installed],
5562 CF_ADD_LIBDIR($cf_cv_curses_dir/lib)
5648 dnl macros from libtool.m4 which is in the aclocal directory of automake.
5739 case "$cf_cv_system_name" in
5747 case "$cf_cv_libtool_version" in
5795 case .$with_libtool_opts in
5822 case "x${with_man2html}" in
5828 case "x$cf_man2html" in
5854 case $cf_man2html in
5918 cat >conftest.in <<CF_EOF
5924 LC_ALL=C LC_CTYPE=C LANG=C LANGUAGE=C $NROFF_PATH -man conftest.in >conftest.out
5935 for cf_block in 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
5937 cat >>conftest.in <<CF_EOF
5952 LC_ALL=C LC_CTYPE=C LANG=C LANGUAGE=C $NROFF_PATH -man conftest.in >conftest.out
5963 case \${TYPE} in
6015 AC_ARG_WITH(curses-5lib,
6016 [ --with-curses-5lib compile/link with SunOS 5lib curses],
6021 case $cf_cv_screen in
6058 case ${cf_doalloc} in
6082 dnl packager has incremented the release-version past that used in the original package,
6109 dnl symbol needed to enable "const" in those header files. If that configure
6229 case "x$with_versioned_syms" in
6253 case "x$MK_SHARED_LIB" in
6339 # test for missing symbol in either Data or Text section
6357 dnl The getbegyx() check is needed for HPUX, which omits legacy macros such
6373 cchar_t check;
6374 int check2 = curs_set((int)sizeof(check));
6388 for cf_try_xopen_extension in _XOPEN_SOURCE_EXTENDED NCURSES_WIDECHAR
6395 cchar_t check;
6396 int check2 = curs_set((int)sizeof(check));
6413 case "$cf_cv_need_xopen_extension" in
6440 case "$host_os" in
6610 for cf_athena_pkg in \
6614 lib${cf_x_athena} \
6615 lib${cf_x_athena}-devel
6628 int check = XmuCompareISOLatin1("big", "small");
6629 (void)check;
6635 case "$cf_x_athena_lib" in
6675 for cf_path in default \
6678 /usr/lib/X11R5 \
6686 AC_MSG_CHECKING(for $cf_test in $cf_path)
6721 for cf_path in default \
6724 /usr/lib/X11R5 \
6727 for cf_lib in \
6732 for cf_libs in \
6741 test "$cf_path" != default && cf_libs="-L$cf_path/lib $cf_libs"
6743 AC_MSG_CHECKING(for $cf_test in $cf_libs)
6790 # in some cases has installed dummy files in the former, other cases replaced
6809 case "x$LIBS" in
6841 case "x$X_PRE_LIBS" in
6843 case "x$LIBS" in
6877 test program. You will have to check and add the proper libraries by hand
6902 case x$2 in
7032 case "x$cf_cv_shlib_version" in
7051 dnl LIB_PREFIX - "lib"