summaryrefslogtreecommitdiff
path: root/src/print-dl.sh
diff options
context:
space:
mode:
Diffstat (limited to 'src/print-dl.sh')
-rw-r--r--src/print-dl.sh14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/print-dl.sh b/src/print-dl.sh
new file mode 100644
index 0000000..faa491c
--- /dev/null
+++ b/src/print-dl.sh
@@ -0,0 +1,14 @@
+ssllib="`head -1 ../conf-ssllib`"
+
+dlflag=0
+
+rm -f trycpp.o
+
+dlflag=`cc -c tryssl.c -ldl 2>&1 | wc -l`
+if [ $dlflag -eq 0 ]; then
+ ssllib="$ssllib -ldl"
+fi
+
+rm -f trycpp.o
+
+echo $ssllib