Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
./configure次のようなものを使用してのコマンドライン引数を取得しようとしていますconfdefs.h:
./configure
confdefs.h
AC_DEFINE_UNQUOTED([CONFIGURATION], ["$@"], [Configuration commandline parameters])
しかし、それは評価されます
#define CONFIGURATION "darwin12.4.0"
私は何を間違っていますか?
これは正しい方法です:
AC_INIT([programname], 1.0, ...) configure_flags="$*" AC_DEFINE_UNQUOTED([CONFIG_FLAGS], ["$configure_flags"], [Flags passed to configure])