diff options
author | Simon Josefsson <simon@josefsson.org> | 2009-04-03 14:58:32 +0200 |
---|---|---|
committer | Simon Josefsson <simon@josefsson.org> | 2009-04-03 14:58:32 +0200 |
commit | e54590c7c17384329e6ccd870344c1258929d098 (patch) | |
tree | 6ac48ad93c30061e81b625c5aace133e96769c25 /m4 | |
parent | 99ffed57d2f29e784f072302398f0268e6e7ba7d (diff) | |
download | gnutls-e54590c7c17384329e6ccd870344c1258929d098.tar.gz |
Use output-def test from gnulib.
Diffstat (limited to 'm4')
-rw-r--r-- | m4/output-def.m4 | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/m4/output-def.m4 b/m4/output-def.m4 deleted file mode 100644 index 3fb666282c..0000000000 --- a/m4/output-def.m4 +++ /dev/null @@ -1,28 +0,0 @@ -# output-def.m4 serial 1 -dnl Copyright (C) 2008 Free Software Foundation, Inc. -dnl This file is free software; the Free Software Foundation -dnl gives unlimited permission to copy and/or distribute it, -dnl with or without modifications, as long as this notice is preserved. - -dnl From Simon Josefsson - -# sj_OUTPUT_DEF() -# ------------- -# Check if linker supports -Wl,--output-def and define automake -# conditional HAVE_LD_OUTPUT_DEF if it is. -AC_DEFUN([sj_OUTPUT_DEF], -[ - AC_MSG_CHECKING([if gcc/ld supports -Wl,--output-def]) - if test "$enable_shared" = no; then - output_def=no - AC_MSG_RESULT([no need, since shared libraries are disabled]) - else - _gcc_ldflags_save=$LDFLAGS - LDFLAGS="-Wl,--output-def,foo.def" - AC_LINK_IFELSE(AC_LANG_PROGRAM([]),output_def=yes,output_def=no) - rm -f foo.def - AC_MSG_RESULT($output_def) - LDFLAGS="$_gcc_ldflags_save" - fi - AM_CONDITIONAL(HAVE_LD_OUTPUT_DEF, test "$output_def" = "yes") -]) |