*** config.h.ORIG	Wed Sep 19 21:22:26 2007
--- config.h	Wed Sep 19 21:23:42 2007
***************
*** 225,231 ****
  /* #define	MAXPATHLEN	4096 */
  /* below. */
  #if defined(UNIX)
! #if defined(LINUX)
  #define	MAXPATHLEN_HEADER	<sys/param.h>
  #endif
  #endif
--- 225,231 ----
  /* #define	MAXPATHLEN	4096 */
  /* below. */
  #if defined(UNIX)
! #if defined(LINUX) || defined(_AIX)
  #define	MAXPATHLEN_HEADER	<sys/param.h>
  #endif
  #endif
*** Makefile.ORIG	Wed Sep 19 21:16:24 2007
--- Makefile	Wed Sep 19 21:27:53 2007
***************
*** 10,35 ****
  #	DEBUG	to add debugging information, eg "make DEBUG=1 all"
  
  
! ifdef DEBUG
  CDEBUG = -g
  LDEBUG = -g
! else
! CDEBUG = -O2
  LDEBUG = -s
! endif
  
! ifndef VERSTR
  VERSTR = 0.0
! endif
  
  # programs
! CC = gcc
  CD = cd
  CP = cp
  GZIP = gzip
  INSTALL = install
  LN = ln
! LD = gcc
  MAKE = make
  MKDIR = mkdir
  MV = mv
--- 10,35 ----
  #	DEBUG	to add debugging information, eg "make DEBUG=1 all"
  
  
! #ifdef DEBUG
  CDEBUG = -g
  LDEBUG = -g
! #else
! CDEBUG = -O -DUNIX
  LDEBUG = -s
! #endif
  
! #ifndef VERSTR
  VERSTR = 0.0
! #endif
  
  # programs
! CC = cc
  CD = cd
  CP = cp
  GZIP = gzip
  INSTALL = install
  LN = ln
! LD = ld
  MAKE = make
  MKDIR = mkdir
  MV = mv
***************
*** 38,44 ****
  ZIP = zip
  
  # flags
! CFLAGS = $(DEFINES) $(TFLAG) $(CDEBUG) -c -Wall
  GZIPFLAGS = -9
  INSTALLBINFLAGS = -m 755
  INSTALLDATAFLAGS = -m 644
--- 38,44 ----
  ZIP = zip
  
  # flags
! CFLAGS = $(DEFINES) $(TFLAG) $(CDEBUG) -c
  GZIPFLAGS = -9
  INSTALLBINFLAGS = -m 755
  INSTALLDATAFLAGS = -m 644
***************
*** 49,59 ****
  ZIPSRCFLAGS = -r -9
  
  # directories
! BINDIR = /usr/bin
  DISTDIR = tofrodos-$(VERSTR)
  LIBDIR = lib
  LIBDISTDIR = $(DISTDIR)/lib
! MANDIR = /usr/man/man1
  
  # filenames
  FROMDOS = fromdos
--- 49,59 ----
  ZIPSRCFLAGS = -r -9
  
  # directories
! BINDIR = $(DESTDIR)/opt/freeware/bin
  DISTDIR = tofrodos-$(VERSTR)
  LIBDIR = lib
  LIBDISTDIR = $(DISTDIR)/lib
! MANDIR = $(DESTDIR)/opt/freeware/man/man1
  
  # filenames
  FROMDOS = fromdos
***************
*** 119,128 ****
--- 119,130 ----
  	$(RM) $(RMRECURFLAGS) $(DISTDIR)
  
  install: installman
+ 	$(MKDIR) -p $(BINDIR)
  	$(INSTALL) $(INSTALLBINFLAGS) $(FROMDOS) $(BINDIR)
  	($(CD) $(BINDIR) ; $(LN) $(LNFLAGS) fromdos todos)
  
  installman: $(FROMDOSMAN)
+ 	$(MKDIR) -p $(MANDIR)
  	$(INSTALL) $(INSTALLDATAFLAGS) $(FROMDOSMAN) $(MANDIR)
  	($(CD) $(MANDIR) ; $(LN) $(LNFLAGS) fromdos.1 todos.1)
  
