ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/Convert-UUlib/uulib/aclocal.m4
(Generate patch)

Comparing Convert-UUlib/uulib/aclocal.m4 (file contents):
Revision 1.1 by root, Mon Jun 11 19:48:57 2001 UTC vs.
Revision 1.1.2.5 by root, Sun Apr 18 19:55:46 2004 UTC

1dnl 1dnl
2dnl originally from ncftp 2.3.0 2dnl originally from ncftp 2.3.0
3dnl added wi_EXTRA_PDIR and wi_ANSI_C 3dnl added wi_EXTRA_PDIR and wi_ANSI_C
4dnl $Id: aclocal.m4,v 1.1 2001/06/11 19:48:57 root Exp $ 4dnl $Id: aclocal.m4,v 1.1.2.5 2004/04/18 19:55:46 root Exp $
5dnl 5dnl
6AC_DEFUN(wi_EXTRA_IDIR, [ 6AC_DEFUN(wi_EXTRA_IDIR, [
7incdir="$1" 7incdir="$1"
8if test -r $incdir ; then 8if test -r $incdir ; then
9 case "$CPPFLAGS" in 9 case "$CPPFLAGS" in
105 progdir="${exdir}/bin${subexdirr}" 105 progdir="${exdir}/bin${subexdirr}"
106 wi_EXTRA_PDIR($progdir) 106 wi_EXTRA_PDIR($progdir)
107 fi 107 fi
108done 108done
109done 109done
110])
111dnl
112dnl
113dnl
114AC_DEFUN(wi_HPUX_CFLAGS,
115[AC_MSG_CHECKING(if HP-UX ansi C compiler flags are needed)
116AC_REQUIRE([AC_PROG_CC])
117os=`uname -s | tr '[A-Z]' '[a-z]'`
118ac_cv_hpux_flags=no
119if test "$os" = hp-ux ; then
120 if test "$ac_cv_prog_gcc" = yes ; then
121 if test "$CFLAGS" != "" ; then
122 # Shouldn't be in there.
123 CFLAGS=`echo "$CFLAGS" | sed 's/-Aa//g'`
124 fi
125 else
126 # If you're not using gcc, then you better have a cc/c89
127 # that is usable. If you have the barebones compiler, it
128 # won't work. The good compiler uses -Aa for the ANSI
129 # compatible stuff.
130 x=`echo $CFLAGS | grep 'Aa' 2>/dev/null`
131 if test "$x" = "" ; then
132 CFLAGS="$CFLAGS -Aa"
133 fi
134 ac_cv_hpux_flags=yes
135 fi
136 # Also add _HPUX_SOURCE to get the extended namespace.
137 x=`echo $CFLAGS | grep '_HPUX_SOURCE' 2>/dev/null`
138 if test "$x" = "" ; then
139 CFLAGS="$CFLAGS -D_HPUX_SOURCE"
140 fi
141fi
142AC_MSG_RESULT($ac_cv_hpux_flags)
143])
144dnl
145dnl
146dnl
147AC_DEFUN(wi_CFLAGS, [AC_REQUIRE([AC_PROG_CC])
148wi_HPUX_CFLAGS
149 if test "$CFLAGS" = "" ; then
150 CFLAGS="-O"
151 elif test "$ac_cv_prog_gcc" = "yes" ; then
152 case "$CFLAGS" in
153 *"-g -O"*)
154 #echo "using -g as default gcc CFLAGS" 1>&6
155 CFLAGS=`echo $CFLAGS | sed 's/-g\ -O/-O/'`
156 ;;
157 *"-O -g"*)
158 # Leave the -g, but remove all -O options.
159 #echo "using -g as default gcc CFLAGS" 1>&6
160 CFLAGS=`echo $CFLAGS | sed 's/-O\ -g/-O/'`
161 ;;
162 esac
163 fi
164]) 110])
165dnl 111dnl
166dnl 112dnl
167dnl 113dnl
168AC_DEFUN(wi_PROTOTYPES, [ 114AC_DEFUN(wi_PROTOTYPES, [

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines