Skip to content

Commit

Permalink
Various build fixes.
Browse files Browse the repository at this point in the history
--HG--
branch : HEAD
  • Loading branch information
Thomas Roessler committed Oct 14, 1998
1 parent 39b4d1d commit 5e37b1b
Show file tree
Hide file tree
Showing 8 changed files with 36 additions and 20 deletions.
4 changes: 4 additions & 0 deletions Makefile.am
Expand Up @@ -37,6 +37,10 @@ EXTRA_DIST = COPYRIGHT GPL OPS OPS.PGP TODO acconfig.h attach.h \

BUILT_SOURCES = mutt_dotlock.c keymap_defs.h

mutt_dotlock_SOURCES = mutt_dotlock.c
mutt_dotlock_LDADD = @SNPRINTFOBJS@
mutt_dotlock_DEPENDENCIES = @SNPRINTFOBJS@ @LIBOBJS@ $(INTLDEPS)

mutt_dotlock.c: dotlock.c
cp dotlock.c mutt_dotlock.c

Expand Down
11 changes: 6 additions & 5 deletions Makefile.in
Expand Up @@ -137,6 +137,10 @@ EXTRA_DIST = COPYRIGHT GPL OPS OPS.PGP TODO acconfig.h attach.h \

BUILT_SOURCES = mutt_dotlock.c keymap_defs.h

mutt_dotlock_SOURCES = mutt_dotlock.c
mutt_dotlock_LDADD = @SNPRINTFOBJS@
mutt_dotlock_DEPENDENCIES = @SNPRINTFOBJS@ @LIBOBJS@ $(INTLDEPS)

CLEANFILES = mutt_dotlock.c

LDADD = @LIBOBJS@ @INTLLIBS@
Expand All @@ -153,10 +157,7 @@ PROGRAMS = $(bin_PROGRAMS)
CPPFLAGS = @CPPFLAGS@
LDFLAGS = @LDFLAGS@
LIBS = @LIBS@
mutt_dotlock_SOURCES = mutt_dotlock.c
mutt_dotlock_OBJECTS = mutt_dotlock.o
mutt_dotlock_LDADD = $(LDADD)
mutt_dotlock_DEPENDENCIES = @LIBOBJS@
mutt_dotlock_LDFLAGS =
mutt_OBJECTS = addrbook.o alias.o attach.o browser.o buffy.o color.o \
commands.o complete.o compose.o copy.o curs_lib.o curs_main.o date.o \
Expand Down Expand Up @@ -196,8 +197,8 @@ DEP_FILES = .deps/addrbook.P .deps/alias.P .deps/attach.P \
.deps/sha1dgst.P .deps/signal.P .deps/snprintf.P .deps/socket.P \
.deps/sort.P .deps/status.P .deps/strcasecmp.P .deps/system.P \
.deps/thread.P
SOURCES = mutt_dotlock.c $(mutt_SOURCES) $(EXTRA_mutt_SOURCES)
OBJECTS = mutt_dotlock.o $(mutt_OBJECTS)
SOURCES = $(mutt_dotlock_SOURCES) $(mutt_SOURCES) $(EXTRA_mutt_SOURCES)
OBJECTS = $(mutt_dotlock_OBJECTS) $(mutt_OBJECTS)

all: all-recursive-am all-am

Expand Down
3 changes: 3 additions & 0 deletions config.h.in
Expand Up @@ -275,6 +275,9 @@
/* Define if you have the <argz.h> header file. */
#undef HAVE_ARGZ_H

/* Define if you have the <getopt.h> header file. */
#undef HAVE_GETOPT_H

/* Define if you have the <limits.h> header file. */
#undef HAVE_LIMITS_H

Expand Down
2 changes: 1 addition & 1 deletion configure
Expand Up @@ -1927,7 +1927,7 @@ EOF
fi


for ac_hdr in stdarg.h sys/ioctl.h sysexits.h
for ac_hdr in stdarg.h sys/ioctl.h sysexits.h getopt.h
do
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
Expand Down
2 changes: 1 addition & 1 deletion configure.in
Expand Up @@ -180,7 +180,7 @@ main ()

