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 # if defined (_STLP_USE_DYNAMIC_LIB)
42 # define _STLP_VERSION_STR "."_STLP_STRINGIZE(_STLPORT_MAJOR)"."_STLP_STRINGIZE(_STLPORT_MINOR)
44 # define _STLP_VERSION_STR ""
47 # define _STLP_STLPORT_LIB "stlport"_STLP_LIB_OPTIM_MODE""_STLP_LIB_TYPE""_STLP_LIB_MOTIF""_STLP_VERSION_STR".lib"
49 # if defined (_STLP_VERBOSE)
50 # pragma message ("STLport: Auto linking to "_STLP_STLPORT_LIB)
52 # pragma comment (lib, _STLP_STLPORT_LIB)
54 # undef _STLP_STLPORT_LIB
55 # undef _STLP_LIB_OPTIM_MODE
56 # undef _STLP_LIB_TYPE
57 # undef _STLP_STRINGIZE_AUX
58 # undef _STLP_STRINGIZE
60 #endif /* _STLP_DONT_USE_AUTO_LINK */