Download M4 Source Macro History Category Index

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.

Author

Ludovic Courtès <ludo@chbouib.org>

Last Modified

2004-09-07

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

License

Copyright © 2004 Ludovic Courtès <ludo@chbouib.org>

Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved.