[Macro Index Page] [Download M4 Source]

ac_libtoolize_cflags

Synopsis

AC_LIBTOOLIZE_CFLAGS(COMPILER-FLAGS-VAR)

Description

Change the contents of variable COMPILER-FLAGS-VAR so that they are Libtool friendly, ie. prefix each of them with `-Xcompiler' so that Libtool doesn't remove them.

Version

20040907

Author

Ludovic Courtès <ludo@chbouib.org>

M4 Source Code

AC_DEFUN([AC_LIBTOOLIZE_CFLAGS],
  [ac_libtoolize_ldflags_temp=""
   for i in $$1
   do
     ac_libtoolize_ldflags_temp="$ac_libtoolize_ldflags_temp -Xcompiler $i"
   done
   $1="$ac_libtoolize_ldflags_temp"])dnl

Copyright

GNU General Public License with this special exception.