Skip to content
Snippets Groups Projects
Commit 1e910d56 authored by Alexis Roche's avatar Alexis Roche
Browse files

new version -- still working on it

parent 229f6f6a
No related branches found
No related tags found
No related merge requests found
Showing
with 8976 additions and 70 deletions
all: main libcopyfile.so
FL1 = -DHAVE_CILONE
FL2 = -DTRIG_FUNCTIONS
main : main.cpp
clang++ -o $@ $< ${FL2}
Libcopyfile.so : copyfile.c
clang-share -o $@ $< ${FL1}
AUTOMAKE_OPTIONS = foreign
bin_PROGRAMS = helloworld
ACLOCAL_AMFLAGS = -I m4
lib_LTLIBRARIES = libcopyfile.la
libcopyfile_la_SOURCES = copyfile.c
libcopyfile_la_LDFLAGS = -module -avoid-version -export-dynamic
helloworld_LDADD = libcopyfile.la
helloworld_SOURCES = main.cpp
all: main libcopyfile.so
FL1 = @HAVE_FICLONE@
FL2 = @TRIG_FUNCTIONS@
main : main.cpp
clang++ -o $@ $< ${FL2}
Libcopyfile.so : copyfile.c
clang-share -o $@ $< ${FL1}
dfgfgfdgfdg
\ No newline at end of file
This diff is collapsed.
# This file was generated by Autom4te Wed Jan 22 14:03:12 UTC 2020.
# It contains the lists of macros which have been traced.
# It can be safely removed.
@request = (
bless( [
'0',
1,
[
'/usr/share/autoconf'
],
[
'/usr/share/autoconf/autoconf/autoconf.m4f',
'configure.ac'
],
{
'LT_INIT' => 1,
'_AM_MAKEFILE_INCLUDE' => 1,
'AC_CONFIG_HEADERS' => 1,
'AC_CANONICAL_HOST' => 1,
'AC_LIBSOURCE' => 1,
'AM_CONDITIONAL' => 1,
'LT_CONFIG_LTDL_DIR' => 1,
'AM_PROG_FC_C_O' => 1,
'AC_INIT' => 1,
'AC_DEFINE_TRACE_LITERAL' => 1,
'AM_XGETTEXT_OPTION' => 1,
'LT_SUPPORTED_TAG' => 1,
'_AM_COND_IF' => 1,
'AC_CONFIG_SUBDIRS' => 1,
'sinclude' => 1,
'AC_CANONICAL_SYSTEM' => 1,
'AC_SUBST' => 1,
'AM_INIT_AUTOMAKE' => 1,
'AH_OUTPUT' => 1,
'AC_PROG_LIBTOOL' => 1,
'_AM_COND_ELSE' => 1,
'AC_FC_SRCEXT' => 1,
'_LT_AC_TAGCONFIG' => 1,
'AM_GNU_GETTEXT_INTL_SUBDIR' => 1,
'AC_CONFIG_FILES' => 1,
'_AM_COND_ENDIF' => 1,
'AM_MAKEFILE_INCLUDE' => 1,
'AM_PROG_CXX_C_O' => 1,
'AM_MAINTAINER_MODE' => 1,
'AC_SUBST_TRACE' => 1,
'm4_pattern_allow' => 1,
'include' => 1,
'm4_pattern_forbid' => 1,
'AM_PROG_CC_C_O' => 1,
'AC_FC_PP_DEFINE' => 1,
'AM_POT_TOOLS' => 1,
'AM_NLS' => 1,
'AC_CANONICAL_TARGET' => 1,
'm4_sinclude' => 1,
'm4_include' => 1,
'AM_PATH_GUILE' => 1,
'AM_PROG_AR' => 1,
'AM_GNU_GETTEXT' => 1,
'_m4_warn' => 1,
'AC_CONFIG_LIBOBJ_DIR' => 1,
'AM_AUTOMAKE_VERSION' => 1,
'AM_SILENT_RULES' => 1,
'AC_CONFIG_LINKS' => 1,
'AM_PROG_F77_C_O' => 1,
'AM_PROG_MOC' => 1,
'AC_CANONICAL_BUILD' => 1,
'AC_CONFIG_AUX_DIR' => 1,
'_AM_SUBST_NOTMAKE' => 1,
'AC_REQUIRE_AUX_FILE' => 1,
'AC_FC_FREEFORM' => 1,
'AC_FC_PP_SRCEXT' => 1,
'AM_ENABLE_MULTILIB' => 1,
'AM_PROG_LIBTOOL' => 1
}
], 'Autom4te::Request' )
);
m4trace:configure.ac:1: -1- AC_INIT([lab4auto_conf], [0.1], [Alexis_Sirathee@example.com])
m4trace:configure.ac:1: -1- m4_pattern_forbid([^_?A[CHUM]_])
m4trace:configure.ac:1: -1- m4_pattern_forbid([_AC_])
m4trace:configure.ac:1: -1- m4_pattern_forbid([^LIBOBJS$], [do not use LIBOBJS directly, use AC_LIBOBJ (see section `AC_LIBOBJ vs LIBOBJS'])
m4trace:configure.ac:1: -1- m4_pattern_allow([^AS_FLAGS$])
m4trace:configure.ac:1: -1- m4_pattern_forbid([^_?m4_])
m4trace:configure.ac:1: -1- m4_pattern_forbid([^dnl$])
m4trace:configure.ac:1: -1- m4_pattern_forbid([^_?AS_])
m4trace:configure.ac:1: -1- AC_SUBST([SHELL])
m4trace:configure.ac:1: -1- AC_SUBST_TRACE([SHELL])
m4trace:configure.ac:1: -1- m4_pattern_allow([^SHELL$])
m4trace:configure.ac:1: -1- AC_SUBST([PATH_SEPARATOR])
m4trace:configure.ac:1: -1- AC_SUBST_TRACE([PATH_SEPARATOR])
m4trace:configure.ac:1: -1- m4_pattern_allow([^PATH_SEPARATOR$])
m4trace:configure.ac:1: -1- AC_SUBST([PACKAGE_NAME], [m4_ifdef([AC_PACKAGE_NAME], ['AC_PACKAGE_NAME'])])
m4trace:configure.ac:1: -1- AC_SUBST_TRACE([PACKAGE_NAME])
m4trace:configure.ac:1: -1- m4_pattern_allow([^PACKAGE_NAME$])
m4trace:configure.ac:1: -1- AC_SUBST([PACKAGE_TARNAME], [m4_ifdef([AC_PACKAGE_TARNAME], ['AC_PACKAGE_TARNAME'])])
m4trace:configure.ac:1: -1- AC_SUBST_TRACE([PACKAGE_TARNAME])
m4trace:configure.ac:1: -1- m4_pattern_allow([^PACKAGE_TARNAME$])
m4trace:configure.ac:1: -1- AC_SUBST([PACKAGE_VERSION], [m4_ifdef([AC_PACKAGE_VERSION], ['AC_PACKAGE_VERSION'])])
m4trace:configure.ac:1: -1- AC_SUBST_TRACE([PACKAGE_VERSION])
m4trace:configure.ac:1: -1- m4_pattern_allow([^PACKAGE_VERSION$])
m4trace:configure.ac:1: -1- AC_SUBST([PACKAGE_STRING], [m4_ifdef([AC_PACKAGE_STRING], ['AC_PACKAGE_STRING'])])
m4trace:configure.ac:1: -1- AC_SUBST_TRACE([PACKAGE_STRING])
m4trace:configure.ac:1: -1- m4_pattern_allow([^PACKAGE_STRING$])
m4trace:configure.ac:1: -1- AC_SUBST([PACKAGE_BUGREPORT], [m4_ifdef([AC_PACKAGE_BUGREPORT], ['AC_PACKAGE_BUGREPORT'])])
m4trace:configure.ac:1: -1- AC_SUBST_TRACE([PACKAGE_BUGREPORT])
m4trace:configure.ac:1: -1- m4_pattern_allow([^PACKAGE_BUGREPORT$])
m4trace:configure.ac:1: -1- AC_SUBST([PACKAGE_URL], [m4_ifdef([AC_PACKAGE_URL], ['AC_PACKAGE_URL'])])
m4trace:configure.ac:1: -1- AC_SUBST_TRACE([PACKAGE_URL])
m4trace:configure.ac:1: -1- m4_pattern_allow([^PACKAGE_URL$])
m4trace:configure.ac:1: -1- AC_SUBST([exec_prefix], [NONE])
m4trace:configure.ac:1: -1- AC_SUBST_TRACE([exec_prefix])
m4trace:configure.ac:1: -1- m4_pattern_allow([^exec_prefix$])
m4trace:configure.ac:1: -1- AC_SUBST([prefix], [NONE])
m4trace:configure.ac:1: -1- AC_SUBST_TRACE([prefix])
m4trace:configure.ac:1: -1- m4_pattern_allow([^prefix$])
m4trace:configure.ac:1: -1- AC_SUBST([program_transform_name], [s,x,x,])
m4trace:configure.ac:1: -1- AC_SUBST_TRACE([program_transform_name])
m4trace:configure.ac:1: -1- m4_pattern_allow([^program_transform_name$])
m4trace:configure.ac:1: -1- AC_SUBST([bindir], ['${exec_prefix}/bin'])
m4trace:configure.ac:1: -1- AC_SUBST_TRACE([bindir])
m4trace:configure.ac:1: -1- m4_pattern_allow([^bindir$])
m4trace:configure.ac:1: -1- AC_SUBST([sbindir], ['${exec_prefix}/sbin'])
m4trace:configure.ac:1: -1- AC_SUBST_TRACE([sbindir])
m4trace:configure.ac:1: -1- m4_pattern_allow([^sbindir$])
m4trace:configure.ac:1: -1- AC_SUBST([libexecdir], ['${exec_prefix}/libexec'])
m4trace:configure.ac:1: -1- AC_SUBST_TRACE([libexecdir])
m4trace:configure.ac:1: -1- m4_pattern_allow([^libexecdir$])
m4trace:configure.ac:1: -1- AC_SUBST([datarootdir], ['${prefix}/share'])
m4trace:configure.ac:1: -1- AC_SUBST_TRACE([datarootdir])
m4trace:configure.ac:1: -1- m4_pattern_allow([^datarootdir$])
m4trace:configure.ac:1: -1- AC_SUBST([datadir], ['${datarootdir}'])
m4trace:configure.ac:1: -1- AC_SUBST_TRACE([datadir])
m4trace:configure.ac:1: -1- m4_pattern_allow([^datadir$])
m4trace:configure.ac:1: -1- AC_SUBST([sysconfdir], ['${prefix}/etc'])
m4trace:configure.ac:1: -1- AC_SUBST_TRACE([sysconfdir])
m4trace:configure.ac:1: -1- m4_pattern_allow([^sysconfdir$])
m4trace:configure.ac:1: -1- AC_SUBST([sharedstatedir], ['${prefix}/com'])
m4trace:configure.ac:1: -1- AC_SUBST_TRACE([sharedstatedir])
m4trace:configure.ac:1: -1- m4_pattern_allow([^sharedstatedir$])
m4trace:configure.ac:1: -1- AC_SUBST([localstatedir], ['${prefix}/var'])
m4trace:configure.ac:1: -1- AC_SUBST_TRACE([localstatedir])
m4trace:configure.ac:1: -1- m4_pattern_allow([^localstatedir$])
m4trace:configure.ac:1: -1- AC_SUBST([runstatedir], ['${localstatedir}/run'])
m4trace:configure.ac:1: -1- AC_SUBST_TRACE([runstatedir])
m4trace:configure.ac:1: -1- m4_pattern_allow([^runstatedir$])
m4trace:configure.ac:1: -1- AC_SUBST([includedir], ['${prefix}/include'])
m4trace:configure.ac:1: -1- AC_SUBST_TRACE([includedir])
m4trace:configure.ac:1: -1- m4_pattern_allow([^includedir$])
m4trace:configure.ac:1: -1- AC_SUBST([oldincludedir], ['/usr/include'])
m4trace:configure.ac:1: -1- AC_SUBST_TRACE([oldincludedir])
m4trace:configure.ac:1: -1- m4_pattern_allow([^oldincludedir$])
m4trace:configure.ac:1: -1- AC_SUBST([docdir], [m4_ifset([AC_PACKAGE_TARNAME],
['${datarootdir}/doc/${PACKAGE_TARNAME}'],
['${datarootdir}/doc/${PACKAGE}'])])
m4trace:configure.ac:1: -1- AC_SUBST_TRACE([docdir])
m4trace:configure.ac:1: -1- m4_pattern_allow([^docdir$])
m4trace:configure.ac:1: -1- AC_SUBST([infodir], ['${datarootdir}/info'])
m4trace:configure.ac:1: -1- AC_SUBST_TRACE([infodir])
m4trace:configure.ac:1: -1- m4_pattern_allow([^infodir$])
m4trace:configure.ac:1: -1- AC_SUBST([htmldir], ['${docdir}'])
m4trace:configure.ac:1: -1- AC_SUBST_TRACE([htmldir])
m4trace:configure.ac:1: -1- m4_pattern_allow([^htmldir$])
m4trace:configure.ac:1: -1- AC_SUBST([dvidir], ['${docdir}'])
m4trace:configure.ac:1: -1- AC_SUBST_TRACE([dvidir])
m4trace:configure.ac:1: -1- m4_pattern_allow([^dvidir$])
m4trace:configure.ac:1: -1- AC_SUBST([pdfdir], ['${docdir}'])
m4trace:configure.ac:1: -1- AC_SUBST_TRACE([pdfdir])
m4trace:configure.ac:1: -1- m4_pattern_allow([^pdfdir$])
m4trace:configure.ac:1: -1- AC_SUBST([psdir], ['${docdir}'])
m4trace:configure.ac:1: -1- AC_SUBST_TRACE([psdir])
m4trace:configure.ac:1: -1- m4_pattern_allow([^psdir$])
m4trace:configure.ac:1: -1- AC_SUBST([libdir], ['${exec_prefix}/lib'])
m4trace:configure.ac:1: -1- AC_SUBST_TRACE([libdir])
m4trace:configure.ac:1: -1- m4_pattern_allow([^libdir$])
m4trace:configure.ac:1: -1- AC_SUBST([localedir], ['${datarootdir}/locale'])
m4trace:configure.ac:1: -1- AC_SUBST_TRACE([localedir])
m4trace:configure.ac:1: -1- m4_pattern_allow([^localedir$])
m4trace:configure.ac:1: -1- AC_SUBST([mandir], ['${datarootdir}/man'])
m4trace:configure.ac:1: -1- AC_SUBST_TRACE([mandir])
m4trace:configure.ac:1: -1- m4_pattern_allow([^mandir$])
m4trace:configure.ac:1: -1- AC_DEFINE_TRACE_LITERAL([PACKAGE_NAME])
m4trace:configure.ac:1: -1- m4_pattern_allow([^PACKAGE_NAME$])
m4trace:configure.ac:1: -1- AH_OUTPUT([PACKAGE_NAME], [/* Define to the full name of this package. */
@%:@undef PACKAGE_NAME])
m4trace:configure.ac:1: -1- AC_DEFINE_TRACE_LITERAL([PACKAGE_TARNAME])
m4trace:configure.ac:1: -1- m4_pattern_allow([^PACKAGE_TARNAME$])
m4trace:configure.ac:1: -1- AH_OUTPUT([PACKAGE_TARNAME], [/* Define to the one symbol short name of this package. */
@%:@undef PACKAGE_TARNAME])
m4trace:configure.ac:1: -1- AC_DEFINE_TRACE_LITERAL([PACKAGE_VERSION])
m4trace:configure.ac:1: -1- m4_pattern_allow([^PACKAGE_VERSION$])
m4trace:configure.ac:1: -1- AH_OUTPUT([PACKAGE_VERSION], [/* Define to the version of this package. */
@%:@undef PACKAGE_VERSION])
m4trace:configure.ac:1: -1- AC_DEFINE_TRACE_LITERAL([PACKAGE_STRING])
m4trace:configure.ac:1: -1- m4_pattern_allow([^PACKAGE_STRING$])
m4trace:configure.ac:1: -1- AH_OUTPUT([PACKAGE_STRING], [/* Define to the full name and version of this package. */
@%:@undef PACKAGE_STRING])
m4trace:configure.ac:1: -1- AC_DEFINE_TRACE_LITERAL([PACKAGE_BUGREPORT])
m4trace:configure.ac:1: -1- m4_pattern_allow([^PACKAGE_BUGREPORT$])
m4trace:configure.ac:1: -1- AH_OUTPUT([PACKAGE_BUGREPORT], [/* Define to the address where bug reports for this package should be sent. */
@%:@undef PACKAGE_BUGREPORT])
m4trace:configure.ac:1: -1- AC_DEFINE_TRACE_LITERAL([PACKAGE_URL])
m4trace:configure.ac:1: -1- m4_pattern_allow([^PACKAGE_URL$])
m4trace:configure.ac:1: -1- AH_OUTPUT([PACKAGE_URL], [/* Define to the home page for this package. */
@%:@undef PACKAGE_URL])
m4trace:configure.ac:1: -1- AC_SUBST([DEFS])
m4trace:configure.ac:1: -1- AC_SUBST_TRACE([DEFS])
m4trace:configure.ac:1: -1- m4_pattern_allow([^DEFS$])
m4trace:configure.ac:1: -1- AC_SUBST([ECHO_C])
m4trace:configure.ac:1: -1- AC_SUBST_TRACE([ECHO_C])
m4trace:configure.ac:1: -1- m4_pattern_allow([^ECHO_C$])
m4trace:configure.ac:1: -1- AC_SUBST([ECHO_N])
m4trace:configure.ac:1: -1- AC_SUBST_TRACE([ECHO_N])
m4trace:configure.ac:1: -1- m4_pattern_allow([^ECHO_N$])
m4trace:configure.ac:1: -1- AC_SUBST([ECHO_T])
m4trace:configure.ac:1: -1- AC_SUBST_TRACE([ECHO_T])
m4trace:configure.ac:1: -1- m4_pattern_allow([^ECHO_T$])
m4trace:configure.ac:1: -1- AC_SUBST([LIBS])
m4trace:configure.ac:1: -1- AC_SUBST_TRACE([LIBS])
m4trace:configure.ac:1: -1- m4_pattern_allow([^LIBS$])
m4trace:configure.ac:1: -1- AC_SUBST([build_alias])
m4trace:configure.ac:1: -1- AC_SUBST_TRACE([build_alias])
m4trace:configure.ac:1: -1- m4_pattern_allow([^build_alias$])
m4trace:configure.ac:1: -1- AC_SUBST([host_alias])
m4trace:configure.ac:1: -1- AC_SUBST_TRACE([host_alias])
m4trace:configure.ac:1: -1- m4_pattern_allow([^host_alias$])
m4trace:configure.ac:1: -1- AC_SUBST([target_alias])
m4trace:configure.ac:1: -1- AC_SUBST_TRACE([target_alias])
m4trace:configure.ac:1: -1- m4_pattern_allow([^target_alias$])
m4trace:configure.ac:2: -1- AC_SUBST([CC])
m4trace:configure.ac:2: -1- AC_SUBST_TRACE([CC])
m4trace:configure.ac:2: -1- m4_pattern_allow([^CC$])
m4trace:configure.ac:2: -1- AC_SUBST([CFLAGS])
m4trace:configure.ac:2: -1- AC_SUBST_TRACE([CFLAGS])
m4trace:configure.ac:2: -1- m4_pattern_allow([^CFLAGS$])
m4trace:configure.ac:2: -1- AC_SUBST([LDFLAGS])
m4trace:configure.ac:2: -1- AC_SUBST_TRACE([LDFLAGS])
m4trace:configure.ac:2: -1- m4_pattern_allow([^LDFLAGS$])
m4trace:configure.ac:2: -1- AC_SUBST([LIBS])
m4trace:configure.ac:2: -1- AC_SUBST_TRACE([LIBS])
m4trace:configure.ac:2: -1- m4_pattern_allow([^LIBS$])
m4trace:configure.ac:2: -1- AC_SUBST([CPPFLAGS])
m4trace:configure.ac:2: -1- AC_SUBST_TRACE([CPPFLAGS])
m4trace:configure.ac:2: -1- m4_pattern_allow([^CPPFLAGS$])
m4trace:configure.ac:2: -1- AC_SUBST([CC])
m4trace:configure.ac:2: -1- AC_SUBST_TRACE([CC])
m4trace:configure.ac:2: -1- m4_pattern_allow([^CC$])
m4trace:configure.ac:2: -1- AC_SUBST([CC])
m4trace:configure.ac:2: -1- AC_SUBST_TRACE([CC])
m4trace:configure.ac:2: -1- m4_pattern_allow([^CC$])
m4trace:configure.ac:2: -1- AC_SUBST([CC])
m4trace:configure.ac:2: -1- AC_SUBST_TRACE([CC])
m4trace:configure.ac:2: -1- m4_pattern_allow([^CC$])
m4trace:configure.ac:2: -1- AC_SUBST([CC])
m4trace:configure.ac:2: -1- AC_SUBST_TRACE([CC])
m4trace:configure.ac:2: -1- m4_pattern_allow([^CC$])
m4trace:configure.ac:2: -1- AC_SUBST([ac_ct_CC])
m4trace:configure.ac:2: -1- AC_SUBST_TRACE([ac_ct_CC])
m4trace:configure.ac:2: -1- m4_pattern_allow([^ac_ct_CC$])
m4trace:configure.ac:2: -1- AC_SUBST([EXEEXT], [$ac_cv_exeext])
m4trace:configure.ac:2: -1- AC_SUBST_TRACE([EXEEXT])
m4trace:configure.ac:2: -1- m4_pattern_allow([^EXEEXT$])
m4trace:configure.ac:2: -1- AC_SUBST([OBJEXT], [$ac_cv_objext])
m4trace:configure.ac:2: -1- AC_SUBST_TRACE([OBJEXT])
m4trace:configure.ac:2: -1- m4_pattern_allow([^OBJEXT$])
m4trace:configure.ac:4: -1- AC_CONFIG_FILES([Makefile])
m4trace:configure.ac:6: -1- AC_SUBST([HAVE_FICLONE], [''])
m4trace:configure.ac:6: -1- AC_SUBST_TRACE([HAVE_FICLONE])
m4trace:configure.ac:6: -1- m4_pattern_allow([^HAVE_FICLONE$])
m4trace:configure.ac:7: -1- AC_SUBST([TRIG_FUNCTIONS], ['-DTRIG_FUNCTIONS'])
m4trace:configure.ac:7: -1- AC_SUBST_TRACE([TRIG_FUNCTIONS])
m4trace:configure.ac:7: -1- m4_pattern_allow([^TRIG_FUNCTIONS$])
m4trace:configure.ac:18: -1- AC_SUBST([LIB@&t@OBJS], [$ac_libobjs])
m4trace:configure.ac:18: -1- AC_SUBST_TRACE([LIB@&t@OBJS])
m4trace:configure.ac:18: -1- m4_pattern_allow([^LIB@&t@OBJS$])
m4trace:configure.ac:18: -1- AC_SUBST([LTLIBOBJS], [$ac_ltlibobjs])
m4trace:configure.ac:18: -1- AC_SUBST_TRACE([LTLIBOBJS])
m4trace:configure.ac:18: -1- m4_pattern_allow([^LTLIBOBJS$])
m4trace:configure.ac:18: -1- AC_SUBST_TRACE([top_builddir])
m4trace:configure.ac:18: -1- AC_SUBST_TRACE([top_build_prefix])
m4trace:configure.ac:18: -1- AC_SUBST_TRACE([srcdir])
m4trace:configure.ac:18: -1- AC_SUBST_TRACE([abs_srcdir])
m4trace:configure.ac:18: -1- AC_SUBST_TRACE([top_srcdir])
m4trace:configure.ac:18: -1- AC_SUBST_TRACE([abs_top_srcdir])
m4trace:configure.ac:18: -1- AC_SUBST_TRACE([builddir])
m4trace:configure.ac:18: -1- AC_SUBST_TRACE([abs_builddir])
m4trace:configure.ac:18: -1- AC_SUBST_TRACE([abs_top_builddir])
#!/bin/sh
exec libtoolize && aclocal && autoconf && automake --add-missing
\ No newline at end of file
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
It was created by lab4auto_conf configure 0.1, which was
generated by GNU Autoconf 2.69. Invocation command line was
$ ./configure --without-trig-functions
## --------- ##
## Platform. ##
## --------- ##
hostname = tlvm-4-4-2
uname -m = x86_64
uname -r = 5.4.0-126-generic
uname -s = Linux
uname -v = #142-Ubuntu SMP Fri Aug 26 12:12:57 UTC 2022
/usr/bin/uname -p = x86_64
/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: /opt/liu/vscode/1.71.2/bin
PATH: /bin
PATH: /usr/bin
PATH: /opt/thinlinc/bin
PATH: /usr/local/bin
PATH: /usr/bin/X11
PATH: /sbin
PATH: /usr/sbin
PATH: /usr/local/sbin
PATH: /snap/bin
PATH: /opt/puppetlabs/bin
## ----------- ##
## Core tests. ##
## ----------- ##
configure:1840: checking for gcc
configure:1856: found /bin/gcc
configure:1867: result: gcc
configure:2096: checking for C compiler version
configure:2105: gcc --version >&5
gcc (Ubuntu 9.4.0-1ubuntu1~20.04.1) 9.4.0
Copyright (C) 2019 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:2116: $? = 0
configure:2105: gcc -v >&5
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/9/lto-wrapper
OFFLOAD_TARGET_NAMES=nvptx-none:hsa
OFFLOAD_TARGET_DEFAULT=1
Target: x86_64-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Ubuntu 9.4.0-1ubuntu1~20.04.1' --with-bugurl=file:///usr/share/doc/gcc-9/README.Bugs --enable-languages=c,ada,c++,go,brig,d,fortran,objc,obj-c++,gm2 --prefix=/usr --with-gcc-major-version-only --program-suffix=-9 --program-prefix=x86_64-linux-gnu- --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --libdir=/usr/lib --enable-nls --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --with-default-libstdcxx-abi=new --enable-gnu-unique-object --disable-vtable-verify --enable-plugin --enable-default-pie --with-system-zlib --with-target-system-zlib=auto --enable-objc-gc=auto --enable-multiarch --disable-werror --with-arch-32=i686 --with-abi=m64 --with-multilib-list=m32,m64,mx32 --enable-multilib --with-tune=generic --enable-offload-targets=nvptx-none=/build/gcc-9-Av3uEd/gcc-9-9.4.0/debian/tmp-nvptx/usr,hsa --without-cuda-driver --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu
Thread model: posix
gcc version 9.4.0 (Ubuntu 9.4.0-1ubuntu1~20.04.1)
configure:2116: $? = 0
configure:2105: gcc -V >&5
gcc: error: unrecognized command line option '-V'
gcc: fatal error: no input files
compilation terminated.
configure:2116: $? = 1
configure:2105: gcc -qversion >&5
gcc: error: unrecognized command line option '-qversion'; did you mean '--version'?
gcc: fatal error: no input files
compilation terminated.
configure:2116: $? = 1
configure:2136: checking whether the C compiler works
configure:2158: gcc conftest.c >&5
configure:2162: $? = 0
configure:2210: result: yes
configure:2213: checking for C compiler default output file name
configure:2215: result: a.out
configure:2221: checking for suffix of executables
configure:2228: gcc -o conftest conftest.c >&5
configure:2232: $? = 0
configure:2254: result:
configure:2276: checking whether we are cross compiling
configure:2284: gcc -o conftest conftest.c >&5
configure:2288: $? = 0
configure:2295: ./conftest
configure:2299: $? = 0
configure:2287: result: no
configure:2292: checking for suffix of object files
configure:2314: gcc -c conftest.c >&5
configure:2318: $? = 0
configure:2339: result: o
configure:2343: checking whether we are using the GNU C compiler
configure:2362: gcc -c conftest.c >&5
configure:2362: $? = 0
configure:2371: result: yes
configure:2380: checking whether gcc accepts -g
configure:2400: gcc -c -g conftest.c >&5
configure:2400: $? = 0
configure:2441: result: yes
configure:2458: checking for gcc option to accept ISO C89
configure:2521: gcc -c -g -O2 conftest.c >&5
configure:2521: $? = 0
configure:2534: result: none needed
configure:2571: checking whether FICLONE is declared
configure:2571: gcc -c -g -O2 conftest.c >&5
configure:2571: $? = 0
configure:2571: result: yes
configure:2723: creating ./config.status
## ---------------------- ##
## Running config.status. ##
## ---------------------- ##
This file was extended by lab4auto_conf config.status 0.1, which was
generated by GNU Autoconf 2.69. Invocation command line was
CONFIG_FILES =
CONFIG_HEADERS =
CONFIG_LINKS =
CONFIG_COMMANDS =
$ ./config.status
on tlvm-4-4-2
config.status:718: creating Makefile
## ---------------- ##
## Cache variables. ##
## ---------------- ##
ac_cv_c_compiler_gnu=yes
ac_cv_env_CC_set=
ac_cv_env_CC_value=
ac_cv_env_CFLAGS_set=
ac_cv_env_CFLAGS_value=
ac_cv_env_CPPFLAGS_set=
ac_cv_env_CPPFLAGS_value=
ac_cv_env_LDFLAGS_set=
ac_cv_env_LDFLAGS_value=
ac_cv_env_LIBS_set=
ac_cv_env_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_have_decl_FICLONE=yes
ac_cv_objext=o
ac_cv_prog_ac_ct_CC=gcc
ac_cv_prog_cc_c89=
ac_cv_prog_cc_g=yes
## ----------------- ##
## Output variables. ##
## ----------------- ##
CC='gcc'
CFLAGS='-g -O2'
CPPFLAGS=''
DEFS='-DPACKAGE_NAME=\"lab4auto_conf\" -DPACKAGE_TARNAME=\"lab4auto_conf\" -DPACKAGE_VERSION=\"0.1\" -DPACKAGE_STRING=\"lab4auto_conf\ 0.1\" -DPACKAGE_BUGREPORT=\"Alexis_Sirathee@example.com\" -DPACKAGE_URL=\"\"'
ECHO_C=''
ECHO_N='-n'
ECHO_T=''
EXEEXT=''
HAVE_FICLONE='-DHAVE_CILONE'
LDFLAGS=''
LIBOBJS=''
LIBS=''
LTLIBOBJS=''
OBJEXT='o'
PACKAGE_BUGREPORT='Alexis_Sirathee@example.com'
PACKAGE_NAME='lab4auto_conf'
PACKAGE_STRING='lab4auto_conf 0.1'
PACKAGE_TARNAME='lab4auto_conf'
PACKAGE_URL=''
PACKAGE_VERSION='0.1'
PATH_SEPARATOR=':'
SHELL='/bin/bash'
TRIG_FUNCTIONS='-DTRIG_FUNCTIONS'
ac_ct_CC='gcc'
bindir='${exec_prefix}/bin'
build_alias=''
datadir='${datarootdir}'
datarootdir='${prefix}/share'
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
dvidir='${docdir}'
exec_prefix='${prefix}'
host_alias=''
htmldir='${docdir}'
includedir='${prefix}/include'
infodir='${datarootdir}/info'
libdir='${exec_prefix}/lib'
libexecdir='${exec_prefix}/libexec'
localedir='${datarootdir}/locale'
localstatedir='${prefix}/var'
mandir='${datarootdir}/man'
oldincludedir='/usr/include'
pdfdir='${docdir}'
prefix='/usr/local'
program_transform_name='s,x,x,'
psdir='${docdir}'
runstatedir='${localstatedir}/run'
sbindir='${exec_prefix}/sbin'
sharedstatedir='${prefix}/com'
sysconfdir='${prefix}/etc'
target_alias=''
## ----------- ##
## confdefs.h. ##
## ----------- ##
/* confdefs.h */
#define PACKAGE_NAME "lab4auto_conf"
#define PACKAGE_TARNAME "lab4auto_conf"
#define PACKAGE_VERSION "0.1"
#define PACKAGE_STRING "lab4auto_conf 0.1"
#define PACKAGE_BUGREPORT "Alexis_Sirathee@example.com"
#define PACKAGE_URL ""
configure: exit 0
This diff is collapsed.
This diff is collapsed.
AC_INIT([helloworld], [0.1], [maintainer@example.com]) AC_INIT([lab4auto_conf], [0.1], [Alexis_Sirathee@example.com])
AM_INIT_AUTOMAKE AC_PROG_CC
AC_CANONICAL_HOST
build_linux=no
build_windows=no
build_mac=no
case "${host_os}" in
linux*)
build_linux=yes
;;
cygwin*|mingw*)
build_windows=yes
;;
darwin*)
build_mac=yes
;;
*)
AC_MSG_ERROR(["OS $host_os is not supported"])
;;
esac
if test "$build_linux" = "yes" ; then
AC_DEFINE(IS_LINUX,1,[os is linux])
fi
AC_PROG_CXX
AC_CONFIG_MACRO_DIRS([m4])
AM_PROG_LIBTOOL
AC_PROG_INSTALL
AC_CONFIG_FILES([Makefile])
AC_SEARCH_LIBS([dlopen], [dl dld], [], [
AC_MSG_ERROR([unable to find the dlopen() function])])
AC_ENABLE_SHARED AC_CONFIG_FILES([Makefile])
AC_DISABLE_STATIC
LT_INIT
AC_OUTPUT
AC_SUBST(HAVE_FICLONE, '')
AC_SUBST(TRIG_FUNCTIONS, '-DTRIG_FUNCTIONS')
AC_ARG_WITH([trig-functions],
[AS_HELP_STRING([--without-trig-functions],[no trig functions])],
[TRIG_FUNCTIONS])
AC_CHECK_DECL(FICLONE, [HAVE_FICLONE='-DHAVE_CILONE'], , [
#include <linux/fs.h>
#include <sys/ioctl.h>
])
AC_OUTPUT
\ No newline at end of file
#include <stdio.h> #include <stdio.h>
#include <fcntl.h>
#include <sys/ioctl.h>
#include <sys/stat.h>
#include <errno.h>
#include <string.h>
#ifdef IS_LINUX
#include <linux/fs.h>
#else
#include
void copy_files() void copy_files()
{ {
int dest_fd, src_fd; int dest_fd, src_fd;
src_fd = open("a", O_RDONLY); src_fd = open("a", O_RDONLY);
dest_fd = open("b", O_WRONLY); /* Needs to exist; not checking this */ dest_fd = open("b", O_WRONLY); /* Needs to exist; not checking this */
#ifdef IS_LINUX
#if (HAVE_FICLONE)
printf("Using FICLONE\n"); printf("Using FICLONE\n");
if (ioctl(dest_fd, FICLONE, src_fd) < 0) { if (ioctl(dest_fd, FICLONE, src_fd) < 0) {
fprintf(stderr, "error: %s\n", strerror(errno)); fprintf(stderr, "error: %s\n", strerror(errno));
......
#include <stdio.h> #include <stdio.h>
#include <math.h>
#include <dlfcn.h>
typedef void (*lib_func)();
int main(int argc, char **argv) int main(int argc, char **argv)
{ {
/* Note: dlopen does not exist on Windows and the filename will not be .so. /* Note: dlopen does not exist on Windows and the filename will not be .so.
...@@ -9,10 +7,12 @@ int main(int argc, char **argv) ...@@ -9,10 +7,12 @@ int main(int argc, char **argv)
*/ */
void *ptr = dlopen("libcopyfile.so", RTLD_LAZY); void *ptr = dlopen("libcopyfile.so", RTLD_LAZY);
/* TODO: Call copy_files() from the opened shared object */ /* TODO: Call copy_files() from the opened shared object */
lib_func func = (void (*)()) dlsym(ptr, "copy_files");
func(); #ifdef TRIG_FUNCTIONS
{ /* Disable this if --without-trig-functions or -DTRIG_FUNCTIONS:BOOL=OFF */ { /* Disable this if --without-trig-functions or -DTRIG_FUNCTIONS:BOOL=OFF */
double d = cos(1.5); double d = cos(1.5);
printf("The result of cos (a trigonometric function) is: %f\n", d); printf("The result of cos (a trigonometric function) is: %f\n", d);
} }
#endif
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment