From 2e05977e12d4f8e076d46fe4cca9e187b0daa163 Mon Sep 17 00:00:00 2001 From: Nakidai Date: Mon, 30 Oct 2023 03:15:24 +0300 Subject: [PATCH] Autocreate config dir attempt 2 --- configure | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/configure b/configure index b3249d6..d49594e 100755 --- a/configure +++ b/configure @@ -1,7 +1,5 @@ #!/bin/sh -mkdir config - CC=${CC:-cc} RM=${RM:-rm -f} CFLAGS=${CFLAGS:-} @@ -23,6 +21,13 @@ echo "Size: $SIZE" echo "Start x: $DEFX" echo "Start y: $DEFY" +if [ ! test -d config ]; then + if [ test-f config ]; then + rm config + fi + mkdir config +fi + echo "CC = $CC RM = $RM CFLAGS = $CFLAGS