AC_HEADER_STDC

AC_CHECK_HEADERS(stdarg.h sys/ioctl.h sysexits.h)
AC_CHECK_HEADERS(stdarg.h sys/ioctl.h sysexits.h getopt.h)

AC_TYPE_SIGNAL

Expand Down
4 changes: 4 additions & 0 deletions dotlock.c
Expand Up @@ -29,6 +29,10 @@ static char rcsid[]="$Id$";
#include <stdlib.h>
#include <string.h>

#ifdef HAVE_GETOPT_H
#include <getopt.h>
#endif

#include <unistd.h>
#include <dirent.h>
#include <sys/file.h>
Expand Down
4 changes: 4 additions & 0 deletions main.c
Expand Up @@ -33,6 +33,10 @@ static char rcsid[]="$Id$";
#include <sys/stat.h>
#include <sys/utsname.h>

#ifdef HAVE_GETOPT_H
#include <getopt.h>
#endif

const char ReachingUs[] = N_("\
To contact the developers, please mail to <mutt-dev@mutt.org>.\n");

Expand Down
26 changes: 13 additions & 13 deletions po/mutt.pot
Expand Up @@ -6,7 +6,7 @@
msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"POT-Creation-Date: 1998-10-14 00:57+0200\n"
"POT-Creation-Date: 1998-10-14 11:11+0200\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
Expand Down Expand Up @@ -1788,19 +1788,19 @@ msgstr ""
msgid "Append messages to %s?"
msgstr ""

#: main.c:36
#: main.c:40
msgid "To contact the developers, please mail to <mutt-dev@mutt.org>.\n"
msgstr ""

#: main.c:39
#: main.c:43
msgid ""
"Copyright (C) 1996-8 Michael R. Elkins and others.\n"
"Mutt comes with ABSOLUTELY NO WARRANTY; for details type `mutt -vv'.\n"
"Mutt is free software, and you are welcome to redistribute it\n"
"under certain conditions; type `mutt -vv' for details.\n"
msgstr ""

#: main.c:45
#: main.c:49
msgid ""
"Copyright (C) 1996-8 Michael R. Elkins <me@cs.hmc.edu>\n"
"Copyright (C) 1997-8 Thomas Roessler <roessler@guug.de>\n"
Expand All @@ -1822,7 +1822,7 @@ msgid ""
" Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.\n"
msgstr ""

#: main.c:67
#: main.c:71
msgid ""
"\n"
"SHA1 implementation Copyright (C) 1995-7 Eric A. Young <eay@cryptsoft.com>\n"
Expand All @@ -1838,7 +1838,7 @@ msgid ""
" along with this program; if not, write to the program's developers.\n"
msgstr ""

#: main.c:93
#: main.c:97
msgid ""
"usage: mutt [ -nRzZ ] [ -e <cmd> ] [ -F <file> ] [ -m <type> ] [ -f <file> "
"]\n"
Expand Down Expand Up @@ -1869,33 +1869,33 @@ msgid ""
" -h\t\tthis help message"
msgstr ""

#: main.c:299
#: main.c:303
msgid "Error initializing terminal."
msgstr ""

#: main.c:395
#: main.c:399
#, c-format
msgid "Debugging at level %d.\n"
msgstr ""

#: main.c:397
#: main.c:401
msgid "DEBUG was not defined during compilation. Ignored.\n"
msgstr ""

#: main.c:535
#: main.c:539
msgid "No recipients specified.\n"
msgstr ""

#: main.c:608
#: main.c:612
#, c-format
msgid "%s: unable to attach file.\n"
msgstr ""

#: main.c:628
#: main.c:632
msgid "No mailbox with new mail."
msgstr ""

#: main.c:662
#: main.c:666
msgid "Mailbox is empty."
msgstr ""

Expand Down

0 comments on commit 5e37b1b

Please sign in to comment.