(re_search_2): Optimize regexp that starts with ^.
[emacs.git] / src / s / sol2-5.h
blobf4b45884e6caf88d6fa441965d1bf34d9416cd9a
1 /* Handle Solaris 2.5. */
3 #include "sol2-4.h"
5 /* -lgen is needed for the regex and regcmp functions
6 which are used by Motif. In the future we can try changing
7 regex.c to provide them in Emacs, but this is safer for now. */
8 #define LIB_MOTIF -lXm -lgen
10 #if 0 /* A recent patch in unexelf.c should eliminate the need for this. */
11 /* Don't use the shared libraries for -lXt and -lXaw,
12 to work around a linker bug in Solaris 2.5.
13 (This also affects the other libraries used specifically for
14 the X toolkit, which may not be necessary.) */
15 #define LIBXT_STATIC
17 #ifdef __GNUC__
18 #define STATIC_OPTION -Xlinker -Bstatic
19 #define DYNAMIC_OPTION -Xlinker -Bdynamic
20 #else
21 #define STATIC_OPTION -Bstatic
22 #define DYNAMIC_OPTION -Bdynamic
23 #endif
25 #endif /* 0 */