Remove config.{status,cache} before running configure
[tinc] / system.h
1 /*
2     system.h -- header for locale settings
3     Copyright (C) 1998,99,2000 Ivo Timmermans <itimmermans@bigfoot.com.com>
4
5     This program is free software; you can redistribute it and/or modify
6     it under the terms of the GNU General Public License as published by
7     the Free Software Foundation; either version 2 of the License, or
8     (at your option) any later version.
9
10     This program is distributed in the hope that it will be useful,
11     but WITHOUT ANY WARRANTY; without even the implied warranty of
12     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13     GNU General Public License for more details.
14
15     You should have received a copy of the GNU General Public License
16     along with this program; if not, write to the Free Software
17     Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
18 */
19
20 #ifndef __TINC_SYSTEM_H__
21 #define __TINC_SYSTEM_H__
22
23 /* Take care of NLS matters. -- from fileutils 4.0 */
24
25 #if HAVE_LOCALE_H
26 # include <locale.h>
27 #endif
28 #if !HAVE_SETLOCALE
29 # define setlocale(Category, Locale) /* empty */
30 #endif
31
32 #if ENABLE_NLS
33 # include <libintl.h>
34 # define _(Text) gettext (Text)
35 #else
36 # undef bindtextdomain
37 # define bindtextdomain(Domain, Directory) /* empty */
38 # undef textdomain
39 # define textdomain(Domain) /* empty */
40 # define _(Text) Text
41 #endif
42 #define N_(Text) Text
43
44 #ifndef HAVE_STRSIGNAL
45 # define strsignal(p) ""
46 #endif
47
48 /* Other functions */
49 #include <dropin.h>
50
51 #endif /* __TINC_SYSTEM_H__ */
52