autotools:configure.ac
Différences
Ci-dessous, les différences entre deux révisions de la page.
Les deux révisions précédentesRévision précédenteProchaine révision | Révision précédente | ||
autotools:configure.ac [2017/09/01 05:01] – Ajout de AH_BOTTOM root | autotools:configure.ac [2020/04/27 07:56] (Version actuelle) – Conversion de <note> vers <WRAP> root | ||
---|---|---|---|
Ligne 1: | Ligne 1: | ||
+ | [[https:// | ||
+ | |||
====Détection des options de compilation compatible avec CXX==== | ====Détection des options de compilation compatible avec CXX==== | ||
Défini le langage du compilateur : g++ donc le compilateur défini par '' | Défini le langage du compilateur : g++ donc le compilateur défini par '' | ||
Ligne 25: | Ligne 27: | ||
</ | </ | ||
- | <note> | + | <WRAP center round info 60%> |
+ | [[https:// | ||
+ | </WRAP> | ||
Activation automatique des '' | Activation automatique des '' | ||
Ligne 51: | Ligne 55: | ||
====Le cas clang==== | ====Le cas clang==== | ||
- | clang préfère avoir -fno-use-cxa-atexit pour éviter des erreurs de type " | + | clang préfère avoir '' |
Il suffit d' | Il suffit d' | ||
Ligne 70: | Ligne 74: | ||
<code autoconf> | <code autoconf> | ||
AH_BOTTOM([ | AH_BOTTOM([ | ||
- | … | + | #ifdef _MSC_VER |
+ | #define CHK _Check_return_ | ||
+ | |||
+ | #ifndef ssize_t | ||
+ | #include < | ||
+ | typedef SSIZE_T ssize_t; | ||
+ | #endif // !ssize_t | ||
+ | |||
+ | #else // !_MSC_VER | ||
+ | #define CHK __attribute__ ((__warn_unused_result__)) | ||
+ | #endif | ||
+ | |||
+ | #if defined(_MSC_VER) | ||
+ | #define SSCANF sscanf_s | ||
+ | #define DllExport __declspec(dllexport) | ||
+ | #else | ||
+ | #define SSCANF sscanf | ||
+ | #define DllExport | ||
+ | #endif | ||
]) | ]) | ||
+ | </ | ||
+ | |||
+ | ====Ajout d'une option --with-…==== | ||
+ | <code autoconf> | ||
+ | # Vérification de la possibilité de compiler la documentation via doxygen | ||
+ | AC_ARG_WITH(doc, | ||
+ | AS_HELP_STRING([--with-doc], | ||
+ | | ||
+ | if test " | ||
+ | withdoc=false | ||
+ | else | ||
+ | withdoc=true | ||
+ | fi | ||
+ | AC_MSG_RESULT([with-doc $withdoc]) | ||
+ | AC_CHECK_PROGS([DOXYGEN], | ||
+ | if test -z " | ||
+ | then AC_MSG_WARN([Doxygen introuvable - documentation non compilable]) | ||
+ | fi | ||
+ | AM_CONDITIONAL(HAVE_DOXYGEN, | ||
+ | if test x$withdoc = xtrue; then | ||
+ | AC_DEFINE(ENABLE_DOC, | ||
+ | fi | ||
</ | </ |
autotools/configure.ac.1504234860.txt.gz · Dernière modification : 2017/09/01 05:01 de root