1 /* We do not use auto link feature when:
2 * - user asked not to use it (_STLP_DONT_USE_AUTO_LINK)
3 * - STLport is used only as a STL library (_STLP_NO_IOSTREAMS || _STLP_USE_NO_IOSTREAMS)
4 * - we are building a C translation unit, STLport is a C++ Standard library implementation
6 #if !defined (__BUILDING_STLPORT) && !defined (_STLP_DONT_USE_AUTO_LINK) && \
7 !defined (_STLP_NO_IOSTREAMS) && !defined (_STLP_USE_NO_IOSTREAMS) && \
10 # define _STLP_STRINGIZE(X) _STLP_STRINGIZE_AUX(X)
11 # define _STLP_STRINGIZE_AUX(X) #X
13 # if defined (_STLP_DEBUG)
14 # define _STLP_LIB_OPTIM_MODE "stld"
15 # elif defined (_DEBUG)
16 # define _STLP_LIB_OPTIM_MODE "d"
18 # define _STLP_LIB_OPTIM_MODE ""
21 # if defined (_STLP_LIB_NAME_MOTIF)
22 # define _STLP_LIB_MOTIF "_"_STLP_LIB_NAME_MOTIF
24 # define _STLP_LIB_MOTIF ""
27 # if defined (_STLP_USE_DYNAMIC_LIB)
28 # if defined (_STLP_USING_CROSS_NATIVE_RUNTIME_LIB)
29 # define _STLP_LIB_TYPE "_x"
31 # define _STLP_LIB_TYPE ""
34 # if defined (_STLP_USING_CROSS_NATIVE_RUNTIME_LIB)
35 # define _STLP_LIB_TYPE "_statix"
37 # define _STLP_LIB_TYPE "_static"
41 # define _STLP_VERSION_STR _STLP_STRINGIZE(_STLPORT_MAJOR)"."_STLP_STRINGIZE(_STLPORT_MINOR)
43 # define _STLP_STLPORT_LIB "stlport"_STLP_LIB_OPTIM_MODE""_STLP_LIB_TYPE""_STLP_LIB_MOTIF"."_STLP_VERSION_STR".lib"
45 # if defined (_STLP_VERBOSE_AUTO_LINK)
46 # pragma message ("STLport: Auto linking to "_STLP_STLPORT_LIB)
48 # pragma comment (lib, _STLP_STLPORT_LIB)
50 # undef _STLP_STLPORT_LIB
51 # undef _STLP_LIB_OPTIM_MODE
52 # undef _STLP_LIB_TYPE
53 # undef _STLP_STRINGIZE_AUX
54 # undef _STLP_STRINGIZE
56 #endif /* _STLP_DONT_USE_AUTO_LINK */