1dnl Process this file with autoconf to produce a configure script. 2AC_INIT(efax.c) 3 4dnl Get the operating system and version number... 5uname=`uname` 6 7AC_PROG_CC 8AC_PROG_INSTALL 9 10dnl Fix "prefix" variable if it hasn't been specified... 11if test "$prefix" = "NONE"; then 12 prefix="/" 13fi 14 15dnl Fix "exec_prefix" variable if it hasn't been specified... 16if test "$exec_prefix" = "NONE"; then 17 if test "$prefix" = "/"; then 18 exec_prefix="/usr" 19 else 20 exec_prefix="$prefix" 21 fi 22fi 23 24dnl Fix "mandir" variable... 25dnl if test "$mandir" = "\${prefix}/man" -a "$prefix" = "/"; then 26if test "$mandir" = "\${prefix}/man"; then 27 case "$uname" in 28 Darwin* | Linux* | *BSD* | AIX*) 29 # Darwin, MacOS X, Linux, *BSD, and AIX 30 mandir="/usr/share/man" 31 ;; 32 *) 33 # All others 34 mandir="/usr/man" 35 ;; 36 esac 37fi 38 39dnl Fix "mandir" variable... 40dnl if test "$mandir" = "\${prefix}/man" -a "$prefix" = "/"; then 41if test "$mandir" = "\${prefix}/man"; then 42 case "$uname" in 43 Darwin* | Linux* | *BSD* | AIX*) 44 # Darwin, MacOS X, Linux, *BSD, and AIX 45 mandir="/usr/share/man" 46 ;; 47 *) 48 # All others 49 mandir="/usr/man" 50 ;; 51 esac 52fi 53 54AC_OUTPUT(Makefile) 55