Did you bother to look in /usr/local/directadmin/custombuild/dovecot-2.2.16/config.log to see what your error was?
[root@re3 ~]# cat /usr/local/directadmin/custombuild/dovecot-2.2.16/config.log
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
It was created by Dovecot configure 2.2.16, which was
generated by GNU Autoconf 2.69. Invocation command line was
$ ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var
## --------- ##
## Platform. ##
## --------- ##
hostname = re3.hostinglotus.net
uname -m = x86_64
uname -r = 2.6.18-404.el5
uname -s = Linux
uname -v = #1 SMP Tue Apr 7 12:42:54 EDT 2015
/usr/bin/uname -p = unknown
/bin/uname -X = unknown
/bin/arch = x86_64
/usr/bin/arch -k = unknown
/usr/convex/getsysinfo = unknown
/usr/bin/hostinfo = unknown
/bin/machine = unknown
/usr/bin/oslevel = unknown
/bin/universe = unknown
PATH: /usr/kerberos/sbin
PATH: /usr/kerberos/bin
PATH: /usr/local/sbin
PATH: /usr/bin
PATH: /bin
PATH: /usr/sbin
PATH: /sbin
PATH: /usr/local/bin
PATH: /root/bin
## ----------- ##
## Core tests. ##
## ----------- ##
configure:2845: checking for a BSD-compatible install
configure:2913: result: /usr/bin/install -c
configure:2924: checking whether build environment is sane
configure:2979: result: yes
configure:3130: checking for a thread-safe mkdir -p
configure:3169: result: /bin/mkdir -p
configure:3176: checking for gawk
configure:3192: found /usr/bin/gawk
configure:3203: result: gawk
configure:3214: checking whether make sets $(MAKE)
configure:3236: result: yes
configure:3265: checking whether make supports nested variables
configure:3282: result: yes
configure:3410: checking whether to enable maintainer-specific portions of Makefiles
configure:3419: result: no
configure:3486: checking for pkg-config
configure:3504: found /usr/bin/pkg-config
configure:3516: result: /usr/bin/pkg-config
configure:3541: checking pkg-config is at least version 0.9.0
configure:3544: result: yes
configure:4367: checking for style of include used by make
configure:4395: result: GNU
configure:4466: checking for gcc
configure:4482: found /usr/bin/gcc
configure:4493: result: gcc
configure:4722: checking for C compiler version
configure:4731: gcc --version >&5
gcc (GCC) 4.1.2 20080704 (Red Hat 4.1.2-55)
Copyright (C) 2006 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
configure:4742: $? = 0
configure:4731: gcc -v >&5
Using built-in specs.
Target: x86_64-redhat-linux
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --enable-shared --enable-threads=posix --enable-checking=release --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-libgcj-multifile --enable-languages=c,c++,objc,obj-c++,java,fortran,ada --enable-java-awt=gtk --disable-dssi --disable-plugin --with-java-home=/usr/lib/jvm/java-1.4.2-gcj-1.4.2.0/jre --with-cpu=generic --host=x86_64-redhat-linux
Thread model: posix
gcc version 4.1.2 20080704 (Red Hat 4.1.2-55)
configure:4742: $? = 0
configure:4731: gcc -V >&5
gcc: '-V' option must have argument
configure:4742: $? = 1
configure:4731: gcc -qversion >&5
gcc: unrecognized option '-qversion'
gcc: no input files
configure:4742: $? = 1
configure:4762: checking whether the C compiler works
configure:4784: gcc conftest.c >&5
configure:4788: $? = 0
configure:4836: result: yes
configure:4839: checking for C compiler default output file name
configure:4841: result: a.out
configure:4847: checking for suffix of executables
configure:4854: gcc -o conftest conftest.c >&5
configure:4858: $? = 0
configure:4880: result:
configure:4902: checking whether we are cross compiling
configure:4910: gcc -o conftest conftest.c >&5
In file included from /usr/include/stdio.h:36,
from conftest.c:12:
/usr/include/bits/types.h:137: error: expected '=', ',', ';', 'asm' or '__attribute__' before '__dev_t'
/usr/include/bits/types.h:138: error: expected '=', ',', ';', 'asm' or '__attribute__' before '__uid_t'
/usr/include/bits/types.h:139: error: expected '=', ',', ';', 'asm' or '__attribute__' before '__gid_t'
/usr/include/bits/types.h:140: error: expected '=', ',', ';', 'asm' or '__attribute__' before '__ino_t'
/usr/include/bits/types.h:141: error: expected '=', ',', ';', 'asm' or '__attribute__' before '__ino64_t'
/usr/include/bits/types.h:142: error: expected '=', ',', ';', 'asm' or '__attribute__' before '__mode_t'
/usr/include/bits/types.h:143: error: expected '=', ',', ';', 'asm' or '__attribute__' before '__nlink_t'
/usr/include/bits/types.h:144: error: expected '=', ',', ';', 'asm' or '__attribute__' before '__off_t'
/usr/include/bits/types.h:145: error: expected '=', ',', ';', 'asm' or '__attribute__' before '__off64_t'
/usr/include/bits/types.h:146: error: expected '=', ',', ';', 'asm' or '__attribute__' before '__pid_t'
/usr/include/bits/types.h:147: error: expected '=', ',', ';', 'asm' or '__attribute__' before '__fsid_t'
/usr/include/bits/types.h:148: error: expected '=', ',', ';', 'asm' or '__attribute__' before '__clock_t'
/usr/include/bits/types.h:149: error: expected '=', ',', ';', 'asm' or '__attribute__' before '__rlim_t'
/usr/include/bits/types.h:150: error: expected '=', ',', ';', 'asm' or '__attribute__' before '__rlim64_t'
/usr/include/bits/types.h:151: error: expected '=', ',', ';', 'asm' or '__attribute__' before '__id_t'
/usr/include/bits/types.h:152: error: expected '=', ',', ';', 'asm' or '__attribute__' before '__time_t'
/usr/include/bits/types.h:153: error: expected '=', ',', ';', 'asm' or '__attribute__' before '__useconds_t'
/usr/include/bits/types.h:154: error: expected '=', ',', ';', 'asm' or '__attribute__' before '__suseconds_t'
/usr/include/bits/types.h:156: error: expected '=', ',', ';', 'asm' or '__attribute__' before '__daddr_t'
/usr/include/bits/types.h:157: error: expected '=', ',', ';', 'asm' or '__attribute__' before '__swblk_t'
/usr/include/bits/types.h:158: error: expected '=', ',', ';', 'asm' or '__attribute__' before '__key_t'
/usr/include/bits/types.h:161: error: expected '=', ',', ';', 'asm' or '__attribute__' before '__clockid_t'
/usr/include/bits/types.h:164: error: expected '=', ',', ';', 'asm' or '__attribute__' before '__timer_t'
/usr/include/bits/types.h:167: error: expected '=', ',', ';', 'asm' or '__attribute__' before '__blksize_t'
/usr/include/bits/types.h:172: error: expected '=', ',', ';', 'asm' or '__attribute__' before '__blkcnt_t'
/usr/include/bits/types.h:173: error: expected '=', ',', ';', 'asm' or '__attribute__' before '__blkcnt64_t'
/usr/include/bits/types.h:176: error: expected '=', ',', ';', 'asm' or '__attribute__' before '__fsblkcnt_t'
/usr/include/bits/types.h:177: error: expected '=', ',', ';', 'asm' or '__attribute__' before '__fsblkcnt64_t'
/usr/include/bits/types.h:180: error: expected '=', ',', ';', 'asm' or '__attribute__' before '__fsfilcnt_t'
/usr/include/bits/types.h:181: error: expected '=', ',', ';', 'asm' or '__attribute__' before '__fsfilcnt64_t'
/usr/include/bits/types.h:183: error: expected '=', ',', ';', 'asm' or '__attribute__' before '__ssize_t'
/usr/include/bits/types.h:187: error: expected '=', ',', ';', 'asm' or '__attribute__' before '__loff_t'
In file included from /usr/include/libio.h:32,
from /usr/include/stdio.h:72,
from conftest.c:12:
/usr/include/_G_config.h:28: error: expected specifier-qualifier-list before '__off_t'
/usr/include/_G_config.h:33: error: expected specifier-qualifier-list before '__off64_t'
In file included from /usr/include/stdio.h:72,
from conftest.c:12:
/usr/include/libio.h:297: error: expected specifier-qualifier-list before '__off_t'
/usr/include/libio.h:361: error: expected '=', ',', ';', 'asm' or '__attribute__' before '__io_read_fn'
/usr/include/libio.h:369: error: expected '=', ',', ';', 'asm' or '__attribute__' before '__io_write_fn'
/usr/include/libio.h:378: error: expected declaration specifiers or '...' before '__off64_t'
/usr/include/libio.h:485: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_IO_padn'
/usr/include/libio.h:488: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_IO_seekoff'
/usr/include/libio.h:489: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_IO_seekpos'
In file included from conftest.c:12:
/usr/include/stdio.h:674: error: expected declaration specifiers or '...' before '__off_t'
/usr/include/stdio.h:679: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'ftello'
configure:4914: $? = 1
configure:4921: ./conftest
./configure: line 4923: ./conftest: No such file or directory
configure:4925: $? = 127
configure:4932: error: in `/usr/local/directadmin/custombuild/dovecot-2.2.16':
configure:4934: error: cannot run C compiled programs.
If you meant to cross compile, use `--host'.
See `config.log' for more details
## ---------------- ##
## Cache variables. ##
## ---------------- ##
ac_cv_env_CCC_set=
ac_cv_env_CCC_value=
ac_cv_env_CC_set=
ac_cv_env_CC_value=
ac_cv_env_CFLAGS_set=
ac_cv_env_CFLAGS_value=
ac_cv_env_CLUCENE_CFLAGS_set=
ac_cv_env_CLUCENE_CFLAGS_value=
ac_cv_env_CLUCENE_LIBS_set=
ac_cv_env_CLUCENE_LIBS_value=
ac_cv_env_CPPFLAGS_set=
ac_cv_env_CPPFLAGS_value=
ac_cv_env_CPP_set=
ac_cv_env_CPP_value=
ac_cv_env_CXXCPP_set=
ac_cv_env_CXXCPP_value=
ac_cv_env_CXXFLAGS_set=
ac_cv_env_CXXFLAGS_value=
ac_cv_env_CXX_set=
ac_cv_env_CXX_value=
ac_cv_env_LDFLAGS_set=
ac_cv_env_LDFLAGS_value=
ac_cv_env_LIBS_set=
ac_cv_env_LIBS_value=
ac_cv_env_PKG_CONFIG_LIBDIR_set=
ac_cv_env_PKG_CONFIG_LIBDIR_value=
ac_cv_env_PKG_CONFIG_PATH_set=
ac_cv_env_PKG_CONFIG_PATH_value=
ac_cv_env_PKG_CONFIG_set=
ac_cv_env_PKG_CONFIG_value=
ac_cv_env_SSL_CFLAGS_set=
ac_cv_env_SSL_CFLAGS_value=
ac_cv_env_SSL_LIBS_set=
ac_cv_env_SSL_LIBS_value=
ac_cv_env_build_alias_set=
ac_cv_env_build_alias_value=
ac_cv_env_host_alias_set=
ac_cv_env_host_alias_value=
ac_cv_env_target_alias_set=
ac_cv_env_target_alias_value=
ac_cv_path_ac_pt_PKG_CONFIG=/usr/bin/pkg-config
ac_cv_path_install='/usr/bin/install -c'
ac_cv_path_mkdir=/bin/mkdir
ac_cv_prog_AWK=gawk
ac_cv_prog_ac_ct_CC=gcc
ac_cv_prog_make_make_set=yes
am_cv_make_support_nested_variables=yes
## ----------------- ##
## Output variables. ##
## ----------------- ##
ACLOCAL='${SHELL} /usr/local/directadmin/custombuild/dovecot-2.2.16/missing aclocal-1.14'
ACLOCAL_AMFLAGS='-I $(top_srcdir)'
AMDEPBACKSLASH='\'
AMDEP_FALSE='#'
AMDEP_TRUE=''
AMTAR='$${TAR-tar}'
AM_BACKSLASH='\'
AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
AM_DEFAULT_VERBOSITY='1'
AM_V='$(V)'
AR=''
AUTH_CFLAGS=''
AUTH_LIBS=''
AUTOCONF='${SHELL} /usr/local/directadmin/custombuild/dovecot-2.2.16/missing autoconf'
AUTOHEADER='${SHELL} /usr/local/directadmin/custombuild/dovecot-2.2.16/missing autoheader'
AUTOMAKE='${SHELL} /usr/local/directadmin/custombuild/dovecot-2.2.16/missing automake-1.14'
AWK='gawk'
BUILD_DOCS_FALSE='#'
BUILD_DOCS_TRUE=''
BUILD_LUCENE_EXTTEXTCAT_FALSE=''
BUILD_LUCENE_EXTTEXTCAT_TRUE=''
BUILD_LUCENE_FALSE=''
BUILD_LUCENE_STEMMER_FALSE=''
BUILD_LUCENE_STEMMER_TRUE=''
BUILD_LUCENE_TEXTCAT_FALSE=''
BUILD_LUCENE_TEXTCAT_TRUE=''
BUILD_LUCENE_TRUE='#'
BUILD_MYSQL_FALSE=''
BUILD_MYSQL_TRUE=''
BUILD_OPENSSL_FALSE=''
BUILD_OPENSSL_TRUE=''
BUILD_PGSQL_FALSE=''
BUILD_PGSQL_TRUE=''
BUILD_SHARED_LIBS_FALSE='#'
BUILD_SHARED_LIBS_TRUE=''
BUILD_SOLR_FALSE=''
BUILD_SOLR_TRUE=''
BUILD_SQLITE_FALSE=''
BUILD_SQLITE_TRUE=''
BUILD_ZLIB_PLUGIN_FALSE=''
BUILD_ZLIB_PLUGIN_TRUE=''
CC='gcc'
CCDEPMODE=''
CDB_LIBS=''
CFLAGS=''
CLUCENE_CFLAGS=''
CLUCENE_LIBS=''
COMPRESS_LIBS=''
CPP=''
CPPFLAGS=''
CRYPT_LIBS=''
CXX=''
CXXCPP=''
CXXDEPMODE=''
CXXFLAGS=''
CYGPATH_W='echo'
DEFS=''
DEPDIR='.deps'
DICT_LIBS=''
DLLTOOL=''
DOVECOT_PLUGIN_DEPS_FALSE=''
DOVECOT_PLUGIN_DEPS_TRUE=''
DSYMUTIL=''
DUMPBIN=''
ECHO_C=''
ECHO_N='-n'
ECHO_T=''
EGREP=''
EXEEXT=''
FGREP=''
GREP=''
GSSAPI_PLUGIN_FALSE=''
GSSAPI_PLUGIN_TRUE=''
HAVE_RQUOTA_FALSE=''
HAVE_RQUOTA_TRUE=''
HAVE_SYSTEMD_FALSE=''
HAVE_SYSTEMD_TRUE='#'
INSTALL_DATA='${INSTALL} -m 644'
INSTALL_PROGRAM='${INSTALL}'
INSTALL_SCRIPT='${INSTALL}'
INSTALL_STRIP_PROGRAM='$(install_sh) -c -s'
KRB5CONFIG=''
KRB5_CFLAGS=''
KRB5_LIBS=''
LD=''
LDAP_LIBS=''
LDAP_PLUGIN_FALSE=''
LDAP_PLUGIN_TRUE=''
LDFLAGS=''
LIBCAP=''
LIBDOVECOT=''
LIBDOVECOT_COMPRESS=''
LIBDOVECOT_DEPS=''
LIBDOVECOT_DSYNC=''
LIBDOVECOT_LDA=''
LIBDOVECOT_LOGIN=''
LIBDOVECOT_SQL=''
LIBDOVECOT_STORAGE=''
LIBDOVECOT_STORAGE_DEPS=''
LIBICONV=''
LIBOBJS=''
LIBS=''
LIBTOOL=''
LIBWRAP_LIBS=''
LINKED_STORAGE_LDADD=''
LINKED_STORAGE_LIBS=''
LIPO=''
LN_S=''
LTLIBICONV=''
LTLIBOBJS=''
MAINT='#'
MAINTAINER_MODE_FALSE=''
MAINTAINER_MODE_TRUE='#'
MAKEINFO='${SHELL} /usr/local/directadmin/custombuild/dovecot-2.2.16/missing makeinfo'
MANIFEST_TOOL=''
MKDIR_P='/bin/mkdir -p'
MODULE_LIBS=''
MODULE_SUFFIX=''
MYSQL_CFLAGS=''
MYSQL_CONFIG=''
MYSQL_LIBS=''
NM=''
NMEDIT=''
NOPLUGIN_LDFLAGS=''
OBJDUMP=''
OBJEXT=''
OTOOL64=''
OTOOL=''
PACKAGE='dovecot'
PACKAGE_BUGREPORT='
[email protected]'
PACKAGE_NAME='Dovecot'
PACKAGE_STRING='Dovecot 2.2.16'
PACKAGE_TARNAME='dovecot'
PACKAGE_URL=''
PACKAGE_VERSION='2.2.16'
PATH_SEPARATOR=':'
PGSQL_CFLAGS=''
PGSQL_LIBS=''
PG_CONFIG=''
PKG_CONFIG='/usr/bin/pkg-config'
PKG_CONFIG_LIBDIR=''
PKG_CONFIG_PATH=''
QUOTA_LIBS=''
RANLIB=''
RPCGEN=''
RUN_TEST=''
SED=''
SETTING_FILES=''
SET_MAKE=''
SHELL='/bin/sh'
SQLITE_CFLAGS=''
SQLITE_LIBS=''
SQL_CFLAGS=''
SQL_LIBS=''
SQL_PLUGINS_FALSE=''
SQL_PLUGINS_TRUE=''
SSL_CFLAGS=''
SSL_LIBS=''
STRIP=''
TCPWRAPPERS_FALSE=''
TCPWRAPPERS_TRUE=''
VALGRIND=''
VERSION='2.2.16'
abs_top_builddir=''
ac_ct_AR=''
ac_ct_CC='gcc'
ac_ct_CXX=''
ac_ct_DUMPBIN=''
am__EXEEXT_FALSE=''
am__EXEEXT_TRUE=''
am__fastdepCC_FALSE=''
am__fastdepCC_TRUE=''
am__fastdepCXX_FALSE=''
am__fastdepCXX_TRUE=''
am__include='include'
am__isrc=''
am__leading_dot='.'
am__nodep='_no'
am__quote=''
am__tar='$${TAR-tar} chof - "$$tardir"'
am__untar='$${TAR-tar} xf -'
bindir='${exec_prefix}/bin'
build=''
build_alias=''
build_cpu=''
build_os=''
build_vendor=''
datadir='${datarootdir}'
datarootdir='${prefix}/share'
dict_drivers=''
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
dvidir='${docdir}'
exec_prefix='NONE'
host=''
host_alias=''
host_cpu=''
host_os=''
host_vendor=''
htmldir='${docdir}'
includedir='${prefix}/include'
infodir='${datarootdir}/info'
install_sh='${SHELL} /usr/local/directadmin/custombuild/dovecot-2.2.16/install-sh'
libdir='${exec_prefix}/lib'
libexecdir='${exec_prefix}/libexec'
localedir='${datarootdir}/locale'
localstatedir='/var'
mail_storages='shared mdbox sdbox maildir mbox cydir imapc pop3c raw fail'
mailbox_list_drivers=''
mandir='${datarootdir}/man'
mkdir_p='$(MKDIR_P)'
moduledir='${exec_prefix}/lib/dovecot'
oldincludedir='/usr/include'
pdfdir='${docdir}'
prefix='/usr'
program_transform_name='s,x,x,'
psdir='${docdir}'
rundir='/var/run/dovecot'
sbindir='${exec_prefix}/sbin'
sharedstatedir='${prefix}/com'
sql_drivers=''
ssldir='/etc/ssl'
statedir='/var/lib/dovecot'
sysconfdir='/etc'
systemdsystemunitdir=''
target_alias=''
## ----------- ##
## confdefs.h. ##
## ----------- ##
/* confdefs.h */
#define PACKAGE_NAME "Dovecot"
#define PACKAGE_TARNAME "dovecot"
#define PACKAGE_VERSION "2.2.16"
#define PACKAGE_STRING "Dovecot 2.2.16"
#define PACKAGE_BUGREPORT "
[email protected]"
#define PACKAGE_URL ""
#define DOVECOT_ABI_VERSION "2.2.ABIv16(2.2.16)"
#define PACKAGE "dovecot"
#define VERSION "2.2.16"
configure: exit 1