#!/bin/sh # ===================================================================== # Projet : DARKMAKE # Fichier : install_vars # Auteur : Nicolas "DarkHack" Chapuis (c) 2026 # ================== DARKHACK ================== # [ darkweb.fr - system online ] # Powered by Perplexity, your AI assistant # [https://www.perplexity.ai](https://www.perplexity.ai) # ============================================== # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # [http://www.apache.org/licenses/LICENSE-2.0](http://www.apache.org/licenses/LICENSE-2.0) # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # ===================================================================== LIBTOOL="$(which libtool)" if [ -z "$LIBTOOL" ];then $racine/pkg/bin/aptCheck libtool-bin LIBTOOL="$(which libtool)" fi LIBTOOLIZE="$(which libtoolize)" if [ -z "$LIBTOOLIZE" ];then $racine/pkg/bin/aptCheck libtool LIBTOOLIZE="$(which libtoolize)" fi pkgName="libtool" pkgVersion="v2.4.6" #pkgGitVersion="" #pkgGnuLibName="gnulib" #pkgGnuLibVersion="master" pkgConfName="libtool" pkgInstallPath="lib/autotools/libtool" #pkgConfPath="${pkgSrc}/dist" #LIBS:-l #PKG_LIBS="-lintl" #CFLAGS: PKG_CFLAGS="" #CPPFLAGS:-I PKG_CPPFLAGS="" #LDFLAGS:-L PKG_LDFLAGS="" #LD_RUN_PATH:"path1:path2:path3" PKG_LD_RUN_PATH="" #LD_LIBRARY_PATH:"path1:path2:path3" PKG_LD_LIBRARY_PATH="" #PATH: "dir1:dir2" PKG_PATH="$(echo $LIBTOOL | rev | cut -f2- -d/ | rev)" #LIBRARY_PATH:"path1:path2:path3" PKG_LIBRARY_PATH="" #M4DIR: PKG_M4DIR="" PKG_SEARCHEADLIB_FOLDERS="" PKG_LIBS="-lltdl" # /usr/lib/x86_64-linux-gnu/libltdl.so PKG_SEARCHLIB_FILE="libltdl.so" PKG_SEARCHEAD_FILE="ltdl.h" PKG_SEARCHEADLIB_FOLDERS="" LIBTOOL_LIB="" LIBTOOL_INCLUDE="" LIBTOOL_SHARE="" #if [ -d "/usr/local/share/libtool" ];then # LIBTOOL_SHARE="/usr/local/share/libtool" #el if [ -d "/usr/share/libtool" ];then LIBTOOL_SHARE="/usr/share/libtool" fi PKG_M4DIR="-I${LIBTOOL_SHARE} -I/usr/share/aclocal" if [ -f "/usr/include/${PKG_SEARCHEAD_FILE}" ];then LIBTOOL_INCLUDE="/usr/include" fi if [ -f "/usr/local/lib/${PKG_SEARCHLIB_FILE}" ];then LIBTOOL_LIB="/usr/local/lib" elif [ -f "/usr/local/lib64/${PKG_SEARCHLIB_FILE}" ];then LIBTOOL_LIB="/usr/local/lib64" elif [ -f "/usr/lib/x86_64-linux-gnu/${PKG_SEARCHLIB_FILE}" ];then LIBTOOL_LIB="/usr/lib/x86_64-linux-gnu" elif [ -f "/usr/lib/i386-linux-gnu/${PKG_SEARCHLIB_FILE}" ];then LIBTOOL_LIB="/usr/lib/i386-linux-gnu" elif [ -f "/usr/lib/aarch64-linux-gnu/${PKG_SEARCHLIB_FILE}" ];then LIBTOOL_LIB="/usr/lib/aarch64-linux-gnu" fi #PKG_LDFLAGS="-L${LIBTOOL_LIB}/${PKG_SEARCHLIB_FILE}" #PKG_LD_RUN_PATH="${LIBTOOL_LIB}/${PKG_SEARCHLIB_FILE}" #PKG_LD_LIBRARY_PATH="${LIBTOOL_LIB}/${PKG_SEARCHLIB_FILE}" #PKG_LIBRARY_PATH="${LIBTOOL_LIB}/${PKG_SEARCHLIB_FILE}" PKG_SEARCHEADLIB_FOLDERS="${LIBTOOL_LIB}:${LIBTOOL_INCLUDE}" work="/opt/lib/$pkgName" pkgSrc="$work/$pkgVersion" pkgDirLog="$work/$pkgVersion-log" #if [ ! -d "$pkgSrc" ];then mkdir -p "$pkgSrc";fi if [ ! -d "$pkgDirLog" ];then mkdir -p "$pkgDirLog";fi #if [ -d "${LIBTOOL_SHARE}" ];then # PKG_SEARCHEADLIB_FOLDERS="$PKG_SEARCH_FOLDERS ${LIBTOOL_LIB}:${LIBTOOL_SHARE}" # if [ -f "${LIBTOOL_SHARE}/libltdl/aclocal.m4" ];then # PKG_M4DIR="-I${LIBTOOL_SHARE}/libltdl" # elif [ -f "${LIBTOOL_SHARE}/aclocal.m4" ];then # PKG_M4DIR="-I${LIBTOOL_SHARE}" # fi # if [ -d "${LIBTOOL_SHARE}/libltdl" ];then # PKG_CPPFLAGS="$PKG_CPPFLAGS -I${LIBTOOL_SHARE}/libltdl" # if [ -d "${LIBTOOL_SHARE}/libltdl/libltdl" ];then # PKG_CPPFLAGS="$PKG_CPPFLAGS -I${LIBTOOL_SHARE}/libltdl/libltdl" # fi # fi #fi #PKG_SEARCHEADLIB_FOLDERS="$PKG_SEARCH_FOLDERS /usr/local/lib:/usr/share/libtool" # PKG_SEARCHEADLIB_FOLDERS="$PKG_SEARCH_FOLDERS /usr/lib/i386-linux-gnu:/usr/share/libtool" #if [ -n "$found" ];then # LIBTOOL_SHARE="" # if [ -d "/usr/share/libtool" ];then # LIBTOOL_SHARE="/usr/share/libtool" # #PKG_M4DIR="-I/usr/share/libtool" # if [ -d "/usr/share/libtool/libltdl" ];then # PKG_CPPFLAGS="$PKG_CPPFLAGS -I/usr/share/libtool/libltdl" # if [ -d "/usr/share/libtool/libltdl/libltdl" ];then # PKG_CPPFLAGS="$PKG_CPPFLAGS -I/usr/share/libtool/libltdl/libltdl" # fi # fi # elif [ -d "/usr/local/share/libtool" ];then # LIBTOOL_SHARE="/usr/local/share/libtool" # fi # if [ -d "/usr/include/libltdl" ];then # PKG_CPPFLAGS="$PKG_CPPFLAGS -I/usr/include/libltdl" # fi # if [ -n "${LIBTOOL_SHARE}" ] && [ -d "${LIBTOOL_SHARE}" ];then # PKG_M4DIR="$PKG_M4DIR -I${LIBTOOL_SHARE}" # for m4Folder in $(find "${LIBTOOL_SHARE}" | grep \.m4$ | rev | cut -d'/' -f 2- | rev | uniq);do ## echo "$(echo ${m4Folder} | rev | cut -d'/' -f 1 | rev | tr -d '[:space:]') *************************************************" ## if [ "autotest" != "$(echo ${m4Folder} | rev | cut -d'/' -f 1 | rev | tr -d '[:space:]')" ];then # PKG_M4DIR="$PKG_M4DIR -I${m4Folder}" ## fi # done # fi # LIBTOOL_LIBS="$PKG_LIBS"; # LIBTOOL_CFLAGS="$PKG_CFLAGS"; # LIBTOOL_M4DIR="$PKG_M4DIR"; # LIBTOOL_PATH="$PKG_PATH"; # LIBTOOL="$PKG_PATH/libtool" # LIBTOOLIZE="$PKG_PATH/libtoolize" #fi