X-Git-Url: https://git.libre-soc.org/?a=blobdiff_plain;f=gprof%2Fconfigure.in;h=142f4cd1b6d848987554b6c0d1bbff4813f522ab;hb=359cc68c808f70750a020c9bb76de330735a3202;hp=5f0f59f96e82585e75ae9b4934e5609e4f63df15;hpb=108a6f8eb48006339bcb9d35cc5ae631bbd36df3;p=binutils-gdb.git diff --git a/gprof/configure.in b/gprof/configure.in index 5f0f59f96e8..142f4cd1b6d 100644 --- a/gprof/configure.in +++ b/gprof/configure.in @@ -11,8 +11,6 @@ BFD_VERSION=`sed -n -e 's/^.._INIT_AUTOMAKE.*,[ ]*\([^ ]*\)[ ]*).*/\1/p' < ${ changequote([,])dnl AM_INIT_AUTOMAKE(gprof, ${BFD_VERSION}) -AM_PROG_LIBTOOL - dnl For simplicity, we use the BFD configuration file for most dnl things. However, we also need our own configuration file for dnl the automake PACKAGE and VERSION macros. We don't name it @@ -20,21 +18,28 @@ dnl config.h, to avoid any possible confusion with the bfd config.h. AC_CONFIG_HEADERS([gconfig.h:gconfig.in]) AC_PROG_CC +AC_GNU_SOURCE +AC_USE_SYSTEM_EXTENSIONS +ACX_LARGEFILE AC_PROG_INSTALL +LT_INIT + AC_CHECK_FUNCS(setmode) -ALL_LINGUAS="fr tr sv es id da pt_BR de vi rw ga" -CY_GNU_GETTEXT +ALL_LINGUAS="fr tr sv es id da pt_BR de vi rw ga ms fi nl bg" +ZW_GNU_GETTEXT_SISTER_DIR +AM_PO_SUBDIRS AM_MAINTAINER_MODE +AM_CONDITIONAL(GENINSRC_NEVER, false) AC_EXEEXT AC_CHECK_HEADERS(sys/gmon_out.h) AC_MSG_CHECKING(for a known getopt prototype in unistd.h) AC_CACHE_VAL(gprof_cv_decl_getopt_unistd_h, -[AC_TRY_COMPILE([#include ], [extern int getopt (int, char *const*, const char *);], +[AC_COMPILE_IFELSE([AC_LANG_PROGRAM([#include ], [extern int getopt (int, char *const*, const char *);])], gprof_cv_decl_getopt_unistd_h=yes, gprof_cv_decl_getopt_unistd_h=no)]) AC_MSG_RESULT($gprof_cv_decl_getopt_unistd_h) if test $gprof_cv_decl_getopt_unistd_h = yes; then @@ -42,13 +47,16 @@ if test $gprof_cv_decl_getopt_unistd_h = yes; then [Is the prototype for getopt in in the expected format?]) fi +# Some systems have fabs only in -lm, not in -lc. +AC_SEARCH_LIBS(fabs, m) + AM_BINUTILS_WARNINGS -dnl Required by html and install-html +dnl Required by html, pdf, install-pdf and install-html AC_SUBST(datarootdir) AC_SUBST(docdir) AC_SUBST(htmldir) +AC_SUBST(pdfdir) AC_CONFIG_FILES([Makefile po/Makefile.in:po/Make-in]) -AC_CONFIG_COMMANDS([default],[[sed -e '/POTFILES =/r po/POTFILES' po/Makefile.in > po/Makefile]],[[]]) AC_OUTPUT